1// JavaScript Document 2 3(function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w=function(a,b){return function(){return a.apply(b,arguments)}},x=function(a,b){function c(){this.constructor=a}for(var d in b)y.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},y={}.hasOwnProperty;a=jQuery,u=function(){return a(".block-carousel .flex-control-nav, .block-carousel .flex-direction-nav").each(function(){a(this).appendTo(a(this).parent(".block-carousel").find(".manual-nav-container"))}),a(".manual-nav-container").each(function(){var b;b=a(this).parent(".block-carousel").find(".flex-viewport ul.slides li.block-carousel-slide .block-carousel-slide-cover").height(),a(this).height(b)}),!0},v=function(){var b;return b=a("#social-text").outerHeight(),a("#social-image").css({"-ms-transform":"translate(0,"+b/2+"px)","-webkit-transform":"translate(0,"+b/2+"px)",transform:"translate(0,"+b/2+"px)"})},window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),Modernizr.addTest("mstouch",function(){return navigator.msMaxTouchPoints&&navigator.msMaxTouchPoints>0}),Modernizr.addTest("touch",function(){return Modernizr.touchevents}),function(){var a,b,c;for(a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"],++c;window.requestAnimationFrame||(window.requestAnimationFrame=function(b,c){var d,e,f;return d=(new Date).getTime(),f=Math.max(0,16-(d-a)),e=window.setTimeout(function(){b(d+f)},f),a=d+f,e}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)})}(),_.templateSettings={evaluate:/\{%(.+?)%\}/g,interpolate:/\{\{(.+?)\}\}/g,escape:/\{\{-(.+?)\}\}/g},a.extend(a.easing,{easeInOutExpo:function(a,b,c,d,e){return 0===b?c:b===e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*(b-=1))+2)+c}}),window.isBreakpoint=function(b){return a(".device-"+b).is(":visible")},window.vfInitSpinner=function(b,c){return a("#gform_"+b).submit(function(){var c,d;return 0===a("#gform_ajax_spinner_"+b).length?(d=new Spinner({lines:9,length:3,width:2,radius:5,corners:1,rotate:0,direction:1,color:"#999999",speed:1,trail:61,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,right:0}),d.spin(),c=a('<div id="gform_ajax_spinner_'+b+'" class="gform_ajax_spinner" style="position: relative"></div>'),c.append(d.el),a("#gform_submit_button_"+b+", #gform_wrapper_"+b+" .gform_next_button, #gform_send_resume_link_button_"+b).after(c)):void 0})},o=function(b){function c(){return this.revealRight=w(this.revealRight,this),c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.events={"click .viewport":"onViewportClick"},c.prototype.revealClass="reveal-mobilepanel",c.prototype.revealLeftClass="reveal-mobilepanel-left",c.prototype.revealRightClass="reveal-mobilepanel-right",c.prototype.scrollPos=0,c.prototype.restoreScrollAfter=!1,c.prototype.state=0,c.prototype.initialize=function(){var b,c;return this.$body=a("body"),this.window=window,this.$window=a(window),this.$viewport=a(".viewport"),b=window.navigator.userAgent.match(/Android [\d+\.]{3,5}/),c=window.navigator.userAgent.match(/iPhone/i),b&&2===b[0].replace("Android ","").charAt(0)&&this.$el.addClass("android"),c?this.$el.addClass("iphone"):void 0},c.prototype.closePanels=function(){return this.$el.removeClass(this.revealClass),this.$el.removeClass(this.revealLeftClass),this.$el.removeClass(this.revealRightClass),this.state=0,this.restoreScroll()},c.prototype.onViewportClick=function(b){var c,d,e;return 1===this.state?(b.preventDefault(),this.closePanels()):(c=a(b.target),d=c.parents("[data-mobilepanel-reveal]"),e=c.data("mobilepanel-reveal")||d.data("mobilepanel-reveal"),"right"===e?this.revealRight():"left"===e?this.revealLeft():void 0)},c.prototype.scrollTop=function(){return this.scrollPos=this.$window.scrollTop(),this.window.scrollTo(0,0)},c.prototype.restoreScroll=function(){return this.restoreScrollAfter?this.window.scrollTo(0,this.scrollPos):void 0},c.prototype.revealRight=function(a){return this.state=1,this.scrollTop(),this.$el.addClass(this.revealClass),this.$el.addClass(this.revealRightClass)},c.prototype.revealLeft=function(a){return this.state=1,this.scrollTop(),this.$el.addClass(this.revealClass),this.$el.addClass(this.revealLeftClass)},c}(Backbone.View),q=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.cssProperty="",c.prototype.initialize=function(b){return this.$window=a(window),this.$body=a("body"),this.$window.on("resize",function(a){return function(){return a.resize()}}(this)),this.$window.on("dorender",function(a){return function(){return a.resize()}}(this)),this.resize()},c.prototype.resize=function(){var b,c,d;return this.$el.is('[data-verticalcenter-row-cols="true"]')?this.$cols=this.$el.find("> .row").addClass("full-height").find('[class^="col-"]'):this.$cols=this.$el.find("[data-verticalcenter-col]"),c=this.$el.height(),d=this.$el.offset().top,b=[],this.$cols.each(function(c){return function(c,d){var e;return e=a(d),b.push(e)}}(this)),a.each(b,function(a){return function(b,d){var e,f;return e=Math.floor((c-d.height())/2),f=d.data("verticalcenter-release"),f&&isBreakpoint(f)&&(e=1),d.css(a.cssProperty,e+"px")}}(this))},c}(Backbone.View),j=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.initialize=function(b){return this.boundsTop=70.480896,this.boundsBottom=58.972667,this.boundsLeft=15.512695,this.boundsRight=36.386719,this.latitude=this.$el.data("latitude"),this.longitude=this.$el.data("longitude"),this.$marker=a('<div class="marker" />'),this.$mapImage=this.$el.find(".block-map-map"),this.latitude&&this.longitude?(this.insertMarker(),this.updateMarker(),this.$mapImage.on("load",function(a){return function(){return a.updateMarker()}}(this))):void 0},c.prototype.insertMarker=function(){return this.$mapImage.after(this.$marker)},c.prototype.updateMarker=function(){var a,b,c,d,e,f;return this.$mapImage.after(this.$marker),f=this.$el.data("map-width"),a=this.$el.data("map-height"),d=this.$marker.width(),c=this.$marker.height(),e=a-Math.round((this.latitude-this.boundsBottom)/(this.boundsTop-this.boundsBottom)*a),b=-Math.round((this.longitude-this.boundsLeft)/(this.boundsLeft-this.boundsRight)*f),e-=Math.round(c/2),b-=Math.round(d/2),this.$marker.css({top:e+"px",left:b+"px"})},c}(Backbone.View),n=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.initialize=function(a){return this.itemSelector=this.$el.data("postload-item"),this.pagerSelector=this.$el.data("postload-pager"),this.containerSelector=this.$el.data("postload-container"),this.filterSelector=this.$el.data("postload-filter"),this.filterUrl=this.$el.data("postload-filter-url"),this.$container=this.$el.find(this.containerSelector),this.$pager=this.$el.find(this.pagerSelector),this.$filters=this.$el.find(this.filterSelector),this.spinner=new Spinner({lines:9,length:3,width:2,radius:5,corners:1,rotate:0,direction:1,color:"#999999",speed:1,trail:61,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,right:0}),this.loading=!1,this.$pager.on("click",function(a){return function(b){return a.loading?void 0:(a.loadPosts(a.$pager.attr("href")),b.preventDefault())}}(this)),this.$filters.length?this.$filters.on("change",function(a){return function(b){return a.$container.empty(),a.loadPosts(a.filterUrl),a.$pager.show(),b.preventDefault()}}(this)):void 0},c.prototype.loadPosts=function(b){var c;return this.$container.height(this.$container.height),this.$container.css("overflow","hidden"),this.loading=!0,c=[],this.$filters.each(function(b,d){var e;return e=a(d).find("option:selected").val(),e?c.push(e):void 0}),c.length&&(b+=b.indexOf("?")?"&"+c.join("&"):"?"+c.join("&")),this.spinner.spin(),this.$pager.find(".postload-pager-icon").append(this.spinner.el),this.$pager.addClass("postload-pager-loading"),a.get(b,function(a){return function(b){return a.postsLoaded(b)}}(this))},c.prototype.postsLoaded=function(b){var c,d,e,f;return c=a(b),d=c.find(this.itemSelector),e=c.find(this.pagerSelector),e.length?(f=e.attr("href"),this.$pager.attr("href",f),this.$pager.find(".postload-pager-icon").empty(),this.$pager.show(),this.$pager.removeClass("postload-pager-loading")):this.$pager.hide(),this.$container.append(d),a("[data-original]").not(".lazy").addClass("lazy").lazyload({threshold:500,event:"lazytrigger2",effect:"fadeIn",skip_invisible:!1}),setTimeout(function(){return a(".lazy").trigger("lazytrigger2"),a(window).trigger("dorender")},250),this.loading=!1},c}(Backbone.View),i=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.defaults={selector:"[data-fullheight]",headerSelector:"header",mobileHeaderSelector:".mobileheader",minHeight:500},c.prototype.initialize=function(b){return this.options=_.extend({},this.defaults,b),this.$window=a(window),this.$header=this.$el.find(this.options.headerSelector),this.$mobileHeader=this.$el.find(this.options.mobileHeaderSelector),this.$els=this.$el.find(this.options.selector),this.$window.on("resize",function(a){return function(){return a.resize()}}(this)),this.$window.on("dorender",function(a){return function(){return a.resize()}}(this)),this.resize()},c.prototype.resize=function(){var b,c;return c=this.$window.height(),b=this.$header.height(),this.$els.each(function(d){return function(e,f){var g,h,i,j;return g=a(f),h=g.parent().find("[data-fullheight-fit]"),j=0,j=g.is('[data-fullheight-underheader="1"]')?Math.max(d.options.minHeight,c-b):Math.max(d.options.minHeight,c),h&&(i=h.height(),i+=parseInt(h.data("fullheight-fit"))||0,i>c&&(j=i)),g.height(j)}}(this))},c}(Backbone.View),r=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.overlaySelector=".block-videoloop-overlay",c.prototype.videoContainerSelector=".block-videoloop-video",c.prototype.videoSelector=".block-videoloop-video-video",c.prototype.ratio=16/9,c.prototype.initialize=function(b){return this.$window=a(window),this.$overlay=this.$el.find(this.overlaySelector),this.$videoContainer=this.$el.find(this.videoContainerSelector),this.$window.on("resize",function(a){return function(){return a.resize()}}(this)),this.$window.on("load",function(a){return function(){return a.resize()}}(this)),this.render(),this.resize()},c.prototype.resize=function(){var a,b,c,d,e,f;return a=this.$videoContainer.find(this.videoSelector),b=this.$el.height(),f=this.$el.width(),e=a.width(),d=a.height(),c=f/b,c<=this.ratio?a.css({width:"auto",height:b+"px",transform:"translate("+.5*(f-e)+"px, 0)"}):a.css({width:"100%",height:"auto",transform:"translate(0, "+.5*(b-d)+"px)"}),this.$videoContainer.height(b),this.$overlay.height(b)},c.prototype.render=function(){var b,c,d,e;return Modernizr.touch||Modernizr.mstouch?void 0:(b=this.$videoContainer.find(this.videoSelector),d=b.data("video-mp4"),e=b.data("video-webm"),c=a('<video class="block-videoloop-video-video" loop="true" preload="auto" autoplay muted><source src="'+d+'" type="video/mp4" /><source src="'+e+'" type="video/webm" /></video>'),b.after(c),b.remove())},c}(Backbone.View),b=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.initialize=function(b){var c,d,e;return this.$el.addClass("enhanced"),this.options=b,this.$window=a(window),this.$header=a("header"),this.$overlay=this.$el.find(".block-carousel-slide-cover-overlay"),this.$prompt=this.$el.find(".block-carousel-prompt"),e=this.$el.find(".slides > li").size()>
31,d=parseInt(this.$el.attr("data-slideshow")),this.$body=a("body"),this.options.special?this.$el.flexslider({animation:"slide",slideshow:d,keyboard:!1,controlNav:!0,manualControls:".map-labels li",directionNav:!0,controlNav:!0,touch:e,useCSS:!1,allowOneSlide:!1,start:function(a){return function(){return a.$window.trigger("dorender")}}(this),before:function(a){return function(){return setTimeout(function(){return a.$window.trigger("dorender"),a.$el.find(".lazy").trigger("appear")},0)}}(this)}):(c={animation:"slide",slideshow:d,keyboard:!1,controlNav:!0,touch:e,video:!1,useCSS:!0,allowOneSlide:!1,controlsContainer:this.$el.find(".block-carousel-nav-container"),start:function(a){return function(){return setTimeout(function(){return a.$window.trigger("dorender"),setTimeout(function(){return a.$el.addClass("enhanced-in")})},0)}}(this),before:function(a){return function(){return setTimeout(function(){return a.$window.trigger("dorender"),a.$el.find(".lazy").trigger("appear")},0)}}(this)},(this.$body.is(".home")&&0===this.options.index||d)&&(c.slideshow=!0,c.slideshowSpeed=5e3,c.pauseOnAction=!0,c.pauseOnHover=!0),this.$el.flexslider(c)),0===this.options.index?this.$prompt.removeClass("hidden"):void 0},c.prototype.resize=function(){var b,c;return c=this.$window.height(),b=this.$header.height(),0===this.options.index&&(c-=Math.max(b,50)),c=Math.max(c,400),this.$el.find(".block-carousel-prompt").each(function(b){return function(b,d){var e,f;return e=a(d),f=e.height(),e.css("top",Math.floor(c-f-20))}}(this)),this.$el.find(".block-carousel-slide-cover:not(.disable-full-height)").height(c),u(),v()},c}(Backbone.View),c=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.initialize=function(b){var c;return this.options=b,this.$window=a(window),this.$header=a("header"),this.$overlay=this.$el.find(".block-carousel-slide-cover-overlay"),this.$prompt=this.$el.find(".block-carousel-prompt"),c=this.$el.find(".slides > li").size()>1,this.$el.flexslider({animation:"slide",slideshow:!1,keyboard:!1,controlNav:!0,useCSS:!1,touch:c,allowOneSlide:!1,manualControls:this.$el.find(".block-custom_carousel-nav-container li"),controlsContainer:this.$el.find(".block-custom_carousel-nav-container"),before:function(a){return function(){return setTimeout(function(){return a.$window.trigger("dorender"),a.$el.find(".lazy").trigger("appear")},0)}}(this)})},c}(Backbone.View),e=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}return x(b,a),b}(Backbone.Model),d=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.model=e,c.prototype.counts=[],c.prototype.fetch=function(b,c,d,e){var f,g;this.trigger("fetch:start"),g=window.begur.ajax_url+"?action=directory",f={},b&&(g+="&term="+b),c&&(g+="&exclude="+c),e&&(g+="&include="+e),d&&(g+="&location="+d),a.get(g,_.bind(function(b){b=a.parseJSON(b),this.counts=b.counts,this.reset(b.posts)},this))},c}(Backbone.Collection),g=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.data={},c.prototype.location={},c.prototype.url="",c.prototype.attributes={"class":"directory-results-single"},c.prototype.initialize=function(){return this.spinner=new Spinner({lines:9,length:4,width:3,radius:6,corners:1,rotate:0,direction:1,color:"#333",speed:1,trail:61,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,top:"50%",left:"50px"}),this.on("fetch:end",this.trackPageview,this),this.on("fetch:end",this.doContent,this)},c.prototype.fetch=function(b){this.url=b,this.spinner.spin(),this.$el.html(this.spinner.el),this.trigger("fetch:start"),a.get(this.url,_.bind(function(b){this.data=a(b).find("#service-card").parent().html(),this.$el.html(this.data),this.$el.find("img").on("load",function(a){return function(){return a.trigger("load")}}(this)),this.trigger("fetch:end")},this)),this.delegateEvents()},c.prototype.trackPageview=function(){var a;a=document.createElement("a"),a.href=this.url},c.prototype.empty=function(){this.$el.empty()},c.prototype.doContent=function(){return this.$el.find(".block-map").each(function(a){return function(a,b){return new j({el:b})}}(this))},c}(Backbone.View),f=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.attributes={"class":"directory-overlay",id:"directory-overlay"},c.prototype.events={"click .close-button":"hideOverlay"},c.prototype.initialize=function(b){this.on("directoryoverlay:show",this.position,this),this.on("directoryoverlay:show",this.listenClicks,this),this.on("directoryoverlay:hide",this.stopListeningClicks,this),this.singleView=b.singleView,this.browser=b.browser,this.$container=b.container,this.$positionElement=b.positionElement,this.singleView.on("fetch:end",this.position,this),this.singleView.on("load",this.position,this),this.$overlayContents=a('<div class="directory-overlay-content background-white"></div>'),this.$el.append(this.$overlayContents),this.$overlayContents.append('<a class="close-button text-gray" href="#">'+window.begur.close+"</a>"),this.$overlayContents.append(this.singleView.$el),this.clickTestBind=_.bind(this.testClickTarget,this)},c.prototype.showOverlay=function(){this.$container.append(this.$el),this.trigger("directoryoverlay:show"),this.delegateEvents()},c.prototype.listenClicks=function(){a(document).on("click",this.clickTestBind)}
3,c.prototype.stopListeningClicks=function(){a(document).off("click",this.clickTestBind)},c.prototype.testClickTarget=function(b){var c,d;return d=a(b.srcElement),c=a(".mfp-wrap"),this.$el.find(d).length||c.find(d).length||d.is('[class*="mfp"]')?void 0:this.hideOverlay()},c.prototype.position=function(){var a,b,c,d,e,f;b=this.browser.$el.find(".di.active"),a=this.$el,f=0,e=0,c=0,d=0,this.$el.css("top",f),c=b.offset().top,e=a.offset().top,d=this.$el.outerHeight(),f=c-.5*this.$el.outerHeight()-e+5,this.$el.css("top",f)},c.prototype.hideOverlay=function(a){this.$el.remove(),this.trigger("directoryoverlay:hide"),a&&a.preventDefault&&a.preventDefault()},c}(Backbone.View),p=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.events={"click .target-term":"onTermSlugClick","click .show-term-list":"expandTermList","click .di":"onItemClick"},c.prototype.activeItem={},c.prototype.initialize=function(){this.$results=a('<ul id="directory-results" style=" position: relative" />'),this.templateItem=_.template(this.$el.find("#template-related-services-list-item").html()),this.collection=new d,this.singleView=new g,this.spinner=new Spinner({lines:9,length:4,width:3,radius:6,corners:1,rotate:0,direction:1,color:"#fff",speed:1,trail:61,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,top:"12px",left:"50px"}),this.overlay=new f({singleView:this.singleView,container:a(".related-services-overlay-container"),browser:this}),this.collection.on("fetch:start",this.showLoader,this),this.collection.on("reset",this.render,this),this.overlay.on("directoryoverlay:hide",this.deactivateItems,this),this.singleView.on("fetch:start",this.overlay.showOverlay,this.overlay),this.collapseTermLists()},c.prototype.collapseTermLists=function(){this.$el.find(".term-list").hide()},c.prototype.expandTermList=function(b){var c,d;return b.preventDefault(),c=a(b.currentTarget),d=c.next(".term-list"),this.$el.find(".show-term-list, .target-term").removeClass("active"),this.$el.find(".term-list").hide(),c.parents("dd").find("> .show-term-list, > .target-term").addClass("active"),c.parents("dd").find("> .term-list").show()},c.prototype.onTermSlugClick=function(b){var c;return b.preventDefault(),c=a(b.currentTarget),this.$el.find(".show-term-list, .target-term").removeClass("active"),this.$el.find(".show-term-list").removeClass("active"),c.parents("dd").find("> .show-term-list, > .target-term").addClass("active"),c.after(this.$results),this.collection.fetch(c.data("directory-slug"),"","",this.$el.data("directory-include"))},c.prototype.showLoader=function(){return this.spinner.spin(),this.$results.html(this.spinner.el)},c.prototype.activateItem=function(){this.deactivateItems(),this.activeItem.addClass("active")},c.prototype.deactivateItems=function(){this.$el.find(".di").removeClass("active")},c.prototype.onItemClick=function(b){var c,d;c=a(b.currentTarget),d=c.find("a").attr("href"),window.isBreakpoint("xs")||window.isBreakpoint("sm")?c.find("a").attr("target","_blank"):(this.activeItem=c,this.activateItem(),this.singleView.fetch(d),b.preventDefault(),b.stopImmediatePropagation())},c.prototype.render=function(){var a;a="",this.collection.each(function(b){a+=this.templateItem(b.toJSON())},this),this.$results.html(a)},c}(Backbone.View),t=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}return x(b,a),b.prototype.events={"click a[href='#slides']":"onShowSlides","click a[href='#slides-map']":"onShowMap"},b.prototype.initialize=function(){return this.$el.find(".yourstay-slider").flexslider({animation:"slide",keyboard:!1,controlNav:!0,directionNav:!0,useCSS:!1,hasSlideshow:!1,allowOneSlide:!1,before:function(a){return function(){return setTimeout(function(){return a.$el.find(".lazy").trigger("appear")},0)}}(this)})},b.prototype.onShowSlides=function(a){return a.preventDefault(),a.stopPropagation(),this.$el.find(".yourstay-slider").flexslider(0)},b.prototype.onShowMap=function(a){var b;return a.preventDefault(),a.stopPropagation(),b=this.$el.find(".yourstay-slider").data("flexslider"),this.$el.find(".yourstay-slider").flexslider(b.last)},b}(Backbone.View),s=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.initialize=function(b){return this.render(b.url,"ajax",{parseAjax:function(b){return b.data=a(b.data).find("#single")},ajaxContentAdded:function(){return new t({el:this.content})}})},c.prototype.render=function(b,c,d){var e;return null==d&&(d={}),a.magnificPopup.instance.isOpen&&a.magnificPopup.close(),e=new Spinner({lines:15,length:5,width:3,radiu
3s:30,corners:1,rotate:0,direction:1,color:"#FFFFFF",speed:2,trail:61,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,right:0}),a.magnificPopup.open({type:c,tLoading:"",closeBtnInside:!0,mainClass:"yourstay-mfp",closeMarkup:'<button title="%title%" class="mfp-close close-button text-white">'+window.begur.close+"</button>",items:{src:b},callbacks:a.extend({},d,{updateStatus:function(b){return"loading"===b.status&&(setTimeout(function(){return a(".mfp-preloader").append(e.el)},0),e.spin()),"ready"===b.status?(e.stop(),a(document).trigger("yourstaycard")):void 0}})})},c}(Backbone.View),l=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}return x(b,a),b.prototype.parse=function(a,b){return a.title=a.name[window.begur.lang],a},b}(Backbone.Model),k=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}return x(b,a),b.prototype.model=l,b.prototype.url=window.begur.mystay_api_url+"/products",b}(Backbone.Collection),m=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.events={"click .target-term":"onTermSlugClick","click .show-term-list":"expandTermList","click .di":"onItemClick"},c.prototype.activeItem={},c.prototype.initialize=function(){this.$results=a('<ul id="directory-results" style=" position: relative" />'),this.templateItem=_.template(this.$el.find("#template-related-services-list-item").html()),this.collection=new k,this.singleView=new g,this.spinner=new Spinner({lines:9,length:4,width:3,radius:6,corners:1,rotate:0,direction:1,color:"#fff",speed:1,trail:61,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,top:"12px",left:"50px"}),this.collection.on("reset sync",this.render,this),this.collapseTermLists()},c.prototype.collapseTermLists=function(){this.$el.find(".term-list").hide()},c.prototype.expandTermList=function(b){var c,d;return b.preventDefault(),c=a(b.currentTarget),d=c.next(".term-list"),this.$el.find(".show-term-list, .target-term").removeClass("active"),this.$el.find(".term-list").hide(),c.parents("dd").find("> .show-term-list, > .target-term").addClass("active"),c.parents("dd").find("> .term-list").show()},c.prototype.onTermSlugClick=function(b){var c;return b.preventDefault(),c=a(b.currentTarget),this.$el.find(".show-term-list, .target-term").removeClass("active"),this.$el.find(".show-term-list").removeClass("active"),c.parents("dd").find("> .show-term-list, > .target-term").addClass("active"),c.after(this.$results),this.showLoader(),this.collection.fetch({data:{category:c.data("mystay-category-id"),byareaslug:this.$el.data("mystay-area-slug"),lang:this.$el.data("mystay-lang-code"),fields:"id,name"},error:_.bind(function(){return console.log("Failed to load products!")})})},c.prototype.showLoader=function(){return this.spinner.spin(),this.$results.html(this.spinner.el)},c.prototype.activateItem=function(){this.deactivateItems(),this.activeItem.addClass("active")},c.prototype.deactivateItems=function(){this.$el.find(".di").removeClass("active")},c.prototype.onItemClick=function(b){var c,d;c=a(b.currentTarget),d=c.find("a").attr("href"),window.isBreakpoint("xs")||window.isBreakpoint("sm")?c.find("a").attr("target","_blank"):(this.activeItem=c,this.activateItem(),new s({url:d}),b.preventDefault(),b.stopImmediatePropagation())},c.prototype.render=function(){var a;a="",this.collection.each(function(b){a+=this.templateItem(b.toJSON())},this),this.$results.html(a)},c}(Backbone.View),h=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return x(c,b),c.prototype.events={"click area":"onAreaClick","click .tab-label":"onTabLabelClick","click .term-filter":"onTermFilterClick","click .target-term":"onTermSlugClick","click .main-term":"onTermSlugClick","click .service-result-list-category":"onTermSlugClick","click .service-result-list-item":"onItemClick","change .navbar-service-select":"onSelect","click #get-current-position":"onSearchCurrentLocation"},c.prototype.initialize=function(){return this.$el.find("#template-service-result-list-item").length?(this.singleView=new g({el:a("#service-result-single").get(0)}),this.collection=new d,this.collection.on("fetch:start",this.showLoader,this),this.$searchForm=a("#service-location-form"),this.spinner=new Spinner({lines:9,length:4,width:3,radiu
3s:6,corners:1,rotate:0,direction:1,color:"#333",speed:1,trail:61,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,top:"12px",left:"50px"}),this.collection.on("fetch:end",this.activateTerm,this),this.singleView.on("fetch:end",this.positionSingle,this),this.singleView.on("load",this.positionSingle,this),this.singleView.on("fetch:end",this.scrollToSingleResult,this),a("body").is(".resizelimitunder")&&this.collection.on("fetch:start",this.scrollToResultSection,this),this.collection.on("reset",this.render,this),this.$itemsHolder=this.$el.find("#service-result-list"),this.$primaryFilters=a(".service-filter-list .term-filter"),this.$browseTerms=a(".navbar-service"),this.templateItem=_.template(this.$el.find("#template-service-result-list-item").html()),this.templateCategory=_.template(this.$el.find("#template-service-result-list-category").html()),this.templateMore=_.template(this.$el.find("#template-service-result-list-more").html()),void a(".navbar-service-menu li").hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")})):this},c.prototype.onSelect=function(){var b,c,d;return b=a(".navbar-service-select option:selected"),d=b.data("directory-slug"),c=b.data("directory-term"),d&&c?(this.activateTerm(c),this.collection.fetch(d,this.getExclude(),this.getLocation())):void 0},c.prototype.onTabLabelClick=function(b){var c,d,e,f;return c=a(b.currentTarget),d=this.$el.find(".tab-label"),e=this.$el.find(".tab"),f=d.index(c),c.hasClass("active")?(d.removeClass("active"),e.removeClass("active")):(d.removeClass("active"),e.removeClass("active"),e.eq(f).addClass("active"),c.addClass("active")),b.preventDefault()},c.prototype.onSearchCurrentLocation=function(a){return a.preventDefault(),navigator.geolocation?navigator.geolocation.getCurrentPosition(function(a){return function(b){var c;return c=[Math.round(1e3*b.coords.latitude)/1e3,Math.round(1e3*b.coords.longitude)/1e3].join(","),a.$searchForm.find('[name="location"]').val(c),a.$searchForm.submit()}}(this)):void 0},c.prototype.onTermFilterClick=function(b){var c,d;c=a(b.currentTarget),d=[],c.toggleClass("active"),this.collection.fetch("",this.getExclude(),this.getLocation()),b.preventDefault()},c.prototype.onAreaClick=function(b){var c,d;c=a(b.target),d=a(c.attr("href")),b.preventDefault(),b.currentTarget=d.get(0),this.onTermFilterClick(b)},c.prototype.activateTerm=function(a){this.$browseTerms.find(".main-term, .target-term").removeClass("active"),this.$browseTerms.find('[data-directory-children*="|'+a+'|"]').addClass("active")},c.prototype.onTermSlugClick=function(b){var c,d,e;c=a(b.currentTarget),b.preventDefault(),e=a(b.currentTarget).data("directory-slug"),d=a(b.currentTarget).data("directory-term"),this.activateTerm(d),this.collection.fetch(e,this.getExclude(),this.getLocation()),a(".directory-secondary-browse .tabs dd").removeClass("hover")},c.prototype.onItemClick=function(b){var c,d;c=a(b.currentTarget),d=c.find("a").attr("href"),window.isBreakpoint("xs")||window.isBreakpoint("sm")?c.find("a").attr("target","_blank"):(this.singleView.fetch(d),this.$el.find(".service-result-list-item").removeClass("active"),c.addClass("active"),this.positionSingle(),b.preventDefault())},c.prototype.getExclude=function(){var b;return b=[],this.$primaryFilters.each(function(c,d){var e;e=a(d),e.hasClass("active")||b.push(a(d).data("directory-term"))}),this.$primaryFilters.length===b.length&&(b=[]),b},c.prototype.getLocation=function(){return this.$searchForm.find('[name="location"]').val()},c.prototype.updateCounts=function(b){this.$el.find(".count").each(_.bind(function(c,d){var e,f,g;e=a(d),g=e.data("directory-count-term"),f=b[g],f||(f=0),e.data("directory-count-total")?f=b.total:e.data("directory-count-hide-parent")&&!f?(e.parent().addClass("filtered"),e.parent().hide()):(e.parent().removeClass("filtered"),e.parent().show()),e.html("("+f+")")},this))},c.prototype.showLoader=function(){this.scrollToResultSection(),this.$itemsHolder.height(this.$itemsHolder.height()),this.spinner.spin(),this.$itemsHolder.html(this.spinner.el),this.singleView.empty()},c.prototype.scrollToSingleResult=function(){var b;b=this.$browseTerms.outerHeight()+30,a("html, body").animate({scrollTop:this.singleView.$el.offset().top-b},{duration:300,easing:"easeInOutExpo"})},c.prototype.scrollToResultSection=function(){a("html, body").animate({scrollTop:this.$browseTerms.offset().top-60},{duration:300,easing:"easeInOutExpo"})},c.prototype.positionSingle=function(){var a,b,c,d;b=this.singleView.$el.parent().parent().innerHeight(),d=this.singleView.$el.outerHeight(),a=this.$el.find(".service-result-list-item.active"),c=a.position().top,c+d>b&&(c=b-d),this.singleView.$el.css("top",c+"px"),this.singleView.$el.css("position","relative")},c.prototype.render=function(b){var c,d,e;return c="",e="",d="",this.updateCounts(this.collection.counts),this.singleView.empty(),this.$itemsHolder.height("auto"),this.collection.each(function(a){e!==a.get("term")&&(d&&d.get("total").count>3&&(c+=this.templateMore(d.toJSON())),c+=this.templateCategory(a.toJSON())),c+=this.templateItem(a.toJSON()),e=a.get("term"),d=a},this),d&&d.get("total").count>3&&(c+=this.templateMore(d.toJSON())),this.$itemsHolder.html(c),a(window).trigger("resize"),this},c}(Backbone.View),jQuery(function(a){return a(function(){var d,e,f;return null==window.begur&&(window.begur={}),this.fullHeightview=new i({el:document,selector:"[data-fullheight]"}),a("[data-verticalcenter-row]").each(function(a){return function(a,b){return new q({el:b})}}(this)),a(".block-carousel:not(.attached-map)").each(function(a){return function(a,c){return new b({el:c,special:!1,index:a})}}(this)),a(".block-custom_carousel-slides").each(function(a){return function(a,b){return new c({el:b})}}(this)),a(".feature").hover(function(b){ 4b.preventDefault(),a(this).toggleClass("hover_effect")}),d=a("#campaing-accordion"),d.find("h4 a").click(function(b){var c,e;b.preventDefault(),e=a(this),c=a(this).parent().next(".accordion-content"),c.is(":hidden")?(d.find(".accordion-content:visible").slideUp("fast",function(){}),c.slideDown("fast",function(){}
4)):c.slideUp("fast",function(){})}),a("body").is(".page-directory")&&new h({el:a("body").get(0)}),a(".block-carousel.flexslider a.feature-corner").each(function(b){0===b&&a(this).closest(".block-carousel.flexslider").prepend(a(this).clone()).html(),a(this).remove()}),a(document).on("click",'a[class^="mfp-"], a[class*=" mfp-"]',function(b){var c,d,e,f,g;return c=a(b.currentTarget),e='<button title="%title%" class="mfp-close close-button text-white">'+window.begur.close+"</button>",c.is(".mfp-iframe")&&(isBreakpoint("xs")?document.location.href=c.attr("href"):a.magnificPopup.open({closeMarkup:e,items:{src:c.attr("href")},type:"iframe",iframe:{patterns:{youtube:{src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"}}}})),c.is(".mfp-video")&&(isBreakpoint("xs")?document.location.href=c.data("video-mp4"):a.magnificPopup.open({closeMarkup:e,preloader:!1,items:{src:c.data("mfp-src")},type:"inline",callbacks:{open:function(){return c.data("mediaElement")&&c.data("mediaElement").play(),a(this.currItem.src+" video").mediaelementplayer({success:function(b,d){return b.addEventListener("play",function(){return a(document).trigger("analytics-event","video-play",d)}),b.addEventListener("pause",function(){return a(document).trigger("analytics-event","video-pause",d)}),b.addEventListener("ended",function(){return a(document).trigger("analytics-event","video-ended",d)}),c.data("mediaElement",b),b.play()}})}}})),c.is(".mfp-map")&&a.magnificPopup.open({closeMarkup:e,items:{src:c.data("mfp-src")},type:"iframe"}),c.is(".mfp-form")&&(g=c.data("mfp-src")||c.attr("href"),g.indexOf("-mfp-form-wrapper")<0&&(d=a(g),f=d.attr("id")+"-mfp-form-wrapper",d.wrap('<div id="'+f+'"></div>'),c.data("mfp-src","#"+f),c.attr("href","#"+f),g="#"+f),a.magnificPopup.open({closeMarkup:e,preloader:!1,type:"inline",mainClass:"mfp-form-wrapper",items:{src:g}})),b.preventDefault()}),a(document).on("click","[data-analytics-event]",function(b){return a(document).trigger("analytics-event",a(this).data("analytics-value"),this)}),a(".arrow-right a").append('<span class="icon-dot-arrow-right"></span>'),a(".arrow-left a").prepend('<span class="icon-dot-arrow-right"></span>'),navigator.userAgent.match(/IEMobile\/10\.0/)&&(e=document.createElement("style"),e.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(e)),a("video:not(.block-videoloop video, .block-crossfade-slide-cover video)").each(function(b){return function(b,c){var d;return d=a(c),d.parent().hasClass("mfp-hide")?void 0:d.mediaelementplayer({success:function(b,c){return b.addEventListener("play",function(){return a(document).trigger("analytics-event","video-play",c)}),b.addEventListener("pause",function(){return a(document).trigger("analytics-event","video-pause",c)}),b.addEventListener("ended",function(){return a(document).trigger("analytics-event","video-ended",c)}),d.data("mediaElement",b)}})}}(this)),a(".block-videoloop").each(function(a){return function(a,b){return new r({el:b,index:a})}}(this)),a(".block-video, .block-image, .block-videoloop").each(function(b){return function(b,c){return setTimeout(function(){return a(c).addClass("enhanced enhanced-in")},300)}}(this)),a(".block-map").each(function(a){return function(a,b){return new j({el:b})}}(this)),a("[data-postload-container]").each(function(a){return function(a,b){return new n({el:b,index:a})}}(this)),a("[data-small-service-browser]").each(function(a){return function(a,b){return new p({el:b})}}(this)),a("[data-mystay-service-browser]").each(function(a){return function(a,b){return new m({el:b})}}(this)),a("[data-mystay-service-preview]").each(function(a){return function(a,b){return new t({el:b})}}(this)),a("[data-mystay-service-modal]").click(function(b){return b.preventDefault(),new s({url:a(this).attr("href")})}),a("html").each(function(a){return function(a,b){return new o({el:b,index:a})}}(this)),a('a[href^="#"]:not([data-toggle],a[class^="mfp-"], a[class*=" mfp-"])').click(function(b){var c,d;return d=a(this).attr("href"),c=a(d),c.length?(b.preventDefault(),a("html, body").animate({scrollTop:a(d).offset().top},1e3)):void 0}),a(document).on("click","[data-click-url]",function(b){var c,d;return c=a(this).data("click-url"),d=a(this).data("target"),"_blank"===d?window.open(c,"_blank"):document.location.href=c,b.preventDefault()}),v(),a(".pinimage[data-original]").not(".lazy").addClass("lazy").lazyload({event:"loadpinimages",skip_invisible:!1}),a("[data-original]").not(".lazy").addClass("lazy").lazyload({failure_limit:20,threshold:300,effect:"fadeIn",skip_invisible:!1}),a("[data-fullheight-underheader='1'][data-original], [data-fullheight-underheader='1'][data-original]").trigger("appear"),a(window).load(function(){return setTimeout(function(){return a(".lazy.pinimage").trigger("loadpinimages")},3e3)}),a("header").waypoint("sticky",{offset:-166}),Modernizr.touch||Modernizr.mstouch?void 0:(f=skrollr.init({keyframe:function(b,c,d){var e,f;return e=a(b),f=e.find("video"),f.length?e.is(".skrollable-between")?f.get(0).play():f.get(0).pause():void 0}}),a(window).on("dorender",function(){return f.refresh()}))})})}).call(this);
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.