!function(a){var c=function(t,k,h,q){var n=0,r=0,j=h.length,o,f,e=false,g=false,p;for(;n0){e=true;continue}if(f===0||!!f){e=true;continue}}return false}if(!o.key){return false}f=DDG.getProperty(t,o.key);g=true;if(f){if(o.match){var m=f.match(o.match);p=!!m;if(p&&o.strict){var s=DDG.get_query().match(o.match);p=(m[0].toLowerCase()==s[0].toLowerCase())}if(!p){return false}}else{if($.isArray(f)){f=f.join(" ")}p=DDG.isRelevant(f,o.skip_words||k.skip_words,o.min_length,!!o.strict)}}else{p=false}if(p){r++}else{if(!q){return false}}}if(r===0){if(e&&!g){return true}return false}return true};var b=function(f,e){var g,h=e[e.type||"primary"];if(!h){return true}g=c(f,e,h,true);return g};a.DDH={spice_tabs:{},spice_objects:{},add:function(f){if(!f.id){return}if(!f.data){return}if(f.require){var g=f.require;delete f.require;DDG.require(g,a.DDH.add.bind(a.DDH,f));return}if(!f.allowMultipleCalls&&this.spice_objects[f.id]){return null}if(a.DDH[f.id]&&a.DDH[f.id].build&&$.isFunction(a.DDH[f.id].build)){var e=a.DDH[f.id].build(f);if(e===false||($.type(e)==="object"&&$.isEmptyObject(e))){return}else{$.extend(f,e)}}if(a.DDH[f.id]&&a.DDH[f.id].build_async&&$.isFunction(a.DDH[f.id].build_async)){a.DDH[f.id].build_async(f,function(j){var i=a.DDH._build_ops(j);if(i){a.DDH.spice_tabs[i.id]=DDG.duckbar.add(i)}})}else{var h=a.DDH._build_ops(f);if(h){a.DDH.spice_tabs[h.id]=DDG.duckbar.add(h)}}},_build_ops:function(f){f.templates=f.templates||{};f.meta=f.meta||{};if(a.DDH[f.id]&&a.DDH[f.id].meta){f.meta=$.extend(a.DDH[f.id].meta,f.meta)}if(f.meta.tab){f.name=f.meta.tab}var g=f.normalize||null,j=$.isArray(f.data),h,t=[],u,s=f.relevancy,e=DDG.get_query(),r=[],o=[];if(j){if(s){f.meta.idField=s.dup}for(var m=0,k=f.data.length;m0){for(m=0;m0){for(m=0;m1&&f.sort_fields&&f.sort_default){var p=null;if(typeof f.sort_default==="string"){p=f.sort_default}else{if(s&&s.type){p=f.sort_default[s.type]}}if(p&&p.length>0){f.data.sort(DDG.getProperty(f.sort_fields,p))}else{}}}else{if(s){if(!b(f.data,s)){DDG.duckbar.failed(f.id);return}}if(g){u=g(f.data);if(u){f.data=$.extend({},f.data,u)}else{DDG.duckbar.failed(f.id);return}}}if(f.id==="cheat_sheets"){f.meta.id=f.from}else{f.meta.id=f.id}a.DDH.spice_objects[f.id]=a.DDH.spice_objects[f.id]||{};return f},failed:function(e){return DDG.duckbar.failed(e)},getDOM:function(g){var f=this.spice_tabs[g],e=f&&f.view&&f.view.$el;return e||$()},selectNextItem:function(f){var e=this.spice_tabs[f];return e&&e.view&&e.view.selectNextItem&&e.view.selectNextItem()},registerHelper:function(f,e){Handlebars.registerHelper(f,e)}};a.Spice=a.DDH;a.DDH.sharedir_map=this.spice_paths?$.parseJSON(spice_paths):{}}(window);Spice.names=["airlines","alternative_to","amazon","astrobin_apod","aur","bible","brainy_quote","caniuse_lists","code_search","coupons","cryptocurrency","currency","cve_summary","detect_lang","dictionary_definition","dns","dogo_books","dogo_movies","dogo_news","duck_say","economic_indicators","emojipedia","etsy","expand_url","first_robotics_team_info","flash_version","flights_route","forecast","git_book_status","github","github_status","glassdoor","gravatar","grunt","gulp","hacker_news","haxelib","hayoo","hex","holiday","images","indeed_jobs","is_it_up","islamic_prayer_times","keybase","launchbug","launchpad_project","magic_the_gathering","maps_maps","maps_places","maven","meta_cpan","metar","minecraft_status","near_earth_objects","newint","news","npm","nutrition","nxt_account","octopart","open_nic","package_tracking","packagist","people_in_space","playing_cards","plos","product_hunt","public_holidays","pwned","quandl_fundamentals","quote_of_the_day","rain","rand_pos","rand_word","recipes","rfc","rhymes","ruby_gems","rust_cargo","shorten","skyscanner_flight_search","sports","sports_mlb_games","sports_nfl_games","statista","stocks","sun_rise_set","symbolab","syntax","tfl_status","thesaurus","tides","time","tor_node","transit_septa","travis_status","tvmaze_previousepisode","twitch_featured","twitter","videos","whois","word_of_the_day","xkcd_display","yacht_specs","yoga_asanas"];(function(a){var e=function(i){var h=null,g=0;var f=function(j){if(j){h=j}var k=window["ddg_spice_"+i];if(k===f){if(++g<50){window.setTimeout(k,19)}else{}}else{if(h){k(h)}else{}}};return f};var c;for(var b=0;bc}})}(DDG);!function(b){var a=b.Models.Base,e="fbs",c=500,f=50;b.Models.Feedback=function(g){this.rating=-1;this.comment="";this.endpoint="";a.call(this,g);this.submitting=false;this.success=false;this.error=false};b.Models.Feedback.prototype=$.extend({},a.prototype,{send:function(k){var n=this._prepareTextFeedback(k),i=this.endpoint||b.services.getURL("reports");if(k&&k.type&&k.type==="images"){i=this.endpoint||b.services.getURL("imageReports");n=this._prepareImageFeedback(k)}n=$.extend({q:b.get_query(),safe:b.settings.get("kp")},n);var g=k.type||k.looking_for,m=k.rating===1?"positive":"negative",j;if(k.type==="images"){j=k.reason}else{if(k.looking_for==="ads"){j=k.ads_issue}else{j=k.category_issue}}var h=[e,m,g];if(j){h.push(j)}b.pixel.fire.apply(b.pixel,h);if(k.comment||k.looking_for_other){this._sendRequest(i,n)}else{this.set("success",true)}},_prepareImageFeedback:function(g){return $.extend({image_url:this.image,thumb_url:this.thumbnail},g||{})},_prepareTextFeedback:function(g){this.comment=this._shortenString(this.comment,c);this.looking_for_other=this._shortenString(this.looking_for_other,f);this.ads_issue_other=this._shortenString(this.ads_issue_other,f);if(b.search.userLocationExp){this.comment+=" | ulexp="+b.search.userLocationExp}return $.extend({rating:this.rating,comment:this.comment,browser:navigator.platform+" "+b.device.browserName,mobile:b.device.isMobile?1:0,atb:JSON.stringify(b.opensearch.installed),ct:window.ct||"",t:b.history.get("t")||"",upstream:b.search&&b.search.src||"",df:b.search&&b.search.dateFilterId||"",result_count:b.search&&b.search.getResultCount()||0,spell:window.dns||"",first_src:b.first_source||"",lang:b.settings.get("kad"),region:b.settings.get("kl")},g||{})},_sendRequest:function(g,h){this.set("submitting",true);this.set("success",false);this.set("error",false);$.ajax({url:g,type:"POST",data:h,success:function(){this.set("submitting",false);this.set("success",true)}.bind(this),error:function(i,j){b.pixel.fire("fbf",h);this.set("submitting",false);this.set("error",j)}.bind(this)})},_shortenString:function(h,g){if(h&&h.length>g){return h.slice(g-3)+"..."}return h}})}(DDG);!function(a){DDG.Data.FeedbackIssues={ads:[{text:lp("feedback form","Ad is malware"),val:"malware"},{text:lp("feedback form","Ad is inappropriate"),val:"inappropriate"},{text:lp("feedback form","Ad is suspicious"),val:"suspicious"},{text:lp("feedback form","Ad is irrelevant"),val:"irrelevant"},{text:lp("feedback form","Ad is annoying"),val:"annoying"}],organics:[{text:"Search terms are ignored or changed",val:"termsIgnored"},{text:"The results are outdated",val:"linksOld"},{text:"There are no dates next to results",val:"missingDates"},{text:"Relevant results are missing",val:"missingLinks"},{text:"The results aren't relevant",val:"irrelevant"}],filters:[{text:"I want a past year date fiter",val:"wantYear"},{text:"I want a custom date range filter",val:"wantCustom"}],wikipedia:[{text:"This isn't relevant",val:"irrelevant"},{text:"Wrong image is shown",val:"wrongImage"},{text:"Words or numbers are missing",val:"dataMissing"},{text:"Information is outdated",val:"outdated"},{text:"This isn't useful",val:"infoNotShown"}],about:[{text:"This isn't relevant",val:"irrelevant"},{text:"Information is outdated",val:"outdated"},{text:"Information is missing",val:"dataMissing"},{text:"There are formatting issues",val:"badFormatting"}],places_single:[{text:"This isn't relevant",val:"irrelevant"},{text:"This place is incorrect",val:"wrongPlace"},{text:"This place is too far away",val:"badProximity"},{text:"This place is closed",val:"closed"},{text:"The hours aren't listed",val:"missingHours"},{text:"The website isn't listed",val:"missingWebsite"}],places_multiple:[{text:"This isn't relevant",val:"irrelevant"},{text:"These places are too far away",val:"badProximity"},{text:"These places are incorrect",val:"wrongPlace"}],maps:[{text:"This isn't relevant",val:"irrelevant"},{text:"The location is wrong",val:"wrongLocation"}],news:[{text:"This isn't relevant",val:"irrelevant"},{text:"What I'm looking for isn't shown",val:"missingArticles"},{text:"The articles aren't relevant",val:"articlesIrrelevant"},{text:"I don't trust these news sources",val:"untrusted"}],videos:[{text:"This isn't relevant",val:"videosIrrelevant"},{text:"I wasn't looking for videos",val:"irrelevant"},{text:"What I'm looking for isn't shown",val:"missingVideos"},{text:"I don't want videos from YouTube",val:"singleSource"}],images:[{text:"This isn't relevant",val:"iamgesIrrelevant"},{text:"I wasn't looking for images",val:"irrelevant"},{text:"What I'm looking for isn't shown",val:"missingImages"}],forecast:[{text:"The location is wrong",val:"wrongLocation"}]}}(DDG);!function(b){var a=b.Pages.Base;b.Pages.SERP=function(c){this._checkForForceReload();this.unsafeSearch=c.showSafeSearch;this.sideMenuOps.showFeedbackIcons=b.device.isMobile;a.call(this,c);this.ads=new b.Models.Ads({});b.device.on("scroll",this._onScroll.bind(this));window.onpageshow=this._onPageShow.bind(this);document.onreadystatechange=this._onReadyStateChange.bind(this);b.history.enablePushState(function(e,g){if(!b.duckbar.isDone){return false}var f=window.history&&window.history.state;return e==="ia"||(e==="iax"&&b.history.get("ia")!=="cheatsheet")||(e==="iaxm")||(e==="iai"&&f&&f.iaxm)||(e==="iai"&&b.device.isMobile&&(!f||!f.iai)||(e==="iai"&&b.device.isMobile&&!g&&f&&f.iai))});b.history.on("popstate",this._onHistoryPopState.bind(this));b.deep.on("change:started",this._onDeepStarted.bind(this));b.deep.on("change:finished",this._onDeepFinished.bind(this));b.deep.on("add-separator",this._addDeepSeparator.bind(this));b.deep.on("change:isOutOfResults",this._showFooter.bind(this))};b.Pages.SERP.prototype=$.extend({},a.prototype,{pageType:"serp",liveUpdater:true,sideMenuOps:{twitterLink:true,hideSettings:true},showingSafeSearch:0,ready:function(){a.prototype.ready.call(this);this.keyboard.enableSERPShortcuts=1;if(w.is_twitter){this.views.twitter=new b.Views.TwitterEasterEgg({username:w.is_twitter,"$el":$(".js-header-logo")})}this.initHeader();this.initSearchFilters();this.initSERPMessages();this.initFooter();this.views.ads=new b.Views.Ads({model:this.ads,"$el":$(".js-results-ads")});if(b.device.isMobile&&b.opensearch.isExperiment("mobile_cards","b")){b.$html.addClass("mobile-cards-experiment")}var c=$(".js-lazyload-favicon");for(var e=0,g;g=c[e];e++){b.ImageLoader.register(g,b.services.getURL("icons")+g.getAttribute("data-src"),"scrollY")}b.duckbar.onReady();if(b.device.isDesktop){this._appendSerpBadgeDesktop()}else{this._appendSerpBannerMobile()}if(!this.views.atb&&!this.views.newsletter&&!this.views.survey&&b.survey.shouldShowBadge()){this.views.survey=new b.Views.SurveyBadge({appendTo:".js-site-wrapper"});this.views.survey.show();$("body").on("click.atb",function(){this.views.survey&&this.views.survey.hide();$("body").off("click.atb")}.bind(this))}},showMessage:function(e,c){if(e==="spelling"&&!b.search.spelling){b.search.spelling=new b.Models.Search.Spelling(c)}this.views.messages&&this.views.messages.showMessage(e,c)},fallbackToDefaultAds:function(){this.views.ads&&this.views.ads.fallbackToDefault()},initHeader:function(){if(b.settings.isDefault("ko")&&b.device.hasFixedHeaderSupport){this.views.header=new b.Views.Header({"$el":$(".js-header-wrap"),model:new b.Models.Header()})}if(b.history.get("atb")){this._updateLogoParams({atb:b.history.get("atb")})}},initFooter:function(){b.footer=new b.Models.Footer();this.views.footer=new b.Views.Footer({model:b.footer,after:$(".js-site-wrapper")})},initSearchFilters:function(){this.views.searchFilters=new b.Views.Dropdowns.FilterContainer({$el:$(".js-search-filters")})},initSERPMessages:function(){this.views.messages=new b.Views.SERPMessages({ads:this.ads,search:this.search,searchbar:this.searchbar,messages:{safeSearch:!!this.unsafeSearch,siteSearch:b.search.isSiteQuery},"$el":$("#message")});this.views.messages.on("clear-filters",function(){b.settings.region.reset();b.search.requery()})},_showFooter:function(){if(!b.settings.isDefault("kav")&&b.deep.isOutOfResults){b.footer.set("visible",true)}},_onDeepStarted:function(){b.duckbar.show("deep_start");if(b.settings.updater){b.settings.updater.loadFonts()}b.searchExperiments.assign("otlexp");b.searchExperiments.assign("demexp")},_onDeepFinished:function(){b.duckbar.showOrganicModules();b.duckbar.show("deep_end");b.duckbar.menu.showNewTabs();this.views.messages&&this.views.messages.ready();$(".js-results,.js-results-ads,.js-sidebar-ads").removeClass("is-hidden");this.fallbackToDefaultAds();b.ImageLoader.registerAll($(".js-lazyload-icons"),"scrollY");this._showFeedbackBtn();var r={br:b.device.pixelBrowserName,bv:b.device.pixelBrowserVersion};if(w.sourceTag){r.st=w.sourceTag}if(w.df){r.df=w.df}if(b.duckbar.activeTabId!=="web"){r.iao=1}r.u=b.search.src;var p=b.settings.region,k=!p.getPrevId()&&p.getId()===p.getDefaultId();if(k){r.nr=k?1:0}if(this.ads.hasAds()){r.adx=this.ads.adx}if(this.ads.adxExperiment){r.adx_name=this.ads.adxExperiment}var e=".js-sitelink-comma";if(this.ads.hasGoodAds()&&$(e).length){this._hideOverflownAdSitelinks()}if(!b.device.isMobile){$(".result--ad").each(function(t){var s=$(this).attr("id");new b.Views.Feedback.ReportAdsButton({appendTo:"#"+s+" .result__extras",whichAd:t})})}if(!b.settings.isDefault("kz")){r.nia=1}if(!b.settings.isDefault("kae")){r.kae=b.settings.get("kae")}r.pcs=0;if(window.matchMedia("(prefers-color-scheme: dark)").matches){r.pcs="d"}else{if(window.matchMedia("(prefers-color-scheme: light)").matches){r.pcs="l"}}r.rl=rl;r.dl=dl;r.rc=b.deep.getResultCount();r.ck=d.cookie&&d.cookie!==""?1:0;var n=b.Data.languages.resultLanguages,m=b.Data.languages.adLanguages,q=[],g=[];for(var f in n){q.push(f+":"+n[f].length)}for(var j in m){g.push(j+":"+m[j])}b.Data.languages.resultLanguagesPixelData=r.oll=q.join(",");if(g.length){b.Data.languages.adLanguagesPixelData=r.adll=g.join(",")}var c=b.backData.getId(),o=b.backData.getData();if(c){for(var i in o){if(typeof o[i]==="object"){for(var h in o[i]){r["bkd_"+i+"_"+h]=o[i][h]}}else{r["bkd_"+i]=o[i]}}}if(b.abc){r.abc=b.abc}b.pixel.fire("l",b.device.pixelId,b.settings.region.hasRegion()?"re":"wt",$.extend({},r,{atbi:this.canShowAddToBrowser(),i:this.isInstalled()}));setTimeout(function(){var t=b.duckbar.activeTabId?b.duckbar.getActiveTab().pixelId:b.duckbar.placeholder?"pl"+b.duckbar.placeholder.from:null;if(b.search.deepAnswerIAs&&Object.keys(b.search.deepAnswerIAs).length){var s={};if(t&&t!=="web"){s.oi=t}if(b.search.spelling){s.sp=1}b.pixel.fire("iaui",$.extend(s,b.search.deepAnswerIAs))}},500);b.perf.reportResource(this.pageType,"d.js")},_showFeedbackBtn:function(){if(this.views.feedback){return}this.views.feedback=new b.Views.Feedback.Button({appendTo:b.device.isDesktop?".js-feedback-btn-wrap":".js-footer-feedback-btn-wrap",noFaces:b.device.isMobileDevice,clickPixel:b.device.isMobileDevice?"fbpm":false})},_onScroll:function(f){if(!b.settings.isDefault("kav")){nrb(f)}if(this.onboardingTest.animateModalIllustration&&b.tParam.fromHomepage()&&this.canShowAddToBrowser()&&!b.device.isMobileDevice&&!this.views.atb.dismissed){var c=(b.device.height/2);if(this.views.atb.animated&&b.device.scrollTop()>c){this.views.atb.unAnimate()}else{if(this.views.atb.animated===false&&b.device.scrollTop()m);if(!(h&&t.length)){return}var s=g.find(e+","+k);s=s.get().reverse();for(var j=0;jm);if(!(p||r)){return}q.addClass("is-hidden");if(p){break}}})},_appendSerpBadgeDesktop:function(){if(b.addToBrowser.canShowOnDesktopSerp()){this.views.atb=new b.Views.AddToBrowserBadge({impressionPixel:"atbsi",clickPixel:"atbsc",xPixel:"atbsx",topRight:true,serp:true,entryPoint:"sr",appendTo:".js-site-wrapper",hideOnClick:true});$("body").on("click.atb",function(){this.views.atb.hide();$("body").off("click.atb")}.bind(this))}else{if(b.newsletter.shouldShowBadge()){this.views.newsletter=new b.Views.SubscribeToNewsletterBadge({appendTo:".js-site-wrapper",serp:true});this.views.newsletter.show();$("body").on("click.atb",function(){this.views.newsletter&&this.views.newsletter.hide();$("body").off("click.atb")}.bind(this));b.pixel.fire("nli",b.newsletter.group,"serp")}}},_updateLogoParams:function(f){var e=$(".js-header-logo"),c=e&&e.length&&e.attr("href");if(c){c+=c.match(/\?/)?"&":"?";c+=$.param(f);e.attr("href",c)}},_appendSerpBannerMobile:function(){if(b.addToBrowser.canShowOnMobileSerp()){this.views.atb=new b.Views.AddToBrowserBanner({impressionPixel:"atbsi",clickPixel:"atbsc",xPixel:"atbsx",template:"add_to_browser_button_serp",serp:true,entryPoint:"sr",appendTo:".js-site-wrapper",hideOnClick:true});$("body").on("click.atb",function(){this.views.atb.hide();$("body").off("click.atb")}.bind(this))}},_addDeepSeparator:function(){new b.Views.Verticals.VerticalSeparator({appendTo:$(".js-results"),pageNumber:b.deep.pageNumber})}})}(DDG);!function(e){var c=e.Models.Base,b,h=412,f=312,a=12;e.Models.Answer=b=function(k){c.call(this,k);this.templates=new e.Models.AnswerTemplates(k.templates);this.meta=new e.Models.AnswerMeta($.extend(k.meta||{},{options:this.templates.options,elClass:this.templates.elClass}));this.name=this.name||this.duckbar_topic||this.topic||"Answer";if(this.name==="qa"){this.name="Q/A"}this.nameId=e.duckbar.getNameId(this.name);this.id=this.id||this.nameId;this.pixelId=this.pixel_id||this.pixelId||this.meta.id||this.from||this.id;this.pixelId=this.pixelId.toLowerCase();this.type=this.type||"new";var j=e.stem(this.name),o=new RegExp("\\b("+this.name+"|"+j+")\\b","i"),n=decodeURIComponentSafe(this.queryEncoded),m=n.match(o);this.query=n.replace(o,"");this.queryMatch=m&&m.length;this.signal=this.signal||"low";if(this.rt!=="A"&&this.rt!=="C"&&this.rt!=="D"&&this.queryMatch){this.signal="high"}if(this.signal!=="high"&&this.signal!=="medium"){this.signal="low"}if(this.type==="static"){this.signal="low"}if(e.duckpan){this.signal="high"}this.items=[];this.itemsById={};this.itemsOnMap=[];this.topics=[];this.topicsById={};this.canExpand=true;this.expanded=false;this.isMapExpanded=false;this.isLocalRequery=(e.history.get("requery")==="1")&&e.device.isDesktop&&(this.id==="maps_places"||this.id==="maps_maps");if(k.parameters){this.parameters=k.parameters.map(function(p){return new e.Models.AnswerSelectLists.Parameter(p)})}if(k.sources){this.sources=new e.Models.AnswerSelectLists.Source({values:k.sources,parameters:this.parameters})}this.pageNo=0};b.prototype=$.extend({},c.prototype,{addItems:function(t){this.pageNo++;this.set("deferredURL");this.set("isLoading");if(!t||$.isEmptyObject(t)){t=[]}else{if(!$.isArray(t)){t=[t]}}var q=this.answerItemModel||this.model||"Base",j=this.meta.idField,n=this.meta.topicField||"answerItemTopic",k=0,o=0;if(q&&q.allowModuleIA&&q.id==="videos"){q="Video"}if(!e.Models.AnswerItems[q]){q="Base"}if(q==="FatheadListItem"){t=i(t,this)}for(var m=0;m1?1:0;j.u=this.meta.sourceName}if(this.id==="news"){if(this.usingOrganicBackfill){j.bf=1}}return j},fire:function(j,k){k=$.extend(k||{},this.getPixelData());e.pixel.fire(j,this.pixelId,this.openType,k)},engaged:function(j){this.fire("iae",j)},clickedExternalLink:function(j){e.backData.set(this.pixelId,{adx_name:DDG.page.ads.adxExperiment,ot:this.openType,sexp:DDG.searchExperiments.getBackButtonData(),timestamp:DDG.vqd.timestamp});this.fire("iag",j)},_addItemsFromResponse:function(j){if(!j){return}if(!($.isEmptyObject(j))){this.meta.update({next:j.next,searchTerm:j.searchTerm,responseType:j.responseType,queryParsed:j.parsed_query,query:j.query,sourceUrl:j.url})}this.addItems(j.results||j,j.ads)},_updateCanExpand:function(){var j;if(e.device.isMobile){j=!this.meta.disableMobileGrid}else{if(this.meta.disableModeSwitch||this.meta.itemsExpand||this.meta.itemsWidthVaries){j=false}else{if(this.items.length>=(this.meta.minItemsForModeSwitch||a)||this.canLoadMore()){j=true}else{j=false}}}this.set("canExpand",j)},_shouldBlockAdultResults:function(){return(this.id==="images"||this.id==="videos")&&e.search.isAdultQuery&&e.settings.safeSearch.isStrict()},_getSafeSearchURLParam:function(){var j;if(this.id==="news"||this.id==="videos"){j=e.settings.get("kp")}else{j=e.settings.safeSearch.isOff()?-1:1}if(this.openType==="f"){j=1}return"&p="+j},requery:function(k){if(!this.sources){return}this.set("isRequerying",1);this.meta.reset();if(k&&k.query){this.meta.update({query:k.query})}if(this.selectedItem){this.selectedItem.unselect()}if(this._shouldBlockAdultResults()){return this._onRequery({results:[]})}if(this.failed){this.set("failed")}var j=this.sources.getRequeryURL(k);if(this.safeSearch){j+=this._getSafeSearchURLParam()}if(this.date){j+="&df="+e.search.dateFilterId}$.ajax({type:"GET",url:j,dataType:"json",async:true,success:this._onRequery.bind(this),error:this._onLoadError.bind(this)})},_onDeferredLoaded:function(j){this.set("isLoading");if((!j||!j.results||!j.results.length)&&this._hasDeferredQueries()){this.set("isLoading",0);this.set("deferredQuery",this.deferredContent.queryEncoded[0]);return this.loadDeferred()}if(!this.deferredURL){return}this.set("deferredURL");this._addItemsFromResponse(j)},_onRequery:function(j){this.set("isRequerying");this.set("selectedItem");this.items.forEach(function(k){k.removeAllListeners()});this.items=[];this.itemsById={};this.itemsOnMap=[];this._addItemsFromResponse(j);this.set("expanded",1)},_onLoadedMore:function(j){this.set("isLoading");this._addItemsFromResponse(j);var k={l:j.results.length,p:this.pageNo};this.fire("lm",k)},_onLoadError:function(){this.set("isLoading");this.set("isRequerying");if(!this.items.length){this.set("failed",1)}},_onItemSelectedChanged:function(j){delete this._selectedItemIdx;if(j&&j.selected){if(this.highlightedItem){this.highlightedItem.unhighlight()}if(this.selectedItem&&j!==this.selectedItem){this._pendingSelectedItem=j;this.selectedItem.unselect()}this.set("selectedItem",j)}else{if(this._pendingSelectedItem){delete this._pendingSelectedItem}else{this.set("selectedItem")}}},_onItemHighlightedChanged:function(j){delete this._highlightedItemIdx;if(j&&j.highlighted){if(this.highlightedItem&&j!==this.highlightedItem){this._pendingHighlightedItem=j;this.highlightedItem.unhighlight()}this.set("highlightedItem",j)}else{if(this._pendingHighlightedItem){delete this._pendingHighlightedItem}else{this.set("highlightedItem")}}},_onTopicSelectedChanged:function(j){if(j&&j.selected){if(this.selectedTopic&&j!==this.selectedTopic){this.selectedTopic.unselect()}this.set("selectedTopic",j)}else{if(j===this.selectedTopic&&!j.selected){this.set("selectedTopic")}}},_onTopicHighlightedChanged:function(j){if(j&&j.highlighted){if(this.highlightedTopic&&j!==this.highlightedTopic){this.highlightedTopic.unhighlight()}this.set("highlightedTopic",j)}else{if(j===this.highlightedTopic&&!j.highlighted){this.set("highlightedTopic")}}}});function i(r,u){if(!r||!r.length||!r[0].RelatedTopics){return r}var t=[],q=u.name.toLowerCase(),k=r[0].RelatedTopics,s,m,n;for(var p=0;p-1){this.items.splice(c,1);this._emitChange("items")}},select:function(){this.unhighlight();this.set("selected",1)},unselect:function(){this.set("selected")},highlight:function(){if(this.selected){return}this.set("highlighted",1)},unhighlight:function(){this.set("highlighted")},engaged:function(){this.set("engaged",1)}})}(DDG);!function(c){var a=c.Models.Base,b={news:1,images:1,videos:1,web:1};c.Models.AnswerBarMenuItem=function(e){this._pixel=e.pixel;a.call(this,e);if(!b[this.pixelId]){this.on("change:visible",this._onVisibleChanged.bind(this))}};c.Models.AnswerBarMenuItem.prototype=$.extend({},a.prototype,{toggle:function(){if(this.active){return}this.set("active",!this.active)},_onVisibleChanged:function(){if(this.visible){this.getInstance("pixel").fire("ias",this.pixelId)}}})}(DDG);!function(b){var a=b.Models.Base;b.Models.AnswerBarMenu=function(c){this.items=[];this.itemsById={};this._numStaticItems=0;a.call(this,c)};b.Models.AnswerBarMenu.prototype=$.extend({},a.prototype,{addAnswer:function(e){if(!e||this.itemsById[e.id]||(this._showingMapTab&&e.hasMap)){return}var c=new b.Models.AnswerBarMenuItem({id:e.id,name:(e.hasMap)?"Maps":e.name,type:e.type,pixelId:e.pixelId,hasMap:e.hasMap});if(e.hasMap){this._showingMapTab=true}if(c.type==="static"){this.items.splice(this._numStaticItems,0,c);this._numStaticItems+=1}else{this.items.push(c)}this.itemsById[c.id]=c;this._emitChange("items");if(c.type==="static"||this._showingNewTabs){c.set("visible",true)}c.on("change:active",this._onItemActiveChange.bind(this,c.id))},removeAnswer:function(g){var c=false;for(var e in this.items){var f=this.items[e];if(f.id===g&&f.type!=="static"&&!f.hasMap){c=e;break}}if(c){this.items.splice(c,1);delete this.itemsById[g];this._emitChange("items")}},showNewTabs:function(){this._showingNewTabs=true;this.items.forEach(function(c){c.set("visible",true)})},setActive:function(c){if(this._lastActiveId===c||!this.itemsById[c]){return}this._lastActiveId=c;this.itemsById[c].set({active:true,visible:true});this.emit("set-active",c)},openNext:function(e){var g,c;for(var f=0;f-1&&this.canShowSideModules()){return false}return true},isTopModule:function(k){return j[k]||(h[k]&&!this.canShowSideModules())},canShowSideModules:function(){var m=this.getInstance("device"),k=this.getInstance("settings");return m.hasMinDesktopWidth&&k.isDefault("km")&&k.isDefault("kw")&&k.isDefault("kz")},canShowModule:function(m){var k=this.getModule(m);return k.pixelId!=="maps_places_multiple"||k.signal!=="low"},getModule:function(k){if(k==="web"){k=this.defaultId}return this.modules[k]},getModules:function(n){var o=[],p;for(var k in this.modules){p=this.modules[k];if(n&&p.position===n){o.push(p)}if(!n){o.push(p)}}return o},getModuleInfo:function(k){return this.getModules(k).map(function(m){return m.pixelId+":"+m.model.openType+":"+m.signal})},setDefaultTopModule:function(k){this.set("defaultId",k)},setOrganicModule:function(k){this.set("organicId",k)},setOpenType:function(n,k){var m=this.getModule(n);if(m){m.model.openType=k}},_appendModel:function(n){var o=b[n.id]||i;$.extend(n,o);var k={};if(n.answerType&&e.Models.Answers[n.answerType]){k=new e.Models.Answers[n.answerType](n)}else{k=new e.Models.Answer(n)}if(n.deferredContent||!n.deferredURL){k.meta.update(n.meta);if(n.deferredContent){k.deferredContent=n.deferredContent}else{var m=$.isArray(n.data)?n.data:[n.data||n];k.addItems(m,n.ads)}}k.openType=this.getInstance("openPixel").getOpenType(n,{autoOpened:!this._currentIA,qsOpened:this._currentIA});n.pixelId=k.pixelId;n.model=k},_getModulePosition:function(m,k){if(f[m]&&k.isNavigational){return e.Models.ModulesPositions.ORGANIC}return(h[m]&&this.canShowSideModules())?e.Models.ModulesPositions.SIDE:e.Models.ModulesPositions.TOP}})}(DDG);!function(b){var a=b.Views.Base;b.Views.ModulesLayout=function(c){this._selectors=c.selectors?this._combineSelectors(c.selectors):{};this._selectorCache={};this._verticalId=c.verticalId;this.menu=c.menu;a.call(this,c);this.bindEvents([[b.deep,"change:finished",this._render],[this.model,"change:modules",this._render],[this.model,"change:organicId",this._renderOrganicModule],[this.model,"change:autoOpenedId",this._showPendingTabs],[this.model,"change:expandedMapId",this._createMapVertical],[this.menu,"set-active",this._menuChanged]])};b.Views.ModulesLayout.prototype=$.extend({},a.prototype,{_getSelector:function(c){if(!this._selectorCache[c]){this._selectorCache[c]=$(this._selectors[c])}return this._selectorCache[c]},_menuChanged:function(i,h){if(!h){for(var f in this.views){var c=this.views[f];if(c.renderedPosition===b.Models.ModulesPositions.TOP&&c.$el){c.$el.hide()}}}var e=this.model.getModule(i);if(!e){return}var g=this.menu&&this.menu.itemsById[i]&&this.menu.itemsById[i].active&&i!=="web";if(e.allowVertical&&g&&!e.model.isOrganicModule){return}if(e.allowModuleIA&&e.id===i){return}if(e&&this.model.isTopModule(e.model.id)&&this.model.canShowModule(e.model.id)){this._appendView(e)}},_showPendingTabs:function(){if(this._verticalId!=="web"){return}this.model.getModules().forEach(function(e){var c=true;e.model.hasMap=this._hasMapTab(e);if(e.model.isSideModule&&this.model.canShowSideModules()){c=e.model.hasMap}else{if(this.model.autoOpenedId===e.id&&!e.model.hasMap){c=false}}if(c){this.menu.addAnswer(e.model)}}.bind(this))},_render:function(){var f,e,c=this.model.getModules(b.Models.ModulesPositions.SIDE);for(f=0;f0){b.duckbar.failed("maps_maps")}}catch(i){b.pixel.fire("jse","serp",{msg:encodeURIComponent(i.message)})}}else{if(this.views[j].$el.is(":hidden")){this.views[j].$el.show();if(b.searchExperiments.getExperimentGroup("vmexp")!=="b"&&!h.allowModuleIA){b.openPixel.fire(h)}}}},_renderOrganicModule:function(c){this._menuChanged(c,true)},_combineSelectors:function(g){var f={};for(var e in g){var c=b.Models.ModulesPositions[e];if(c){f[c]=g[e]}}return f},_createMapVertical:function(e){if(e==="maps_places"&&!this.expandedMap){var c=this.model.modules[e].model;var f=c.items.length===1;if(f){c.primaryPlace.selected=1}c.set("isMapExpanded",true);this.expandedMap=new b.Views.Verticals.VerticalMap({ItemClass:f?b.Views.Places.PlacesSingleMap:b.Views.Places.PlaceListItem,model:c,appendTo:"body"})}}})}(DDG);!function(h){var c={mlb_games:300,nfl_games:299,answer:200,maps_places:80,about:50,videos:-10,images:-20},e={maps_maps:400,forecast:400,products:300,news:-300},j=250,g=5000,i=4000,f={high:3,medium:2,low:1},b={"item-selected":"onItemSelected","item-unselected":"onItemUnselected","item-shown":"onItemShown",show:"onShow",hide:"onHide"},a=DDG.get_now();h.search.staticNews=1;h.Duckbar=function(){h.openPixel=new h.Models.OpenPixel({pageLoadTime:a});this.menu=new h.Models.AnswerBarMenu();this.modulesLayoutView=new h.Views.ModulesLayout({menu:this.menu,model:h.modulesLayout,verticalId:"web",selectors:{SIDE:".js-sidebar-modules",TOP:".js-ia-modules",ORGANIC:"#organic-module"}})};h.Duckbar.prototype={id:"duckbar",tabs:{},tabsByNameId:{},froms:{},activeTabId:null,futureSignals:[],futureSignalsById:{},failedIA:{},isReady:false,onReady:function(){this.isReady=true;this.$zeroClickWrapper=$("#zero_click_wrapper");this.$webContentWrapper=$("#web_content_wrapper");this.$verticalWrapper=$("#vertical_wrapper");this.$topModuleWrapper=$(".js-ia-modules");this.$el=$("#duckbar");h.keyboard.on("left",this._openNext.bind(this,"l"));h.keyboard.on("right",this._openNext.bind(this,"r"));this.menuView=new h.Views.AnswerBarMenu({appendTo:this.$el,model:this.menu});this.menu.on("item-active",this.open.bind(this));this.add({id:"web",name:"Web",type:"static"});DDG.Data.StaticIAs.forEach(this.add.bind(this));if(this.addOnReady){for(var k=0,m;m=this.addOnReady[k];k++){this.add(m)}}this.show("static");setTimeout("DDG.duckbar.show('placeholder')",g);setTimeout("DDG.duckbar.show('placeholder_images')",i)},getActiveTab:function(){return this.tabs[this.activeTabId]},hasOrganicModules:function(){return this.tabs.news&&this.tabs.news.module&&this.tabs.news.module.isOrganicModule},getOrganicModuleInfo:function(){if(this._organicModuleInfo){return this._organicModuleInfo}this._organicModuleInfo=[];if(this.hasOrganicModules()){this._organicModuleInfo.push("news:"+this.tabs.news.module.model.openType+":1")}return this._organicModuleInfo},areOrganicsShowing:function(){var k=this.getActiveTab();return !(k&&k.isVertical)},addPlaceholder:function(m){if(this.openedTab||this.placeholder||h.history.get("iac")||!h.settings.isDefault("kz")){return}var k=new h.Models.Answer({id:"placeholder"});if(h.modulesLayout.isTopModule(m)){this.placeholder=new h.Views.Modules.Placeholder({model:k,signalWait:m,appendTo:this.$topModuleWrapper})}else{this.placeholder=new h.Views.AnswerBar.Answers.Placeholder({model:k,signalWait:m,appendTo:this.$zeroClickWrapper})}h.openPixel.firePlaceholder(m)},removePlaceholder:function(k){this.placeholder.destroy();delete this.placeholder},_autoExpandMap:function(n){if(!n.mapId){return}var m=h.modulesLayout.getModule(n.mapId),k=m.model;this.modulesLayoutView.model.set("expandedMapId",n.mapId);k.fire("iacg");k.engaged();k.openType="e";h.openPixel.fire(m);k.set("isMapExpanded",true);k.on("change:isMapExpanded",function(o){if(!o){this.menu.setActive("web")}}.bind(this))},open:function(o,n){var p=this.tabs[o],q;n=n||{};if(n.mapId&&!p){this._autoExpandMap(n);return}if(!p){return}q=h.openPixel.getOpenType(p.model,n);if(q==="e"||q==="d"){h.device.scrollTop(0)}if(n.autoOpened&&this.openedTab){return}if(n.autoOpened&&!h.settings.isDefault("kz")&&o!=="web"){return}this.openedTab=1;if(this.placeholder&&this.placeholder.isModule&&n.is_last_resort_tab&&o==="images"){p.model.openType=h.openPixel.getOpenType(p.model,n);h.openPixel.fire(p);this.menu.setActive("web");this.placeholder.showImages(this.tabs.images.model);return}if(this.placeholder){this.removePlaceholder("open")}if(this.getActiveTab()){var m=this.getActiveTab();if(m.id===o&&!(m.model.isModule&&(m.model.allowVertical||m.model.allowModuleIA))){this._autoExpandMap(n);return}DDG.ImageLoader.loadMore();m.hide()}this.activeTabId=o;var u=p.model.meta;if(p.pixelId!=="web"&&q!=="e"&&q!=="b"){this.initialTabOpenType=q;this.initialTab=p}this.activeTabOpenType=q;if(typeof u.autoExpand==="undefined"){u.autoExpand=is_mobile?1:0}else{if(u.autoExpand&&!is_mobile&&q!=="e"){u.autoExpand=0}}if(u.autoExpand&&typeof u.autoExpandRows==="undefined"){var k=DDG.history.get("iai");u.autoExpandRows=(is_mobile&&(n.autoOpened||(n.qsOpened&&!k)))?1:0}if(p.model.allowVertical){if(q==="r"||q==="e"){p.isVertical=p.model.isVertical=true;p.isModule=p.model.isModule=p.isOrganicModule=p.model.isOrganicModule=false;h.history.set("iar",p.nameId)}}var t=(q==="b")&&(DDG.history.get("iar",true)===p.id);if(q!=="e"&&q!=="r"&&(p.model.allowVertical||p.model.allowModuleIA)&&p.module&&!t){p=this.tabs[p.id].module}if(this.tabs[o].model.allowModuleIA&&q==="e"&&h.getProperty(this,"initialTab.id")==="videos"&&h.device.isMobile&&p.model.meta){p.model.meta.autoExpand=1;p.model.meta.autoExpandRows=0}p.show({openType:q,minimizeHeight:p.isModule,loadDeferred:!n.autoOpened||q==="f",appendTo:(p.model.allowModuleIA&&q!=="e")?this.$topModuleWrapper:p.isVertical?this.$verticalWrapper:this.$zeroClickWrapper});var r=p.id;if(p.isModule&&q!=="e"&&(!this.initialTab||p.id===this.initialTab.id)){r="web"}this.menu.setActive(r);var s=(p.id==="web"&&q!=="e")||h.modulesLayout.isTopModule(p.id)&&!p.module;if(!s){h.openPixel.fire(p)}if(p.isVertical){this.$webContentWrapper.addClass("is-hidden")}else{this.$webContentWrapper.removeClass("is-hidden")}this.isDone=true;if(n.autoOpened||n.qsOpened){h.modulesLayout.set("autoOpenedId",p.id)}this._autoExpandMap(n)},add:function(p){if(h.searchExperiments.getExperimentGroup("vmexp")!=="b"){p.allowModuleIA=0}if(!this.isReady){if(!this.addOnReady){this.addOnReady=[]}this.addOnReady.push(p);return}if(p&&p.from&&p.from==="nfl_games"&&p.data&&p.data.length&&DDG.get_query().match(/super\s?bowl/i)){p.data=[p.data[p.data.length-1]];if(p.meta&&p.meta.primaryText){p.meta.primaryText="Super Bowl LII:"}}p.rt=rt;p.query=h.get_query();p.queryEncoded=h.get_query_encoded();var m=this._getAnswerName(p),k=this.getNameId(m),n=p.id||k,q=p.signal||"low",o=this.tabs[n];h.modulesLayout.addAnswer(n,p);if(p.from){this.froms[p.from]=true}if(p.isSideModule){return}if(o){if(f[q]>f[o.signal]){o.signal=q}}else{if(h.modulesLayout.isTopModule(n)&&!p.allowVertical&&!p.allowModuleIA){o=new DDG.NoOpDuckbarTab(n)}else{o=new DDG.DuckbarTab(p);if(p.allowVertical||p.allowModuleIA){o.module=new DDG.NoOpDuckbarTab(n)}}this.tabs[o.id]=o;this.tabsByNameId[o.nameId]=o;o.on("close",this.open.bind(this,"web",{defaultOpened:true}))}if(!p.isModule||p.allowVertical||p.allowModuleIA){this.menu.addAnswer(o.model)}if(p.deferredContent||!p.deferredURL){o.append(p)}for(var t in b){var r=p[b[t]];if(r&&typeof r==="function"){o.on(t,r)}}var s=h.history.get("ia");if(o.id===h.hidden.get("iar")){this.open(o.id,{qsOpened:1})}else{if(s&&(s===o.id||s===o.nameId)&&!(this.activeTabId&&this.getActiveTab().nameId===s)){setTimeout(this.open.bind(this,o.id,{qsOpened:1}),1)}setTimeout(this.show.bind(this,"add"),1)}return o},add_array:function(k){if(!k){DDG.pixel.fire("aaud");return}for(var m=0;m1)?"maps_places_multiple":"maps_places_single";var n={name:"Places",id:"maps_places",pixelId:k,allowMultipleCalls:true,data:m.results,signal:m.signal,proximity:m.proximity,local_source:m.local_source,geoip:m.geoip,distance:m.distance,biz_score:m.biz_score,cat_score:m.cat_score,chain_score:m.chain_score,delta:m.delta,matches_location:m.matches_location,review_count:m.review_count,trigger_count:m.trigger_count,wiki_entity:m.wiki_entity,meta:{idField:"itemId",sourceName:m.source,sourceUrl:m.url,developer:[{name:"DDG Team"}],signal_from:"maps_places"}};this.add(n)},failed:function(n){var m=new Date().getTime();this.failedIA[n]=m;if(this.tabs[n]){this.tabs[n].failed()}var k=j;if(e[n]){k+=e[n]}if(DDG.deep.finished&&(m-DDG.deep.finishedf[m.signal])?-1:1})},showOrganicModules:function(){if(!h.settings.isDefault("kz")){return}if(h.search.isNavigational&&this.tabs.news){delete this.futureSignalsById.news;for(var k=0;k(j+G)&&v){this.addPlaceholder(x)}if(this._showTimer){clearTimeout(this._showTimer)}this._showTimer=setTimeout(this.show.bind(this,"self"),50);return}var A,t=0;if(!this.openedTab&&(this.placeholder||n.length||D.length)){A=this._getBestTabToOpen({signalTabsHigh:n,signalTabsMedium:D,signalWatchHigh:s,modulesOnly:this.placeholder&&this.placeholder.isModule,iasOnly:this.placeholder&&!this.placeholder.isModule});if(!A&&this.placeholder&&(C>i||!u)){A=this._getLastResortTab({tabs:r,modulesOnly:this.placeholder&&this.placeholder.isModule,iasOnly:this.placeholder&&!this.placeholder.isModule});t=1;if(A){this._fireFallbackPixel(this.placeholder.signalWait)}}}if(!this.openedTab&&A){if(!this.placeholder){var z=A.from||A.id,k=A.timeAdded-(h.deep.finished||p),q=j+(e[z]||0);if(k>q){return}}this.open(A.id,{autoOpened:true,is_last_resort_tab:t})}else{if(this.placeholder&&C>g){this.placeholder.showNoResults()}}if(!this.activeTabId&&!this.placeholder&&!h.history.get("iar")&&!h.history.get("ia")&&h.deep.finished){h.duckbar.open("web",{autoOpened:true})}},getNameId:function(k){var m=h.strip_non_alpha(k.toLowerCase());return m!=="all"?m:"web"},_getBestTabToOpen:function(p){var k=p.signalTabsHigh||[],r=p.signalTabsMedium||[],m=p.signalWatchHigh||{},q;for(var n=0;nr){r=q;p=n}}return p},_fireFallbackPixel:function(o){var q=this.futureSignals.map(function(z){return z.from+":"+z.signal}).join(","),k="",v="",n=new Date().getTime(),p,u,x;try{for(var r in this.failedIA){u=this.failedIA[r];x=u-DDG.deep.finished;if(k){k+=","}k+=(r+":"+x)}for(var m in this.tabs){p=this.tabs[m];x=p.timeAdded-DDG.deep.finished;if(p.type!=="static"){if(v){v+=","}v+=(m+":"+p.signal+":"+x)}}}catch(t){}var y={timeSincePageLoad:n-a,timeSinceDeepStarted:DDG.deep.timeSinceStarted(),timeSinceDeepFinished:n-DDG.deep.timeSinceFinished(),numSignals:this.futureSignals.length,numTabs:Object.keys(this.tabs).length,numFails:Object.keys(this.failedIA).length,signals:q,fails:k,tabs:v};var s=p.module&&p.module.model;if(s&&typeof s.resultNum!=="undefined"){y.l=s.resultNum;y.f=s.filteredNum}h.pixel.fire("iaff",o,y)},_getSideModuleOpenType:function(){if(this.activeTabId){return this.activeTabOpenType}return h.history.get("ia")?"q":"i"},_getAnswerName:function(m){var k=m.name||m.duckbar_topic||m.topic||"Answer";if(k==="qa"){k="Q/A"}return k},_openNext:function(k){if(h.keyboard.namespaced(/^autocomplete$/)||h.keyboard.focusedOnInput()){return}var m=this.getActiveTab();if(m&&m.model.selectedItem){return}this.menu.openNext(k)},_getIAMetadata:function(n){var k;for(var m=0;mn){break}}var g=b*(j.length-1),r=n-(k+g),h=Math.ceil(r/j.length);k=0;for(o=0;os.width){s.width+=s.divWidth-s.width}s.divWidth=Math.max(s.divWidth,e);k+=s.divWidth;s.lastOfRow=o===j.length-1}r=n-(k+g);s.divWidth+=r;return j}})}(DDG);!function(b){var a=b.Models.Answer,c=3;b.Models.Answers.Places=function(e){var g={id:"local",requeryURL:b.services.getURL("local")};var f=[{key:"tg",values:[{id:"maps_places"}]},{key:"rt",values:[{id:"D"}]},{key:"mkexp",values:[{id:"d"}]}];e.sources=[g];e.parameters=f;a.call(this,e);this.staticMapTitle=this._getStaticMapTitle();this.moreAtExternalServiceText=this._getMoreAtExternalServiceText()};b.Models.Answers.Places.prototype=$.extend({},a.prototype,{addItems:function(e){a.prototype.addItems.call(this,e);if(this.items&&this.items.length>0){this.primaryPlace=this.items[0];this.topPlaces=this.items.slice(0,c);this.topPlaces=this.topPlaces.map(function(f){f.set("isSideModule",this.isSideModule);return f}.bind(this));this.isSingle=this.items.length===1;this.set("isMoreAtVisible",!this.isSingle);this.canExpand=!this.isSideModule&&this.isSingle&&this.primaryPlace&&this.primaryPlace.isExpandable()}},isExpandable:function(){return this.canExpand},toggleExpand:function(){this.set("expanded",!this.expanded);if(this.primaryPlace){this.primaryPlace.toggleExpand()}},setUserMapIntent:function(){if(!this.userMapIntent){this.set("userMapIntent",true)}},_getStaticMapTitle:function(){return lp("maps_places","Open Expanded Map")},_getMoreAtExternalServiceText:function(){var e=this.meta.sourceName;return l("More at %s ",e)},_onRequery:function(e){if(e.response_type==="places"){e=DDG.localAPI.getPlacesResponse(e);this.answerItemModel="Place"}else{if(e.response_type==="map"){e=DDG.localAPI.getMapsResponse(e);this.answerItemModel="MapLocation"}}a.prototype._onRequery.call(this,e)}})}(DDG);!function(b){var a=b.Models.Answer;b.Models.Answers.Products=function(c){a.call(this,c)};b.Models.Answers.Products.prototype=$.extend({},a.prototype,{answerType:"Products",clickedExternalLink:function(f,h){if(!h||!h.target){return a.prototype.clickedExternalLink.call(this,f)}var c=$(h.target),g=$(h.target.parentElement);if(c.hasClass("tile__media")){f.clk="i"}else{if(g.hasClass("tile__title--brand")){f.clk="b"}else{if(g.hasClass("tile__title")){f.clk="d"}else{f.clk="o"}}}a.prototype.clickedExternalLink.call(this,f)}})}(DDG);!function(c){var b=c.Models.Base,a;c.Models.AnswerItems.Base=a=function(e){if(this.transform){e=this.transform(e)}b.call(this,e);this._updateId()};a.extend=function(f){var e=function(g){a.call(this,g)};e.prototype=$.extend({},a.prototype,f||{});return e};a.prototype=$.extend({},b.prototype,{select:function(){this.unhighlight();this.set("selected",1);if(this.topic&&this.topic.select){this.topic.select()}},unselect:function(){this.set("selected");if(this.topic&&this.topic.unselect){this.topic.unselect()}},highlight:function(){if(this.selected){return}this.set("highlighted",1);if(this.topic&&this.topic.highlight){this.topic.highlight()}},unhighlight:function(){this.set("highlighted");if(this.topic&&this.topic.unhighlight){this.topic.unhighlight()}},toTemplateObject:function(){return $.extend({},this,{meta:this.meta?$.extend({},this.answerMeta,this.meta):this.answerMeta})},_updateId:function(){if(typeof this.idField==="string"&&this[this.idField]){return this.id=this[this.idField]}if($.isArray(this.idField)){this.id=this.idField.map(function(e){return this[e]},this).join("");if(this.id){return this.id}}return this.id=this.UUID()},getItemTemplate:function(){var e=this.templates,f=e.item;if(c.device.isMobile){f=e.item_mobile||f}return f},getDetailTemplate:function(){var e=this.templates,f=e.detail;if(c.device.isMobile){f=e.detail_mobile||f}return f},getItemDetailTemplate:function(){var e=this.templates,f=e.item_detail||e.detail;if(c.device.isMobile){f=e.item_detail_mobile||e.detail_mobile||f}return f},canShowItemDetail:function(){return !!this.getItemDetailTemplate()}})}(DDG);!function(a){a.Models.AnswerItems.Audio=a.Models.AnswerItems.Base.extend({idField:"url"})}(DDG);!function(a){a.Models.AnswerItems.FatheadListItem=a.Models.AnswerItems.Base.extend({idField:"FirstURL"})}(DDG);!function(b){var a=b.Models.AnswerItems.Base,h=["alternate","rain","snow","sleet","fog","cloudy","partly-cloudy-day","partly-cloudy-night","clear-day","clear-night","hail","thunderstorm","tornado","wind"],g=[0,4,8,12,16,20],f={metric:"c",imperial:"f"},e=[lp("forecast","N"),lp("forecast","NE"),lp("forecast","E"),lp("forecast","SE"),lp("forecast","S"),lp("forecast","SW"),lp("forecast","W"),lp("forecast","NW"),lp("forecast","N")],c=["ar","de","es","fr","it","ja","nl","tr","zh"];b.Models.AnswerItems.Forecast=function(i){a.call(this,i)};b.Models.AnswerItems.Forecast.prototype=$.extend({},a.prototype,{transform:function(i){if(!i||!i.currently||!i.daily||!i.flags){return}this._data=i;this.unit=this._getInitialUnit();this.isMetric=this.unit===f.metric;this._setDailyWeather(i);this.selected=0;this.latitude=i.latitude;this.longitude=i.longitude;this.location=i.flags["ddg-location"];this.moreAtUrl=this._getMoreLink({});this.isIE11=b.device.isIE11p;this._setCurrentWeather(i.currently);this.updateSelected(this.selected,true);this._mapData(i,this.isMetric);this.hours=this._getHoursGraphData(i,this.isMetric)},_setAlert:function(k,n){if(!k||!k.length){return}if(n){this.warning=null;this.weatherAlert=null;return}if(!n&&!this.warning&&!this.weatherAlert){for(var j=0;j0)?m[o]:n.currently;k.index=o;k.icon=this._getIcon(s.icon,t);k.iconName=s.icon;k.summary=s.summary;k.humidity=s.humidity;k.precipitation=s.precipProbability;j.setDate(j.getDate()+o);if(this.toLocaleStringSupportsLocales()){var p=locale.replace("_","-");k.day=j.toLocaleString(p,{weekday:"short"}).replace(".","");k.dayLong=j.toLocaleString(p,{weekday:"long"}).replace(".","")}else{var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=j.getDay();k.day=u[r].substring(0,4);k.dayLong=u[r]}this.days.push(k)}},toLocaleStringSupportsLocales:function(){try{new Date().toLocaleString("i")}catch(i){return i instanceof RangeError}return false},_getInitialUnit:function(){var i=b.geo.getUOM(),j=f[i]||f.imperial;return j},updateUnit:function(i){var k=this.days[this.selected]||{},j=k.rawHourly||this._data;this.isMetric=i===f.metric;this._mapData(this._data,this.isMetric);this.hours=this._getHoursGraphData(j,this.isMetric,this.selected,k.time);k.hours=this.hours;this.set("unit",i)},updateSelected:function(i,j){var m=this.days[i];if(!j){this.summary=m.summary;this.wind=m.wind;this.precipitation=m.precipitation;this.humidity=this._calculatePercent(m.humidity);this.icon=this._getIcon(m.iconName,64);this.temperature=m.high;this.temperature=(i===0)?m.temperature:m.high}this.days[this.selected].selected=false;this.days[i].selected=true;this.dayLong=b.capitalize(m.dayLong);this.moreLink=this._getMoreLink(m);this._setAlert(this._data.alerts,i);if(i>1&&!m.hours){this.emit("beforeSend");$.getJSON("/js/spice/forecast_daily/"+this.latitude+"/"+this.longitude+"/"+m.time).done(function(n){m.rawHourly=n;this.hours=this._getHoursGraphData(n,this.isMetric,i,m.time);m.hours=this.hours;this.set("selected",i)}.bind(this))}else{var k=m.rawHourly||this._data;m.hours=this._getHoursGraphData(k,this.isMetric,i,m.time);this.hours=m.hours;this.set("selected",i)}},_getMoreLink:function(m){var k="https://darksky.net";if(m.time){var i=new Date();i.setDate(i.getDate()+m.index);var j=i.toISOString().substr(0,10);k+="/details/"+this.latitude+","+this.longitude+"/"+j}else{k+="/forecast/"+this.latitude+","+this.longitude}return k+"/"+this._getTargetUnit()+"/"+this._getTargetLanguage()},_getTargetUnit:function(){var i=this.isMetric?"ca24":"us12";return i},_getTargetLanguage:function(){var i=window.locale.split("_")[0];if(c.indexOf(i)===-1){return"en"}return i},_mapData:function(o,j){if(!o.currently){return}var n=o.currently;this.wind=this._convertWindSpeed(n.windSpeed,j);this.wind+=" "+this._convertWindDirection(n.windBearing);for(var m=0;m=k)?"PM":"AM",o=(!m||m===k)?k:m%k;m=o+" "+q}m=m.toString()}if(!b.device.isEnglish){m=m.replace(/(\d{2})[^:]+/,"$1");m=m.replace(/^0/,"");m+=":00"}s={hourString:m,temperature:p,temperatureLabel:i};return s},_convertWindSpeed:function(j,i){if(i){return Math.round(j*1.609344)+" kph"}return Math.round(j)+" mph"},_convertWindDirection:function(j){var i=Math.round(j/45),k=e[0],m=e[i]||k;return m},_convertTemperature:function(j,i){if(i){j=Math.round((j-32)*(5/9));j=(Math.abs(j)===0)?Math.abs(j):j;return j}return Math.round(j)},_getIcon:function(j,i){if(h.indexOf(j)===-1){j="cloudy"}return"/assets/weather/svg/new/"+j+".svg"}})}(DDG);!function(b){var a=b.Models.AnswerItems.Base;b.Models.AnswerItems.Place=function(c){a.call(this,c);this.subtitle=this.getSubtitle();this.directions=this.getDirectionsURL();this.directionsTitle=this.getDirectionsTitle();this.staticMapTitle=lp("maps_places","Open Expanded Map");this.mapURL=b.directionSource.getMapURL(this);this.shortAddress=this.getShortAddress();this.hours=this.getHours();this.ratingClass=this.rating?this.rating.toString().replace(".","-"):false;this.morePhotosText=this.getMorePhotosText();this.moreAtExternalServiceText=this.getMoreAtExternalServiceText();this.viewOnExternalServiceText=this.getViewOnExternalServiceText();this.distanceStr=this.getDistanceString();if(b.device.is2x||b.device.is3x){this.ratingImage=this.ratingImageRetina?this.ratingImageRetina:this.ratingImage}this._setReviews(this.reviews)};b.Models.AnswerItems.Place.prototype=$.extend({},a.prototype,{select:function(){a.prototype.select.call(this);this._loadReviews()},getSubtitle:function(){var e=this.getPriceSymbols(),c=this.getCategories();if(!e){return c}if(!c){return e}return e+" · "+c},getPriceSymbols:function(){if(!this.price){return}var c="";for(var e=0;e0))}return this.canExpand},toggleExpand:function(){this.set("expanded",!this.expanded)},_loadReviews:function(){if(this._loadedReviews){return}this._loadedReviews=true;$.ajax({dataType:"jsonp",url:"/local.js?q="+encodeURIComponent(this.name)+"&tg=maps_places&id="+this.itemId+"&strong_hint="+this.itemId+"&fsh=1&l="+b.settings.region.getId(),success:function(c){c=b.localAPI.getPlacesResponse(c);if(!c.results||!c.results.length){return}var e=c.results.filter(function(f){return f.itemId===this.itemId}.bind(this));if(e&&e[0]){this._setReviews(e[0].reviews)}}.bind(this),error:function(){}})},_setReviews:function(c){if(!c||!c.length){return}c.forEach(function(e){var f={year:"numeric",month:"short",day:"numeric"};e.formattedDate=new Date(e.timeCreated*1000).toLocaleDateString(false,f);e.user.userOnServiceText=this.getUserOnServiceText(e.user);if(b.device.is2x||b.device.is3x){e.ratingImage=e.ratingImageRetina?e.ratingImageRetina:e.ratingImage}e.ratingClass=e.rating?e.rating.toString().replace(".","-"):""}.bind(this));this.set("reviews",c)}})}(DDG);!function(a){a.Models.AnswerItems.Product=a.Models.AnswerItems.Base.extend({idField:["ASIN","img_m","img"]})}(DDG);!function(g){var f=g.Models.AnswerItems.Base,e={YouTube:{embedURL:"https://www.youtube-nocookie.com/embed/",searchURL:"https://www.youtube.com/results?search_query=",userURL:"https://www.youtube.com/channel/",url:"https://www.youtube.com/watch?v=",params:{wmode:"transparent",iv_load_policy:3,autoplay:1,html5:1,showinfo:0,rel:0,modestbranding:1,playsinline:1,theme:"light"}},Vimeo:{embedURL:"https://player.vimeo.com/video/",searchURL:"https://www.vimeo.com/search?q=",userURL:"https://vimeo.com/",url:"https://vimeo.com/",params:{api:0,autoplay:1}}};g.Models.AnswerItems.Video=f.extend({idField:"id",transform:function(h){var i=e[h.provider];h.embedURL=i.embedURL+h.id+"?"+$.param(i.params);h.faviconURL=g.get_favicon_url(h.provider.toLowerCase());h.musicVideoData=a(h);h.url=i.url+h.id;h.searchURL=i.searchURL+rq;h.userURL=i.userURL+h.channel_id;h.username=h.display_name;h.viewCount=b(h);h.publishedDate=c(h.published);return h},getITunesData:function(j){var k=this.musicVideo();if(!k){return j()}if(this._iTunesData){return j(null,this._iTunesData)}var h=this,i="/iit/"+encodeURIComponent(k.title);$.ajax({url:i,dataType:"json",success:function(m){h._iTunesData=m;j(null,m)},error:function(){j()}})},canShowItemDetail:function(){var h=f.prototype.canShowItemDetail.call(this);return h&&g.settings.get("k5")!=="2"}});var b=function(h){var i=0;if(h.statistics&&h.statistics.viewCount){i=parseInt(h.statistics.viewCount,10);if(!$.isNumeric(i)){i=0}}if(!i&&h.duration.match(/\d+:\d+:\d+/)){return lp("video","Preview")}return g.abbrevNumber(i)+" view"+(i!==1?"s":"")},a=function(p){if(!p.category||p.category!=="Music"){return}var o=p.title.replace(/\(.*\)|\[.*\]/g,"");o=o.replace(/\s+f(?:ea|)t\..*$/g,"");o=o.replace(/^\s+|\s+$/g,"");var i=o.split(" - "),m=i[0],j=i[1]||m,q=j!==m?j+" "+m:j,k="/iit/"+encodeURIComponent(o),n=encodeURIComponent("!a "+q),h=encodeURIComponent("!spotify "+q);return{title:o,artist:m,song:j,iTunesURL:k,amazonURL:n,spotifyURL:h}},c=function(i){var h=DDG.getDateFromString(i);return h?h.toDateString().substr(4):""}}(DDG);!function(c){var b=c.Models.AnswerItems,a=b.Base;b.News=a.extend({idField:"url",transform:function(e){e.showImage=e.image||e.fetch_image;if(e.relative_time){e.relativeTimeShort=e.relative_time.replace(/(\d+) ([a-z]).*/,"$1$2")}if(!e.favicon_url){e.favicon_url=e.url}this.on("change:visible",this._onVisibleChanged.bind(this));return e},_fetchImage:function(e){if(this._fetchedImage){return}this._fetchedImage=true;$.getJSON("/f.js?vqd="+window.vqd+"&o=json&i=1&u="+e,this._onImageFetched.bind(this))},_onVisibleChanged:function(){if(!this.visible){return}if(this.fetch_image&&!this.image){this._fetchImage(this.url)}},_onImageFetched:function(e){if(e&&e.image){this.set("image",e.image)}}})}(DDG);!function(f){var a=f.Models.AnswerItems.Base,h=120,j=160,k=160,b=1.8,e=0.7,g=1100,c=80,m=1.4,i=150;f.Models.AnswerItems.About=function(n){a.call(this,n);if(this.hasInfobox){this.infobox=new f.Models.Modules.AboutInfoBox({Infobox:this.Infobox,RelatedTopics:this.RelatedTopics,minimizeHeight:n.minimizeHeight})}if(this.infobox&&this.infobox.maps.length){this.headerImage=this.Image&&!this.ImageIsLogo;this.headerType=this.headerImage?2:1;this.header=new f.Models.Modules.AboutHeader({imageURL:this.headerImage?this.Image:null,imageWidth:this.ImageWidth,imageHeight:this.ImageHeight,mapURL:this.infobox.maps[0].value})}if(this.infobox&&this.infobox.profiles.length){this.infobox.profiles.push({data_type:"wikipedia",value:this.AbstractURL});if(this.OfficialUrl){this.infobox.profiles.push({data_type:"official_site",value:this.OfficialUrl});var o=f.searchExperiments.assign("muxabouti");if(o==="b"){this.isExperimentB=true}}this.profiles=new f.Models.Modules.AboutProfiles({title:this.Heading,entity:this.Entity,data:this.infobox.profiles})}var p=this.answerMeta;if(p&&((p.id&&p.id==="wikihow")||(p.is_stackexchange&&p.is_stackexchange===1))){this.hasClickableHeader=true}};f.Models.AnswerItems.About.prototype=$.extend({},a.prototype,{headerType:0,isTooHigh:false,toggleExpand:function(){this.infobox&&this.infobox.toggleExpand();this.set("expanded",!this.expanded)},expand:function(){if(!this.expanded){this.toggleExpand()}},collapse:function(){if(this.expanded){this.toggleExpand()}},hasPredictableExpandableContent:function(){return(this.infobox&&this.infobox.canExpand())||(this.shortAbstract!==this.fullAbstract)},canModuleExpand:function(){return this.hasPredictableExpandableContent()||this.isTooHigh},getAbstract:function(){return this.expanded?this.fullAbstract:this.shortAbstract},showMoreAtBottom:function(){if(this.infobox){return false}if(!this.canModuleExpand()){return true}if(this.isTooHigh){return true}return false},transform:function(n){if(n.Results&&n.Results.length){n.OfficialUrl=n.Results[0].FirstURL}n.minEllipsisHeight=n.minimizeHeight?c:k;n.ImageHeight=n.ImageHeight||0;if(n.Image&&n.ImageWidth&&n.ImageHeight){var q=(f.device.width<=g)?e:1;var o=f.scaleToFit(n.ImageWidth,n.ImageHeight,h,j);n.ImageWidth=parseInt(o.width,10);n.ImageHeight=parseInt(o.height,10);n.defaultTextHeight=Math.max(n.minEllipsisHeight,(n.ImageHeight*q)/2)}else{if(n.Image){delete n.Image}}if(n.Image&&window.iqbi&&!f.settings.safeSearch.isOff()){delete n.Image}if(n.AbstractSource){n.moreAtText=n.AbstractSource}else{if(n.meta){n.moreAtText=n.meta.src_name}}n.Abstract=f.Utils.Strings.removeUnwantedHtml(n.Abstract)||"";n.hasCode=n.Abstract.match(/\0){c=this.lat+f+" N, "}else{c=(this.lat*-1)+f+" S, "}if(this.lon>0){e=this.lon+f+" E"}else{e=(this.lon*-1)+f+" W"}return c+e}})}(DDG);!function(b){var c=300,a=b.Models.Base;b.Models.Header=function(g){a.call(this,g);this.welcomeMessageHeight=0;var f=b.opensearch.installed.version,e=b.opensearch.getDaysSinceCohort(f),i=!b.settings.isDefault("kaz"),h=b.opensearch.installed.variant;if(i&&f&&h.match(/^[bcd]$/)){this.showWelcomeMessage=true;this.welcomeMessageHeight=180;if((h==="b"||h==="c")&&e>0){b.settings.set("kaz");this.showWelcomeMessage=false;this.welcomeMessageHeight=0}else{if(h==="d"){b.settings.set("kaz")}}}else{if(i&&!f){b.settings.set("kaz")}}this._headerHeight=b.get_header_height()+1};b.Models.Header.prototype=$.extend({},a.prototype,{updateScrollPosition:function(h){var e=(hthis._headerHeight+c);this.scrolledPastHeader=h>this._headerHeight;this.canUpdateHeaderPosition=false;this.newHeaderPosition=-this._headerHeight;if(this.scrolledToTop){this._scrollBuffer=0;this._showingFloatedHeader=false;this.newHeaderPosition=0}g=e&&!this._showingFloatedHeader;f=!e&&this._showingFloatedHeader;if(this.scrolledPastHeaderThreshold&&(g||f)&&this._pastScrollBuffer(h,e)){this.newHeaderPosition=(e)?0:-this._headerHeight;this.canUpdateHeaderPosition=true;this._scrollBuffer=0;this._showingFloatedHeader=!this._showingFloatedHeader}if(this.showWelcomeMessage&&!this.scrolledToTop){this.newHeaderPosition-=this.welcomeMessageHeight}this._previousScroll=h;this._previousScrollDirection=e},_pastScrollBuffer:function(f,e){if(this._previousScrollDirection!==e){this._scrollBuffer=0}if(!this._scrollBuffer){this._scrollBuffer=f+((e)?-50:100)}if(e){return fthis._scrollBuffer}})}(DDG);!function(c){var b=c.Models.Base,a="$1,300,000",f="30",e={spread:{title:lp("SERP footer content","Help Spread DuckDuckGo"),body:lp("showcase_spread","Help your friends and family join the Duck Side!"),icon:"spread",url:"https://duckduckgo.com/spread",id:"sp"},bangs:{title:lp("SERP footer content","Learn About Bangs"),body:lp("SERP footer content","Discover shortcuts to go to search results on other sites."),icon:"bangs",url:"https://duckduckgo.com/bang",id:"ba"},app:{title:lp("showcase_app","Get Our App & Extension"),body:lp("showcase_app","Protect your data on every device."),icon:"woman",url:"https://duckduckgo.com/app",id:"bl"},donations:{title:lp("SERP footer content","Donating for Privacy"),body:lp("SERP footer content","Over %s in DuckDuckGo privacy donations.",a),icon:"donations",url:"https://duckduckgo.com/donations",id:"dn"},course:{title:lp("SERP footer content","Privacy Newsletter"),body:lp("showcase_newsletter","Learn about online privacy right in your inbox."),icon:"newsletter",url:"https://duckduckgo.com/newsletter",id:"su"},syntax:{title:lp("SERP footer content","Fine-tune Your Search"),body:lp("SERP footer content","Learn how to search like the pros."),icon:"private-searches",url:"https://help.duckduckgo.com/results/syntax",id:"syntax"},tips:{title:lp("SERP footer content","Protect Your Devices"),body:lp("SERP footer content","Check out our privacy device guides."),icon:"privacy-simplified",url:"https://spreadprivacy.com/tag/device-privacy-tips/",id:"tips"},hiring:{title:lp("SERP footer content","Join Our Team!"),body:lp("SERP footer content","Help us raise the standard of trust online."),icon:"employees",url:"https://duckduckgo.com/hiring/",id:"hiring"},traffic:{title:lp("SERP footer content","%s Billion Searches",f),body:lp("SERP footer content","We get a ton of searches, and all of them are anonymous."),icon:"traffic",url:"https://duckduckgo.com/traffic/",id:"traffic"},themes:{title:lp("SERP footer content","Get New Themes"),body:lp("SERP footer content","You're in control. Customize the look-and-feel of DuckDuckGo."),icon:"design",url:"https://duckduckgo.com/settings#theme",id:"theme"},about:{title:lp("SERP footer content","Learn About DuckDuckGo"),body:lp("SERP footer content","Learn how we're dedicated to keeping you safe online."),icon:"hatched",url:"https://duckduckgo.com/about",id:"about"},google:{title:lp("SERP footer content","Say Goodbye To Google"),body:lp("SERP footer content","Learn how you can free yourself from Google for good."),icon:"milestone",url:"https://spreadprivacy.com/how-to-remove-google/",id:"google"},duckcom:{title:lp("SERP footer content","Get Started at Duck.com"),body:lp("SERP footer content","Get to DuckDuckGo faster. Share duck.com with your friends."),icon:"paper-plane",url:"https://duck.com/",id:"duckcom"},bubble:{title:lp("SERP footer content","Escape The Filter Bubble"),body:lp("SERP footer content","Read about how Google influences what people click."),icon:"launch-small",url:"https://spreadprivacy.com/google-filter-bubble-study/",id:"bubble"},profit:{title:lp("SERP footer content","How We Are Profitable"),body:lp("SERP footer content","The world needs an alternative to the collect-it-all business model."),icon:"beanstalk",url:"https://spreadprivacy.com/duckduckgo-revenue-model/",id:"profit"},anonymous:{title:lp("SERP footer content","We Protect Your Privacy"),body:lp("SERP footer content","We don't store your search history or follow you around the web."),icon:"shield",url:"https://spreadprivacy.com/how-anonymous-is-duckduckgo/",id:"anonymous"}},g=[[e.tips,e.donations,e.anonymous],[e.traffic,e.course,e.bangs],[e.spread,e.hiring,e.syntax],[e.app,e.course,e.spread],[e.themes,e.about,e.google],[e.bubble,e.profit,e.duckcom]];c.Models.Footer=function(h){b.call(this,h);this.cards=[];this.links=[{url:"https://spreadprivacy.com",icon:"globe",id:"bl"},{url:"https://twitter.com/duckduckgo",icon:"twr",id:"tw"},{url:"https://reddit.com/r/duckduckgo",icon:"reddit",id:"rd"},{url:"https://duckduckgo.com/newsletter",icon:"newsletter",id:"nl"}];if(!c.device.isDesktop){this.links.push({url:"https://duckduckgo.com/app",icon:"phone",id:"ip"})}this._initCards()};c.Models.Footer.prototype=$.extend({},b.prototype,{_initCards:function(){var h={},j=g[Math.floor(Math.random()*g.length)];while(this.cards.length<3){var i=Math.floor(Math.random()*j.length);if(!h[i]){h[i]=true;this.cards.push(j[i])}}}})}(DDG);!function(e){var c=e.Models.Base,f=900000,b=18000000,g="geoip",h="manual",a="precise";e.Models.UserLocation=function(i){i=i||{};if(typeof i==="string"){i=this._fromString(i)||{}}if(!this._isValidLatLon(i.lat,i.lon)){i.lat=null;i.lon=null}if(!this._isValidLocationType(i.type)){i.type=a}c.call(this,i);if(this.isValid()){if(!this.timestamp){this.timestamp=new Date().getTime()}}};e.Models.UserLocation.GEOIP_LOCATION=g;e.Models.UserLocation.MANUAL_LOCATION=h;e.Models.UserLocation.PRECISE_LOCATION=a;e.Models.UserLocation.prototype=$.extend({},c.prototype,{isValid:function(){return this._isValidLatLon(this.lat,this.lon)},isSameAs:function(i){return this.lat===i.lat&&this.lon===i.lon&&this.desc===i.desc},isExpired:function(){if(!this.timestamp){return false}if(this.desc&&this.desc==="Antarctica, Antarctica"){return true}var i=new Date().getTime()-this.timestamp,j=e.device.isMobile?f:b;return i>j},toString:function(){return[this.lat,this.lon,this.desc,this.timestamp,this.type,this.geoipLat,this.geoipLon].join("|")},setDescByGeocoding:function(i){this._geocode(function(k){if(!k){return i()}var m=k.text;if(k.context&&k.context.length){for(var j=0;jg){this.emit("meaningfulUserLocationChange",m)}return m}});f.userLocator=new f.Models.UserLocator()}(DDG);!function(e){var c=e.Models.Base,b=4,a=2;e.Models.ModuleImageHeader=function(f){f=f||{};this.images=f.images||[];this.loadMoreImages=f.loadMoreImages||false;this.maxNumberOfImages=e.device.widthBreakpoint()==="xs"?a:b;if(this.loadMoreImages){this.numberOfImages=this.maxNumberOfImages}else{if(this.images&&this.images.length){this.numberOfImages=this.images.length>this.maxNumberOfImages?this.maxNumberOfImages:this.images.length}}this.layout=f.layout||this._getLayout();c.call(this,f);if(this.loadMoreImages&&this.images.length$1')}}};b.Models.ResultSnippet.prototype=$.extend({},a.prototype,{_appendAdExtensions:function(){if(this.showExtensionData&&this.item.ae){if(this.item.ae.annotation){this.snippets.push(this.item.ae.annotation);this.hasAnnotation=true}if(this.item.ae.callout){this.snippets.push(this.item.ae.callout.join(" · "));this.hasCallout=true}}}})}(DDG);!function(b){var a=b.Models.Base;b.Models.ResultExtras=function(h){a.call(this,h);var c=this.item.c,g=this.item.d,k=this.item.i,f=this._splitUrl(c,g),j=b.settings.get("kn");this.link=$.extend({},f,{href:c,prefix:f.protocol==="https"?f.protocol+"://":null,targetBlank:this._openInNewWindow(j,c)});if(k!==""){var e=b.get_query_encoded(),i=b.settings.get("kf");this.icon={hide:i==="-1",imageUrl:this._getImageUrl(k),siteSearchUrl:this._getSiteSearchUrl(e,f.domain),lazyLoad:b.deep.pageNumber===1,title:this._getTitle(this.isAd,g)}}};b.Models.ResultExtras.prototype=$.extend({},a.prototype,{_splitUrl:function(c,f){c=c||"";f=f||"";f=f.split("/");var e={protocol:c.indexOf("https")!==-1?"https":"http",domain:f.shift()||"",path:f.join("/")||""};return e},_openInNewWindow:function(e,c){if(!e){return false}return e==="1"&&c.indexOf("http")!==-1},_getImageUrl:function(e){var c="";if(typeof e==="string"&&e.indexOf("http")===0){c=DDG.getImageProxyURL(e)}else{c=DDG.get_favicon_url(e)}return c},_getSiteSearchUrl:function(e,f){var c="/?q="+e;if(!b.search.isSiteQuery){c+="+site:"+f}if(window.kurl){c+=kurl}return c},_getTitle:function(c,f){if(c){return""}var e=f,g=l("Search domain %s",e);return g}})}(DDG);!function(e){var c=e.Views.Base,a="has-ad",b="has-ad--sitelinks";e.Views.Ads=function(f){c.call(this,f);this.bindEvents([[this.model,"change:ads",this._updateHeight],[this.model,"change:defaultAds",this._updateHeight],[this.model,"change:pendingAds",this._updateHeight]])};e.Views.Ads.prototype=$.extend({},c.prototype,{show:function(){this.$el.toggleClass(a,this.model.hasAds())},fallbackToDefault:function(){if(this.model.isBlocked()||this.model.ads.length){return}var f=this.model.getAds();if(f&&f.length){this.$el.addClass(this.HAS_AD);nrn("a",f)}else{if(this.$el.hasClass(this.HAS_AD)){this.$el.removeClass(this.HAS_AD)}}},_updateHeight:function(){if(this.model.isBlocked()||this.model.rightRailBoth){return}this.show();this.$el.toggleClass(b,this.model.hasSiteLinks())},_onLinkClick:function(f){adClick(this.source)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.AdSitelinks=function(c){this.$organicResultContainer=$(c.organicResultContainer);a.call(this,c)};b.Views.AdSitelinks.prototype=$.extend({},a.prototype,{_render:function(){this.$parent.append($(this.model.getSitelinkHtml()));if(this.model.hasSitelinkDescriptions){this.$organicResultContainer.attr("data-sld",true)}this.$parent.find("a.sponsored__sitelink").click(function(c){adClick(this.model.source,this.$organicResultContainer,c);return nrl(c,c.currentTarget)}.bind(this))}})}(DDG);!function(b){var a=b.Views.Base;b.Views.ResultSnippet=function(c){this.template=(c.model.isAd)?"result_snippet_ad":"result_snippet";a.call(this,c);if(c.model.isAd){this.$el.find("a").click(function(f){window.adClick(c.model.item.s,c.parentDiv,f);return window.nrl(f,this)})}};b.Views.ResultSnippet.prototype=$.extend({},a.prototype,{})}(DDG);!function(b){var a=b.Views.Base;b.Views.ResultExtras=function(c){this.template=(c.model.isAd)?"result_extras_ad":"result_extras";this.parentDiv=c.parentDiv;this.titleLockIcon=c.titleLockIcon;a.call(this,c)};b.Views.ResultExtras.prototype=$.extend({},a.prototype,{_enroll:function(){if(this.model.isAd){return false}var c=$(this.parentDiv);this.demexp=DDG.searchExperiments.demexp&&DDG.searchExperiments.demexp.activeGroup;if(this.demexp&&this.demexp!=="a"){c.addClass("http");if(this.model.link.protocol==="http"){c.addClass(this.demexp);this.template="result_extras_unencrypted";this.model.link.prefix="http://";if(this.demexp==="c"||this.demexp==="e"){this.model.icon=false}}}},_render:function(c){var e=$(this.parentDiv);e.data("protocol",this.model.link.protocol);this._enroll();a.prototype._render.call(this,$.extend({},c,{icon:this.model.icon,link:this.model.link}));this._cacheElems(".js-result-extras",["site_search","icon","tooltip","url","url-tooltip","close"]);this.bindEvents([[this.$site_search,"click",this._onIconClick],[this.$url,"click",this._onUrlClick],[this.$close,"click",this._onCloseClick]]);if(this.demexp&&this.demexp!=="a"){if(this.$icon.length){this.bindEvents([[this.$icon,"click",this._onLockClick],[this.$icon,"mouseenter",this._showTooltip],[this.$icon,"mouseleave",this._hideTooltip]])}if(this.titleLockIcon){this.bindEvents([[this.titleLockIcon,"click",this._onLockClick],[this.titleLockIcon,"mouseenter",this._showTooltip],[this.titleLockIcon,"mouseleave",this._hideTooltip]])}if(!DDG.device.isMobileDevice){this.bindEvents([[this.$url,"mouseenter",this._showTooltip],[this.$url,"mouseleave",this._hideTooltip]])}}},_onIconClick:function(c){window.fl=1},_wrapLinks:function(){$.noop()},_showTooltip:function(){var c=this.$tooltip.length?this.$tooltip:this.$urltooltip;c.addClass("is-showing");b.pixel.fire("dem",{t:"d"});this._showingTooltip=true;if(b.device.isMobile){b.$doc.on("click.http-tooltip",this._hideTooltip.bind(this))}},_hideTooltip:function(){var c=this.$tooltip.length?this.$tooltip:this.$urltooltip;c.removeClass("is-showing");this._showingTooltip=false;if(b.device.isMobile){b.$doc.off("click.http-tooltip")}},_onUrlClick:function(f){if(DDG.device.isMobileDevice&&this.demexp&&this.demexp!=="a"){if(!this._showingTooltip){f.preventDefault();f.stopPropagation();this._showTooltip();return}this._hideTooltip()}var c=this.$url[0];if(this.model.isAd){window.adClick(this.model.item.s,this.parentDiv,f)}else{window.organicClick(this.parentDiv,f)}return window.nrl(f,c)},_onLockClick:function(c){c.stopPropagation();if(!this._showingTooltip){this._showTooltip()}else{this._hideTooltip()}},_onCloseClick:function(c){c.stopPropagation();c.preventDefault();this._hideTooltip()}})}(DDG);!function(b){var a=b.Views.Base;b.Views.SERPMessages=function(c){this.ads=c.ads;this.searchbar=c.searchbar;this._pendingMessages=[];a.call(this,c);if(c.messages.spelling){this.showMessage("spelling",c.messages.spelling)}if(c.messages.safeSearch){this.showMessage("safeSearch")}if(c.messages.siteSearch){this.showMessage("siteSearch")}};b.Views.SERPMessages.prototype=$.extend({},a.prototype,{isReady:false,ready:function(){this.isReady=true;this._pendingMessages.forEach(function(c){this.showMessage(c[0],c[1])}.bind(this));this._pendingMessages=[]},showMessage:function(e,c){if(!this.isReady){return this._pendingMessages.push([e,c])}if(e==="spelling"){this._showSpellingMessage(c)}else{if(e==="safeSearch"){this._showSafeSearchMessage()}else{if(e==="siteSearch"&&!this._showingMessage){this._showSiteSearchMessage()}}}},_showSafeSearchMessage:function(){if(b.page.isSafeDDG||!b.settings.safeSearch.isStrict()){return}if(this.$safeSearch){return}var c=b.deep.getResultCount()?1:0;this.$safeSearch=b.exec_template("safe_search",{noResults:!c,searchTerm:""+rqd+""});this.$el.prepend(this.$safeSearch);this.$(".js-safe-search-temp").on("click",function(f){f.preventDefault();b.pixel.fire("sss","m",{v:-1,p:0,r:c});b.settings.safeSearch.setTemporaryId("-1",function(){b.search.requery()})});this.$(".js-safe-search-perm").on("click",function(f){f.preventDefault();b.pixel.fire("sss","m",{v:-1,p:1,r:c});b.settings.safeSearch.setId("-1",function(){b.search.requery()})});this._showingMessage=true;b.page.showingSafeSearch=1;b.pixel.fire("ssi",{r:c});if(!c){DDG.deep.hideNoResults=true}},_showSiteSearchMessage:function(){if(this.$siteSearch||!b.deep.getResultCount()){return}var e=sfq,c=b.search.getSiteQuery(e);if(c.sites.length){this.$siteSearch=DDG.$exec_template("site_query",{queryEncoded:encodeURIComponent(c.query),isExcluding:c.isExcluding,hasMultipleSites:c.sites.length>1,sites:c.sites,forceBreak:b.device.isMobile&&c.sites.length>1});this.$el.append(this.$siteSearch);this._showingMessage=true}},_showSpellingMessage:function(c){if(this.$safeSearch||this.$spelling||!b.search.spelling.isValidType()){return}this.$spelling=new b.Views.SpellingMessage({appendTo:this.$el.selector,model:b.search.spelling})}})}(DDG);!function(b){var a=b.Views.Base;b.Views.SpellingMessage=function(c){this.model=c.model;this.ia=c.ia;a.call(this,c)};b.Views.SpellingMessage.prototype=$.extend({},a.prototype,{template:"spelling_",_render:function(c){this.template+=this.model.type;a.prototype._render.call(this);this._showSpellingMessage()},_showSpellingMessage:function(){b.pixel.fire("spd",this.model.type);if(this.model.type==="nmrc"){this.$el.find(".js-spelling-suggestion-link").html(this.model.suggestion)}else{this.$el.find(".js-spelling-suggestion-link").attr({href:this.model.makeSpellingURL(this.model.link,false,this.ia),"data-query":this.model.query}).html(this.model.suggestion).click(this._onSpellingLinkClick.bind(this,this.model.query))}this.$el.find(".js-spelling-recourse-link").attr({href:this.model.makeSpellingURL(this.model.recourseLink,true,this.ia),"data-query":this.model.recourseQuery}).html(this.model.recourseText).click(this._onSpellingLinkClick.bind(this,this.model.recourseQuery))},_onSpellingLinkClick:function(c,f){DDG.pixel.fire("sp",this.model.type);if(!b.settings.isDefault("kg")){f.preventDefault();b.page.searchbar.updateQuery(c)}}})}(DDG);!function(b){var a=b.Views.Base;b.Views.TwitterEasterEgg=function(c){this.username=c.username;a.call(this,c);this._fetchImage()};b.Views.TwitterEasterEgg.prototype=$.extend({},a.prototype,{_fetchImage:function(){$.ajax({url:"/tw.js?o=json&user="+this.username,dataType:"json",success:function(c){this.image=c&&c.profile_image;this._renderEasterEgg()}.bind(this)})},_renderEasterEgg:function(){if(!this.image){return}this.$el.append(b.exec_template("twitter_easter_egg",{image:this.image}));this._cacheElems(".js-logo",["ddg","praise","avatar"]);this.$el.attr("href","/spread");setTimeout(this._animate.bind(this),1000)},_animate:function(){this.$ddg.hide();this.$praise.show();setTimeout(function(){this.$praise.hide();this.$avatar.show()}.bind(this),1000);setTimeout(function(){this.$avatar.hide();this.$ddg.show()}.bind(this),3000)}})}(DDG);!function(c){var b=c.Views.Base,e="set-header--floating",a=20;c.Views.Header=function(f){b.call(this,f);this.views.headerLinks=new c.Views.HeaderLinks({appendTo:".js-header-aside"});if(this.model.showWelcomeMessage){this.views.welcomeMessage=new c.Views.WelcomeMessage({appendTo:".js-welcome-wrap",model:this.model})}this.bindEvents([[c.device,"scroll",this._onScroll]])};c.Views.Header.prototype=$.extend({},b.prototype,{_onScroll:function(f){this.model.updateScrollPosition(c.device.scrollTop());if(this.model.scrolledToTop){this._reset();return}if(this.model.scrolledPastHeader){this.views.headerLinks.hide()}if(this.model.scrolledPastHeaderThreshold&&!c.hasClass(this.$el[0].id,e)){this._updateHeaderPosition();setTimeout(function(){c.addClass(this.$el[0].id,c.$html,e)}.bind(this),a)}if(this.model.canUpdateHeaderPosition){this._updateHeaderPosition()}},_updateHeaderPosition:function(){this.$el.css("top",this.model.newHeaderPosition)},_reset:function(){this.$el.css("top",0);c.removeClass(this.$el[0].id,c.$html,e)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Footer=function(c){a.call(this,c);this._cacheElems(".js-footer",["card","link"]);this.bindEvents([[this.$card,"click",this._onItemClick],[this.$link,"click",this._onItemClick],[this.model,"change:visible",this._show]]);if(b.settings.isDefault("kav")){this.model.set("visible",true)}};b.Views.Footer.prototype=$.extend({},a.prototype,{template:(b.device.isDesktop)?"footer":"footer_mobile",_show:function(){if(this._showingFooter){return}b.$html.addClass("has-footer");this._setContentMinHeight();this.$el.show();b.device.on("resize",this._setContentMinHeight.bind(this));this._showingFooter=true},_onItemClick:function(f){var c=$(f.currentTarget);var g=c.data("id");b.pixel.fire("fic",g,{ic:+(c.hasClass("footer__card"))})},_setContentMinHeight:function(){this.$after.css("min-height",b.device.height)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.ClickableItem=function(c){a.call(this,c)};b.Views.ClickableItem.prototype=$.extend({},a.prototype,{_render:function(c){a.prototype._render.call(this,c);this.bindEvents([[this.$el,"click",this._onClick],[this.$el,"mousedown",this._onMouseDown]])},_onMouseDown:function(f){if($(f.target).is("a")){return}f.stopPropagation();var g=0;if(b.device.isIE&&(nkdc(f)||nkdm(f))){g=1}var h=f.which&&f.which==2;var c=f.which&&f.which==3;if(g||h||c){fm=1;if(!c){this._onClick(f,1)}}else{fm=0}},_onClick:function(g,f){g.stopPropagation();this.answer.engaged();var c;if(g.target&&g.target.nodeName==="A"){c=g.target}else{c=this.$el[0];c.href=this.$el.attr("data-link")}if(c.href){b.history.set({iai:this.answer.getQuerystringItemId(this.model)},function(){if(!DDG.isInternalURL(c.href)){this.answer.clickedExternalLink({},g)}nrg(null,null,g,f,c)}.bind(this));return g.preventDefault()}this.model.select()},_onExternalLinkClick:function(c){c.stopPropagation();this.answer.engaged();this.answer.clickedExternalLink({},c);if(c.ctrlKey){b.history.set({iai:this.answer.getQuerystringItemId(this.model)});return a.prototype._onExternalLinkClick.call(this,c)}b.history.set({iai:this.answer.getQuerystringItemId(this.model),pn:this.model.pageNo},function(){a.prototype._onExternalLinkClick.call(this,c)}.bind(this))}})}(DDG);!function(b){var a=b.Views.Base;b.Views.ModuleImageHeader=function(e){this.answer=e.answer;this.model=new b.Models.ModuleImageHeader({images:this._getImages(e.model),loadMoreImages:this.answer.nameId==="about"});this.model.imageURL=e.model.imageURL;var c=$.extend(true,{},e);c.model=this.model;a.call(this,c);this.bindEvents([[this.model,"change:imagesLoaded",this._onImagesLoaded]])};b.Views.ModuleImageHeader.prototype=$.extend({},a.prototype,{template:"module_image_header",_render:function(c){a.prototype._render.call(this,this.model);this.bindEvents([[this.$el,"click",this._onClick]])},_getImages:function(f){var c=[];var e=f.image||f.imageURL;if(e){c.push({url:e})}if(f.thumbnails){for(var g=0;g1;b.call(this,h);var g=this.model;this.bindEvents([[g,"change:items",this._onItemsChanged],[g,"change:expanded",this._onExpandedChanged],[g,"change:canExpand",this._onExpandedChanged],[g,"change:topics",this._createTopicMenu],[f.device,"scroll",this._onScroll]])};e.MetaBar.prototype=$.extend({},b.prototype,{template:"metabar",show:function(){this.$el.removeClass("is-hidden");this._height=this.$el.outerHeight(true)},hide:function(){this.$el.addClass("is-hidden")},getHeight:function(){return c},isStuck:function(){return DDG.hasClass(this.id,"is-stuck")},_render:function(){b.prototype._render.call(this,$.extend({},{showMoreAt:this.sourceName,showDropdowns:this.showParams||this.showSources,searchTerm:this.model.query,itemType:l("Results")},this));if(Modernizr.touch||is_mobile){this.$el.removeClass("metabar--fixed").addClass("metabar--unsticky")}this._cacheElems(".js-metabar",["primary","loading","mode","dropdowns"]);this.$mode.on("click",this._onModeClick.bind(this));this._updateMode();this._updateLoadingState();this._createTopicMenu();this._createAttribution();this._createSourceDropdown();this._createParameterDropdowns();if(this.linkPrimaryText){this.$primary.addClass("metabar__primary-text--linked");this.$primary.on("click",this._onModeClick.bind(this))}},_createTopicMenu:function(){var g=this.views,h=this.model,i=this.model.topics;if(!g.topicMenu&&i.length&&i.length>=this.minTopicsForMenu){g.topicMenu=new f.Views.AnswerBar.Meta.TopicMenu({model:h,appendTo:this.$(".js-metabar")});this.$primary.hide()}},_createAttribution:function(){if(!this.model.meta.hasAttribution()||this.model.meta.hideAttribution){return false}var g=this.$(".js-attribution");this.views.attribution=new f.Views.Attribution({answer:this.model,direction:this.sourceName?"bottom":"bottom-left",appendTo:g});g.removeClass("is-hidden")},_createParameterDropdowns:function(){if(!this.showParams){return}this.views.parameters=new f.Views.Dropdowns.FilterContainer({$el:this.$dropdowns,answer:this.model})},_createSourceDropdown:function(){if(!this.showSources){return}this.views.source=new e.FilterDropdown({model:this.model.sources,answer:this.model,appendTo:this.$dropdowns})},_updateLoadingState:function(){if(!this._isLoaded&&this.model.items.length){this.$loading.hide();this.$primary.removeClass("is-loading");this.$dropdowns.removeClass("is-loading");this._isLoaded=true}},_updateMode:function(){var r=this,i=r.model,j=i.expanded,h=r.$mode,k=f.device.isMobile,q=i.meta,g=r.exitModeIcon,m=function(){if(q.useExpandTextButton()){h.removeClass("btn--icon");h.addClass("metabar__grid-btn");h.text(l("More "+r.model.name))}else{h.addClass("btn--icon");h.removeClass("metabar__grid-btn");h.text(r.expandModeIcon)}},p=function(){r._modeSwitchEnabled=true;h.removeClass("is-disabled");h.removeClass("btn--icon");h.addClass("metabar__grid-btn");h.text(g);h.attr("title",l("Click to collapse"))},o=function(){r._modeSwitchEnabled=true;h.removeClass("is-disabled");m();h.attr("title",l("Click to expand"))},n=function(){r._modeSwitchEnabled=false;h.addClass("is-disabled");m();h.attr("title",l("Grid mode disabled for this answer"))};if(q.hideModeSwitch){h.addClass("is-hidden")}else{if(k||j){p()}else{if(i.canExpand){o()}else{n()}}}},_onScroll:function(){if(Modernizr.touch||f.device.isMobile||!this.parent||!this.model.active||this.notFixed){return}var n=DDG.hasClass(this.id,"is-stuck"),g=DDG.hasClass(this.id,"at-bottom");if(!this.model.expanded){if(n){DDG.removeClass(this.id,this.$el,"is-stuck");this.emit("stuck",false)}if(g){DDG.removeClass(this.id,this.$el,"at-bottom")}return}var k=f.device.scrollTop(),m=this.parent.getHeight(),j=0,i=m-c,h=DDG.get_header_height();j+=!DDG.isHeaderFixed?h:0;i+=j;if(k>j&&!n){DDG.addClass(this.id,this.$el,"is-stuck");this.emit("stuck",true)}else{if(k<=j&&n){DDG.removeClass(this.id,this.$el,"is-stuck");this.emit("stuck",false)}}if(!g&&k>i){DDG.addClass(this.id,this.$el,"at-bottom")}else{if(g&&kf)},_showHideExpandLink:function(){if(this._canExpand()){this.$expand.removeClass("is-hidden")}else{this.$expand.addClass("is-hidden")}},_onExpandClick:function(){this.model.set("expanded",!this.model.expanded);this.model.engaged();this.model.fire("iasm")},_onResize:function(){delete this._isExpandable;this._showHideExpandLink()},_onAnswerActiveChanged:function(){if(this.model.active){delete this._isExpandable;this._showHideExpandLink()}},_onAnswerExpandedChanged:function(){if(this.model.expanded){this._expand()}else{this._collapse()}}})}(DDG);!function(e){var c=e.Views.ClickableItem,f="is-hidden",a="is-selected",b="highlight",g=8;e.Views.AnswerBar.Tile=function(i){this.answer=i.answer;this.noDetail=i.noDetail;c.call(this,i);this.bindEvents([[this.model,"change:visible",this._updateVisible],[this.model,"change:partiallyVisible",this._updateVisible],[this.model,"change:selected",this._onSelectedChanged],[this.model,"change:highlighted",this._onHighlightedChanged],[this.answer,"change:active",this._onAnswerActiveChanged],[this.answer,"change:expanded",this._onAnswerExpandedChanged],[e.device,"resize",this._onResize]]);var h=this.answer.meta.rerender;if(h){this.bindEvents(h.map(function(j){return[this.model,"change:"+j,this._rerender]}.bind(this)))}};e.Views.AnswerBar.Tile.prototype=$.extend({},c.prototype,{show:function(){this.$el.removeClass(f)},hide:function(){this.$el.addClass(f)},getMargins:function(){return{x:parseFloat(this.$el.css("margin-left"),10),top:parseFloat(this.$el.css("margin-top"),10),bottom:g}},_render:function(){this.template=this.model.getItemTemplate();c.prototype._render.call(this,this.model.toTemplateObject());e.ImageLoader.registerAll(this.$(".js-lazyload"),this.model.id);e.ImageLoader.registerAll(this.$(".js-lazysvg"),this.model.id,{svg:true});this.$ellipsis=this.$(".js-ellipsis");var h=this.$("a");if(h.length){h.on("touchstart touchend",function(i){i.stopPropagation()})}if(this.answer.meta.itemsHighlight!==false&&!e.device.isIDevice){this.$el.on("mouseenter",this._onMouseEnter.bind(this));this.$el.on("mouseleave",this._onMouseLeave.bind(this))}this._updateEllipsis({force:true})},_updateEllipsis:function(h){h=h||{};if(h.force){this._hasBeenEllipsized=false}if(this._hasBeenEllipsized||!this.answer.active||!this.model.visible||!this.$ellipsis.length||e.device.isMobile){return}this.$ellipsis.ellipsis({id:this.model.id});this._hasBeenEllipsized=true},_updateVisible:function(){if(this.model.visible||this.model.partiallyVisible){e.ImageLoader.trigger(this.model.id);this._updateEllipsis()}},_updateMargin:function(){if(e.device.isMobile){return}var i=g;if(!this.noDetail&&this.model.canShowItemDetail()&&this.answer.expanded&&this.model.selected){var h=this.answer.items[this.answer.items.length-1].gridRow;if(!h||h!==this.model.gridRow){i*=2}else{i-=1}i+=this.answer.getDetailHeight()}i+="px";if(this._marginBottom===i){return}this._marginBottom=i;this.$el.css({marginBottom:i})},_rerender:function(){c.prototype._rerender.call(this);this._onHighlightedChanged();this._onSelectedChanged()},_onHighlightedChanged:function(){this.$el.toggleClass(b,!!this.model.highlighted)},_onSelectedChanged:function(){if(this.model.selected){e.history.set({iai:this.answer.getQuerystringItemId(this.model)})}this.$el.toggleClass(a,!!this.model.selected);this._updateMargin()},_onAnswerActiveChanged:function(){this._updateEllipsis()},_onAnswerExpandedChanged:function(){this._updateMargin();this._updateEllipsis({force:true})},_onClick:function(i,h){if(this.answer.id==="images"||this.answer.id==="videos"){this.answer.set("expanded",1)}this.answer.fire("iatc");if(this.model.selected){this.answer.engaged();return this.model.unselect()}if(!this.noDetail&&this.model.canShowItemDetail()){i.preventDefault();this.answer.engaged();return this.model.select()}return c.prototype._onClick.call(this,i,h)},_onMouseEnter:function(h){if(e.keyboard.active){return}this.model.highlight()},_onMouseLeave:function(h){this.model.unhighlight()},_onResize:function(h){this._updateEllipsis({force:true});this._updateMargin()},_onExternalLinkClick:function(h){this.answer.fire("iatc");return c.prototype._onExternalLinkClick.call(this,h)}})}(DDG);!function(g){var f=g.Views.AnswerBar.Tile,b="is-loading",c="is-paused",e="is-unavailable",a,i=0;g.Views.AnswerBar.AudioTile=function(j){f.call(this,j);this.bindEvents([[g.keyboard,"space."+this.answer.id,this._onSpace]])};g.Views.AnswerBar.AudioTile.prototype=$.extend({},f.prototype,{play:function(){if(i){this.showError("Playback Unavailable");return}this.$el.addClass(b);if(!this.$action){this.$action=this.$(".audio-controls__action");this.$time=this.$(".audio-controls__time");this.$progress=this.$(".audio-controls__progress");this.$loadProgress=this.$(".audio-controls__progress-loading");this.$loadProgressFill=this.$(".audio-controls__progress-loading .rotated-fill");this.$playProgress=this.$(".audio-controls__progress-playback");this.$playProgressFill=this.$(".audio-controls__progress-playback .rotated-fill")}if(!a){g.require("audio",function(j){a=j;if(a&&a.ready){if(g.device.isIDevice||g.device.isAndroid){this.$el.removeClass(b);return}}else{i=1}this.play()}.bind(this));return}this.$el.removeClass(c);this.$action.text("║");this.isPlaying=1;this.hasStartedPlaying=0;if(this.sound){a.play(this.model.id);this._onLoadProgress()}else{this.sound=a.play(this.model.id,this.model.streamURL,{autoPlay:true,whileloading:this._onLoadProgress.bind(this),whileplaying:this._onPlayProgress.bind(this),onload:this._onLoadFinished.bind(this),onfinish:this._onPlayFinished.bind(this)})}},pause:function(){if(!a||!a.ready){return}a.pause(this.model.id);this.$el.removeClass(b);this.$el.addClass(c);this.$action.text("►");this.isPlaying=0},stop:function(){if(!a||!a.ready){return}a.stop(this.model.id);this.$el.removeClass(b);this.$el.removeClass(c);this.$action.text("►");if(!this.$el.hasClass(e)){this.$time.text("")}this.$loadProgress.removeClass("gt50");this.$playProgress.removeClass("gt50");h(this.$loadProgressFill,0);h(this.$playProgressFill,0);this.isPlaying=0},showError:function(j){this.$time.text(j);this.$el.addClass(e)},_onSelectedChanged:function(){if(this.answer.meta.autoplay===false&&!this._userSelected){if(this.model.selected){this.model.unselect()}return}f.prototype._onSelectedChanged.call(this);if(this.model.selected){this.play()}else{this.stop()}},_onClick:function(j){this._userSelected=true;j.preventDefault();this.answer.fire("iatc");if(this.model.selected){this.isPlaying?this.pause():this.play()}else{this.model.select()}},_onSpace:function(j){this._userSelected=true;if(this.model.selected){if(this.isPlaying){j.preventDefault();this.pause()}else{if(this.answer.active){j.preventDefault();this.play()}}}},_onLoadProgress:function(){var j=(this.sound.bytesLoaded/this.sound.bytesTotal)*100;if(j>50){this.$loadProgress.addClass("gt50");return h(this.$loadProgressFill,100)}h(this.$loadProgressFill,j)},_onLoadFinished:function(j){if(j){return}this.showError("Stream Unavailable");a.stop();if(this.answer.autoplaying){this.answer.selectNextItem()}},_onPlayProgress:function(){if(!this.sound||!this.model.duration){return}if(!this.hasStartedPlaying){this.$el.removeClass(b);this.hasStartedPlaying=1}var k=this.model.duration-this.sound.position,j=(this.sound.position/this.model.duration)*100;this.$time.text("-"+DDG.formatDuration(k));if(j>50){this.$playProgress.addClass("gt50")}h(this.$playProgressFill,j)},_onPlayFinished:function(){this.stop();if(this.answer.meta.autoplay!==false){this.answer.autoplaying=1;this.answer.selectNextItem()}}});var h=function(k,m){var j=(360/100*m)+"deg";k.css({"-moz-transform":"rotate("+j+")","-webkit-transform":"rotate("+j+")","-o-transform":"rotate("+j+")",transform:"rotate("+j+")"})}}(DDG);!function(e){var c=e.Views.Base,g="can-expand",a="has-chomp-expanded",f=200,b=150;e.Views.AnswerBar.Detail=function(i){this.answer=i.answer;this.template=i.template;this.canExpand=i.canExpand;this.canWrap=i.canWrap;this.hasInfobox=i.hasInfobox;c.call(this,i);if(this.canExpand){this.bindEvents([[this.answer,"change:expanded",this._updateExpandableContent],[this.answer,"change:active",this._updateExpandableContent],[e.device,"resize",this._updateExpandableContent]])}var h=this.answer.meta.rerender;if(h){this.bindEvents(h.map(function(j){return[this.model,"change:"+j,this._rerender]}.bind(this)))}};e.Views.AnswerBar.Detail.prototype=$.extend({},c.prototype,{_render:function(m){var i=this.model.toTemplateObject(),h=$.extend({},i,m),p=this.model.templates.wrap_detail,k=this.template;if(this.canWrap&&p){h={content:e.exec_template(k,i)};this.template=p}c.prototype._render.call(this,h);this.template=k;var n=this.$(".js-sized-img");if(n.length){n.on("load error",function(){$(this).css({height:"auto",width:"auto"})})}var j=this.$("img");if(j.length){j.error(function(){$(this).hide()})}if(this.canExpand){this.$expandContent=this.$(".js-ellipsis,.js-chomp");if(this.$expandContent.length){this.expandContent=this.$expandContent.html();this.expandUseEllipsis=this.$(".js-ellipsis").length;this.$expandLink=this.$(".js-chomp-link");this._updateExpandableContent();if(this.$expandLink.length){this.$expandLink.on("click",function(){this.answer.set("expanded",!this.answer.expanded);this.answer.fire("iasm")}.bind(this))}var o=this.$(".js-detail-img");if(o.length&&!o.width()){o.load(function(){this._updateExpandableContent()}.bind(this))}}}},_updateExpandableContent:function(){if(!this.answer.active||!this.expandContent){return}this.$expandContent.html(this.expandContent);this._hasCode();if(this.answer.expanded){if(is_mobile||this.$expandContent.outerHeight()-1;this.isProgramming=this.model.meta.topic.indexOf("programming")>-1;this.isStackExchange=this.model.id.indexOf("stackexchange")>-1;if(this.isReference||this.isProgramming||this.isStackExchange){this.$el.addClass("has-code")}}},_highlightSyntaxCheck:function(){if(this.isReference||this.isProgramming){var h=this.$el.find("pre");if(h.length){DDG.require("prettify",function(){h.addClass("prettyprint");window.prettyPrint()})}}},_getEllipsisOptions:function(){var h={firstParagraph:true};if(this.$el.find("code").length){h.maxHeight=f}if(this.model.parentId==="lyrics"){h.maxHeight=b}return h},_onExternalLinkClick:function(h){this.answer.clickedExternalLink();c.prototype._onExternalLinkClick.call(this,h)}})}(DDG);!function(c){var b=c.Views.AnswerBar.Detail,e=0.55,a=500;c.Views.AnswerBar.ImageDetail=function(f){this.parentPadding=f.parentPadding;b.call(this,f);this.bindEvents([[this.model,"change:selected",this._onSelectedChanged],[c.device,"resize",this._onResize]])};c.Views.AnswerBar.ImageDetail.prototype=$.extend({},b.prototype,{_zoom:1,_panX:0,_panY:0,setZoom:function(g,f){this._zoom=g;this._updateTransform(f)},setPan:function(f,h,g){this._panX=f/this._zoom;this._panY=h/this._zoom;this._updateTransform(g)},getPanDimensions:function(){return{width:this._width*this._zoom,height:this._height*this._zoom}},_reportImage:function(f){f.preventDefault();if(!this.views.modal){this.views.modal=new c.Views.ReportImageModal({thumbnail:this.model.thumbnail,image:this.model.image})}this.views.modal.show()},_render:function(){b.prototype._render.call(this,{detail:this._getDimensions(),isMobile:c.device.isMobile,linkImage:!c.device.isMobile});this.$imgWrapper=this.$(".js-image-detail-wrapper");this.$transBg=this.$(".js-detail-image-bg");if(this.model.selected){this._onSelectedChanged()}this._cacheElems(".js-image-report",["link"]);this.bindEvents([[this.$link,"click",this._reportImage]])},_getDimensions:function(){var m=c.device,g=m.isMobile;var k=g?m.width:m.width*e,j=g?m.height:this.answer.getDetailHeight()-(this.parentPadding*2),h=this.model,i=Math.min(h.width,k),f=i/h.width*h.height;if(f>j){f=j;i=f/h.height*h.width}this._width=i;this._height=f;return{width:i+"px",height:f+"px",transBgWidth:Math.floor(i-1)+"px",transBgHeight:Math.floor(f-1)+"px"}},_loadHighRes:function(){if(this.$highRes){return}this.$highRes=this.$(".js-detail-img-high");this.$highRes.attr("src",c.getImageProxyURL(this.model.image_mobile||this.model.image)).css({display:"block"}).on("load",this._onHighResLoaded.bind(this))},_animateTransform:function(){if(!$.Velocity){return this._updateTransform()}this.$imgWrapper.velocity("stop").velocity({scale:this._zoom,translateX:this._panX,translateY:this._panY},{easing:"ease-out",duration:c.animation_speed})},_updateTransform:function(f){if(f){return this._animateTransform()}if($.Velocity){this.$imgWrapper.velocity("stop");if(this._zoom){$.Velocity.hook(this.$imgWrapper,"scale",this._zoom)}if(this._panX){$.Velocity.hook(this.$imgWrapper,"translateX",this._panX+"px")}if(this._panY){$.Velocity.hook(this.$imgWrapper,"translateY",this._panY+"px")}}else{var g="";if(this._zoom){g+="scale("+this._zoom+") "}if(this._panX||this._panY){g+="translate("+(this._panX||0)+"px,"+(this._panY||0)+"px) "}this.$imgWrapper.css({transform:g,"-webkit-transform":g,"-moz-transform":g,"-ms-transform":g,"-o-transform":g})}},_onSelectedChanged:function(){if(this.model.selected){this._loadHighResTimeout=setTimeout(this._loadHighRes.bind(this),c.device.isMobileDevice?a:0)}else{clearTimeout(this._loadHighResTimeout)}},_onResize:function(){if(!this.$imgs){this.$imgs=this.$(".js-detail-img")}var f=this._getDimensions();this.$imgs.css({height:f.height,width:f.width});this.$transBg.css({width:f.transBgWidth,height:f.transBgHeight})},_onHighResLoaded:function(){this.$(".js-detail-img-thumb").fadeOut()}})}(DDG);!function(e){var c=e.Views.AnswerBar.Detail,f=0.75,a=110,b=76;e.Views.AnswerBar.VideoDetail=function(g){this.parentPadding=g.parentPadding;c.call(this,g);this.bindEvents([[this.model,"change:selected",this._updateContent],[e.settings,"change:k5",this._updateContent],[e.device,"resize",this._onResize]])};e.Views.AnswerBar.VideoDetail.prototype=$.extend({},c.prototype,{template:"videos_detail",destroy:function(){clearTimeout(this._embedTimeout);c.prototype.destroy.call(this)},_render:function(){c.prototype._render.call(this);this.$videoWrap=this.$(".js-video");this.$video=this.$(".js-video-media");this._updateSize();this._updateContent()},_renderEmbed:function(){if(!this.model.selected){return}var g=DDG.exec_template(DDG.templates.videos_detail_embed,this.model);this.$video.empty().append(g)},_renderPrivacy:function(){this.views.privacy=new e.Views.AnswerBar.VideoDetailOverlay({model:this.model,appendTo:this.$video})},_shouldShowPrivacy:function(){return !e.device.isMobile&&this.model.selected&&e.settings.isDefault("k5")},_shouldShowEmbed:function(){return this.model.selected&&e.settings.get("k5")==1},_updateSize:function(){var h=e.device,k=h.widthBreakpoint(),i=h.gutterSize(),n=i?i+a:this.parentPadding*2,j=i?this.parentPadding*2:this.parentPadding*2+b,m=h.width-n,o=!h.isMobileLandscape()&&(k==="m"||k==="s"||k==="xs")?m:m*f,p=this.answer.getDetailHeight()-j,r=16/9,g=o,q=o/r;if(q>p){q=p;g=q*r}this.$videoWrap.css({width:g+"px"});this.$video.css({height:q+"px",width:g+"px"})},_updateContent:function(){if(this._shouldShowPrivacy()){this._renderPrivacy()}else{if(this._shouldShowEmbed()){if(e.device.isMobile){this._embedTimeout=setTimeout(this._renderEmbed.bind(this),e.animation_speed+100)}else{this._renderEmbed()}}else{this.$video.empty()}}},_onResize:function(){this._updateSize()}})}(DDG);!function(b){var a=b.Views.Base;b.Views.AnswerBar.VideoDetailOverlay=function(c){a.call(this,c)};b.Views.AnswerBar.VideoDetailOverlay.prototype=$.extend({},a.prototype,{template:"videos_detail_privacy",shouldShow:function(){return DDG.settings.isDefault("k5")},_render:function(){a.prototype._render.call(this);this._cacheElems(".js-video-privacy",["watch","leave","remember","remember-label"]);this.bindEvents([[this.$watch,"click",this._onWatchClick],[this.$leave,"click",this._onLeaveClick],[this.$remember,"touchstart",this._onRememberTouchStart],[this.$rememberlabel,"touchstart",this._onRememberTouchStart]])},_shouldRemember:function(){return this.$remember[0].checked},_updateSetting:function(c){var e=this._shouldRemember();DDG.settings.set("k5",c,{saveToCloud:e,saveToCookie:e})},_onWatchClick:function(c){c.preventDefault();this._updateSetting("1");this.destroy()},_onLeaveClick:function(c){c.preventDefault();this._updateSetting("2");nug(this.model.url);this.destroy()},_onRememberTouchStart:function(c){c.stopPropagation()}})}(DDG);!function(e){var b=e.Views.Base,g="is-hidden",f="has-open-detail",c="can-scroll",a={images_detail:"ImageDetail",videos_detail:"VideoDetail"},h={images_detail:1,videos_detail:1};e.Views.AnswerBar.DetailSlider=function(i){b.call(this,i);this.bindEvents([[this.model,"change:active",this._onActiveChanged],[this.model,"change:selectedItem",this._onSelectedItemChanged],[e.device,"resize",this._onResize]])};e.Views.AnswerBar.DetailSlider.prototype=$.extend({},b.prototype,{template:"detail_slider",_zoom:1,_panX:0,_panY:0,_focused:false,destroy:function(){this._hide();b.prototype.destroy.call(this)},position:function(i){if(e.device.isMobile){return}if(this._top===i){return}this._top=i;this.$el.css({top:i})},_show:function(){if(this._isShowing){return}this.$el.removeClass(g);this._updateSelectedItem();if(e.device.isMobile){e.$html.addClass(f);this._focus()}this._isShowing=1},_hide:function(){if(!this._isShowing){return}this.$el.addClass(g);if(e.device.isMobile){e.$html.removeClass(f)}this.gestures.reset();this.destroyChildViews();this.views={};this._isShowing=0},_focus:function(){this.$el.addClass("has-focus");this._focused=1},_unfocus:function(){this.$el.removeClass("has-focus");this._focused=0},_render:function(){var m=$.extend({},this.model),i=e.device.isMobile;if(!i){m.detailHeight=this.model.getDetailHeight()+"px"}if(i&&!Modernizr.touch){m.mobileAndNoTouch=1}b.prototype._render.call(this,m);var j=this.model.meta.detailOverlay;if(i&&j){this.overlayClass=e.Views.AnswerBar[j]}if(this.model.items.length){var n=this.model.items[0],k=n.getItemDetailTemplate();if(h[k]){this.$el.addClass("detail--xd")}}this._cacheElems(".js-detail",["panes","close","next","prev"]);this.gestures=new e.Utils.GestureRecognizer({el:this.$el});this.gestures.on("tap",this._onTap.bind(this));this.gestures.on("double-tap",this._onDoubleTap.bind(this));this.gestures.on("swipe",this._onSwipe.bind(this));this.gestures.on("panmove",this._onPanMove.bind(this));this.gestures.on("panend",this._onPanEnd.bind(this));this.gestures.on("pinchmove",this._onPinchMove.bind(this));this.gestures.on("pinchend",this._onPinchEnd.bind(this));this.bindEvents([[this.$close,"click touchstart",this._onCloseClick],[this.$next,"click",this._onNextClick],[this.$prev,"click",this._onPrevClick]]);if(this.model.selectedItem){this._show()}},_createPane:function(k,m){if(!k){return}var j=k.getItemDetailTemplate(),i=a[j]||"Detail";return new e.Views.AnswerBar.DetailSliderPane({answer:this.model,model:k,pos:m,detailView:i,appendTo:this.$panes})},_swipeToItem:function(i,j){this._swipeVelocity=j;if(i==="prev"){this.model.selectPrevItem()}else{this.model.selectNextItem()}},_setZoom:function(j,i){this._zoom=j;if(this._zoom<=1){this._setPan(0,0)}this.views.cur&&this.views.cur.setZoom(j,i)},_setPan:function(i,o,k){if(this._zoom<1){this._panX=0;this._panY=0}else{this._panX=i;this._panY=o}if(this.views.cur&&this._zoom>1&&k){var n=this.views.cur.getPanDimensions();if(n){var j=Math.abs(n.width-e.device.width)/2,m=Math.abs(n.height-e.device.height)/2;if(this._panX-j>0){this._panX=j}else{if(this._panX+j<0){this._panX=j*-1}}if(this._panY-m>0){this._panY=m}else{if(this._panY+m<0){this._panY=m*-1}}}}this.views.cur&&this.views.cur.setPan(this._panX,this._panY,k)},_updateDOM:function(){var i=this.views,j=this._swipeVelocity;if(i.prev){i.prev.resetPosition(-1,j)}if(i.cur){i.cur.resetPosition(0,j)}if(i.next){i.next.resetPosition(1,j)}delete this._swipeVelocity;this.$prev.toggleClass(c,!!i.prev);this.$next.toggleClass(c,!!i.next&&!i.next.model.hidden)},_updateSelectedItem:function(){if(this.views.prev&&this.views.prev.model===this.model.selectedItem){this.views.next&&this.views.next.destroy();this.views.next=this.views.cur;this.views.cur=this.views.prev;this.views.prev=this._createPane(this.model.getPrevItem(),-1)}else{if(this.views.next&&this.views.next.model===this.model.selectedItem){this.views.prev&&this.views.prev.destroy();this.views.prev=this.views.cur;this.views.cur=this.views.next;this.views.next=this._createPane(this.model.getNextItem(),1)}else{this.destroyChildViews();this.views={prev:this._createPane(this.model.getPrevItem(),-1),cur:this._createPane(this.model.selectedItem),next:this._createPane(this.model.getNextItem(),1)}}}this._updateDOM();if(this.overlayClass&&this.overlayClass.prototype.shouldShow()){this.views.overlay&&this.views.overlay.destroy();this.views.overlay=new this.overlayClass({model:this.model.selectedItem,appendTo:this.$el})}if(e.device.isMobile&&this.model.indexOfSelectedItem()>=(this.model.items.length-1)){this.model.loadMore()}this._setZoom(1,true);this._setPan(0,0)},_clearVerticalPan:function(){this.$el.removeClass("is-closing");this._setPan(0,0,true);this._focus()},_onPanMove:function(j){if(this._zoom>1){var i=this._panX+j.deltaX,k=this._panY+j.deltaY;this._setPan(i,k)}else{if(j.axis==="x"){if(this._panAxis!=="x"){if(this._panAxis==="y"){this._clearVerticalPan()}this._panAxis="x"}if(this._prevDirection&&this._prevDirection!==j.direction){this._updateDOM()}else{if(this.views.prev){this.views.prev.translateX(j.distX)}if(this.views.next){this.views.next.translateX(j.distX)}if(this.views.cur){this.views.cur.translateX(j.distX)}}this._prevDirection=j.direction}else{if(j.axis==="y"){if(this._panAxis!=="y"){this.$el.addClass("is-closing");this._panAxis="y";this._unfocus();this._updateDOM()}this._setPan(0,this._panY+j.deltaY)}}}},_onPanEnd:function(j){if(this._panAxis==="y"){this._clearVerticalPan()}delete this._panAxis;delete this._prevDirection;if(this._zoom<=1&&!j.multitouch&&!j.swiped){this._updateDOM()}if(this._zoom>1&&(Math.abs(j.velocityX)>0.1||Math.abs(j.velocityY)>0.1)){var i=this._panX+j.velocityX*e.animation_speed,k=this._panY+j.velocityY*e.animation_speed;this._setPan(i,k,true)}},_onPinchMove:function(i){this._setZoom(i.pinchDelta*this._zoom)},_onPinchEnd:function(){if(this._zoom<1){this._setZoom(1,true)}},_onTap:function(i){var j=i.e;this._updateDOM();if(this._zoom>1){return}if(!this._focused){j.preventDefault();j.stopPropagation();this._focus()}else{if(!j.target||j.target.nodeName!=="A"){this._unfocus()}}},_onDoubleTap:function(i){if(this._zoom>1){this._setZoom(1,true);this._focus()}else{this._setZoom(2,true);this._unfocus()}},_onSwipe:function(i){if(this._zoom>1){return}if(this._panAxis==="x"&&i.axis==="x"){if(i.direction==="right"&&this.model.getPrevItem()){this._swipeToItem("prev",i.velocityX)}else{if(i.direction==="left"&&this.model.getNextItem()){this._swipeToItem("next",i.velocityX)}else{this._updateDOM()}}}else{if(this._panAxis==="y"&&i.axis==="y"){if(this.model.selectedItem){this.model.selectedItem.unselect()}}}},_onCloseClick:function(i){i.stopPropagation();i.preventDefault();if(this.model.selectedItem){this.model.selectedItem.unselect()}},_onNextClick:function(){this.model.selectNextItem()},_onPrevClick:function(){this.model.selectPrevItem()},_onActiveChanged:function(){if(!this.model.active){this._hide()}else{if(this.model.selectedItem){this._show()}}},_onSelectedItemChanged:function(){if(this.model.selectedItem){this._updateSelectedItem();this._show()}else{this._hide()}},_onResize:function(){if(e.device.isMobile){return}this.$el.css({height:this.model.getDetailHeight()+"px"})}})}(DDG);!function(e){var c=e.Views.Base,a=16,f=200,b=500;e.Views.AnswerBar.DetailSliderPane=function(g){this.answer=g.answer;this._pos=g.pos;this.detailView=g.detailView;c.call(this,g);this.bindEvents([[this.answer,"change:expanded",this._onExpandedChanged],[e.device,"resize",this._onResize]])};e.Views.AnswerBar.DetailSliderPane.prototype=$.extend({},c.prototype,{template:"detail_slider_pane",resetPosition:function(h,g){if(this._pos===h&&!this._translateX){return}this._prevX=this._getLeft();this._translateX=0;this._pos=h;if(e.device.isMobile&&$.Velocity){this._transitionPosition(g)}else{this._updatePosition()}},translateX:function(g){if(this._translateX===g){return}this._prevX=this._getLeft();this._translateX=g;this._updatePosition()},setZoom:function(h,g){this.views.detail&&this.views.detail.setZoom&&this.views.detail.setZoom(h,g)},setPan:function(g,i,h){this.views.detail&&this.views.detail.setPan&&this.views.detail.setPan(g,i,h)},getPanDimensions:function(){if(this.views.detail&&this.views.detail.getPanDimensions){return this.views.detail.getPanDimensions()}},_render:function(){c.prototype._render.call(this,this._getMeasurements());var g=this.model.getItemDetailTemplate();this.views.detail=new e.Views.AnswerBar[this.detailView]({model:this.model,answer:this.answer,template:g,parentPadding:a,appendTo:this.$el});this._prevX=this._getLeft();this._updatePosition();this.$el.css({display:"block"});if(!$.Velocity){e.require("velocity",function(){this._updatePosition()}.bind(this))}},_updateDOM:function(){this.$el.css(this._getMeasurements())},_updatePosition:function(){var g=this._getLeft();if($.Velocity){this.$el.velocity("stop");$.Velocity.hook(this.$el,"translateX",g+"px")}else{var h="translateX("+g+"px)";this.$el.css({transform:h,"-webkit-transform":h,"-moz-transform":h,"-ms-transform":h,"-o-transform":h})}},_transitionPosition:function(h){h=h||1;var k=this._getLeft(),j=this._prevX,i=k-j,g=h?(Math.abs(i)/(h*100)*100):e.animation_speed;g=Math.max(Math.min(g,b),f);this.$el.velocity("stop").velocity({translateX:[k,j]},{easing:"ease-out",duration:Math.round(g)})},_getLeft:function(){var g=(this._pos||0)*e.device.width;if(this._translateX){g+=this._translateX}return g},_getMeasurements:function(){var i=e.device,m=i.isMobile,k=i.isMobilePortrait(),o=m?e.device.height:this.answer.getDetailHeight(),n=a,q=n*2,j=i.isMobile?n:this.answer.expanded?n:n+i.gutterSize(),p=k?q:n,g=o-p-n,h=e.device.width;h-=(n+j);return{lineHeight:g+"px",height:g+"px",width:h+"px",padding:[p,n,n,j].join("px ")+"px"}},_onExpandedChanged:function(){this._updateDOM()},_onResize:function(){this._updateDOM();this._updatePosition()}})}(DDG);!function(f){var c=f.Views.Base,e=f.Views.AnswerBar.Answers,b="is-expanded",h=0.8,g=800,a=1;e.Base=function(j){this.views={items:[],itemsById:{}};j.id=j.model.id;c.call(this,j);this._deferShow=j.deferShow;var i=this.model;this.bindEvents([[f.device,"resize",this._onResize],[f.keyboard,"escape."+this.model.id,this._onEscape],[i,"change:active",this._onActiveChanged],[i,"change:expanded",this._onExpandedChanged],[i,"change:items",this._onItemsChanged],[i,"change:isRequerying",this._onRequeryingChanged]]);if(this.isValid()){if(i.active){this.show()}if(i.expanded){this._expand()}if(i.items.length){this._updateItems()}}};e.Base.prototype=$.extend({},c.prototype,{template:"base",isValid:function(){if(this.requiredTemplates){for(var o=0;othis.maxItems)){return false}return true},show:function(){this.$el.addClass("is-active");f.keyboard.set("namespace",this.model.id);if(this.shouldExpandOnShow()){this.model.set("expanded",1)}if(this.model.expanded){f.history.set({iax:this.model.nameId})}if(this._showingNoResults){this._fireNoResultsPixel()}},hide:function(){this.$el.removeClass("is-active");f.keyboard.set("namespace")},getHeight:function(){if(this._height){return this._height}return this.$el&&(this._height=this.$el.outerHeight())},getWidth:function(){if(this._width){return this._width}return this.$el&&(this._width=this.$el.width())},showNoResults:function(i){if(!this.$noResults){this.$noResults=f.$exec_template("no_ia_results",i);this.$el.append(this.$noResults)}this._fireNoResultsPixel();this.$noResults.show();this._showingNoResults=1},hideNoResults:function(){this.$noResults.hide();this._showingNoResults=0},shouldExpandOnShow:function(){var i=this.model.meta.autoExpand&&this.model.meta.autoExpandRows;return this._isQuerystringIAX()&&!i},calculateIAHeight:function(){var j=viewport_height-f.get_header_height(),i=viewport_height=(this.model.items.length-1)){this.model.loadMore()}},selectPrevItem:function(){this.model.selectPrevItem()},getTileWidth:function(j){if(j.$el){var k=this.model.meta;if(k.variableTileWidth||k.itemsWidthVaries||k.itemsExpand){return j.$el.outerWidth()+(this.getTileMargins().x*2)}if(!this.tileWidth){this.tileWidth=j.$el.outerWidth()+(this.getTileMargins().x*2)}}return this.tileWidth},getSelectedTileWidth:function(){return this.model.selectedItem&&this.getTileWidth(this.views.itemsById[this.model.selectedItem.id])},getTileMargins:function(){if(this._tileMargins){return this._tileMargins}if(!this.views.items.length){return{x:0,top:0,bottom:0}}return this._tileMargins=this.views.items[0].getMargins()},getLoadMoreWidth:function(){if(!this._showingLoadMore){return 0}return this.views.items.length&&this.getTileWidth(this.views.items[0])},_render:function(){b.prototype._render.call(this,{id:this.model.id,meta:this.model.meta});this.$tileview=this.$(".tileview");this.$tileWrap=this.$(".tile-wrap");this.$jsTiles=this.$(".js-tiles");this.$jsTiles.on("mousewheel",this._onMouseWheel.bind(this));if(window.addEventListener){this.$jsTiles[0].addEventListener("wheel",this._onMouseWheel.bind(this))}this.$jsTiles.addClass("tileview__"+this.model.id);this.$jsTiles.bind("touchend",this._onJsTilesTouchEnd.bind(this));this.$loadMore=g.$exec_template("tiles_load_more",{id:this.model.id,name:this.model.name});this._onResize()},_createDetailSlider:function(){if(this.views.detail||this.noDetail){return}this.views.detail=new g.Views.AnswerBar.DetailSlider({model:this.model,appendTo:this.$el})},_updateVisibleItems:function(){var s=this._scrollLeft-g.device.gutterSize(),q=s+viewport_width,x=0,u={offscreenRight:[],offscreenLeft:[],visible:[]},p,r,j;for(p=0;r=this.views.items[p];p++){var n=x+r.width,m=x,k=n,o=0,t=0;if(ms){t=1}}else{if(k>q){u.offscreenRight.push(r);if(mq){v.visible=0;u.offscreenRight.push(v)}else{v.visible=1;u.visible.push(v)}}return u},_selectItemFromQuerystring:function(){var j=this.model,n=g.history.get("iai"),m=g.history.get("ia"),k;if(!j.active||j.selectedItem){return}if(m===j.nameId&&typeof n!=="undefined"){k=j.itemsById[n];if(!k&&$.isNumeric(n)){k=j.items[n]}if(k){if(this._rowsToShow&&!k.visible){this._loadMore()}k.select();this._scrollToTile(this.views.itemsById[k.id],{animated:false})}else{if(j.meta.next){this._loadMore()}}}},_selectItemFromMeta:function(){var j=this.model,m=j.meta;if(!j.active||j.selectedItem){return}if(!j.selectedItem&&m.selectedItem){var k=j.itemsById[m.selectedItem];if(!k){k=j.items[m.selectedItem]}k&&k.select();this._scrollToTile(this.views.itemsById[k.id],{animated:false})}},_updateScrollNav:function(){if(!this.views.items.length||!this.model.active){return}if(!this.$leftScrollNav){this.$leftScrollNav=g.$exec_template("tiles_scroll_nav",{dir:"prev"});this.$rightScrollNav=g.$exec_template("tiles_scroll_nav",{dir:"next"});this.$jsTiles.prepend(this.$leftScrollNav);this.$jsTiles.prepend(this.$rightScrollNav);this.$leftScrollNav.bind("click",this._onLeftScrollClick.bind(this));this.$rightScrollNav.bind("click",this._onRightScrollClick.bind(this))}var m=this._updateVisibleItems(),k=m.offscreenLeft.length,j=m.offscreenRight.length;this.$leftScrollNav.attr("data-items",k);this.$rightScrollNav.attr("data-items",j);this.$leftScrollNav.removeClass("can-scroll");this.$rightScrollNav.removeClass("can-scroll");if(k>0){this.$leftScrollNav.addClass("can-scroll")}if(j>0){this.$rightScrollNav.addClass("can-scroll")}if(this.model.active&&this.model.meta.next&&!this.model.expanded&&j<3){this._loadMore()}this.emit("scrolled",m)},_scrollHorizontal:function(j){var k=this._scrollLeft,q=g.device.gutterSize(),m=this._getTotalTileWidth(),o=viewport_width-q,r;if(j==="right"){r=Math.min(k+o,m+q)}else{r=Math.max(k-o,0)}var p,s=0;for(var n=0,u;u=this.views.items[n];n++){if(r>=s&&r<=(s+u.width)){p=u}s+=u.width}if(!p&&this._showingLoadMore&&this.$loadMore){p={"$el":this.$loadMore}}this._scrollToTile(p)},_scrollToTile:function(o,j){if(!o||!o.$el){return}var k=j&&typeof j.animated!=="undefined"?j.animated:true,n=this.model,r=n.meta,q=0,m=0,s,p=this._getTotalTileWidth()+g.device.gutterSize()+h-g.device.width;for(;s=this.views.items[m];m++){if(s===o){break}q+=s.width}if(r.itemsExpand&&m>this._lastExpandedTileIndex){q-=this._lastExpandedTileDiff}q=Math.min(q,p);if(this._scrollLeft===q){return}this._scrollLeft=q;if(k){this._autoScrolling=true;this.$jsTiles.stop().animate({scrollLeft:this._scrollLeft},g.animation_speed,function(){this._autoScrolling=false}.bind(this))}else{this.$jsTiles.scrollLeft(this._scrollLeft)}this._updateScrollNav()},_updateDetailViewPosition:function(){var m=this.model.selectedItem;if(!m||g.device.isMobile||!this.views.detail){return}if(!this.model.expanded){this.views.detail.position("auto");return}var k=this.views.itemsById[m.id],j=parseInt(k.$el.position().top,10),o=this.getTileMargins(),n=j+parseInt(k.$el.outerHeight(),10)+o.bottom;if(this.views.metabar&&!this.views.metabar.isStuck()&&g.settings.get("ko").match(/^(d|s|-1)$/)){n+=this.views.metabar.getHeight()}this.views.detail.position(n+"px")},_updateWidths:function(){delete this.tileWidth;for(var k=0,j;j=this.views.items[k];k++){j.width=this.getTileWidth(j)}},_getTotalTileWidth:function(){var k=0;for(var j=0;jthis.$el.scrollTop()){this._scrollToTile(this.views.items[0])}delete this._rowsToShow}}})}(DDG);!function(e){var c=e.Views.AnswerBar.Answers,b=c.Tiles,f=10,a=5;c.GridTiles=function(h){var g=h.model;b.call(this,h);this.bindEvents([[g,"change:canExpand",this._onCanExpandChanged],[g,"change:selectedTopic",this._onSelectedTopicChanged]]);this._createMetaBar()};c.GridTiles.prototype=$.extend({},b.prototype,{_updateItems:function(){b.prototype._updateItems.call(this);if(this._rowsToShow){this._updateHiddenRows()}},_appendItem:function(h){b.prototype._appendItem.call(this,h);if(e.device.isMobile){var g=this.views.items[this.views.items.length-1];this.bindEvents([[g,"rerender",this._updateHiddenRows]])}},shouldExpandOnShow:function(){var g=this.model.meta.autoExpand&&this.model.meta.autoExpandRows;return this.model.canExpand&&this._isQuerystringIAX()&&!g},_shouldScrollToTileOnItemSelect:function(){var h=this.model,i=h.selectedItem,g=e.device.isMobile,j=h.expanded&&!g;return j||!i.visible},show:function(){b.prototype.show.call(this);var g=this.model,h=g.meta;if(!g.expanded&&g.canExpand){if(h.autoExpand){this.model.set("expanded",1);if(h.autoExpandRows){this._rowsToShow=h.autoExpandRows;this._updateHiddenRows();if(!h.alwaysShowMetabar){this.views.metabar&&this.views.metabar.hide()}}h.autoExpand=0}}},_updateVisibleItems:function(){var h={offscreenRight:[],offscreenLeft:[],visible:[]},g,j,m,k=this.views.items.length;if(!k){return}if(this.model.expanded){if(e.device.isMobile&&this.model.meta.autoExpandRows&&!this.model.isRequery&&(this.model.meta.autoExpand||this._rowsToShow)){if(this.model.name==="Images"){k=f*this.model.meta.autoExpandRows}else{k=a*this.model.meta.autoExpandRows}}for(g=0;j=this.views.items[g];g++){if(gthis._rowsToShow){j=1;m.hide();continue}m.show()}j&&this.addLoadMore()},_getGridTileAt:function(g,m){g=g||0;m=m||0;for(var j=0,h;h=this.views.items[j];j++){var k=h.$el.offset();if(k.left>=g&&k.top>=m){return h}}return null},_scrollToSelectedTopic:function(){if(!this.model.selectedTopic){return}this._scrollToTile(this.views.itemsById[this.model.selectedTopic.items[0].id])},_onCanExpandChanged:function(){if(this.model.expanded&&!this.model.canExpand){this.model.set("expanded")}},_onMetabarStuckChanged:function(){if(this.model.expanded&&!e.device.isMobile){this._updateDetailViewPosition()}},_onResize:function(){b.prototype._onResize.call(this);this._updateHiddenRows();this._updateDetailViewPosition()},_onSelectedTopicChanged:function(){var g=this.model.selectedTopic;this.$(".active-topic").removeClass("active-topic");if(g){var k=this.views.itemsById;this._scrollToSelectedTopic();DDG.addClass(this.model.id,this.$el,"at-topic");for(var h=0;hn)&&(p.height>o)){p.tileWidth=Math.ceil((o/p.height)*p.width)}else{if(p.width>n){p.tileWidth=p.width}else{p.tileWidth=n}}c.prototype._appendItem.call(this,p)},getTileWidth:function(n){return n.model.tileWidth+(this.getTileMargins().x*2)},getLoadMoreWidth:function(){return this._loadMoreTileWidth||j},_expand:function(){this.$jsTiles.css("width",this.getWidth());if(this.model.id==="images"){if(!g.device.isMobile||!this.model.meta.autoExpandRows){this.$el.css("min-height",g.device.height-g.get_header_height())}}c.prototype._expand.call(this);this._recalcTileGridDimensions();this._updateTileWidths();g.history.set({ia:this.model.id});this._checkLoadMore();if(!this.model.meta.autoExpandRows){this.setIARequery()}g.keyboard.set("nativeUpDown",true)},_collapse:function(){c.prototype._collapse.call(this);this._clearMinHeight();this._toggleTrailingTileVisibility();this.$jsTiles.css("width","auto");this._updateTileWidths();this.clearIARequery();g.keyboard.clear("nativeUpDown")},_clearMinHeight:function(){if(!g.device.isMobile&&g.settings.isDefault("kc")){this.$el.css("min-height","")}},_recalcTileGridDimensions:function(){if(!this.views.items.length){return}var s=[],p=0,n=this.getWidth(),u=this.getTileMargins().x*2,o=1,t,v,r=0;for(var q=0;t=this.views.items[q];q++){v=t.model;v.gridWidth=v.tileWidth;delete v.killMinWidth;p+=v.gridWidth+u;s.push(v);v.gridRow=o;if(p>n){b(s,p-n);p=0;s=[];o++}if(v.selected){r=o}}if(o>1){this._toggleTrailingTileVisibility(o,n-p,r)}},_toggleTrailingTileVisibility:function(n,r,p){var q;for(var o=0;q=this.views.items[o];o++){if(q.model.gridRow===n&&r>m&&p!==n){q.model.set({hidden:1});q.$el.addClass("is-hidden")}else{if(q.model.hidden){delete q.model.hidden;q.$el.removeClass("is-hidden")}}}},_updateTileWidths:function(){var q=this.getTileMargins(),p;for(var n=0,o;o=this.views.items[n];n++){if(o.$el){p=o.model;o.$el.css({width:this.model.expanded?p.gridWidth:p.tileWidth,marginLeft:q.x+"px",marginRight:q.x+"px"});if(p.killMinWidth){o.$el.css({minWidth:0})}}}if(!is_mobile){this.$loadMore.css({width:((this.model.expanded)?e:this.getLoadMoreWidth())+"px",marginLeft:(this.model.expanded)?"auto":q.x+"px",marginRight:(this.model.expanded)?"auto":q.x+"px"})}},_onResize:function(){this._width=null;this.$jsTiles.css("width",this.getWidth());c.prototype._onResize.call(this);if(this.views.items.length&&this.model.expanded){this._recalcTileGridDimensions();this._updateTileWidths();this._updateDetailViewPosition();this._checkLoadMore()}},_onScroll:function(){this._checkLoadMore()},_checkLoadMore:function(){if(!this.model.canLoadOnScroll()){return}var p=g.device,q=this.views.items.length-1,o=this.views.items[q],r=(p.height-(g.get_header_height()+this.views.metabar.getHeight())),n=((r+p.scrollTop())/k)+i;if(o&&o.model.gridRows){q.gridWidth-=t;break}else{if(n===o.length-1){q.gridWidth-=t;q.killMinWidth=1}}}}}(DDG);!function(c){var b=c.Views.AnswerBar.Answers,a=b.GridTiles;b.Videos=function(e){a.call(this,e)};b.Videos.prototype=$.extend({},a.prototype,{show:function(){if(this.model.expanded){this.setIARequery()}a.prototype.show.call(this)},hide:function(){this.clearIARequery();a.prototype.hide.call(this)},showNoResults:function(){var f={},e=this.model.name;if(window.iqbi&&!c.settings.safeSearch.isOff()&&!c.history.get("iaf")){f.message=l("%s blocked by safe search.",e)}a.prototype.showNoResults.call(this,f)},_expand:function(){if(!this.model.meta.autoExpandRows){this.setIARequery()}if(!c.device.isMobile||!this.model.meta.autoExpandRows){this.$el.css("min-height",c.device.height-c.get_header_height())}a.prototype._expand.call(this)},_collapse:function(){this.clearIARequery();this._clearMinHeight();a.prototype._collapse.call(this)},_clearMinHeight:function(){if(!c.device.isMobile&&c.settings.isDefault("kc")){this.$el.css("min-height","")}},_onLoadMoreClick:function(f){if(c.device.isMobile){this.setIARequery()}a.prototype._onLoadMoreClick.call(this,f)}})}(DDG);!function(f){var e=f.Views.AnswerBar.Answers,b=e.Base,c={images:{mobile:185,desktop:216},forecast:{mobile:395,desktop:281},nlp_qa:{mobile:133,desktop:253},products:{mobile:279,desktop:269},recipes:{mobile:251,desktop:205,desktopTall:268},sound_cloud:{mobile:330,desktop:311},time:{mobile:154,desktop:154},videos:{mobile:250.5,desktop:238,desktopTall:272}},a=190;e.Placeholder=function(g){this.signalWait=g.signalWait;this.timeAdded=new Date().getTime();b.call(this,g);this.show();this.updateHeight()};e.Placeholder.prototype=$.extend({},b.prototype,{updateHeight:function(){var i=c[this.signalWait],h=f.device,g;if(i){if(h.isMobile){g=i.mobile||a}else{if(h.isTeapot()){g=i.desktop||a}else{g=i.desktopTall||i.desktop||a}}}this.$el.height(g)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.AnswerBarMenuItem=function(c){a.call(this,c);this.$link=this.$(".js-zci-link");this.bindEvents([[this.model,"change:active",this._onActiveChanged],[this.model,"change:visible",this._onVisibleChanged],[this.$link,"click",this._onClick]])};b.Views.AnswerBarMenuItem.prototype=$.extend({},a.prototype,{template:"duckbar_tab",_render:function(){a.prototype._render.call(this,this.model)},_onClick:function(c){c.preventDefault();this.model.toggle()},_onActiveChanged:function(c){this.$link.toggleClass("is-active",c)},_onVisibleChanged:function(c){this.$el.toggleClass("is-hidden",!c)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.AnswerBarMenu=function(c){a.call(this,c);this.views.items=[];this.views.itemsById={};this.bindEvents([[this.model,"change:items",this._onItemsChanged]]);this.bindEvents([[b.deep,"change:finished",this._renderSettings.bind(this)]])};b.Views.AnswerBarMenu.prototype=$.extend({},a.prototype,{template:"answerbar_tabs",_renderSettings:function(){new b.Views.Dropdowns.SettingsDropdown({appendTo:"#duckbar_dropdowns"})},_render:function(c){a.prototype._render.call(this,c);this.$staticWrap=this.$("#duckbar_static");this.$newItem=this.$("#duckbar_new");this.$sep=this.$("#duckbar_dynamic_sep")},_onItemsChanged:function(){this.model.items.forEach(function(c){if(this.views.itemsById[c.id]){return}this._addItem(c)}.bind(this));this.views.items.forEach(function(c){if(!this.model.itemsById[c.model.id]){this._removeItem(c)}}.bind(this))},_addItem:function(e){if(e.isPendingModule){return}var f;if(e.type==="static"){f=this.$staticWrap}else{f=this.$newItem;this.$sep.removeClass("is-hidden")}var c=new b.Views.AnswerBarMenuItem({appendTo:f,model:e});this.views.items.push(c);this.views.itemsById[e.id]=c;f.addClass("has-zci")},_removeItem:function(e){for(var c in this.views.items){if(this.views.items[c].model.id===e.model.id){this.views.items[c].destroy();delete this.views.items[c];delete this.views.itemsById[e.model.id];break}}}})}(DDG);!function(b){var a=b.Models.Base;b.Models.GLMap=function(c){this.locations=c.locations||[c.selectedLocation];this.selectedLocation=c.selectedLocation||(this.locations.length===1&&c.locations[0]);this.pixelId=c.pixelId;this.isSatellite=false;a.call(this,c)};b.Models.GLMap.prototype=$.extend({},a.prototype,{})}(DDG);!function(b){var a=b.Views.Base;b.Views.Address.AddressDetail=function(c){this.answer=c.answer;a.call(this,c);this.bindEvents([[this.$address,"click",this._onLinkClick],[this.$title,"click",this._onLinkClick],[this.$el,"click",this._onClick]])};b.Views.Address.AddressDetail.prototype=$.extend({},a.prototype,{template:"address_detail",_render:function(c){a.prototype._render.call(this,$.extend({mapkitAppleDevice:b.device.isAppleDevice},this.model));this._cacheElems(".js-address-detail",["title","address"]);this.views.directions=new b.Views.Maps.DirectionsButton({appendTo:this.$el,loc:this.model,answer:this.answer})},_updateMapLinks:function(){var f=b.directionSource.getMapURL(this.model),c=b.get_favicon_url(b.directionSource.selected.faviconURL||f),e=b.directionSource.selected.name;this.$address.attr("href",f).attr("title","Open in "+e);this.$(".js-maps-module-favicon img").attr("src",c)},updateDropdownPosition:function(c){this.views.directions&&this.views.directions.changeVerticalPos(c)},_onClick:function(){this.answer.engaged()},_onLinkClick:function(c){this.answer.engaged();c.preventDefault();c.stopPropagation();this.answer.set("isMapExpanded",true);this.answer.fire("iacg")}})}(DDG);!function(c){var a=c.Views.Base,b=5;c.Views.Mapkit.Map=function(e){this.mapkit=e.mapkit||c.mapkit;this.geo=e.geo||c.geo;this.answer=e.answer;this._mapOffset=e.mapOffset||{top:0,right:0,bottom:0,left:0};this._isFrozen=e.isFrozen||false;this._hideLoc=e.hideLoc||false;this._hideMapTypeControl=e.hideMapTypeControl||false;this._hideScale=e.hideScale||false;this._hideCompass=e.hideCompass||false;this._isCurrentThemeDark=c.settings.isDarkTheme();this._markers=e.markers||[];a.call(this,e);this.bindEvents([[this.answer,"change:isMapExpanded",this._onIsMapExpandedChange],[this.answer,"change:selectedItem",this._onSelectedItemChange],[this.answer,"change:isRequerying",this._onRequeryingChange],[this.answer,"change:items",this._onItemsChange],[c.settings,"change:"+c.settings.THEME_KEY,this._onThemeChange]])};c.Views.Mapkit.Map.prototype=$.extend({},a.prototype,{template:"mapkit_map",hide:function(){this.$el.addClass("is-hidden")},show:function(){this.$el.removeClass("is-hidden");this.recenter()},recenter:function(f){if(!this.views.map){return}if(f){var e=new w.mapkit.Coordinate(f.lat,f.lon);this.views.map.setCenterAnimated(e)}else{this.views.map.setVisibleMapRectAnimated(this._originalMapRect)}},updateMapOffset:function(e){if(!this.views.map){return}this._mapOffset=e;this.views.map.padding=new w.mapkit.Padding(this._mapOffset)},updateMap:function(h){var f=h||this._mapOffset;if(!this.views.map||!this.views.markers){return}this.updateMapOffset(f);this.views.map.showItems(this.views.map.annotations,{padding:new w.mapkit.Padding(f)});if(this._markers.length===1){var e=this._markers[0];var g;if(e.bbox){g=this.mapkit.regionFromBoundingBox(e.bbox)}else{g=this.mapkit.regionFromLatLon(e.lat,e.lon)}this.views.map.setRegionAnimated(g,false)}this._originalMapRect=this.views.map.visibleMapRect},getCenter:function(){var e=this.views.map.center;return{lat:e.latitude,lon:e.longitude}},_isMarkerVisible:function(g){if(!g.annotation){return false}var j=g.annotation.coordinate,e=this.views.map.convertCoordinateToPointOnPage(j),h=e.x>this._mapOffset.left&&e.xthis._mapOffset.top&&e.y0){this.views.map.removeAnnotations(this.views.map.annotations)}},_onItemsChange:function(){this._markers=this.answer.itemsOnMap;this._renderMarkers();this._originalMapRect=this.views.map.visibleMapRect;if(this.answer.shouldMapViewportUpdate){this.updateMap()}},_onSelectedItemChange:function(){if(this.answer.isRequerying||this.answer.isSingle){return}var e=this.answer.selectedItem;if(!e){this.recenter()}else{if(!this._isMarkerVisible(e)){this.recenter({lat:e.lat,lon:e.lon})}}},_updateMapType:function(){if(!this.views.map||!this.answer){return}this.answer.set("isDarkMap",this._isCurrentThemeDark||this.views.map.mapType!=="standard")},_getMarkersWithUserLoc:function(f,j){var g=this._markers.slice();var e=!!this.answer.proximity;var i=c.geo.intersects(f,j);var h=c.geo.near(f,g,b);if(e||i||h){g.push({lat:f.lat,lon:f.lon})}return g},_renderUserLocation:function(){if(!this.views.userLocation&&c.userLocator.hasLocation()){this.views.userLocation=new c.Views.Mapkit.UserLocation({model:c.userLocator,answer:this.answer,map:this.views.map})}},_renderMap:function(){var g={padding:new w.mapkit.Padding(this._mapOffset),showsScale:w.mapkit.FeatureVisibility[this._hideScale?"Hidden":"Visible"],isScrollEnabled:true,showsMapTypeControl:!this._hideMapTypeControl,showsCompass:w.mapkit.FeatureVisibility[this._hideCompass?"Hidden":"Adaptive"],colorScheme:c.settings.isDarkTheme()?w.mapkit.Map.ColorSchemes.Dark:w.mapkit.Map.ColorSchemes.Light};if(this._markers.length>1){var h=c.geo.boundingBox(this._markers);var f=c.userLocator.hasLocation()&&c.userLocator.userLocation;if(f){h=c.geo.boundingBox(this._getMarkersWithUserLoc(f,h))}g.region=this.mapkit.regionFromBoundingBox(h)}else{if(this._markers.length===1){var e=this._markers[0];if(e.bbox){g.region=this.mapkit.regionFromBoundingBox(e.bbox)}else{g.region=this.mapkit.regionFromLatLon(e.lat,e.lon)}}else{if(this.model.selectedLocation){g.region=this.mapkit.regionFromLatLon(this.model.selectedLocation.lat,this.model.selectedLocation.lon)}}}this.views.map=new w.mapkit.Map(this.$el[0],g);this.views.map._impl._allowWheelToZoom=true;this.views.map.distances=w.mapkit.Map.Distances[c.geo.getUOM()==="metric"?"Metric":"Imperial"];this._updateMapType();if(this._isFrozen){setTimeout(function(){this.$el&&this.$el.addClass("mapkit-static--show-legal")}.bind(this),1000)}if(c.settings.isDefault("kay")){c.settings.set("kay","b",{saveToCloud:true})}else{if(c.settings.get("kay")==="i"){this.views.map.addTileOverlay(new w.mapkit.TileOverlay(function(){}))}}this._originalMapRect=this.views.map.visibleMapRect;this.views.map.addEventListener("complete",function(i){this._onMapLoad()}.bind(this));this.views.map.addEventListener("scroll-start",function(i){this.emit("dragstart")}.bind(this));this.views.map.addEventListener("select",function(i){this.emit("select")}.bind(this));this.views.map.addEventListener("zoom-start",function(i){this._onZoomStart()}.bind(this));this.views.map.addEventListener("map-type-change",function(i){this._onMapTypeChange()}.bind(this));this.views.map.addEventListener("region-change-end",function(i){this._onMapMove()}.bind(this));this.views.map.addEventListener("scroll-end",function(i){this._onMapScrollZoom()}.bind(this));this.views.map.addEventListener("zoom-end",function(i){this._onMapScrollZoom()}.bind(this))},_renderMarkers:function(){this.views.markers=this._markers.map(function(e){var f=new c.Views.Mapkit.Marker({model:e,answer:this.answer,isFrozen:this._isFrozen});this.views.map.addAnnotation(f.annotation);e.annotation=f.annotation;return f}.bind(this))},_createMap:function(){this._renderMap();if(!this._hideLoc){this._renderUserLocation()}this._renderMarkers()},_render:function(e){a.prototype._render.call(this,e);this.$clickOverlay=this.$(".js-mapkit-map-click-overlay");if(this.mapkit.isMapInitialized){this._createMap()}else{this.mapkit.init(function(g,f){if(f){this.mapkit.isMapInitialized=true;this._createMap()}else{}}.bind(this))}this.bindEvents([[this.$clickOverlay,"click",this._onClickOverlayClick]]);if(this._isFrozen){c.pixel.fire("map_si")}},_saveCurrentViewport:function(){if(this.answer){var h=this.views.map.region.center.latitude,j=this.views.map.region.center.longitude,g=this.views.map.region.span.latitudeDelta,f=this.views.map.region.span.longitudeDelta,e=(h+g/2)+","+(j-f/2),i=(h-g/2)+","+(j+f/2);this.answer.set({geo_bbox:{top_left:e,bottom_right:i,lat:h,lon:j,lat_delta:g,lon_delta:f}})}},_onIsMapExpandedChange:function(){if(this.answer.isMapExpanded){this.$clickOverlay.addClass("is-hidden")}else{this.$clickOverlay.removeClass("is-hidden")}},_onMapLoad:function(){this._saveCurrentViewport();this.emit("load")},_onClickOverlayClick:function(){this.emit("click")},_onZoomStart:function(){c.pixel.fire("map_eze")},_onMapTypeChange:function(){this._updateMapType();c.pixel.fire("map_ete")},_onMapMove:function(){this._saveCurrentViewport();this.emit("dragend")},_onMapScrollZoom:function(){this.emit("scrollzoom")},_onThemeChange:function(){if(this._isCurrentThemeDark!==c.settings.isDarkTheme()){this.views.map.colorScheme=c.settings.isDarkTheme()?w.mapkit.Map.ColorSchemes.Dark:w.mapkit.Map.ColorSchemes.Light;this._isCurrentThemeDark=!this._isCurrentThemeDark;this.answer.set("isDarkMap",this._isCurrentThemeDark)}}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Mapkit.StaticMap=function(c){this._ops={};a.call(this,c);this.bindEvents([[b.settings,"change:"+b.settings.THEME_KEY,this._onThemeChange],[b.duckbar.menu,"item-active",this._onTabChanged]])};b.Views.Mapkit.StaticMap.prototype=$.extend({},a.prototype,{template:"mapkit_static_map",hide:function(){this.$el.hide()},show:function(){this.$el.show()},_render:function(c){this._ops=c||this._ops;this._isCurrentThemeDark=b.settings.isDarkTheme();this._ops.url=b.mapkit.getStaticImageURL(this._ops);a.prototype._render.call(this,this._ops);b.pixel.fire("map_si");setTimeout(function(){this.$el&&this.$el.addClass("mapkit-static--show-legal")}.bind(this),1000);this.bindEvents([[this.$el,"click",this._onClick]])},_onThemeChange:function(){if(this._isCurrentThemeDark!==b.settings.isDarkTheme()){this._isCurrentThemeDark=!this._isCurrentThemeDark;this._rerender()}},_onClick:function(){this.emit("click");b.pixel.fire("map_se")},_onTabChanged:function(){if(this.$el&&!this.$el.is(":visible")){return}var e=this.$el.outerWidth();var c=this.$el.outerHeight();if(this._ops.width!==e||this._ops.height!==c){this._ops.width=e;this._ops.height=c;this._rerender()}}})}(DDG);!function(c){var a=c.Views.Base,b={circle:"circle",number:"numbered",dot:"dot"};c.Views.Mapkit.Marker=function(e){this.mapkit=e.mapkit||c.mapkit;this.answer=e.answer;this.model=e.model;this.markerType=b.circle;if(e.markerType){this.markerType=e.markerType}else{if(this.answer&&this.answer.items.length>1){this.markerType=(e.isFrozen&&this.model.number>3)?b.dot:b.number}}e.markerType=this.markerType;e.number=(this.markerType===b.number)?this.model.number:false;a.call(this,e);this.bindEvents([[this.answer,"change:selectedItem",this._updateSelectedState],[this.model,"change:selected",this._updateSelectedState],[this.model,"change:highlighted",this._onHighlightedChange]]);if(this.answer.selectedItem){this._updateSelectedState()}};c.Views.Mapkit.Marker.prototype=$.extend({},a.prototype,{template:"mapkit_marker",_render:function(e){a.prototype._render.call(this,e);this.annotation=this.mapkit.marker(this.model.lat,this.model.lon,function(){return this.$el[0]}.bind(this));this.$mkEl=this.$el.parent();this.$mkEl.addClass("mapkit-marker");this.bindEvents([[this.$el,"mouseenter",this._onMouseEnter],[this.$el,"mouseleave",this._onMouseLeave],[this.$el,"click",this._onClick],[this.$el,"touchstart",this._onClick]])},_updateSelectedState:function(){this.$el.toggleClass("mgl-marker--selected",!!this.model.selected);this.$mkEl.toggleClass("mapkit-marker--selected",!!this.model.selected);if(!this.answer.selectedItem||this.model.selected){this.$el.removeClass("mgl-marker--disabled");this.$mkEl.removeClass("mapkit-marker--disabled")}else{if(this.answer.selectedItem&&!this.model.selected){this.$el.addClass("mgl-marker--disabled");this.$mkEl.addClass("mapkit-marker--disabled")}}},_onHighlightedChange:function(){this.$el.toggleClass("mgl-marker--highlighted",!!this.model.highlighted);this.$mkEl.toggleClass("mapkit-marker--highlighted",!!this.model.highlighted)},_onMouseEnter:function(){this.model.highlight()},_onMouseLeave:function(){this.model.unhighlight()},_onClick:function(){this.model.select()}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Mapkit.CloseControl=function(c){a.call(this,c);this.bindEvents([[this.model,"change:isDarkMap",this._onMapTypeChange],[this.model,"change:isMapExpanded",this._onMapTypeChange]])};b.Views.Mapkit.CloseControl.prototype=$.extend({},a.prototype,{template:"mapkit_close_control",show:function(){this.$el.show()},hide:function(){this.$el.hide()},_render:function(c){c=c||{};a.prototype._render.call(this,$.extend({},c,{isDarkMap:this.model.isDarkMap||b.settings.isDarkTheme(),isSafari:b.device.isSafari}));this.bindEvents([[this.$el,"click",this._onClick]])},_onMapTypeChange:function(){if(this.model.isMapExpanded){this._rerender()}},_onClick:function(c){c.preventDefault();c.stopPropagation();this.model.set("isMapExpanded",false);this.model.engaged();b.pixel.fire("map_ece")}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Mapkit.UserLocationControl=function(c){a.call(this,c);this.bindEvents([[this.model,"change:waitingForLocation",this._onWaitingForLocationChange],[this.$el,"click",this._onClick]])};b.Views.Mapkit.UserLocationControl.prototype=$.extend({},a.prototype,{template:"mapkit_user_location_control",hide:function(){this.$el.addClass("is-hidden")},show:function(){this.$el.removeClass("is-hidden")},_onWaitingForLocationChange:function(){this.$el.toggleClass("mapbox-control--waiting",this.model.waitingForLocation)},_onClick:function(c){c.preventDefault();c.stopPropagation();this.model.updateLocation({force:true,updateType:"map"})}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Mapkit.UserLocationMarker=function(c){this.mapkit=c.mapkit||b.mapkit;this.model=c.model;this.coords={lat:this.model.userLocation.lat,lon:this.model.userLocation.lon};c.markerType="loc";a.call(this,c)};b.Views.Mapkit.UserLocationMarker.prototype=$.extend({},a.prototype,{template:"mapkit_marker",_render:function(c){a.prototype._render.call(this,c);this.annotation=this.mapkit.marker(this.coords.lat,this.coords.lon,function(){return this.$el[0]}.bind(this))}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Mapkit.UserLocation=function(c){this.answer=c.answer;this.map=c.map;a.call(this,c);this.bindEvents([[this.model,"change:userLocation",this._onUserLocationChange]])};b.Views.Mapkit.UserLocation.prototype=$.extend({},a.prototype,{template:"mapkit_user_location",_addToDOM:function(){this.views.marker=new b.Views.Mapkit.UserLocationMarker({model:this.model});this.map.addAnnotation(this.views.marker.annotation);this._updateLocation()},_updateLocation:function(){var c=this.model.userLocation.lat;var e=this.model.userLocation.lon;this.views.marker.annotation.coordinate=b.mapkit.coord(c,e)},_onUserLocationChange:function(){if(b.userLocator.hasLocation()){this._updateLocation()}}})}(DDG);!function(c){var b=c.Views.Base,a="mapbox-position-picker__marker--moving";c.Views.Mapkit.PositionPicker=function(e){this.model=e.model;b.call(this,e)};c.Views.Mapkit.PositionPicker.prototype=$.extend({},b.prototype,{template:"mapkit_position_picker",show:function(){this.views.map&&this.views.map.show()},hide:function(){this.views.map&&this.views.map.hide()},_getPosition:function(){if(!this.views.map){return null}var e=this.views.map.getCenter();return new c.Models.UserLocation({lat:e.lat,lon:e.lon,type:c.Models.UserLocation.MANUAL_LOCATION})},_render:function(e){b.prototype._render.call(this,e);this._cacheElems(".js-mapkit-position-picker",["map","marker"]);this._createMap()},_createMap:function(){this.views.map=new c.Views.Mapkit.Map({model:this.model,appendTo:this.$map,hideLoc:true,hideMapTypeControl:true,hideScale:true,hideCompass:true});this.bindEvents([[this.views.map,"load",this._onMapLoaded],[this.views.map,"dragstart",this._onMapMoveStart],[this.views.map,"dragend",this._onMapMoveEnd]])},_onMapLoaded:function(){this.$map.removeClass("is-loading")},_onMapMoveStart:function(){this.$marker.addClass(a)},_onMapMoveEnd:function(){this.$marker.removeClass(a);this.model.set("selectedLocation",this._getPosition())}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Attribution=function(c){this.answer=c.answer;this.direction=c.direction;a.call(this,c);this.$(".js-attribution-link").click(this._onLinkClick.bind(this))};b.Views.Attribution.prototype=$.extend({},a.prototype,{template:"attribution",_onLinkClick:function(f){f.preventDefault();f.stopPropagation();if(!this.views.modal){this.views.modal=new b.Views.AttributionModal({answer:this.answer,direction:this.direction,appendTo:this.$el})}var c=this.views.modal;if(c.isShowing){c.hide()}else{b.pixel.fire("iaa",this.answer.pixelId);c.show()}this.answer.engaged()}})}(DDG);!function(b){var a=b.Views.Modal;b.Views.AttributionModal=function(c){a.call(this,c)};b.Views.AttributionModal.prototype=$.extend({},a.prototype,{template:"attribution_modal",_render:function(e){var f=e.answer.meta,g=f.developer,c=false;g.forEach(function(h){if(h&&h.name&&h.name!=="DDG Team"&&h.name!=="DuckDuckGo"&&h.name!=="duckduckgo"){h.show=c=true}});a.prototype._render.call(this,{direction:e.direction,devs:c&&g,meta:f})}})}(DDG);!function(e){var c=e.Views.Feedback,b=e.Views.Base,f="is-hidden",a="feedback-btn--clicked";c.Button=function(g){this.category=g.category;this.clickPixel=g.clickPixel;this.noFaces=g.noFaces||false;this.extraData=g.extraData||{};b.call(this,g)};c.Button.prototype=$.extend({},b.prototype,{template:"feedback_button",_render:function(g){b.prototype._render.call(this,g);this._cacheElems(".js-feedback",["start","love","nolove","icon-wrap"]);this.bindEvents([[this.$start,"click",this._onStartClick],[this.$love,"click",this._onLoveClick],[this.$nolove,"click",this._onNoLoveClick]])},_addModal:function(g){if(!this.views.modal){this.views.modal=new c.Modal({category:this.category,extraInfo:$.param(this.extraData),appendTo:$("body")});this.views.modal.on("hidden",this._hideFaces.bind(this))}this.views.modal.show(g)},_showFaces:function(){this.$iconwrap.removeClass(f);setTimeout(function(){this.$el.addClass(a)}.bind(this),100)},_hideFaces:function(){this.$el.removeClass(a);setTimeout(function(){this.$iconwrap.addClass(f)}.bind(this),200)},_onStartClick:function(g){g.preventDefault();if(this.clickPixel){e.pixel.fire(this.clickPixel)}if(this.noFaces){this._addModal(false)}else{this._showFaces();e.$doc.one("click",this._onDocumentClick.bind(this))}return false},_onDocumentClick:function(g){if(!this.$love.is(g.target)&&!this.$nolove.is(g.target)){this._hideFaces()}},_onLoveClick:function(g){g.preventDefault();this._addModal(true)},_onNoLoveClick:function(g){g.preventDefault();this._addModal(false)}})}(DDG);!function(c){var b=c.Views.Feedback,a=c.Views.Base,e="is-hidden";b.ReportAdsButton=function(f){this.category=f.category;this.extraData=f.extraData||{};this.whichAd=f.whichAd;a.call(this,f)};b.ReportAdsButton.prototype=$.extend({},a.prototype,{template:"report_ads_button",_render:function(f){a.prototype._render.call(this,f);this._cacheElems(".js-report-ad",["start"]);this.bindEvents([[this.$start,"click",this._onAdReportClick]])},_showModal:function(f){if(!this.views.modal){this.views.modal=new b.Modal({category:"ads",adInfo:JSON.stringify(f),appendTo:$("body")})}this.views.modal.show(false);this.views.modal.on("submitted",this._hideReportAdButton.bind(this))},_hideReportAdButton:function(){this.$start.addClass(e)},_onAdReportClick:function(g){g.preventDefault();var f=this._getAdData();this._showModal(f);f.adt=encodeURIComponent(f.adt);f.adsnippet=encodeURIComponent(f.adsnippet);c.pixel.fire("readsb",f)},_getAdData:function(){var f=c.page.ads.getAds();f=f[this.whichAd];return{whichad:this.whichAd,adt:f.t,adsrc:f.d,adgood:f.relevancy?f.relevancy.is_good_v8:0,adsnippet:f.a}}})}(DDG);!function(j){var g=j.Views.Feedback,b=j.Views.Modal,f="fbc",c=50,n=500,e="other",k="security",a="is-hidden",m="is-invisible",i="is-disabled",h=["ads"];g.Modal=function(o){this.sourceName=o.sourceName||"";this.defaultCategory=o.category||"";this.category=o.category||"";this.categoryValue=o.categoryValue||"";this.issue="";this.extraInfo=o.extraInfo;this.adInfo=o.adInfo;o.model=o.model||new j.Models.Feedback();this.hasIssues=this._checkHasIssues();this.requiresSuggestion=h.indexOf(this.category)!==-1;b.call(this,o);this.bindEvents([[this.model,"change:success",this._onFeedbackSuccess],[this.model,"change:error",this._onFeedbackError]])};g.Modal.prototype=$.extend({},b.prototype,{template:"feedback_modal",show:function(o){this.$suggestionlabel.html(o?lp("feedback form","What did you like?"):lp("feedback form","What could be better?"));this._isPositive=o;this.$form.removeClass(a);this.$success.addClass(a);this._showHideSuggestions();this._toggleSubmitButton();if(!this._isPositive&&this.category&&this.hasIssues){this.$issues.removeClass(m);this.$dropdown.val(this.category);this._setCategoryIssues(this.categoryValue)}b.prototype.show.call(this)},_render:function(r){var p=[{text:lp("feedback form","Pick a category"),val:""}];var o=[{text:l("Results"),val:"organics"},{text:lp("feedback form","Wikipedia Info"),val:"wikipedia"},{text:lp("feedback form","Advertisements"),val:"ads"},{text:l("Images"),val:"images"},{text:l("Videos"),val:"videos"},{text:l("News"),val:"news"},{text:lp("feedback form","Maps / Location Info"),val:"maps"},{text:l("Products"),val:"products"},{text:lp("feedback form","Search Box"),val:"search box"},{text:lp("feedback form","Security Issue (Opens in New Tab)"),val:"security"},{text:lp("feedback form","Settings"),val:"settings"},{text:lp("feedback form","Date Filters"),val:"filters"},{text:lp("feedback form","Other"),val:e}];if(r.categoryName){this.categoryName=r.categoryName;for(var q=0;q0,o=this.category.length,r=o&&this.category==="ads",q=this.issue.length;if(!o){return false}if(this._isPositive&&!this.isOtherCategory){return true}if(r){if(!p){return false}if(q||this._isPositive){return true}}else{if(this.isOtherCategory&&p){return true}else{if(!this.hasIssues){return true}else{if(this.hasIssues&&q){return true}}}}return false},_checkHasIssues:function(){if(this.category==="ads"){return true}if(!j.device.isEnglish){return false}return DDG.Data.FeedbackIssues.hasOwnProperty(this.category)},_getIssues:function(o){if(o){return DDG.Data.FeedbackIssues[o].slice()}return DDG.Data.FeedbackIssues[this.category].slice()},_getLookingFor:function(){if((this.category===this.defaultCategory)&&this.categoryValue){return this.categoryValue}return this.category},_onFeedbackSuccess:function(){if(this.model.success){this._reset();this._showSuccessMessage()}},_onFeedbackError:function(){if(this.model.error){this.hide();this._reset()}}})}(DDG);!function(c){var b=c.Views.Feedback,a=c.Views.Base;b.FeedbackPrompt=function(e){this.category=e.category;this.extraData=e.extraData||{};e.showYesNo=e.showYesNo!==false;this.categoryName=e.categoryName;this.categoryValue=e.categoryValue;this.sourceName=e.sourceName;a.call(this,e);this.bindEvents([[".js-feedback-prompt-yes","click",this._onYesClicked],[".js-feedback-prompt-no","click",this._onNoClicked]])};b.FeedbackPrompt.prototype=$.extend({},a.prototype,{template:"feedback_prompt",_showModal:function(e){if(!this.views.modal){this.views.modal=new b.Modal({sourceName:this.sourceName,category:this.category,categoryName:this.categoryName,categoryValue:this.categoryValue,extraInfo:$.param(this.extraData),appendTo:$("body")})}this.views.modal.show(e)},_onYesClicked:function(f){f.preventDefault();c.pixel.fire("fbp",this.category,"yes",this.extraData);this._showModal(true)},_onNoClicked:function(f){f.preventDefault();c.pixel.fire("fbp",this.category,"no",this.extraData);this._showModal(false)}})}(DDG);!function(c){var b=c.Views.Modal,e="is-hidden",a="is-disabled",f="other";c.Views.ReportImageModal=function(g){g.appendTo=g.appendTo||".js-site-wrapper";g.model=g.model||new c.Models.Feedback();b.call(this,g);this.model.thumbnail=g.thumbnail;this.model.image=g.image;this.bindEvents([[this.model,"change:success",this._onFeedbackSuccess],[this.model,"change:error",this._onFeedbackError]])};c.Views.ReportImageModal.prototype=$.extend({},b.prototype,{template:"report_image_modal",hide:function(){this._reset();b.prototype.hide.call(this)},show:function(){this.$form.removeClass(e);this.$success.addClass(e);b.prototype.show.call(this)},_onDropdownChange:function(g){var h=this.$dropdown.val();if(h===f){this.$comment.focus()}this._toggleSubmitButton()},_onFeedbackError:function(){if(this.model.error){this.hide()}},_onFeedbackSuccess:function(){if(this.model.success){this._reset();this._showSuccessMessage()}},_onSubmitClick:function(i){i.preventDefault();if(this.$submit.hasClass(a)){return}this.$submit.addClass(a);var j=c.duckbar.getActiveTab(),g=j?j.pixelId:"";var h={comment:this.$comment.val(),reason:this.$dropdown.val(),tab:g,type:"images"};this.model.send(h)},_render:function(h){var g=[{text:lp("feedback form","Pick a specific problem"),val:""},{text:lp("Report image modal","Not relevant"),val:"not_relevant"},{text:lp("Report image modal","Copyright violation"),val:"copyright_violation"},{text:lp("Report image modal","Explicit content"),val:"explicit"},{text:lp("Report image modal","Child sexual abuse"),val:"child_abuse"},{text:lp("feedback form","Other"),val:f}];b.prototype._render.call(this,$.extend({},h,{thumbnail:this.model.thumbnail,options:g}));this._cacheElems(".js-feedback",["comment","dropdown","form","submit","success"]);this.bindEvents([[this.$dropdown,"change",this._onDropdownChange],[this.$submit,"click",this._onSubmitClick],[this.$comment,"input",this._toggleSubmitButton]])},_reset:function(){this.$submit.addClass(a);this.$dropdown.val("");this.$comment.val("")},_showSuccessMessage:function(){this.$success.removeClass(e);this.$form.addClass(e)},_toggleSubmitButton:function(){var i=this.$comment.val().trim(),j=this.$dropdown.val(),h=j===f,g=h?i.length:j.length;this.$submit.toggleClass(a,!g)}})}(DDG);!function(c){var b=c.Views.Feedback,a=c.Views.Base;b.IssueList=function(e){this.issues=e.issues;e.model=e.model;a.call(this,e)};b.IssueList.prototype=$.extend({},a.prototype,{template:"feedback_issue_list",_render:function(e){a.prototype._render.call(this,$.extend({},e));this._cacheElems(".js-feedback",["radio"]);this.bindEvents([[this.$radio,"change",this._onRadioChange]])},_onRadioChange:function(){this.model.emit("issue-selected")}})}(DDG);!function(e){var b=e.Views.Dropdowns.SelectListDropdown,c=e.Views.Dropdowns,a="kam";c.DirectionDropdown=function(f){this.model=f.model=e.directionSource;f.key="directions";f.header=lp("maps_places","Choose service");f.horizontalPos="center";f.verticalPos=f.verticalPos||"bottom";f.showSelected=true;this._loc=f.loc;this._answer=f.answer;b.call(this,f);this._loadSourceFromSettings()};c.DirectionDropdown.prototype=$.extend({},b.prototype,{changeVerticalPos:function(f){if(this.views.modal){this.views.modal.$el.removeClass("modal--popout--"+this._verticalPos);this.views.modal.$el.addClass("modal--popout--"+f)}this._verticalPos=this.modalOps.position=f;this._repositionModal()},open:function(){b.prototype.open.call(this);this._answer&&this._answer.engaged()},_loadSourceFromSettings:function(){var f=e.settings.get(a);if(f){this.model.select(f)}},_getURL:function(){return this.model.getDirectionsURL(this._loc)},_onItemClick:function(f){b.prototype._onItemClick.call(this,f);e.settings.set(a,f,{saveToCloud:true})}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=c.Views.Base;b.FilterContainer=function(e){this._answer=e.answer;if(this._answer){this._safeSearch=this._answer.safeSearch;this._region=this._answer.region;this._date=this._answer.date}else{this._safeSearch=this._region=this._date=true}a.call(this,e);this._initFilters()};b.FilterContainer.prototype=$.extend({},a.prototype,{_initFilters:function(){this.views.filters=[];if(this._region){this.views.filters.push(new b.RegionFilter({appendTo:this.$el}))}if(this._safeSearch&&!c.page.isSafeDDG){this.views.filters.push(new b.SafeSearchFilter({appendTo:this.$el}))}if(this._date){this.views.filters.push(new b.DateFilter({appendTo:this.$el}))}if(this._answer&&this._answer.parameters){this._answer.parameters.forEach(function(f){var e=new c.Views.AnswerBar.Meta.FilterDropdown({model:f,answer:this._answer,appendTo:this.$el});this.views.filters.push(e)}.bind(this))}}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=b.Base;b.DateFilter=function(e){a.call(this,e);c.search.on("change:dateFilterId",this._rerender.bind(this))};b.DateFilter.prototype=$.extend({},a.prototype,{modalClass:"DateFilterModal",_render:function(e){e=e||{};e.isActive=c.search.dateFilterId;e.key="date";e.buttonContent=c.search.getDateFilterName();a.prototype._render.call(this,e)},open:function(){c.pixel.fire("dfc","f",{iao:c.duckbar.activeTabId!=="web"?1:0});a.prototype.open.call(this)}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=c.Views.Modal;b.DateFilterModal=function(e){a.call(this,e)};b.DateFilterModal.prototype=$.extend({},a.prototype,{template:"dropdown_modal",_render:function(e){a.prototype._render.call(this,{isPopover:e.isPopover,header:e.isPopover&&l("Filter by date"),values:c.search.getDateFilters(),key:"date"});this.$(".js-dropdown-items").click(this._onFilterClick.bind(this))},_onFilterClick:function(j){j.preventDefault();var f=$(j.currentTarget),k=f.attr("data-value"),h=c.search,i=c.Data.HiddenFields.DATE_FILTER;if(k&&k!==""){c.hidden.set(i,k)}else{c.hidden.clear(i)}var g=!h.dateFilterId&&k;c.pixel.fire("dfc","ci",{fd:g?1:0});h.set("dateFilterId",k);h.requery()}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=b.Base;b.RegionFilter=function(e){a.call(this,e);var f=c.settings.region;this.bindEvents([[f,"change:id",this._rerender],[f,"change:suggestedRegion",this._rerender]]);if(!f.disabledSuggested()){f.fetchSuggested()}};b.RegionFilter.prototype=$.extend({},a.prototype,{template:"region_filter",modalClass:"RegionFilterModal",_render:function(){var f=c.settings.region,e=f.hasRegion(),g;if(e){g=f.getId()}else{if(f.hasPrevRegion()){g=f.prevId}else{g=f.suggestedRegion}}a.prototype._render.call(this,{hasActiveRegion:e,hasRegion:g,iconURL:g&&f.getSmallIconURL(g),regionName:f.getName(g)});this._cacheElems(".js-region-filter",["switch"]);this.$switch.on("click",this._onSwitchClick.bind(this))},open:function(){c.pixel.fire("rgc","f",{iao:c.duckbar.activeTabId!=="web"?1:0});a.prototype.open.call(this)},_onSwitchClick:function(k){k.preventDefault();k.stopPropagation();var h,g,j=c.settings.region,i=new Date().getTime();if(j.hasRegion()){this.$switch.removeClass("is-on");h=j.getDefaultId();g="off"}else{this.$switch.addClass("is-on");h=j.getPrevId()||j.suggestedRegion;g="on"}var f=!j.getPrevId()&&j.getId()===j.getDefaultId();c.pixel.fire("rgc","s",g,{fr:f?1:0});j.setId(h,{saveToSettings:true,fallbackToURLParam:true},function(){var e=new Date().getTime()-i;setTimeout(function(){c.search.requery()},Math.min(DDG.animation_speed-e,0))})}})}(DDG);!function(e){var c=e.Views.Dropdowns,b=e.Views.Modal,a="is-highlighted",f=300;c.RegionFilterModal=function(g){g.model=e.settings.region;b.call(this,g);this.bindEvents([[e.keyboard,"up.modal",this._onUpArrow],[e.keyboard,"down.modal",this._onDownArrow],[e.keyboard,"enter.modal",this._onEnter]])};c.RegionFilterModal.prototype=$.extend({},b.prototype,{template:"region_filter_modal",cursorIndex:-1,hide:function(){b.prototype.hide.call(this);this._unfocusKeyboard()},show:function(){b.prototype.show.call(this);if(!e.device.isMobileDevice){this.$input.focus()}},pointAt:function(g){b.prototype.pointAt.call(this,g);this._top=parseInt(this.$list.offset().top,10)},_render:function(g){this._allRegions=this.model.getAll();b.prototype._render.call(this,$.extend({hasRegionOrSuggested:this.model.hasRegionOrSuggested()},g));this._cacheElems(".js-region-filter",["list","input","clear"]);this._renderRegions();this.$input.keyup(this._onInputKeyUp.bind(this));this.$input.click(this._onInputClick.bind(this));this.$clear.click(this._onClearClick.bind(this))},_renderRegions:function(){var g=this._filteredRegions||this._allRegions;this._highlightIdx=-1;if(!g||!g.length){this.$list.empty()}else{this.$list.html(e.exec_template("region_filter_modal_items",{regions:g,showListHeader:e.device.isMobile&&this.model.hasRegionOrSuggested()&&!this._filteredRegions}));this.$links=this.$(".js-region-filter-link");this.$list.find(".js-region-filter-clear").on("click",this._onClearClick.bind(this));this.$links.on("mouseenter touchstart",this._onItemMouseEnter.bind(this)).on("mouseleave",this._onItemMouseLeave.bind(this)).click(this._onRegionClick.bind(this))}},_clearFilter:function(){if(this._filteredRegions){delete this._filteredRegions;this._renderRegions()}this.$input.val("")},_updateHighlightedItem:function(){this.$("."+a).removeClass(a);if(this._highlightIdx===-1){this.$input.focus()}else{var j=this.$links[this._highlightIdx];if(j){var i=$(j),g=i.outerHeight(),k=parseInt(i.offset().top,10),h=k+g;i.addClass(a);if(h>=this._top+f){this.$list.scrollTop(this.$list.scrollTop()+g)}else{if(k-1,h=n?"d":m?"p":"n",g;g=!j.getPrevId()&&j.getId()===i;e.pixel.fire("rgc",k,h,{fr:g?1:0})},_onInputKeyUp:function(h){if(e.keyboard.keyCodeIsOneOf(h.keyCode,["up","down","enter","escape"])){return false}var g=this.$input.val().toLowerCase();if(g){this._filteredRegions=this._allRegions.filter(function(i){return i.name.toLowerCase().indexOf(g.toLowerCase())>-1})}else{delete this._filteredRegions}e.pixel.fire("rgc","ku");this._renderRegions()},_onItemMouseEnter:function(i){if(this._keyboardFocus){return}var h=$(i.target),g=parseInt(h.data("index"),10);if($.isNumeric(g)&&this.highlightIdx!==g){this._highlightIdx=g;this._updateHighlightedItem()}},_onItemMouseLeave:function(i){if(this._keyboardFocus){return}var h=$(i.target),g=parseInt(h.data("index"),10);if($.isNumeric(g)&&this.highlightIdx===g){this._highlightIdx=-1;this._updateHighlightedItem()}},_onMouseMove:function(){this._unfocusKeyboard()},_onUpArrow:function(){this._highlightIdx--;this._focusKeyboard();this._highlightIdx=Math.max(this._highlightIdx,-1);this._updateHighlightedItem()},_onDownArrow:function(){this._highlightIdx++;this._focusKeyboard();this._highlightIdx=Math.min(this._highlightIdx,this.$links.length-1);this._updateHighlightedItem()},_onEnter:function(){var i;if(this._highlightIdx>-1){i=this._highlightIdx}else{if(this._filteredRegions&&this._filteredRegions.length===1){i=0}}if($.isNumeric(i)){var g=this.$links[i],h=$(g).data("id");this._sendRegionSelectedPixel(h,"ei");this.model.setId(h,{saveToSettings:true,fallbackToURLParam:true},function(){e.search.requery()})}},_onInputClick:function(g){g.stopPropagation()},_onClearClick:function(g){g.preventDefault();e.pixel.fire("rgc","cl");this.model.reset(function(){this.model.disableSuggested(function(){e.search.requery()})}.bind(this))},_onRegionClick:function(h){var g=$(h.target),i=g.data("id")||g.parent().data("id");this._sendRegionSelectedPixel(i,"ci");this.model.setId(i,{saveToSettings:true,fallbackToURLParam:true},function(){this.hide();e.search.requery()}.bind(this))}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=c.Views.Dropdowns.Base;b.SafeSearchFilter=function(e){e.model=c.settings.safeSearch;a.call(this,e);this.bindEvents([[this.model,"change:id",this._rerender]]);this.modalOps={entryPoint:e.entryPoint||"of"}};b.SafeSearchFilter.prototype=$.extend({},a.prototype,{modalClass:"SafeSearchFilterModal",_render:function(e){e=e||{};e.isActive=this.model.isActive();e.key="safe-search";e.buttonContent=l("Safe Search:")+" "+this.model.getName();a.prototype._render.call(this,e)}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=c.Views.Modal;b.SafeSearchFilterModal=function(e){this.entryPoint=e.entryPoint;e.model=c.settings.safeSearch;a.call(this,e)};b.SafeSearchFilterModal.prototype=$.extend({},a.prototype,{template:"dropdown_modal",_render:function(e){a.prototype._render.call(this,{isPopover:e.isPopover,header:e.isPopover&&l("Safe Search"),showDescriptions:true,values:this.model.getAll(),key:"safe-search"});this.$(".js-dropdown-items").click(this._onFilterClick.bind(this))},_onFilterClick:function(g){var f=$(g.currentTarget),h=f.attr("data-value");this.model.setId(h,function(){c.search.requery()});c.pixel.fire("sss","f",{v:c.settings.safeSearch.getId(),ep:this.entryPoint})}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=b.Base;b.SettingsDropdown=function(e){a.call(this,e);c.require("settings",this._renderDropdown.bind(this))};b.SettingsDropdown.prototype=$.extend({},a.prototype,{template:"settings_dropdown",modalClass:"SettingsDropdownModal",_render:function(e){$.noop()},_renderDropdown:function(e){e=e||{};a.prototype._render.call(this,e);if(c.device.isMobile){$(".js-duckbar-dropdowns-separator").removeClass("is-hidden")}},open:function(){a.prototype.open.call(this);c.$doc.off("click.modal");c.$doc.on("click.modal",this._onModalClick.bind(this))},_onModalClick:function(g){var f=this.views.modal.$el.has(g.target);if(!f.length){a.prototype.close.call(this)}}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=c.Views.Modal;b.SettingsDropdownModal=function(e){this.dropdownSettings=c.settings.getDropdownSettings();a.call(this,e)};b.SettingsDropdownModal.prototype=$.extend({},a.prototype,{template:"settings_dropdown_modal",show:function(){a.prototype.show.call(this);c.pixel.fire("sdd","e")},_render:function(e){a.prototype._render.call(this,{isPopover:e.isPopover,header:e.isPopover&&lp("feedback form","Settings")});this._cacheElems(".js-settings-dropdown",["appearance","general","reset-appearance","reset-general"]);this._renderDropdownSettings()},_renderDropdownSettings:function(){for(var i in this.dropdownSettings){this["$reset"+i].on("click",{category:i},this._onReset.bind(this));for(var k in this.dropdownSettings[i]){var j=c.settings.getData(k),f=this["$"+i],e=j.type,h=c.settings.getFieldClass(e);var g=new c.Views.Settings[h]({id:k,settings:c.settings,data:j,appendTo:f,source:"d"});c.settings.on("change:"+k,this._showResetLink.bind(this));g.$el.children(".frm__label").attr("title",window.lp("settings",g.data.desc))}}this._showResetLink()},_onReset:function(j){var h=j.data.category,g=this.dropdownSettings[h],k=[];c.pixel.fire("sdr",h);for(var i in g){if(!c.settings.isDefault(i)){var f=c.settings.getDefault(i);if(i===c.settings.THEME_KEY){c.settings.setTheme(f,{saveToCloud:true,updateURLParams:true,fallbackToUrlParam:true})}else{c.settings.set(i,f)}k.push(i)}}if(k.indexOf(c.settings.LANGUAGE_KEY)>-1){window.location.reload()}},_showResetLink:function(){for(var f in this.dropdownSettings){var e=this["$reset"+f];for(var g in this.dropdownSettings[f]){var h=false;if(!c.settings.isDefault(g)){h=true;break}}h?e.show():e.hide()}}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=b.Base;b.UserLocationFilter=function(e){e.model=c.userLocator;a.call(this,e);this.bindEvents([[this.model,"change:waitingForLocation",this._onWaitingForLocationChange]])};b.UserLocationFilter.prototype=$.extend({},a.prototype,{template:"user_location_filter_dropdown",modalClass:"UserLocationFilterModal",_render:function(e){e=e||{};e.buttonContent=this.model.userLocation.desc||[this.model.userLocation.lat.toFixed(2),this.model.userLocation.lon.toFixed(2)].join(", ");a.prototype._render.call(this,e)},_repositionModal:function(){if(!this.views.modal){return}var e=this.$button.offset();e.top+=this.$el.outerHeight()+8;this.views.modal.pointAt(e)},_onWaitingForLocationChange:function(){if(this.model.waitingForLocation){this.$spinner=c.$exec_template("spinner",{className:"user-loc-filter__spinner"});this.$el.append(this.$spinner)}else{if(this.$spinner){this.$spinner.remove();delete this.$spinner}}}})}(DDG);!function(c){var b=c.Views.Dropdowns,a=c.Views.Modal;b.UserLocationFilterModal=function(e){a.call(this,e);this.bindEvents([[c.userLocator,"change:userLocation",this._onUserLocationChanged]]);c.pixel.fire("lfmi",c.userLocator.userLocation.type)};b.UserLocationFilterModal.prototype=$.extend({},a.prototype,{template:"user_location_filter_modal",_render:function(f){a.prototype._render.call(this,f);var e=this.$(".js-user-loc-filter-modal-btn");this.views.button=new c.Views.UserLocationButton({updateButton:true,clickPixel:"lfmc",updateType:"modal",appendTo:e});this.views.error=new c.Views.UserLocationError({updateType:"modal",showInstructions:false,small:true,appendTo:e})},_onUserLocationChanged:function(){this.hide()}})}(DDG);!function(b){var a=b.Views.Base;b.Views.UserLocationCTA=function(c){c.model=b.userLocator;a.call(this,c);b.pixel.fire("lctai")};b.Views.UserLocationCTA.prototype=$.extend({},a.prototype,{template:"user_location_cta",_render:function(){a.prototype._render.call(this);this._cacheElems(".js-user-loc-cta",["show-more","more","dismiss","initial"]);this.views.button=new b.Views.UserLocationButton({clickPixel:"lctac",updateType:"cta",before:this.$more});this.views.error=new b.Views.UserLocationError({updateType:"cta",showInstructions:true,appendTo:this.$initial});this.bindEvents([[this.$showmore,"click",this._onShowMoreClick],[this.$dismiss,"click",this._onDismissClick],[this.model,"change:userLocation",this._onCurrentLocationChange],[this.model,"change:finishedSurvey",this._onFinishedSurveyChange],[this.model,"change:retryLocation",this._onRetryLocationChange]])},_hide:function(){this.$el.addClass("is-hidden")},_showSurvey:function(){this.model.set("showedSurvey",true);this.$initial.addClass("is-hidden");this._hideMore();this.views.survey=new b.Views.UserLocationSurvey({model:this.model,appendTo:this.$el})},_hideSurvey:function(){this.$initial.removeClass("is-hidden");this.views.survey.destroy();this.model.set("showedSurvey",false);this.model.set("retryLocation",false)},_showMore:function(){b.pixel.fire("lctan");this._showingMore=true;this.$more.removeClass("is-hidden");this.$showmore.text("Show Less")},_hideMore:function(){this._showingMore=false;this.$more.addClass("is-hidden");this.$showmore.text("Show More")},_onShowMoreClick:function(c){if(this._showingMore){this._hideMore()}else{this._showMore()}},_onDismissClick:function(c){c.preventDefault();if(!this.model.showedSurvey){b.pixel.fire("lctax")}b.settings.set("kat","-1",{saveToCookie:true,saveToCloud:false});if(!this.model.showedSurvey){this._showSurvey()}else{this._hide()}},_onCurrentLocationChange:function(){if(this.model.hasLocation()){this._hide()}},_onFinishedSurveyChange:function(){if(this.model.finishedSurvey){this._hide()}},_onRetryLocationChange:function(){if(!this.model.retryLocation){return}b.settings.clear("kat",{saveToCookie:true,saveToCloud:false});if(this.model.retryLocation==="manual"){this.views.button.requestManualLocation()}else{if(this.model.retryLocation==="precise"){this.views.button.requestPreciseLocation("survey","lctar")}}this._hideSurvey()}})}(DDG);!function(b){var a=b.Views.Base;b.Views.UserLocationButton=function(c){c.model=c.model||b.userLocator;this.updateButton=c.updateButton;this.clickPixel=c.clickPixel;this.updateType=c.updateType;a.call(this,c);this.bindEvents([[this.model,"change:waitingForLocation",this._onWaitingForLocationChange],[this.model,"change:errorGettingLocation",this._onErrorGettingLocationChange]])};b.Views.UserLocationButton.prototype=$.extend({},a.prototype,{template:"user_location_button",requestPreciseLocation:function(c,e){this.model.updateLocation({force:true,updateType:c||this.updateType});b.pixel.fire(e||this.clickPixel)},requestManualLocation:function(){b.pixel.fire("lmm");if(!this.views.modal){this.views.modal=new b.Views.ManualUserLocationModal({model:this.model})}this.views.modal.show()},_render:function(){a.prototype._render.call(this,{waiting:this.model.waitingForLocation,showManualLocationButton:!this.updateButton,highlightManualLocationButton:this.model.errorGettingLocation,update:this.updateButton});this._cacheElems(".js-user-loc-btn",["cancel","enable","manual","update","clear"]);this.bindEvents([[this.$cancel,"click",this._onCancelClick],[this.$enable,"click",this._onPreciseLocationClick],[this.$manual,"click",this._onManualLocationClick],[this.$update,"click",this._onUpdateLocationClick],[this.$clear,"click",this._onClearClick]])},_onPreciseLocationClick:function(){if(this.model.waitingForLocation){return}this.requestPreciseLocation()},_onManualLocationClick:function(){if(this.model.waitingForLocation){return}this.requestManualLocation()},_onUpdateLocationClick:function(){if(this.model.waitingForLocation){return}if(this.model.userLocation.type===b.Models.UserLocation.MANUAL_LOCATION){this.requestManualLocation()}else{this.requestPreciseLocation()}},_onCancelClick:function(){this.model.cancelLocation()},_onClearClick:function(){if(b.userLocator.hasLocation()){b.userLocator.clearLocation();b.pixel.fire("lfmx")}},_onWaitingForLocationChange:function(){this._rerender()},_onErrorGettingLocationChange:function(){this._rerender()}})}(DDG);!function(b){var a=b.Views.Base;b.Views.UserLocationError=function(c){c.model=c.model||b.userLocator;this.small=Boolean(c.small);this.showInstructions=c.showInstructions;this.device=c.device||b.device;this.updateType=c.updateType;a.call(this,c);this.bindEvents([[this.model,"change:errorGettingLocation",this._onErrorGettingLocationChange]])};b.Views.UserLocationError.prototype=$.extend({},a.prototype,{template:"user_location_error",_render:function(){a.prototype._render.call(this,{error:this.model.errorGettingLocation,small:this.small,instructions:this._getInstructions(),isMobile:this.device.isMobileDevice});this._cacheElems(".js-user-loc-error",["help"]);this.bindEvents([[this.$help,"click",this._onHelpClick]])},_getInstructions:function(){var c=null;if(!this.showInstructions){return c}if(this.device.isAndroid){if(this.device.isChrome||this.device.isBrave){c=["Tap the lock icon on the address bar.","Go to 'Site Settings'.","Ensure 'Location' is set to allow.","Reload DuckDuckGo, and try again."]}else{c=["Open the Settings app.","Open 'Location', and ensure location is enabled.","Navigate to Settings > Apps.","Ensure your browser is allowed location access.","Reload DuckDuckGo, and try again."]}}else{if(this.device.isIDevice){c=["Open the Settings app.","Open 'Privacy', then 'Location Services'.","Ensure 'Location Services' is enabled.","Scroll down and locate your browser in the list.","Ensure your browser is allowed location access.","Reload DuckDuckGo, and try again."]}else{if((this.device.isChrome||this.device.isFirefox)&&(this.device.isWindows||this.device.isOSX)){c=["Click the lock icon on the address bar.","Ensure location access is allowed.","Reload DuckDuckGo, and try again."]}else{if(this.device.isOSX&&this.device.isSafari){c=["Open 'System Preferences'.","Open 'Security & Privacy', then 'Privacy'.","Ensure 'Enable Location Services' is enabled.","Ensure 'Safari' is enabled.","Reload DuckDuckGo, and try again."]}}}}return c},_onHelpClick:function(){b.pixel.fire("lhc",this.updateType)},_onErrorGettingLocationChange:function(){this._rerender()}})}(DDG);!function(b){var a=b.Views.Base;b.Views.UserLocationSurvey=function(c){this.device=c.device||b.device;a.call(this,c)};b.Views.UserLocationSurvey.prototype=$.extend({},a.prototype,{template:"user_location_survey",_render:function(){a.prototype._render.call(this,{isMobile:this.device.isMobileDevice,showManualLocationButton:true});this._cacheElems(".js-user-loc-survey",["button","reason","retry-manual","retry-precise","reason-extra","privacy-extra","broken-extra"]);this.bindEvents([[this.$reason,"change",this._onSurveyReasonChange],[this.$retrymanual,"click",this._onRetryManualClick],[this.$retryprecise,"click",this._onRetryPreciseClick],[this.$el,"submit",this._onSurveySubmit]])},_getSurveyReason:function(){var c=this.$reason.filter(":checked");return c&&c.length&&c.val()},_onSurveyReasonChange:function(){var c=this._getSurveyReason();this.$button.removeClass("is-disabled");this.$reasonextra.addClass("is-hidden");if(c==="privacy"){this.$privacyextra.removeClass("is-hidden")}else{if(c==="broken"){this.$brokenextra.removeClass("is-hidden")}}},_onRetryPreciseClick:function(){this.model.set("retryLocation","precise")},_onRetryManualClick:function(){this.model.set("retryLocation","manual")},_onSurveySubmit:function(c){c.preventDefault();var f=this._getSurveyReason();if(!f){return}b.pixel.fire("lctas",f);this.model.set("finishedSurvey",true)}})}(DDG);!function(c){var b=c.Views.Modal,a=14,e=10;c.Views.ManualUserLocationModal=function(g){g.appendTo=g.appendTo||".js-site-wrapper";var f=g.model.userLocation;this._zoomLevel=a;if(!g.model.hasLocation()&&g.model.geoipLocation){f=g.model.geoipLocation;this._zoomLevel=e}this._mapModel=new c.Models.GLMap({selectedLocation:f});this._initialPositionChanged=false;b.call(this,g)};c.Views.ManualUserLocationModal.prototype=$.extend({},b.prototype,{template:"manual_user_location_modal",show:function(){b.prototype.show.call(this);if(!this.views.map){this.views.map=new c.Views.Mapkit.PositionPicker({appendTo:this.$map,model:this._mapModel,zoomLevel:this._zoomLevel})}else{this.views.map.show()}this._toggleScroll()},hide:function(f){b.prototype.hide.call(this);if(this.views.map){this.views.map.hide()}if(f!==false){c.pixel.fire("lmmh")}this._toggleScroll()},_render:function(f){b.prototype._render.call(this,f);this._cacheElems(".js-manual-user-location",["map","map-controls","done-btn"]);this.bindEvents([[this.$donebtn,"click",this._onPositionPicked],[this._mapModel,"change:selectedLocation",this._onPositionChanged]])},_toggleScroll:function(){c.$html.toggleClass("disable-place-scroll",!!this.isShowing)},_onPositionChanged:function(){this._initialPositionChanged=true;this.$donebtn.removeClass("is-disabled")},_onPositionPicked:function(){if(!this._initialPositionChanged){return}if(this._mapModel.selectedLocation){if(this.model.geoipLocation){this._mapModel.selectedLocation.geoipLat=this.model.geoipLocation.lat;this._mapModel.selectedLocation.geoipLon=this.model.geoipLocation.lon}this.model.setLocation(this._mapModel.selectedLocation);c.pixel.fire("lmms")}setTimeout(function(){this.hide(false)}.bind(this),50)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Maps.DirectionsButton=function(c){this.answer=c.answer;this.loc=c.loc;a.call(this,c);this._updateLinkURL();this.bindEvents([[b.directionSource,"change:selected",this._updateLinkURL]])};b.Views.Maps.DirectionsButton.prototype=$.extend({},a.prototype,{template:"directions_button",changeVerticalPos:function(c){return this.views.directions&&this.views.directions.changeVerticalPos(c)},_render:function(c){a.prototype._render.call(this,c);this.$link=this.$(".js-dir-btn-link");this.bindEvents([[this.$link,"click",this._onLinkClicked]]);if(!b.device.isAppleDevice){this.views.directions=new b.Views.Dropdowns.DirectionDropdown({appendTo:this.$el,loc:this.loc,answer:this.answer})}},_updateLinkURL:function(){var c=b.directionSource.getDirectionsURL(this.loc);this.$link.attr("href",c);this.$link.data("wrapped","");this.$link.off("click.wrap");this._wrapLinks()},_onLinkClicked:function(){if(this.answer){b.pixel.fire("iadrc",this.answer.pixelId,b.directionSource.selected.id);this.answer.clickedExternalLink();this.answer.engaged()}}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Maps.MapSidebar=function(c){a.call(this,c);this.bindEvents([[this.model,"change:selectedItem",this._onSelectedItemChanged],[this.model,"change:isMapExpanded",this._onMapExpandedChanged],[this.model,"change:items",this._onItemsChange]])};b.Views.Maps.MapSidebar.prototype=$.extend({},a.prototype,{template:"map_sidebar",_render:function(){a.prototype._render.call(this,this.model);this._cacheElems(".js-vertical-map",["results-container","detail","close-map","back-to-list","back-to-serp","search","search-input"]);this.bindEvents([[this.$backtolist,"click",this._onBackToListClick],[this.$closemap,"click",this._onCloseMapClick],[this.$searchinput,"click",this._onInputFocus],[this.$searchinput,"focus",this._onInputFocus],[this.$searchinput,"blur",this._onInputBlur],[this.$search,"submit",this._onSearchSubmit]]);b.keyboard.on("escape.searchbar",this._onEscape.bind(this));this.$searchinput.val(this.model.query);if(!b.device.isMobile&&this.model.isLocalRequery){this._updateAutocomplete()}},_updateAutocomplete:function(){if(!this.$searchinput||this.autocomplete){return}this.autocomplete=new DDG.Views.AutoComplete({$input:this.$searchinput,$parentForm:this.$search,model:new b.Models.Maps.Autocomplete({answer:this.model}),isTwoRowsText:true});this.$search.append(this.autocomplete.$el)},_resetNamespace:function(){if(b.keyboard.namespace==="searchbar"){b.keyboard.set("namespace")}},_setNamespaceSearchbar:function(){var c=b.keyboard.namespace;if(!c||(c!=="autocomplete"&&c!=="searchbar")){b.keyboard.set("namespace","searchbar")}},_onEscape:function(c){if(this.autocomplete&&this.autocomplete.isVisible()){this.autocomplete.hide()}},_onInputFocus:function(c){c.stopPropagation();if(!this.$searchinput.val()&&this.autocomplete){this.autocomplete.hide()}else{this._setNamespaceSearchbar()}},_onInputBlur:function(c){this._resetNamespace()},_onSelectedItemChanged:function(c){if((this.model.answerItemModel!=="Place"&&this.model.answerType!=="Places")||this.model.isSingle){return}if(c){this.$backtoserp.hide();this.$backtolist.removeClass("is-hidden")}else{this.$backtoserp.show();this.$backtolist.addClass("is-hidden")}},_onMapExpandedChanged:function(){if(this.model.selectedItem){this.model.selectedItem.unselect();b.history.clear("iai")}},_onItemsChange:function(){var c=this.model.meta.queryParsed;if(!this.model.shouldMapViewportUpdate&&c){this.$searchinput.val(c.what)}this._resetNamespace();if(this.autocomplete){this.autocomplete.clear();this.autocomplete.hide()}},_onBackToListClick:function(c){c.preventDefault();c.stopPropagation();if(this.model.selectedItem){this.model.selectedItem.unselect();b.history.clear("iai")}if(this.views.currentPlaceDetail){this.views.currentPlaceDetail.destroy();delete this.views.currentPlaceDetail}this.$detail.hide();this.$resultscontainer.show();this.$backtolist.addClass("is-hidden")},_onCloseMapClick:function(c){c.preventDefault();c.stopPropagation();this.model.set("isMapExpanded",false);this.model.engaged();b.pixel.fire("map_ebe")},_onSearchSubmit:function(h){h.preventDefault();var g=this.$searchinput.val();this.$searchinput.blur();this._resetNamespace();if(this.autocomplete){this.autocomplete.clear();this.autocomplete.hide()}this.model.set("shouldMapViewportUpdate",true);this.model.set("isSearchAreaBtnVisible",false);var f={};f.query=g;if(this.model.geo_bbox){f.bbox_tl=this.model.geo_bbox.top_left;f.bbox_br=this.model.geo_bbox.bottom_right}var c=b.userLocator&&b.userLocator.userLocation;if(c&&c.lat&&c.lon){f.location_type=c.type;f.latitude=c.lat;f.longitude=c.lon}if(!this.model.isRequerying){this.model.requery(f)}}})}(DDG);!function(e){var c=e.Views.Base,a="normal",b={min:"normal",normal:"min",max:"normal",initial:"min"},f={min:"handle--up",normal:"handle--down",max:"handle--down",initial:"handle--down"};e.Views.Maps.MapSidebarMobile=function(g){c.call(this,g);this.bindEvents([[this.model,"change:selectedItem",this._onSelectedItemChanged],[this.model,"change:sidebarPosition",this._onSidebarPositionChanged]]);this.model.set("sidebarPosition",this.model.sidebarPosition||a)};e.Views.Maps.MapSidebarMobile.prototype=$.extend({},c.prototype,{template:"map_sidebar_mobile",_render:function(){c.prototype._render.call(this,this.model);this._cacheElems(".js-vertical-map-sidebar-mobile",["results-container","detail","handle","handle-bar","back-wrapper","close-map","back-to-list","back-to-serp"]);if(this.model.selectedItem){this.$closemap.hide();this.$backtolist.removeClass("is-hidden")}this.model.sidebarPosition==="min"?this.$backwrapper.hide():this.$backwrapper.show();this.$handlebar.addClass(f[this.model.sidebarPosition]);this.bindEvents([[this.$handle,"click",this._onSidebarHeaderClick],[this.$closemap,"click",this._onCloseMapClick],[this.$backtolist,"click",this._onBackToListClick]])},_onSidebarHeaderClick:function(){this.model.set("sidebarPosition",b[this.model.sidebarPosition])},_onSelectedItemChanged:function(g){if(g){this.$backtoserp.hide();this.$closemap.hide();this.$backtolist.removeClass("is-hidden")}else{this.$backtoserp.show();this.$closemap.show();this.$backtolist.addClass("is-hidden")}},_onSidebarPositionChanged:function(h,g){this.model.sidebarPosition==="min"?this.$backwrapper.hide():this.$backwrapper.show();if(g){this.$handlebar.removeClass(f[g])}this.$handlebar.addClass(f[h])},_onBackToListClick:function(g){g.preventDefault();g.stopPropagation();if(this.model.selectedItem){this.model.selectedItem.unselect();e.history.clear("iai")}if(this.views.currentPlaceDetail){this.views.currentPlaceDetail.destroy();delete this.views.currentPlaceDetail}this.$detail.hide();this.$resultscontainer.show();this.$closemap.show();this.$backtolist.addClass("is-hidden")},_onCloseMapClick:function(g){g.preventDefault();g.stopPropagation();if(this.model.selectedItem){this.model.selectedItem.unselect();e.history.clear("iai")}this.model.set("isMapExpanded",false);this.model.engaged();e.pixel.fire("map_ebe")}})}(DDG);!function(b){var a=b.Views.Base;b.Views.NoMapResults=function(c){this.vertical=c.vertical||"web";this.resultType=c.resultType||l("Results");this.query=c.query||rqd;this.model=c.model;a.call(this,c)};b.Views.NoMapResults.prototype=$.extend({},a.prototype,{template:"no_map_results",show:function(){this.$el.removeClass("is-hidden")},hide:function(){this.$el.addClass("is-hidden")},updateQuery:function(c){this.query=c;this._rerender()},_render:function(){var f=(!b.deep.bn||b.deep.bn.ivc)?1:0,e=(b.deep.bn&&b.deep.bn.ibc)?1:0,c="?q="+encodeURIComponent(this.query)+"&ia=web"+(w.kurl?w.kurl:"")+(this.model.isLocalRequery?"&requery=1":"");a.prototype._render.call(this,{query:this.query,resultType:this.resultType.toLowerCase(),webSearchUrl:c});this._cacheElems(".js-no-map-results",["web-search"]);this._pixelData={r:0,i506:b.deep.is506?1:0,ivc:f,ibc:e,irt:b.history.get("norrc")?1:0,v:this.vertical};b.pixel.fire("nor",this._pixelData);this.bindEvents([[this.$websearch,"click",this._onWebClick]])},_onWebClick:function(c){b.pixel.fire("norwc",this._pixelData)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Places.PlacesSingle=function(c){this.answer=c.model;this.model=this.answer.primaryPlace;a.call(this,{model:this.model,appendTo:c.appendTo});this.bindEvents([[b.settings,"change:kam",this._onDirectionSourceUpdated]])};b.Views.Places.PlacesSingle.prototype=$.extend({},a.prototype,{template:"places_single",_onDirectionSourceUpdated:function(){var c=b.directionSource.getMapURL(this.model);this.model.set("mapURL",c);this.model.set("directionsTitle",this.model.getDirectionsTitle());this._rerender(this.model)},_render:function(){a.prototype._render.call(this,this.model);var c={model:this.model,answer:this.answer,appendTo:this.$el};this.views.header=new b.Views.Places.PlaceHeader(c);this.views.detail=new b.Views.Places.PlaceDetail(c)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Places.PlacesSingleMap=function(c){this.answer=c.answer;this.model=c.model;a.call(this,{model:this.model,appendTo:c.appendTo})};b.Views.Places.PlacesSingleMap.prototype=$.extend({},a.prototype,{template:"places_single_map",_render:function(){a.prototype._render.call(this,this.model);var c={model:this.model,answer:this.answer,appendTo:this.$el};if(this.model.thumbnails||this.model.image){this.views.header=new b.Views.ModuleImageHeader(c)}this.views.detail=new b.Views.Places.PlaceDetail(c)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Places.PlacesMultiple=function(c){a.call(this,c)};b.Views.Places.PlacesMultiple.prototype=$.extend({},a.prototype,{template:"places_multiple",_render:function(c){a.prototype._render.call(this,c);this._cacheElems(".js-places-multiple",["map","list","expand"]);this.bindEvents([[this.$map,"click",this._onMapClick.bind(this)],[this.$expand,"click",this._onMapClick.bind(this)],[this.$map,"mouseenter",this._onMapMouseEnter.bind(this)]]);this.model.glMapModel=new b.Models.GLMap({locations:this.model.items,pixelId:this.model.pixelId});this.views.map=new b.Views.Mapkit.Map({markers:this.model.itemsOnMap,model:this.model.glMapModel,answer:this.model,appendTo:this.$map,mapOffset:{top:20,right:0,bottom:0,left:0},isFrozen:true});this.views.placeListItems=this.model.topPlaces.map(function(e){return new b.Views.Places.PlaceListItem({appendTo:this.$list,model:e,answer:this.model})}.bind(this))},_onMapClick:function(c){c.preventDefault();this.model.set("isMapExpanded",true);this.model.fire("iacg");b.pixel.fire("map_se")},_onMapMouseEnter:function(){this.model.setUserMapIntent()},_onExternalLinkClick:function(c){this.model.engaged()}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Places.PlaceHeader=function(c){this.answer=c.answer;this.bindEvents([[this.$el,"click",this._onClick]]);a.call(this,c)};b.Views.Places.PlaceHeader.prototype=$.extend({},a.prototype,{template:"place_header",_render:function(c){a.prototype._render.call(this,$.extend(c||{},this.model));this._cacheElems(".js-place-header",["map"]);this.bindEvents([[this.$map,"click",this._onMapClick.bind(this)],[this.$map,"mouseenter",this._onMapMouseEnter.bind(this)]]);setTimeout(function(){this.views.map=new b.Views.Mapkit.StaticMap({markers:[this.model],width:this.$map.outerWidth(),height:this.$map.outerHeight(),url:this.model.directions,appendTo:this.$map,showCTA:true})}.bind(this),0)},_onClick:function(c){c.stopPropagation()},_onMapClick:function(c){c.preventDefault();this.answer.set("isMapExpanded",true);this.answer.fire("iacg")},_onMapMouseEnter:function(){this.answer.setUserMapIntent()},_onExternalLinkClick:function(c){this.answer.engaged();this.answer.clickedExternalLink();a.prototype._onExternalLinkClick.call(this,c)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Places.PlaceDetail=function(c){this.answer=c.answer;a.call(this,c);this.bindEvents([[this.model,"change:reviews",this._onReviewsUpdate]])};b.Views.Places.PlaceDetail.prototype=$.extend({},a.prototype,{template:"place_detail",_render:function(){a.prototype._render.call(this,this.model);this._cacheElems(".js-place-detail",["hours","hours-toggle","phone","title"]);this.bindEvents([[this.$hourstoggle,"click",this._onHoursToggleClick.bind(this)],[this.$phone,"click",this._onPhoneClick.bind(this)],[this.model,"change:expanded",this._rerender]]);this.views.directions=new b.Views.Maps.DirectionsButton({after:this.$title,loc:this.model,answer:this.answer});this.views.placeHours=new b.Views.Places.PlaceHours({model:this.model,appendTo:this.$hours})},_rerender:function(){if(this.views.directions){this.views.directions.destroy();delete this.views.directions}a.prototype._rerender.call(this)},_onHoursToggleClick:function(c){c.preventDefault();this.model.toggleHoursExpand();this.answer.engaged()},_onPhoneClick:function(c,f){this.answer.engaged()},_onReviewsUpdate:function(){this.model.reviewsURL=b.localAPI.getPlaceReviewsURL(this.model);this._rerender()},_onExternalLinkClick:function(c){this.answer.clickedExternalLink();this.answer.engaged();a.prototype._onExternalLinkClick.call(this,c)}})}(DDG);!function(b){var a=b.Views.ClickableItem;b.Views.Places.PlaceListItem=function(c){this.openOnMap=!!c.answer;c.showLinks=!this.openOnMap;a.call(this,c);this.answer=c.answer;this.bindEvents([[this.$el,"click",this._onClick],[this.$el,"mouseenter",this._onMouseEnter],[this.$el,"mouseleave",this._onMouseLeave],[this.model,"change:selected",this._onSelectedChanged]])};b.Views.Places.PlaceListItem.prototype=$.extend({},a.prototype,{template:"place_list_item",_render:function(c){a.prototype._render.call(this,$.extend(c||{},this.model));this._cacheElems(".js-place-list-item",["title"])},_onClick:function(f,c){if(this.openOnMap){this.answer.set("isMapExpanded",true);return this.model.select()}f.stopPropagation();this.$title.click();a.prototype._onClick.call(this,f,c)},_onSelectedChanged:function(){if(this.model.selected){b.history.set({iai:this.answer.getQuerystringItemId(this.model)})}},_onMouseEnter:function(c){this.model.highlight();if(!this.answer.isMapExpanded){this.answer.setUserMapIntent()}},_onMouseLeave:function(c){this.model.unhighlight()},_onExternalLinkClick:function(c){c.stopPropagation();this.answer.clickedExternalLink();this.answer.engaged();a.prototype._onExternalLinkClick.call(this,c)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Places.PlaceHours=function(c){a.call(this,c);this._cacheElems(".js-place-hours",["close"]);this.bindEvents([[this.$close,"click",this._onCloseClick],[this.model,"change:hoursExpanded",this._toggle]])};b.Views.Places.PlaceHours.prototype=$.extend({},a.prototype,{template:"place_hours",_render:function(){a.prototype._render.call(this,this.model)},_toggle:function(){this.$el.toggleClass("is-hidden")},_onCloseClick:function(){this.model.toggleHoursExpand()}})}(DDG);!function(b){var a=b.Models.Base;b.Models.Maps.Autocomplete=function(c){this.answer=c.answer||{};a.call(this,c)};b.Models.Maps.Autocomplete.prototype=$.extend({},a.prototype,{cache:{},suggestions:[],currentQuery:"",clearData:function(){this.cache={};this.suggestions=[];this.currentQuery=""},isBangQuery:function(c){return false},prepareForRequery:function(h,f){if(!h||typeof f==="undefined"){return}if(this.answer&&this.answer.isRequerying){return}var e=(this.suggestions&&this.suggestions.length>=f)?this.suggestions[f]:{},c=e.detail||"",g=h||"",i=this._getRequeryBbox(e.coordinate,c)||{};if(!e.metadata&&c.toLowerCase()!=="search nearby"){g+=" "+c}e.query=g;if(i.top_left&&i.bottom_right){e.bbox_tl=i.top_left;e.bbox_br=i.bottom_right}if(i.latitude&&i.longitude){e.latitude=i.latitude;e.longitude=i.longitude}if(i.location_type){e.location_type=i.location_type}delete e.coordinate;delete e.detail;delete e.phrase;this.currentQuery=g;this.answer.set("shouldMapViewportUpdate",true);this.answer.requery(e)},_getRequeryBbox:function(m,g){if(!g){return}m=m||{};var k=m.latitude||"",c=m.longitude||"";if(!(k&&c)&&g.toLowerCase()==="search nearby"){var j=b.userLocator&&b.userLocator.userLocation;if(j&&j.lat&&j.lon){return{location_type:j.type,latitude:j.lat,longitude:j.lon}}return{}}else{if(k&&c){var e=parseFloat(k)+0.00005,i=parseFloat(c)-0.00005,f=parseFloat(k)-0.00005,h=parseFloat(c)+0.00005;return{top_left:e+","+i,bottom_right:f+","+h}}}return this.answer.geo_bbox},getSuggestions:function(f){if(!w.mapkit||!f||!this.answer.geo_bbox){return}this.currentQuery=f;if(this.cache[f]){this.set("suggestions",this.cache[f]);return}var c=this._getOptions(),e=new w.mapkit.Search();e.autocomplete(f,this._onSuggestionsReceived.bind(this),c)},_getOptions:function(){var h=this.answer.geo_bbox,c=new w.mapkit.Coordinate(h.lat,h.lon),f=new w.mapkit.CoordinateSpan(h.lat_delta,h.lon_delta),g=new w.mapkit.CoordinateRegion(c,f),e={region:g,coordinate:c,language:"en"};return e},_onSuggestionsReceived:function(f,j){if(!j||!j.results){this.set("suggestions",[]);return}var c=j.results,e=[];for(var h=0;h0){c.phrase=e[0];c.detail=(e.length>1)?e[1]:""}delete c.displayLines;delete c._completionUrl;return c},_parseMetadata:function(e){if(!e){return}var c=e.match(/\&metadata\=/)?e.replace(/^.*\&metadata\=/,""):"";c=decodeURIComponent(c);return c}})}(DDG);!function(b){var a=b.Models.Base,c={wiki_maps_trigger:[{addTo:"maps"}],imdb_id:[{dataTypeOverride:"imdb_title_id",matching:/^tt/,addTo:"profiles"},{dataTypeOverride:"imdb_name_id",matching:/^nm/,addTo:"profiles"}],rotten_tomatoes:[{matching:/^(tv|m)/,addTo:"profiles"}],twitter_profile:[{addTo:"profiles"}],instagram_profile:[{addTo:"profiles"}],youtube_channel:[{addTo:"profiles"}],facebook_profile:[{addTo:"profiles"}],spotify_artist_id:[{addTo:"profiles"}],soundcloud_id:[{addTo:"profiles"}]};b.Models.Modules.AboutInfoBox=function(e){this._defaultVisibleRows=e.minimizeHeight?0:3;this.maps=[];this.profiles=[];a.call(this,this.transform(e))};b.Models.Modules.AboutInfoBox.prototype=$.extend({},a.prototype,{toggleExpand:function(){if(this.canExpand()){for(var e=0;ethis._defaultVisibleRows},transform:function(g){var e;if(g.Infobox){e=g.Infobox.content;e.forEach(function(j){if(!j||!j.value){return}var h=c[j.data_type];if(!h){return}h.forEach(function(i){if(!i.matching||j.value.match(i.matching)){if(i.dataTypeOverride){j.data_type=i.dataTypeOverride}this[i.addTo].push(j)}}.bind(this))}.bind(this));e=e.filter(function(h){return h&&h.value&&typeof h.value==="string"&&h.value.charAt(0)!=="["&&h.label!=="Website"&&h.data_type&&h.data_type==="string"})}if(e){g.hasItems=true;for(var f=0;fi.sort?1:-1});return g},_createLinkFromInfoboxData:function(g){return this._createLink(g.data_type,g.value)},_createLink:function(g,k){var i=f[g],h=i.url.replace("{{val}}",k),j=b.replace("{{icon}}",i.icon);return{url:h,name:i.name,icon:i.icon,iconURL:j,sort:i.sort}},_addLink:function(g,h){this.links.push(this._createLink(g,h));this._emitChange("links",this.links)},_isStreamable:function(){if(a.indexOf(this.entity)>-1){return true}},_tryAddingITunes:function(){$.ajax({url:"/iit/"+encodeURIComponent(this.title),dataType:"json",success:function(g){if(!g||!g.results||!g.results.length||!g.results[0].trackViewUrl){return}this._addLink("itunes",g.results[0].trackViewUrl)}.bind(this)})},_tryAddingAmazon:function(){$.ajax({url:"/m.js?q="+encodeURIComponent(this.title)+"&c=v&o=json&l="+e.settings.get("kl")+"&country="+window.ct,dataType:"json",success:function(g){if(!g||!g.results||!g.results.length){return}this._addLink("amazon",g.results[0].url)}.bind(this)})}})}(DDG);!function(c){var b=c.Views.Base,a="is-expanded";c.Views.Modules.Base=function(e){this.model=e.model;b.call(this,e);this.bindEvents([[this.model,"change:expanded",this._onExpandedChanged],[this.model,"change:active",this._onActiveChanged]])};c.Views.Modules.Base.prototype=$.extend({},b.prototype,{show:function(){this.$el.show();var e=[{qsParam:"iax",modelState:"expanded"},{qsParam:"iaxm",modelState:"isMapExpanded"}];e.map(function(g){if(this._isModelInQuerystring(g.qsParam)){var f={};f[g.modelState]=true;this.model.set(f)}}.bind(this))},hide:function(){this.$el.hide();if(this.answer){this.answer.set("isMapExpanded",false)}},isValid:function(){return true},showNoResults:function(){},_render:function(){b.prototype._render.call(this,this.model)},_wrapLinks:function(){},_expand:function(){c.keyboard.set("namespace",this.model.pixelId);DDG.addClass(this.model.id,this.$parent,a);if(this.model.nameId==="maps"){c.history.set({iaxm:this.model.nameId})}else{c.history.set({iax:this.model.nameId})}DDG.page.views.atb&&DDG.page.views.atb.hide()},_collapse:function(){c.keyboard.set("namespace");DDG.removeClass(this.model.id,this.$parent,a);if(this.model.nameId==="maps"){c.history.clear("iaxm")}else{c.history.clear("iax")}},_isModelInQuerystring:function(f){var g=c.history.get(f),e=(g===1||g===0)?c.history.get("ia"):g;return !!e&&(this.model.id===e||this.model.parentId===e||this.model.nameId===e)},_onActiveChanged:function(){return this.model.active?this.show():this.hide()},_onExpandedChanged:function(){return this.model.expanded?this._expand():this._collapse()}})}(DDG);!function(c){var b=c.Views.Modules.Base,a=75;c.Views.Modules.About=function(e){b.call(this,e);this.itemModel=this.model.items[0];this._cacheElems(".js-about-module",["content","toggle","more","less"]);this.bindEvents([[this.model,"change:expanded",this._onExpandedChange],[this.itemModel.header,"change:mapLocation",this._createMapVertical],[this.model,"change:isMapExpanded",this._createMapVertical],[this.$content,"click",this._onClick],[this.$toggle,"click",this._onToggleClick]]);if(this.itemModel.header){this.model.set("headerType",this.itemModel.headerType);var g=e.customHeader?e.customHeader.headerClass:c.Views.About.AboutHeader;this.views.header=new g({before:this.$content,model:this.itemModel.header,answer:this.model})}if(this.model.items.length){this.views.item=new c.Views.About.AboutItem({appendTo:this.$content,model:this.itemModel,answer:this.model})}var f=this.$content[0];if(f){var h=f.clientHeight+(this.model.isSideModule?a:0);if(f.scrollHeight>h){this.itemModel.set("isTooHigh",true)}else{if(this.model.isSideModule){this.$el.addClass("has-content-height")}}}this._updateExpandedState()};c.Views.Modules.About.prototype=$.extend({},b.prototype,{template:"about_module",_render:function(e){b.prototype._render.call(this,e);var f=this.model.meta&&this.model.meta.name;if(c.device.isEnglish){this.views.feedback=new c.Views.Feedback.FeedbackPrompt({sourceName:this.model.meta.src_name,category:"wikipedia",categoryName:f,categoryValue:f!=="Wikipedia"?"about":"",promptText:"Feedback",appendTo:this.$el,showYesNo:false})}},_updateExpandedState:function(){if(!this.itemModel.canModuleExpand){return}if(this.itemModel.canModuleExpand()&&!this.model.expanded){this.$toggle.show();this.$more.show();this.$less.hide();this.$el.removeClass("is-expanded")}else{if(this.itemModel.canModuleExpand()&&this.model.expanded){this.$toggle.show();this.$more.hide();this.$less.show();this.$el.addClass("is-expanded")}else{this.$more.hide();this.$less.hide();this.$el.removeClass("is-expanded")}}},_createMapVertical:function(){if(!this.views.header.model.mapLocation||!this.model.isMapExpanded||this.views.verticalMap){return}this.views.header.model.mapLocation.selected=1;this.views.verticalMap=new c.Views.Verticals.VerticalMap({ItemClass:c.Views.Modules.AboutMap,model:this.model,locations:[this.views.header.model.mapLocation],appendTo:"body"})},_onExpandedChange:function(){this._updateExpandedState()},_onClick:function(){this.model.engaged&&this.model.engaged();if(c.device.isMobileDevice&&!this.model.isMapExpanded){c.pixel.fire("iasm",this.model.pixelId,this.model.openType);this.model.set("expanded",!this.model.expanded)}},_onToggleClick:function(f){f.stopPropagation();this.model.engaged();c.pixel.fire("iasm",this.model.pixelId,this.model.openType);this.model.set("expanded",!this.model.expanded)}})}(DDG);!function(b){var a=b.Views.Modules.About;b.Views.Modules.AboutMap=function(c){this.model=c.answer;this.itemModel=c.model;c.customHeader={headerClass:b.Views.ModuleImageHeader,answer:this.model};c.model=this.model;a.call(this,c);this.bindEvents([[this.model,"change:isMapExpanded",this._onMapExpandedChange]])};b.Views.Modules.AboutMap.prototype=$.extend({},a.prototype,{_render:function(c){this.itemModel.expand();a.prototype._render.call(this,c)},_onMapExpandedChange:function(c){if(c&&!this.model.expanded){this.model.set("expanded",true)}else{if(!c&&!this.model.expanded){this.model.set("expanded",false)}}}})}(DDG);!function(c){var b=c.Views.Modules.Base,a="half-opacity";c.Views.Modules.Forecast=function(e){b.call(this,e);this._cacheElems(".js-forecast-module-detail",["moreat"]);this._updateIcon();this.bindEvents([[this.model.items,"change:hour",this._updateDetail],[this.model.items,"change:selected",this._updateDetail],[this.model.items,"beforeSend",this._setDetailTimer],[c.settings,"change:kae",this._rerender],[this.model.items,"change:unit",this._rerender],[this.$moreat,"click",this._onExternalLinkClick],[this.model,"change:openType",this._onOpenTypeChanged]])};c.Views.Modules.Forecast.prototype=$.extend({},b.prototype,{template:"forecast_module",_getItems:function(){if(!this.model||!this.model.items){return}this.model.items=this.model.items[0]?this.model.items[0]:this.model.items},_updateDetail:function(){clearTimeout(this._timer);this.$detail.html(c.exec_template("forecast_detail",this.model));this._cacheElems(".js-forecast-module-detail",["unit","moreat","moreatcontainer","hours","hoursmobile","top","bottom","more"]);this.$top.removeClass(a);this.$bottom.removeClass(a);this.bindEvents([[this.$unit,"click",this._onUnitClick],[this.$more,"click",this._onExternalLinkClick]]);this._renderHoursGraph()},_render:function(e){this._getItems();this.model.items.isEnglishDevice=c.device.isEnglish;b.prototype._render.call(this,this.model);this._cacheElems(".js-forecast-module",["item","detail"]);this.bindEvents([[this.$item,"click",this._onDailyCardClick]]);this._updateDetail();if(c.device.isEnglish){this.views.feedback=new c.Views.Feedback.FeedbackPrompt({category:"forecast",promptText:"Feedback",appendTo:this.$moreatcontainer,showYesNo:false})}},_onDailyCardClick:function(g){var f=$(g.currentTarget);this.$item.each(function(e,h){$(h).removeClass("module__items-item--selected")});f.addClass("module__items-item--selected");g.preventDefault();this.model.engaged();this.model.items.updateSelected(f.data("item-index"))},_setDetailTimer:function(){this._timer=setTimeout(function(){this.$top.addClass(a);this.$bottom.addClass(a)}.bind(this),500)},_onUnitClick:function(f){f.preventDefault();this.model.engaged();this.model.items.updateUnit($(f.currentTarget).data("unit"))},_getHoursGraphOptions:function(){var e={maintainAspectRatio:false,responsive:true,plugins:{filler:{propagate:false}},layout:{padding:{top:4,bottom:4}},legend:{display:false},scales:{xAxes:[{display:false,gridLines:{drawBorder:false},ticks:{display:false}}],yAxes:[{display:false,gridLines:{drawBorder:false},ticks:{display:false}}]},animation:{duration:0},hover:{animationDuration:0},responsiveAnimationDuration:0,elements:{point:{radius:0,hoverRadius:0}},tooltips:{enabled:false}};return e},_getHoursGraphDefaults:function(){var g="#aaa",e=c.settings.isDarkTheme()?"#666":"#f2f2f2",f=2;return{borderColor:g,backgroundColor:e,borderWidth:f,borderCapStyle:"round",borderJoinStyle:"round",fill:"start",label:"",spanGaps:true}},_renderHoursGraph:function(){var g=this._getHoursGraphDefaults(),e=this.model.items.hours,f=this._getHoursGraphOptions();if(!e.data||!e.data.datasets){return}e.data.datasets[0]=$.extend(e.data.datasets[0],g);if(!this.hoursGraph){this._appendHoursGraphCanvas(e,f);return}this.hoursGraph.data=e.data;this.hoursGraph.options=f;this.hoursGraph.update()},_appendHoursGraphCanvas:function(f,g){if(!f){return}var e=document.createElement("canvas").getContext("2d"),i=this.$hours,h;e.canvas.style.width="100%";e.canvas.style.height="100%";i.append(e.canvas);h=i.find("canvas")[0];c.require("chart.js",function(){this.hoursGraph=new window.Chart(h,{type:"line",data:f.data,options:g})})},_updateIcon:function(){if(!this.model.openType||this._changedIcon){return}var e="https://duckduckgo.com/assets/icons/meta/DDG-iOS-weather-icon_";$("#icon60").attr("href",e+"60x60.png");$("#icon76").attr("href",e+"76x76.png");$("#icon120").attr("href",e+"120x120.png");$("#icon152").attr("href",e+"152x152.png");this._changedIcon=true},_onExternalLinkClick:function(f){f.stopPropagation();this.model.engaged();this.model.clickedExternalLink();return b.prototype._onExternalLinkClick.call(this,f)},_onOpenTypeChanged:function(){this._updateIcon()}})}(DDG);!function(b){var a=b.Views.Modules.Base;b.Views.Modules.Maps=function(c){a.call(this,c);this.bindEvents([[this.model,"change:isMapExpanded",this._onMapExpandedChanged],[b.keyboard,"escape."+this.model.pixelId,this._onEscape]])};b.Views.Modules.Maps.prototype=$.extend({},a.prototype,{template:"maps_module",_render:function(c){a.prototype._render.call(this,c);this._cacheElems(".js-maps-module",["map","detailview","control-topright","control-bottomleft"]);this._renderAddressDetails();this._renderStaticMap();if(b.device.isEnglish){this.views.feedback=new b.Views.Feedback.FeedbackPrompt({category:"maps",promptText:"Is this map helpful?",appendTo:this.$el})}},_renderStaticMap:function(){if(this.views.staticMap){return}this.views.staticMap=new b.Views.Mapkit.StaticMap({markers:[this.model.selectedItem],marker:this.model.selectedItem,width:this.$el.outerWidth(),height:200,appendTo:this.$map,showCTA:true});this.bindEvents([[this.views.staticMap,"click",this._onStaticMapClicked]])},_renderVerticalMap:function(){if(this.views.verticalMap){return}this.views.verticalMap=new b.Views.Verticals.VerticalMap({ItemClass:b.Views.Address.AddressDetail,model:this.model,locations:this.model.items,appendTo:"body"})},_renderAddressDetails:function(){if(this.views.detail){return}this.views.detail=new b.Views.Address.AddressDetail({model:this.model.selectedItem,appendTo:this.$detailview,answer:this.model})},_onMapExpandedChanged:function(){if(this.model.isMapExpanded){if(this.views.verticalMap){this.views.verticalMap.show()}else{this._renderVerticalMap()}b.pixel.fire("map_ei")}else{if(this.views.verticalMap){this.views.verticalMap.hide()}this.views.staticMap.show()}},_onEscape:function(){if(this.model.isMapExpanded){this.model.set("isMapExpanded",false)}},_onStaticMapClicked:function(){this.model.set("isMapExpanded",true);this.model.fire("iacg");this.model.engaged()}})}(DDG);!function(c){var b=c.Views.ClickableItem,a="is-highlighted";c.Views.Modules.NewsItem=function(e){this.model=e.model;this.answer=e.answer;if(this.model.parentId=="videos"){this.model.link=this.model.url}else{this.model.link=this.model.id}b.call(this,e);this._cacheElems(".js-news",["image-wrapper","img-placeholder","title","content"]);this.bindEvents([[this.$el,"mouseenter",this._onMouseEnter],[this.$el,"mouseleave",this._onMouseLeave],[this.$el,"touchstart",this._onTouchStart],[this.model,"change:image",this._onImageFetched],[this.model,"change:highlighted",this._onHighlightedChanged],[c.device,"resize",this._onResize]]);this._updateEllipsis()};c.Views.Modules.NewsItem.prototype=$.extend({},b.prototype,{template:"news_module_item",getWidth:function(){if(this._width){return this._width}this._width=this.$el.outerWidth(true);return this._width},_render:function(e){b.prototype._render.call(this,this.model)},_updateEllipsis:function(){this.$title.ellipsis({id:this.model.id+"-title"});this.$content.ellipsis({id:this.model.id+"-content"})},_onImageFetched:function(){var e=DDG.getImageProxyURL(this.model.image,false,false,120);this.$img=$('
');this.$imagewrapper.append(this.$img);this.$imgplaceholder.hide()},_onMouseEnter:function(){this.model.highlight()},_onMouseLeave:function(){this.model.unhighlight()},_onClick:function(g,f){this.model.highlight();if(c.settings.get("k5")!=="2"&&this.answer.id==="videos"){c.duckbar.open("videos");if(c.duckbar.tabs.videos.model.itemsById[this.model.id]){c.duckbar.tabs.videos.model.itemsById[this.model.id].set("selected",1)}else{c.pixel.fire("jse","videos")}return}b.prototype._onClick.call(this,g,f)},_onHighlightedChanged:function(){this.$el.toggleClass(a,!!this.model.highlighted)},_onResize:function(){this._updateEllipsis();delete this._width},_onTouchStart:function(){this.answer.engaged()}})}(DDG);!function(e){var c=e.Views.Modules.Base,b=3,a=12;e.Views.Modules.News=function(f){c.call(this,f);this.views={items:[],itemsById:{}};this._cacheElems(".js-news-module",["items","more","title","left","right"]);this.bindEvents([[this.model,"change:items",this._updateItems]]);if(e.device.isMobileDevice){this.$items.on("touchstart touchend",this._updateVisibleItems.bind(this,true))}if(this.model.items.length){this._updateItems()}else{this.model.loadDeferred()}};e.Views.Modules.News.prototype=$.extend({},c.prototype,{template:"news_module",_updateItems:function(){if(this._rendered){return}this._rendered=true;this.$title.removeClass("is-hidden");var g=this.model.items;this._showingSlider=!e.device.isMobileDevice&&g.length>b;var h=this._showingSlider||g.length>a;if(h){this.$more.removeClass("is-hidden");this.bindEvents([[this.$more,"click",this._onMoreClick],[this.$title,"click",this._onMoreClick]])}else{if(g.length===2){this.$el.addClass("has-two-items")}else{if(g.length===1){this.$el.addClass("has-one-item")}}}for(var j=0;j=g){break}if(h>f){m.model.set("visible",true)}k+=o}},_scrollToPage:function(g,h){h=h||(typeof h==="undefined");var i=this.views.items[0].getWidth(),f=i*g*b;f-=2;if(h){this.$items.animate({scrollLeft:f},this._updateVisibleItems.bind(this,true))}else{this.$items.scrollLeft(f);this._updateVisibleItems(true)}if(g===0){this.$left.addClass("is-hidden")}else{this.$left.removeClass("is-hidden")}if(g===this._lastPage){this.$right.addClass("is-hidden")}else{this.$right.removeClass("is-hidden")}this._currentPage=g},_onMoreClick:function(f){f.preventDefault();this.model.engaged();this.model.fire("iacg");e.duckbar.open(this.model.id)},_onLeftClick:function(){var f=Math.max(0,this._currentPage-1);this._scrollToPage(f);this.model.engaged()},_onRightClick:function(){var f=Math.min(this._lastPage,this._currentPage+1);this._scrollToPage(f);this.model.engaged()},_onResize:function(){var f=this.$el.width();if(this._width===f){return}this._scrollToPage(this._currentPage,false);this._width=f}})}(DDG);!function(b){var a=b.Views.Modules.Base,c=57,f=20,e=110;b.Views.Modules.Images=function(g){a.call(this,g);this._updateContainerDimensions();this._numRows=Math.floor(this._containerHeight/e);this._cacheElems(".js-images",["show-more","thumbnails"]);this.bindEvents([[this.model,"change:items",this._onItemsChanged],[this.model,"change:failed",this._onItemsChanged],[b.device,"resize",this._onResize],[this.$showmore,"click",this._onMoreClick]]);this.model.loadDeferred()};b.Views.Modules.Images.prototype=$.extend({},a.prototype,{template:"images_module",_render:function(){a.prototype._render.call(this,this.model)},_openImagesIA:function(){this.model.engaged();b.duckbar.open("images",{})},_updateContainerDimensions:function(){this._containerHeight=this.$parent.height()-c;this._containerWidth=this.$parent.width()-f},_onItemsChanged:function(){if(!this.model.items.length){this.$parent.css({height:"0px",overflow:"hidden"});return}if(!this.thumbnailsLoaded){this.thumbnailsLoaded=true;var j=[];for(var g=0;g1)?"PlacesMultiple":"PlacesSingle";this.views.module=new b.Views.Places[this._viewClass]({appendTo:this.$content,model:this.model});if(!this.model.isMapExpanded){this.$el.addClass("has-feedback-prompt");this.views.feedback=new b.Views.Feedback.FeedbackPrompt({sourceName:this.model.meta.sourceName,category:"maps",categoryName:"Places",categoryValue:this.model.items.length>1?"places_multiple":"places_single",promptText:l("Feedback"),showYesNo:false,appendTo:this.$el})}},_updateExpandedState:function(){if(this.model.isExpandable()){this.$toggle.show();this.$more.toggleClass("is-hidden");this.$less.toggleClass("is-hidden")}},_onExpandedChange:function(){this._updateExpandedState()},_onMapExpandedChange:function(){b.duckbar.modulesLayoutView.model.set("expandedMapId","maps_places")},_onClick:function(f){f.stopPropagation();this.model.engaged();var c=$(f.target).hasClass("js-place-detail-hours-toggle")||$(f.target).hasClass("js-place-hours-close");if(b.device.isMobileDevice&&!c){this.model.toggleExpand()}},_onToggleClick:function(c){c.stopPropagation();this.model.engaged();this.model.toggleExpand()},_onUserMapIntentChange:function(){b.require("mapkit",$.noop)},_onUserLocationChange:function(c){if(!this.model.isMapExpanded){w.location.reload()}}})}(DDG);!function(b){var a=b.Views.Base;b.Views.About.AboutItem=function(c){this.answer=c.answer;a.call(this,c);this._cacheElems(".js-about-item",["abstr","link","more-at-inline","more-at-bottom","clickable-header"]);this.bindEvents([[this.answer,"change:expanded",this._onExpandedChange],[this.$link,"click",this._onExternalLinkClick],[this.$moreatinline,"click",this._onExternalLinkClick],[this.$moreatbottom,"click",this._onExternalLinkClick],[this.$clickableheader,"click",this._onExternalLinkClick]]);if(this.model.hasInfobox){this.views.infobox=new b.Views.About.AboutInfoBox({appendTo:this.$el,model:this.model.infobox})}if(this.model.profiles){this.answer.set("profileLinks",this.model.profiles.links.length);this.views.profiles=new b.Views.About.AboutProfiles({appendTo:this.$el,model:this.model.profiles,answer:this.answer})}this._updateExpandedState()};b.Views.About.AboutItem.prototype=$.extend({},a.prototype,{template:"about_item",_render:function(){a.prototype._render.call(this,this.model);if(this.answer.isMapExpanded){this._cacheElems(".js-about-item",["title"]);this.views.directions=new b.Views.Maps.DirectionsButton({prependTo:this.$el,answer:this.answer,loc:this.model.header.mapLocation})}},_prettifyCode:function(){var c=this.$("pre");if(c.length){DDG.require("prettify",function(){c.addClass("prettyprint");window.prettyPrint()})}},_updateExpandedState:function(){if(this.model.getAbstract){this.$abstr.html(this.model.getAbstract())}if(this.model.hasCode){this._prettifyCode()}if(!this.model.showMoreAtBottom){return}if(this.model.showMoreAtBottom()){this.$moreatbottom.removeClass("is-hidden");this.$moreatinline.addClass("is-hidden")}else{this.$moreatbottom.addClass("is-hidden");this.$moreatinline.removeClass("is-hidden")}},_onExpandedChange:function(){if(this.answer.expanded){this.model.expand()}else{this.model.collapse()}this._updateExpandedState()},_onExternalLinkClick:function(c){c.stopPropagation();this.answer.clickedExternalLink();this.answer.engaged();return a.prototype._onExternalLinkClick.call(this,c)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.About.AboutInfoBox=function(c){a.call(this,c);this.bindEvents([[this.model,"change:expanded",this._rerender]])};b.Views.About.AboutInfoBox.prototype=$.extend({},a.prototype,{template:"about_infobox",_render:function(){a.prototype._render.call(this,this.model)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.About.AboutHeader=function(c){this.answer=c.answer;a.call(this,c);this.bindEvents([[this.model,"change:mapLocation",this._onMapLocationChanged],[this.model,"change:mapFailed",this._onMapFailed]]);if(this.model.mapLocation){this._renderMap()}};b.Views.About.AboutHeader.prototype=$.extend({},a.prototype,{template:"about_header",_render:function(c){a.prototype._render.call(this,this.model);this._cacheElems(".js-about-header",["image","map"]);this.bindEvents([[this.$image,"click",this._onImageClicked],[this.$map,"click",this._onMapClicked]])},_renderMap:function(){if(this.views.map){return}setTimeout(function(){this.views.map=new b.Views.Mapkit.StaticMap({markers:[this.model.mapLocation],width:this.$map.outerWidth(),height:this.$map.outerHeight(),appendTo:this.$map,showCTA:true})}.bind(this),0)},_onMapLocationChanged:function(){this._renderMap()},_onMapFailed:function(){b.pixel.fire("iahmf",this.answer.pixelId,this.answer.getPixelData())},_onImageClicked:function(){b.pixel.fire("iahic",this.answer.pixelId,this.answer.openType,this.answer.getPixelData());b.duckbar.open("images")},_onMapClicked:function(c){c.preventDefault();this.answer.set("isMapExpanded",true);this.answer.fire("iacg");b.pixel.fire("iahmc",this.answer.pixelId,this.answer.openType,this.answer.getPixelData())}})}(DDG);!function(b){var a=b.Views.Base;b.Views.About.AboutProfiles=function(c){this.answer=c.answer;a.call(this,c);this.bindEvents([[this.model,"change:links",this._rerender]])};b.Views.About.AboutProfiles.prototype=$.extend({},a.prototype,{template:"about_profiles",_render:function(){a.prototype._render.call(this,this.model);this.bindEvents([[".js-about-profile-link","click",this._onExternalLinkClick]])},_onExternalLinkClick:function(f){var c=$(f.currentTarget),g=c&&c.attr("title");f.stopPropagation();this.answer.clickedExternalLink({plc:g});this.answer.engaged();return a.prototype._onExternalLinkClick.call(this,f)}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Verticals.Base=function(c){this.views={items:[],itemsById:{}};a.call(this,c);this.$results=this.$results||this.$(".js-vertical-results");this.$moduleWrapper=this.$(".js-vertical-sidebar-modules");this._createFilterDropdowns();this.bindEvents([[b.device,"resize",this._onResize],[this.model,"change:active",this._onActiveChanged],[this.model,"change:items",this._onItemsChanged],[this.model,"no-results",this._onNoMoreResults],[this.model,"change:failed",this._onFailed],[this.model,"change:isRequerying",this._onRequeryingChanged],[this.model,"change:isLoading",this._onLoadingChanged],[b.deep,"change:finished",this._showFeedbackBtn]]);if(this.model.active){this.show()}if(this.model.items.length){this._updateItems()}else{if(this.model.failed){this.showNoResults()}}if(b.deep.finished){this._showFeedbackBtn()}};b.Views.Verticals.Base.prototype=$.extend({},a.prototype,{isValid:function(){return true},show:function(){this.$el.removeClass("is-hidden");b.keyboard.set("namespace",this.model.id);b.hidden.set("iar",this.model.id)},hide:function(){this.$el.addClass("is-hidden");b.keyboard.clear("namespace");b.hidden.clear("iar",this.model.id)},showNoResults:function(){if(!this.views.noResults){this.views.noResults=new b.Views.NoResults({vertical:this.model.pixelId,resultType:this.model.meta.itemType,appendTo:this.$results})}this.views.noResults.show();this._showingNoResults=true},hideNoResults:function(){this.views.noResults.hide();this._showingNoResults=false},_render:function(c){c.id=this.model.id;a.prototype._render.call(this,c)},_updateItems:function(){if(this._showingNoResults){this.hideNoResults()}for(var c=0;c');this.$imagewrapper.append(this.$img);this.$imgplaceholder.hide()},_onHighlightedChanged:function(){this.$el.toggleClass(a,!!this.model.highlighted)},_onClick:function(g,f){this.model.highlight();b.prototype._onClick.call(this,g,f)},_onMouseEnter:function(f){if(c.keyboard.active){return}this.model.highlight()},_onMouseLeave:function(f){this.model.unhighlight()},_onResize:function(f){delete this._bounds}})}(DDG);!function(c){var a=c.Views.Verticals.Base,b=70;c.Views.Verticals.VerticalLinks=function(e){a.call(this,e);this.bindEvents([[c.device,"scroll",this._onScroll]]);if(c.settings.isDefault("kk")){this.bindEvents([[c.keyboard,"up."+this.model.id,this._onUp],[c.keyboard,"j."+this.model.id,this._onUp],[c.keyboard,"down."+this.model.id,this._onDown],[c.keyboard,"k."+this.model.id,this._onDown],[c.keyboard,"enter."+this.model.id,this._onEnter]])}this.$results.on("click",".js-result-more",this._onLoadMoreClick.bind(this));this._pageNumber=1;this._selectItemFromQuerystring();this.menu=new c.Models.AnswerBarMenu();this.modulesLayoutView=new c.Views.ModulesLayout({menu:this.menu,model:c.modulesLayout,verticalId:e.id,selectors:{SIDE:".js-vertical-sidebar-modules"}})};c.Views.Verticals.VerticalLinks.prototype=$.extend({},a.prototype,{template:"vertical_links",ItemClass:c.Views.Verticals.VerticalLinkItem,_addSpellingMessage:function(){if(this.$spelling){return}this.$spelling=new c.Views.SpellingMessage({before:this.$results.selector,model:c.search.spelling,ia:this.model.id})},_updateItems:function(){this._removeLoadMore();if(this.model.usingSpellingBackfill){this._addSpellingMessage()}if(this.views.items.length&&this.views.items.length!==this.model.items.length){this._addSeparator()}a.prototype._updateItems.call(this);delete this._height;this._selectItemFromQuerystring();if(!this._showingNoResults){if(this.model.canLoadMore()){this.$loadMore=c.$exec_template("vertical_load_more");this.$results.append(this.$loadMore)}else{this._showNoMoreResults()}}this._onScroll()},_appendItem:function(e){a.prototype._appendItem.call(this,e);e.set("visible",true)},_showNoMoreResults:function(){this._removeLoadMore();c.footer.set("visible",true)},_removeLoadMore:function(){if(this.$loadMore){this.$loadMore.remove();delete this.$loadMore}},_addSeparator:function(){this._pageNumber++;new c.Views.Verticals.VerticalSeparator({appendTo:this.$results,pageNumber:this._pageNumber})},_loadMoreCheck:function(){if(!c.settings.autoloadDisabled()){return}var e=c.history.get("pn");if(e&&this._pageNumberh){e=f[g];break}}}if(e){e.model.highlight();this._updateScrollPosition()}},_isHighlightedItemVisible:function(){var f=this.model.highlightedItem&&this.views.itemsById[this.model.highlightedItem.id];if(!f){return}var e=f.getBounds(),h=c.device.scrollTop(),g=c.device.height;return e.top>h&&e.bottomj+i){c.device.scrollTop(e-i)}}},_getHeight:function(){if(this._height){return this._height}this._height=this.$results.height();return this._height},_onLoadingChanged:function(e){if(this.$loadMore){this.$loadMore.toggleClass("is-loading",e)}},_onNoMoreResults:function(){this._showNoMoreResults()},_onRequeryingChanged:function(e){a.prototype._onRequeryingChanged.call(this,e);if(!e){delete this._height;this._pageNumber=1;this.$(".js-result-sep").remove();this.$loadMore&&this.$loadMore.remove();delete this.$loadMore;this.$noMoreResults&&this.$noMoreResults.remove();delete this.$noMoreResults}},_onLoadMoreClick:function(){this.model.loadMore()},_onResize:function(){a.prototype._onResize.call(this)},_onScroll:function(){if(!this.model.active){return}var e=this._getHeight();if(!c.settings.isDefault("kav")&&e&&c.device.scrollTop()>e-(c.device.height*2)){this.model.loadMore()}this._loadMoreCheck()},_onUp:function(f){f.preventDefault();if(this.model.highlightedItem===this.model.items[0]){return this.model.highlightedItem.unhighlight()}if(this._isHighlightedItemVisible()){this.model.highlightPrevItem();this._updateScrollPosition()}else{if(c.device.scrollTop()>0){this._highlightFirstVisibleItem()}}},_onDown:function(f){f.preventDefault();if(this._isHighlightedItemVisible()){this.model.highlightNextItem();this._updateScrollPosition()}else{this._highlightFirstVisibleItem()}},_onEnter:function(g){g.preventDefault();var f=this.model.highlightedItem;if(f){this.views.itemsById[f.id].open()}}})}(DDG);!function(b){var a=b.Views.Base;b.Views.Verticals.VerticalSeparator=function(c){a.call(this,c)};b.Views.Verticals.VerticalSeparator.prototype=$.extend({},a.prototype,{template:"vertical_separator",_render:function(f){var g=b.settings.get("kv"),e,c;if(g==="-1"){return}if(g==="m"){c=true}else{if(g==="l"){e=f.pageNumber}else{if(g==="1"){c=true;e=f.pageNumber}}}a.prototype._render.call(this,{line:c,pageNumber:e})}})}(DDG);!function(g){var e=g.Views.Verticals.Base,b=["xs","s"],a=["maps_maps","maps_places","about"],c=32,h="vertical--map__sidebar--",f={MIN:"min",NORMAL:"normal"};g.Views.Verticals.VerticalMap=function(i){this.ItemClass=i.ItemClass;this._glMapModel=i.model.glMapModel||new g.Models.GLMap({locations:i.locations||i.model.itemsOnMap,pixelId:i.model.pixelId});i.model.isMapSidebarVisible=a.indexOf(i.model.id)>-1;i.model.isDarkMap=g.settings.isDarkTheme();e.call(this,i);this.bindEvents([[this.model,"change:isMapExpanded",this._onMapExpandedChanged],[this.model,"change:selectedItem",this._onSelectedItemChanged],[this.model,"change:sidebarLayout",this._onSidebarLayoutChanged],[this.model,"change:sidebarPosition",this._onSidebarPositionChanged],[this.model,"change:isDarkMap",this._onDarkMapChanged],[this.model,"change:isSearchAreaBtnVisible",this._onSearchAreaBtnVisibleChange],[this.model,"change:isMoreAtVisible",this._onIsMoreAtVisibleChange],[g.device,"resize",this._onResize],[g.settings,"change:"+g.settings.THEME_KEY,this._onThemeChange]]);this._selectItemFromQuerystring()};g.Views.Verticals.VerticalMap.prototype=$.extend({},e.prototype,{template:"vertical_map",show:function(){this.views.closeControl?this.views.closeControl.show():this._renderCloseControl();this.updateTheme(this.model.isDarkMap);this._renderMapkitMap();if(this.model.isMapSidebarVisible){this._createSidebar()}g.history.set({iaxm:this.model.nameId});if(this.model.selectedItem&&this.model.selectedItem.itemId){g.history.set("iai",this.model.selectedItem.itemId)}$("html").addClass("has-vertical-map-open");e.prototype.show.call(this)},hide:function(){this.views.closeControl&&this.views.closeControl.hide();this.views.userLocControl&&this.views.userLocControl.hide();g.history.clear("iaxm","iai");$("html").removeClass("has-vertical-map-open");e.prototype.hide.call(this)},updateTheme:function(i){var j=h+"light";if(i){this.$toggle.removeClass(j)}else{this.$toggle.addClass(j)}},showNoResults:function(){if(!this.views.noResults){this.views.noResults=new g.Views.NoMapResults({vertical:this.model.pixelId,resultType:this.model.meta.itemType,query:this.model.meta.query,appendTo:this.$results,model:this.model})}else{this.views.noResults.updateQuery(this.model.meta.query)}this.views.noResults.show();this._showingNoResults=true;this.$el.addClass("vertical--map--no-results");this.model.set("isMoreAtVisible",false)},_render:function(i){if(this.model.isMapSidebarVisible){this._updateSidebarLayout()}e.prototype._render.call(this,i);this._cacheElems(".js-vertical-map",["map","control-topright","sidebar","toggle","toggle-button","results-container","results","detail","close-map","requery","back-to-list","back-to-serp","more","more-link"]);this.show();g.pixel.fire("map_ei");this.bindEvents([[this.$sidebar,"click",this._onSidebarEngagement],[this.$requery,"click",this._onRequeryClick],[this.$toggle,"click",this._onSidebarToggleClicked]])},_updateSidebarLayout:function(){if(!this.model.isMapExpanded){return}var i=b.indexOf(g.device.widthBreakpoint())>-1;this.model.set("sidebarLayout",i&&g.device.isMobilePortrait()?"bottom":"left")},_updateItems:function(){if(this.model.answerItemModel==="MapLocation"){this.ItemClass=g.Views.Address.AddressDetail;this.model.set("isMoreAtVisible")}else{if(this.model.answerItemModel==="Place"){this.ItemClass=g.Views.Places[this.model.items.length>1?"PlaceListItem":"PlacesSingleMap"];if(this.model.meta.sourceUrl){this.$morelink.attr("href",this.model.meta.sourceUrl)}else{this.model.set("isMoreAtVisible")}}}if(this.views.noResults){this.views.noResults.destroy();this.$el.removeClass("vertical--map--no-results")}e.prototype._updateItems.call(this)},_renderCloseControl:function(){if(this.views.closeControl){return}this.views.closeControl=new g.Views.Mapkit.CloseControl({model:this.model,appendTo:this.$controltopright})},_renderUserLocControl:function(){if(this.views.userLocControl||!g.userLocator.canGetLocation()||g.search.userLocationExp==="b"){return}this.views.userLocControl=new g.Views.Mapkit.UserLocationControl({model:g.userLocator,appendTo:this.$controltopright})},_getMapOffset:function(){var i=0,j=0;if(this.model.sidebarLayout==="left"){if(this.model.sidebarPosition===f.MIN){i=this.$toggle.width()-10}else{i=this.$sidebar.width()+this.$toggle.width()-10}}else{if(this.model.sidebarLayout==="bottom"){if(this.model.sidebarPosition===f.MIN){j=c}else{j=this._getSidebarOffsetBottom()}}}return{top:0,right:0,bottom:j,left:i}},_getSidebarOffsetBottom:function(){var i;if(this.model.answerType==="Maps"){i=this.$results.outerHeight();return Math.min(i+c,(g.device.height/2)+c)}return((g.device.height/2)+c)},_renderMapkitMap:function(){if(this.views.mapkitMap){return}var i;if(this._glMapModel.selectedLocation){i=[this._glMapModel.selectedLocation]}else{i=this.model.itemsOnMap}setTimeout(function(){this.views.mapkitMap=new g.Views.Mapkit.Map({markers:i,model:this._glMapModel,answer:this.model,markerType:"circle",appendTo:this.$map,mapOffset:this._getMapOffset()});this.bindEvents([[this.views.mapkitMap,"scrollzoom",this._onMapScrollZoom],[this.views.mapkitMap,"select",this.blurSearchInput],[this.views.mapkitMap,"dragend",this.blurSearchInput]])}.bind(this),0)},_selectItemFromQuerystring:function(){var j=g.history.get("iai"),k=g.history.get("iaxm");if(this.model.nameId===k&&typeof j!=="undefined"){var i=this.model.itemsById[j];if(i){i.select();this._isSelectedItemFromQS=true}}},_createSidebar:function(){if(this.views.sidebar||!this.model.isMapSidebarVisible){this._updateSidebarLayout();return}var i=this.model.sidebarLayout==="bottom"?g.Views.Maps.MapSidebarMobile:g.Views.Maps.MapSidebar;this.views.sidebar=new i({model:this.model,appendTo:this.$sidebar});setTimeout(function(){if(this.model.sidebarLayout==="bottom"){this.$resultscontainer.css("max-height",g.device.height/2);this.$detail.css("max-height",g.device.height/2)}if(this.model.sidebarPosition===f.NORMAL){this._positionSidebar()}else{this.model.set("sidebarPosition",f.NORMAL)}}.bind(this),0)},_positionSidebar:function(){var i=this.model.sidebarPosition!==f.MIN;if(this.model.sidebarLayout==="bottom"){if(i){this.$sidebar.css("transform","translateY(-"+this._getSidebarOffsetBottom()+"px)")}else{this.$sidebar.css("transform","translateY(-"+c+"px)")}}else{if(this.model.sidebarLayout==="left"){if(i){this.$sidebar.css("transform","translateX(0)");this.$togglebutton.html("<")}else{this.$sidebar.css("transform","translateX(-"+this.$sidebar.width()+"px)");this.$togglebutton.html(">")}}}},_onMapExpandedChanged:function(){if(this.model.isMapExpanded){this.show()}else{this.hide()}},_onSidebarLayoutChanged:function(j,i){this.$el.removeClass("vertical--map--sidebar-"+i);this.$el.addClass("vertical--map--sidebar-"+j);this.views.sidebar.destroy();this.views.sidebar=null;this._createSidebar();setTimeout(function(){this.views.mapkitMap.updateMap(this._getMapOffset())}.bind(this),0)},_onSidebarPositionChanged:function(j,i){setTimeout(function(){if(i){this.$sidebar.removeClass(h+i)}this.$sidebar.addClass(h+j)}.bind(this),0);this._positionSidebar();if(this.views.mapkitMap){this.views.mapkitMap.updateMapOffset(this._getMapOffset())}this.$el.toggleClass(h+f.MIN,j===f.MIN)},_onDarkMapChanged:function(){this.updateTheme(this.model.isDarkMap)},_onSidebarToggleClicked:function(){var i=this.model.sidebarPosition===f.MIN?f.NORMAL:f.MIN;this.model.set("sidebarPosition",i);g.pixel.fire("map_est")},_onSidebarEngagement:function(){g.pixel.fire("map_ese")},_onRequeryClick:function(){this.model.set("shouldMapViewportUpdate",false);this.model.set("isSearchAreaBtnVisible",false);if(this.model.geo_bbox){this.model.requery({query:this.model.meta.queryParsed?this.model.meta.queryParsed.what:this.model.meta.query,bbox_tl:this.model.geo_bbox.top_left,bbox_br:this.model.geo_bbox.bottom_right})}},blurSearchInput:function(){if(this.views.sidebar&&this.views.sidebar.$searchinput){this.views.sidebar.$searchinput.blur()}},_onMapScrollZoom:function(){this.blurSearchInput();this.model.set("isSearchAreaBtnVisible",true)},_onResize:function(){if(!this.model.isMapSidebarVisible){return}this._updateSidebarLayout()},_onSelectedItemChanged:function(i){if((this.model.answerItemModel!=="Place"&&this.model.answerType!=="Places")||this.model.isSingle){return}if(this.views.currentItemDetail){this.views.currentItemDetail.destroy();delete this.views.currentItemDetail}if(i){this.model.primaryPlace=i;this.views.currentItemDetail=new g.Views.Places.PlacesSingleMap({answer:this.model,model:this.model.primaryPlace,appendTo:this.$detail});this.$detail.show();this.$resultscontainer.hide();this.$backtoserp.hide();this.$backtolist.removeClass("is-hidden")}else{this.$detail.hide();this.$resultscontainer.show();this.$backtoserp.show();this.$backtolist.addClass("is-hidden")}if(this.model.sidebarPosition===f.MIN){this.model.set("sidebarPosition",f.NORMAL)}},_onThemeChange:function(){this.model.set("isDarkMap",g.settings.isDarkTheme())},_onSearchAreaBtnVisibleChange:function(){this.$requery.toggleClass("is-hidden",!this.model.isSearchAreaBtnVisible)},_onIsMoreAtVisibleChange:function(){this.$more.toggle(this.model.isMoreAtVisible)}})}(DDG);!function(a){a.feedback=new a.Models.Feedback();a.modulesLayout=new a.Models.ModulesLayout({});a.duckbar=new a.Duckbar();a.directionSource=new a.Models.AnswerSelectLists.DirectionSource();a.searchExperiments=new a.Models.SearchExperiments();a.vqd=new a.Models.VQD()}(DDG);this["DDG"]=this["DDG"]||{};this["DDG"]["templates"]=this["DDG"]["templates"]||{};this["DDG"]["templates"]["base"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='
';if(e=b.content){a=e.call(k,{hash:{},data:i})}else{e=(k&&k.content);a=typeof e===f?e.call(k,{hash:{},data:i}):e}if(a||a===0){g+=a}g+="
";return g});this["DDG"]["templates"]["detail_slider"]=Handlebars.template(function(f,n,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,h="function",j=this.escapeExpression,o=this;function c(t,s){var p="",q,r;p+='style="height:';if(r=e.detailHeight){q=r.call(t,{hash:{},data:s})}else{r=(t&&t.detailHeight);q=typeof r===h?r.call(t,{hash:{},data:s}):r}p+=j(q)+';"';return p}function a(q,p){return''}i+='';return i});this["DDG"]["templates"]["detail_slider_pane"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='
';return g});this["DDG"]["templates"]["duckbar_tab"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var i="",b,g,p,o=this,h="function",m=e.helperMissing;function c(r,q){return"is-hidden"}function a(r,q){return"is-active"}i+='
  • ';b=(g=e.l||(n&&n.l),p={hash:{},data:j},g?g.call(n,(n&&n.name),p):m.call(n,"l",(n&&n.name),p));if(b||b===0){i+=b}i+="
  • ";return i});this["DDG"]["templates"]["maps"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='
    ';return g});this["DDG"]["templates"]["maps_marker_popup"]=Handlebars.template(function(c,p,n,i,s){this.compilerInfo=[4,">= 1.0.0"];n=this.merge(n,c.helpers);s=s||{};var o="",f,b="function",a=this.escapeExpression,m=this;function k(v,u){return"mapview-marker__popup--single-line"}function j(v,u){return"has-directions js-popup-directions-container"}function h(y,x){var u="",v;v=n["if"].call(y,(y&&y.name),{hash:{},inverse:m.noop,fn:m.program(6,g,x),data:x});if(v||v===0){u+=v}v=n["if"].call(y,(y&&y.address),{hash:{},inverse:m.noop,fn:m.program(8,e,x),data:x});if(v||v===0){u+=v}v=n["if"].call(y,(y&&y.displayLatLon),{hash:{},inverse:m.noop,fn:m.program(10,t,x),data:x});if(v||v===0){u+=v}return u}function g(z,y){var u="",v,x;u+='';if(x=n.name){v=x.call(z,{hash:{},data:y})}else{x=(z&&z.name);v=typeof x===b?x.call(z,{hash:{},data:y}):x}u+=a(v)+"";return u}function e(z,y){var u="",v,x;u+='';if(x=n.address){v=x.call(z,{hash:{},data:y})}else{x=(z&&z.address);v=typeof x===b?x.call(z,{hash:{},data:y}):x}u+=a(v)+"";return u}function t(z,y){var u="",v,x;u+='';if(x=n.displayLatLon){v=x.call(z,{hash:{},data:y})}else{x=(z&&z.displayLatLon);v=typeof x===b?x.call(z,{hash:{},data:y}):x}if(v||v===0){u+=v}u+="";return u}function r(y,x){var u="",v;u+='';v=n["if"].call(y,(y&&y.name),{hash:{},inverse:m.noop,fn:m.program(13,q,x),data:x});if(v||v===0){u+=v}v=n["if"].call(y,(y&&y.address),{hash:{},inverse:m.noop,fn:m.program(8,e,x),data:x});if(v||v===0){u+=v}v=n["if"].call(y,(y&&y.displayLatLon),{hash:{},inverse:m.noop,fn:m.program(10,t,x),data:x});if(v||v===0){u+=v}u+="";return u}function q(z,y){var u="",v,x;u+='
    d';if(x=n.name){v=x.call(z,{hash:{},data:y})}else{x=(z&&z.name);v=typeof x===b?x.call(z,{hash:{},data:y}):x}u+=a(v)+"
    ";return u}o+='';f=n.unless.call(p,(p&&p.showDirections),{hash:{},inverse:m.program(12,r,s),fn:m.program(5,h,s),data:s});if(f||f===0){o+=f}o+="";return o});this["DDG"]["templates"]["metabar"]=Handlebars.template(function(f,t,r,m,B){this.compilerInfo=[4,">= 1.0.0"];r=this.merge(r,f.helpers);B=B||{};var s="",i,a,q=r.helperMissing,p=this,c="function",b=this.escapeExpression;function o(D,C){return"has-dropdowns"}function n(D,C){return"is-hidden"}function k(H,G){var C="",E,F,D;C+='
    ';E=(F=r.moreAt||(H&&H.moreAt),D={hash:{},data:G},F?F.call(H,H,"none",D):q.call(H,"moreAt",H,"none",D));if(E||E===0){C+=E}C+="
    ";return C}function j(G,F){var C="",D,E;C+='
    ';if(E=r.secondaryText){D=E.call(G,{hash:{},data:F})}else{E=(G&&G.secondaryText);D=typeof E===c?E.call(G,{hash:{},data:F}):E}if(D||D===0){C+=D}D=r["if"].call(G,(G&&G.showMoreAt),{hash:{},inverse:p.noop,fn:p.program(10,A,F),data:F});if(D||D===0){C+=D}C+="
    ";return C}function h(D,C){return"hide--screen-s"}function A(D,C){return''}function z(D,C){return''}function y(E,D){var C;C=r["if"].call(E,(E&&E.secondaryText),{hash:{},inverse:p.noop,fn:p.program(12,z,D),data:D});if(C||C===0){return C}else{return""}}function x(F,E){var C,D;if(D=r.primaryText){C=D.call(F,{hash:{},data:E})}else{D=(F&&F.primaryText);C=typeof D===c?D.call(F,{hash:{},data:E}):D}if(C||C===0){return C}else{return""}}function v(E,D){var C;C=r["if"].call(E,(E&&E.sourceNoTransform),{hash:{},inverse:p.program(21,g,D),fn:p.program(19,u,D),data:D});if(C||C===0){return C}else{return""}}function u(H,G){var C="",E,F,D;C+=''+b((F=r.l||(H&&H.l),D={hash:{},data:G},F?F.call(H,(H&&H.itemType),D):q.call(H,"l",(H&&H.itemType),D)))+" ";E=(F=r.l||(H&&H.l),D={hash:{},data:G},F?F.call(H,"for",D):q.call(H,"l","for",D));if(E||E===0){C+=E}C+=' ';if(F=r.searchTerm){E=F.call(H,{hash:{},data:G})}else{F=(H&&H.searchTerm);E=typeof F===c?F.call(H,{hash:{},data:G}):F}C+=b(E)+"";return C}function g(H,G){var C="",E,F,D;C+=''+b((F=r.l||(H&&H.l),D={hash:{},data:G},F?F.call(H,(H&&H.itemType),D):q.call(H,"l",(H&&H.itemType),D)))+" ";E=(F=r.l||(H&&H.l),D={hash:{},data:G},F?F.call(H,"for",D):q.call(H,"l","for",D));if(E||E===0){C+=E}C+=' ';if(F=r.searchTerm){E=F.call(H,{hash:{},data:G})}else{F=(H&&H.searchTerm);E=typeof F===c?F.call(H,{hash:{},data:G}):F}C+=b(E)+"";return C}function e(D,C){return'
    '}s+='
    ';if(a=r.initialModeIcon){i=a.call(t,{hash:{},data:B})}else{a=(t&&t.initialModeIcon);i=typeof a===c?a.call(t,{hash:{},data:B}):a}s+=b(i)+"";i=r["if"].call(t,(t&&t.showMoreAt),{hash:{},inverse:p.noop,fn:p.program(5,k,B),data:B});if(i||i===0){s+=i}i=r["if"].call(t,(t&&t.secondaryText),{hash:{},inverse:p.noop,fn:p.program(7,j,B),data:B});if(i||i===0){s+=i}s+='
    ';i=r["if"].call(t,(t&&t.primaryText),{hash:{},inverse:p.program(18,v,B),fn:p.program(16,x,B),data:B});if(i||i===0){s+=i}s+="
    ";i=r["if"].call(t,(t&&t.showDropdowns),{hash:{},inverse:p.noop,fn:p.program(23,e,B),data:B});if(i||i===0){s+=i}s+="
    ";return s});this["DDG"]["templates"]["tiles"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='
    ';if(e=b.content){a=e.call(k,{hash:{},data:i})}else{e=(k&&k.content);a=typeof e===f?e.call(k,{hash:{},data:i}):e}if(a||a===0){g+=a}g+="
    ";return g});this["DDG"]["templates"]["tiles_scroll_nav"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='';return g});this["DDG"]["templates"]["topic_menu"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return'
      '});this["DDG"]["templates"]["topic_menu_item"]=Handlebars.template(function(e,m,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,p,g="function",i=this.escapeExpression,o=this,n=c.blockHelperMissing;function b(t,s){var q="",r;q+=''+i(((r=((r=(t&&t.items)),r==null||r===false?r:r.length)),typeof r===g?r.apply(t):r))+"";return q}h+='
    • ';if(f=c.name){a=f.call(m,{hash:{},data:j})}else{f=(m&&m.name);a=typeof f===g?f.call(m,{hash:{},data:j}):f}h+=i(a);p={hash:{},inverse:o.program(1,b,j),fn:o.noop,data:j};if(f=c.hideCount){a=f.call(m,p)}else{f=(m&&m.hideCount);a=typeof f===g?f.call(m,p):f}if(!c.hideCount){a=n.call(m,a,{hash:{},inverse:o.program(1,b,j),fn:o.noop,data:j})}if(a||a===0){h+=a}h+="
    • ";return h});this["DDG"]["templates"]["answer_detail"]=Handlebars.template(function(c,j,b,i,h){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);h=h||{};var g="",a,e,f="function";g+='
      ';if(e=b.Answer){a=e.call(j,{hash:{},data:h})}else{e=(j&&j.Answer);a=typeof e===f?e.call(j,{hash:{},data:h}):e}if(a||a===0){g+=a}g+="
      ";return g});this["DDG"]["templates"]["base_detail"]=Handlebars.template(function(f,m,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var h="",b,g="function",k=e.helperMissing,p=this;function c(t,s){var q,r;if(r=e.content){q=r.call(t,{hash:{},data:s})}else{r=(t&&t.content);q=typeof r===g?r.call(t,{hash:{},data:s}):r}if(q||q===0){return q}else{return""}}function a(u,t){var r,s,q;r=(s=e.include||(u&&u.include),q={hash:{},data:t},s?s.call(u,((r=((r=(u&&u.meta)),r==null||r===false?r:r.options)),r==null||r===false?r:r.content),q):k.call(u,"include",((r=((r=(u&&u.meta)),r==null||r===false?r:r.options)),r==null||r===false?r:r.content),q));if(r||r===0){return r}else{return""}}function o(v,u){var q="",s,t,r;q+='";return q}function n(v,u){var q="",s,t,r;q+='';s=(t=e.formatSubtitle||(v&&v.formatSubtitle),r={hash:{},data:u},t?t.call(v,((s=((s=(v&&v.meta)),s==null||s===false?s:s.options)),s==null||s===false?s:s.moreText),r):k.call(v,"formatSubtitle",((s=((s=(v&&v.meta)),s==null||s===false?s:s.options)),s==null||s===false?s:s.moreText),r));if(s||s===0){q+=s}q+="";return q}h+='
      ';b=e["if"].call(m,(m&&m.content),{hash:{},inverse:p.program(3,a,i),fn:p.program(1,c,i),data:i});if(b||b===0){h+=b}b=e["if"].call(m,((b=((b=(m&&m.meta)),b==null||b===false?b:b.options)),b==null||b===false?b:b.moreAt),{hash:{},inverse:p.noop,fn:p.program(5,o,i),data:i});if(b||b===0){h+=b}h+="
      ";return h});this["DDG"]["templates"]["base_spice_detail"]=Handlebars.template(function(c,k,b,i,h){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);h=h||{};var g="",a,e,m,f="function",j=b.helperMissing;g+='
      ';if(e=b.content){a=e.call(k,{hash:{},data:h})}else{e=(k&&k.content);a=typeof e===f?e.call(k,{hash:{},data:h}):e}if(a||a===0){g+=a}g+='
      ";return g});this["DDG"]["templates"]["basic_icon_detail"]=Handlebars.template(function(e,q,o,i,y){this.compilerInfo=[4,">= 1.0.0"];o=this.merge(o,e.helpers);y=y||{};var p="",f,b="function",a=this.escapeExpression,n=o.helperMissing,m=this;function k(A,z){return"has-aux"}function j(E,D){var z="",B,C,A;z+='
      ';return z}function h(D,C){var z="",A,B;z+='';if(B=o.badge){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.badge);A=typeof B===b?B.call(D,{hash:{},data:C}):B}z+=a(A)+"";return z}function g(D,C){var z="",A,B;z+='

      ';if(B=o.title){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.title);A=typeof B===b?B.call(D,{hash:{},data:C}):B}z+=a(A)+"

      ";return z}function c(E,D){var z="",B,C,A;z+='';B=(C=o.formatSubtitle||(E&&E.formatSubtitle),A={hash:{},data:D},C?C.call(E,(E&&E.subtitle),A):n.call(E,"formatSubtitle",(E&&E.subtitle),A));if(B||B===0){z+=B}z+="";return z}function x(E,D){var z="",B,C,A;z+='';B=(C=o.formatSubtitle||(E&&E.formatSubtitle),A={hash:{},data:D},C?C.call(E,(E&&E.altSubtitle),A):n.call(E,"formatSubtitle",(E&&E.altSubtitle),A));if(B||B===0){z+=B}z+="";return z}function v(E,D){var z="",B,C,A;z+='
      ';B=(C=o.include||(E&&E.include),A={hash:{},data:D},C?C.call(E,((B=((B=(E&&E.meta)),B==null||B===false?B:B.options)),B==null||B===false?B:B.content),A):n.call(E,"include",((B=((B=(E&&E.meta)),B==null||B===false?B:B.options)),B==null||B===false?B:B.content),A));if(B||B===0){z+=B}z+="
      ";return z}function u(B,A){var z;z=o["if"].call(B,(B&&B.description),{hash:{},inverse:m.noop,fn:m.program(16,t,A),data:A});if(z||z===0){return z}else{return""}}function t(D,C){var z="",A,B;z+='
      ';if(B=o.description){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.description);A=typeof B===b?B.call(D,{hash:{},data:C}):B}z+=a(A)+"
      ";return z}function s(E,D){var z="",B,C,A;z+='";return z}function r(E,D){var z="",B,C,A;z+='';B=(C=o.formatSubtitle||(E&&E.formatSubtitle),A={hash:{},data:D},C?C.call(E,((B=((B=(E&&E.meta)),B==null||B===false?B:B.options)),B==null||B===false?B:B.moreText),A):n.call(E,"formatSubtitle",((B=((B=(E&&E.meta)),B==null||B===false?B:B.options)),B==null||B===false?B:B.moreText),A));if(B||B===0){z+=B}z+="";return z}p+='
      ';f=o["if"].call(q,(q&&q.image),{hash:{},inverse:m.noop,fn:m.program(3,j,y),data:y});if(f||f===0){p+=f}f=o["if"].call(q,(q&&q.badge),{hash:{},inverse:m.noop,fn:m.program(5,h,y),data:y});if(f||f===0){p+=f}p+='
      ';f=o["if"].call(q,(q&&q.title),{hash:{},inverse:m.noop,fn:m.program(7,g,y),data:y});if(f||f===0){p+=f}f=o["if"].call(q,(q&&q.subtitle),{hash:{},inverse:m.noop,fn:m.program(9,c,y),data:y});if(f||f===0){p+=f}f=o["if"].call(q,(q&&q.altSubtitle),{hash:{},inverse:m.noop,fn:m.program(11,x,y),data:y});if(f||f===0){p+=f}p+="
      ";f=o["if"].call(q,((f=((f=(q&&q.meta)),f==null||f===false?f:f.options)),f==null||f===false?f:f.content),{hash:{},inverse:m.program(15,u,y),fn:m.program(13,v,y),data:y});if(f||f===0){p+=f}f=o["if"].call(q,((f=((f=(q&&q.meta)),f==null||f===false?f:f.options)),f==null||f===false?f:f.moreAt),{hash:{},inverse:m.noop,fn:m.program(18,s,y),data:y});if(f||f===0){p+=f}p+="
      ";return p});this["DDG"]["templates"]["basic_info_detail"]=Handlebars.template(function(g,u,s,m,C){this.compilerInfo=[4,">= 1.0.0"];s=this.merge(s,g.helpers);C=C||{};var t="",j,a,e,q=this,c="function",r=s.helperMissing,b=this.escapeExpression;function p(E,D){return"has-aux"}function o(I,H){var D="",F,G,E;D+='
      ';return D}function n(E,D){return"tile"}function k(E,D){return"clip"}function i(H,G){var D="",E,F;D+='

      ';if(F=s.title){E=F.call(H,{hash:{},data:G})}else{F=(H&&H.title);E=typeof F===c?F.call(H,{hash:{},data:G}):F}D+=b(E)+"";E=s["if"].call(H,(H&&H.subtitle),{hash:{},inverse:q.noop,fn:q.program(11,B,G),data:G});if(E||E===0){D+=E}D+="

      ";return D}function f(E,D){return"has-sub"}function B(I,H){var D="",F,G,E;D+='';F=(G=s.formatSubtitle||(I&&I.formatSubtitle),E={hash:{},data:H},G?G.call(I,(I&&I.subtitle),E):r.call(I,"formatSubtitle",(I&&I.subtitle),E));if(F||F===0){D+=F}D+="";return D}function A(I,H){var D="",F,G,E;D+='
      ';F=(G=s.include||(I&&I.include),E={hash:{},data:H},G?G.call(I,((F=((F=(I&&I.meta)),F==null||F===false?F:F.options)),F==null||F===false?F:F.content),E):r.call(I,"include",((F=((F=(I&&I.meta)),F==null||F===false?F:F.options)),F==null||F===false?F:F.content),E));if(F||F===0){D+=F}D+="
      ";return D}function z(E,D){return"chomp js-ellipsis"}function y(F,E){var D;D=s["if"].call(F,(F&&F.description),{hash:{},inverse:q.noop,fn:q.program(17,x,E),data:E});if(D||D===0){return D}else{return""}}function x(H,G){var D="",E,F;D+='
      ';if(F=s.description){E=F.call(H,{hash:{},data:G})}else{F=(H&&H.description);E=typeof F===c?F.call(H,{hash:{},data:G}):F}D+=b(E)+"
      ";return D}function v(H,G){var E,F,D;E=(F=s.moreAt||(H&&H.moreAt),D={hash:{className:("c-info__link"),sourceOnlyMobile:("true")},data:G},F?F.call(H,(H&&H.meta),"none",D):r.call(H,"moreAt",(H&&H.meta),"none",D));if(E||E===0){return E}else{return""}}function h(I,H){var D="",F,G,E;D+='';F=(G=s.formatSubtitle||(I&&I.formatSubtitle),E={hash:{},data:H},G?G.call(I,((F=((F=(I&&I.meta)),F==null||F===false?F:F.options)),F==null||F===false?F:F.moreText),E):r.call(I,"formatSubtitle",((F=((F=(I&&I.meta)),F==null||F===false?F:F.options)),F==null||F===false?F:F.moreText),E));if(F||F===0){D+=F}D+="";return D}t+='
      ';j=s["if"].call(u,(u&&u.image),{hash:{},inverse:q.noop,fn:q.program(3,o,C),data:C});if(j||j===0){t+=j}t+='
      ';j=s["if"].call(u,(u&&u.title),{hash:{},inverse:q.noop,fn:q.program(8,i,C),data:C});if(j||j===0){t+=j}j=s["if"].call(u,((j=((j=(u&&u.meta)),j==null||j===false?j:j.options)),j==null||j===false?j:j.content),{hash:{},inverse:q.program(16,y,C),fn:q.program(13,A,C),data:C});if(j||j===0){t+=j}t+='
      ";return t});this["DDG"]["templates"]["goodie_0_inputs"]=Handlebars.template(function(e,j,c,i,h){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);h=h||{};var g="",a,f="function",k=this;function b(p,o){var m="",n;m+='

      ';n=((n=((n=(p&&p.Answer)),n==null||n===false?n:n.operation)),typeof n===f?n.apply(p):n);if(n||n===0){m+=n}m+="

      ";return m}g+='

      ';a=((a=((a=(j&&j.Answer)),a==null||a===false?a:a.result)),typeof a===f?a.apply(j):a);if(a||a===0){g+=a}g+="

      ";a=c["if"].call(j,((a=(j&&j.Answer)),a==null||a===false?a:a.operation),{hash:{},inverse:k.noop,fn:k.program(1,b,h),data:h});if(a||a===0){g+=a}g+="
      ";return g});this["DDG"]["templates"]["goodie_1_inputs"]=Handlebars.template(function(c,j,b,i,h){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);h=h||{};var f="",a,e="function",g=this.escapeExpression;f+='

      ';a=((a=((a=(j&&j.Answer)),a==null||a===false?a:a.result)),typeof a===e?a.apply(j):a);if(a||a===0){f+=a}f+='

      ';a=((a=((a=(j&&j.Answer)),a==null||a===false?a:a.operation)),typeof a===e?a.apply(j):a);if(a||a===0){f+=a}f+=': '+g(((a=((a=((a=(j&&j.Answer)),a==null||a===false?a:a.input)),a==null||a===false?a:a[0])),typeof a===e?a.apply(j):a))+"

      ";return f});this["DDG"]["templates"]["goodie_2_inputs"]=Handlebars.template(function(c,j,b,i,h){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);h=h||{};var f="",a,e="function",g=this.escapeExpression;f+='

      ';a=((a=((a=(j&&j.Answer)),a==null||a===false?a:a.result)),typeof a===e?a.apply(j):a);if(a||a===0){f+=a}f+='

      ';a=((a=((a=(j&&j.Answer)),a==null||a===false?a:a.operation)),typeof a===e?a.apply(j):a);if(a||a===0){f+=a}f+=' '+g(((a=((a=((a=(j&&j.Answer)),a==null||a===false?a:a.input)),a==null||a===false?a:a[0])),typeof a===e?a.apply(j):a))+' '+g(((a=((a=((a=(j&&j.Answer)),a==null||a===false?a:a.input)),a==null||a===false?a:a[1])),typeof a===e?a.apply(j):a))+"

      ";return f});this["DDG"]["templates"]["info_detail"]=Handlebars.template(function(f,s,q,j,x){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);x=x||{};var r="",h,a,e,c="function",b=this.escapeExpression,o=this,p=q.helperMissing;function n(z,y){return"has-aux"}function m(C,B){var y="",z,A;y+='
      ";return y}function k(z,y){return"tile"}function i(z,y){return"clip"}function g(B,A){var y="",z;y+='style="width:'+b(((z=((z=(B&&B.imageLoadingSize)),z==null||z===false?z:z.width)),typeof z===c?z.apply(B):z))+"px;height:"+b(((z=((z=(B&&B.imageLoadingSize)),z==null||z===false?z:z.height)),typeof z===c?z.apply(B):z))+'px;" ';return y}function v(C,B){var z,A,y;z=(A=q.formatTitle||(C&&C.formatTitle),y={hash:{el:("h1"),className:("c-info__title"),href:((C&&C.AbstractURL)),ellipsis:(100)},data:B},A?A.call(C,(C&&C.Heading),y):p.call(C,"formatTitle",(C&&C.Heading),y));if(z||z===0){return z}else{return""}}function u(C,B){var z,A,y;z=(A=q.moreAt||(C&&C.moreAt),y={hash:{className:("c-info__link"),sourceOnlyMobile:(true)},data:B},A?A.call(C,(C&&C.meta),(C&&C.AbstractURL),y):p.call(C,"moreAt",(C&&C.meta),(C&&C.AbstractURL),y));if(z||z===0){return z}else{return""}}function t(D,C){var y="",A,B,z;y+=''+b((B=q.domain||(D&&D.domain),z={hash:{},data:C},B?B.call(D,(D&&D.FirstURL),z):p.call(D,"domain",(D&&D.FirstURL),z)))+"";return y}r+='
      ';h=q["if"].call(s,(s&&s.Image),{hash:{},inverse:o.noop,fn:o.program(3,m,x),data:x});if(h||h===0){r+=h}r+='
      ';h=q["if"].call(s,(s&&s.Heading),{hash:{},inverse:o.noop,fn:o.program(10,v,x),data:x});if(h||h===0){r+=h}r+='
      ';if(a=q.Abstract){h=a.call(s,{hash:{},data:x})}else{a=(s&&s.Abstract);h=typeof a===c?a.call(s,{hash:{},data:x}):a}if(h||h===0){r+=h}r+='
      ";return r});this["DDG"]["templates"]["list_detail"]=Handlebars.template(function(g,s,q,k,x){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,g.helpers);x=x||{};var r="",h,a,e,c="function",b=this.escapeExpression,p=q.helperMissing,o=this;function n(C,B){var y="",z,A;y+='

      ';if(A=q.title){z=A.call(C,{hash:{},data:B})}else{A=(C&&C.title);z=typeof A===c?A.call(C,{hash:{},data:B}):A}y+=b(z)+"

      ";return y}function m(D,C){var y="",A,B,z;y+='

      ';A=(B=q.formatSubtitle||(D&&D.formatSubtitle),z={hash:{},data:C},B?B.call(D,(D&&D.subtitle),z):p.call(D,"formatSubtitle",(D&&D.subtitle),z));if(A||A===0){y+=A}y+="

      ";return y}function j(C,B){var z,A,y;z=(A=q.include||(C&&C.include),y={hash:{},data:B},A?A.call(C,((z=((z=(C&&C.meta)),z==null||z===false?z:z.options)),z==null||z===false?z:z.subtitle_content),y):p.call(C,"include",((z=((z=(C&&C.meta)),z==null||z===false?z:z.options)),z==null||z===false?z:z.subtitle_content),y));if(z||z===0){return z}else{return""}}function i(D,C){var y="",A,B,z;y+='
      ';A=(B=q.include||(D&&D.include),z={hash:{},data:C},B?B.call(D,((A=((A=(D&&D.meta)),A==null||A===false?A:A.options)),A==null||A===false?A:A.content),z):p.call(D,"include",((A=((A=(D&&D.meta)),A==null||A===false?A:A.options)),A==null||A===false?A:A.content),z));if(A||A===0){y+=A}y+="
      ";return y}function f(B,A){var y="",z;y+='
        ';z=q.each.call(B,(B&&B.list),{hash:{},inverse:o.noop,fn:o.programWithDepth(10,v,A,B),data:A});if(z||z===0){y+=z}y+="
      ";return y}function v(E,C,D){var y="",A,B,z;y+='
    • ';A=(B=q.include||(D&&D.include),z={hash:{},data:C},B?B.call(E,((A=((A=(D&&D.meta)),A==null||A===false?A:A.options)),A==null||A===false?A:A.list_content),z):p.call(E,"include",((A=((A=(D&&D.meta)),A==null||A===false?A:A.options)),A==null||A===false?A:A.list_content),z));if(A||A===0){y+=A}y+="
    • ";return y}function u(C,B){var z,A,y;z=(A=q.moreAt||(C&&C.moreAt),y={hash:{className:("c-list__link")},data:B},A?A.call(C,(C&&C.meta),"none",y):p.call(C,"moreAt",(C&&C.meta),"none",y));if(z||z===0){return z}else{return""}}function t(D,C){var y="",A,B,z;y+='';A=(B=q.formatSubtitle||(D&&D.formatSubtitle),z={hash:{},data:C},B?B.call(D,((A=((A=(D&&D.meta)),A==null||A===false?A:A.options)),A==null||A===false?A:A.moreText),z):p.call(D,"formatSubtitle",((A=((A=(D&&D.meta)),A==null||A===false?A:A.options)),A==null||A===false?A:A.moreText),z));if(A||A===0){y+=A}y+="";return y}r+='
      ';h=q["if"].call(s,(s&&s.title),{hash:{},inverse:o.noop,fn:o.program(1,n,x),data:x});if(h||h===0){r+=h}h=q["if"].call(s,(s&&s.subtitle),{hash:{},inverse:o.noop,fn:o.program(3,m,x),data:x});if(h||h===0){r+=h}h=q["if"].call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.subtitle_content),{hash:{},inverse:o.noop,fn:o.program(5,j,x),data:x});if(h||h===0){r+=h}h=q["if"].call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.content),{hash:{},inverse:o.noop,fn:o.program(7,i,x),data:x});if(h||h===0){r+=h}h=q["if"].call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.list_content),{hash:{},inverse:o.noop,fn:o.program(9,f,x),data:x});if(h||h===0){r+=h}r+='
      ";return r});this["DDG"]["templates"]["lyrics_detail"]=Handlebars.template(function(f,m,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var h="",b,g,o,k=e.helperMissing,n=this;function c(q,p){return"has-aux"}function a(t,s){var q,r,p;q=(r=e.include||(t&&t.include),p={hash:{},data:s},r?r.call(t,"infobox",p):k.call(t,"include","infobox",p));if(q||q===0){return q}else{return""}}h+='
      ';b=(g=e.lyricsTitle||(m&&m.lyricsTitle),o={hash:{},data:i},g?g.call(m,(m&&m.title),(m&&m.url),o):k.call(m,"lyricsTitle",(m&&m.title),(m&&m.url),o));if(b||b===0){h+=b}h+='
      ';b=(g=e.lyricsAbstract||(m&&m.lyricsAbstract),o={hash:{},data:i},g?g.call(m,(m&&m["abstract"]),o):k.call(m,"lyricsAbstract",(m&&m["abstract"]),o));if(b||b===0){h+=b}h+='
      ";b=e["if"].call(m,((b=((b=(m&&m.data)),b==null||b===false?b:b[1])),b==null||b===false?b:b.urlTitle),{hash:{},inverse:n.noop,fn:n.program(3,a,i),data:i});if(b||b===0){h+=b}return h});this["DDG"]["templates"]["nlp_detail"]=Handlebars.template(function(c,k,b,i,h){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);h=h||{};var g="",a,e,m,j=b.helperMissing,f="function";g+='
      ';a=(e=b.formatTitle||(k&&k.formatTitle),m={hash:{el:("h1"),className:("c-info__title"),classNameSec:("c-info__title--long"),href:((k&&k.url))},data:h},e?e.call(k,(k&&k.heading),m):j.call(k,"formatTitle",(k&&k.heading),m));if(a||a===0){g+=a}g+='
      ';if(e=b["abstract"]){a=e.call(k,{hash:{},data:h})}else{e=(k&&k["abstract"]);a=typeof e===f?e.call(k,{hash:{},data:h}):e}if(a||a===0){g+=a}g+='
      ";return g});this["DDG"]["templates"]["places_detail"]=Handlebars.template(function(I,a,H,r,P){this.compilerInfo=[4,">= 1.0.0"];H=this.merge(H,I.helpers);P=P||{};var n="",s,j,o,G=H.helperMissing,M=this.escapeExpression,m="function",f=this,v=H.blockHelperMissing;function F(V,U){var Q="",S,T,R;Q+='
      ';if(T=H.title){S=T.call(V,{hash:{},data:U})}else{T=(V&&V.title);S=typeof T===m?T.call(V,{hash:{},data:U}):T}Q+=M(S)+'
      ';return Q}function E(R,Q){return'@'}function D(V,U){var Q="",S,T,R;Q+='
      ';S=(T=H.moreAt||(V&&V.moreAt),R={hash:{className:("tile__more-link"),iconClassName:("tile__favicon"),dynamicMoreAtText:(5)},data:U},T?T.call(V,(V&&V.url),((S=(V&&V.meta)),S==null||S===false?S:S.sourceName),R):G.call(V,"moreAt",(V&&V.url),((S=(V&&V.meta)),S==null||S===false?S:S.sourceName),R));if(S||S===0){Q+=S}Q+="
      ";return Q}function A(R,Q){return"has-hours js-tile-map-with-hours"}function u(U,T){var R,S,Q;R=(S=H.include||(U&&U.include),Q={hash:{},data:T},S?S.call(U,((R=((R=(U&&U.meta)),R==null||R===false?R:R.options)),R==null||R===false?R:R.detail_rating),Q):G.call(U,"include",((R=((R=(U&&U.meta)),R==null||R===false?R:R.options)),R==null||R===false?R:R.detail_rating),Q));if(R||R===0){return R}else{return""}}function z(T,S){var Q="",R;R=H["if"].call(T,(T&&T.rating),{hash:{},inverse:f.noop,fn:f.program(12,x,S),data:S});if(R||R===0){Q+=R}R=H["if"].call(T,(T&&T.reviews),{hash:{},inverse:f.noop,fn:f.program(14,t,S),data:S});if(R||R===0){Q+=R}return Q}function x(U,T){var R,S,Q;R=(S=H.starRating||(U&&U.starRating),Q={hash:{},data:T},S?S.call(U,(U&&U.rating),Q):G.call(U,"starRating",(U&&U.rating),Q));if(R||R===0){return R}else{return""}}function t(U,T){var R,S,Q;R=(S=H.reviewCount||(U&&U.reviewCount),Q={hash:{},data:T},S?S.call(U,(U&&U.reviews),(U&&U.url),Q):G.call(U,"reviewCount",(U&&U.reviews),(U&&U.url),Q));if(R||R===0){return R}else{return""}}function q(R,Q){return''}function p(V,U){var Q="",S,T,R;Q+='';S=(T=H.priceSymbols||(V&&V.priceSymbols),R={hash:{},data:U},T?T.call(V,(V&&V.price),4,R):G.call(V,"priceSymbols",(V&&V.price),4,R));if(S||S===0){Q+=S}Q+="";return Q}function k(T,S){var Q="",R;Q+='

      ';R=H.each.call(T,(T&&T.address_lines),{hash:{},inverse:f.noop,fn:f.program(21,i,S),data:S});if(R||R===0){Q+=R}Q+="

      ";return Q}function i(S,R){var Q="";Q+=M((typeof S===m?S.apply(S):S))+"
      ";return Q}function h(S,R){var Q;Q=H["if"].call(S,(S&&S.address),{hash:{},inverse:f.noop,fn:f.program(24,g,R),data:R});if(Q||Q===0){return Q}else{return""}}function g(U,T){var Q="",R,S;Q+='

      ';if(S=H.address){R=S.call(U,{hash:{},data:T})}else{S=(U&&U.address);R=typeof S===m?S.call(U,{hash:{},data:T}):S}Q+=M(R)+"

      ";return Q}function e(U,T){var Q="",R,S;Q+='';if(S=H.phone){R=S.call(U,{hash:{},data:T})}else{S=(U&&U.phone);R=typeof S===m?S.call(U,{hash:{},data:T}):S}Q+=M(R)+"";return Q}function c(V,U){var Q="",S,T,R;Q+='
      ';S=(T=H.l||(V&&V.l),R={hash:{},data:U},T?T.call(V,"Today",R):G.call(V,"l","Today",R));if(S||S===0){Q+=S}Q+=':';S=H["if"].call(V,(V&&V.hoursToday),{hash:{},inverse:f.program(33,N,U),fn:f.program(31,O,U),data:U});if(S||S===0){Q+=S}Q+="
      ";return Q}function b(R,Q){return"hours-closed"}function O(T,S){var Q,R;if(R=H.hoursToday){Q=R.call(T,{hash:{},data:S})}else{R=(T&&T.hoursToday);Q=typeof R===m?R.call(T,{hash:{},data:S}):R}return M(Q)}function N(U,T){var R,S,Q;R=(S=H.l||(U&&U.l),Q={hash:{},data:T},S?S.call(U,"Closed",Q):G.call(U,"l","Closed",Q));if(R||R===0){return R}else{return""}}function L(R,Q){return"tile__actions--small"}function K(V,U){var Q="",S,T,R;Q+='';S=(T=H.lp||(V&&V.lp),R={hash:{},data:U},T?T.call(V,"maps_places","Call",R):G.call(V,"lp","maps_places","Call",R));if(S||S===0){Q+=S}Q+="";return Q}function J(V,U){var Q="",S,T,R;Q+='";return Q}function C(V,U){var Q="",S,T,R;Q+='
      X';R={hash:{},inverse:f.noop,fn:f.program(42,B,U),data:U};if(T=H.hours){S=T.call(V,R)}else{T=(V&&V.hours);S=typeof T===m?T.call(V,R):T}if(!H.hours){S=v.call(V,S,{hash:{},inverse:f.noop,fn:f.program(42,B,U),data:U})}if(S||S===0){Q+=S}Q+="
      ";return Q}function B(U,T){var Q="",R,S;Q+="';if(S=H.day){R=S.call(U,{hash:{},data:T})}else{S=(U&&U.day);R=typeof S===m?S.call(U,{hash:{},data:T}):S}Q+=M(R)+':';if(S=H.hours){R=S.call(U,{hash:{},data:T})}else{S=(U&&U.hours);R=typeof S===m?S.call(U,{hash:{},data:T}):S}Q+=M(R)+"";return Q}function y(R,Q){return'class="tile__hours-full__current"'}n+='
      ';s=H["if"].call(a,(a&&a.image),{hash:{},inverse:f.program(3,E,P),fn:f.program(1,F,P),data:P});if(s||s===0){n+=s}n+="";s=(j=H.and||(a&&a.and),o={hash:{},inverse:f.noop,fn:f.program(5,D,P),data:P},j?j.call(a,((s=(a&&a.meta)),s==null||s===false?s:s.sourceName),(a&&a.url),o):G.call(a,"and",((s=(a&&a.meta)),s==null||s===false?s:s.sourceName),(a&&a.url),o));if(s||s===0){n+=s}n+='

      ';if(j=H.name){s=j.call(a,{hash:{},data:P})}else{j=(a&&a.name);s=typeof j===m?j.call(a,{hash:{},data:P}):j}n+=M(s)+'

      ';s=H["if"].call(a,((s=((s=(a&&a.meta)),s==null||s===false?s:s.options)),s==null||s===false?s:s.detail_rating),{hash:{},inverse:f.program(11,z,P),fn:f.program(9,u,P),data:P});if(s||s===0){n+=s}n+="
      ";s=(j=H.and||(a&&a.and),o={hash:{},inverse:f.noop,fn:f.program(16,q,P),data:P},j?j.call(a,(a&&a.rating),(a&&a.price),o):G.call(a,"and",(a&&a.rating),(a&&a.price),o));if(s||s===0){n+=s}s=H["if"].call(a,(a&&a.price),{hash:{},inverse:f.noop,fn:f.program(18,p,P),data:P});if(s||s===0){n+=s}n+="
      ";s=H["if"].call(a,(a&&a.address_lines),{hash:{},inverse:f.program(23,h,P),fn:f.program(20,k,P),data:P});if(s||s===0){n+=s}s=H["if"].call(a,(a&&a.phone),{hash:{},inverse:f.noop,fn:f.program(26,e,P),data:P});if(s||s===0){n+=s}s=H["if"].call(a,(a&&a.hours),{hash:{},inverse:f.noop,fn:f.program(28,c,P),data:P});if(s||s===0){n+=s}n+='
      ';s=H["if"].call(a,(a&&a.canMakePhoneCalls),{hash:{},inverse:f.noop,fn:f.program(37,K,P),data:P});if(s||s===0){n+=s}s=H["if"].call(a,(a&&a.showDirections),{hash:{},inverse:f.noop,fn:f.program(39,J,P),data:P});if(s||s===0){n+=s}n+="
      ";s=H["if"].call(a,(a&&a.hours),{hash:{},inverse:f.noop,fn:f.program(41,C,P),data:P});if(s||s===0){n+=s}n+="
      ";return n});this["DDG"]["templates"]["products_detail"]=Handlebars.template(function(g,t,r,m,A){this.compilerInfo=[4,">= 1.0.0"];r=this.merge(r,g.helpers);A=A||{};var s="",h,a,e,c="function",b=this.escapeExpression,q=r.helperMissing,p=this;function o(G,F){var B="",D,E,C;B+='
      ';return B}function n(F,E){var C,D,B;C=(D=r.include||(F&&F.include),B={hash:{},data:E},D?D.call(F,((C=((C=(F&&F.meta)),C==null||C===false?C:C.options)),C==null||C===false?C:C.subtitle_content),B):q.call(F,"include",((C=((C=(F&&F.meta)),C==null||C===false?C:C.options)),C==null||C===false?C:C.subtitle_content),B));if(C||C===0){return C}else{return""}}function k(G,F){var B="",D,E,C;if(E=r.subtitle){D=E.call(G,{hash:{},data:F})}else{E=(G&&G.subtitle);D=typeof E===c?E.call(G,{hash:{},data:F}):E}B+=b(D);D=r["if"].call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.rating),{hash:{},inverse:p.noop,fn:p.program(6,j,F),data:F});if(D||D===0){B+=D}D=(E=r.and||(G&&G.and),C={hash:{},inverse:p.noop,fn:p.program(9,f,F),data:F},E?E.call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.price),((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.rating),(G&&G.price),C):q.call(G,"and",((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.price),((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.rating),(G&&G.price),C));if(D||D===0){B+=D}D=(E=r.and||(G&&G.and),C={hash:{},inverse:p.noop,fn:p.program(11,z,F),data:F},E?E.call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.price),(G&&G.price),C):q.call(G,"and",((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.price),(G&&G.price),C));if(D||D===0){B+=D}D=(E=r.and||(G&&G.and),C={hash:{},inverse:p.noop,fn:p.program(9,f,F),data:F},E?E.call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.price),((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.brand),(G&&G.price),(G&&G.brand),C):q.call(G,"and",((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.price),((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.brand),(G&&G.price),(G&&G.brand),C));if(D||D===0){B+=D}D=(E=r.and||(G&&G.and),C={hash:{},inverse:p.noop,fn:p.program(9,f,F),data:F},E?E.call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.rating),((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.brand),(G&&G.brand),C):q.call(G,"and",((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.rating),((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.brand),(G&&G.brand),C));if(D||D===0){B+=D}D=(E=r.and||(G&&G.and),C={hash:{},inverse:p.noop,fn:p.program(13,y,F),data:F},E?E.call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.brand),(G&&G.brand),C):q.call(G,"and",((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.brand),(G&&G.brand),C));if(D||D===0){B+=D}return B}function j(G,F){var B="",D,E,C;B+='';D=(E=r.starsAndReviews||(G&&G.starsAndReviews),C={hash:{},data:F},E?E.call(G,(G&&G.rating),(G&&G.reviewCount),(G&&G.url),((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.hideReviewText),C):q.call(G,"starsAndReviews",(G&&G.rating),(G&&G.reviewCount),(G&&G.url),((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.hideReviewText),C));if(D||D===0){B+=D}B+="";return B}function i(C,B){return"sep--before"}function f(C,B){return''}function z(F,E){var B="",C,D;B+='';if(D=r.price){C=D.call(F,{hash:{},data:E})}else{D=(F&&F.price);C=typeof D===c?D.call(F,{hash:{},data:E}):D}B+=b(C)+"";return B}function y(G,F){var B="",D,E,C;B+='';D=(E=r.lp||(G&&G.lp),C={hash:{},data:F},E?E.call(G,"made_by","by %s",(G&&G.brand),C):q.call(G,"lp","made_by","by %s",(G&&G.brand),C));if(D||D===0){B+=D}B+="";return B}function x(F,E){var C,D,B;C=(D=r.include||(F&&F.include),B={hash:{},data:E},D?D.call(F,((C=((C=(F&&F.meta)),C==null||C===false?C:C.options)),C==null||C===false?C:C.description_content),B):q.call(F,"include",((C=((C=(F&&F.meta)),C==null||C===false?C:C.options)),C==null||C===false?C:C.description_content),B));if(C||C===0){return C}else{return""}}function v(F,E){var C,D,B;C=(D=r.ellipsis||(F&&F.ellipsis),B={hash:{},data:E},D?D.call(F,(F&&F["abstract"]),400,B):q.call(F,"ellipsis",(F&&F["abstract"]),400,B));if(C||C===0){return C}else{return""}}function u(G,F){var B="",D,E,C;B+='
      ';D=(E=r.include||(G&&G.include),C={hash:{},data:F},E?E.call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.buy),C):q.call(G,"include",((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.buy),C));if(D||D===0){B+=D}B+="
      ";return B}s+='
      ';h=r["if"].call(t,(t&&t.img),{hash:{},inverse:p.noop,fn:p.program(1,o,A),data:A});if(h||h===0){s+=h}s+='
      ';h=(a=r.formatTitle||(t&&t.formatTitle),e={hash:{el:("h5"),className:("c-product__title"),classNameSec:(((h=((h=(t&&t.meta)),h==null||h===false?h:h.elClass)),h==null||h===false?h:h.productTitle)),noSub:("true"),ellipsis:(120),href:((t&&t.url))},data:A},a?a.call(t,(t&&t.heading),e):q.call(t,"formatTitle",(t&&t.heading),e));if(h||h===0){s+=h}s+='

      ';h=r["if"].call(t,((h=((h=(t&&t.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.subtitle_content),{hash:{},inverse:p.program(5,k,A),fn:p.program(3,n,A),data:A});if(h||h===0){s+=h}s+='

      ';h=r["if"].call(t,((h=((h=(t&&t.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.description_content),{hash:{},inverse:p.program(17,v,A),fn:p.program(15,x,A),data:A});if(h||h===0){s+=h}s+="
      ";h=r["if"].call(t,((h=((h=(t&&t.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.buy),{hash:{},inverse:p.noop,fn:p.program(19,u,A),data:A});if(h||h===0){s+=h}s+="
      ";return s});this["DDG"]["templates"]["spice_detail"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='
      ';a=(e=b.include||(j&&j.include),k={hash:{},data:g},e?e.call(j,(j&&j.content),k):i.call(j,"include",(j&&j.content),k));if(a||a===0){f+=a}a=(e=b.moreAt||(j&&j.moreAt),k={hash:{className:("zci__more-at")},data:g},e?e.call(j,(j&&j.source_url),(j&&j.source_name),k):i.call(j,"moreAt",(j&&j.source_url),(j&&j.source_name),k));if(a||a===0){f+=a}f+="
      ";return f});this["DDG"]["templates"]["text_detail"]=Handlebars.template(function(f,t,r,m,A){this.compilerInfo=[4,">= 1.0.0"];r=this.merge(r,f.helpers);A=A||{};var s="",h,q=r.helperMissing,a=this.escapeExpression,b="function",p=this;function o(D,C){return"has-aux"}function n(G,F){var C="",E,D;C+='
      ';return C}function k(G,F){var D,E,C;D=(E=r.include||(G&&G.include),C={hash:{},data:F},E?E.call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.title_content),C):q.call(G,"include",((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.title_content),C));if(D||D===0){return D}else{return""}}function j(E,D){var C;C=r["if"].call(E,(E&&E.title),{hash:{},inverse:p.noop,fn:p.program(8,g,D),data:D});if(C||C===0){return C}else{return""}}function g(G,F){var C="",D,E;C+='

      ';if(E=r.title){D=E.call(G,{hash:{},data:F})}else{E=(G&&G.title);D=typeof E===b?E.call(G,{hash:{},data:F}):E}C+=a(D)+"

      ";return C}function B(G,F){var D,E,C;D=(E=r.include||(G&&G.include),C={hash:{},data:F},E?E.call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.subtitle_content),C):q.call(G,"include",((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.subtitle_content),C));if(D||D===0){return D}else{return""}}function z(H,G){var C="",E,F,D;C+='

      ';E=(F=r.formatSubtitle||(H&&H.formatSubtitle),D={hash:{},data:G},F?F.call(H,(H&&H.subtitle),D):q.call(H,"formatSubtitle",(H&&H.subtitle),D));if(E||E===0){C+=E}C+="

      ";return C}function y(H,G){var C="",E,F,D;C+='
      ';E=(F=r.include||(H&&H.include),D={hash:{},data:G},F?F.call(H,((E=((E=(H&&H.meta)),E==null||E===false?E:E.options)),E==null||E===false?E:E.content),D):q.call(H,"include",((E=((E=(H&&H.meta)),E==null||E===false?E:E.options)),E==null||E===false?E:E.content),D));if(E||E===0){C+=E}C+="
      ";return C}function x(D,C){return"chomp js-ellipsis"}function v(E,D){var C;C=r["if"].call(E,(E&&E.description),{hash:{},inverse:p.noop,fn:p.program(18,u,D),data:D});if(C||C===0){return C}else{return""}}function u(G,F){var C="",D,E;C+='
      ';if(E=r.description){D=E.call(G,{hash:{},data:F})}else{E=(G&&G.description);D=typeof E===b?E.call(G,{hash:{},data:F}):E}C+=a(D)+"
      ";return C}function i(G,F){var D,E,C;D=(E=r.include||(G&&G.include),C={hash:{className:("c-base__link"),sep:(((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.moreAt))},data:F},E?E.call(G,"chomp_link",C):q.call(G,"include","chomp_link",C));if(D||D===0){return D}else{return""}}function e(G,F){var D,E,C;D=(E=r.moreAt||(G&&G.moreAt),C={hash:{className:("c-base__link")},data:F},E?E.call(G,(G&&G.meta),"none",C):q.call(G,"moreAt",(G&&G.meta),"none",C));if(D||D===0){return D}else{return""}}function c(H,G){var C="",E,F,D;C+='';E=(F=r.formatSubtitle||(H&&H.formatSubtitle),D={hash:{},data:G},F?F.call(H,((E=((E=(H&&H.meta)),E==null||E===false?E:E.options)),E==null||E===false?E:E.moreText),D):q.call(H,"formatSubtitle",((E=((E=(H&&H.meta)),E==null||E===false?E:E.options)),E==null||E===false?E:E.moreText),D));if(E||E===0){C+=E}C+="";return C}s+='
      ';h=r["if"].call(t,(t&&t.image),{hash:{},inverse:p.noop,fn:p.program(3,n,A),data:A});if(h||h===0){s+=h}h=r["if"].call(t,((h=((h=(t&&t.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.title_content),{hash:{},inverse:p.program(7,j,A),fn:p.program(5,k,A),data:A});if(h||h===0){s+=h}h=r["if"].call(t,((h=((h=(t&&t.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.subtitle_content),{hash:{},inverse:p.noop,fn:p.program(10,B,A),data:A});if(h||h===0){s+=h}h=r["if"].call(t,(t&&t.subtitle),{hash:{},inverse:p.noop,fn:p.program(12,z,A),data:A});if(h||h===0){s+=h}h=r["if"].call(t,((h=((h=(t&&t.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.content),{hash:{},inverse:p.program(17,v,A),fn:p.program(14,y,A),data:A});if(h||h===0){s+=h}s+='
      ";return s});this["DDG"]["templates"]["audio_item"]=Handlebars.template(function(g,s,q,k,t){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,g.helpers);t=t||{};var r="",h,a,e,c="function",b=this.escapeExpression,p=q.helperMissing,o=this;function n(y,x){var u,v;if(v=q.elClass){u=v.call(y,{hash:{},data:x})}else{v=(y&&y.elClass);u=typeof v===c?v.call(y,{hash:{},data:x}):v}return b(u)}function m(x,v){var u;return b(((u=((u=((u=(x&&x.meta)),u==null||u===false?u:u.elClass)),u==null||u===false?u:u.tile)),typeof u===c?u.apply(x):u))}function j(A,z){var u="",x,y,v;u+='';return u}function i(v,u){return'
      '}function f(A,z){var u="",x,y,v;u+='";return u}r+='
      ';h=q["if"].call(s,(s&&s.image),{hash:{},inverse:o.program(7,i,t),fn:o.program(5,j,t),data:t});if(h||h===0){r+=h}r+='

      '+b((a=q.ellipsis||(s&&s.ellipsis),e={hash:{},data:t},a?a.call(s,(s&&s.title),45,e):p.call(s,"ellipsis",(s&&s.title),45,e)))+"

      ";h=q["if"].call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.footer),{hash:{},inverse:o.noop,fn:o.program(9,f,t),data:t});if(h||h===0){r+=h}r+="
      ";return r});this["DDG"]["templates"]["base_expanding_item"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,r,h="function",j=this.escapeExpression,q=this,n=e.helperMissing;function c(v,u){var s,t;if(t=e.elClass){s=t.call(v,{hash:{},data:u})}else{t=(v&&v.elClass);s=typeof t===h?t.call(v,{hash:{},data:u}):t}return j(s)}function a(u,t){var s;return j(((s=((s=((s=(u&&u.meta)),s==null||s===false?s:s.elClass)),s==null||s===false?s:s.tile)),typeof s===h?s.apply(u):s))}function p(v,u){var s="",t;s+='';return s}i+='
      ';b=(g=e.include||(o&&o.include),r={hash:{},data:k},g?g.call(o,((b=((b=(o&&o.meta)),b==null||b===false?b:b.options)),b==null||b===false?b:b.content),r):n.call(o,"include",((b=((b=(o&&o.meta)),b==null||b===false?b:b.options)),b==null||b===false?b:b.content),r));if(b||b===0){i+=b}b=e["if"].call(o,(o&&o.canExpand),{hash:{},inverse:q.noop,fn:q.program(5,p,k),data:k});if(b||b===0){i+=b}i+="
      ";return i});this["DDG"]["templates"]["base_flipping_item"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,q,h="function",j=this.escapeExpression,p=this,n=e.helperMissing;function c(u,t){var r,s;if(s=e.elClass){r=s.call(u,{hash:{},data:t})}else{s=(u&&u.elClass);r=typeof s===h?s.call(u,{hash:{},data:t}):s}return j(r)}function a(t,s){var r;return j(((r=((r=((r=(t&&t.meta)),r==null||r===false?r:r.elClass)),r==null||r===false?r:r.tile)),typeof r===h?r.apply(t):r))}i+='
      ';b=(g=e.include||(o&&o.include),q={hash:{},data:k},g?g.call(o,((b=((b=(o&&o.meta)),b==null||b===false?b:b.options)),b==null||b===false?b:b.front_content),q):n.call(o,"include",((b=((b=(o&&o.meta)),b==null||b===false?b:b.options)),b==null||b===false?b:b.front_content),q));if(b||b===0){i+=b}i+='
      ';b=(g=e.include||(o&&o.include),q={hash:{},data:k},g?g.call(o,((b=((b=(o&&o.meta)),b==null||b===false?b:b.options)),b==null||b===false?b:b.back_content),q):n.call(o,"include",((b=((b=(o&&o.meta)),b==null||b===false?b:b.options)),b==null||b===false?b:b.back_content),q));if(b||b===0){i+=b}i+="
      ";return i});this["DDG"]["templates"]["base_item"]=Handlebars.template(function(c,q,o,h,s){this.compilerInfo=[4,">= 1.0.0"];o=this.merge(o,c.helpers);s=s||{};var p="",f,b="function",a=this.escapeExpression,m=this,n=o.helperMissing;function k(y,x){var u,v;if(v=o.elClass){u=v.call(y,{hash:{},data:x})}else{v=(y&&y.elClass);u=typeof v===b?v.call(y,{hash:{},data:x}):v}return a(u)}function j(x,v){var u;u=o["if"].call(x,((u=((u=(x&&x.meta)),u==null||u===false?u:u.elClass)),u==null||u===false?u:u.tile),{hash:{},inverse:m.program(6,g,v),fn:m.program(4,i,v),data:v});if(u||u===0){return u}else{return""}}function i(x,v){var u;return a(((u=((u=((u=(x&&x.meta)),u==null||u===false?u:u.elClass)),u==null||u===false?u:u.tile)),typeof u===b?u.apply(x):u))}function g(v,u){return"tile--c"}function e(z,y){var u="",v,x;u+='data-link="';if(x=o.url){v=x.call(z,{hash:{},data:y})}else{x=(z&&z.url);v=typeof x===b?x.call(z,{hash:{},data:y}):x}u+=a(v)+'"';return u}function t(z,y){var v,x,u;v=(x=o.include||(z&&z.include),u={hash:{},data:y},x?x.call(z,((v=((v=(z&&z.meta)),v==null||v===false?v:v.options)),v==null||v===false?v:v.tile_content),u):n.call(z,"include",((v=((v=(z&&z.meta)),v==null||v===false?v:v.options)),v==null||v===false?v:v.tile_content),u));if(v||v===0){return v}else{return""}}function r(z,y){var v,x,u;v=(x=o.include||(z&&z.include),u={hash:{},data:y},x?x.call(z,((v=((v=(z&&z.meta)),v==null||v===false?v:v.options)),v==null||v===false?v:v.content),u):n.call(z,"include",((v=((v=(z&&z.meta)),v==null||v===false?v:v.options)),v==null||v===false?v:v.content),u));if(v||v===0){return v}else{return""}}p+='
      ';f=o["if"].call(q,((f=((f=(q&&q.meta)),f==null||f===false?f:f.options)),f==null||f===false?f:f.tile_content),{hash:{},inverse:m.program(12,r,s),fn:m.program(10,t,s),data:s});if(f||f===0){p+=f}p+="
      ";return p});this["DDG"]["templates"]["basic_flipping_item"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",b,g="function",i=this.escapeExpression,m=e.helperMissing,p=this;function c(t,s){var q,r;if(r=e.elClass){q=r.call(t,{hash:{},data:s})}else{r=(t&&t.elClass);q=typeof r===g?r.call(t,{hash:{},data:s}):r}return i(q)}function a(s,r){var q;return i(((q=((q=((q=(s&&s.meta)),q==null||q===false?q:q.elClass)),q==null||q===false?q:q.tile)),typeof q===g?q.apply(s):q))}function o(v,t,u){var r,s,q;r=(s=e.include||(u&&u.include),q={hash:{meta:((u&&u.meta)),num:((u&&u.num))},data:t},s?s.call(v,"tile_body",q):m.call(v,"include","tile_body",q));if(r||r===0){return r}else{return""}}h+='
      ';b=e["with"].call(n,(n&&n.data_front),{hash:{},inverse:p.noop,fn:p.programWithDepth(5,o,j,n),data:j});if(b||b===0){h+=b}h+='
      ';b=e["with"].call(n,(n&&n.data_back),{hash:{},inverse:p.noop,fn:p.programWithDepth(5,o,j,n),data:j});if(b||b===0){h+=b}h+="
      ";return h});this["DDG"]["templates"]["basic_image_item"]=Handlebars.template(function(i,x,u,o,D){this.compilerInfo=[4,">= 1.0.0"];u=this.merge(u,i.helpers);D=D||{};var v="",k,a,f,c="function",b=this.escapeExpression,s=this,t=u.helperMissing;function r(H,G){var E,F;if(F=u.elClass){E=F.call(H,{hash:{},data:G})}else{F=(H&&H.elClass);E=typeof F===c?F.call(H,{hash:{},data:G}):F}return b(E)}function q(G,F){var E;E=u["if"].call(G,((E=((E=(G&&G.meta)),E==null||E===false?E:E.elClass)),E==null||E===false?E:E.tile),{hash:{},inverse:s.program(6,n,F),fn:s.program(4,p,F),data:F});if(E||E===0){return E}else{return""}}function p(G,F){var E;return b(((E=((E=((E=(G&&G.meta)),E==null||E===false?E:E.elClass)),E==null||E===false?E:E.tile)),typeof E===c?E.apply(G):E))}function n(F,E){return"tile--c"}function j(I,H){var E="",F,G;E+=' data-link="';if(G=u.url){F=G.call(I,{hash:{},data:H})}else{G=(I&&I.url);F=typeof G===c?G.call(I,{hash:{},data:H}):G}E+=b(F)+'"';return E}function C(F,E){return"tile__title--1 with-sub"}function B(F,E){return"tile__sub--2"}function A(I,H){var E="",F,G;E+='';return E}function z(F,E){return""}function y(I,H){var E="",G,F;E+='

      '+b((G=u.ellipsis||(I&&I.ellipsis),F={hash:{},data:H},G?G.call(I,(I&&I.description),56,F):t.call(I,"ellipsis",(I&&I.description),56,F)))+"

      ";return E}function m(G,F){var E;return b(((E=((E=((E=(G&&G.meta)),E==null||E===false?E:E.elClass)),E==null||E===false?E:E.tileRating)),typeof E===c?E.apply(G):E))}function h(F,E){return"tile__rating--right"}function g(I,H){var F,G,E;F=(G=u.starRating||(I&&I.starRating),E={hash:{},data:H},G?G.call(I,(I&&I.rating),E):t.call(I,"starRating",(I&&I.rating),E));if(F||F===0){return F}else{return""}}function e(I,H){var E="",G,F;E+=''+b((G=u.ellipsis||(I&&I.ellipsis),F={hash:{},data:H},G?G.call(I,(I&&I.ratingText),19,F):t.call(I,"ellipsis",(I&&I.ratingText),19,F)))+"";return E}v+='
      ';if(a=u.title){k=a.call(x,{hash:{},data:D})}else{a=(x&&x.title);k=typeof a===c?a.call(x,{hash:{},data:D}):a}v+=b(k)+'
      ';k=u["if"].call(x,(x&&x.url),{hash:{},inverse:s.noop,fn:s.program(14,A,D),data:D});if(k||k===0){v+=k}v+=b((a=u.ellipsis||(x&&x.ellipsis),f={hash:{},data:D},a?a.call(x,(x&&x.title),55,f):t.call(x,"ellipsis",(x&&x.title),55,f)));k=u["if"].call(x,(x&&x.url),{hash:{},inverse:s.noop,fn:s.program(16,z,D),data:D});if(k||k===0){v+=k}v+="
      ";k=u["if"].call(x,(x&&x.description),{hash:{},inverse:s.noop,fn:s.program(18,y,D),data:D});if(k||k===0){v+=k}v+='
      ';k=u["if"].call(x,((k=((k=(x&&x.meta)),k==null||k===false?k:k.options)),k==null||k===false?k:k.rating),{hash:{},inverse:s.noop,fn:s.program(24,g,D),data:D});if(k||k===0){v+=k}k=u["if"].call(x,((k=((k=(x&&x.meta)),k==null||k===false?k:k.options)),k==null||k===false?k:k.ratingText),{hash:{},inverse:s.noop,fn:s.program(26,e,D),data:D});if(k||k===0){v+=k}v+="
      ";return v});this["DDG"]["templates"]["categories_item"]=Handlebars.template(function(e,n,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,p,g="function",i=this.escapeExpression,m=c.helperMissing,o=this;function b(t,s){var q="",r;q+='';return q}h+='
      ';a=c["if"].call(n,((a=(n&&n.Icon)),a==null||a===false?a:a.URL),{hash:{},inverse:o.noop,fn:o.program(1,b,j),data:j});if(a||a===0){h+=a}a=(f=c.formatTitle||(n&&n.formatTitle),p={hash:{el:("h4"),className:("tile__title"),href:("FirstURL"),parseFirst:("true"),ellipsis:(100)},data:j},f?f.call(n,(n&&n.Result),p):m.call(n,"formatTitle",(n&&n.Result),p));if(a||a===0){h+=a}h+='
      ';a=(f=c.ellipsis||(n&&n.ellipsis),p={hash:{parseFirst:("true")},data:j},f?f.call(n,(n&&n.Result),95,p):m.call(n,"ellipsis",(n&&n.Result),95,p));if(a||a===0){h+=a}h+="
      ";return h});this["DDG"]["templates"]["images_item"]=Handlebars.template(function(e,k,c,i,h){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);h=h||{};var a,f="function",g=this.escapeExpression,j=c.helperMissing,m=this;function b(s,r){var n="",p,q,o;n+='
      ';if(q=c.title){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.title);p=typeof q===f?q.call(s,{hash:{},data:r}):q}n+=g(p)+'
      +';if(q=c.width){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.width);p=typeof q===f?q.call(s,{hash:{},data:r}):q}n+=g(p)+" × ";if(q=c.height){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.height);p=typeof q===f?q.call(s,{hash:{},data:r}):q}n+=g(p)+"
      ";return n}a=c.unless.call(k,(k&&k.n),{hash:{},inverse:m.noop,fn:m.program(1,b,h),data:h});if(a||a===0){return a}else{return""}});this["DDG"]["templates"]["meanings_item"]=Handlebars.template(function(f,s,q,k,t){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);t=t||{};var r="",h,a,e,p=q.helperMissing,b=this.escapeExpression,c="function",o=this;function n(A,z){var u="",x,y,v;u+="js-tile--"+b((y=q.trim||(A&&A.trim),v={hash:{},data:z},y?y.call(A,((x=(A&&A.topic)),x==null||x===false?x:x.id),v):p.call(A,"trim",((x=(A&&A.topic)),x==null||x===false?x:x.id),v)));return u}function m(A,z){var u="",x,y,v;u+='data-anchor="'+b((y=q.stripNonAlpha||(A&&A.stripNonAlpha),v={hash:{},data:z},y?y.call(A,((x=(A&&A.topic)),x==null||x===false?x:x.id),v):p.call(A,"stripNonAlpha",((x=(A&&A.topic)),x==null||x===false?x:x.id),v)))+'"';return u}function j(y,x){var u="",v;u+='';return u}function i(y,x){var u="",v;u+='";return u}function g(A,z){var u="",x,y,v;u+='data-type="'+b((y=q.stripNonAlpha||(A&&A.stripNonAlpha),v={hash:{},data:z},y?y.call(A,((x=(A&&A.topic)),x==null||x===false?x:x.id),v):p.call(A,"stripNonAlpha",((x=(A&&A.topic)),x==null||x===false?x:x.id),v)))+'"';return u}r+='
      ';h=q["if"].call(s,((h=(s&&s.Icon)),h==null||h===false?h:h.URL),{hash:{},inverse:o.program(7,i,t),fn:o.program(5,j,t),data:t});if(h||h===0){r+=h}h=(a=q.formatTitle||(s&&s.formatTitle),e={hash:{el:("h4"),className:("tile__title"),href:("FirstURL"),parseFirst:("true"),ellipsis:(100)},data:t},a?a.call(s,(s&&s.Result),e):p.call(s,"formatTitle",(s&&s.Result),e));if(h||h===0){r+=h}r+='
      ';h=(a=q.ellipsis||(s&&s.ellipsis),e={hash:{parseFirst:("true")},data:t},a?a.call(s,(s&&s.Result),95,e):p.call(s,"ellipsis",(s&&s.Result),95,e));if(h||h===0){r+=h}r+="
      ";return r});this["DDG"]["templates"]["media_item"]=Handlebars.template(function(f,s,q,j,y){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);y=y||{};var r="",h,a,e,c="function",b=this.escapeExpression,o=this,p=q.helperMissing;function n(C,B){var z,A;if(A=q.elClass){z=A.call(C,{hash:{},data:B})}else{A=(C&&C.elClass);z=typeof A===c?A.call(C,{hash:{},data:B}):A}return b(z)}function m(B,A){var z;z=q["if"].call(B,((z=((z=(B&&B.meta)),z==null||z===false?z:z.elClass)),z==null||z===false?z:z.tile),{hash:{},inverse:o.program(6,i,A),fn:o.program(4,k,A),data:A});if(z||z===0){return z}else{return""}}function k(B,A){var z;return b(((z=((z=((z=(B&&B.meta)),z==null||z===false?z:z.elClass)),z==null||z===false?z:z.tile)),typeof z===c?z.apply(B):z))}function i(A,z){return"tile--c"}function g(D,C){var z="",A,B;z+='data-link="';if(B=q.url){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.url);A=typeof B===c?B.call(D,{hash:{},data:C}):B}z+=b(A)+'"';return z}function x(A,z){return"has-foot"}function v(D,C){var A,B,z;A=(B=q.include||(D&&D.include),z={hash:{},data:C},B?B.call(D,"tile_snippet",z):p.call(D,"include","tile_snippet",z));if(A||A===0){return A}else{return""}}function u(E,D){var z="",B,C,A;z+='
      ';B=(C=q.include||(E&&E.include),A={hash:{},data:D},C?C.call(E,((B=((B=(E&&E.meta)),B==null||B===false?B:B.options)),B==null||B===false?B:B.footer),A):p.call(E,"include",((B=((B=(E&&E.meta)),B==null||B===false?B:B.options)),B==null||B===false?B:B.footer),A));if(B||B===0){z+=B}z+="
      ";return z}function t(D,C){var A,B,z;A=(B=q.include||(D&&D.include),z={hash:{},data:C},B?B.call(D,"date_badge",z):p.call(D,"include","date_badge",z));if(A||A===0){return A}else{return""}}r+='
      ';if(a=q.title){h=a.call(s,{hash:{},data:y})}else{a=(s&&s.title);h=typeof a===c?a.call(s,{hash:{},data:y}):a}r+=b(h)+'
      ';h=(a=q.include||(s&&s.include),e={hash:{},data:y},a?a.call(s,"tile_titles",e):p.call(s,"include","tile_titles",e));if(h||h===0){r+=h}h=q["if"].call(s,(s&&s.description),{hash:{},inverse:o.noop,fn:o.program(12,v,y),data:y});if(h||h===0){r+=h}h=q["if"].call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.footer),{hash:{},inverse:o.noop,fn:o.program(14,u,y),data:y});if(h||h===0){r+=h}h=q["if"].call(s,(s&&s.dateBadge),{hash:{},inverse:o.noop,fn:o.program(16,t,y),data:y});if(h||h===0){r+=h}r+="
      ";return r});this["DDG"]["templates"]["nlp_item"]=Handlebars.template(function(c,m,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,n,f="function",h=this.escapeExpression,k=b.helperMissing;g+='
      ';if(e=b.heading){a=e.call(m,{hash:{},data:i})}else{e=(m&&m.heading);a=typeof e===f?e.call(m,{hash:{},data:i}):e}if(a||a===0){g+=a}g+='
      ';if(e=b["abstract"]){a=e.call(m,{hash:{},data:i})}else{e=(m&&m["abstract"]);a=typeof e===f?e.call(m,{hash:{},data:i}):e}if(a||a===0){g+=a}g+='
      ';a=(e=b.moreAt||(m&&m.moreAt),n={hash:{className:("tile__more-link")},data:i},e?e.call(m,(m&&m.url),(m&&m.source),n):k.call(m,"moreAt",(m&&m.url),(m&&m.source),n));if(a||a===0){g+=a}g+="
      ";return g});this["DDG"]["templates"]["places_item"]=Handlebars.template(function(m,z,x,r,F){this.compilerInfo=[4,">= 1.0.0"];x=this.merge(x,m.helpers);F=F||{};var y="",n,a,g,e="function",c=this.escapeExpression,v=x.helperMissing,u=this;function t(J,I){var G,H;if(H=x.elClass){G=H.call(J,{hash:{},data:I})}else{H=(J&&J.elClass);G=typeof H===e?H.call(J,{hash:{},data:I}):H}return c(G)}function s(I,H){var G;return c(((G=((G=((G=(I&&I.meta)),G==null||G===false?G:G.elClass)),G==null||G===false?G:G.tile)),typeof G===e?G.apply(I):G))}function q(L,K){var G="",I,J,H;G+='
      ';if(J=x.title){I=J.call(L,{hash:{},data:K})}else{J=(L&&L.title);I=typeof J===e?J.call(L,{hash:{},data:K}):J}G+=c(I)+'
      ';return G}function p(H,G){return'@'}function k(K,J){var G="",H,I;G+='';if(I=x.neighborhoodOrCity){H=I.call(K,{hash:{},data:J})}else{I=(K&&K.neighborhoodOrCity);H=typeof I===e?I.call(K,{hash:{},data:J}):I}G+=c(H)+"";return G}function E(K,J){var H,I,G;H=(I=x.include||(K&&K.include),G={hash:{},data:J},I?I.call(K,((H=((H=(K&&K.meta)),H==null||H===false?H:H.options)),H==null||H===false?H:H.item_footer),G):v.call(K,"include",((H=((H=(K&&K.meta)),H==null||H===false?H:H.options)),H==null||H===false?H:H.item_footer),G));if(H||H===0){return H}else{return""}}function D(J,I){var G="",H;H=x["if"].call(J,(J&&J.rating),{hash:{},inverse:u.noop,fn:u.program(14,C,I),data:I});if(H||H===0){G+=H}H=x["if"].call(J,(J&&J.reviews),{hash:{},inverse:u.noop,fn:u.program(16,B,I),data:I});if(H||H===0){G+=H}return G}function C(K,J){var H,I,G;H=(I=x.starRating||(K&&K.starRating),G={hash:{},data:J},I?I.call(K,(K&&K.rating),G):v.call(K,"starRating",(K&&K.rating),G));if(H||H===0){return H}else{return""}}function B(K,J){var H,I,G;H=(I=x.reviewCount||(K&&K.reviewCount),G={hash:{},data:J},I?I.call(K,(K&&K.reviews),"",true,G):v.call(K,"reviewCount",(K&&K.reviews),"",true,G));if(H||H===0){return H}else{return""}}function A(H,G){return"has-foot"}function o(L,K){var G="",I,J,H;G+='';I=(J=x.priceSymbols||(L&&L.priceSymbols),H={hash:{},data:K},J?J.call(L,(L&&L.price),4,H):v.call(L,"priceSymbols",(L&&L.price),4,H));if(I||I===0){G+=I}G+="";return G}function j(I,H){var G;G=x["if"].call(I,(I&&I.canMakePhoneCalls),{hash:{},inverse:u.program(25,h,H),fn:u.program(23,i,H),data:H});if(G||G===0){return G}else{return""}}function i(L,K){var G="",I,J,H;G+='
      ';I=(J=x.lp||(L&&L.lp),H={hash:{},data:K},J?J.call(L,"maps_places","Call",H):v.call(L,"lp","maps_places","Call",H));if(I||I===0){G+=I}G+='
      ';if(J=x.phone){I=J.call(L,{hash:{},data:K})}else{J=(L&&L.phone);I=typeof J===e?J.call(L,{hash:{},data:K}):J}G+=c(I)+"
      ";return G}function h(L,K){var G="",I,J,H;G+='
      ';I=(J=x.lp||(L&&L.lp),H={hash:{},data:K},J?J.call(L,"maps_places","Phone Number",H):v.call(L,"lp","maps_places","Phone Number",H));if(I||I===0){G+=I}G+='
      ';if(J=x.phone){I=J.call(L,{hash:{},data:K})}else{J=(L&&L.phone);I=typeof J===e?J.call(L,{hash:{},data:K}):J}G+=c(I)+"
      ";return G}function f(L,K){var G="",I,J,H;G+='";return G}function b(L,K){var G="",I,J,H;G+='
      ';I=(J=x.moreAt||(L&&L.moreAt),H={hash:{dynamicMoreAtText:(5),className:("tile--loc__more"),iconClassName:("tile--loc__more__icon"),iconPlaceholder:("true")},data:K},J?J.call(L,(L&&L.url),((I=(L&&L.meta)),I==null||I===false?I:I.sourceName),H):v.call(L,"moreAt",(L&&L.url),((I=(L&&L.meta)),I==null||I===false?I:I.sourceName),H));if(I||I===0){G+=I}G+="
      ";return G}y+='
      ';n=x["if"].call(z,(z&&z.image),{hash:{},inverse:u.program(7,p,F),fn:u.program(5,q,F),data:F});if(n||n===0){y+=n}y+='
      ';if(a=x.num){n=a.call(z,{hash:{},data:F})}else{a=(z&&z.num);n=typeof a===e?a.call(z,{hash:{},data:F}):a}y+=c(n)+'
      '+c((a=x.ellipsis||(z&&z.ellipsis),g={hash:{},data:F},a?a.call(z,(z&&z.name),33,g):v.call(z,"ellipsis",(z&&z.name),33,g)))+"
      ";n=x["if"].call(z,(z&&z.neighborhoodOrCity),{hash:{},inverse:u.noop,fn:u.program(9,k,F),data:F});if(n||n===0){y+=n}y+='
      ';n=x["if"].call(z,((n=((n=(z&&z.meta)),n==null||n===false?n:n.options)),n==null||n===false?n:n.item_footer),{hash:{},inverse:u.program(13,D,F),fn:u.program(11,E,F),data:F});if(n||n===0){y+=n}y+='
      '+c((a=x.ellipsis||(z&&z.ellipsis),g={hash:{},data:F},a?a.call(z,(z&&z.name),33,g):v.call(z,"ellipsis",(z&&z.name),33,g)))+"
      ";n=x["if"].call(z,(z&&z.price),{hash:{},inverse:u.noop,fn:u.program(20,o,F),data:F});if(n||n===0){y+=n}y+="
      ";n=x["if"].call(z,(z&&z.phone),{hash:{},inverse:u.noop,fn:u.program(22,j,F),data:F});if(n||n===0){y+=n}n=x["if"].call(z,(z&&z.address),{hash:{},inverse:u.noop,fn:u.program(27,f,F),data:F});if(n||n===0){y+=n}n=(a=x.and||(z&&z.and),g={hash:{},inverse:u.noop,fn:u.program(29,b,F),data:F},a?a.call(z,(z&&z.url),((n=(z&&z.meta)),n==null||n===false?n:n.sourceName),g):v.call(z,"and",(z&&z.url),((n=(z&&z.meta)),n==null||n===false?n:n.sourceName),g));if(n||n===0){y+=n}y+="
      ";return y});this["DDG"]["templates"]["products_item"]=Handlebars.template(function(g,u,s,m,B){this.compilerInfo=[4,">= 1.0.0"];s=this.merge(s,g.helpers);B=B||{};var t="",i,a,e,c="function",b=this.escapeExpression,q=this,r=s.helperMissing;function p(F,E){var C,D;if(D=s.elClass){C=D.call(F,{hash:{},data:E})}else{D=(F&&F.elClass);C=typeof D===c?D.call(F,{hash:{},data:E}):D}return b(C)}function o(E,D){var C;C=s["if"].call(E,((C=((C=(E&&E.meta)),C==null||C===false?C:C.elClass)),C==null||C===false?C:C.tile),{hash:{},inverse:q.program(6,k,D),fn:q.program(4,n,D),data:D});if(C||C===0){return C}else{return""}}function n(E,D){var C;return b(((C=((C=((C=(E&&E.meta)),C==null||C===false?C:C.elClass)),C==null||C===false?C:C.tile)),typeof C===c?C.apply(E):C))}function k(D,C){return"tile--c"}function h(D,C){return" has-rating"}function A(G,F){var D,E,C;D=(E=s.include||(G&&G.include),C={hash:{},data:F},E?E.call(G,((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.badge),C):r.call(G,"include",((D=((D=(G&&G.meta)),D==null||D===false?D:D.options)),D==null||D===false?D:D.badge),C));if(D||D===0){return D}else{return""}}function z(G,F){var D,E,C;D=(E=s.formatTitle||(G&&G.formatTitle),C={hash:{el:("h6"),className:("tile__title"),classNameSec:("tile__title--pr"),href:("url"),optSub:(true),ellipsis:(100)},data:F},E?E.call(G,(G&&G.heading),C):r.call(G,"formatTitle",(G&&G.heading),C));if(D||D===0){return D}else{return""}}function y(G,F){var D,E,C;D=(E=s.formatTitle||(G&&G.formatTitle),C={hash:{el:("h6"),className:("tile__title"),classNameSec:("tile__title--pr"),optSub:(true),ellipsis:(100)},data:F},E?E.call(G,(G&&G.heading),C):r.call(G,"formatTitle",(G&&G.heading),C));if(D||D===0){return D}else{return""}}function x(G,F){var C="",D,E;C+='';if(E=s.price){D=E.call(G,{hash:{},data:F})}else{E=(G&&G.price);D=typeof E===c?E.call(G,{hash:{},data:F}):E}C+=b(D)+"";return C}function v(D,C){return''}function j(H,G){var C="",E,F,D;C+='';E=(F=s.lp||(H&&H.lp),D={hash:{},data:G},F?F.call(H,"made_by","by %s",(H&&H.brand),D):r.call(H,"lp","made_by","by %s",(H&&H.brand),D));if(E||E===0){C+=E}C+="";return C}function f(H,G){var C="",E,F,D;C+='
      ';E=(F=s.starsAndReviews||(H&&H.starsAndReviews),D={hash:{},data:G},F?F.call(H,(H&&H.rating),(H&&H.reviewCount),(H&&H.url_review),true,D):r.call(H,"starsAndReviews",(H&&H.rating),(H&&H.reviewCount),(H&&H.url_review),true,D));if(E||E===0){C+=E}C+="
      ";return C}t+='
      ';if(a=s.title){i=a.call(u,{hash:{},data:B})}else{a=(u&&u.title);i=typeof a===c?a.call(u,{hash:{},data:B}):a}t+=b(i)+'';i=(a=s.and||(u&&u.and),e={hash:{},inverse:q.noop,fn:q.program(10,A,B),data:B},a?a.call(u,(u&&u.showBadge),((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.badge),e):r.call(u,"and",(u&&u.showBadge),((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.badge),e));if(i||i===0){t+=i}t+='
      ';i=s["if"].call(u,(u&&u.url),{hash:{},inverse:q.program(14,y,B),fn:q.program(12,z,B),data:B});if(i||i===0){t+=i}t+='
      ';i=(a=s.and||(u&&u.and),e={hash:{},inverse:q.noop,fn:q.program(16,x,B),data:B},a?a.call(u,((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.price),(u&&u.price),e):r.call(u,"and",((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.price),(u&&u.price),e));if(i||i===0){t+=i}i=(a=s.and||(u&&u.and),e={hash:{},inverse:q.noop,fn:q.program(18,v,B),data:B},a?a.call(u,((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.price),((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.brand),(u&&u.price),(u&&u.brand),e):r.call(u,"and",((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.price),((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.brand),(u&&u.price),(u&&u.brand),e));if(i||i===0){t+=i}i=(a=s.and||(u&&u.and),e={hash:{},inverse:q.noop,fn:q.program(20,j,B),data:B},a?a.call(u,((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.brand),(u&&u.brand),e):r.call(u,"and",((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.brand),(u&&u.brand),e));if(i||i===0){t+=i}t+="
      ";i=s["if"].call(u,((i=((i=(u&&u.meta)),i==null||i===false?i:i.options)),i==null||i===false?i:i.rating),{hash:{},inverse:q.noop,fn:q.program(22,f,B),data:B});if(i||i===0){t+=i}t+="
      ";return t});this["DDG"]["templates"]["text_item"]=Handlebars.template(function(f,s,q,j,x){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);x=x||{};var r="",h,a,e,c="function",b=this.escapeExpression,o=this,p=q.helperMissing;function n(B,A){var y,z;if(z=q.elClass){y=z.call(B,{hash:{},data:A})}else{z=(B&&B.elClass);y=typeof z===c?z.call(B,{hash:{},data:A}):z}return b(y)}function m(A,z){var y;y=q["if"].call(A,((y=((y=(A&&A.meta)),y==null||y===false?y:y.elClass)),y==null||y===false?y:y.tile),{hash:{},inverse:o.program(6,i,z),fn:o.program(4,k,z),data:z});if(y||y===0){return y}else{return""}}function k(A,z){var y;return b(((y=((y=((y=(A&&A.meta)),y==null||y===false?y:y.elClass)),y==null||y===false?y:y.tile)),typeof y===c?y.apply(A):y))}function i(z,y){return"tile--c"}function g(C,B){var y="",z,A;y+='data-link="';if(A=q.url){z=A.call(C,{hash:{},data:B})}else{A=(C&&C.url);z=typeof A===c?A.call(C,{hash:{},data:B}):A}y+=b(z)+'"';return y}function v(z,y){return"has-foot"}function u(D,C){var y="",A,B,z;y+='
      ';A=(B=q.include||(D&&D.include),z={hash:{},data:C},B?B.call(D,((A=((A=(D&&D.meta)),A==null||A===false?A:A.options)),A==null||A===false?A:A.footer),z):p.call(D,"include",((A=((A=(D&&D.meta)),A==null||A===false?A:A.options)),A==null||A===false?A:A.footer),z));if(A||A===0){y+=A}y+="
      ";return y}function t(C,B){var z,A,y;z=(A=q.include||(C&&C.include),y={hash:{},data:B},A?A.call(C,"date_badge",y):p.call(C,"include","date_badge",y));if(z||z===0){return z}else{return""}}r+='
      ';h=(a=q.include||(s&&s.include),e={hash:{},data:x},a?a.call(s,"tile_titles",e):p.call(s,"include","tile_titles",e));if(h||h===0){r+=h}r+='
      '+b((a=q.ellipsis||(s&&s.ellipsis),e={hash:{fallback:(100)},data:x},a?a.call(s,(s&&s.description),((h=(s&&s.meta)),h==null||h===false?h:h.snippetChars),e):p.call(s,"ellipsis",(s&&s.description),((h=(s&&s.meta)),h==null||h===false?h:h.snippetChars),e)))+"
      ";h=q["if"].call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.footer),{hash:{},inverse:o.noop,fn:o.program(12,u,x),data:x});if(h||h===0){r+=h}h=q["if"].call(s,(s&&s.dateBadge),{hash:{},inverse:o.noop,fn:o.program(14,t,x),data:x});if(h||h===0){r+=h}r+="
      ";return r});this["DDG"]["templates"]["tiles_item"]=Handlebars.template(function(f,m,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",b,g="function",i=this.escapeExpression,n=this;function c(s,r){var o="",p,q;o+="spice_";if(q=e.spice_name){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.spice_name);p=typeof q===g?q.call(s,{hash:{},data:r}):q}o+=i(p);return o}function a(r,q){var o,p;if(p=e.subcontent){o=p.call(r,{hash:{},data:q})}else{p=(r&&r.subcontent);o=typeof p===g?p.call(r,{hash:{},data:q}):p}if(o||o===0){return o}else{return""}}h+='
      ';b=e["if"].call(m,(m&&m.subcontent),{hash:{},inverse:n.noop,fn:n.program(3,a,j),data:j});if(b||b===0){h+=b}h+="
      ";return h});this["DDG"]["templates"]["tiles_load_more"]=Handlebars.template(function(e,n,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,p,g="function",i=this.escapeExpression,o=this,m=c.helperMissing;function b(s,r){var q;return i(((q=((q=((q=(s&&s.meta)),q==null||q===false?q:q.elClass)),q==null||q===false?q:q.tile)),typeof q===g?q.apply(s):q))}h+='
      +';a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"additional","More",p):m.call(n,"lp","additional","More",p));if(a||a===0){h+=a}h+='
      ';a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"expand_text","Show More",p):m.call(n,"lp","expand_text","Show More",p));if(a||a===0){h+=a}h+="";if(f=c.loader){a=f.call(n,{hash:{},data:j})}else{f=(n&&n.loader);a=typeof f===g?f.call(n,{hash:{},data:j}):f}if(a||a===0){h+=a}h+="
      ";return h});this["DDG"]["templates"]["videos_item"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,r,h="function",j=this.escapeExpression,q=this,n=e.helperMissing;function c(x,v){var s="",t,u;s+='data-link="';if(u=e.url){t=u.call(x,{hash:{},data:v})}else{u=(x&&x.url);t=typeof u===h?u.call(x,{hash:{},data:v}):u}s+=j(t)+'"';return s}function a(x,v){var s="",t,u;s+='';return s}function p(t,s){return""}i+='
      ';if(g=e.title){b=g.call(o,{hash:{},data:k})}else{g=(o&&o.title);b=typeof g===h?g.call(o,{hash:{},data:k}):g}i+=j(b)+'';if(g=e.duration){b=g.call(o,{hash:{},data:k})}else{g=(o&&o.duration);b=typeof g===h?g.call(o,{hash:{},data:k}):g}i+=j(b)+'
      ';b=e["if"].call(o,(o&&o.url),{hash:{},inverse:q.noop,fn:q.program(3,a,k),data:k});if(b||b===0){i+=b}i+=j((g=e.ellipsis||(o&&o.ellipsis),r={hash:{},data:k},g?g.call(o,(o&&o.title),55,r):n.call(o,"ellipsis",(o&&o.title),55,r)));b=e["if"].call(o,(o&&o.url),{hash:{},inverse:q.noop,fn:q.program(5,p,k),data:k});if(b||b===0){i+=b}i+="
      ";b=(g=e.favicon||(o&&o.favicon),r={hash:{lazy:("1"),className:("tile__favicon")},data:k},g?g.call(o,(o&&o.url),r):n.call(o,"favicon",(o&&o.url),r));if(b||b===0){i+=b}i+='';if(g=e.provider){b=g.call(o,{hash:{},data:k})}else{g=(o&&o.provider);b=typeof g===h?g.call(o,{hash:{},data:k}):g}i+=j(b)+'';if(g=e.viewCount){b=g.call(o,{hash:{},data:k})}else{g=(o&&o.viewCount);b=typeof g===h?g.call(o,{hash:{},data:k}):g}if(b||b===0){i+=b}i+="
      ";return i});this["DDG"]["templates"]["base_item_detail"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",b,g="function",i=this.escapeExpression,m=e.helperMissing,p=this;function c(v,u){var q="",s,t,r;q+='
      ';if(t=e.imageAlt){s=t.call(v,{hash:{},data:u})}else{t=(v&&v.imageAlt);s=typeof t===g?t.call(v,{hash:{},data:u}):t}q+=i(s)+'
      ';return q}function a(t,s){var q,r;if(r=e.content){q=r.call(t,{hash:{},data:s})}else{r=(t&&t.content);q=typeof r===g?r.call(t,{hash:{},data:s}):r}if(q||q===0){return q}else{return""}}function o(u,t){var r,s,q;r=(s=e.include||(u&&u.include),q={hash:{},data:t},s?s.call(u,((r=((r=(u&&u.meta)),r==null||r===false?r:r.options)),r==null||r===false?r:r.content),q):m.call(u,"include",((r=((r=(u&&u.meta)),r==null||r===false?r:r.options)),r==null||r===false?r:r.content),q));if(r||r===0){return r}else{return""}}h+='
      ';b=e["if"].call(n,(n&&n.image),{hash:{},inverse:p.noop,fn:p.program(1,c,j),data:j});if(b||b===0){h+=b}h+='
      ';b=e["if"].call(n,(n&&n.content),{hash:{},inverse:p.program(5,o,j),fn:p.program(3,a,j),data:j});if(b||b===0){h+=b}h+="
      ";return h});this["DDG"]["templates"]["images_detail"]=Handlebars.template(function(f,s,q,j,t){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);t=t||{};var r="",h,a,e,c="function",b=this.escapeExpression,o=this,p=q.helperMissing;function n(z,y){var u="",v,x;u+="';return u}function m(y,x){var u="",v;u+='style="width:'+b(((v=((v=(y&&y.detail)),v==null||v===false?v:v.width)),typeof v===c?v.apply(y):v))+";height:"+b(((v=((v=(y&&y.detail)),v==null||v===false?v:v.height)),typeof v===c?v.apply(y):v))+";top:"+b(((v=((v=(y&&y.detail)),v==null||v===false?v:v.top)),typeof v===c?v.apply(y):v))+';"';return u}function k(v,u){return""}function i(A,z){var u="",x,y,v;u+='';x=(y=q.l||(A&&A.l),v={hash:{},data:z},y?y.call(A,"View file",v):p.call(A,"l","View file",v));if(x||x===0){u+=x}u+="";return u}function g(A,z){var u="",x,y,v;u+='';x=(y=q.l||(A&&A.l),v={hash:{},data:z},y?y.call(A,"View file",v):p.call(A,"l","View file",v));if(x||x===0){u+=x}u+="";return u}r+='
      ';h=q["if"].call(s,(s&&s.linkImage),{hash:{},inverse:o.noop,fn:o.program(1,n,t),data:t});if(h||h===0){r+=h}r+='
      ';if(a=q.title){h=a.call(s,{hash:{},data:t})}else{a=(s&&s.title);h=typeof a===c?a.call(s,{hash:{},data:t}):a}r+=b(h)+'';h=q["if"].call(s,(s&&s.linkImage),{hash:{},inverse:o.noop,fn:o.program(4,k,t),data:t});if(h||h===0){r+=h}r+='
      ';if(a=q.title){h=a.call(s,{hash:{},data:t})}else{a=(s&&s.title);h=typeof a===c?a.call(s,{hash:{},data:t}):a}r+=b(h)+'
      ';h=q["if"].call(s,(s&&s.isMobile),{hash:{},inverse:o.noop,fn:o.program(6,i,t),data:t});if(h||h===0){r+=h}r+='

      '+b((a=q.domain||(s&&s.domain),e={hash:{},data:t},a?a.call(s,(s&&s.url),e):p.call(s,"domain",(s&&s.url),e)))+'

      ';if(a=q.width){h=a.call(s,{hash:{},data:t})}else{a=(s&&s.width);h=typeof a===c?a.call(s,{hash:{},data:t}):a}r+=b(h)+" × ";if(a=q.height){h=a.call(s,{hash:{},data:t})}else{a=(s&&s.height);h=typeof a===c?a.call(s,{hash:{},data:t}):a}r+=b(h)+"
      ";h=q["if"].call(s,(s&&s.isMobile),{hash:{},inverse:o.program(8,g,t),fn:o.noop,data:t});if(h||h===0){r+=h}r+="
      ";return r});this["DDG"]["templates"]["media_item_detail"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,h="function",j=this.escapeExpression,n=e.helperMissing,s=this;function c(z,y){var t="",v,x,u;t+='
      imageAlt
      ';return t}function a(z,y){var t="",v,x,u;t+='';v=(x=e.formatSubtitle||(z&&z.formatSubtitle),u={hash:{},data:y},x?x.call(z,(z&&z.altSubtitle),u):n.call(z,"formatSubtitle",(z&&z.altSubtitle),u));if(v||v===0){t+=v}t+="";return t}function r(z,y){var t="",v,x,u;t+='';v=(x=e.formatSubtitle||(z&&z.formatSubtitle),u={hash:{},data:y},x?x.call(z,(z&&z.subtitle),u):n.call(z,"formatSubtitle",(z&&z.subtitle),u));if(v||v===0){t+=v}t+="";return t}function q(z,y){var t="",v,x,u;t+='
      '+j((x=e.ellipsis||(z&&z.ellipsis),u={hash:{fallback:(155)},data:y},x?x.call(z,(z&&z.description),((v=(z&&z.meta)),v==null||v===false?v:v.snippetChars),u):n.call(z,"ellipsis",(z&&z.description),((v=(z&&z.meta)),v==null||v===false?v:v.snippetChars),u)))+"
      ";return t}function p(z,y){var t="",v,x,u;t+='
      ';v=(x=e.include||(z&&z.include),u={hash:{},data:y},x?x.call(z,((v=((v=(z&&z.meta)),v==null||v===false?v:v.options)),v==null||v===false?v:v.callout),u):n.call(z,"include",((v=((v=(z&&z.meta)),v==null||v===false?v:v.options)),v==null||v===false?v:v.callout),u));if(v||v===0){t+=v}t+="
      ";return t}i+='
      ';b=e["if"].call(o,(o&&o.image),{hash:{},inverse:s.noop,fn:s.program(1,c,k),data:k});if(b||b===0){i+=b}i+='
      ';if(g=e.title){b=g.call(o,{hash:{},data:k})}else{g=(o&&o.title);b=typeof g===h?g.call(o,{hash:{},data:k}):g}i+=j(b);b=e["if"].call(o,(o&&o.altSubtitle),{hash:{},inverse:s.noop,fn:s.program(3,a,k),data:k});if(b||b===0){i+=b}i+="
      ";b=e["if"].call(o,(o&&o.subtitle),{hash:{},inverse:s.noop,fn:s.program(5,r,k),data:k});if(b||b===0){i+=b}b=e["if"].call(o,(o&&o.description),{hash:{},inverse:s.noop,fn:s.program(7,q,k),data:k});if(b||b===0){i+=b}b=e["if"].call(o,((b=((b=(o&&o.meta)),b==null||b===false?b:b.options)),b==null||b===false?b:b.callout),{hash:{},inverse:s.noop,fn:s.program(9,p,k),data:k});if(b||b===0){i+=b}i+="
      ";return i});this["DDG"]["templates"]["products_item_detail"]=Handlebars.template(function(g,s,q,k,v){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,g.helpers);v=v||{};var r="",h,a,e,p=q.helperMissing,b=this.escapeExpression,c="function",o=this;function n(B,A){var x="",z,y;x+='
      ';return x}function m(B,A){var x="",y,z;x+='';if(z=q.price){y=z.call(B,{hash:{},data:A})}else{z=(B&&B.price);y=typeof z===c?z.call(B,{hash:{},data:A}):z}x+=b(y)+"";return x}function j(y,x){return''}function i(C,B){var x="",z,A,y;x+='';z=(A=q.lp||(C&&C.lp),y={hash:{},data:B},A?A.call(C,"made_by","by %s",(C&&C.brand),y):p.call(C,"lp","made_by","by %s",(C&&C.brand),y));if(z||z===0){x+=z}x+="";return x}function f(B,A){var y,z,x;y=(z=q.include||(B&&B.include),x={hash:{},data:A},z?z.call(B,((y=((y=(B&&B.meta)),y==null||y===false?y:y.options)),y==null||y===false?y:y.subtitle_content),x):p.call(B,"include",((y=((y=(B&&B.meta)),y==null||y===false?y:y.options)),y==null||y===false?y:y.subtitle_content),x));if(y||y===0){return y}else{return""}}function u(C,B){var x="",z,A,y;x+='

      ';z=(A=q.starsAndReviews||(C&&C.starsAndReviews),y={hash:{},data:B},A?A.call(C,(C&&C.rating),(C&&C.reviewCount),(C&&C.url_review),((z=((z=(C&&C.meta)),z==null||z===false?z:z.options)),z==null||z===false?z:z.hideReviewText),y):p.call(C,"starsAndReviews",(C&&C.rating),(C&&C.reviewCount),(C&&C.url_review),((z=((z=(C&&C.meta)),z==null||z===false?z:z.options)),z==null||z===false?z:z.hideReviewText),y));if(z||z===0){x+=z}x+="

      ";return x}function t(B,A){var y,z,x;y=(z=q.include||(B&&B.include),x={hash:{},data:A},z?z.call(B,((y=((y=(B&&B.meta)),y==null||y===false?y:y.options)),y==null||y===false?y:y.buy),x):p.call(B,"include",((y=((y=(B&&B.meta)),y==null||y===false?y:y.options)),y==null||y===false?y:y.buy),x));if(y||y===0){return y}else{return""}}r+='
      ';h=q["if"].call(s,(s&&s.img_m),{hash:{},inverse:o.noop,fn:o.program(1,n,v),data:v});if(h||h===0){r+=h}r+='
      ';h=(a=q.formatTitle||(s&&s.formatTitle),e={hash:{href:((s&&s.url)),el:("h5"),className:("c-detail__title"),ellipsis:(120)},data:v},a?a.call(s,(s&&s.heading),e):p.call(s,"formatTitle",(s&&s.heading),e));if(h||h===0){r+=h}r+='

      ';h=(a=q.and||(s&&s.and),e={hash:{},inverse:o.noop,fn:o.program(3,m,v),data:v},a?a.call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.price),(s&&s.price),e):p.call(s,"and",((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.price),(s&&s.price),e));if(h||h===0){r+=h}h=(a=q.and||(s&&s.and),e={hash:{},inverse:o.noop,fn:o.program(5,j,v),data:v},a?a.call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.price),((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.brand),(s&&s.price),(s&&s.brand),e):p.call(s,"and",((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.price),((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.brand),(s&&s.price),(s&&s.brand),e));if(h||h===0){r+=h}h=(a=q.and||(s&&s.and),e={hash:{},inverse:o.noop,fn:o.program(7,i,v),data:v},a?a.call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.brand),(s&&s.brand),e):p.call(s,"and",((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.brand),(s&&s.brand),e));if(h||h===0){r+=h}h=q["if"].call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.subtitle_content),{hash:{},inverse:o.noop,fn:o.program(9,f,v),data:v});if(h||h===0){r+=h}r+="

      ";h=q["if"].call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.rating),{hash:{},inverse:o.noop,fn:o.program(11,u,v),data:v});if(h||h===0){r+=h}r+='

      ';if(a=q["abstract"]){h=a.call(s,{hash:{},data:v})}else{a=(s&&s["abstract"]);h=typeof a===c?a.call(s,{hash:{},data:v}):a}if(h||h===0){r+=h}r+="

      ";h=q["if"].call(s,((h=((h=(s&&s.meta)),h==null||h===false?h:h.options)),h==null||h===false?h:h.buy),{hash:{},inverse:o.noop,fn:o.program(13,t,v),data:v});if(h||h===0){r+=h}r+="
      ";return r});this["DDG"]["templates"]["qa_detail"]=Handlebars.template(function(c,m,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,n,f="function",h=this.escapeExpression,k=b.helperMissing;g+='

      ';if(e=b.heading){a=e.call(m,{hash:{},data:i})}else{e=(m&&m.heading);a=typeof e===f?e.call(m,{hash:{},data:i}):e}if(a||a===0){g+=a}g+='

      ';if(e=b["abstract"]){a=e.call(m,{hash:{},data:i})}else{e=(m&&m["abstract"]);a=typeof e===f?e.call(m,{hash:{},data:i}):e}if(a||a===0){g+=a}g+='

      ';a=(e=b.moreAt||(m&&m.moreAt),n={hash:{},data:i},e?e.call(m,(m&&m.url),(m&&m.source),n):k.call(m,"moreAt",(m&&m.url),(m&&m.source),n));if(a||a===0){g+=a}g+="

      ";return g});this["DDG"]["templates"]["videos_detail"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,r,h="function",j=this.escapeExpression,n=e.helperMissing,q=this;function c(x,v){var s="",t,u;s+='

      u ";if(u=e.username){t=u.call(x,{hash:{},data:v})}else{u=(x&&x.username);t=typeof u===h?u.call(x,{hash:{},data:v}):u}if(t||t===0){s+=t}s+="

      ";return s}function a(x,v){var s="",t,u;s+='

      ';if(u=e.publishedDate){t=u.call(x,{hash:{},data:v})}else{u=(x&&x.publishedDate);t=typeof u===h?u.call(x,{hash:{},data:v}):u}if(t||t===0){s+=t}s+="

      ";return s}function p(y,x){var s="",u,v,t;s+='";return s}i+='
      ';if(g=e.title){b=g.call(o,{hash:{},data:k})}else{g=(o&&o.title);b=typeof g===h?g.call(o,{hash:{},data:k}):g}i+=j(b)+'
      ';b=e["if"].call(o,(o&&o.username),{hash:{},inverse:q.noop,fn:q.program(1,c,k),data:k});if(b||b===0){i+=b}i+='

      i ';if(g=e.viewCount){b=g.call(o,{hash:{},data:k})}else{g=(o&&o.viewCount);b=typeof g===h?g.call(o,{hash:{},data:k}):g}if(b||b===0){i+=b}i+="

      ";b=e["if"].call(o,(o&&o.publishedDate),{hash:{},inverse:q.noop,fn:q.program(3,a,k),data:k});if(b||b===0){i+=b}i+="
      ";b=e["if"].call(o,(o&&o.musicVideo),{hash:{},inverse:q.noop,fn:q.program(5,p,k),data:k});if(b||b===0){i+=b}i+='

      ';b=(g=e.moreAt||(o&&o.moreAt),r={hash:{className:(" "),iconClassName:("c-detail__icon"),iconUrl:((o&&o.faviconURL))},data:k},g?g.call(o,(o&&o.searchURL),(o&&o.provider),r):n.call(o,"moreAt",(o&&o.searchURL),(o&&o.provider),r));if(b||b===0){i+=b}i+="

      ";return i});this["DDG"]["templates"]["videos_detail_embed"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='';return g});this["DDG"]["templates"]["videos_detail_privacy"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='

      ';a=(e=b.l||(j&&j.l),k={hash:{},data:g},e?e.call(j,"YouTube Privacy Warning",k):i.call(j,"l","YouTube Privacy Warning",k));if(a||a===0){f+=a}f+='

      ';a=(e=b.l||(j&&j.l),k={hash:{},data:g},e?e.call(j,"YouTube (owned by Google) does not let you watch videos anonymously. As such, watching YouTube videos here will be tracked by YouTube/Google.",k):i.call(j,"l","YouTube (owned by Google) does not let you watch videos anonymously. As such, watching YouTube videos here will be tracked by YouTube/Google.",k));if(a||a===0){f+=a}f+='

      ";return f});this["DDG"]["templates"]["attribution"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='I';return g});this["DDG"]["templates"]["attribution_modal"]=Handlebars.template(function(g,p,f,n,m){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);m=m||{};var j="",b,h,r,o=f.helperMissing,i="function",k=this.escapeExpression,q=this;function e(v,u){var s="",t;s+='
      ';t=f.each.call(v,(v&&v.devs),{hash:{},inverse:q.noop,fn:q.program(2,c,u),data:u});if(t||t===0){s+=t}return s}function c(u,t){var s;s=f["if"].call(u,(u&&u.show),{hash:{},inverse:q.noop,fn:q.program(3,a,t),data:t});if(s||s===0){return s}else{return""}}function a(y,x){var s="",u,v,t;s+='
      ';u=(v=f.lp||(y&&y.lp),t={hash:{},data:x},v?v.call(y,"attribution","Developer",t):o.call(y,"lp","attribution","Developer",t));if(u||u===0){s+=u}s+=': '+k(((u=(y&&y.name)),typeof u===i?u.apply(y):u))+"
      ";return s}j+='";return j});this["DDG"]["templates"]["chomp_link"]=Handlebars.template(function(e,n,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,p,g="function",i=this.escapeExpression,o=this,m=c.helperMissing;function b(r,q){return"sep--after"}h+='';a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"expand_text","Show More",p):m.call(n,"lp","expand_text","Show More",p));if(a||a===0){h+=a}h+='';a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"expand_text","Show Less",p):m.call(n,"lp","expand_text","Show Less",p));if(a||a===0){h+=a}h+="";return h});this["DDG"]["templates"]["date_badge"]=Handlebars.template(function(f,k,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var a,g="function",h=this.escapeExpression,m=this;function c(r,q){var o="",p;o+='
      ';p=e["if"].call(r,(r&&r.text),{hash:{},inverse:m.program(4,n,q),fn:m.program(2,b,q),data:q});if(p||p===0){o+=p}o+="
      ";return o}function b(s,r){var o="",p,q;o+='';if(q=e.text){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.text);p=typeof q===g?q.call(s,{hash:{},data:r}):q}o+=h(p)+"";return o}function n(s,r){var o="",p,q;o+='';if(q=e.month){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.month);p=typeof q===g?q.call(s,{hash:{},data:r}):q}o+=h(p)+'';if(q=e.day){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.day);p=typeof q===g?q.call(s,{hash:{},data:r}):q}o+=h(p)+"";return o}a=e["with"].call(k,(k&&k.dateBadge),{hash:{},inverse:m.noop,fn:m.program(1,c,i),data:i});if(a||a===0){return a}else{return""}});this["DDG"]["templates"]["infobox"]=Handlebars.template(function(e,s,q,j,x){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,e.helpers);x=x||{};var r="",f,b="function",a=this.escapeExpression,o=this,p=q.helperMissing;function n(B,A){var y="",z;z=q["if"].call(B,(B&&B.heading),{hash:{},inverse:o.noop,fn:o.program(2,m,A),data:A});if(z||z===0){y+=z}z=q["if"].call(B,(B&&B.url),{hash:{},inverse:o.program(13,u,A),fn:o.program(4,k,A),data:A});if(z||z===0){y+=z}return y}function m(C,B){var y="",z,A;y+='
      ';if(A=q.heading){z=A.call(C,{hash:{},data:B})}else{A=(C&&C.heading);z=typeof A===b?A.call(C,{hash:{},data:B}):A}y+=a(z)+"
      ";return y}function k(B,A){var y="",z;y+='
      ';z=q["if"].call(B,(B&&B.label),{hash:{},inverse:o.program(11,v,A),fn:o.program(5,i,A),data:A});if(z||z===0){y+=z}y+="
      ";return y}function i(D,C){var y="",A,B,z;y+='';if(B=q.label){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.label);A=typeof B===b?B.call(D,{hash:{},data:C}):B}y+=a(A)+'';A=q["if"].call(D,((A=(D&&D.value)),A==null||A===false?A:A.content),{hash:{},inverse:o.program(9,c,C),fn:o.program(6,h,C),data:C});if(A||A===0){y+=A}y+="";return y}function h(A,z){var y;y=q.each.call(A,((y=(A&&A.value)),y==null||y===false?y:y.content),{hash:{},inverse:o.noop,fn:o.program(7,g,z),data:z});if(y||y===0){return y}else{return""}}function g(C,B){var y="",z,A;y+='';if(A=q.label){z=A.call(C,{hash:{},data:B})}else{A=(C&&C.label);z=typeof A===b?A.call(C,{hash:{},data:B}):A}y+=a(z)+": ";if(A=q.value){z=A.call(C,{hash:{},data:B})}else{A=(C&&C.value);z=typeof A===b?A.call(C,{hash:{},data:B}):A}y+=a(z)+"";return y}function c(B,A){var y,z;if(z=q.value){y=z.call(B,{hash:{},data:A})}else{z=(B&&B.value);y=typeof z===b?z.call(B,{hash:{},data:A}):z}return a(y)}function v(D,C){var y="",A,B,z;y+='';if(B=q.urlTitle){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.urlTitle);A=typeof B===b?B.call(D,{hash:{},data:C}):B}if(A||A===0){y+=A}y+="";return y}function u(A,z){var y;y=q["if"].call(A,(A&&A.label),{hash:{},inverse:o.noop,fn:o.program(14,t,z),data:z});if(y||y===0){return y}else{return""}}function t(C,B){var y="",z,A;y+='
      ';if(A=q.label){z=A.call(C,{hash:{},data:B})}else{A=(C&&C.label);z=typeof A===b?A.call(C,{hash:{},data:B}):A}y+=a(z)+'';z=q["if"].call(C,((z=(C&&C.value)),z==null||z===false?z:z.content),{hash:{},inverse:o.program(9,c,B),fn:o.program(6,h,B),data:B});if(z||z===0){y+=z}y+="
      ";return y}r+='
      ';f=q.each.call(s,(s&&s.data),{hash:{},inverse:o.noop,fn:o.program(1,n,x),data:x});if(f||f===0){r+=f}r+='
      ';return r});this["DDG"]["templates"]["more_at"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,n=e.helperMissing,h="function",j=this.escapeExpression,p=this;function c(u,t){var r,s,q;r=(s=e.favicon||(u&&u.favicon),q={hash:{className:((u&&u.iconClassName))},data:t},s?s.call(u,(u&&u.sourceUrl),q):n.call(u,"favicon",(u&&u.sourceUrl),q));if(r||r===0){return r}else{return""}}function a(v,u){var q="",s,t,r;q+='';return q}i+='';b=e["if"].call(o,(o&&o.sourceIcon),{hash:{},inverse:p.noop,fn:p.program(1,c,k),data:k});if(b||b===0){i+=b}b=e["if"].call(o,(o&&o.sourceIconUrl),{hash:{},inverse:p.noop,fn:p.program(3,a,k),data:k});if(b||b===0){i+=b}if(g=e.moreAtText){b=g.call(o,{hash:{},data:k})}else{g=(o&&o.moreAtText);b=typeof g===h?g.call(o,{hash:{},data:k}):g}if(b||b===0){i+=b}i+="";return i});this["DDG"]["templates"]["more_at_text"]=Handlebars.template(function(f,k,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var b,g="function",h=this.escapeExpression,m=this;function c(r,q){var o,p;if(p=e.sourceName){o=p.call(r,{hash:{},data:q})}else{p=(r&&r.sourceName);o=typeof p===g?p.call(r,{hash:{},data:q}):p}return h(o)}function a(q,p){var o;o=e["with"].call(q,(q&&q.sourceLogo),{hash:{},inverse:m.noop,fn:m.program(4,n,p),data:p});if(o||o===0){return o}else{return""}}function n(s,r){var o="",p,q;o+='';return o}b=e.unless.call(k,(k&&k.sourceLogo),{hash:{},inverse:m.program(3,a,i),fn:m.program(1,c,i),data:i});if(b||b===0){return b}else{return""}});this["DDG"]["templates"]["no_ia_results"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",b,g="function",i=this.escapeExpression,m=e.helperMissing,o=this;function c(s,r){var p,q;if(q=e.message){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.message);p=typeof q===g?q.call(s,{hash:{},data:r}):q}return i(p)}function a(t,s){var q,r,p;q=(r=e.l||(t&&t.l),p={hash:{},data:s},r?r.call(t,"Sorry, no results here.",p):m.call(t,"l","Sorry, no results here.",p));if(q||q===0){return q}else{return""}}h+='
      ';b=e["if"].call(n,(n&&n.message),{hash:{},inverse:o.program(3,a,j),fn:o.program(1,c,j),data:j});if(b||b===0){h+=b}h+="
      ";return h});this["DDG"]["templates"]["places_detail_rating_foursquare"]=Handlebars.template(function(e,m,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,g="function",i=this.escapeExpression,n=this;function b(s,r){var o="",p,q;o+='O';if(q=c.reviews){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.reviews);p=typeof q===g?q.call(s,{hash:{},data:r}):q}o+=i(p)+"";return o}h+='';if(f=c.rating){a=f.call(m,{hash:{},data:j})}else{f=(m&&m.rating);a=typeof f===g?f.call(m,{hash:{},data:j}):f}h+=i(a)+"";a=c["if"].call(m,(m&&m.reviews),{hash:{},inverse:n.noop,fn:n.program(1,b,j),data:j});if(a||a===0){h+=a}return h});this["DDG"]["templates"]["places_detail_rating_yelp"]=Handlebars.template(function(e,m,c,j,i){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);i=i||{};var g="",a,f,o,k=c.helperMissing,h=this.escapeExpression,n=this;function b(t,s){var q,r,p;q=(r=c.reviewCount||(t&&t.reviewCount),p={hash:{},data:s},r?r.call(t,(t&&t.reviews),(t&&t.url),p):k.call(t,"reviewCount",(t&&t.reviews),(t&&t.url),p));if(q||q===0){return q}else{return""}}g+='';a=c["if"].call(m,(m&&m.reviews),{hash:{},inverse:n.noop,fn:n.program(1,b,i),data:i});if(a||a===0){g+=a}return g});this["DDG"]["templates"]["places_item_footer_foursquare"]=Handlebars.template(function(e,m,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,g="function",i=this.escapeExpression,n=this;function b(s,r){var o="",p,q;o+='O';if(q=c.reviews){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.reviews);p=typeof q===g?q.call(s,{hash:{},data:r}):q}o+=i(p)+"";return o}h+='';if(f=c.rating){a=f.call(m,{hash:{},data:j})}else{f=(m&&m.rating);a=typeof f===g?f.call(m,{hash:{},data:j}):f}h+=i(a)+"";a=c["if"].call(m,(m&&m.reviews),{hash:{},inverse:n.noop,fn:n.program(1,b,j),data:j});if(a||a===0){h+=a}return h});this["DDG"]["templates"]["places_item_footer_yelp"]=Handlebars.template(function(e,m,c,j,i){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);i=i||{};var g="",a,f,o,k=c.helperMissing,h=this.escapeExpression,n=this;function b(t,s){var q,r,p;q=(r=c.reviewCount||(t&&t.reviewCount),p={hash:{},data:s},r?r.call(t,(t&&t.reviews),"",true,p):k.call(t,"reviewCount",(t&&t.reviews),"",true,p));if(q||q===0){return q}else{return""}}g+='';a=c["if"].call(m,(m&&m.reviews),{hash:{},inverse:n.noop,fn:n.program(1,b,i),data:i});if(a||a===0){g+=a}return g});this["DDG"]["templates"]["play_button"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='
      ';return g});this["DDG"]["templates"]["products_amazon_badge"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return''});this["DDG"]["templates"]["products_amazon_buy"]=Handlebars.template(function(c,m,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,n,f="function",h=this.escapeExpression,k=b.helperMissing;g+=' ';a=(e=b.l||(m&&m.l),n={hash:{},data:i},e?e.call(m,"More at",n):k.call(m,"l","More at",n));if(a||a===0){g+=a}g+=" "+h(((a=((a=(m&&m.meta)),a==null||a===false?a:a.sourceName)),typeof a===f?a.apply(m):a))+"";return g});this["DDG"]["templates"]["record"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,s,r=this,h="function",j=this.escapeExpression,n=e.helperMissing;function c(u,t){return"record--keyspacing"}function a(u,t){return"record--highlight"}function q(A,y,z){var t="",v,x,u;t+='';if(x=e.key){v=x.call(A,{hash:{},data:y})}else{x=(A&&A.key);v=typeof x===h?x.call(A,{hash:{},data:y}):x}t+=j(v)+''+j((x=e.ellipsis||(A&&A.ellipsis),u={hash:{},data:y},x?x.call(A,(A&&A.value),350,u):n.call(A,"ellipsis",(A&&A.value),350,u)))+"";return t}function p(u,t){return"record__row--highlight"}i+='
      ';b=(g=e["table-each"]||(o&&o["table-each"]),s={hash:{},inverse:r.noop,fn:r.programWithDepth(5,q,k,o),data:k},g?g.call(o,o,s):n.call(o,"table-each",o,s));if(b||b===0){i+=b}i+="
      ";return i});this["DDG"]["templates"]["sports_score"]=Handlebars.template(function(g,v,t,o,D){this.compilerInfo=[4,">= 1.0.0"];t=this.merge(t,g.helpers);D=D||{};var u="",j,a,e,c="function",b=this.escapeExpression,s=t.helperMissing,r=this;function q(I,H){var E="",F,G;E+='';if(G=t.clock){F=G.call(I,{hash:{},data:H})}else{G=(I&&I.clock);F=typeof G===c?G.call(I,{hash:{},data:H}):G}E+=b(F)+"";return E}function p(H,G){var F,E;return b((F=t.momentDate||(H&&H.momentDate),E={hash:{},data:G},F?F.call(H,(H&&H.start_time),E):s.call(H,"momentDate",(H&&H.start_time),E)))}function n(H,G){var E="",F;F=t.each.call(H,((F=((F=(H&&H.score)),F==null||F===false?F:F.away)),F==null||F===false?F:F.sequence),{hash:{},inverse:r.noop,fn:r.program(6,m,G),data:G});if(F||F===0){E+=F}F=t["if"].call(H,(H&&H.current_count),{hash:{},inverse:r.noop,fn:r.program(8,i,G),data:G});if(F||F===0){E+=F}return E}function m(I,H){var E="",F,G;E+='
      ';if(G=t.number){F=G.call(I,{hash:{},data:H})}else{G=(I&&I.number);F=typeof G===c?G.call(I,{hash:{},data:H}):G}E+=b(F)+"
      ";return E}function i(F,E){return'
      Total
      '}function C(I,H){var E="",F,G;E+='
      ';if(G=t.location){F=G.call(I,{hash:{},data:H})}else{G=(I&&I.location);F=typeof G===c?G.call(I,{hash:{},data:H}):G}E+=b(F)+'';if(G=t.name){F=G.call(I,{hash:{},data:H})}else{G=(I&&I.name);F=typeof G===c?G.call(I,{hash:{},data:H}):G}E+=b(F)+"
      ";return E}function B(I,H){var E="",F,G;E+='';return E}function A(F,E){return'u'}function z(H,G){var E="",F;F=t.each.call(H,((F=((F=(H&&H.score)),F==null||F===false?F:F.away)),F==null||F===false?F:F.sequence),{hash:{},inverse:r.noop,fn:r.program(16,y,G),data:G});if(F||F===0){E+=F}F=t["if"].call(H,(H&&H.current_count),{hash:{},inverse:r.noop,fn:r.program(18,x,G),data:G});if(F||F===0){E+=F}return E}function y(I,H){var E="",F,G;E+='
      ';if(G=t.points){F=G.call(I,{hash:{},data:H})}else{G=(I&&I.points);F=typeof G===c?G.call(I,{hash:{},data:H}):G}E+=b(F)+"
      ";return E}function x(I,H){var E="",F,G;E+='
      ';if(G=t.away_total){F=G.call(I,{hash:{},data:H})}else{G=(I&&I.away_total);F=typeof G===c?G.call(I,{hash:{},data:H}):G}E+=b(F)+"
      ";return E}function k(H,G){var E="",F;F=t.each.call(H,((F=((F=(H&&H.score)),F==null||F===false?F:F.home)),F==null||F===false?F:F.sequence),{hash:{},inverse:r.noop,fn:r.program(16,y,G),data:G});if(F||F===0){E+=F}F=t["if"].call(H,(H&&H.current_count),{hash:{},inverse:r.noop,fn:r.program(21,h,G),data:G});if(F||F===0){E+=F}return E}function h(I,H){var E="",F,G;E+='
      ';if(G=t.home_total){F=G.call(I,{hash:{},data:H})}else{G=(I&&I.home_total);F=typeof G===c?G.call(I,{hash:{},data:H}):G}E+=b(F)+"
      ";return E}function f(I,H){var E="",G,F;E+='Last updated '+b((G=t.momentTime||(I&&I.momentTime),F={hash:{},data:H},G?G.call(I,(I&&I.updated),F):s.call(I,"momentTime",(I&&I.updated),F)))+"";return E}u+='
      ';j=t["if"].call(v,(v&&v.clock),{hash:{},inverse:r.program(3,p,D),fn:r.program(1,q,D),data:D});if(j||j===0){u+=j}u+="
      ";j=t["if"].call(v,(v&&v.score),{hash:{},inverse:r.noop,fn:r.program(5,n,D),data:D});if(j||j===0){u+=j}u+='
      ';j=t["with"].call(v,(v&&v.away_team),{hash:{},inverse:r.noop,fn:r.program(10,C,D),data:D});if(j||j===0){u+=j}u+="
      ";j=t["if"].call(v,(v&&v.score),{hash:{},inverse:r.noop,fn:r.program(15,z,D),data:D});if(j||j===0){u+=j}u+='
      ';j=t["with"].call(v,(v&&v.home_team),{hash:{},inverse:r.noop,fn:r.program(10,C,D),data:D});if(j||j===0){u+=j}u+="
      ";j=t["if"].call(v,(v&&v.score),{hash:{},inverse:r.noop,fn:r.program(20,k,D),data:D});if(j||j===0){u+=j}u+='
      @ '+b(((j=((j=(v&&v.venue)),j==null||j===false?j:j.market)),typeof j===c?j.apply(v):j))+' - '+b(((j=((j=(v&&v.venue)),j==null||j===false?j:j.name)),typeof j===c?j.apply(v):j))+'
      ';j=(a=t.and||(v&&v.and),e={hash:{},inverse:r.noop,fn:r.program(23,f,D),data:D},a?a.call(v,(v&&v.updated),((j=((j=(v&&v.score)),j==null||j===false?j:j.away)),j==null||j===false?j:j.sequence),e):s.call(v,"and",(v&&v.updated),((j=((j=(v&&v.score)),j==null||j===false?j:j.away)),j==null||j===false?j:j.sequence),e));if(j||j===0){u+=j}u+="
      ";return u});this["DDG"]["templates"]["stars"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='';return g});this["DDG"]["templates"]["subtitle"]=Handlebars.template(function(f,k,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var a,g="function",h=this.escapeExpression,o=this;function c(t,s){var q="",r;r=e["if"].call(t,(s==null||s===false?s:s.index),{hash:{},inverse:o.noop,fn:o.program(2,b,s),data:s});if(r||r===0){q+=r}r=e["if"].call(t,(t&&t.href),{hash:{},inverse:o.program(7,m,s),fn:o.program(4,p,s),data:s});if(r||r===0){q+=r}return q}function b(r,q){return''}function p(u,t){var q="",r,s;q+='";if(s=e.text){r=s.call(u,{hash:{},data:t})}else{s=(u&&u.text);r=typeof s===g?s.call(u,{hash:{},data:t}):s}q+=h(r)+"";return q}function n(u,t){var q="",r,s;q+=' class="';if(s=e.className){r=s.call(u,{hash:{},data:t})}else{s=(u&&u.className);r=typeof s===g?s.call(u,{hash:{},data:t}):s}q+=h(r)+'"';return q}function m(r,q){return h((typeof r===g?r.apply(r):r))}a=e.each.call(k,(k&&k.components),{hash:{},inverse:o.noop,fn:o.program(1,c,i),data:i});if(a||a===0){return a}else{return""}});this["DDG"]["templates"]["tile_body"]=Handlebars.template(function(f,s,q,j,t){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);t=t||{};var r="",g,a,e,c="function",b=this.escapeExpression,o=this,p=q.helperMissing;function n(y,x){var u="",v;u+="has-foot ";v=q["if"].call(y,(y&&y.footLines),{hash:{},inverse:o.noop,fn:o.program(2,m,x),data:x});if(v||v===0){u+=v}return u}function m(z,y){var u="",v,x;u+="has-foot--";if(x=q.footLines){v=x.call(z,{hash:{},data:y})}else{x=(z&&z.footLines);v=typeof x===c?x.call(z,{hash:{},data:y}):x}u+=b(v);return u}function k(z,y){var v,x,u;v=(x=q.include||(z&&z.include),u={hash:{},data:y},x?x.call(z,"tile_snippet",u):p.call(z,"include","tile_snippet",u));if(v||v===0){return v}else{return""}}function i(A,z){var u="",x,y,v;u+='
      ';x=(y=q.include||(A&&A.include),v={hash:{},data:z},y?y.call(A,(A&&A.footer_content),v):p.call(A,"include",(A&&A.footer_content),v));if(x||x===0){u+=x}u+="
      ";return u}function h(z,y){var u="",v,x;u+="tile__foot--";if(x=q.footLines){v=x.call(z,{hash:{},data:y})}else{x=(z&&z.footLines);v=typeof x===c?x.call(z,{hash:{},data:y}):x}u+=b(v);return u}r+='
      ';g=(a=q.include||(s&&s.include),e={hash:{},data:t},a?a.call(s,"tile_titles",e):p.call(s,"include","tile_titles",e));if(g||g===0){r+=g}g=q["if"].call(s,(s&&s.description),{hash:{},inverse:o.noop,fn:o.program(4,k,t),data:t});if(g||g===0){r+=g}g=q["if"].call(s,(s&&s.footer_content),{hash:{},inverse:o.noop,fn:o.program(6,i,t),data:t});if(g||g===0){r+=g}r+="
      ";return r});this["DDG"]["templates"]["tile_snippet"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,q,h="function",j=this.escapeExpression,p=this,n=e.helperMissing;function c(s,r){return" tile__content--sm "}function a(t,s){var r;return j(((r=((r=((r=(t&&t.meta)),r==null||r===false?r:r.elClass)),r==null||r===false?r:r.tileSnippet)),typeof r===h?r.apply(t):r))}i+='
      '+j((g=e.ellipsis||(o&&o.ellipsis),q={hash:{fallback:(55)},data:k},g?g.call(o,(o&&o.description),((b=(o&&o.meta)),b==null||b===false?b:b.snippetChars),q):n.call(o,"ellipsis",(o&&o.description),((b=(o&&o.meta)),b==null||b===false?b:b.snippetChars),q)))+"
      ";return i});this["DDG"]["templates"]["tile_titles"]=Handlebars.template(function(f,r,p,j,x){this.compilerInfo=[4,">= 1.0.0"];p=this.merge(p,f.helpers);x=x||{};var q="",g,a,o=p.helperMissing,b=this.escapeExpression,c="function",n=this;function m(D,C){var y="",A,B,z;y+='';if(B=p.title){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.title);A=typeof B===c?B.call(D,{hash:{},data:C}):B}y+=b(A)+'';return y}function k(C,B){var y="",z,A;y+='';if(A=p.num){z=A.call(C,{hash:{},data:B})}else{A=(C&&C.num);z=typeof A===c?A.call(C,{hash:{},data:B}):A}y+=b(z)+"";return y}function i(z,y){return"with-sub"}function h(z,y){return"has-sub--a"}function e(C,B){var y="",z,A;y+='a href="';if(A=p.url){z=A.call(C,{hash:{},data:B})}else{A=(C&&C.url);z=typeof A===c?A.call(C,{hash:{},data:B}):A}y+=b(z)+'"';return y}function v(z,y){return"span"}function u(z,y){return"a"}function t(D,C){var y="",A,B,z;y+='';A=(B=p.formatSubtitle||(D&&D.formatSubtitle),z={hash:{},data:C},B?B.call(D,(D&&D.altSubtitle),z):o.call(D,"formatSubtitle",(D&&D.altSubtitle),z));if(A||A===0){y+=A}y+="";return y}function s(D,C){var y="",A,B,z;y+='';A=(B=p.formatSubtitle||(D&&D.formatSubtitle),z={hash:{},data:C},B?B.call(D,(D&&D.subtitle),z):o.call(D,"formatSubtitle",(D&&D.subtitle),z));if(A||A===0){y+=A}y+="";return y}g=p["if"].call(r,(r&&r.icon),{hash:{},inverse:n.noop,fn:n.program(1,m,x),data:x});if(g||g===0){q+=g}g=p["if"].call(r,(r&&r.showPin),{hash:{},inverse:n.noop,fn:n.program(3,k,x),data:x});if(g||g===0){q+=g}q+='
      <';g=p["if"].call(r,(r&&r.url),{hash:{},inverse:n.program(11,v,x),fn:n.program(9,e,x),data:x});if(g||g===0){q+=g}q+=' class="tile__title__main">';if(a=p.title){g=a.call(r,{hash:{},data:x})}else{a=(r&&r.title);g=typeof a===c?a.call(r,{hash:{},data:x}):a}q+=b(g)+"";g=p["if"].call(r,(r&&r.altSubtitle),{hash:{},inverse:n.noop,fn:n.program(15,t,x),data:x});if(g||g===0){q+=g}q+="
      ";g=p["if"].call(r,(r&&r.subtitle),{hash:{},inverse:n.noop,fn:n.program(17,s,x),data:x});if(g||g===0){q+=g}return q});this["DDG"]["templates"]["title"]=Handlebars.template(function(f,n,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,h="function",j=this.escapeExpression,r=this;function c(u,t){return"has-sub"}function a(y,x){var t="",u,v;t+='";return t}function s(y,x){var t="",u,v;t+='title="';if(v=e.hrefTitle){u=v.call(y,{hash:{},data:x})}else{v=(y&&y.hrefTitle);u=typeof v===h?v.call(y,{hash:{},data:x}):v}t+=j(u)+'"';return t}function q(u,t){return""}function p(y,x){var t="",u,v;t+='';if(v=e.subTitle){u=v.call(y,{hash:{},data:x})}else{v=(y&&y.subTitle);u=typeof v===h?v.call(y,{hash:{},data:x}):v}if(u||u===0){t+=u}t+="";return t}function o(u,t){return"opt"}i+="<";if(g=e.tagName){b=g.call(n,{hash:{},data:k})}else{g=(n&&n.tagName);b=typeof g===h?g.call(n,{hash:{},data:k}):g}i+=j(b)+' class="';if(g=e.className){b=g.call(n,{hash:{},data:k})}else{g=(n&&n.className);b=typeof g===h?g.call(n,{hash:{},data:k}):g}i+=j(b)+" ";if(g=e.classNameSec){b=g.call(n,{hash:{},data:k})}else{g=(n&&n.classNameSec);b=typeof g===h?g.call(n,{hash:{},data:k}):g}i+=j(b)+" ";b=e["if"].call(n,(n&&n.subTitle),{hash:{},inverse:r.noop,fn:r.program(1,c,k),data:k});if(b||b===0){i+=b}i+='">';b=e["if"].call(n,(n&&n.href),{hash:{},inverse:r.noop,fn:r.program(3,a,k),data:k});if(b||b===0){i+=b}if(g=e.title){b=g.call(n,{hash:{},data:k})}else{g=(n&&n.title);b=typeof g===h?g.call(n,{hash:{},data:k}):g}if(b||b===0){i+=b}b=e["if"].call(n,(n&&n.href),{hash:{},inverse:r.noop,fn:r.program(6,q,k),data:k});if(b||b===0){i+=b}b=e["if"].call(n,(n&&n.subTitle),{hash:{},inverse:r.noop,fn:r.program(8,p,k),data:k});if(b||b===0){i+=b}i+="";return i});this["DDG"]=this["DDG"]||{};this["DDG"]["templates"]=this["DDG"]["templates"]||{};this["DDG"]["templates"]["about_header"]=Handlebars.template(function(f,m,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var g="",b,k=e.helperMissing,h=this.escapeExpression,n=this;function c(p,o){return"module__header--with-image"}function a(t,s){var o="",q,r,p;o+='
      ';q=(r=e.l||(t&&t.l),p={hash:{},data:s},r?r.call(t,"More Images",p):k.call(t,"l","More Images",p));if(q||q===0){o+=q}o+="
      ";return o}g+='
      ';b=e["if"].call(m,(m&&m.imageURL),{hash:{},inverse:n.noop,fn:n.program(3,a,i),data:i});if(b||b===0){g+=b}g+='
      ';return g});this["DDG"]["templates"]["about_infobox"]=Handlebars.template(function(g,n,f,m,k){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);k=k||{};var i="",b,o=this,h="function",j=this.escapeExpression;function e(r,q){var p;p=f["if"].call(r,(r&&r.label),{hash:{},inverse:o.noop,fn:o.program(2,c,q),data:q});if(p||p===0){return p}else{return""}}function c(t,s){var p="",q,r;p+='
      ';if(r=f.label){q=r.call(t,{hash:{},data:s})}else{r=(t&&t.label);q=typeof r===h?r.call(t,{hash:{},data:s}):r}p+=j(q)+':';if(r=f.value){q=r.call(t,{hash:{},data:s})}else{r=(t&&t.value);q=typeof r===h?r.call(t,{hash:{},data:s}):r}p+=j(q)+"
      ";return p}function a(q,p){return" is-hidden"}i+='
      ';b=f.each.call(n,(n&&n.items),{hash:{},inverse:o.noop,fn:o.program(1,e,k),data:k});if(b||b===0){i+=b}i+="
      ";return i});this["DDG"]["templates"]["about_item"]=Handlebars.template(function(e,r,p,i,v){this.compilerInfo=[4,">= 1.0.0"];p=this.merge(p,e.helpers);v=v||{};var q="",g,a,c="function",b=this.escapeExpression,o=p.helperMissing,n=this;function m(C,B){var x="",z,A,y;x+='";return x}function k(z,y){var x;x=p["if"].call(z,(z&&z.Image),{hash:{},inverse:n.noop,fn:n.program(4,j,y),data:y});if(x||x===0){return x}else{return""}}function j(C,B){var x="",z,A,y;x+='';return x}function h(B,A){var x="",y,z;x+='
      ';if(z=p.title){y=z.call(B,{hash:{},data:A})}else{z=(B&&B.title);y=typeof z===c?z.call(B,{hash:{},data:A}):z}x+=b(y)+"
      ";return x}function f(B,A){var x="",y,z;x+='';if(z=p.subTitle){y=z.call(B,{hash:{},data:A})}else{z=(B&&B.subTitle);y=typeof z===c?z.call(B,{hash:{},data:A}):z}x+=b(y)+"";return x}function u(C,B){var x="",z,A,y;x+=''+b((A=p.domainWithPath||(C&&C.domainWithPath),y={hash:{},data:B},A?A.call(C,(C&&C.OfficialUrl),y):o.call(C,"domainWithPath",(C&&C.OfficialUrl),y)))+"";return x}function t(y,x){return" module__text--no-padding"}function s(C,B){var x="",z,A,y;x+='";return x}q+='
      ';g=p["if"].call(r,(r&&r.hasClickableHeader),{hash:{},inverse:n.noop,fn:n.program(1,m,v),data:v});if(g||g===0){q+=g}g=p.unless.call(r,(r&&r.headerImage),{hash:{},inverse:n.noop,fn:n.program(3,k,v),data:v});if(g||g===0){q+=g}g=p.unless.call(r,(r&&r.hasClickableHeader),{hash:{},inverse:n.noop,fn:n.program(6,h,v),data:v});if(g||g===0){q+=g}g=p["if"].call(r,(r&&r.subTitle),{hash:{},inverse:n.noop,fn:n.program(8,f,v),data:v});if(g||g===0){q+=g}g=p["if"].call(r,(r&&r.OfficialUrl),{hash:{},inverse:n.noop,fn:n.program(10,u,v),data:v});if(g||g===0){q+=g}q+='
      ";g=p.unless.call(r,(r&&r.hasClickableHeader),{hash:{},inverse:n.noop,fn:n.program(14,s,v),data:v});if(g||g===0){q+=g}q+="
      ";return q});this["DDG"]["templates"]["about_module"]=Handlebars.template(function(f,m,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",b,n=this,g="function",i=this.escapeExpression;function c(q,p){return" has-content-height"}function a(s,r){var p="",q;p+='
      v
      v
      ';return p}function o(q,p){return' aria-hidden="true"'}h+='
      ';b=e.unless.call(m,(m&&m.isMapExpanded),{hash:{},inverse:n.noop,fn:n.program(3,a,j),data:j});if(b||b===0){h+=b}h+="
      ";return h});this["DDG"]["templates"]["about_profiles"]=Handlebars.template(function(e,m,c,j,i){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);i=i||{};var g="",a,f="function",h=this.escapeExpression,k=c.helperMissing,n=this;function b(t,s){var o="",q,r,p;o+='
    • ';if(r=c.name){q=r.call(t,{hash:{},data:s})}else{r=(t&&t.name);q=typeof r===f?r.call(t,{hash:{},data:s}):r}o+=h(q)+"
    • ";return o}g+='
        ';a=c.each.call(m,(m&&m.links),{hash:{},inverse:n.noop,fn:n.program(1,b,i),data:i});if(a||a===0){g+=a}g+="
      ";return g});this["DDG"]["templates"]["ad_badge"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+=' ';a=(e=b.l||(j&&j.l),k={hash:{},data:g},e?e.call(j,"Ad",k):i.call(j,"l","Ad",k));if(a||a===0){f+=a}f+="";return f});this["DDG"]["templates"]["address_detail"]=Handlebars.template(function(f,n,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,h="function",j=this.escapeExpression,p=this;function c(s,r){return"address-detail--apple-device"}function a(t,s){var r;r=e.each.call(t,(t&&t.addressLines),{hash:{},inverse:p.noop,fn:p.program(4,q,s),data:s});if(r||r===0){return r}else{return""}}function q(t,s){var r="";r+='

      '+j((typeof t===h?t.apply(t):t))+"

      ";return r}function o(v,u){var r="",s,t;r+='

      ';if(t=e.displayLatLon){s=t.call(v,{hash:{},data:u})}else{t=(v&&v.displayLatLon);s=typeof t===h?t.call(v,{hash:{},data:u}):t}r+=j(s)+"

      ";return r}i+='
      ";return i});this["DDG"]["templates"]["answerbar_tabs"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return'
        '});this["DDG"]["templates"]["directions_button"]=Handlebars.template(function(c,m,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,n,f="function",h=this.escapeExpression,k=b.helperMissing;g+='";return g});this["DDG"]["templates"]["feedback_button"]=Handlebars.template(function(e,k,c,i,h){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);h=h||{};var g="",a,f,n,j=c.helperMissing,m=this;function b(p,o){return''}g+='";return g});this["DDG"]["templates"]["feedback_issue_list"]=Handlebars.template(function(e,j,c,i,h){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);h=h||{};var a,f="function",g=this.escapeExpression,k=this;function b(q,p){var m="",n,o;m+='";return m}a=c.each.call(j,(j&&j.issues),{hash:{},inverse:k.noop,fn:k.program(1,b,h),data:h});if(a||a===0){return a}else{return""}});this["DDG"]["templates"]["feedback_modal"]=Handlebars.template(function(f,s,q,k,t){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);t=t||{};var r="",h,a,e,p=q.helperMissing,c="function",b=this.escapeExpression,o=this;function n(A,z){var u="",x,y,v;u+='";return u}function m(A,z){var u="",x,y,v;u+='";return u}function j(v,u){return''}function i(y,x){var u="",v;u+='";return u}function g(z,y){var u="",v,x;u+='";return u}r+='';return r});this["DDG"]["templates"]["feedback_prompt"]=Handlebars.template(function(f,m,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var b,g="function",h=this.escapeExpression,k=e.helperMissing,n=this;function c(t,s){var o="",q,r,p;o+='";return o}function a(t,s){var o="",q,r,p;o+='";return o}b=e["if"].call(m,(m&&m.showYesNo),{hash:{},inverse:n.program(3,a,i),fn:n.program(1,c,i),data:i});if(b||b===0){return b}else{return""}});this["DDG"]["templates"]["footer"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,q,h="function",j=this.escapeExpression,p=this,n=e.helperMissing;function c(v,u){var r="",s,t;r+='";return r}function a(v,u){var r="",s,t;r+='';return r}i+='";return i});this["DDG"]["templates"]["footer_mobile"]=Handlebars.template(function(e,n,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,p,g="function",i=this.escapeExpression,m=c.helperMissing,o=this;function b(u,t){var q="",r,s;q+='';return q}h+='';return h});this["DDG"]["templates"]["forecast_detail"]=Handlebars.template(function(e,q,p,i,x){this.compilerInfo=[4,">= 1.0.0"];p=this.merge(p,e.helpers);x=x||{};var g,b="function",a=this.escapeExpression,n=this,o=p.helperMissing;function m(D,C){var y="",A,B,z;y+='
        ';if(B=p.location){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.location);A=typeof B===b?B.call(D,{hash:{},data:C}):B}y+=a(A)+'
        ';if(B=p.dayLong){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.dayLong);A=typeof B===b?B.call(D,{hash:{},data:C}):B}y+=a(A)+" ";A=p.unless.call(D,(D&&D.selected),{hash:{},inverse:n.noop,fn:n.program(4,j,C),data:C});if(A||A===0){y+=A}y+=" • ";if(B=p.summary){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.summary);A=typeof B===b?B.call(D,{hash:{},data:C}):B}y+=a(A)+"
        ";A=p["if"].call(D,(D&&D.weatherAlert),{hash:{},inverse:n.program(8,f,C),fn:n.program(6,h,C),data:C});if(A||A===0){y+=A}y+='
        ';if(B=p.temperature){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.temperature);A=typeof B===b?B.call(D,{hash:{},data:C}):B}y+=a(A)+'°
        F/ C
        ';A=(B=p.lp||(D&&D.lp),z={hash:{},data:C},B?B.call(D,"forecast","Humidity",z):o.call(D,"lp","forecast","Humidity",z));if(A||A===0){y+=A}y+=": ";if(B=p.humidity){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.humidity);A=typeof B===b?B.call(D,{hash:{},data:C}):B}y+=a(A)+'%
        ';A=(B=p.lp||(D&&D.lp),z={hash:{},data:C},B?B.call(D,"forecast","Wind",z):o.call(D,"lp","forecast","Wind",z));if(A||A===0){y+=A}y+=': ';if(B=p.wind){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.wind);A=typeof B===b?B.call(D,{hash:{},data:C}):B}y+=a(A)+'
        ';A=p.each.call(D,((A=((A=(D&&D.hours)),A==null||A===false?A:A.data)),A==null||A===false?A:A.labels),{hash:{},inverse:n.noop,fn:n.program(19,r,C),data:C});if(A||A===0){y+=A}y+='
        ';A=p.each.call(D,((A=(D&&D.hours)),A==null||A===false?A:A.mobileLabels),{hash:{},inverse:n.noop,fn:n.program(19,r,C),data:C});if(A||A===0){y+=A}y+="
        ";return y}function k(z,y){return"module__summary--ie11"}function j(B,A){var y="",z;y+=" "+a(((z=((z=(B&&B.hours)),z==null||z===false?z:z.firstHour)),typeof z===b?z.apply(B):z))+" ";return y}function h(B,A){var y="",z;y+=' '+a(((z=((z=(B&&B.weatherAlert)),z==null||z===false?z:z.title)),typeof z===b?z.apply(B):z))+"";return y}function f(A,z){var y;y=p["if"].call(A,(A&&A.warning),{hash:{},inverse:n.noop,fn:n.program(9,c,z),data:z});if(y||y===0){return y}else{return""}}function c(B,A){var y="",z;y+=' '+a(((z=((z=(B&&B.warning)),z==null||z===false?z:z.title)),typeof z===b?z.apply(B):z))+"";return y}function v(z,y){return"module__forecast-icon--ie11"}function u(z,y){return"module__temperature-value--ie11"}function t(z,y){return"module__temperature-units--ie11"}function s(z,y){return"module__temperature-unit--on text--primary"}function r(B,A){var y="",z;y+='
        '+a(((z=(B&&B[0])),typeof z===b?z.apply(B):z))+'
        '+a(((z=(B&&B[1])),typeof z===b?z.apply(B):z))+"
        ";return y}g=p["with"].call(q,(q&&q.items),{hash:{},inverse:n.noop,fn:n.program(1,m,x),data:x});if(g||g===0){return g}else{return""}});this["DDG"]["templates"]["forecast_module"]=Handlebars.template(function(g,n,f,k,j){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);j=j||{};var b,h="function",i=this.escapeExpression,p=this,m=f.helperMissing;function e(v,u){var q="",s,t,r;q+='
        ';s=f.each.call(v,(v&&v.days),{hash:{},inverse:p.noop,fn:p.program(2,c,u),data:u});if(s||s===0){q+=s}q+='

        ';s=(t=f.moreAt||(v&&v.moreAt),r={hash:{hideMoreAtText:(1),className:("zci__more-at tx-clr--grey-light js-forecast-module-detail-moreat")},data:u},t?t.call(v,(v&&v.moreAtUrl),"Dark Sky",r):m.call(v,"moreAt",(v&&v.moreAtUrl),"Dark Sky",r));if(s||s===0){q+=s}q+='

        ';return q}function c(u,t){var q="",r,s;q+='
        ';if(s=f.day){r=s.call(u,{hash:{},data:t})}else{s=(u&&u.day);r=typeof s===h?s.call(u,{hash:{},data:t}):s}q+=i(r)+'
        ';if(s=f.summary){r=s.call(u,{hash:{},data:t})}else{s=(u&&u.summary);r=typeof s===h?s.call(u,{hash:{},data:t}):s}q+=i(r)+'
        ';if(s=f.high){r=s.call(u,{hash:{},data:t})}else{s=(u&&u.high);r=typeof s===h?s.call(u,{hash:{},data:t}):s}q+=i(r)+'°
        ';if(s=f.low){r=s.call(u,{hash:{},data:t})}else{s=(u&&u.low);r=typeof s===h?s.call(u,{hash:{},data:t}):s}q+=i(r)+"°
        ";return q}function a(r,q){return"module__items-item--selected"}function o(r,q){return"module__more-at--not-en"}b=f["with"].call(n,(n&&n.items),{hash:{},inverse:p.noop,fn:p.program(1,e,j),data:j});if(b||b===0){return b}else{return""}});this["DDG"]["templates"]["images_module"]=Handlebars.template(function(c,m,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,n,k=b.helperMissing,f="function",h=this.escapeExpression;g+='
        ';a=(e=b.l||(m&&m.l),n={hash:{},data:i},e?e.call(m,"More Images",n):k.call(m,"l","More Images",n));if(a||a===0){g+=a}g+=" ";a=(e=b.l||(m&&m.l),n={hash:{},data:i},e?e.call(m,"for",n):k.call(m,"l","for",n));if(a||a===0){g+=a}g+=" ";if(e=b.query){a=e.call(m,{hash:{},data:i})}else{e=(m&&m.query);a=typeof e===f?e.call(m,{hash:{},data:i}):e}g+=h(a)+"
        ";return g});this["DDG"]["templates"]["images_module_thumbnails"]=Handlebars.template(function(f,m,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var a,n=this,g="function",h=this.escapeExpression,k=e.helperMissing;function c(t,s){var o="",q,r,p;o+='
        ';if(r=e.title){q=r.call(t,{hash:{},data:s})}else{r=(t&&t.title);q=typeof r===g?r.call(t,{hash:{},data:s}):r}o+=h(q)+'
        ';return o}function b(p,o){return"is-last"}a=e.each.call(m,m,{hash:{},inverse:n.noop,fn:n.program(1,c,i),data:i});if(a||a===0){return a}else{return""}});this["DDG"]["templates"]["manual_user_location_modal"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='';return f});this["DDG"]["templates"]["map_sidebar"]=Handlebars.template(function(e,k,c,i,h){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);h=h||{};var g="",a,f,n,j=c.helperMissing,m=this;function b(p,o){return''}g+='";return g});this["DDG"]["templates"]["map_sidebar_mobile"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return'
        '});this["DDG"]["templates"]["mapkit_close_control"]=Handlebars.template(function(f,m,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var h="",b,g,o,n=this,k=e.helperMissing;function c(q,p){return"map-control__btn--safari "}function a(q,p){return"map-control__btn--darkmap "}h+='
        ';return h});this["DDG"]["templates"]["mapkit_map"]=Handlebars.template(function(f,k,e,i,h){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);h=h||{};var g="",b,j=e.helperMissing,m=this;function c(o,n){return"mapkit-map--frozen"}function a(s,r){var n="",p,q,o;n+='
        ';p=(q=e.l||(s&&s.l),o={hash:{},data:r},q?q.call(s,"Open Map",o):j.call(s,"l","Open Map",o));if(p||p===0){n+=p}n+="";return n}g+='
        ';b=e["if"].call(k,(k&&k.isFrozen),{hash:{},inverse:m.noop,fn:m.program(3,a,h),data:h});if(b||b===0){g+=b}g+="
        ";return g});this["DDG"]["templates"]["mapkit_marker"]=Handlebars.template(function(e,m,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,g="function",i=this.escapeExpression,n=this;function b(s,r){var o="",p,q;o+='';if(q=c.number){p=q.call(s,{hash:{},data:r})}else{q=(s&&s.number);p=typeof q===g?q.call(s,{hash:{},data:r}):q}o+=i(p)+"";return o}h+='
        ';a=c["if"].call(m,(m&&m.number),{hash:{},inverse:n.noop,fn:n.program(1,b,j),data:j});if(a||a===0){h+=a}h+="
        ";return h});this["DDG"]["templates"]["mapkit_position_picker"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return'
        '});this["DDG"]["templates"]["mapkit_static_map"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,q,n=e.helperMissing,p=this,j=this.escapeExpression,h="function";function c(s,r){return"has-cta"}function a(x,v){var r="",t,u,s;r+='';t=(u=e.l||(x&&x.l),s={hash:{},data:v},u?u.call(x,"Open Map",s):n.call(x,"l","Open Map",s));if(t||t===0){r+=t}r+="";return r}i+='
        ';b=e["if"].call(o,(o&&o.showCTA),{hash:{},inverse:p.noop,fn:p.program(3,a,k),data:k});if(b||b===0){i+=b}i+='
        ';return i});this["DDG"]["templates"]["mapkit_user_location"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return'
        '});this["DDG"]["templates"]["mapkit_user_location_control"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='
        ";return f});this["DDG"]["templates"]["maps_module"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='
        ';return g});this["DDG"]["templates"]["module_image_header"]=Handlebars.template(function(c,r,p,i,y){this.compilerInfo=[4,">= 1.0.0"];p=this.merge(p,c.helpers);y=y||{};var q="",f,o=p.helperMissing,n=this,b="function",a=this.escapeExpression;function m(A,z){return"module__header--with-image"}function k(E,D){var z="",B,C,A;z+='
        ';return z}function j(E,D){var z="",B,C,A;z+='
        ';B=(C=p.include||(E&&E.include),A={hash:{image:(((B=(E&&E.images)),B==null||B===false?B:B[0])),className:("module__header__image--big module__header__image--blur")},data:D},C?C.call(E,"module_image_header_item",A):o.call(E,"include","module_image_header_item",A));if(B||B===0){z+=B}z+='';B=(C=p.l||(E&&E.l),A={hash:{},data:D},C?C.call(E,"No More Photos",A):o.call(E,"l","No More Photos",A));if(B||B===0){z+=B}z+="
        ";return z}function h(B,A){var z;z=p["if"].call(B,((z=(B&&B.layout)),z==null||z===false?z:z.layout_4),{hash:{},inverse:n.program(14,u,A),fn:n.program(7,g,A),data:A});if(z||z===0){return z}else{return""}}function g(C,B){var z="",A;z+='
        ';A=p["if"].call(C,((A=((A=(C&&C.images)),A==null||A===false?A:A[1])),A==null||A===false?A:A.url),{hash:{},inverse:n.noop,fn:n.program(8,e,B),data:B});if(A||A===0){z+=A}z+='
        ';A=p["if"].call(C,((A=((A=(C&&C.images)),A==null||A===false?A:A[2])),A==null||A===false?A:A.url),{hash:{},inverse:n.noop,fn:n.program(10,x,B),data:B});if(A||A===0){z+=A}z+='
        ';A=p["if"].call(C,((A=((A=(C&&C.images)),A==null||A===false?A:A[3])),A==null||A===false?A:A.url),{hash:{},inverse:n.noop,fn:n.program(12,v,B),data:B});if(A||A===0){z+=A}z+="
        ";return z}function e(D,C){var A,B,z;A=(B=p.include||(D&&D.include),z={hash:{image:(((A=(D&&D.images)),A==null||A===false?A:A[1])),className:("module__header__image--small")},data:C},B?B.call(D,"module_image_header_item",z):o.call(D,"include","module_image_header_item",z));if(A||A===0){return A}else{return""}}function x(D,C){var A,B,z;A=(B=p.include||(D&&D.include),z={hash:{image:(((A=(D&&D.images)),A==null||A===false?A:A[2])),className:("module__header__image--small")},data:C},B?B.call(D,"module_image_header_item",z):o.call(D,"include","module_image_header_item",z));if(A||A===0){return A}else{return""}}function v(D,C){var A,B,z;A=(B=p.include||(D&&D.include),z={hash:{image:(((A=(D&&D.images)),A==null||A===false?A:A[3])),className:("module__header__image--big")},data:C},B?B.call(D,"module_image_header_item",z):o.call(D,"include","module_image_header_item",z));if(A||A===0){return A}else{return""}}function u(C,B){var z="",A;z+='
        ';A=p["if"].call(C,((A=((A=(C&&C.images)),A==null||A===false?A:A[1])),A==null||A===false?A:A.url),{hash:{},inverse:n.noop,fn:n.program(15,t,B),data:B});if(A||A===0){z+=A}z+="
        ";return z}function t(D,C){var A,B,z;A=(B=p.include||(D&&D.include),z={hash:{image:(((A=(D&&D.images)),A==null||A===false?A:A[1])),className:("module__header__image--big")},data:C},B?B.call(D,"module_image_header_item",z):o.call(D,"include","module_image_header_item",z));if(A||A===0){return A}else{return""}}function s(E,D){var z="",B,C,A;z+='';B=(C=p.l||(E&&E.l),A={hash:{},data:D},C?C.call(E,"See Photos",A):o.call(E,"l","See Photos",A));if(B||B===0){z+=B}z+="";return z}q+='
        ';f=p["if"].call(r,(r&&r.layout),{hash:{},inverse:n.noop,fn:n.program(3,k,y),data:y});if(f||f===0){q+=f}q+="
        ";return q});this["DDG"]["templates"]["module_placeholder"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return'
        '});this["DDG"]["templates"]["news_module"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='
        ";return g});this["DDG"]["templates"]["news_module_item"]=Handlebars.template(function(f,s,q,j,y){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);y=y||{};var r="",h,a,e,p=q.helperMissing,b=this.escapeExpression,c="function",o=this;function n(A,z){return"has-image"}function m(C,B){var z="",A;z+='
        ';A=q["if"].call(C,(C&&C.image),{hash:{},inverse:o.program(6,i,B),fn:o.program(4,k,B),data:B});if(A||A===0){z+=A}A=q["if"].call(C,(C&&C.duration),{hash:{},inverse:o.noop,fn:o.program(8,g,B),data:B});if(A||A===0){z+=A}z+="
        ";return z}function k(D,C){var z="",B,A;z+='
        ';return z}function i(A,z){return'
        '}function g(D,C){var z="",A,B;z+='
        ';if(B=q.duration){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.duration);A=typeof B===c?B.call(D,{hash:{},data:C}):B}z+=b(A)+"
        ";return z}function x(D,C){var z="",A,B;z+='
        ';if(B=q.excerpt){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.excerpt);A=typeof B===c?B.call(D,{hash:{},data:C}):B}if(A||A===0){z+=A}z+="
        ";return z}function v(A,z){return"has-relative-time"}function u(D,C){var z="",A,B;z+='';if(B=q.relativeTimeShort){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.relativeTimeShort);A=typeof B===c?B.call(D,{hash:{},data:C}):B}if(A||A===0){z+=A}z+="";return z}function t(D,C){var z="",A,B;z+='';if(B=q.viewCount){A=B.call(D,{hash:{},data:C})}else{B=(D&&D.viewCount);A=typeof B===c?B.call(D,{hash:{},data:C}):B}z+=b(A)+"";return z}r+='
        ';h=q["if"].call(s,(s&&s.showImage),{hash:{},inverse:o.noop,fn:o.program(3,m,y),data:y});if(h||h===0){r+=h}r+='
        ';if(a=q.title){h=a.call(s,{hash:{},data:y})}else{a=(s&&s.title);h=typeof a===c?a.call(s,{hash:{},data:y}):a}if(h||h===0){r+=h}r+="";h=q["if"].call(s,(s&&s.showImage),{hash:{},inverse:o.program(10,x,y),fn:o.noop,data:y});if(h||h===0){r+=h}r+='
        ";return r});this["DDG"]["templates"]["no_map_results"]=Handlebars.template(function(e,n,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,p,g="function",i=this.escapeExpression,o=this,m=c.helperMissing;function b(u,t){var q="",r,s;q+='style="min-height:';if(s=c.minHeight){r=s.call(u,{hash:{},data:t})}else{s=(u&&u.minHeight);r=typeof s===g?s.call(u,{hash:{},data:t}):s}q+=i(r)+'px;"';return q}h+='

        ';a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"noresults","No %s found for %s%s%s.",(n&&n.resultType),"",(n&&n.query),"",p):m.call(n,"lp","noresults","No %s found for %s%s%s.",(n&&n.resultType),"",(n&&n.query),"",p));if(a||a===0){h+=a}h+='

        ';a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"noresults","Suggestions:",p):m.call(n,"lp","noresults","Suggestions:",p));if(a||a===0){h+=a}h+='

        • ';a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"noresults","Make sure all words are spelled correctly.",p):m.call(n,"lp","noresults","Make sure all words are spelled correctly.",p));if(a||a===0){h+=a}h+="
        • ";a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"noresults","Try different keywords.",p):m.call(n,"lp","noresults","Try different keywords.",p));if(a||a===0){h+=a}h+="
        • ";a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"noresults","Try more general keywords.",p):m.call(n,"lp","noresults","Try more general keywords.",p));if(a||a===0){h+=a}h+="
        • ";a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"noresults","Try fewer keywords.",p):m.call(n,"lp","noresults","Try fewer keywords.",p));if(a||a===0){h+=a}h+='

        ';a=(f=c.lp||(n&&n.lp),p={hash:{},data:j},f?f.call(n,"noresults","Show web results",p):m.call(n,"lp","noresults","Show web results",p));if(a||a===0){h+=a}h+="

        ";return h});this["DDG"]["templates"]["no_results"]=Handlebars.template(function(f,o,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",b,g,s,h="function",j=this.escapeExpression,n=e.helperMissing,r=this;function c(y,x){var t="",u,v;t+='style="min-height:';if(v=e.minHeight){u=v.call(y,{hash:{},data:x})}else{v=(y&&y.minHeight);u=typeof v===h?v.call(y,{hash:{},data:x}):v}t+=j(u)+'px;"';return t}function a(z,y){var t="",v,x,u;t+='

        ';v=(x=e.lp||(z&&z.lp),u={hash:{},data:y},x?x.call(z,"noresults","Show web results",u):n.call(z,"lp","noresults","Show web results",u));if(v||v===0){t+=v}t+="

        ";return t}function q(z,y){var t="",v,x,u;t+='

        ';v=(x=e.lp||(z&&z.lp),u={hash:{},data:y},x?x.call(z,"noresults","Suggestions:",u):n.call(z,"lp","noresults","Suggestions:",u));if(v||v===0){t+=v}t+='

        • ';v=(x=e.lp||(z&&z.lp),u={hash:{},data:y},x?x.call(z,"noresults","Make sure all words are spelled correctly.",u):n.call(z,"lp","noresults","Make sure all words are spelled correctly.",u));if(v||v===0){t+=v}t+="
        • ";v=(x=e.lp||(z&&z.lp),u={hash:{},data:y},x?x.call(z,"noresults","Try different keywords.",u):n.call(z,"lp","noresults","Try different keywords.",u));if(v||v===0){t+=v}t+="
        • ";v=(x=e.lp||(z&&z.lp),u={hash:{},data:y},x?x.call(z,"noresults","Try more general keywords.",u):n.call(z,"lp","noresults","Try more general keywords.",u));if(v||v===0){t+=v}t+="
        • ";v=(x=e.lp||(z&&z.lp),u={hash:{},data:y},x?x.call(z,"noresults","Try fewer keywords.",u):n.call(z,"lp","noresults","Try fewer keywords.",u));if(v||v===0){t+=v}t+="
        ";v=e["if"].call(z,(z&&z.showRetryMessage),{hash:{},inverse:r.noop,fn:r.program(6,p,y),data:y});if(v||v===0){t+=v}return t}function p(z,y){var t="",v,x,u;t+='

        ';v=(x=e.lp||(z&&z.lp),u={hash:{},data:y},x?x.call(z,"noresults","%sClick here%s to try again, if you think there should be results for this search.",'',"",u):n.call(z,"lp","noresults","%sClick here%s to try again, if you think there should be results for this search.",'',"",u));if(v||v===0){t+=v}t+="

        ";return t}i+='

        ';b=(g=e.lp||(o&&o.lp),s={hash:{},data:k},g?g.call(o,"noresults","No %s found for %s%s%s.",(o&&o.resultType),"",(o&&o.query),"",s):n.call(o,"lp","noresults","No %s found for %s%s%s.",(o&&o.resultType),"",(o&&o.query),"",s));if(b||b===0){i+=b}i+="

        ";b=e["if"].call(o,(o&&o.showWebLink),{hash:{},inverse:r.program(5,q,k),fn:r.program(3,a,k),data:k});if(b||b===0){i+=b}i+="
        ";return i});this["DDG"]["templates"]["place_detail"]=Handlebars.template(function(k,E,C,r,K){this.compilerInfo=[4,">= 1.0.0"];C=this.merge(C,k.helpers);K=K||{};var D="",n,a,B=C.helperMissing,c=this.escapeExpression,z=this,e="function";function t(M,L){return" module__section--minimized"}function s(P,O){var L="",N,M;L+='';return L}function q(N,M){var L;L=C["if"].call(N,(N&&N.ratingClass),{hash:{},inverse:z.noop,fn:z.program(6,p,M),data:M});if(L||L===0){return L}else{return""}}function p(P,O){var M,N,L;M=(N=C.renderStars||(P&&P.renderStars),L={hash:{},data:O},N?N.call(P,(P&&P.ratingClass),L):B.call(P,"renderStars",(P&&P.ratingClass),L));if(M||M===0){return M}else{return""}}function m(Q,P){var L="",N,O,M;L+='';N=(O=C.reviewCount||(Q&&Q.reviewCount),M={hash:{},data:P},O?O.call(Q,(Q&&Q.reviewCount),(Q&&Q.reviewsURL),M):B.call(Q,"reviewCount",(Q&&Q.reviewCount),(Q&&Q.reviewsURL),M));if(N||N===0){L+=N}L+="";return L}function J(P,O){var L="",M,N;L+='

        ';if(N=C.subtitle){M=N.call(P,{hash:{},data:O})}else{N=(P&&P.subtitle);M=typeof N===e?N.call(P,{hash:{},data:O}):N}L+=c(M)+"

        ";return L}function I(P,O){var L="",M,N;L+='

        ';N=(O=C.lp||(Q&&Q.lp),M={hash:{},data:P},O?O.call(Q,"maps_places","Address",M):B.call(Q,"lp","maps_places","Address",M));if(N||N===0){L+=N}L+=": ";if(O=C.address){N=O.call(Q,{hash:{},data:P})}else{O=(Q&&Q.address);N=typeof O===e?O.call(Q,{hash:{},data:P}):O}L+=c(N)+"

        ";return L}function G(Q,P){var L="",N,O,M;L+='

        ';N=(O=C.lp||(Q&&Q.lp),M={hash:{},data:P},O?O.call(Q,"maps_places","Phone",M):B.call(Q,"lp","maps_places","Phone",M));if(N||N===0){L+=N}L+=': ';if(O=C.phone){N=O.call(Q,{hash:{},data:P})}else{O=(Q&&Q.phone);N=typeof O===e?O.call(Q,{hash:{},data:P}):O}L+=c(N)+"

        ";return L}function F(Q,P){var L="",N,O,M;L+='

        ';N=(O=C.lp||(Q&&Q.lp),M={hash:{},data:P},O?O.call(Q,"maps_places","Hours",M):B.call(Q,"lp","maps_places","Hours",M));if(N||N===0){L+=N}L+=': ';if(O=C.hoursToday){N=O.call(Q,{hash:{},data:P})}else{O=(Q&&Q.hoursToday);N=typeof O===e?O.call(Q,{hash:{},data:P}):O}L+=c(N)+'

        ';return L}function o(Q,P){var L="",N,O,M;L+='

        ';N=(O=C.lp||(Q&&Q.lp),M={hash:{},data:P},O?O.call(Q,"maps_places","Menu",M):B.call(Q,"lp","maps_places","Menu",M));if(N||N===0){L+=N}L+=': ';if(O=C.viewOnExternalServiceText){N=O.call(Q,{hash:{},data:P})}else{O=(Q&&Q.viewOnExternalServiceText);N=typeof O===e?O.call(Q,{hash:{},data:P}):O}L+=c(N)+"

        ";return L}function j(O,N){var L="",M;L+='
        ';M=C.each.call(O,(O&&O.reviews),{hash:{},inverse:z.noop,fn:z.programWithDepth(26,g,N,O),data:N});if(M||M===0){L+=M}L+="
        ";return L}function i(N,M){var L;L=C.unless.call(N,(N&&N.expanded),{hash:{},inverse:z.noop,fn:z.program(24,h,M),data:M});if(L||L===0){return L}else{return""}}function h(M,L){return" is-hidden"}function g(R,P,Q){var L="",N,O,M;L+='

        ';N=C["if"].call(R,(R&&R.ratingImage),{hash:{},inverse:z.program(37,v,P),fn:z.programWithDepth(35,x,P,R,Q),data:P});if(N||N===0){L+=N}L+='';if(O=C.formattedDate){N=O.call(R,{hash:{},data:P})}else{O=(R&&R.formattedDate);N=typeof O===e?O.call(R,{hash:{},data:P}):O}L+=c(N)+'

        ';if(O=C.excerpt){N=O.call(R,{hash:{},data:P})}else{O=(R&&R.excerpt);N=typeof O===e?O.call(R,{hash:{},data:P}):O}L+=c(N)+' ';N=(O=C.l||(R&&R.l),M={hash:{},data:P},O?O.call(R,"Read More",M):B.call(R,"l","Read More",M));if(N||N===0){L+=N}L+="

        ";return L}function f(M,L){return'class="review__user__url--fallback"'}function b(N,M){var L;return c(((L=((L=(N&&N.user)),L==null||L===false?L:L.url)),typeof L===e?L.apply(N):L))}function A(O,N){var L,M;if(M=C.url){L=M.call(O,{hash:{},data:N})}else{M=(O&&O.url);L=typeof M===e?M.call(O,{hash:{},data:N}):M}return c(L)}function y(Q,P){var L="",N,O,M;L+='';return L}function x(R,O,Q,P){var L="",N,M;L+='';return L}function v(O,N){var L="",M;L+=" ";M=C["if"].call(O,(O&&O.ratingClass),{hash:{},inverse:z.noop,fn:z.program(6,p,N),data:N});if(M||M===0){L+=M}return L}function u(Q,P){var L="",N,O,M;L+='

        ';N=(O=C.favicon||(Q&&Q.favicon),M={hash:{},data:P},O?O.call(Q,(Q&&Q.url),M):B.call(Q,"favicon",(Q&&Q.url),M));if(N||N===0){L+=N}L+=" ";if(O=C.moreAtExternalServiceText){N=O.call(Q,{hash:{},data:P})}else{O=(Q&&Q.moreAtExternalServiceText);N=typeof O===e?O.call(Q,{hash:{},data:P}):O}L+=c(N)+"

        ";return L}D+='

        ';n=C["if"].call(E,(E&&E.ratingImage),{hash:{},inverse:z.program(5,q,K),fn:z.program(3,s,K),data:K});if(n||n===0){D+=n}n=C["if"].call(E,(E&&E.reviewCount),{hash:{},inverse:z.noop,fn:z.program(8,m,K),data:K});if(n||n===0){D+=n}D+="

        ";n=C["if"].call(E,(E&&E.subtitle),{hash:{},inverse:z.noop,fn:z.program(10,J,K),data:K});if(n||n===0){D+=n}n=C["if"].call(E,(E&&E.website),{hash:{},inverse:z.noop,fn:z.program(12,I,K),data:K});if(n||n===0){D+=n}D+='
        ';n=C["if"].call(E,(E&&E.address),{hash:{},inverse:z.noop,fn:z.program(14,H,K),data:K});if(n||n===0){D+=n}n=C["if"].call(E,(E&&E.phone),{hash:{},inverse:z.noop,fn:z.program(16,G,K),data:K});if(n||n===0){D+=n}n=C["if"].call(E,(E&&E.hoursToday),{hash:{},inverse:z.noop,fn:z.program(18,F,K),data:K});if(n||n===0){D+=n}n=C["if"].call(E,(E&&E.menuURL),{hash:{},inverse:z.noop,fn:z.program(20,o,K),data:K});if(n||n===0){D+=n}D+="
        ";n=C["if"].call(E,(E&&E.reviews),{hash:{},inverse:z.noop,fn:z.program(22,j,K),data:K});if(n||n===0){D+=n}n=C["if"].call(E,(E&&E.url),{hash:{},inverse:z.noop,fn:z.program(39,u,K),data:K});if(n||n===0){D+=n}D+="
        ";return D});this["DDG"]["templates"]["place_header"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",b,g="function",i=this.escapeExpression,m=e.helperMissing,o=this;function c(q,p){return"module__header--with-image"}function a(u,t){var p="",r,s,q;p+='';r=(s=e.l||(u&&u.l),q={hash:{},data:t},s?s.call(u,"See Photos",q):m.call(u,"l","See Photos",q));if(r||r===0){p+=r}p+="";return p}h+='
        ';b=e["if"].call(n,(n&&n.image),{hash:{},inverse:o.noop,fn:o.program(3,a,j),data:j});if(b||b===0){h+=b}h+='
        ';return h});this["DDG"]["templates"]["place_hours"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",a,g="function",i=this.escapeExpression,m=e.helperMissing,p=this;function c(u,t){var r="",s;r+=''+i(((s=(u&&u.weekDay)),typeof s===g?s.apply(u):s))+'';s=e["if"].call(u,(u&&u.hours),{hash:{},inverse:p.program(6,o,t),fn:p.program(4,q,t),data:t});if(s||s===0){r+=s}r+="";return r}function b(s,r){return"place-hours__item--current"}function q(t,s){var r;return i(((r=(t&&t.hours)),typeof r===g?r.apply(t):r))}function o(v,u){var s,t,r;s=(t=e.l||(v&&v.l),r={hash:{},data:u},t?t.call(v,"Closed",r):m.call(v,"l","Closed",r));if(s||s===0){return s}else{return""}}h+='";return h});this["DDG"]["templates"]["place_list_item"]=Handlebars.template(function(j,x,u,p,E){this.compilerInfo=[4,">= 1.0.0"];u=this.merge(u,j.helpers);E=E||{};var v="",k,a,t=u.helperMissing,b=this.escapeExpression,c="function",s=this;function r(J,I){var F="",H,G;F+='
        ';return F}function q(J,I){var F="",G,H;if(H=u.number){G=H.call(J,{hash:{},data:I})}else{H=(J&&J.number);G=typeof H===c?H.call(J,{hash:{},data:I}):H}F+=b(G)+". ";return F}function o(J,I){var F="",G,H;F+='';return F}function n(G,F){return""}function i(I,H){var F="",G;F+='

        ';G=u["if"].call(I,(I&&I.ratingImage),{hash:{},inverse:s.program(12,C,H),fn:s.program(10,D,H),data:H});if(G||G===0){F+=G}G=u["if"].call(I,(I&&I.reviewCount),{hash:{},inverse:s.noop,fn:s.program(15,A,H),data:H});if(G||G===0){F+=G}F+="

        ";return F}function D(J,I){var F="",H,G;F+='';return F}function C(H,G){var F;F=u["if"].call(H,(H&&H.ratingClass),{hash:{},inverse:s.noop,fn:s.program(13,B,G),data:G});if(F||F===0){return F}else{return""}}function B(J,I){var G,H,F;G=(H=u.renderStars||(J&&J.renderStars),F={hash:{},data:I},H?H.call(J,(J&&J.ratingClass),F):t.call(J,"renderStars",(J&&J.ratingClass),F));if(G||G===0){return G}else{return""}}function A(J,I){var F="",G,H;F+='';G=u.unless.call(J,(J&&J.showLinks),{hash:{},inverse:s.noop,fn:s.program(18,y,I),data:I});if(G||G===0){F+=G}G=u["if"].call(J,(J&&J.showLinks),{hash:{},inverse:s.noop,fn:s.program(20,m,I),data:I});if(G||G===0){F+=G}F+="";return F}function z(G,F){return" module_link"}function y(J,I){var G,H,F;G=(H=u.reviewCount||(J&&J.reviewCount),F={hash:{},data:I},H?H.call(J,(J&&J.reviewCount),false,F):t.call(J,"reviewCount",(J&&J.reviewCount),false,F));if(G||G===0){return G}else{return""}}function m(J,I){var G,H,F;G=(H=u.reviewCount||(J&&J.reviewCount),F={hash:{},data:I},H?H.call(J,(J&&J.reviewCount),(J&&J.reviewsURL),F):t.call(J,"reviewCount",(J&&J.reviewCount),(J&&J.reviewsURL),F));if(G||G===0){return G}else{return""}}function h(J,I){var F="",G,H;F+='
      • ';if(H=u.subtitle){G=H.call(J,{hash:{},data:I})}else{H=(J&&J.subtitle);G=typeof H===c?H.call(J,{hash:{},data:I}):H}F+=b(G)+"
      • ";return F}function g(J,I){var F="",G,H;F+='
      • ';if(H=u.shortAddress){G=H.call(J,{hash:{},data:I})}else{H=(J&&J.shortAddress);G=typeof H===c?H.call(J,{hash:{},data:I}):H}F+=b(G);G=u["if"].call(J,(J&&J.distanceStr),{hash:{},inverse:s.noop,fn:s.program(25,f,I),data:I});if(G||G===0){F+=G}F+="
      • ";return F}function f(J,I){var F="",G,H;F+=" · ";if(H=u.distanceStr){G=H.call(J,{hash:{},data:I})}else{H=(J&&J.distanceStr);G=typeof H===c?H.call(J,{hash:{},data:I}):H}F+=b(G);return F}function e(K,J){var F="",H,I,G;F+='
      • ';H=(I=u.lp||(K&&K.lp),G={hash:{},data:J},I?I.call(K,"maps_places","Hours",G):t.call(K,"lp","maps_places","Hours",G));if(H||H===0){F+=H}F+=": ";if(I=u.hoursToday){H=I.call(K,{hash:{},data:J})}else{I=(K&&K.hoursToday);H=typeof I===c?I.call(K,{hash:{},data:J}):I}F+=b(H)+"
      • ";return F}v+='
        ';k=u["if"].call(x,(x&&x.image),{hash:{},inverse:s.noop,fn:s.program(1,r,E),data:E});if(k||k===0){v+=k}v+='

        ';k=u["if"].call(x,(x&&x.number),{hash:{},inverse:s.noop,fn:s.program(3,q,E),data:E});if(k||k===0){v+=k}k=u["if"].call(x,(x&&x.showLinks),{hash:{},inverse:s.noop,fn:s.program(5,o,E),data:E});if(k||k===0){v+=k}if(a=u.name){k=a.call(x,{hash:{},data:E})}else{a=(x&&x.name);k=typeof a===c?a.call(x,{hash:{},data:E}):a}v+=b(k);k=u["if"].call(x,(x&&x.showLinks),{hash:{},inverse:s.noop,fn:s.program(7,n,E),data:E});if(k||k===0){v+=k}v+="

        ";k=u["if"].call(x,(x&&x.rating),{hash:{},inverse:s.noop,fn:s.program(9,i,E),data:E});if(k||k===0){v+=k}v+='
          ';k=u["if"].call(x,(x&&x.subtitle),{hash:{},inverse:s.noop,fn:s.program(22,h,E),data:E});if(k||k===0){v+=k}k=u["if"].call(x,(x&&x.shortAddress),{hash:{},inverse:s.noop,fn:s.program(24,g,E),data:E});if(k||k===0){v+=k}k=u["if"].call(x,(x&&x.hoursToday),{hash:{},inverse:s.noop,fn:s.program(27,e,E),data:E});if(k||k===0){v+=k}v+="
        ";return v});this["DDG"]["templates"]["places_module"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='
        v
        ';return g});this["DDG"]["templates"]["places_multiple"]=Handlebars.template(function(c,m,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,n,k=b.helperMissing,f="function",h=this.escapeExpression;g+='
        ";return g});this["DDG"]["templates"]["places_single"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return'
        '});this["DDG"]["templates"]["places_single_map"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return'
        '});this["DDG"]["templates"]["region_filter"]=Handlebars.template(function(f,n,e,m,k){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);k=k||{};var i="",a,g,p=this,h="function",j=this.escapeExpression;function c(u,t){var r="",s;r+="is-active ";s=e["if"].call(u,(u&&u.hasActiveRegion),{hash:{},inverse:p.program(2,b,t),fn:p.noop,data:t});if(s||s===0){r+=s}return r}function b(s,r){return"has-inactive-region"}function q(u,t){var r="",s;r+='';return r}function o(s,r){return"is-on"}i+='";return i});this["DDG"]["templates"]["region_filter_modal"]=Handlebars.template(function(g,m,f,j,i){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);i=i||{};var h="",b,k=f.helperMissing,q=this;function e(s,r){return"modal--popover modal--popover--gray"}function a(s,r){return"modal--popout"}function p(x,v){var r="",t,u,s;r+='';return r}function o(x,v){var r="",t,u,s;r+='";return r}function n(x,v){var r="",t,u,s;r+='';t=(u=f.l||(x&&x.l),s={hash:{},data:v},u?u.call(x,"Clear All",s):k.call(x,"l","Clear All",s));if(t||t===0){r+=t}r+="";return r}function c(x,v){var r="",t,u,s;r+='';return r}h+='';return h});this["DDG"]["templates"]["region_filter_modal_items"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",b,m=e.helperMissing,p=this,g="function",i=this.escapeExpression;function c(x,v){var r="",t,u,s;r+='";return r}function a(v,u){var r="",s,t;s=e["if"].call(v,(v&&v.showDivider),{hash:{},inverse:p.noop,fn:p.program(4,q,u),data:u});if(s||s===0){r+=s}r+='";return r}function q(s,r){return''}function o(s,r){return"is-selected"}b=e["if"].call(n,(n&&n.showListHeader),{hash:{},inverse:p.noop,fn:p.program(1,c,j),data:j});if(b||b===0){h+=b}b=e.each.call(n,(n&&n.regions),{hash:{},inverse:p.noop,fn:p.program(3,a,j),data:j});if(b||b===0){h+=b}return h});this["DDG"]["templates"]["related_searches"]=Handlebars.template(function(e,k,c,j,i){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);i=i||{};var g="",a,f="function",h=this.escapeExpression,m=this;function b(r,q){var n="",o,p;n+='
      • ';if(p=c.text){o=p.call(r,{hash:{},data:q})}else{p=(r&&r.text);o=typeof p===f?p.call(r,{hash:{},data:q}):p}n+=h(o)+"
      • ";return n}g+='";return g});this["DDG"]["templates"]["report_ads_button"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='";return f});this["DDG"]["templates"]["report_image_modal"]=Handlebars.template(function(e,n,c,k,j){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);j=j||{};var h="",a,f,p,g="function",i=this.escapeExpression,m=c.helperMissing,o=this;function b(u,t){var q="",r,s;q+='";return q}h+='";return h});this["DDG"]["templates"]["result_extras"]=Handlebars.template(function(g,n,f,m,k){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);k=k||{};var i="",a,q=this,h="function",j=this.escapeExpression;function e(v,u){var s="",t;s+='';return s}function b(t,s){return"is-hidden"}function r(t,s){return"data-"}function p(t,s){return'target="_blank"'}function o(u,t){var s;return j(((s=((s=(u&&u.link)),s==null||s===false?s:s.prefix)),typeof s===h?s.apply(u):s))}function c(v,u){var s="",t;s+="/"+j(((t=((t=(v&&v.link)),t==null||t===false?t:t.path)),typeof t===h?t.apply(v):t));return s}i+='";return i});this["DDG"]["templates"]["result_extras_ad"]=Handlebars.template(function(f,m,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",a,p=this,g="function",i=this.escapeExpression;function c(u,t){var r="",s;r+='';return r}function b(s,r){return"is-hidden"}function q(s,r){return"data-"}function o(s,r){return'target="_blank"'}function n(u,t){var r="",s;r+="/"+i(((s=((s=(u&&u.link)),s==null||s===false?s:s.path)),typeof s===g?s.apply(u):s));return r}h+='";return h});this["DDG"]["templates"]["result_extras_unencrypted"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",b,m=e.helperMissing,g="function",i=this.escapeExpression,q=this;function c(v,u){var s,t,r;s=(t=e.include||(v&&v.include),r={hash:{icon:((v&&v.icon))},data:u},t?t.call(v,"result_icon_lock",r):m.call(v,"include","result_icon_lock",r));if(s||s===0){return s}else{return""}}function a(s,r){return'target="_blank"'}function p(u,t){var r="",s;r+="/"+i(((s=((s=(u&&u.link)),s==null||s===false?s:s.path)),typeof s===g?s.apply(u):s));return r}function o(x,v){var r="",t,u,s;r+='";return r}h+='";return h});this["DDG"]["templates"]["result_icon_lock"]=Handlebars.template(function(e,k,c,i,h){this.compilerInfo=[4,">= 1.0.0"];c=this.merge(c,e.helpers);h=h||{};var g="",a,f,n,m=this,j=c.helperMissing;function b(p,o){return"is-hidden"}g+='";return g});this["DDG"]["templates"]["result_snippet"]=Handlebars.template(function(h,i,e,b,f){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,h.helpers);f=f||{};var a="",c,g="function";a+='
        ';c=((c=((c=(i&&i.model)),c==null||c===false?c:c.organicResultSnippet)),typeof c===g?c.apply(i):c);if(c||c===0){a+=c}a+="
        ";return a});this["DDG"]["templates"]["result_snippet_ad"]=Handlebars.template(function(f,m,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",a,g="function",i=this.escapeExpression,n=this;function c(s,q,r){var o="",p;o+='";p=(typeof s===g?s.apply(s):s);if(p||p===0){o+=p}o+="
        ";return o}function b(p,o){return'target="_blank"'}h+='
        ';a=e.each.call(m,((a=(m&&m.model)),a==null||a===false?a:a.snippets),{hash:{},inverse:n.noop,fn:n.programWithDepth(1,c,j,m),data:j});if(a||a===0){h+=a}h+="
        ";return h});this["DDG"]["templates"]["safe_search"]=Handlebars.template(function(f,m,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var h="",b,g,o,k=e.helperMissing,n=this;function c(t,s){var q,r,p;q=(r=e.l||(t&&t.l),p={hash:{},data:s},r?r.call(t,"Safe search blocked results for %s.",(t&&t.searchTerm),p):k.call(t,"l","Safe search blocked results for %s.",(t&&t.searchTerm),p));if(q||q===0){return q}else{return""}}function a(t,s){var q,r,p;q=(r=e.l||(t&&t.l),p={hash:{},data:s},r?r.call(t,"Safe search blocked some results for %s.",(t&&t.searchTerm),p):k.call(t,"l","Safe search blocked some results for %s.",(t&&t.searchTerm),p));if(q||q===0){return q}else{return""}}h+='
        ';b=e["if"].call(m,(m&&m.noResults),{hash:{},inverse:n.program(3,a,i),fn:n.program(1,c,i),data:i});if(b||b===0){h+=b}h+='';b=(g=e.l||(m&&m.l),o={hash:{},data:i},g?g.call(m,"Turn off:",o):k.call(m,"l","Turn off:",o));if(b||b===0){h+=b}h+='';b=(g=e.l||(m&&m.l),o={hash:{},data:i},g?g.call(m,"temporarily",o):k.call(m,"l","temporarily",o));if(b||b===0){h+=b}h+='';b=(g=e.l||(m&&m.l),o={hash:{},data:i},g?g.call(m,"permanently",o):k.call(m,"l","permanently",o));if(b||b===0){h+=b}h+="
        ";return h});this["DDG"]["templates"]["settings_dropdown"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='
      • ";return f});this["DDG"]["templates"]["settings_dropdown_modal"]=Handlebars.template(function(f,s,q,j,v){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);v=v||{};var r="",h,a,e,c="function",b=this.escapeExpression,o=this,p=q.helperMissing;function n(y,x){return"modal--popover modal--popover--gray"}function m(A,z){var x="",y;x+="modal--popout ";y=q["if"].call(A,(A&&A.position),{hash:{},inverse:o.program(6,i,z),fn:o.program(4,k,z),data:z});if(y||y===0){x+=y}return x}function k(B,A){var x="",y,z;x+="modal--popout--";if(z=q.position){y=z.call(B,{hash:{},data:A})}else{z=(B&&B.position);y=typeof z===c?z.call(B,{hash:{},data:A}):z}x+=b(y);return x}function i(y,x){return"modal--popout--bottom"}function g(y,x){return"has-header"}function u(B,A){var x="",y,z;x+='";return x}function t(y,x){return'X'}r+='";return r});this["DDG"]["templates"]["site_query"]=Handlebars.template(function(f,s,q,k,u){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);u=u||{};var r="",h,a,e,p=q.helperMissing,c="function",b=this.escapeExpression,o=this;function n(A,z){var x,y,v;x=(y=q.l||(A&&A.l),v={hash:{},data:z},y?y.call(A,"Showing results excluding",v):p.call(A,"l","Showing results excluding",v));if(x||x===0){return x}else{return""}}function m(A,z){var x,y,v;x=(y=q.l||(A&&A.l),v={hash:{},data:z},y?y.call(A,"Showing results from",v):p.call(A,"l","Showing results from",v));if(x||x===0){return x}else{return""}}function j(x,v){return" msg__sites--mobile"}function i(A,y,z){var v="",x;v+='';x=q["if"].call(A,(z&&z.hasMultipleSites),{hash:{},inverse:o.program(10,t,y),fn:o.program(8,g,y),data:y});if(x||x===0){v+=x}v+="";return v}function g(A,z){var v="",x,y;v+='';if(y=q.site){x=y.call(A,{hash:{},data:z})}else{y=(A&&A.site);x=typeof y===c?y.call(A,{hash:{},data:z}):y}v+=b(x)+' X';return v}function t(z,y){var v,x;if(x=q.site){v=x.call(z,{hash:{},data:y})}else{x=(z&&z.site);v=typeof x===c?x.call(z,{hash:{},data:y}):x}return b(v)}r+='
        ';h=q["if"].call(s,(s&&s.isExcluding),{hash:{},inverse:o.program(3,m,u),fn:o.program(1,n,u),data:u});if(h||h===0){r+=h}r+=':';h=q.each.call(s,(s&&s.sites),{hash:{},inverse:o.noop,fn:o.programWithDepth(7,i,u,s),data:u});if(h||h===0){r+=h}r+='';h=(a=q.l||(s&&s.l),e={hash:{},data:u},a?a.call(s,"All Results",e):p.call(s,"l","All Results",e));if(h||h===0){r+=h}r+='';h=(a=q.l||(s&&s.l),e={hash:{},data:u},a?a.call(s,"All",e):p.call(s,"l","All",e));if(h||h===0){r+=h}r+="
        ";return r});this["DDG"]["templates"]["sitelinks"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",a,p=this,g="function",i=this.escapeExpression,m=e.helperMissing;function c(x,v){var r="",t,u,s;t=e["if"].call(x,(v==null||v===false?v:v.first),{hash:{},inverse:p.noop,fn:p.program(2,b,v),data:v});if(t||t===0){r+=t}t=e["if"].call(x,(x&&x.nextRow),{hash:{},inverse:p.noop,fn:p.program(4,q,v),data:v});if(t||t===0){r+=t}r+='
        ";t=e["if"].call(x,(v==null||v===false?v:v.last),{hash:{},inverse:p.noop,fn:p.program(6,o,v),data:v});if(t||t===0){r+=t}return r}function b(s,r){return''}function q(s,r){return''}function o(s,r){return""}h+='";return h});this["DDG"]["templates"]["spelling_dym"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='
        ';a=(e=b.l||(j&&j.l),k={hash:{},data:g},e?e.call(j,"Did you mean %s?",'',k):i.call(j,"l","Did you mean %s?",'',k));if(a||a===0){f+=a}f+="
        ";return f});this["DDG"]["templates"]["spelling_irf"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='
        ';a=(e=b.l||(j&&j.l),k={hash:{},data:g},e?e.call(j,"Including results for %s.",'',k):i.call(j,"l","Including results for %s.",'',k));if(a||a===0){f+=a}f+='';a=(e=b.l||(j&&j.l),k={hash:{},data:g},e?e.call(j,"Search only for %s?",'',k):i.call(j,"l","Search only for %s?",'',k));if(a||a===0){f+=a}f+="
        ";return f});this["DDG"]["templates"]["spelling_nmrc"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='
        ';a=(e=b.l||(j&&j.l),k={hash:{},data:g},e?e.call(j,"Not many results contain %s.",'',k):i.call(j,"l","Not many results contain %s.",'',k));if(a||a===0){f+=a}f+='';a=(e=b.l||(j&&j.l),k={hash:{},data:g},e?e.call(j,"Search only for %s?",'',k):i.call(j,"l","Search only for %s?",'',k));if(a||a===0){f+=a}f+="
        ";return f});this["DDG"]["templates"]["twitter_easter_egg"]=Handlebars.template(function(b,j,a,h,g){this.compilerInfo=[4,">= 1.0.0"];a=this.merge(a,b.helpers);g=g||{};var e="",c,k,i=a.helperMissing,f=this.escapeExpression;e+='';return e});this["DDG"]["templates"]["user_location_button"]=Handlebars.template(function(a,o,m,f,s){this.compilerInfo=[4,">= 1.0.0"];m=this.merge(m,a.helpers);s=s||{};var n="",c,k=m.helperMissing,j=this;function i(A,z){var u="",x,y,v;u+='';x=(y=m.include||(A&&A.include),v={hash:{className:("user-loc-btn__spinner spinner--dark")},data:z},y?y.call(A,"spinner",v):k.call(A,"include","spinner",v));if(x||x===0){u+=x}u+='Waiting For Location...Cancel';return u}function h(y,x){var u="",v;u+='';v=m["if"].call(y,(y&&y.update),{hash:{},inverse:j.program(12,r,x),fn:j.program(10,t,x),data:x});if(v||v===0){u+=v}u+="";v=m["if"].call(y,(y&&y.update),{hash:{},inverse:j.noop,fn:j.program(14,q,x),data:x});if(v||v===0){u+=v}v=m["if"].call(y,(y&&y.showManualLocationButton),{hash:{},inverse:j.noop,fn:j.program(16,p,x),data:x});if(v||v===0){u+=v}return u}function g(v,u){return"btn--primary"}function e(v,u){return"update"}function b(v,u){return"enable"}function t(v,u){return"Update"}function r(v,u){return"Enable Location"}function q(v,u){return'Clear'}function p(y,x){var u="",v;u+='Set Manually';return u}n+='
        ';c=m["if"].call(o,(o&&o.waiting),{hash:{},inverse:j.program(3,h,s),fn:j.program(1,i,s),data:s});if(c||c===0){n+=c}n+="
        ";return n});this["DDG"]["templates"]["user_location_cta"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='
        ×

        Find results closer to you.

        Try enabling anonymous location for more accurate results. Show More

        ";return f});this["DDG"]["templates"]["user_location_error"]=Handlebars.template(function(f,m,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",a,g="function",i=this.escapeExpression,p=this;function c(u,t){var r="",s;r+='

        Browser location unavailable.

        Set your location manually, or ensure Location Services is enabled. Help

        ';s=e["if"].call(u,(u&&u.instructions),{hash:{},inverse:p.noop,fn:p.program(6,o,t),data:t});if(s||s===0){r+=s}return r}function b(s,r){return"user-loc-error__header--small"}function q(s,r){return"-mobile"}function o(u,t){var r="",s;r+='
          ';s=e.each.call(u,(u&&u.instructions),{hash:{},inverse:p.noop,fn:p.program(7,n,t),data:t});if(s||s===0){r+=s}r+="
        ";return r}function n(t,s){var r="";r+='
      • '+i((typeof t===g?t.apply(t):t))+"
      • ";return r}h+='
        ';a=e["if"].call(m,(m&&m.error),{hash:{},inverse:p.noop,fn:p.program(1,c,j),data:j});if(a||a===0){h+=a}h+="
        ";return h});this["DDG"]["templates"]["user_location_filter_dropdown"]=Handlebars.template(function(c,j,b,h,g){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);g=g||{};var f="",a,e,k,i=b.helperMissing;f+='";return f});this["DDG"]["templates"]["user_location_filter_modal"]=Handlebars.template(function(g,o,f,n,m){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);m=m||{};var j="",b,h,i="function",k=this.escapeExpression,r=this;function e(u,t){return"modal--popover modal--popover--gray"}function a(x,v){var t="",u;t+="modal--popout ";u=f["if"].call(x,(x&&x.position),{hash:{},inverse:r.program(6,q,v),fn:r.program(4,s,v),data:v});if(u||u===0){t+=u}return t}function s(y,x){var t="",u,v;t+="modal--popout--";if(v=f.position){u=v.call(y,{hash:{},data:x})}else{v=(y&&y.position);u=typeof v===i?v.call(y,{hash:{},data:x}):v}t+=k(u);return t}function q(u,t){return"modal--popout--bottom"}function p(u,t){return"has-header"}function c(u,t){return'X'}j+='';return j});this["DDG"]["templates"]["user_location_info"]=Handlebars.template(function(e,f,b,a,c){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,e.helpers);c=c||{};return'

        DuckDuckGo is private by design. When you enable location, it is stored on your local device only. When you search, your device then sends it to us, we use it to improve results for that search, and then we promptly throw it away, such that you remain anonymous. Learn more about how we designed this technology to protect your privacy here.

        '});this["DDG"]["templates"]["user_location_survey"]=Handlebars.template(function(f,m,e,j,i){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);i=i||{};var h="",b,g,o,k=e.helperMissing,n=this;function c(q,p){return'Set Manually'}function a(q,p){return"-mobile"}h+='

        You\'ve chosen not to set your location.

        Before you go, please help us understand why:

        ';return h});this["DDG"]["templates"]["vertical_link_item"]=Handlebars.template(function(f,s,q,k,z){this.compilerInfo=[4,">= 1.0.0"];q=this.merge(q,f.helpers);z=z||{};var r="",h,a,e,p=q.helperMissing,b=this.escapeExpression,o=this,c="function";function n(B,A){return" highlight"}function m(B,A){return" result--img"}function j(B,A){return" result--url-above-snippet"}function i(D,C){var A="",B;A+='
        ';B=q["if"].call(D,((B=(D&&D.model)),B==null||B===false?B:B.image),{hash:{},inverse:o.program(10,y,C),fn:o.program(8,g,C),data:C});if(B||B===0){A+=B}A+="
        ";return A}function g(F,E){var A="",C,D,B;A+='
        ';return A}function y(C,B){var A;A=q["if"].call(C,((A=(C&&C.model)),A==null||A===false?A:A.fetch_image),{hash:{},inverse:o.noop,fn:o.program(11,x,B),data:B});if(A||A===0){return A}else{return""}}function x(B,A){return'
        '}function v(D,C){var A="",B;A+='
        ';B=((B=((B=(D&&D.model)),B==null||B===false?B:B.excerpt)),typeof B===c?B.apply(D):B);if(B||B===0){A+=B}A+="
        ";return A}function u(B,A){return"is-hidden"}function t(D,C){var A="",B;A+='|'+b(((B=((B=(D&&D.model)),B==null||B===false?B:B.relative_time)),typeof B===c?B.apply(D):B))+"";return A}r+='
        ';h=q["if"].call(s,((h=(s&&s.model)),h==null||h===false?h:h.showImage),{hash:{},inverse:o.noop,fn:o.program(7,i,z),data:z});if(h||h===0){r+=h}r+='

        ';h=((h=((h=(s&&s.model)),h==null||h===false?h:h.title)),typeof h===c?h.apply(s):h);if(h||h===0){r+=h}r+='';h=(a=q.l||(s&&s.l),e={hash:{},data:z},a?a.call(s,"Your browser indicates if you've visited this link",e):p.call(s,"l","Your browser indicates if you've visited this link",e));if(h||h===0){r+=h}r+="

        ";h=q["if"].call(s,(s&&s.urlAboveSnippet),{hash:{},inverse:o.program(13,v,z),fn:o.noop,data:z});if(h||h===0){r+=h}r+='
        ';h=(a=q.favicon||(s&&s.favicon),e={hash:{},data:z},a?a.call(s,((h=(s&&s.model)),h==null||h===false?h:h.favicon_url),e):p.call(s,"favicon",((h=(s&&s.model)),h==null||h===false?h:h.favicon_url),e));if(h||h===0){r+=h}r+='';h=((h=((h=(s&&s.model)),h==null||h===false?h:h.source)),typeof h===c?h.apply(s):h);if(h||h===0){r+=h}r+="";h=q["if"].call(s,((h=(s&&s.model)),h==null||h===false?h:h.relative_time),{hash:{},inverse:o.noop,fn:o.program(17,t,z),data:z});if(h||h===0){r+=h}r+="
        ";h=q["if"].call(s,(s&&s.urlAboveSnippet),{hash:{},inverse:o.noop,fn:o.program(13,v,z),data:z});if(h||h===0){r+=h}r+="
        ";return r});this["DDG"]["templates"]["vertical_links"]=Handlebars.template(function(c,k,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,f="function",h=this.escapeExpression;g+='';return g});this["DDG"]["templates"]["vertical_load_more"]=Handlebars.template(function(c,k,b,i,h){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);h=h||{};var g="",a,e,m,j=b.helperMissing,f="function";g+='
        ';a=(e=b.l||(k&&k.l),m={hash:{},data:h},e?e.call(k,"Load More",m):j.call(k,"l","Load More",m));if(a||a===0){g+=a}g+="";if(e=b.loader){a=e.call(k,{hash:{},data:h})}else{e=(k&&k.loader);a=typeof e===f?e.call(k,{hash:{},data:h}):e}if(a||a===0){g+=a}g+="
        ";return g});this["DDG"]["templates"]["vertical_map"]=Handlebars.template(function(g,o,f,m,k){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);k=k||{};var i="",b,h="function",j=this.escapeExpression,n=f.helperMissing,s=this;function e(u,t){return"is-hidden"}function a(x,v){var t="",u;t+="vertical--map--sidebar-"+j(((u=((u=(x&&x.model)),u==null||u===false?u:u.sidebarLayout)),typeof u===h?u.apply(x):u));return t}function r(u,t){return'
        '}function q(x,v){var t="",u;t+='
        ';u=f["if"].call(x,((u=(x&&x.model)),u==null||u===false?u:u.isMoreAtVisible),{hash:{},inverse:s.noop,fn:s.program(10,c,v),data:v});if(u||u===0){t+=u}t+='
        ';return t}function p(u,t){return"has-requery"}function c(z,y){var t="",v,x,u;t+='";return t}i+='
        ';b=f["if"].call(o,((b=(o&&o.model)),b==null||b===false?b:b.isLocalRequery),{hash:{},inverse:s.noop,fn:s.program(5,r,k),data:k});if(b||b===0){i+=b}i+='
        ';b=f["if"].call(o,((b=(o&&o.model)),b==null||b===false?b:b.isMapSidebarVisible),{hash:{},inverse:s.noop,fn:s.program(7,q,k),data:k});if(b||b===0){i+=b}i+="
        ";return i});this["DDG"]["templates"]["vertical_separator"]=Handlebars.template(function(f,n,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",b,g="function",i=this.escapeExpression,m=e.helperMissing,r=this;function c(t,s){return"result--sep--hr"}function a(t,s){return"has-pagenum"}function q(v,u){var s="",t;t=e["if"].call(v,(v&&v.line),{hash:{},inverse:r.program(8,o,u),fn:r.program(6,p,u),data:u});if(t||t===0){s+=t}s+="
        ";return s}function p(x,v){var s="",t,u;s+='
        ';if(u=e.pageNumber){t=u.call(x,{hash:{},data:v})}else{u=(x&&x.pageNumber);t=typeof u===g?u.call(x,{hash:{},data:v}):u}s+=i(t)+"
        ";return s}function o(y,x){var s="",u,v,t;s+='
        ';u=(v=e.l||(y&&y.l),t={hash:{},data:x},v?v.call(y,"Page %s",(y&&y.pageNumber),t):m.call(y,"l","Page %s",(y&&y.pageNumber),t));if(u||u===0){s+=u}s+="
        ";return s}h+='
        ';b=e["if"].call(n,(n&&n.pageNumber),{hash:{},inverse:r.noop,fn:r.program(5,q,j),data:j});if(b||b===0){h+=b}h+="
        ";return h});this["DDG"]["templates"]["web_attribution"]=Handlebars.template(function(c,m,b,j,i){this.compilerInfo=[4,">= 1.0.0"];b=this.merge(b,c.helpers);i=i||{};var g="",a,e,n,k=b.helperMissing,f="function",h=this.escapeExpression;g+='';return g});this["DDG"]["templates"]["welcome_message"]=Handlebars.template(function(f,j,e,i,h){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);h=h||{};var g="",b,k=this;function c(n,m){return'welcome-message'}function a(n,m){return''}g+='

        You have the DuckDuckGo extension!

        What does that mean?

        • Your searches use DuckDuckGo for anonymity.
        • Trackers are blocked on websites you visit.
        • Websites are encrypted (HTTPS) when possible.
        X
        ';b=e["if"].call(j,(j&&j.inlineIllustration),{hash:{},inverse:k.program(3,a,h),fn:k.program(1,c,h),data:h});if(b||b===0){g+=b}g+="
        ";return g});