1(function(){'use strict';var config=window.DiviPDFModuleConfig||{};function renderPageToDataURL(page,pageWidth){var vp1=page.getViewport({scale:1});var scale=(pageWidth/vp1.width)*2;var viewport=page.getViewport({scale:scale});var canvas=document.createElement('canvas');canvas.width=Math.round(viewport.width);canvas.height=Math.round(viewport.height);return page.render({canvasContext:canvas.getContext('2d'),viewport:viewport,}).promise.then(function(){return canvas.toDataURL('image/jpeg',0.95)})} 2function renderAllPages(pdfDoc,pageWidth){var promises=[];for(var i=1;i<=pdfDoc.numPages;i++){promises.push((function(pageNum){return pdfDoc.getPage(pageNum).then(function(page){return renderPageToDataURL(page,pageWidth)})})(i))} 3return Promise.all(promises)} 4function updateControls(flipBook,containerId,total){var infoEl=document.getElementById(containerId+'-info');var current=flipBook.getCurrentPageIndex()+1;if(infoEl)infoEl.textContent=current+' / '+total;document.querySelectorAll('.dlp_pdf_module__btn-prev[data-target="'+containerId+'"]').forEach(function(btn){btn.disabled=current<=1});document.querySelectorAll('.dlp_pdf_module__btn-next[data-target="'+containerId+'"]').forEach(function(btn){btn.disabled=current>=total})} 5function initFlipbook(container){var rawConfig=container.getAttribute('data-config');if(!rawConfig)return;var cfg;try{cfg=JSON.parse(rawConfig)}catch(e){return} 6if(!cfg.pdfUrl)return;var flipbookWidth=container.offsetWidth||800;var pageWidth=Math.round(flipbookWidth/2);pdfjsLib.getDocument(cfg.pdfUrl).promise.then(function(pdfDoc){return pdfDoc.getPage(1).then(function(firstPage){var vp=firstPage.getViewport({scale:1});var ratio=vp.height/vp.width;var pageHeight=Math.round(pageWidth*ratio);container.style.width=flipbookWidth+'px';container.style.height=pageHeight+'px';return renderAllPages(pdfDoc,pageWidth).then(function(urls){return{total:pdfDoc.numPages,urls:urls,pageWidth:pageWidth,pageHeight:pageHeight,}})})}).then(function(result){var loadingEl=container.querySelector('.dlp_pdf_module__loading');if(loadingEl)loadingEl.classList.add('hidden');var useShadow=cfg.shadow!==!1;var flipBook=new St.PageFlip(container,{width:result.pageWidth,height:result.pageHeight,size:'fixed',drawShadow:useShadow,flippingTime:600,usePortrait:!1,autoSize:!1,maxShadowOpacity:0.8,showCover:cfg.hardCover,mobileScrollSupport:!0,startPage:Math.max(0,(cfg.startPage||1)-1),});container.style.boxShadow=useShadow?'0 8px 40px rgba(0,0,0,0.25)':'none';flipBook.loadFromImages(result.urls);var id=container.id;updateControls(flipBook,id,result.total);flipBook.on('flip',function(){updateControls(flipBook,id,result.total)});document.querySelectorAll('.dlp_pdf_module__btn-prev[data-target="'+id+'"]').forEach(function(btn){btn.addEventListener('click',function(){flipBook.flipPrev()})});document.querySelectorAll('.dlp_pdf_module__btn-next[data-target="'+id+'"]').forEach(function(btn){btn.addEventListener('click',function(){flipBook.flipNext()})})}).catch(function(err){console.error('[DLP PDF Module] Error loading PDF:',err);var loadingEl=container.querySelector('.dlp_pdf_module__loading');if(loadingEl){loadingEl.querySelector('.dlp_pdf_module__spinner').style.display='none';var p=loadingEl.querySelector('p');if(p)p.textContent='Failed to load PDF.'}})} 7function boot(){if(!window.pdfjsLib||!window.St||!window.St.PageFlip){setTimeout(boot,300);return} 8pdfjsLib.GlobalWorkerOptions.workerSrc=config.pdfWorkerSrc;document.querySelectorAll('.dlp_pdf_module__flipbook-container').forEach(function(el){initFlipbook(el)})} 9if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',boot)}else{boot()}})(); 10/*! Idle Timer v1.1.1 2020-06-25 | https://github.com/thorst/jquery-idletimer | (c) 2020 Paul Irish | Licensed MIT */ 11 12!function(c){c.idleTimer=function(e,n){var i;"object"==typeof e?(i=e,e=null):"number"==typeof e&&(i={timeout:e},e=null),n=n||document,i=c.extend({idle:!1,timeout:3e4,events:"mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove"},i);function t(e){var i=c.data(n,"idleTimerObj")||{};i.idle=!i.idle,i.olddate=+new Date;var t=c.Event((i.idle?"idle":"active")+".idleTimer");c(n).trigger(t,[n,c.extend({},i),e])}function r(e){var i=c.data(n,"idleTimerObj")||{};if(("storage"!==e.type||e.originalEvent.key===i.timerSyncId)&&null==i.remaining){if("mousemove"===e.type){if(e.pageX===i.pageX&&e.pageY===i.pageY)return;if(void 0===e.pageX&&void 0===e.pageY)return;if(new Date-i.olddate<200)return}clearTimeout(i.tId),i.idle&&t(e),i.lastActive=+new Date,i.pageX=e.pageX,i.pageY=e.pageY,"storage"!==e.type&&i.timerSyncId&&"undefined"!=typeof localStorage&&localStorage.setItem(i.timerSyncId,i.lastActive),i.tId=setTimeout(t,i.timeout)}}function l(){var e=c.data(n,"idleTimerObj")||{};
12e.idle=e.idleBackup,e.olddate=+new Date,e.lastActive=e.olddate,e.remaining=null,clearTimeout(e.tId),e.idle||(e.tId=setTimeout(t,e.timeout))}var a,d,o,u=c(n),m=u.data("idleTimerObj")||{};if(null===e&&void 0!==m.idle)return l(),u;if(null!==e){if(null!==e&&void 0===m.idle)return!1;if("destroy"===e)return o=c.data(n,"idleTimerObj")||{},clearTimeout(o.tId),u.removeData("idleTimerObj"),u.off("._idleTimer"),u;if("pause"===e)return null==(d=c.data(n,"idleTimerObj")||{}).remaining&&(d.remaining=d.timeout-(new Date-d.olddate),clearTimeout(d.tId)),u;if("resume"===e)return null!=(a=c.data(n,"idleTimerObj")||{}).remaining&&(a.idle||(a.tId=setTimeout(t,a.remaining)),a.remaining=null),u;if("reset"===e)return l(),u;if("getRemainingTime"===e)return function(){var e=c.data(n,"idleTimerObj")||{};if(e.idle)return 0;if(null!=e.remaining)return e.remaining;var i=e.timeout-(new Date-e.lastActive);return i<0&&(i=0),i}();if("getElapsedTime"===e)return new Date-m.olddate;if("getLastActiveTime"===e)return m.lastActive;if("isIdle"===e)return m.idle}return u.on((i.events+" ").split(" ").join("._idleTimer ").trim(),function(e){r(e)}),i.timerSyncId&&c(window).on("storage",r),(m=c.extend({},{olddate:+new Date,lastActive:+new Date,idle:i.idle,idleBackup:i.idle,timeout:i.timeout,remaining:null,timerSyncId:i.timerSyncId,tId:null,pageX:null,pageY:null})).idle||(m.tId=setTimeout(t,m.timeout)),c.data(n,"idleTimerObj",m),u},c.fn.idleTimer=function(e){return this[0]?c.idleTimer(e,this[0]):this}}(jQuery);; 13(function($){$(function(){var all_networks_opened=0;et_pb_fix_gallery_wrapper();$('body').on('click','.et_social_share',function(){var $this_el=$(this),social_type=$this_el.data('social_type'),social_network=$this_el.data('social_name'),share_link='media'==social_type?$this_el.data('social_link'):$this_el.prop('href');update_stats_table(social_network,$this_el);if('like'===social_network){return!1} 14var left=($(window).width()/2)-(550/2);var top=($(window).height()/2)-(450/2);var new_window=window.open(share_link,'','scrollbars=1, height=450, width=550, left='+left+', top='+top);if(window.focus){new_window.focus()} 15return!1});$('.et_social_follow').on('click',function(){var $this_el=$(this),social_network=$this_el.data('social_name');update_stats_table(social_network,$this_el);if('like'===social_network){return!1}});$('body').on('click','.et_social_share_pinterest',function(){if($(this).hasClass('et_social_pin_all')){var left=($(window).width()/2)-(550/2),top=($(window).height()/2)-(450/2),share_link=$(this).attr('href'),new_window=window.open(share_link,'','scrollbars=1, height=450, width=550, left='+left+', top='+top);if(window.focus){new_window.focus()}}else{$('.et_social_pin_images_outer').fadeToggle(400)} 16return!1});function get_url_parameter(param_name){var page_url=window.location.search.substring(1);var url_variables=page_url.split('&');for(var i=0;i<url_variables.length;i++){var curr_param_name=url_variables[i].split('=');if(curr_param_name[0]==param_name){return curr_param_name[1]}}} 17function update_stats_table($social_network,$this_el){var action=$this_el.data('social_type'),media_url='media'==action?$this_el.closest('.et_social_media_wrapper').find('img').attr('src'):'',post_id=$this_el.data('post_id'),location=$this_el.data('location'),stats_data='';stats_data=JSON.stringify({'action':action,'network':$social_network,'media_url':media_url,'post_id':post_id,'location':location});$.ajax({type:'POST',url:monarchSettings.ajaxurl,data:{action:'add_stats_record_db',stats_data_array:stats_data,add_stats_nonce:monarchSettings.stats_nonce},success:function(data){if(!0==data){if('like'===action){update_single_shares($this_el,'',post_id,$social_network,'like')} 18if('media'===action){update_total_media_shares($this_el.closest('.et_social_media_wrapper'));update_single_shares($this_el,media_url,post_id,$social_network,'media')}}}})} 19function append_share_counts($current_network){var network=$current_network.data('social_name'),min_count=$current_network.data('min_count'),post_id=$current_network.data('post_id'),url=monarchSettings.pageurl!==''?monarchSettings.pageurl:window.location.href,label_div=$current_network.find('.et_social_network_label'),append_to=(0!=(label_div.length))?label_div:$current_network;$share_count_data=JSON.stringify({'network':network,'min_count':min_count,'post_id':post_id,'url':url});
19$.ajax({type:'POST',url:monarchSettings.ajaxurl,data:{action:'get_shares_count',share_count_array:$share_count_data,get_share_counts_nonce:monarchSettings.share_counts},beforeSend:function(data){append_to.append('<span class="et_social_placeholder"></span>')},success:function(data){$current_network.find('span.et_social_placeholder').remove();append_to.append(data)}})} 20function append_total_shares($current_area){var post_id=$current_area.data('post_id'),url=monarchSettings.pageurl!==''?monarchSettings.pageurl:window.location.href,append_to=$current_area;$share_total_count_data=JSON.stringify({'post_id':post_id,'url':url});$.ajax({type:'POST',url:monarchSettings.ajaxurl,data:{action:'get_total_shares',share_total_count_array:$share_total_count_data,get_total_counts_nonce:monarchSettings.total_counts},beforeSend:function(data){append_to.append('<span class="et_social_placeholder"></span>')},success:function(data){append_to.find('span.et_social_placeholder').remove();append_to.append(data)}})} 21function append_follow_counts($current_area){var network=$current_area.data('network'),min_count=$current_area.data('min_count'),index=$current_area.data('index'),append_to=$current_area;$follow_count_data=JSON.stringify({'network':network,'min_count':min_count,'index':index});$.ajax({type:'POST',url:monarchSettings.ajaxurl,data:{action:'get_follow_counts',follow_count_array:$follow_count_data,get_follow_counts_nonce:monarchSettings.follow_counts},beforeSend:function(data){append_to.append('<span class="et_social_placeholder"></span>')},success:function(data){$current_area.find('span.et_social_placeholder').remove();append_to.append(data)}})} 22function append_total_follows($current_area){var append_to=$current_area;$.ajax({type:'POST',url:monarchSettings.ajaxurl,data:{action:'get_follow_total',get_total_counts_nonce:monarchSettings.total_counts},beforeSend:function(data){append_to.append('<span class="et_social_placeholder"></span>')},success:function(data){append_to.find('span.et_social_placeholder').remove();append_to.append(data)}})} 23if($('.et_social_display_follow_counts').length){$('.et_social_display_follow_counts').each(function(){append_follow_counts($(this))})} 24if($('.et_social_follow_total').length){$('.et_social_follow_total').each(function(){append_total_follows($(this))})} 25if($('.et_social_total_share').length){$('.et_social_total_share').each(function(){append_total_shares($(this))})} 26if($('.et_social_display_count').length){$('.et_social_display_count').each(function(){append_share_counts($(this))})} 27if($('.et_social_media_wrapper').length&&$('.et_social_media_wrapper .et_social_totalcount').length){$('.et_social_media_wrapper').each(function(){update_total_media_shares($(this))})} 28if($('.et_social_media_wrapper').length&&$('.et_social_media_wrapper .et_social_withcounts').length){$('.et_social_media_wrapper .et_social_share').each(function(){var this_el=$(this),media_url=this_el.closest('.et_social_media_wrapper').find('img').attr('src'),post_id=this_el.data('post_id'),social_network=this_el.data('social_name');update_single_shares(this_el,media_url,post_id,social_network,'media')})} 29function update_total_media_shares($element){if($('.et_social_totalcount').length){var this_el=$element,media_url=this_el.find('img').attr('src'),post_id=this_el.find('.et_social_share').first().data('post_id'),media_data=JSON.stringify({'media_url':media_url,'post_id':post_id});$.ajax({type:'POST',url:monarchSettings.ajaxurl,data:{action:'get_media_shares_total',media_total:media_data,get_media_shares_total_nonce:monarchSettings.media_total},success:function(data){this_el.find('.et_social_totalcount_count').empty().append(data)}})}} 30function update_single_shares($this_el,$media_url,$post_id,$network,$action){if($('.et_social_withcounts').length){var media_data=JSON.stringify({'media_url':$media_url,'post_id':$post_id,'network':$network,'action':$action});$.ajax({type:'POST',url:monarchSettings.ajaxurl,data:{action:'get_shares_single',media_single:media_data,get_media_shares_nonce:monarchSettings.media_single},success:function(data){$this_el.find('.et_social_count span').not('.et_social_count_label').empty().append(data)}})}} 31function setCookieExpire(days){var ms=days*24*60*60*1000;var date=new Date();date.setTime(date.getTime()+ms);return"; expires="+date.toUTCString()} 32function checkCookieValue(cookieName,value){return parseCookies()[cookieName]===value} 33function parseCookies(){var cookies=document.cookie.split('; ');var ret={};for(var i=cookies.length-1;i>=0;i--){var el=cookies[i].split('=');ret[el[0]]=el[1]} 34return ret}
35function set_cookie($expire){cookieExpire=setCookieExpire($expire);document.cookie='etSocialCookie=true'+cookieExpire} 36function make_popup_visible($popup,$delay){setTimeout(function(){$popup.addClass('et_social_visible et_social_animated');if($('.et_social_resize').length){$('.et_social_resize').each(function(){define_popup_position($(this))})}},$delay)} 37function auto_popup(this_el,delay){var $current_popup_auto=this_el;if(!$current_popup_auto.hasClass('et_social_animated')){var $cookies_expire_auto=$current_popup_auto.data('cookie_duration')?$current_popup_auto.data('cookie_duration'):!1,$delay=delay;if((!1!==$cookies_expire_auto&&!checkCookieValue('etSocialCookie','true'))||!1==$cookies_expire_auto){make_popup_visible($current_popup_auto,$delay);if(!1!==$cookies_expire_auto){set_cookie($cookies_expire_auto)}}}} 38if('true'==get_url_parameter('et_monarch_popup')){$('.et_social_after_comment').each(function(){var $current_popup=$(this);auto_popup($current_popup,0)})} 39if($('.et_social_auto_popup').length){$('.et_social_auto_popup').each(function(){var $current_popup_auto=$(this);auto_popup($current_popup_auto,''!==$current_popup_auto.data('delay')?$current_popup_auto.data('delay')*1000:0)})} 40$('.et_social_pinterest_window .et_social_close').on('click',function(){$('.et_social_pin_images_outer').fadeToggle(400)});$('body').on('click','.et_social_icon_cancel',function(){var this_el=$(this);if(this_el.parent().hasClass('et_social_flyin')){$popup=this_el.parent()}else{$popup=this_el.parent().parent();if($popup.hasClass('et_social_all_networks_popup')){all_networks_opened=0}} 41$popup.addClass('et_social_fadeout');setTimeout(function(){$popup.remove()},800);return!1});if($('.et_monarch_after_order').length){$('.et_social_after_purchase').each(function(){var $current_popup=$(this);if(!$current_popup.hasClass('et_social_animated')){var $cookies_expire=$current_popup.data('cookie_duration')?$current_popup.data('cookie_duration'):!1,$delay=0;if((!1!==$cookies_expire&&!checkCookieValue('etSocialCookie','true'))||!1==$cookies_expire){make_popup_visible($current_popup,$delay);if(!1!==$cookies_expire){set_cookie($cookies_expire)}}}})} 42if($('.et_social_trigger_bottom').length){$('.et_social_trigger_bottom').each(function(){scroll_trigger($(this),!0)})} 43if($('.et_social_scroll').length){$('.et_social_scroll').each(function(){scroll_trigger($(this),!1)})} 44function scroll_trigger(this_el,is_bottom_trigger){var current_popup_bottom=this_el;if(!current_popup_bottom.hasClass('et_social_animated')){var cookies_expire_bottom=current_popup_bottom.data('cookie_duration')?current_popup_bottom.data('cookie_duration'):!1;if(!0==is_bottom_trigger){var scroll_trigger=$('.et_social_bottom_trigger').length?$('.et_social_bottom_trigger').offset().top:$(document).height()-500}else{var scroll_pos=this_el.data('scroll_pos')>100?100:this_el.data('scroll_pos'),scroll_trigger=100==scroll_pos?$(document).height()-10:$(document).height()*scroll_pos/100} 45$(window).on('scroll',function(){if((!1!==cookies_expire_bottom&&!checkCookieValue('etSocialCookie','true'))||!1==cookies_expire_bottom){if($(window).scrollTop()+$(window).height()>scroll_trigger){current_popup_bottom.addClass('et_social_visible et_social_animated');if($('.et_social_resize').length){$('.et_social_resize').each(function(){define_popup_position($(this))})} 46if(!1!==cookies_expire_bottom){set_cookie(cookies_expire_bottom)}}}})}} 47if($('.et_social_trigger_idle').length){$('.et_social_trigger_idle').each(function(){var this_el=$(this);if(!this_el.hasClass('et_social_animated')){var $cookies_expire_idle=this_el.data('cookie_duration')?this_el.data('cookie_duration'):!1,$idle_timeout=''!==this_el.data('idle_timeout')?this_el.data('idle_timeout')*1000:30000;if((!1!==$cookies_expire_idle&&!checkCookieValue('etSocialCookie','true'))||!1==$cookies_expire_idle){$(document).idleTimer($idle_timeout);$(document).on("idle.idleTimer",function(){make_popup_visible(this_el,0)});if(!1!==$cookies_expire_idle){set_cookie($cookies_expire_idle)}}}})} 48$('.et_social_heading, .et_social_mobile_button').on('click',function(){$this_mobile_div=$('.et_social_mobile');$this_mobile_div.css({'display':'block'});$('.et_social_mobile_button').removeClass('et_social_active_button');if($this_mobile_div.hasClass('et_social_opened')){$this_mobile_div.find('.et_social_networks').slideToggle(600);$this_mobile_div.removeClass('et_social_opened').addClass('et_social_closed');$('.et_social_mobile_overlay').removeClass('et_social_visible_overlay');$('.et_social_mobile_overlay').fadeToggle(600)}else{$this_mobile_div.removeClass('et_social_closed').addClass('et_social_opened');$this_mobile_div.find('.et_social_networks').slideToggle(600);$('.et_social_mobile_overlay').addClass('et_social_visible_overlay').css({'display':'block'})}});$('.et_social_mobile .et_social_close').on('click',function(){$mobile_div=$('.et_social_mobile');$mobile_div.fadeToggle(600);$('.et_social_mobile_button').addClass('et_social_active_button');if($mobile_div.hasClass('et_social_opened')){$('.et_social_mobile_overlay').fadeToggle(600);$mobile_div.removeClass('et_social_opened');$mobile_div.find('.et_social_networks').fadeToggle(600)}});if($('.et_social_inline').length){if($('body').hasClass('et_pb_pagebuilder_layout')){var top_inline=$('.et_social_inline_top'),bottom_inline=$('.et_social_inline_bottom'),divi_container='<div class="et_pb_row"><div class="et_pb_column et_pb_column_4_4"></div></div>';if($('.et-l--post').first().length>0){var $sections=$('.et-l--post .et_pb_section').not('.et_pb_fullwidth_section')}else{var $sections=$('.et_pb_section:not(.et-l .et_pb_section)').not('.et_pb_fullwidth_section')} 49if($sections.length>0&&top_inline.length){$sections.first().prepend(divi_container).find('.et_pb_row').first().find('.et_pb_column').append(top_inline)} 50if($sections.length>0&&bottom_inline.length){$sections.last().append(divi_container).find('.et_pb_row').last().find('.et_pb_column').append(bottom_inline)}}} 51function define_popup_position($this_popup){setTimeout(function(){var this_popup=$this_popup,networks_div=this_popup.find('.et_social_networks'),header_height=this_popup.find('.et_social_header').outerHeight()||0,total_count_height=this_popup.find('.et_social_totalcount').height(),extra_height=0<total_count_height?20:0;this_popup.height(this_popup.find('.et_social_icons_container').innerHeight()+header_height+total_count_height+20+extra_height);var popup_max_height=this_popup.hasClass('et_social_popup_content')?$(window).height():$(window).height()-60;if(this_popup.hasClass('et_social_popup_content')&&768<$(window).width()){popup_max_height=popup_max_height-50} 52this_popup.css({'max-height':popup_max_height+'px'});if(this_popup.hasClass('et_social_popup_content')){var top_position=$(window).height()/2-this_popup.innerHeight()/2;this_popup.css({'top':top_position+'px'})} 53var networks_div_height=this_popup.height()-header_height+total_count_height-extra_height;networks_div.height(networks_div_height)},400)} 54function set_mobile_sidebar_height(){setTimeout(function(){var mobile_div=$('.et_social_mobile');if(!mobile_div.hasClass('et_social_opened')){$('.et_social_mobile .et_social_networks').css({'display':'block'})} 55if($('.et_social_active_button').length){mobile_div.css({'display':'block'})} 56var inner_contatiner_height=mobile_div.find('.et_social_icons_container').innerHeight()+45;if(!mobile_div.hasClass('et_social_opened')){$('.et_social_mobile .et_social_networks').css({'display':'none'})} 57if($('.et_social_active_button').length){mobile_div.css({'display':'none'})}
58mobile_div.find('.et_social_networks').css({'max-height':inner_contatiner_height+'px','height':inner_contatiner_height+'px'});if($(window).height()<inner_contatiner_height){var inner_height=$(window).height()-mobile_div.find('.et_social_heading').innerHeight()+10;mobile_div.find('.et_social_networks').css({'height':inner_height+'px'})}},400)} 59function set_sidebar_position(){if($('.et_social_sidebar_networks').length){var this_sidebar=$('.et_social_sidebar_networks'),top_position=$(window).height()/2-this_sidebar.innerHeight()/2;top_position=0>top_position?0:top_position;this_sidebar.css({'top':top_position+'px'})}} 60function set_media_wrapper_size(){if($('.et_social_media_wrapper').length){$('.et_social_media_wrapper').each(function(){var this_wrapper=$(this),this_wrapper_media=this_wrapper.find('.et_social_media'),this_image=this_wrapper.find('img'),image_position=this_image.position(),image_left_offset=typeof image_position!=='undefined'?image_position.left:0,this_image_height=this_image.height(),this_image_width=this_image.width(),this_wrapper_networks_height=this_wrapper.find('.et_social_networks').innerHeight();this_wrapper.addClass(this_image.attr('class'));this_wrapper_media.css({'max-height':this_image_height+'px'});this_wrapper_media.css({'height':(this_wrapper_networks_height+50)+'px'});this_wrapper_media.width(this_image_width-80);if(0!==image_left_offset){this_wrapper_media.css({'left':(image_left_offset+20)+'px'})}});et_pb_fix_gallery_slider_icons_size()}} 61function et_pb_fix_gallery_wrapper(){var $media_wrappers_inside_gallery=$('.et_pb_gallery_grid .et_social_media_wrapper');if(0>$media_wrappers_inside_gallery.length){return} 62$media_wrappers_inside_gallery.each(function(){var $this_wrapper=$(this);var $gallery_item=$this_wrapper.closest('.et_pb_gallery_image');var $gallery_overlay=$gallery_item.find('.et_overlay');if(0<$gallery_overlay.length){$this_wrapper.append($gallery_overlay)}})} 63function et_pb_fix_gallery_slider_icons_size(){var $gallery_slider_icons=$('.et_pb_gallery_fullwidth .et_social_media_wrapper');if(0>$gallery_slider_icons.length){return} 64var $all_galleries=$('.et_pb_gallery_fullwidth');$all_galleries.each(function(){var $this_gallery=$(this);var $this_gallery_media=$this_gallery.find('.et_social_media_wrapper .et_social_media');if(0>$this_gallery_media.length){return} 65var $first_icon_wrapper=$this_gallery_media.first();var icons_width=$first_icon_wrapper.width();var icons_height=$first_icon_wrapper.css('height');var icons_max_height=$first_icon_wrapper.css('max-height');$this_gallery_media.width(icons_width-80);$this_gallery_media.height(icons_height);$this_gallery_media.css({'max-height':icons_max_height+'px'})})} 66$('body').on('click','.et_social_open_all',function(){all_networks_opened++;if(1==all_networks_opened){var this_button=$(this),page_id=this_button.data('page_id'),permalink=this_button.data('permalink'),title=this_button.data('title'),media=typeof this_button.data('media')!=='undefined'?this_button.data('media'):'',is_popup='popup'==this_button.data('location')?'true':'false';$.ajax({type:'POST',url:monarchSettings.ajaxurl,data:{action:'generate_all_networks_popup',all_networks_page_id:page_id,all_networks_link:permalink,all_networks_title:title,all_networks_media:media,is_popup:is_popup,generate_all_window_nonce:monarchSettings.generate_all_window_nonce},success:function(data){if('false'==is_popup){$('body').append(data);make_popup_visible($('.et_social_all_networks_popup'),1)}else{var popup_container=this_button.parent().closest('.et_social_popup_content');this_button.parent().replaceWith(data);define_popup_position(popup_container);all_networks_opened=0}}})} 67return!1});set_mobile_sidebar_height();set_sidebar_position();$(window).on('resize',()=>{if($('.et_social_resize').length){$('.et_social_resize').each(function(){define_popup_position($(this))})} 68if($('.et_social_mobile')){set_mobile_sidebar_height()} 69if($('.et_social_sidebar_networks').length){set_sidebar_position()} 70set_media_wrapper_size()});$('.et_social_hide_sidebar').on('click',function(){$('.et_social_hide_sidebar').toggleClass('et_social_hidden_sidebar');$('.et_social_sidebar_networks').toggleClass('et_social_hidden_sidebar et_social_visible_sidebar')});$(window).on('load',function(){set_media_wrapper_size();if($('.et_social_pin_images').length&&($('.et_social_all_button').length||$('.et_social_pinterest').length)){var pin_container=$('.et_social_pin_images'),permalink=pin_container.data('permalink'),title=pin_container.data('title'),post_id=pin_container.data('post_id'),$i=0;$('img').each(function(){if(!$(this).hasClass('avatar')){var this_img=$(this).attr('src'),this_alt=$(this).attr('alt');if(''!=this_img){var pin_link='http://www.pinterest.com/pin/create/button/?url='+permalink+'&media='+this_img+'&description='+title,this_img_container='<div class="et_social_pin_image"><a href="'+pin_link+'" rel="nofollow" class="et_social_icon et_social_share" data-social_name="pinterest" data-post_id="'+post_id+'" data-social_type="share"><img src="'+this_img+'" alt="'+this_alt+'"/><span class="et_social_pin_overlay et_social_icon"></span></a></div>';$('.et_social_pin_images').append(this_img_container);$i++}}});
70if(0==$i){$('.et_social_pin_images').append(monarchSettings.no_img_message)}}})})})(jQuery); 71/*! For license information please see theme-scripts-library-base.js.LICENSE.txt */ 72!function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=87)}({87:function(t,e){var o,n,i,r;o=jQuery,n="object"==typeof window.ET_Builder?ET_Builder.Frames.top:window,i="ontouchstart"in window||navigator.maxTouchPoints,r=o(window),document.addEventListener("DOMContentLoaded",(function(){o((function(){o.fn.fitVids&&o("#main-content").fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"})})),o(".comment-reply-link").length&&o(".comment-reply-link").addClass("et_pb_button"),o(".footer-widget").each((function(){var t=o(this),e=t.width(),n=t.find(".widget_adsensewidget ins");n.length&&n.width(e)})),window.addEventListener("load",(function(){window.hasOwnProperty("et_location_hash")&&""!==window.et_location_hash&&function(){var t=window.et_location_hash.replace(/(\|)/g,"\\$1"),e=o();try{e=o(t)}catch(t){e=o()}if(0!==e.length){var n=o(t+" .et_pb_map_container"),i=n.children(".et_pb_map");void 0!==window.et_location_hash_style&&e.css("display",window.et_location_hash_style);var r=void 0!==e.offset().top?e.offset().top:0,s=o("body").hasClass("et_smooth_scroll"),c=s?r>4e3?1600:800:0;n.length&&google.maps.event.trigger(i[0],"resize"),e.parents().hasClass("commentlist")&&o(".reviews_tab").trigger("click").animate({scrollTop:e.offset().top},700),setTimeout((function(){window.et_pb_smooth_scroll(e,!1,c,"swing"),s&&setTimeout((function(){window.et_pb_smooth_scroll(e,!1,150,"linear")}),c+25)}),s?700:0)}}(),o("p.demo_store").length&&o("p.demo_store").is(":visible")&&(o("#footer-bottom").css("margin-bottom",o("p.demo_store").innerHeight()+"px"),o(".woocommerce-store-notice__dismiss-link").on("click",(function(){o("#footer-bottom").css("margin-bottom","")})))}))})),i&&(r.on("swipeleft",(function(t){30>=parseInt(r.width())-parseInt(t.swipestart.coords[0])&&et_toggle_slide_menu("open")})),r.on("swiperight",(function(t){o("body").hasClass("et_pb_slide_menu_active")&&et_toggle_slide_menu("close")}))),r.on("et_fb_init",(function(){var t=n.wp;if(t&&t.hooks&&t.hooks.addFilter){var e=window.DIVI.row_selector;t.hooks.addFilter("et.pb.row.css.selector","divi.et.pb.row.css.selector",(function(t){return t.replace("%%row_selector%%",e)}))}}))}}); 73/** @license ES6-Promise v4.2.8 74 * es6-promise.auto.min.js 75 * https://github.com/stefanpenner/es6-promise 76 * 77 * Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors 78 * 79 * This source code is licensed under the MIT license found in the 80 * LICENSE file in the root directory of this source tree. 81 */ 82!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){W=t}function r(t){z=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof U?function(){U(a)}:c()}function s(){var t=0,e=new H(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}
vendor: 2,990 bytes, line 82
82),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<N;t+=2){var e=Q[t],n=Q[t+1];e(n),Q[t]=void 0,Q[t+1]=void 0}N=0}function f(){try{var t=Function("return this")().require("vertx");return U=t.runOnLoop||t.runOnContext,i()}catch(e){return c()}}function l(t,e){var n=this,r=new this.constructor(p);void 0===r[V]&&x(r);var o=n._state;if(o){var i=arguments[o-1];z(function(){return T(o,r,i,n._result)})}else j(n,r,t,e);return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return w(n,t),n}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function _(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function y(t,e,n){z(function(t){var r=!1,o=_(n,e,function(n){r||(r=!0,e!==n?w(t,n):A(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function m(t,e){e._state===Z?A(t,e._result):e._state===$?S(t,e._result):j(e,void 0,function(e){return w(t,e)},function(e){return S(t,e)})}function b(t,n,r){n.constructor===t.constructor&&r===l&&n.constructor.resolve===h?m(t,n):void 0===r?A(t,n):e(r)?y(t,n,r):A(t,n)}function w(e,n){if(e===n)S(e,v());else if(t(n)){var r=void 0;try{r=n.then}catch(o){return void S(e,o)}b(e,n,r)}else A(e,n)}function g(t){t._onerror&&t._onerror(t._result),E(t)}function A(t,e){t._state===X&&(t._result=e,t._state=Z,0!==t._subscribers.length&&z(E,t))}function S(t,e){t._state===X&&(t._state=$,t._result=e,z(g,t))}function j(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+Z]=n,o[i+$]=r,0===i&&t._state&&z(E,t)}function E(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?T(n,r,o,i):o(i);t._subscribers.length=0}}function T(t,n,r,o){var i=e(r),s=void 0,u=void 0,c=!0;if(i){try{s=r(o)}catch(a){c=!1,u=a}if(n===s)return void S(n,d())}else s=o;n._state!==X||(i&&c?w(n,s):c===!1?S(n,u):t===Z?A(n,s):t===$&&S(n,s))}function M(t,e){try{e(function(e){w(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function P(){return tt++}function x(t){t[V]=tt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function C(){return new Error("Array Methods must be provided an Array")}function O(t){return new et(this,t).promise}function k(t){var e=this;return new e(L(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function F(t){var e=this,n=new e(p);return S(n,t),n}function Y(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
82onstructor cannot be called as a function.")}function D(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=nt}var K=void 0;K=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var L=K,N=0,U=void 0,W=void 0,z=function(t,e){Q[N]=t,Q[N+1]=e,N+=2,2===N&&(W?W(a):R())},B="undefined"!=typeof window?window:void 0,G=B||{},H=G.MutationObserver||G.WebKitMutationObserver,I="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),J="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Q=new Array(1e3),R=void 0;R=I?o():H?s():J?u():void 0===B&&"function"==typeof require?f():c();var V=Math.random().toString(36).substring(2),X=void 0,Z=1,$=2,tt=0,et=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[V]||x(this.promise),L(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&A(this.promise,this._result))):S(this.promise,C())}return t.prototype._enumerate=function(t){for(var e=0;this._state===X&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===h){var o=void 0,i=void 0,s=!1;try{o=t.then}catch(u){s=!0,i=u}if(o===l&&t._state!==X)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===nt){var c=new n(p);s?S(c,i):b(c,t,o),this._willSettleAt(c,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===X&&(this._remaining--,t===$?S(r,n):this._result[e]=n),0===this._remaining&&A(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;j(t,void 0,function(t){return n._settledAt(Z,e,t)},function(t){return n._settledAt($,e,t)})},t}(),nt=function(){function t(e){this[V]=P(),this._result=this._state=void 0,this._subscribers=[],p!==e&&("function"!=typeof e&&Y(),this instanceof t?M(this,e):q())}return t.prototype["catch"]=function(t){return this.then(null,t)},t.prototype["finally"]=function(t){var n=this,r=n.constructor;return e(t)?n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):n.then(t,t)},t}();return nt.prototype.then=l,nt.all=O,nt.race=k,nt.resolve=h,nt.reject=F,nt._setScheduler=n,nt._setAsap=r,nt._asap=z,nt.polyfill=D,nt.Promise=nt,nt.polyfill(),nt});;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.