DDG.Data.Experiments={about_module:{versions:["v35-1","v35-2","v35-3","v35-4","v36-7","v37-1","v37-2","v37-3"],variants:["a","b"]},stack_overflow:{versions:["v35-5","v35-6","v35-7","v36-1","v36-2","v36-3"],variants:["a","b"]},spelling:{versions:["v33-6","v33-7","v34-1","v34-2","v34-3"],variants:["a","b"]},region_override:{versions:["v38-2","v38-3","v38-4","v38-5","v38-6","v38-7","v39-1","v39-2"],variants:["a","b"]},control:{versions:["v39-3","v39-4","v39-5","v39-6","v39-7","v40-1","v40-2","v40-3","v40-4","v40-5","v40-6","v40-7"],variants:["a","b"]},filter_label:{versions:["v41-1","v41-2","v41-3","v41-4","v41-5","v41-6","v41-7"],variants:["a","b","c","d"]},filters_above_organics:{versions:["v42-1","v42-2","v42-3","v42-4","v42-5","v42-6","v42-7"],variants:["a","b","c","d"]},organic_ux:{versions:["v44-1","v44-2","v44-3","v44-4","v44-5","v44-6","v44-7"],variants:["a","b","c","d","e"],locale:"en_us"},static_news:{versions:["v47-6","v47-7","v48-1","v48-2","v48-3","v48-4","v48-5"],variants:["a","b"]},control2:{versions:["v51-2","v51-3","v51-4","v51-5"],variants:["a","b"]},safe_search_filter:{versions:["v52-1","v52-2","v52-3","v52-4","v52-5","v52-6","v52-7"],variants:["a","b"]},map_module:{versions:["v57-1","v57-2","v57-3","v57-4","v57-5","v57-6","v57-7"],variants:["a","b"],locale:"en_us"},images_ux:{versions:["v58-1"],variants:["a","b"]},images_ux_detail:{versions:["v58-6","v58-7"],variants:["a","b"]},images_ux_filters:{versions:["v59-1","v59-2","v59-3"],variants:["a","b"],englishOnly:true},placeholder_delay:{versions:["v61-1","v61-2","v61-3"],variants:["a","b"]},back_button:{versions:["v63-1","v63-2","v63-3","v63-4","v63-5","v63-6"],variants:["a","b"]},fixed_ux_header:{versions:["v64-3","v64-4","v64-5","v64-6","v64-7"],variants:["a","b"]},ad_layouts:{versions:["v66-1","v66-2","v66-3","v66-4","v66-5","v66-6","v66-7","v67-1"],variants:["a","b","c"]},ad_layouts_2:{versions:["v67-2","v67-3","v67-4","v67-5","v67-6","v67-7"],variants:["b","c"]},serp_ui:{versions:["v88-3","v88-4","v88-5","v88-6","v88-7","v89-1","v89-2","v89-3","v89-4"],variants:["q","r"],platformName:"androidwos"},chrome_desktop_us_portableapps_control:{versions:["v121-2","v121-3","v121-4","v121-5","v121-6","v121-7","v122-1","v122-2","v122-3","v122-4","v122-5","v122-6","v122-7"],variants:["o"],locale:"en_us",desktopOnly:true,displayBrowserName:"Chrome"},serp_show_hide_bolding:{versions:["v124-1","v124-2","v124-3","v124-4","v124-5","v124-6","v124-7","v125-1","v125-2","v125-3","v125-4"],variants:["a","b","c"]},green_urls:{versions:["v127-1","v127-2","v127-3","v127-4","v127-5","v127-6","v127-7","v128-1"],variants:["a","b","c","d"]},chrome_desktop_store_install_en:{allocation:[0.5,1],variants:["e","f"],desktopOnly:true,englishOnly:true,atb:true,active:false,displayBrowserName:"Chrome",canInstallExtension:true},chrome_desktop_store_install_non_en:{allocation:[0.5,1],variants:["g","h"],desktopOnly:true,nonEnglishOnly:true,atb:true,active:false,displayBrowserName:"Chrome",canInstallExtension:true},serp_footer:{versions:["v129-6","v129-7","v130-1","v130-2","v130-3","v130-4","v130-5","v130-6"],englishOnly:true,desktopOnly:true,variants:["e","f"]},safe_search_moderate_default:{versions:["v136-2","v136-3","v136-4","v136-5","v136-6","v136-7","v137-1","v137-2"],variants:["a","b"]},region_toggle_default:{versions:["v140-2","v140-3","v140-4","v140-5","v140-6","v140-7","v141-1","v141-2","v141-3"],variants:["a","b"],desktopOnly:true},deemphasize_http_links:{versions:["v143-7","v144-1","v144-2","v144-3","v144-4","v144-5","v144-6"],variants:["a","b","c"]},no_ads:{versions:["v148-2","v148-3","v148-4","v148-5","v148-6"],variants:["a","b"],desktopOnly:true},fonts:{versions:["v154-1","v154-2","v154-3","v154-4","v154-5","v154-6"],variants:["a","b"],mobileAppVariants:{sa:"a",sb:"b",sc:"a",sd:"b"}},ui_updates:{pixelId:"uiu",versions:["v155-1","v155-2","v155-3","v155-4","v155-5","v155-6","v155-7","v156-1","v156-2","v156-3","v156-4","v156-5","v156-6","v156-7"],variants:["a","b"],mobileAppVariants:{sa:"a",sb:"b",sc:"a",sd:"b"}},post_install_onboarding:{versions:["v157-1","v157-2","v157-3","v157-4","v157-5","v157-6","v157-7"],variants:["a","b"],desktopOnly:true},regions_toggle_exp:{pixelId:"rtl",versions:["v158-1","v158-2","v158-3","v158-4","v158-5","v158-6","v158-7","v159-1","v159-2","v159-3","v159-4","v159-5","v159-6","v159-7"],variants:["a","b"],countries:["DE","FR","PL","CA","IT","ES","AU","BR","NL","GB","ID"],desktopOnly:true},welcome_message:{pixelId:"wcm",versions:["v163-1","v163-2","v163-3","v163-4","v163-5","v163-6"],variants:["a","b"],desktopOnly:true,englishOnly:true},less_prominent_answerbar:{pixelId:"lpab",versions:["v163-7","v164-1","v164-2","v164-3","v164-4","v164-5","v164-6"],variants:["a","b"],desktopOnly:true},settings_dropdown:{pixelId:"sdd",versions:["v165-3","v165-4","v165-5","v165-6","v165-7","v166-1","v166-2"],variants:["a","b","c"],desktopOnly:true,englishOnly:true},welcome_message_2:{pixelId:"wcm2",versions:["v166-3","v166-4","v166-5","v166-6","v166-6","v167-1"],variants:["a","b"],desktopOnly:true,englishOnly:true},modal_dismiss_setting:{allocation:[0.6,1],variants:["i","j"],desktopOnly:true,atb:true,active:true,canInstallExtension:true,stickyAtbVariant:true},homepage_vsplit_landing:{allocation:[0.15,0.2],variants:["d","e"],desktopOnly:true,englishOnly:true,atb:true,active:true,canInstallExtension:true,defaultThemeOnly:true,minScreenSize:{width:800,height:600}},homepage_landing:{allocation:[0.033,0.066,0.1],variants:["a","b","c"],desktopOnly:true,englishOnly:true,atb:true,active:true,canInstallExtension:true,defaultThemeOnly:true,stickyAtbVariant:true},welcome_message_3:{pixelId:"wcm3",versions:["v168-1","v168-2","v168-3","v168-4","v168-5","v168-6","v168-7"],variants:["a","b","c","d"],desktopOnly:true,englishOnly:true},extension_optin:{versions:["v169-3","v169-4","v169-5","v169-6","v169-7","v170-1","v170-2","v170-3","v170-4","v170-5"],allocation:[0.5,1],variants:["k","l"],desktopOnly:true,englishOnly:true,canInstallExtension:true},mobile_cards:{pixelId:"mcds",versions:["v169-2","v169-3","v169-4","v169-5","v169-6","v169-7","v170-1","v170-7","v171-1","v171-2"],variants:["a","b"],appsOnly:true,displayBrowserName:"DDG iPhone",mobileAppVariants:{sc:"a",se:"b"}}};DDG.Data.Onboarding={_:{},a:{description:"UrbanDictionary campaign 1",variant:"z",urbanDictionaryLandingPage:true},b:{},c:{description:"UrbanDictionary campaign 2",variant:"z",urbanDictionaryLandingPage:true},d:{description:"UrbanDictionary campaign 3",variant:"z",urbanDictionaryLandingPage:true},e:{description:"UrbanDictionary campaign 4",variant:"z",urbanDictionaryLandingPage:true},f:{},g:{},h:{},i:{description:"UrbanDictionary campaign 5",variant:"z",urbanDictionaryLandingPage:true},j:{description:"UrbanDictionary campaign 6",variant:"z",urbanDictionaryLandingPage:true},k:{description:"UrbanDictionary campaign 7",variant:"z",urbanDictionaryLandingPage:true},l:{description:"UrbanDictionary campaign 8",variant:"z",urbanDictionaryLandingPage:true},m:{description:"UrbanDictionary campaign 9",variant:"z",urbanDictionaryLandingPage:true},n:{description:"UrbanDictionary campaign 10",variant:"z",urbanDictionaryLandingPage:true},o:{description:"UrbanDictionary campaign 11",variant:"z",urbanDictionaryLandingPage:true},p:{description:"UrbanDictionary campaign 12",variant:"z",urbanDictionaryLandingPage:true},q:{description:"UrbanDictionary campaign 13",variant:"z",urbanDictionaryLandingPage:true},r:{description:"UrbanDictionary campaign 14",variant:"z",urbanDictionaryLandingPage:true},s:{description:"UrbanDictionary campaign 15",variant:"z",urbanDictionaryLandingPage:true},t:{description:"PortableApps No Modal",modalButtons:0},u:{description:"PortableApps One Button Modal",modalButtons:1},v:{description:"PortableApps Two Button Modal",modalButtons:2},w:{},x:{description:"Pagefair 1",variant:"y",urbanDictionaryLandingPage:true},y:{},z:{description:"Pagefair 2",variant:"y",urbanDictionaryLandingPage:true}};DDG.Data.Apps={isIPhone:"https://itunes.apple.com/us/app/id663592361?mt=8",isAndroid:"market://details?id=com.duckduckgo.mobile.android"};!function(a){a.Data.Homepage={queries:[{href:"/?q=tilt+shift+images&ia=images",label:"tilt shift images"},{href:"/?q=thailand+beach+images&ia=images",label:"thailand beach images"},{href:"/?q=gopro+videos&ia=videos",label:"gopro videos"},{href:"/?q=jimmy+fallon+videos&ia=videos",label:"jimmy fallon videos"},{href:"/?q=weather+in+encinitas&ia=weather",label:"weather in encinitas"},{href:"/?q=weather+in+paris&ia=weather",label:"weather in paris"},{href:"/?q=sorbet+recipes&ia=recipes",label:"sorbet recipes"},{href:"/?q=tilapia+recipes&ia=recipes",label:"tilapia recipes"},{href:"/?q=thai+food+in+San+Francisco&ia=places",label:"thai food in San Francisco"},{href:"/?q=bars+near+me",label:"bars near me"},{href:"/?q=katz%27s+deli+new+york&ia=places",label:"katz's deli new york"},{href:"/?q=orange&ia=meanings",label:"orange"},{href:"/?q=daft+punk+soundcloud&ia=soundcloud",label:"daft punk soundcloud"},{href:"/?q=8oz+to+grams&ia=answer",label:"8oz to grams"},{href:"/?q=define+superlative&ia=definition",label:"define superlative"},{href:"/?q=people+in+space&ia=answer",label:"people in space"}]}}(DDG);DDG.Data.StaticIAs=[{id:"images",name:"Images",type:"static",answerType:"Images",meta:{idField:"image",itemType:l("Images"),linkPrimaryText:1,autoExpand:1,developer:[{name:"DDG Team"}],signal_from:"images"},parameters:[{key:"size",values:[{id:"",name:lp("size","All Sizes")},{id:"Small",name:lp("size","Small")},{id:"Medium",name:lp("size","Medium")},{id:"Large",name:lp("size","Large")},{id:"Wallpaper",name:lp("size","Wallpaper")}]},{key:"type",values:[{id:"",name:lp("image-type","All Types")},{id:"photo",name:lp("image-type","Photograph")},{id:"clipart",name:lp("image-type","Clipart")},{id:"gif",name:lp("image-type","Animated GIF")},{id:"transparent",name:lp("image-type","Transparent")}]},{key:"layout",values:[{id:"",name:lp("image-layout","All Layouts")},{id:"Square",name:lp("image-layout","Square")},{id:"Tall",name:lp("image-layout","Tall")},{id:"Wide",name:lp("image-layout","Wide")}]},{key:"color",values:[{id:"",name:lp("image-color","All Colors")},{id:"color",name:lp("image-color","Color Only")},{id:"Monochrome",name:lp("image-color","Black and White")},{id:"Red",name:lp("color","Red")},{id:"Orange",name:lp("color","Orange")},{id:"Yellow",name:lp("color","Yellow")},{id:"Green",name:lp("color","Green")},{id:"Blue",name:lp("color","Blue")},{id:"Purple",name:lp("color","Purple")},{id:"Pink",name:lp("color","Pink")},{id:"Brown",name:lp("color","Brown")},{id:"Black",name:lp("color","Black")},{id:"Gray",name:lp("color","Gray")},{id:"Teal",name:lp("color","Teal")},{id:"White",name:lp("color","White")}]}],sources:[{id:"ddg",name:"DuckDuckGo",requeryURL:"/i.js?l="+window.rl+"&o=json&q="}],region:true,safeSearch:true,templates:DDG.Data.templates.groups.images,deferredURL:"/i.js?l="+window.rl+"&o=json&q="},{id:"videos",name:"Videos",model:"Video",type:"static",parameters:[{key:"publishedAfter",values:[{id:"",name:l("Any Time")},{id:"d",name:l("Past Day")},{id:"w",name:l("Past Week")},{id:"m",name:l("Past Month")}]},{key:"videoDefinition",values:[{id:"",name:lp("video-resolution","Any Resolution")},{id:"high",name:lp("video-resolution","High Definition")},{id:"standard",name:lp("video-resolution","Standard Definition")}]},{key:"videoDuration",showDescriptions:true,values:[{id:"",name:lp("video-duration","Any Duration"),description:lp("video-duration","Show videos of any length")},{id:"short",name:lp("video-duration","Short"),description:lp("video-duration","Less than 4 minutes")},{id:"medium",name:lp("video-duration","Medium"),description:lp("video-duration","Between 4 and 20 minutes")},{id:"long",name:lp("video-duration","Long"),description:lp("video-duration","More than 20 minutes")}]},{key:"videoLicense",values:[{id:"",name:lp("video-license","Any License")},{id:"creativeCommon",name:lp("video-license","Creative Commons")},{id:"youtube",name:lp("video-license","YouTube Standard")}]}],sources:[{id:"ddg",name:"DuckDuckGo",requeryURL:"/v.js?l="+window.rl+"&o=json&sr=1&q="}],region:true,safeSearch:true,meta:{idField:"id",itemType:l("Videos"),developer:[{name:"DDG Team"}],signal_from:"videos",linkPrimaryText:1,autoExpand:1,detailOverlay:"VideoDetailOverlay"},templates:DDG.Data.templates.groups.videos,deferredURL:"/v.js?l="+window.rl+"&o=json&sr=1&q=",allowModuleIA:DDG.history.get("iax")==="videos"?false:true},{id:"news",name:"News",answerType:"News",type:"static",meta:{developer:[{name:"DDG Team"}],signal_from:"news",itemType:l("News Articles"),rerender:["image"],primaryText:l("Recent News")},safeSearch:true,region:true,date:true,allowVertical:true,templates:{item:"news_item"},deferredURL:function(){return"/news.js?l="+window.rl+"&o=json&noamp="+(DDG.device.isDesktop?1:0)+"&q="},experimentalDeferredURL:"/news.js?l="+window.rl+"&o=json&exp=1&q="}];!function(a){a.Data.HiddenFields={DATE_FILTER:"df",DATE_SORT:"ds",IA_REQUERY:"iar"}}(DDG);!function(a){var b=a.Models;b.Base=function(c){this.setMaxListeners(500);$.extend(this,c)};b.Base.prototype=$.extend({},EventEmitter2.prototype,a.Utils.Events,{set:function(c,i,f){if(typeof c==="object"){for(var e in c){this.set(e,c[e],i)}}f=f||{};var h=this[c],g=h!==i;this[c]=i;!f.silent&&g&&this._emitChange(c,h)},clear:function(c,e){this.set(c,null,e)},UUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(g){var f=Math.random()*16|0,e=g=="x"?f:(f&3|8);return e.toString(16)})},getInstance:function(c){if(!this["_"+c]){this["_"+c]=a[c]}return this["_"+c]},_emitChange:function(c,e){var f=this[c];this.emit("change:"+c,f,e);this.emit("change",c,f,e)}})}(DDG);!function(m){var b=m.Models.Base,c,p=1440,o=1079,n=864,g=590,j=425,i=[{id:"xl",width:p},{id:"l",width:o},{id:"m",width:n},{id:"s",width:g},{id:"xs",width:j}],f={xl:94,l:94,m:58,s:0,xs:0},r=j*0.75,q=j*0.9,e=j,a=g,h=Math.ceil(g*1.25);m.Models.Device=c=function(A){b.call(this,A);this.isEnglish=window.locale&&window.locale.substring(0,2)==="en";var s=this.ua,B=A.host||window.location.host;this.isEdge=!!/edge\//.test(s);this.isEdgeMobile=!!/(edgios|edga)/.test(s);if(!this.isEdge){this.isIE=!!document.all;this.isIE9=!!/msie 9/.test(s);this.isIE10p=!!/msie 1[0123456789]/.test(s);this.isIE11p=!!(/trident\/[789]/.test(s)||/edge\/[0123456789]/.test(s));if(this.isIE10p||this.isIE11p){this.isIE=true}}this.isWindowsPhone=!!/windows phone/.test(s);this.isSafari=!!(!this.isWindowsPhone&&!this.isEdgeMobile&&/\([windows|macintosh|ipad|iphone].* version.* safari/.test(s));this.safariVersion=-1;if(this.isSafari){var u=s.match(/version\/([0-9][0-9]?\.[0-9])/);this.safariVersion=(u)?parseFloat(u[1]):-1}this.isWebkit=!!/webkit/.test(s);this.isYandex=!!/yabrowser/.test(s);this.isBeakerBrowser=!!/beakerbrowser/.test(s);this.isChromiumBased=!!(/chrome(?!frame)|crios/.test(s)&&!this.isIE&&!this.isEdge);this.isChrome=!!(this.isChromiumBased&&!/vivaldi/.test(s)&&!this.isYandex&&!/opr\/[0-9][0-9]?/.test(s)&&!this.isBeakerBrowser&&!this.isEdgeMobile);this.isFirefox=!!/firefox|fxios/.test(s);this.firefoxVersion=-1;if(this.isFirefox){var z=s.match(/(firefox|fxios)\/([0-9]+\.[0-9]+)/);this.firefoxVersion=(z)?parseFloat(z[2]):-1}this.isFirefox38AndUp=this.firefoxVersion>37;this.isFirefox51AndUp=this.firefoxVersion>50;this.isFirefoxLessThan57=this.isFirefox&&this.firefoxVersion<57;this.isFirefoxFocus=!!/focus/.test(s);this.operaVersion=-1;this.isOpera=!!/opera/.test(s);if(this.isOpera){var v=s.match(/version\/([0-9.]+)/);if(v){this.operaVersion=parseFloat(v[1],10)}}else{if(/opr\/[0-9][0-9]?/.test(s)){this.operaVersion=parseInt(s.match(/opr\/([0-9][0-9]?)/)[1],10)}}this.isOperaMini=!!/opera mini|opios/.test(s);this.isOperaMobile=!!/opera mobi/.test(s);this.isIPod=!!/ipod/.test(s);this.isIPad=!!/ipad/.test(s);this.isIPhone=!!(!this.isWindowsPhone&&/iphone/.test(s));this.isIDevice=(this.isIPad||this.isIPhone||/\Wios\W/.test(s));this.isIOS8p=!!((this.isIDevice&&/os (8|9|[1-9][0-9])|os 10_10/.test(s)));this.isIOS8pSafari=!!((this.isIOS8p&&!this.isChrome&&!this.isOperaMini&&!this.isFirefox));this.isAndroid=!!(!this.isWindowsPhone&&/android/.test(s));this.isLegacyAndroid=this.isAndroid&&/android ([1-3])|android (4\.[0-2])/.test(s);this.isBlackberry=!!/blackberry/.test(s);this.chromeVersion=-1;if(this.isChromiumBased){var y=s.match(/(chrome|crios)\/([0-9][0-9]?)/);this.chromeVersion=(y)?parseInt(y[2],10):-1}this.isChrome31AndUpOnAndroid=!!(this.isAndroid&&this.isChrome&&this.chromeVersion>30);this.isChrome48AndUp=!!(this.isChrome&&this.chromeVersion>47);this.isAndroidChromeNoOpenSearch=!!(this.isAndroid&&this.isChrome&&this.chromeVersion>31&&this.chromeVersion<57);this.isSilk=!!/silk/.test(s);this.isKonqueror=!!/konqueror/.test(s);this.isOSX=!!/mac os x [0-9]/.test(s);this.isOSXMavericksAndUp=!!/mac os x 10(_|\.)(1\d|9)/.test(s);this.isWindows=!!/windows/.test(s);this.isWindows10=!!/windows nt 10/.test(s);this.isLinux=!!(!this.isAndroid&&/linux/.test(s));this.isOnion=!!B.match(/\.onion$/i);this.isDDGIgnore=!!/ddgignore/.test(s);this.isDDGTest=!!/ddgtest/.test(s);this.isSamsung=!!/samsungbrowser/.test(s);this.isBrave=(this.isChrome&&!this.isDDGTest&&!this.isBeakerBrowser&&(this.isOSX||this.isWindows||this.isLinux)&&(!window.chrome||!window.chrome.csi))||(this.isIOS8p&&this.isFirefox&&/(\d{2}\.){3}\d{2}/.test(s))||/brave chrome/.test(s);this.isDDGApp=!!(A.qs&&A.qs.match(/(\&|\?)t\=(ddg_ios|ddg_android)/));this.isUCBrowser=!!/(ucbrowser)/.test(s);this.isUCBrowserIOS=this.isUCBrowser&&this.isIPhone;this.isRetina=is_retina=this.dpr>1;this.is2x=m.is2x=this.dpr>1;this.is3x=m.is3x=this.dpr>2;this.hasFixedHeaderSupport=!this.isIDevice;this.isAppleDevice=this.isIDevice||this.isOSX;if(this.isIDevice){if(this.isChrome){this.hasFixedHeaderSupport=this.chromeVersion>=57}else{if(this.isFirefox){this.hasFixedHeaderSupport=this.firefoxVersion>=7.2}else{if(this.isUCBrowserIOS){this.hasFixedHeaderSupport=false}else{this.hasFixedHeaderSupport=this.isIOS8pSafari}}}}var x="Browser";if(this.isDDGIgnore){x="Ignore"}else{if(/seamonkey/.test(s)){x="SeaMonkey"}else{if(/iceape/.test(s)){x="Iceape"}else{if(/palemoon/.test(s)){x="PaleMoon"}else{if(this.isBrave){x="Brave"}else{if(this.isSamsung){x="Samsung Internet"}else{if(this.isFirefox){x="Firefox"}else{if(/opr\//.test(s)||((this.isAndroid||this.isIDevice)&&(this.isOperaMobile||this.isOperaMini||this.operaVersion!==-1))){x="Opera"}else{if(this.isFirefoxFocus){x="Focus"}else{if(this.isIPad){x="iPad"}else{if(this.isUCBrowser){x="UC Browser"}else{if(this.isEdge||this.isEdgeMobile){x="Edge"}else{if(this.isAndroid){x="Android"}else{if(/xbox/.test(s)){x="xBox"}else{if(/midori/.test(s)){x="Midori"}else{if(/maxthon/.test(s)){x="Maxthon"}else{if(this.isYandex){x="Yandex"}else{if(/vivaldi/.test(s)){x="Vivaldi"}else{if(this.isChrome){x="Chrome"}else{if(/fennec/.test(s)){x="Fennec"}else{if(/epiphany/.test(s)){x="Epiphany"}else{if(this.isFirefox){x="Firefox"}else{if(/uzbl/.test(s)){x="Uzbl"}else{if(this.isIE&&navigator.platform==="Win64"&&!k()&&Modernizr.touch&&document.documentElement.clientWidth==screen.width){x="IEMetro"}else{if(this.isIE){x="IE"}else{if(this.isOpera){x="Opera"}else{if(this.isIPhone){x="iPhone"}else{if(/arora/.test(s)){x="Arora"}else{if(this.isSafari){x="Safari"}else{if(this.isKonqueror){x="Konqueror"}else{if(this.isBlackberry){x="Blackberry"}else{if(/phantomjs/.test(s)){x="PhantomJS"}else{if(this.isIDevice){x="iOS"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}if(this.isDDGApp){x="DDG "+x}this.browserName=m.browserName=x;this.pixelBrowserName=(this.isUCBrowser)?"ucbrowser":x.toLowerCase();this.pixelPlatformName=this._getPixelPlatformName();this.pixelBrowserVersion=this._getPixelBrowserVersion();this.displayBrowserName=this.browserName;if(x==="IEMetro"){this.displayBrowserName="IE"}else{if(x==="iPhone"||x==="iPad"){this.displayBrowserName="Safari"}else{if(x==="Android"){this.displayBrowserName="Chrome"}}}this._updateScreenSize();this._updateIsMobileDevice();this.isSafariWithNativeDDG=this._isSafariWithNativeDDG();this.isFirefoxWithNativeDDG=this._isFirefoxWithNativeDDG();if((this.isIPhone&&!this.isIPod)||(/mac os x 10[_.]1\d/.test(this.ua))||(this.isAndroid&&/mobile/.test(this.ua)&&(this.isChrome||this.isFirefox||this.isEdgeMobile||this.isUCBrowser))||this.isWindowsPhone||this.isBlackberry){this.canMakePhoneCalls=true}else{this.canMakePhoneCalls=false}if(this.isMobileDevice&&this.browserName==="Firefox"){if(screen.width&&screen.width20&&!this.isMobileDevice)||(this.chromeVersion>=50)||(this.safariVersion>7&&!this.isWindows&&!this.isMobileDevice)||(this.isIOS8pSafari||(this.safariVersion>=8&&this.isIDevice))||(this.operaVersion>14&&!this.isMobileDevice)||this.isFirefox38AndUp||this.isUCBrowser);this.$scrollDoc=$("html,body");this.pixelId=(this.isMobile||this.isMobileDevice)?"m":"d";if(this.isMobileDevice){this._wasPortrait=this.isMobilePortrait()}this.hasMinDesktopWidth=this.isDesktop&&this.width>=980;window.onresize=$.throttle(200,this._onResize.bind(this));window.onscroll=this._onScroll.bind(this);if(typeof document.hidden!=="undefined"){this._visibilityChange="visibilitychange";this._visibilityState="visibilityState"}else{if(typeof document.mozHidden!=="undefined"){this._visibilityChange="mozvisibilitychange";this._visibilityState="mozVisibilityState"}}if(this._visibilityChange){d.addEventListener(this._visibilityChange,this._onVisibilityChange.bind(this),false)}};c.prototype=$.extend({},b.prototype,{scrollTop:function(u,t,s){if(typeof u==="undefined"){if(typeof this._scrollTop!=="undefined"){return this._scrollTop}return this._scrollTop=m.$doc.scrollTop()}if(u===this.scrollTop()){if(s){s()}return this._scrollTop=u}if(t&&!$.isNumeric(t)){t=m.animation_speed}if(!t){this.$scrollDoc.scrollTop(u);if(s){s()}}else{this.$scrollDoc.animate({scrollTop:u},t,s)}return this._scrollTop=u},getBrowserMoreURL:function(){var s="https://help.duckduckgo.com/desktop/";if(this.isChrome){return s+"chrome"}else{if(this.isOpera){return s+"opera"}else{if(this.isSafari&&!this.isSafariWithNativeDDG){return s+"safari"}else{if(this.browserName==="SeaMonkey"){return"https://addons.mozilla.org/seamonkey/addon/duckduckgo-ssl/"}else{if(this.isFirefox){return s+"firefox"}}}}}},canAddToBrowser:function(){var s=this.getAddToBrowserDirections();return s.useForSearch||s.setAsHomepage},getAddToBrowserDirections:function(){if(this._addToBrowserDirections){return this._addToBrowserDirections}var s=this.browserName,u,t;if(!this._hasInstallationInstructions()){return this._addToBrowserDirections={}}if(s==="IE"){t="ie"}else{if(s==="SeaMonkey"){t="seamonkey"}else{if(s==="PaleMoon"){t="palemoon"}else{if(m.addToBrowser.canAddToBraveIOS()){t="brave_ios"}else{if(m.addToBrowser.canAddToMobileFirefox()&&this.isAndroid){t="firefox_android"}else{if(m.addToBrowser.canAddToMobileFirefox()&&this.isIDevice){t="firefox_ios"}else{if(this.isFirefoxWithNativeDDG){t="firefox"}else{if(s==="Firefox"){t="firefox_old"}else{if(m.device.isUCBrowser&&(this.isAndroid||this.isIDevice)){t="uc_browser_mobile"}else{if(m.addToBrowser.canAddToChromeMobile()&&this.isAndroid){t="chrome_android_default"}else{if(m.addToBrowser.canAddToChromeMobile()&&this.isIDevice){t="chrome_ios_default"}else{if(this.isEdgeMobile&&this.isAndroid){t="edge_android_default"}else{if(this.isEdgeMobile&&this.isIDevice){t="edge_ios_default"}else{if(m.addToBrowser.canAddToBraveAndroid()){t="chrome_android_default"}else{if(this.isChrome&&this.isAndroid){t="chrome_android"}else{if(s==="Chrome"){t="chrome"}else{if(s==="Maxthon"&&!this.isOSX){t="maxthon"}else{if(this.isSafariWithNativeDDG){t="safari"}else{if(this.isIOS8p&&this.isSafari){t="ios8"}else{if(s==="Safari"&&window.postMessage&&this.isOSX){t="safari_old"}else{if(s==="Safari"&&window.postMessage){t="safari_windows"}else{if(s==="Opera"){t="opera"}else{if(s==="Vivaldi"){t="vivaldi"}else{if(s==="Edge"){t="edge"}else{if(s==="Brave"){t="brave"}}}}}}}}}}}}}}}}}}}}}}}}}if(s==="IE"){u="ie"}else{if(s.match(/^Firefox|PaleMoon|SeaMonkey$/)){u="firefox"}else{if(s==="Maxthon"){u="maxthon"}else{if(s==="Chrome"){u="chrome"}else{if(s==="Safari"){u="safari"}else{if(s==="Opera"){u="opera"}else{if(s==="Vivaldi"){u="vivaldi"}else{if(s==="Edge"){u="edge"}}}}}}}}return this._addToBrowserDirections={useForSearch:t&&("use_for_search_"+t),setAsHomepage:u&&("set_as_homepage_"+u)}},DDGisBrowserDefault:function(){return this.ua.match(/palemoon|porteus|qupzilla|lxle/gi)},isTeapot:function(){return this.width>=a&&this.height<=h},isMobileLandscape:function(){return this.isMobile&&(this.height<=r||this.height<=q&&this.width>=e)},isMobilePortrait:function(){return this.isMobile&&!this.isMobileLandscape()},widthBreakpoint:function(){var s=i.length;while(--s){var t=i[s];if(this.width706},_isFirefoxWithNativeDDG:function(){if(this.browserName!=="Firefox"){return false}return navigator.buildID&&parseInt(navigator.buildID,10)>=20141028112145},_getPixelBrowserVersion:function(){var s=0;if(this.isChrome){s=this.chromeVersion}else{if(this.isFirefox){s=this.firefoxVersion}else{if(this.isSafari){s=this.safariVersion}else{if(this.operaVersion!==-1){s=this.operaVersion}else{if(this.isIE11p){s=11}else{if(this.isIE10p){s=10}else{if(this.isIE9){s=9}}}}}}}return s},_getPixelPlatformName:function(){var s="other";if(this.isAndroid){s="android"}else{if(this.isIPod){s="ipod"}else{if(this.isIPad){s="ipad"}else{if(this.isIPhone){s="iphone"}else{if(this.isWindowsPhone){s="winphone"}else{if(this.isWindows){s="windows"}else{if(this.isLinux){s="linux"}else{if(this.isBlackberry){s="blackberry"}else{if(this.isOSX){s="mac"}else{if(this.browserName==="DDG iOS"){s="ios"}}}}}}}}}}return s},_hasInstallationInstructions:function(){if(this.isSilk){return false}var s=true;if(this.isMobileDevice||this.isMobile){s=m.addToBrowser.canAddToMobileBrowser()||this.isAndroidChromeNoOpenSearch}return s},_onResize:function(s){if(this._updateScreenSize()){s.isRotation=this.isMobileDevice&&this._wasPortrait!=this.isMobilePortrait();this._wasPortrait=this.isMobilePortrait();this.emit("resize",s)}},_onScroll:function(s){delete this._scrollTop;this.emit("scroll",s)},_onVisibilityChange:function(s){this.emit("visibilitychange",d[this._visibilityState])}});function k(){var s;try{s=!!new ActiveXObject("htmlfile")}catch(t){}return s}}(DDG);!function(c){var a=c.Models.Base,e=500,b={13:"enter",27:"escape",32:"space",37:"left",38:"up",39:"right",40:"down",16:"shift",17:"ctrl",18:"alt",91:"cmd",74:"k",75:"j"};c.Models.Keyboard=function(f){a.call(this,f);if(!c.device.isMobileDevice){$(document).on("keydown",this._onKeydown.bind(this))}};c.Models.Keyboard.prototype=$.extend({},a.prototype,{namespaced:function(f){if(!f){return !!this.namespace}return this.namespace&&this.namespace.match(f)},focusedOnInput:function(){var f=document.activeElement;return f&&(f.nodeName==="INPUT"||f.nodeName==="TEXTAREA")},keyCodeIsOneOf:function(h,g){var f=b[h];return(f&&g.indexOf(f)>-1)},_onKeydown:function(h){var g=h.keyCode;clearTimeout(this._activeTimeout);this.set("active",1);if(!fq&&(!kk||kk=="1")&&!h.ctrlKey&&!h.metaKey&&!this.focusedOnInput()&&c.duckbar&&c.duckbar.areOrganicsShowing()){if(this.enableSERPShortcuts){this._onSERPKeydown(h)}if(g==13){nke()}if(g==84){nkt()}}var f=b[g];if(f&&!h.altKey&&!h.shiftKey){if(this.namespace){this.emit(f+"."+this.namespace,h)}this.emit(f,h)}this._activeTimeout=setTimeout(function(){clearTimeout(this._activeTimeout);this.set("active")}.bind(this),e)},_onSERPKeydown:function(g){var f=g.keyCode;if(f==40||f==74){if(this.nativeUpDown){return}g.preventDefault();nkda()}if(f==38||f==75){if(this.nativeUpDown){return}g.preventDefault();nkua()}if(f==191){if(c.device.isFirefox){g.preventDefault()}nks()}if(f==79||f==76){nko()}if(f==222||f==86){nkn()}if(f==111||f==72){nks()}if(f==32){nksb()}if(f==77){nkm()}if(f==68){nkd(g)}}})}(DDG);!function(c){var b=c.Models,a=b.Base;b.SelectList=function(e){a.call(this,e);this.select(e.selectedId||this.values[0].id)};b.SelectList.prototype=$.extend({},a.prototype,{select:function(e){var f;this.values.forEach(function(g){if(g.id===e){g.selected=true;f=g}else{g.selected=false}});if(!f){this.select(this.values[0].id)}else{this.set("selected",f)}}})}(DDG);!function(f){var e=f.Models,c=e.Base,b="d",a=10;e.Deep=function(g){this._backData=g.backData;this._device=g.device;this._page=g.page;this._pixel=g.pixel;this._settings=g.settings;this.hideRelated=window.iqa;this.results={};this.resultDomains={}};e.Deep.prototype=$.extend({},c.prototype,{isLastResult:false,isOutOfResults:false,pageNumber:1,started:0,finished:0,_currentPageItems:{a:[],d:[]},timeSinceStarted:function(){return this.started?new Date().getTime()-this.started:0},timeSinceFinished:function(){return this.finished?new Date().getTime()-this.finished:0},getResultCount:function(){return r1c},getFirstSource:function(){return this.results&&this.results.d&&this.results.d[0]&&this.results.d[0].s},getAttributionSource:function(){if(!this.results||!this.results.d||this.results.d.length<=5){return""}var g=this.getFirstSource();if(g.match(/^bing/)){return"bing"}if(g==="yandexru"||g==="yandextr"){return"yandex"}return""},canShowAttribution:function(){return !this.showedAttribution&&!!this.getAttributionSource()},getNewsItems:function(h){if(!this.results.d||!this.results.d.length){return}var g=[];for(var k=0;k-1){var n=m.d.split("/")[0];g.push({title:m.t,excerpt:m.a,url:m.u,source:n,fetch_image:f.Data.NewsImageDomains.indexOf(n)>-1,rank:k})}}if(h&&g.length===1&&g[0].rank<5){return[]}return g},addResults:function(h,g){if(!this.results[h]){this.results[h]=g}else{this.results[h]=this.results[h].concat(g)}this._emitChange("results")},_checkBackClickFromSecondPage:function(){if(!this.getInstance("settings").autoloadDisabled()||this._hasShownFirstPage){return}var h=this.getInstance("backData").getId(),g=h&&h.match(/r([1a])-([0-9]*)/);if(g){this._hasShownFirstPage=(g[1]==="1"&&parseInt(g[2],10)>8)||(g[1]==="a"&&parseInt(g[2],10)>0)}},nrnWrapper:function(j,h){var i=this.getInstance("page").ads,g=this.getInstance("settings").autoloadDisabled()&&j===b;if(j==="a"&&h.length&&h[0].s==="adm"){var m=false,k="";if(this.results.a&&this.results.a.length){m=true;k="ad"}else{if(this._hasRenderedFirstPage){m=true;k="late"}}if(m){f.pixel.fire("sad",{r:k,n:h.length,adx_name:i.adxExperiment});return}}this._checkBackClickFromSecondPage();if(g&&!this._hasShownFirstPage){this._currentPageItems[j]=h.slice(0,a);this._pendingOrganics=h.slice(a);this._hasShownFirstPage=true;h=this._currentPageItems[j]}else{this._currentPageItems[j]=h}this.addResults(j,h);if(j==="a"&&!i.isBlocked()&&h.length){this._sendAdImpressions(h)}if(j==="a"&&(this.pageNumber===1||i.pendingAds)){i.setAds(h)}if(i.pendingAds||i.defaultAds&&i.defaultAds.length){nrn(j,h,true,j==="d");if(j==="d"){this._currentPageItemsReset();this._setFirstPageRendered()}return}if(this._currentPageItems.a.length&&this._currentPageItems.d.length){this._splitNrnResults()}else{if(j==="d"){nrn(j,h,true,true);this._setFirstPageRendered();this._currentPageItemsReset()}}},pageNumberIncrement:function(){return ++this.pageNumber},pageNumberDecrement:function(){return --this.pageNumber},hasPendingResults:function(){return this._pendingOrganics&&this._pendingOrganics.length},showPendingResults:function(){if(this.hasPendingResults()){this.nrnWrapper("d",this._pendingOrganics);this._pendingOrganics=null;f.ImageLoader.registerAll($(".js-lazyload-icons"),"scrollY")}},_currentPageItemsReset:function(){this._currentPageItems.a=[];this._currentPageItems.d=[]},_sendAdImpressions:function(m){var n={},k=this.getInstance("page"),q=false;n.n=m.length;m.forEach(function(s,r){s.adn=m.length;if(s.l&&s.l.indexOf("sponsored__sitelink-description")>-1){q=true}if(this.pageNumber===1){s.adf=1}}.bind(this));n.sld=q?1:0;var h=m[0].d;h=h.split("/");h=h.shift();if(h){n.d=h}var g,i,p,o;for(g=0;gj&&!this._blockResultSplit){nrn("a",this._currentPageItems.a.slice(0,j),m);nrn("d",this._currentPageItems.d.slice(0,15),m,h);this.pageNumber++;this.emit("add-separator");nrn("a",this._currentPageItems.a.slice(j,this._currentPageItems.a.length),m);h=true;nrn("d",this._currentPageItems.d.slice(15,this._currentPageItems.d.length),m,h)}else{if(this._currentPageItems.a.length&&i.adx!=="rel2"&&this._canShowSouthAds()){k=i.getNorthAds(this._currentPageItems.a);nrn("a",k,m,h);g=i.getSouthAds(this._currentPageItems.a);h=g.length===0;nrn("d",this._currentPageItems.d,m,h);if(g.length){h=true;nrn("a",g,m,h)}}else{if(this._currentPageItems.a.length){nrn("a",this._currentPageItems.a,m,h);h=true;nrn("d",this._currentPageItems.d,m,h)}}}this._currentPageItemsReset();this._setFirstPageRendered()},_setFirstPageRendered:function(){if(!this.finished){this.set("finished",new Date().getTime())}if(this.getInstance("settings").autoloadDisabled()){this._hasRenderedFirstPage=true;this._blockResultSplit=false}}})}(DDG);!function(c){var b=c.Models,a=b.Base,e=[{name:l("Any Time"),id:""},{name:l("Past Day"),id:"d"},{name:l("Past Week"),id:"w"},{name:l("Past Month"),id:"m"}];b.Search=function(f){this.dateFilterId=window[c.Data.HiddenFields.DATE_FILTER];this.deepAnswerIAs={};this.isAdultQuery=window.iqa;this.isMinusQuery=window.iqm;this.isQuoteQuery=window.iqq;this.isDomainQuery=window.iqd;this.isSiteQuery=window.rq&&window.rq.indexOf("site%3A")!==-1;a.call(this,f);this.on("change:dateFilterId",this._setDateFilter.bind(this));this._setDateFilter()};b.Search.prototype=$.extend({},a.prototype,{_dateFilters:e,requery:function(){this.emit("requery")},addBangToSiteInQuery:function(f,g){return g.replace(new RegExp("(^|\\s)("+f+")($|\\s)","i"),"$1!$2$3")},isLatLonQuery:function(){return !!c.get_query().match(/latitude|longitude/gi)},getDateFilterName:function(){return this._dateFilterName},getResultCount:function(){return window.r1c||0},_setDateFilter:function(){this._dateFilters.forEach(function(f){if(f.id===this.dateFilterId){f.selected=1;this._dateFilterName=f.name}else{f.selected=0}}.bind(this))},getDateFilters:function(){return this._dateFilters},getSiteQuery:function(p){if(!p){return false}p=decodeURIComponentSafe(p);p=c.strip_html(p);var g,f,s=false,m,r=[],n,q=p,o=[];m=p.match(/((NOT )?SITE:)([^\s]+)/);if(m){s=!!m[2];o=m[3].split(",");q=p.substring(0,m.index-1);for(var k=0;k1||rqd.toLowerCase().indexOf("not site:")!==-1)){r=[]}return{str:p,query:q,sites:r,isExcluding:s}},isYhsSource:function(){return this.src==="yhs"},isQuotedQuery:function(){return c.get_query().match(/(\'.+\')|(\".+\")/)}})}(DDG);!function(b){var a=b.Models.Base;b.Models.Search.Spelling=function(c){a.call(this,c);this.type=this.type.toLowerCase();this.query=decodeURIComponentSafe(c.link);this.recourseQuery=decodeURIComponentSafe(c.recourseLink)};b.Models.Search.Spelling.prototype=$.extend({},a.prototype,{isValidType:function(){return(this.type&&this.type.match(/irf|dym|nmrc/))},makeSpellingURL:function(f,e,c){if(c){f+="&iar="+c+"&ia="+c}return"/?q="+f+(e?"&norw=1":"")+(w.rv?"&v="+w.rv:"")+(w.kurl?w.kurl:"")}})}(DDG);var d=document;var w=window;var cd,dz,da,fk,fb,fs,fm,fe,fl,fo,fa,fn,fq,fz,ie,io,ir,is,ga,gd,rc,rd,rs,rsd,rdc,rsc,rtc,rii,rin,rir,rl,rp,reb,rebc,sx,sy,tl,tlz,tac,tr,ts,tn,tsl,tz,nir,kurl,is_mobile,dow,iosx,slo;fb=irl=il=dz=da=dam=daiq=daia=fz=tl=tlz=sx=sy=fl=fo=fa=fn=rdc=rtc=rsc=rii=rin=rebc=tsl=tac=tn=tz=fe=fmx=fmy=ieof=iad=iad2=iad3=iadt=0;kurl="";rpc=fk=fs=1;slo=0;tr=new Array();ts=new Array();rsd=new Array();reb=new Array();!function(c){var b=c.Models,a=b.Base;b.Hidden=function(f){a.call(this,f);this._vals={};for(var g in c.Data.HiddenFields){var e=c.Data.HiddenFields[g];if(window[e]){this.set(e,window[e])}}};b.Hidden.prototype=$.extend({},a.prototype,{set:function(e,f){this._vals[e]=f;this.emit("change")},get:function(e){return this._vals[e]},clear:function(e){delete this._vals[e];this.emit("change")},toJSON:function(){return $.extend({},this._vals)}})}(DDG);!function(c){var a=c.Models.Base,b={Firefox:{canInstall:function(){return !this.device.isMobileDevice&&this.device.isFirefox38AndUp},url:"https://addons.mozilla.org/firefox/downloads/file/637639/duckduckgo_plus-1.1.4-fx.xpi?src=devhub",url2:"https://addons.mozilla.org/firefox/downloads/file/742979/duckduckgo_plus-1.1.26-fx.xpi",url3:"https://addons.mozilla.org/firefox/downloads/latest/duckduckgo-for-firefox/addon-385621-latest.xpi",watchCSSForSuccess:true},Chrome:{canInstall:function(){return !this.device.isMobileDevice&&this.device.isChrome&&((this.device.isWindows&&this.device.chromeVersion>=36)||(this.device.isOSX&&this.device.chromeVersion>=56))},url:"https://chrome.google.com/webstore/detail/bkdgflcldnnnapblkhphbgpggdiikppg"},Safari:{canInstall:function(){return false},url:"/extensions/duckduckgo.safariextz",watchCSSForSuccess:true}};c.Models.Extension=function(e){a.call(this,e);this.device=(e&&e.device)||c.device;$.extend(this,b[this.device.browserName]||{})};c.Models.Extension.prototype=$.extend({},a.prototype,{canInstall:function(){return false},isInstalled:function(f){if(typeof this._isInstalled!=="undefined"&&!(f&&f.nocache)){return this._isInstalled}var e=$('
');$("body").append(e);this._isInstalled=e.is(":hidden");e.remove();return this._isInstalled}})}(DDG);!function(e){var b=e.Models.Base,a=980,c={ctl:{rightRailSecond:true},def:{rightRailSecond:true},nav:{rightRailSecond:true},tasb:{siteLinksBothAds:true},tas1:{siteLinksFirstAdOnly:true},tas2:{siteLinksSecondAdOnly:true},oag:{rightRailSecond:true,siteLinksFirstAdOnly:true},rel2:{rightRailBoth:true},none:{rightRailSecond:false,rightRailBoth:false,smallFirst:false,smallSecond:false,siteLinksFirstAdOnly:false,siteLinksSecondAdOnly:false,siteLinksBothAds:false}};e.Models.Ads=function(f){this._deep=f.deep;this._device=f.device;this._settings=f.settings;b.call(this,f);this.ads=[];this.defaultAds=[];this.setBucket("def");this.on("change:ads",this._updateLayout.bind(this))};e.Models.Ads.prototype=$.extend({},b.prototype,{block:function(){this.set("blocked",1)},isBlocked:function(){return !!(this.blocked||!this.getInstance("settings").isDefault("k1"))},getAds:function(){return this.ads.length?this.ads:this.defaultAds},getNorthAds:function(g){var f=2;if(this.rightRailSecond){f=1}else{if(this.rightRailBoth){f=0}}f=Math.min(g.length,f);if(!this.canShowRightRailAds()){return g.slice(0,f)}return g.slice(0,f+1)},getSouthAds:function(i){var f,h=(i.length>1)?this.numTopAds:0,g=i.length;if(h-g===0){h=0;g=1}if(g-h>1){h=g-1}f=i.slice(h,g);f.forEach(function(j){delete j.l});return f},hasAds:function(){var f=this.getAds();return !!(f.length||this.pendingAds)},hasSiteLinks:function(g){g=g||this.getAds();var h=g.length&&g[0].n>=2?1:0,f=this.pendingAds&&this.pendingAdsHaveSitelinks;return !!(h||f)},getNumberOfTopAds:function(){return this.numTopAds},setPendingAds:function(f){if(this.isBlocked()){return}this.set({pendingAds:1,pendingAdsHaveSitelinks:f})},setDefaultAds:function(f){if(this.isBlocked()||this.ads.length||!f||!f.length||this.rightRailBoth){return}this.set("defaultAds",f.map(function(h){var g=this._makeAffiliateAd(h);return{a:h.a.substring(0,75)+(h.a.length>75?"...":""),d:h.d,m:0,s:g.s,p:1,c:g.c,u:g.u,h:0,k:0,i:h.i,t:h.t.substring(0,60)+(h.t.length>60?"...":""),"IE fix":1}}.bind(this)))},setAds:function(f){if(this.isBlocked()||!f||!f.length){return}this.set("ads",f)},load:function(g){if(this.loaded||this.isBlocked()){return}if(g.indexOf("adx_name=badm")!==-1){nrj(g)}else{nrj(g);var f="/y.js?x=1&q="+rq+"&l="+rl;f+=ra?"&a="+ra:"";f+="&safe="+(this.getInstance("settings").safeSearch.isStrict()?1:-1);f+="&vqd="+window.vqd;nrj(f)}this.set("loaded",1)},hasGoodAds:function(){return(this.adx==="tas"||this.adx==="tasb"||this.adx==="tas1"||this.adx==="tas2"||this.adx==="oag")},canShowGoodAdsLayout:function(){return(!this.getInstance("device").isMobile&&this.hasGoodAds()&&(this.getInstance("deep").pageNumber===1))},canShowEnhancedSiteLinks:function(f){if(!this.canShowGoodAdsLayout()){return false}return(this.siteLinksSecondAdOnly&&f>0)||(this.siteLinksFirstAdOnly&&f===0)||this.siteLinksBothAds},setBucket:function(g,f){if(this._firstBatchShown){return}if(this.getInstance("device").isMobile){g="none"}if(c[g]){this.adx=g}var h=e.backData.getData();this.adxExperiment=h.adx_name||f||"none"},_updateLayout:function(){var f=this.ads.length;$.extend(this,c.none);if(this.adx!=="none"){$.extend(this,c[this.adx])}if(f<2){this.rightRailSecond=false}if(this.rightRailSecond){this.smallSecond=true}else{if(this.rightRailBoth){this.smallFirst=true;this.smallSecond=true}}if(!this.canShowRightRailAds()){this.rightRailBoth=false;this.rightRailSecond=false}},setFirstBatchShown:function(){if(this._firstBatchShown){return}this._firstBatchShown=true;var f=2;if(this.rightRailSecond){f=1}else{if(this.rightRailBoth){f=0}}this.numTopAds=Math.min(this.getAds().length,f);this.smallFirst=false;this.smallSecond=false;this.rightRailSecond=false;this.rightRailBoth=false},canShowRightRailAds:function(){var f=a;if(!this.getInstance("settings").isDefault("km")||!this.getInstance("settings").isDefault("kw")){return false}return this.getInstance("device").width>=f},hasRightRailAds:function(){if(!this.canShowRightRailAds()){return false}var f=this.getAds().length;if(f&&(f>2||this.rightRailBoth||this.rightRailSecond||this.rightRailFirst)){return true}return false},canShowAdExtensions:function(g,f){return !this.getInstance("device").isMobile&&g===0&&this.adx!=="rel2"&&f===1},_makeAffiliateAd:function(h){var g={},i=h.k;if(i==="skimlinks"){g.c="http://ad.ddg.gg/?id=40063X1035282&xs=1&url="+encodeURIComponent(h.c)+"&sref="+encodeURIComponent("https://duckduckgo.com");g.u="http://ad.ddg.gg/?id=40063X1035282&xs=1&url="+encodeURIComponent(h.u)+"&sref="+encodeURIComponent("https://duckduckgo.com")}else{var f=this.adxExperiment?"&adx_name="+this.adxExperiment:"";g.c="/y.js?u2="+encodeURIComponent(h.c)+f+(window.ra?"&a="+window.ra:"")+("&vqd="+window.vqd);g.u="/y.js?u2="+encodeURIComponent(h.u)+f+(window.ra?"&a="+window.ra:"")+("&vqd="+window.vqd)}g.s=i;return g}})}(DDG);!function(b){var a=b.Models.Base;b.Models.AdSitelinks=function(c){a.call(this,c);this.hasSitelinkDescriptions=c.sitelinksMarkup&&c.sitelinksMarkup.indexOf("sponsored__sitelink-description")>-1;if(c.isShowingLargeSitelinks){this.hasSitelinkDescriptions=false;this.showEnhancedSiteLinks=false}};b.Models.AdSitelinks.prototype=$.extend({},a.prototype,{canShowLargeSitelinks:function(){if(this.isShowingLargeSitelinks||!this.hasSitelinkDescriptions||!this.isFirstPageOfAds){return false}return this.canShowGoodAdsLayout||this.layoutName==="def"},getSitelinkHtml:function(){return this._getSitelinkHtml(this.sitelinksMarkup,this.showEnhancedSiteLinks,this.canShowGoodAdsLayout)},_getSitelinkHtml:function(g,j,e){if(!g){return""}var c=this._splitSitelinks(g,j||this.canShowLargeSitelinks());var h=(j&&g.indexOf("sponsored__sitelink-description")>-1);var i;var f="result__sitelinks";if(this.canShowLargeSitelinks()){c=c.slice(0,4);f+=" result__sitelinks--large";i=this._getLargeAdSitelinks(c)}else{if(e&&h){c=c.slice(0,3);i=this._getGoodAdSitelinks(c)}else{if(e&&!h){f+=" result__sitelinks--nodesc";c=c.slice(0,6);i=c.join('')}else{c=c.slice(0,3);i=c.join('')}}}if(this.canShowLargeSitelinks()){return'
'+i+"
"}return''+i+""},_splitSitelinks:function(i,c){var e=[],j="",f="",g,h;while(i.length){if(i.indexOf("0){c+='"},_getGoodAdSitelinks:function(e){var c="";e.forEach(function(f){f=f.replace(/(]+>)/,"$1 - ");c+='"});return c}})}(DDG);!function(e){var i=e.Data.Settings.regions,h="kl",f="kah",c="wt-wt",j=3,a=e.Models.Base,n;n=e.Models.Settings.Region=function(o){this.settings=o.settings;this.prevRegions=[];o.id=o.id||this.settings.get(h);o.prevId=o.prevId||this.settings.get(f);a.call(this,o);this.settings.on("change:"+h,this.setId.bind(this));this.settings.on("change:"+f,this.setPrevId.bind(this))};n.prototype=$.extend({},a.prototype,{getId:function(){return(window.rlo&&window.rl)||this.id||this.getDefaultId()},getPrevId:function(){return(this.id===this.prevId||this.prevId===this.getDefaultId())?null:this.prevId},getPrevRegions:function(){return this.prevRegions},getDefaultId:function(){return c},hasRegion:function(){return this.getId()&&this.getId()!==this.getDefaultId()},hasPrevRegion:function(){return this.getPrevId()&&this.getPrevId()!==this.getDefaultId()},hasRegionOrSuggested:function(){return this.hasRegion()||this.hasPrevRegion()||this.suggestedRegion},hasUSRegion:function(){return this.getId()&&this.getId()!==this.getDefaultId()&&this.getId().split("-")[0]==="us"},isValidRegion:function(o){return !!i[o]},setId:function(s,q,p){if(s===this.id||!this.isValidRegion(s)){return p&&p()}var o=this,r;this.id=s;if(s!==c){r=this.prevRegions.indexOf(s);if(r!==-1){this.prevRegions.splice(r,1)}this.prevRegions.unshift(s);this._trimPrevRegions()}if(q&&q.saveToSettings){if(!q.dontSavePrev){this.settings.set(f,this.prevRegions.join(","))}this.settings.set(h,s,{saveToCloud:true,updateURLParams:true,fallbackToURLParam:q.fallbackToURLParam},function(){o.emit("change:id",o.id);p&&p()})}else{this.emit("change:id",this.id);p&&p()}},setPrevId:function(o){if(o){this.prevRegions=o.split(",")}else{this.prevRegions=[]}this._trimPrevRegions();this.prevId=this.prevRegions[0]},setDefault:function(){this.setId(this.getDefaultId(),{saveToSettings:true})},reset:function(o){this.prevId=null;this.settings.clear(f);this.setId(this.getDefaultId(),{saveToSettings:true,dontSavePrev:true},o)},disableSuggested:function(o){this.setPrevId(this.getDefaultId());this.set({suggestedRegion:null});this.settings.set(f,this.prevId,{saveToCloud:true},o)},disabledSuggested:function(){return this.prevId&&this.prevId===this.getDefaultId()},getName:function(o){o=o||this.getId();return l(i[o]||i[this.getDefaultId()])},getSmallIconURL:function(o){return k(o||this.getId())},getXSmallIconURL:function(o){return b(o||this.getId())},getLargeIconURL:function(o){return g(o||this.getId())},getAll:function(){var u=[],s,p=this.getId(),o=function(y,v,x){return{id:y,name:l(v),countryCode:m(y),selected:x}};var r=this.getPrevRegions();if(this.suggestedRegion&&r.indexOf(this.suggestedRegion)===-1){r.push(this.suggestedRegion)}for(var t in i){if(t!==c&&r.indexOf(t)===-1){u.push(o(t,i[t],p===t))}}u.unshift(o(c,i[c],p===c));if(r.length&&!(r.length===1&&r[0]===c)){u[0].showDivider=true}for(var q=r.length-1;q>=0;q--){s=o(r[q],i[r[q]],p===r[q]);if(r[q]!==c&&s.name){u.unshift(s)}}return u},fetchSuggested:function(o){e.device.getCountry(this._onFetchedSuggested.bind(this,o))},_onFetchedSuggested:function(y,r,q){if(!q){return y&&y()}var u=q.toLowerCase(),t=[],x=function(A){this.set({suggestedRegion:A});y&&y(null,A)}.bind(this);if(u==="us"){return y&&y()}if(u==="gb"){u="uk"}for(var z in i){var o=z.split("-")[0];if(o===u){t.push(z)}}if(!t.length){return y&&y()}if(t.length===1||!window.locale){return x(t[0])}var p=window.locale.split("_")[0];for(var s=0;so){this.prevRegions=this.prevRegions.slice(0,o)}}});var m=function(o){return o.split("-")[0]},k=function(o){return"/assets/flags/"+(DDG.is3x?"60":DDG.is2x?"40":"20")+"/"+m(o)+".png?v=4"},b=function(o){return"/assets/flags/"+(DDG.is3x?"48":DDG.is2x?"32":"16")+"/"+m(o)+".png?v=3"},g=function(o){return"/assets/flags/"+(DDG.is3x?"96":DDG.is2x?"64":"32")+"/"+m(o)+".png?v=4"}}(DDG);!function(b){var a="kae",c=b.Data.Settings[a];b.Models.Settings.Themes={KEY:a,getAll:function(){return DDG.objectToArray(c.values)},getSettingsForTheme:function(i){var h=c.values[i],e=c.values[c["default"]].settings;if(h){return $.extend({},e,h.settings)}var f=tinycolor(i);if(f.isValid()){var g=f.toHexString();return $.extend({},e,{kj:g,k7:g})}return $.extend({},e)}}}(DDG);!function(h){var b="/settings.js",g="application/json",j="Error ",f=" CloudSave Settings",e=j+"Loading"+f,c=j+"Saving"+f,i=j+"Deleting"+f,a={url:b,type:"POST",dataType:"json",contentType:g,processData:false};h.Models.Settings.CloudSave={keyField:"objectKey",isKeyField:function(k){return k===this.keyField||k==="key"},load:function(k,m){if(!k){return m(e)}$.ajax({url:b+"?key="+k,dataType:"json",success:function(n){m(null,n)},error:function(){m(e)}})},save:function(k,n,m){if(!k||!n){return m&&m(c)}$.ajax($.extend({data:JSON.stringify({command:"write",objectKey:k,obj:n}),success:function(){m&&m(null,n)},error:function(){m&&m(c)}},a))},destroy:function(k,m){if(!k){return m(i)}$.ajax($.extend({type:"POST",data:JSON.stringify({command:"delete",objectKey:k}),success:function(){m&&m(null,true)},error:function(n){m&&m(i)}},a))},phraseToKey:function(k){var m=new jsSHA(k,"ASCII"),n=m.getHash("SHA-512","HEX");return n},validatePassPhrase:function(k,n){if(!k){return n(lp("cloudsave","Please enter a pass phrase"))}if(k.length<9){return n(lp("cloudsave","Pass phrase must be at least 9 characters long"))}var m=this.phraseToKey(k);$.ajax({url:b+"?key="+m,dataType:"json",success:function(){n(lp("cloudsave","Pass phrase is already taken."))},error:function(){n(null,true)}})},suggestPassPhrase:function(k){$.ajax($.extend({type:"POST",data:JSON.stringify({command:"passphrase"}),success:function(m){k(null,m.passphrase)},error:function(){k(true)}},a))}}}(DDG);!function(g){var b=g.Models.Base,f=g.Models.Settings,e="kp",a={"1":{name:lp("safe search","Strict"),description:lp("safe search","No adult content")},"-1":{name:lp("safe search","Moderate"),description:lp("safe search","No explicit images or videos")},"-2":{name:lp("setting","Off"),description:lp("safe search","Don't filter adult content")}},c="-1";f.SafeSearch=function(h){b.call(this,h);this.settings.on("change:"+e,this._onSettingChange.bind(this))};f.SafeSearch.prototype=$.extend({},b.prototype,{getId:function(){return this.id||c},getAll:function(){var h=[],j;for(var i in a){j={id:i,name:a[i].name,description:a[i].description};j.selected=j.id===this.getId();h.push(j)}return h},isActive:function(){return this.getId()!==c},getName:function(){return a[this.getId()].name},isStrict:function(){return this.getId()==="1"},isModerate:function(){return this.getId()==="-1"},isOff:function(){return this.getId()==="-2"},setId:function(j,i){var h={saveToCloud:true,updateURLParams:true,fallbackToURLParam:true};this.settings.set(e,j,h,i)},setTemporaryId:function(i,h){g.hidden.set(e,i);h&&h()},_onSettingChange:function(){var h=this.settings.get(e);this.set("id",h)}})}(DDG);!function(p,i){var u="January 12, 2025",q="abcdefghijklmnopqrstuvwxyz",j=i.location.protocol+"//"+i.location.host+"/",v=/<|>|\//g,s=p.Data.Settings,n="kay",g="mapkit.SpileTestResults",e=p.Models.Settings.CloudSave,k=p.Models.Settings.Themes,f=p.Models.Base,r;r=p.Models.Settings.Settings=function(y){y=y||{};if(y.cloudSaveKey){this.setCloudSaveKey(y.cloudSaveKey)}this._settings={};this._savedSettings={};this._urlSettings={};this.region=new p.Models.Settings.Region({settings:this});this.safeSearch=new p.Models.Settings.SafeSearch({settings:this});this.cloudsave=e;this.themes=k;this._updateDeviceDependentSettings();this._setFromURLParams();this._setFromQuerystring();this._backfillGlobals();this._setFromCookie();this._setFromLocalStorage()};r.prototype=$.extend({},f.prototype,{THEME_KEY:k.KEY,AUTOCOMPLETE_KEY:"kac",LANGUAGE_KEY:"kad",POST_KEY:"kg",MOBILE_INSTRUCTIONS_KEY:"kas",DEFAULT_FIELD_CLASS:"FormField",TYPE_TO_FIELD_CLASS:{"boolean":"BooleanFormField",color:"ColorFormField",composite:"CompositeFormField",thumbnail:"ThumbnailFormField",theme:"ThemeFormField",dropdowncustom:"DropDownCustomFormField",clear:"ClearFormField"},get:function(y){var z=this._settings[y]||this.getDefault(y);z=o(y,z);return z},getDefault:function(y){var z=s[y];return z&&z["default"]},isDefault:function(y){return this.get(y)===this.getDefault(y)},hasCustomLinkStyles:function(){return !(this.isDefault("kae")&&this.isDefault("k9")&&this.isDefault("kaa")&&this.isDefault("k8")&&this.isDefault("kx")&&this.isDefault("kaf")&&this.isDefault("kai")&&this.isDefault("kf")&&this.isDefault("k7")&&this.isDefault("k18"))},getData:function(A){var B=$.extend({},s[A]);B.id=A;if(typeof B.values==="string"){B.values=$.extend({},s[B.values])}if(B.values&&B.order){var C,y={};for(var z=0;z=12.1)}}(DDG,this);!function(a){a.Models.TParam=function(){this._param=this.DEFAULT_VARIANT;this.set(a.settings.get("t"))};a.Models.TParam.prototype=$.extend({},{DEFAULT_VARIANT:"_",get:function(){return this._param},set:function(b){if(!b){return}if(this._isValidHomepageParam(b)){this._param=(b.length===1)?this.DEFAULT_VARIANT:b.substr(1);this._fromHomepage=true;this._hasValue=true}else{if(/^[a-z0-9]+$/.test(b)){this._param=b;this._hasValue=true}}},hasValue:function(){return this._hasValue},fromDefaultSearch:function(){return this._hasValue&&!this.fromHomepage()},setFromHomepage:function(b){var c="h"+b;if(!a.settings.get("t")&&this._isValidHomepageParam(c)){a.settings.setTParam(c)}},fromHomepage:function(){return this._fromHomepage},_isValidHomepageParam:function(b){return/^h[a-z_]?$/.test(b)}})}(DDG);!function(b){var a=b.Models.Base;b.Models.AddToBrowser=function(){this.viewType=(b.device.isMobileDevice)?"AddToBrowserBanner":"AddToBrowserBadge"};b.Models.AddToBrowser.prototype=$.extend({},a.prototype,{BADGE_DISMISS_KEY:"kak",BADGE_RECURRING_KEY:"kax",canAddToChromeMobile:function(){var e=b.device.isAndroid&&b.device.isChrome&&b.device.chromeVersion>=57,c=b.device.isIDevice&&b.device.isChrome&&b.device.chromeVersion>=72;return(e||c)&&!b.device.isBrave&&!b.device.isFirefoxFocus&&!b.device.isSamsung&&!b.device.isUCBrowser},canAddToBraveAndroid:function(){return b.device.isAndroid&&b.device.isBrave},canAddToBraveIOS:function(){return b.device.isIOS8p&&b.device.isBrave},canAddToMobileFirefox:function(){return((b.device.isIOS8p&&b.device.isFirefox)||(b.device.isAndroid&&(b.device.isFirefox38AndUp||b.device.isFirefoxFocus)))},canAddToMobileUCBrowser:function(){return b.device.isUCBrowser&&(b.device.isAndroid||b.device.isIDevice)},canAddToMobileBrowser:function(){return(this.canAddToChromeMobile()||(b.device.isIOS8pSafari&&!b.device.isUCBrowser)||this.canAddToMobileFirefox()||this.canAddToBraveAndroid()||this.canAddToBraveIOS()||b.device.isEdgeMobile||this.canAddToMobileUCBrowser())},canShowMobileBanner:function(){return(this.canAddToMobileBrowser()&&b.settings.isDefault(this.BADGE_DISMISS_KEY)&&this._canShowAgain())},canShowBadgeAgain:function(){return !(b.device.isDesktop&&!this._canShowAgain())},canShowMobileButton:function(){return(this.canAddToMobileBrowser()&&(!b.settings.isDefault(this.BADGE_DISMISS_KEY)||!this._canShowAgain()))},showDarkInstructions:function(){return this.canAddToMobileBrowser()},dismiss:function(){var f=(b.opensearch.atbVariant!==b.tParam.DEFAULT_VARIANT)?b.opensearch.atbVariant:"",g=(b.opensearch.atbVariant==="j")?2:4,e=new Date(),c;if(!b.settings.isDefault(this.BADGE_RECURRING_KEY)){g=(b.opensearch.atbVariant==="j")?7:30}e.setDate(e.getDate()+g);c=b.opensearch.getATBVersionInfo(e).version;if(this._canShowAgain()){b.settings.set(this.BADGE_RECURRING_KEY,c+f,{saveToCloud:true,fallbackToURLParam:true})}},_canShowAgain:function(){return b.settings.isDefault(this.BADGE_RECURRING_KEY)||(!b.settings.isDefault(this.BADGE_RECURRING_KEY)&&b.opensearch.getDaysSinceCohort(b.settings.get(this.BADGE_RECURRING_KEY))>=0)},canShowOnMobileSerp:function(){return(this.canShowMobileBanner()&&b.page.canShowAddToBrowser()&&b.tParam.fromHomepage())},canShowOnDesktopSerp:function(){return(this.canShowBadgeAgain()&&b.page.canShowAddToBrowser()&&b.tParam.fromHomepage())},canNotYetShowOnDesktopSerp:function(){return(!this.canShowBadgeAgain()&&b.page.canShowAddToBrowserButton()&&b.tParam.fromHomepage())},usesOpenSearch:function(){return this.canAddToChromeMobile()||(b.device.isAndroid&&b.device.isEdgeMobile)}})}(DDG);!function(b){var a=b.Models.Base,c="kao";b.Models.Settings.OnboardingEducation=function(){this.KEY=c;this.isDismissed=!b.settings.isDefault(c);this.didUserScroll=false;this.isSVGAnimated=false;this.scrollToAnimationDurationMS=350;this.pauseForAnimationMS=1000};b.Models.Settings.OnboardingEducation.prototype=$.extend({},a.prototype,{canShow:function(){return(b.settings.isDefault(this.KEY)&&!window.extensionsuccess)},dismiss:function(){b.settings.set(c,-1,{saveToCloud:true});this.isDismissed=true}})}(DDG);!function(a){a.Models.Settings.OnboardingEducationSlide=function(b){return{slideIndex:b.model.slideIndex||null,isSVGAnimated:b.model.isSVGAnimated||false,pauseBeforeAnimation:300,pauseBetweenAnimationIterations:5000,maxAnimationLoops:3,animationAnchorEl:{slide1:"monster-eye",slide2:"ghost-girl-face",slide3:"bathtub-periscope",slide4:"scarf-back"}}}}(DDG);!function(q){var i,e={s:"set-text--small",m:"set-text--medium",l:"set-text--larger",t:"set-text--largest"},a={w:"set-wide",s:"set-super-wide"},t="set-theme--dark",b="set-theme--terminal",o=q.Data.languages.languageFontLookup,h=q.Data.languages.fontSubsets,g=tinycolor;q.Models.Settings.LiveUpdater=i=function(v){this.settings=v.settings;this.$html=q.$html||$("html");this.$body=$("body");this.isHomePage=v.isHomePage;this.$html.removeClass(t);this.$html.removeClass(b);var u=this;this.settings.on("change",function(x){u[x]&&u[x](u.settings.get(x))})};i.prototype={updateAll:function(){for(var u in i.prototype){if(u.charAt(0)=="k"){this[u](this.settings.get(u))}}},loadFonts:function(){if(!this.settings.isDefault("kt")&&!this.settings.isDefault("ka")){return}var D=q.Data.languages.resultLanguages||{},z=Object.keys(D)||[],u=[],v=0,C=6,B="";if(!this.settings.isDefault("kad")){z.unshift(this.settings.get("kad").split("_")[0])}if(locale){z.unshift(locale.split("_")[0])}if(z&&z.length){for(var A=0;A=C){break}}}}this._clearCSS("customFonts");if(B){this.$customFontscss=r(B)}},k1:function(v){var u=(v&&v=="-1")?"addClass":"removeClass";this.$html[u]("no-ads")},km:function(v){var u=(v&&v==="m")?"addClass":"removeClass";this.$html[u]("set-align-center")},ks:function(x){for(var u in e){this.$html.removeClass(e[u])}var v=e[x];v&&this.$html.addClass(v)},kw:function(v){this.$html.removeClass("set-wide").removeClass("set-super-wide");var u=a[v];u&&this.$html.addClass(u)},kh:function(u){if(!d.x){return}if((!u||u=="1")&&!d.location.port&&d.location.protocol!="https:"&&w.location.hostname.indexOf(".onion")==-1){d.x.action="https://"+w.location.host+"/"}else{if((u&&u=="-1")&&d.location.protocol!="http:"){d.x.action="http://"+w.location.host+"/"}else{if(this.settings.get("kg")==="p"&&q.device.isChrome){d.x.action=w.location.protocol+"//"+w.location.host+"/"}else{d.x.action="/"}}}},kg:function(u){if(!d.x){return}d.x.method=(u&&u==="p")?"POST":"GET";if(u&&u==="p"){d.title="DuckDuckGo"}if(q.device.isChrome&&u&&u==="p"){d.x.action=window.location.protocol+"//"+window.location.host+"//"}},ko:function(u){if(this.isHomePage){return}q.isHeaderFixed=false;this.$html.removeClass("set-header--menu");this.$html.removeClass("set-header--fixed");if(u=="1"&&q.device.hasFixedHeaderSupport){q.isHeaderFixed=true;this.$html.addClass("set-header--fixed")}else{if(u=="-2"||u=="-1"){this.$html.addClass("set-header--menu");delete q._header_height}}},ku:function(u){this.$html[k(u)]("set-underlined-links")},kaf:function(u){this.$html[k(u)]("full-urls")},kad:function(){this.loadFonts()},kag:function(u){$(".search__button")[k(u)]("search__button--active")},kt:function(y){this._clearCSS("kt");if(!y||y==this.settings.getDefault("kt")){return}var u=this.settings.getFontName(y)||y,x=this.settings.getFontName(this.settings.getDefault("kt")),v=!!u.match(/Helvetica|Arial|Sans-serif/);if(u.match(/Helvetica/)){u+=",sans-serif"}this.$ktcss=r(q.exec_template("theme_custom_font",{fontStack:u+","+x,lightenWeight:v}))},ka:function(x){this._clearCSS("ka");if(!x||x==this.settings.getDefault("ka")){return}var u=this.settings.getFontName(x)||x,v=this.settings.getFontName(this.settings.getDefault("ka"));if(u.match(/Helvetica/)){u+=",sans-serif"}this.$kacss=r(".result__a { font-family:"+u+","+v+";}")},kj:function(B){this.$html.removeClass("dark-header");this._clearCSS("kj");if(!B||B==this.settings.getDefault("kj")){return""}var u=B,z=f(u),A=z.root.toHsl().l>0.5,v=z.root.toRgbString().replace(/rgb\(|\)/g,""),y=z.root.toHexString(),x="";if(!A||z.root.toHsl().s>0.5){this.$html.addClass("dark-header")}if(A){x+=q.exec_template("theme_header",{color:y,rgb:v,bottomBorder:z.darker[0],link:z.text[2],activeLink:z.text[0]});if(!this.isHomePage){x+=p(z);x+=q.exec_template("theme_header_menu_button",{icon:z.text[3],hoverBg:z.text[2],hoverColor:z.lighter[2]});x+=q.exec_template("theme_zci",{color:y,bg:z.lighter[4],detail:z.lighter[2],border:z.darker[0],bottomBorder:z.darker[0],outline:z.darker[5],text:z.text[1],link:z.text[0],activeLink:z.text[0],tileNav:z.darker[2],modeBg:z.darker[2],modeText:z.text[1],accent1:z.darker[3],accent2:z.darker[4],accent3:z.darker[2],accentText:z.text[2],accentText2:z.text[3],isDark:false})}}else{x+=q.exec_template("theme_header",{color:y,rgb:v,bottomBorder:z.lighter[3],link:z.text[2],activeLink:z.text[0]});if(!this.isHomePage){x+=q.exec_template("theme_header_menu_button",{icon:z.text[4],hoverBg:z.text[2],hoverText:z.text[2],hoverColor:z.darker[2]});if(this.settings.get(this.settings.THEME_KEY)!=="r"){x+=s(z);x+=j(z);x+=q.exec_template("theme_zci",{color:y,bg:y,detail:z.darker[2],border:z.lighter[3],bottomBorder:z.lighter[3],outline:z.lighter[7],text:z.text[1],link:z.text[0],activeLink:z.text[3],tileNav:z.darker[0],modeBg:z.lighter[1],modeText:z.text[4],accent1:z.lighter[2],accent2:z.lighter[3],accent3:z.lighter[7],accentText:z.text[2],accentText2:z.text[3],isDark:true})}}}this.$kjcss=r(x)},k7:function(x){this.$html.removeClass("dark-bg");this.$k7css&&this.$k7css.remove();delete this.$k7css;if(!x||x==this.settings.getDefault("k7")){return}var D=g(x),B=D.toHexString(),F=D.toPercentageRgbString(),y=f(B),H=y.root.toHsl().l>0.5,I=y.text[0],z=y.text[3],G=H?y.darker[1]:y.lighter[1],A=H?y.darker[0]:y.lighter[2],v=H?y.lighter[1]:y.darker[1],E="",u,C;u=F.replace("rgb(","").replace(")","");C=g(v).toPercentageRgbString().replace("rgb(","").replace(")","");E+=q.exec_template("theme_background",{bg:B,rgbBg:u,text:I,textTint:z,bgTint:G,bgTint2:A,bgDark:v,rgbBgDark:C,isDark:!H});E+=q.exec_template("theme_sidemenu",{bg:y.darker[1],border:y.darker[2],text:y.text[5],textTint:z,link:y.text[3],activeLink:y.text[0]});if(this.isHomePage){E+=q.exec_template("theme_header_menu_button",{icon:H?y.darker[4]:y.text[4],hoverBg:G,border:G,hoverText:y.text[2]});if(!H){E+=s(y);E+=j(y)}else{E+=p(y)}}else{E+=q.exec_template("theme_result_snippet",{color:z,dateColor:I});E+=q.exec_template("theme_result_web_links",{color:z,bgTint:G});E+=q.exec_template("theme_result_highlight",{color:G});E+=q.exec_template("theme_result_message",{textColor:z,bgColor:y.darker[1],borderColor:y.darker[2],linkColor:I})}if(!H||y.root.toHsl().s>0.5){this.$html.addClass("dark-bg");this.isDarkBg=true}this.$k7css=r(E)},k9:function(v){this._clearCSS("k9");if(!v||v==this.settings.getDefault("k9")){return}var u=g(v);if(u.isValid()){this.$k9css=r(q.exec_template("theme_result_title",{color:u.toHexString()}))}},k8:function(v){this._clearCSS("k8");if(!v||v==this.settings.getDefault("k8")){return}var u=g(v);if(u.isValid()){this.$k8css=r(q.exec_template("theme_result_snippet",{color:u.toHexString()}))}},kaa:function(v){this._clearCSS("kaa");if(!v||v==this.settings.getDefault("kaa")){return}var u=g(v);if(u.isValid()){this.$kaacss=r(".results a.result__a:visited,.sitelinks__title a.result__a:visited,.module--news__body__title:visited,.module__link:visited, .module__link:visited:hover,.module__link a:visited, .module__link a:visited:hover{ color:"+u.toHexString()+";}")}},kx:function(v){this._clearCSS("kx");if(!v||v==this.settings.getDefault("kx")){return}var u=g(v);if(u.isValid()){this.$kxcss=r(q.exec_template("theme_result_web_links",{color:u.toHexString()}))}},k20:function(v){this._clearCSS("k20");if(!v||v==this.settings.getDefault("k20")){return}var u=g(v);if(u.isValid()){this.$k20css=r(".sitelinks__title a.result__a:visited { color:"+u.toHexString()+" !important;}")}},k19:function(v){this._clearCSS("k19");if(!v||v==this.settings.getDefault("k19")){return}var u=g(v);if(u.isValid()){this.$k19css=r(".module__more-at, .module__more-at:hover, .module__official-url, .module__official-url:hover {color: "+u.toHexString()+";}")}},k18:function(u){this._clearCSS("k18");if(u!==this.settings.getDefault("k18")){this.$k18css=r(".result__check { display: block;}")}},k17:function(v){this._clearCSS("k17");if(!v||v==this.settings.getDefault("k17")){return}var u=g(v);if(u.isValid()){this.$k17css=r(".result__url:hover {color: "+u.toHexString()+";}")}},k16:function(v){this._clearCSS("k16");if(!v||v==this.settings.getDefault("k16")){return}var u=g(v);if(u.isValid()){this.$k16css=r(".result__url:visited {color: "+u.toHexString()+";}")}},k15:function(u){this._clearCSS("k15");if(!u||u==this.settings.getDefault("k15")){return}this.$k15css=r(".result__title {font-weight: "+u+";}")},k14:function(u){this._clearCSS("k14");if(!u||u==this.settings.getDefault("k14")){return}this.$k14css=r(".result__title {font-size: "+u+";}")},k13:function(u){this._clearCSS("k13");if(u==="off"){this.$k13css=r(".result__title b {font-weight: normal;}")}},k12:function(v){this._clearCSS("k12");if(!v||v==this.settings.getDefault("k12")){return}var u=g(v);if(u.isValid()){this.$k12css=r(".badge--ad {background-color: "+u.toHexString()+";}")}},k11:function(v){this._clearCSS("k11");if(!v||v==this.settings.getDefault("k11")){return}var u=g(v);if(u.isValid()){this.$k11css=r(".msg--spelling :link,.msg--spelling :visited,.msg--spelling a:hover,.msg__clear,.msg__clear:hover,.msg__all,.msg__all:visited {color: "+u.toHexString()+" !important;}")}},k10:function(v){this._clearCSS("k10");if(!v||v==this.settings.getDefault("k10")){return}var u=g(v);if(u.isValid()){this.$k10css=r(".highlight .result__a,.result__a:hover,.result__a:visited:hover {color: "+u.toHexString()+" !important;}")}},kf:function(u){if(u&&u==="-1"){$(".result__icon").addClass("is-hidden")}else{$(".result__icon").removeClass("is-hidden");q.ImageLoader.loadMore()}},kai:function(u){if(!u||u!=this.settings.getDefault("kai")){$(".result--url-above-snippet").removeClass("result--url-above-snippet");$(".js-result-snippet").each(function(x,y){var v=$(y),z=v.parent().find(".result__extras");z.before(v)})}else{$(".result").addClass("result--url-above-snippet");$(".js-result-snippet").each(function(x,y){var v=$(y),z=v.parent().find(".result__extras");z.after(v)})}},_clearCSS:function(u){var x="$"+u+"css",v=this[x];v&&v.remove();delete this[x]}};var r=function(u){return $("
",{html:"­"}).children().appendTo("body")},k=function(u){return(u&&u=="1")?"addClass":"removeClass"},n=function(v,u){v=g(v);return g.lighten(v,u*(1-v.toHsl().l)).toHexString()},c=function(v,u){v=g(v);return g.darken(v,u*v.toHsl().l).toHexString()},m=function(u,v,A,z){var y=[];for(var x=1;x<=v;x++){y.push(z(u,A*x))}return y},f=function(x){x=g(x);var D=x.toHsl().l>0.5,z=g.monochromatic(g.desaturate(x,80),20),E=g.mostReadable(x,z),A=g(E).toHsl().l>0.5,u=D?10:4,C=D?4:10;if(D){C+=C*x.toHsl().s}var v=m(E,10,5,A?c:n),B=m(x,8,C,c),y=m(x,8,u,n);return{root:x,text:v,lighter:y,darker:B}},s=function(u){return q.exec_template("theme_search_bar",{bg:u.darker[1],border:u.darker[2],iconText:"rgba(255,255,255,0.35)",buttonBg:u.darker[3],inputText:u.text[0]})},j=function(v){var u=g(v.darker[2]).toRgb();return q.exec_template("theme_autocomplete",{bg:"rgb("+u.r+","+u.g+","+u.b+")",border:v.darker[0],lightText:v.text[1],darkText:v.text[5],selectedBg:v.lighter[3]})},p=function(u){return q.exec_template("theme_search_bar",{bg:"#fff",border:u.darker[2],iconText:"rgba(0,0,0,0.35)",buttonBg:u.darker[4]})}}(DDG);!function(a){a.Pages.Base=function(b){this.views={};this.onboardingTest={};a.keyboard=this.keyboard=new a.Models.Keyboard();a.ready(this.ready.bind(this))};a.Pages.Base.prototype={isNewVisitor:true,checkIsNewVisitor:function(){if(Math.random()>0.02){return}var e=true,b={i:a.page.isInstalled(),atbi:a.page.canShowAddToBrowser(),d:a.device.pixelId,l:w.locale,p:a.device.pixelPlatformName};if(a.page.isInstalled()){e=false}if(a.getProperty(window,"performance.getEntriesByType")){var c=window.performance.getEntriesByType("resource");if(this._hasCachedResources(c)){e=false;b.c=1}else{b.c=0}}else{b.c=-1}if(!this._hasDefaultSettings(a.settings._settings)){e=false;b.s=1}if(this._isBrowserReload()){e=false;b.r=1}if(e){a.pixel.fire("vu",this.pageType,b)}else{a.pixel.fire("vr",this.pageType,b)}this.isNewVisitor=e},ready:function(){$("head").append('');this._initializePage();if(a.device.isMobile){a.addClass("html",a.$html,"is-mobile")}if(a.device.isMobileDevice){a.addClass("html",a.$html,"is-mobile-device")}else{a.addClass("html",a.$html,"is-not-mobile-device")}if(a.device.isLegacyAndroid){a.addClass("html",a.$html,"is-legacy-android")}if(a.device.isFirefoxFocus&&a.device.isAndroid){a.addClass("html",a.$html,"is-firefox-focus")}if(a.opensearch.installed.experiment==="ui_updates"&&a.opensearch.installed.variant==="b"){var b="is-cssexp";if(a.settings.isDefault("kae")){a.$html.addClass(b)}a.settings.on("change:kae",function(){if(!a.settings.isDefault("kae")){a.removeClass("html",a.$html,b)}else{a.addClass("html",a.$html,b)}})}a.settings.on("loaded-initial",this._onSettingsLoaded.bind(this));a.settings.loadFromCloud({initial:true});a.device.on("resize",function(){a.ImageLoader.loadMore()});a.device.on("scroll",function(){a.ImageLoader.loadMore()});this.headerMenuOps=this.headerMenuOps||{};if(!this.headerMenuOps.disableSearchBar){this.initSearchBar()}if(!this.headerMenuOps.disableSideMenu){this.initSideMenu()}this.initAddToHomepageBanner();this.onboardingTest=a.Data.Onboarding[a.opensearch.atbVariant]||{};this._verifyMobileInstallation();this.isSafeDDG=w.safe_ddg},initSearchBar:function(){this.searchbar=new a.Views.SearchBar({el:".js-search-form"});this.searchbar.on("focus",function(){this.sideMenu&&this.sideMenu.hide()}.bind(this))},initSideMenu:function(){this.sideMenu=new a.Views.SideMenu($.extend({pageType:this.pageType,showATB:this.canShowAddToBrowser(),appendLinkTo:".js-header-aside",appendTo:".js-site-wrapper"},this.sideMenuOps||{}));this.sideMenu.on("opened",function(){if(this.searchbar&&this.searchbar.hasFocus){this._restoreSearchFocus=true;this.searchbar.unfocus()}}.bind(this));this.sideMenu.on("closed",function(){if(this._restoreSearchFocus){this.searchbar.focus({focusInput:true});delete this._restoreSearchFocus}}.bind(this))},initAddToHomepageBanner:function(){if(!a.device.isAndroidChromeNoOpenSearch||!navigator.serviceWorker||a.addToBrowser.canAddToChromeMobile()){return}var b=a.tParam.fromDefaultSearch()||a.history.get("atb")||!a.settings.isDefault(a.addToBrowser.BADGE_DISMISS_KEY);navigator.serviceWorker.register("service-worker.js",{scope:"./"});window.addEventListener("beforeinstallprompt",function(c){a.pixel.fire("aths","i");if(b||a.addToBrowser.canAddToChromeMobile()){c.preventDefault();return false}$(".js-atb-banner-link").hide();c.userChoice.then(function(f){var e={};if(b){e.r=1}if(f.outcome==="dismissed"){a.pixel.fire("aths","d",e)}else{a.pixel.fire("aths","c",e)}});return true})},notify:function(b){if(!this.notifications){this.notifications=new a.Views.Notification({appendTo:"body"})}this.notifications.flash(b)},isInstalled:function(){return(a.device.DDGisBrowserDefault()||a.extension.isInstalled()||(a.tParam.fromDefaultSearch())||!!a.history.get("atb")||a.device.isOnion)},canShowAddToBrowser:function(){if(a.addToBrowser.canAddToChromeMobile()&&a.tParam.get()==="crhs"){return true}if(a.device.isMobileDevice&&a.settings.isDefault(a.addToBrowser.BADGE_DISMISS_KEY)&&!a.tParam.fromDefaultSearch()&&!a.history.get("atb")&&a.device.canAddToBrowser()&&a.page.pageType!=="serp"){return true}return(a.settings.isDefault(a.addToBrowser.BADGE_DISMISS_KEY)&&a.addToBrowser.canShowBadgeAgain()&&!a.device.DDGisBrowserDefault()&&(!a.extension.isInstalled()||a.history.get("exti")==2)&&(!a.tParam.fromDefaultSearch())&&!a.history.get("atb")&&!a.device.isOnion&&a.device.canAddToBrowser()&&a.settings.isDefault("ko")&&!a.duckpan)},canShowAddToBrowserButton:function(){return(a.settings.isDefault(a.addToBrowser.BADGE_DISMISS_KEY)&&!a.addToBrowser.canShowBadgeAgain()&&!a.device.DDGisBrowserDefault()&&(!a.extension.isInstalled()||a.history.get("exti")==2)&&(!a.tParam.fromDefaultSearch())&&!a.history.get("atb")&&!a.device.isOnion&&a.device.canAddToBrowser()&&a.settings.isDefault("ko")&&!a.duckpan)},canShowHomepageEducationInstallButton:function(){return(!a.device.DDGisBrowserDefault()&&!a.extension.isInstalled()&&(!a.tParam.fromDefaultSearch())&&!a.history.get("atb")&&!a.device.isOnion&&a.device.canAddToBrowser()&&a.settings.isDefault("ko")&&!a.duckpan)},canShowHomepageOnboardingEducation:function(){return a.onboardingEducation.canShow()},fireStat:function(b){a.pixel.fire(b,{b:a.device.pixelBrowserName,atbi:this.canShowAddToBrowser(),ei:this.canShowHomepageOnboardingEducation(),i:this.isInstalled(),d:a.device.pixelId,l:w.locale,p:a.device.pixelPlatformName,atb:a.opensearch.version,va:a.opensearch.variant,atbva:a.opensearch.atbVariant})},_onSettingsLoaded:function(){var b=a.settings.toQueryString({onlyURLParams:true});if(b){kurl+="&"+b}if(this.liveUpdater){a.settings.updater=new a.Models.Settings.LiveUpdater({isHomePage:this.pageType==="home",settings:a.settings});a.settings.updater.updateAll();a.settings.on("change:kae",this.notify.bind(this,l("Theme Changed")))}},_checkForForceReload:function(){if(a.querystringParam("rld")==="1"){a.history.clear("rld",function(){window.location.reload()})}},_verifyMobileInstallation:function(){var g,f,c,h,e,b;if(!a.device.isMobileDevice||this.pageType!=="serp"){return}g=a.settings.get(a.settings.MOBILE_INSTRUCTIONS_KEY);if(a.tParam.fromDefaultSearch()&&!a.settings.isDefault(a.settings.MOBILE_INSTRUCTIONS_KEY)){e=g.match(/v\d*-\d/);if(e){f=e[0];g=g.replace(f,"");h=g.substr(3);c=a.opensearch.getDaysSinceCohort(f)<2?g.charAt(1):"_"}b=a.settings.isDefault(a.addToBrowser.BADGE_RECURRING_KEY)?0:1;a.pixel.fire("exti",a.device.pixelBrowserName,a.opensearch.version,{atbva:c,va:a.opensearch.variant,l:window.locale,cp:h,exte:0,p:a.device.pixelPlatformName,ak:a.settings.get(a.addToBrowser.BADGE_DISMISS_KEY),ax:b});a.settings.clear(a.settings.MOBILE_INSTRUCTIONS_KEY)}},_initializePage:function(){var c,b=this.pageType==="serp";if(b&&a.device.isIE){setTimeout("d.x.reset()",50)}if(w.postMessage){c=d.createElement("iframe");c.id="iframe_hidden";c.src="/post2.html";d.body.appendChild(c)}if(b){if(nir){nir("v")}setTimeout("nis()",250);if(!a.device.isMobileDevice){$("#web_content_wrapper").on("mousemove",nkf);$(document).on("mouseup",ncg);$(document).on("keydown",nckd);$(document).on("keyup",ncku)}}$(document).on("mousedown",ncf)},_hasCachedResources:function(b){if(typeof b==="undefined"||b.length===0){return false}var h,c,g=0,k=/proximanova/i,j=/\/(arrow|logo_homepage\.normal\.v\d+).svg$/i,f=/((l|u|d)\d+|libs|utils|base)\.js|((s|o)\d+|home|serp|style)\.css/i;for(var e=0;e0},_isBrowserReload:function(b){return(performance.navigation.type===performance.navigation.TYPE_RELOAD)},_hasDefaultSettings:function(b){var c=Object.keys(b);if(c.length===0){return true}else{if(c.length===1&&b.hasOwnProperty("t")){return true}}return false},_onReadyStateChange:function(){if(document.readyState==="complete"){if(this.pageType==="home"||this.pageType==="serp"){try{this.checkIsNewVisitor()}catch(b){a.pixel.fire("jse","nv",{msg:b.message})}}a.perf.reportNavigation(this.pageType)}}}}(DDG);!function(b){var a=b.Pages.Base;b.Pages.Static=function(c){a.call(this,c);this.pixelClass=c&&c.pixelClass||false};b.Pages.Static.prototype=$.extend({},a.prototype,{pageType:"static",sideMenuOps:{hideThemes:true},headerMenuOps:{disableSearchBar:false,disableSideMenu:false},ready:function(){if(location.pathname==="/iframe"){this.headerMenuOps.disableSearchBar=true;this.headerMenuOps.disableSideMenu=true}a.prototype.ready.call(this);$(".js-show-header").click(function(c){c.preventDefault();c.stopPropagation();this.searchbar.focus({focusInput:true})}.bind(this));this.$anchors=$(".js-anchor");this.$anchorLinks=$(".js-anchor-link");this.$anchorLinks.on("click",this._onAnchorLinkClick.bind(this));this.$popouts=$(".js-popout");this.$popovers=$(".js-popover");this._createPopouts();this._createPopovers();$("img").bind("contextmenu",function(c){return false});if(this.pixelClass){this.$links=$(".js-static-"+this.pixelClass);this.$links.on("click",this._onLinkClick.bind(this,0))}this.$footerLinks=$(".js-static-foot-link");if(this.$footerLinks.length){this.$footerLinks.on("click",this._onLinkClick.bind(this,1))}},addTo:function(e,c){var f=DDG.Utils.AddTo.getData();if(f[e]){new b.Views.AddTo({appendTo:c,data:f[e]})}},_onAnchorLinkClick:function(j){j.preventDefault();var h=j.currentTarget.hash.substr(1),f=this.$anchors,c="";for(var g=0;f.length>g;g++){if(f[g].name===h||f[g].id===h){c=$(f[g]);break}}if(c){b.device.scrollTop(c.offset().top,500)}},_createPopouts:function(){this.views.popouts=[];var g,c,e,f=0;for(;this.$popouts.length>f;f++){g=$(this.$popouts[f]);c=g.find(".js-popout-link");e=new b.Views.Modal({$el:g.find(".js-popout-main")});c.click(e.toggle.bind(e));this.views.popouts.push(e)}},_createPopovers:function(){this.views.popovers=[];var f,c,g,e=0;for(;this.$popovers.length>e;e++){f=$(this.$popovers[e]);c=$(f.attr("data-js-selector"));g=new b.Views.Modal({$el:f});c.click(g.toggle.bind(g));this.views.popovers.push(g)}},_onLinkClick:function(g,h){var c=$(h.currentTarget),f=b.pixel.sanitizeUrl(c.attr("href"));b.pixel.fire("splc",this.pageType,f,{ft:g})}})}(DDG);!function(c){var b=c.Pages.Base,a=1366,e=220;c.Pages.Home=function(f){this._checkForForceReload();b.call(this,f);window.onpageshow=this._onPageShow.bind(this);document.onreadystatechange=this._onReadyStateChange.bind(this);this.canShowMobileButton=c.addToBrowser.canShowMobileButton()};c.Pages.Home.prototype=$.extend({},b.prototype,{pageType:"home",liveUpdater:true,sideMenuOps:{twitterLink:true,hideSettings:true},ready:function(){var f=w.location.host.toLowerCase()==="start.duckduckgo.com",h=w.location.hash==="#1";this.isStart=f;this.scrollToOnboarding=h;this.searchbarFocusedIpad=false;if(!f&&!c.extension.isInstalled()){c.tParam.setFromHomepage(c.opensearch.allocateAtbVariant())}c.$win.scrollTop(0);this.isLandingPage=c.extension.canInstall()&&c.settings.isDefault("kae")&&(c.opensearch.atbVariant==="b"||c.opensearch.atbVariant==="c");this.isNoDismissLandingPage=c.extension.canInstall()&&c.settings.isDefault("kae")&&c.opensearch.atbVariant==="c";this.isSplitLandingPage=c.extension.canInstall()&&c.settings.isDefault("kae")&&(c.device.width>=800&&c.device.height>=600)&&c.opensearch.atbVariant==="e";b.prototype.ready.call(this);if(f){this.searchbar.$el.attr("action","//duckduckgo.com/");c.settings.set("kak","-1");c.settings.set("kal","-1");c.settings.set("kao","-1");c.settings.set("kaq","-1")}if(!c.device.isMobileDevice){this.searchbar.focus({focusInput:true})}if(this.isLandingPage){c.$html.addClass("is-landing-page");var i=$(".js-header-aside"),j=$("#search_form_input_homepage"),g=$("").attr("src","assets/home/landing/logo-horizontal-tm.svg").addClass("header--aside__logo");g.insertBefore(i);this.views.titles=new c.Views.HomepageTitles({after:".logo-wrap--home"});if(this.canShowAddToBrowser()||this.isNoDismissLandingPage){this.views.footerAtb=new c.Views.HomepageFooterAtb({appendTo:".js-foot-home"})}j.attr("placeholder","Private Search")}else{if(this.isSplitLandingPage&&this.canShowAddToBrowser()){c.$html.addClass("is-vsplit-landing-page")}}this._renderBadgeContent();this._initHeaderLinks();if(Modernizr.touch&&c.device.isIDevice){if(c.device.isIPad&&c.getProperty(window,"screen.height")===a){var k;this.searchbar.$el.on("focusin",function(){this.searchbarFocusedIpad=true;if(Math.abs(window.orientation)===90){k=c.device.scrollTop();c.device.scrollTop(e)}}.bind(this));this.searchbar.$el.on("focusout",function(){if(Math.abs(window.orientation)===90){c.device.scrollTop(k)}this.searchbarFocusedIpad=false}.bind(this))}window.onorientationchange=function(){if(this.searchbarFocusedIpad&&Math.abs(window.orientation)===90){setTimeout(function(){c.device.scrollTop(e)},500)}else{c.$win.scrollTop(0)}}.bind(this)}if(!this.isLandingPage){this.views.tagline=new DDG.Views.HomepageTagline({appendTo:".js-tag-home"})}this.views.onboardingEducation=new c.Views.OnboardingEducation({appendTo:".site-wrapper--home",pageView:this,model:c.onboardingEducation});if(this.canShowHomepageEducationInstallButton()){this._addOnboardingEducationButtons()}this.fireStat("hi")},_initHeaderLinks:function(){this.views.headerLinks=new c.Views.HeaderLinks({appendTo:".js-header-aside"})},_createButton:function(f){return new c.Views[c.addToBrowser.viewType]({clickPixel:"atb"+f+"c",xPixel:"atbbx",template:"add_to_browser_badge_button",buttonClass:"onboarding-ed__button-small",appendTo:".js-onboarding-ed-button-small-"+f})},_addOnboardingEducationButtons:function(){if(this.isLandingPage){this.views.atb_button=new c.Views[c.addToBrowser.viewType]({clickPixel:"atbbc",template:"add_to_browser_button_icon_onboarding",buttonClass:"atb-btn--dark",appendTo:".js-onboarding-ed-button"});return}this.views.atb_button=new c.Views[c.addToBrowser.viewType]({clickPixel:"atbbc",xPixel:"atbbx",template:"add_to_browser_badge_button",buttonClass:"onboarding-ed__button",appendTo:".js-onboarding-ed-button"});this.views.atb_button_1=this._createButton(1);this.views.atb_button_2=this._createButton(2);this.views.atb_button_3=this._createButton(3)},_onPageShow:function(f){if(f&&f.persisted){this._checkForForceReload()}},_renderBadgeContent:function(){if((!this.scrollToOnboarding&&this.canShowAddToBrowser())||this.isNoDismissLandingPage){var h=!c.device.isMobileDevice,g=$(".js-foot-home"),f={impressionPixel:this.canShowMobileButton?"atbbi":"atbhi",clickPixel:this.canShowMobileButton?"atb0c":"atbhc",xPixel:"atbhx",topRight:h,fadeIn:h,appendTo:h?".js-site-wrapper":g,hideOnClick:true};if(this.isLandingPage){h=false;f=$.extend({},f,{topRight:false,button:".js-atb-btn",appendTo:".js-foot-home-atb",template:"add_to_browser_button_icon"})}else{if(this.isSplitLandingPage){h=false;f=$.extend({},f,{topRight:false,fadeIn:false,appendTo:false,button:".js-badge-link-button",prependTo:".content-wrap--home",template:"add_to_browser_vsplit"})}}this.views.badge=new c.Views[c.addToBrowser.viewType](f);if(h){this.searchbar.on("typed",function(){if(this.views.badge.$el.is(":visible")){c.pixel.fire("atbht",c.device.pixelBrowserName,c.opensearch.version,{va:c.opensearch.variant,atbva:c.opensearch.atbVariant,l:w.locale,p:c.device.pixelPlatformName})}this.views.badge&&this.views.badge.hide()}.bind(this))}if(c.addToBrowser.canShowMobileBanner()){this.searchbar.$el.on("focusin",function(){this.views.badge&&this.views.badge.hide()}.bind(this));this.searchbar.$el.on("focusout",function(){this.views.badge&&this.views.badge.show(150)}.bind(this))}}else{if(c.newsletter.shouldShowBadge()){this.views.newsletter=new c.Views.SubscribeToNewsletterBadge({appendTo:".js-site-wrapper"});c.pixel.fire("nli",c.newsletter.group,"home");this.views.newsletter.show();this.searchbar.on("typed",function(){this.views.newsletter&&this.views.newsletter.hide()}.bind(this))}else{if(c.survey.shouldShowBadge()){this.views.survey=new c.Views.SurveyBadge({appendTo:".js-site-wrapper"});this.views.survey.show();this.searchbar.on("typed",function(){this.views.survey&&this.views.survey.hide()}.bind(this))}}}},addOnboarding:function(){if(!this.views.onboardingEducation.$el||this.views.onboardingEducation.model.isDismissed){this.views.onboardingEducation.model.isDismissed=false;this.views.onboardingEducation=new c.Views.OnboardingEducation({appendTo:".site-wrapper--home",pageView:this,learnMore:true,model:c.onboardingEducation});if(this.canShowHomepageEducationInstallButton()){this._addOnboardingEducationButtons()}}this.views.onboardingEducation.currentSlide=1;this.views.onboardingEducation._snapToSlideScroll()}})}(DDG);DDG.assets_loaded=[];DDG.templates={};DDG.first_result="r1-0";DDG.is_header_fixed=true;DDG.first_source=false;DDG.last_selection="";DDG.animation_speed=300;DDG.isJSURL=function(a){return !a||a==="javascript:;"||a==="#"};DDG.detect_intent_link=function(a){var b=0;if(DDG.device.isIDevice&&a.hostname=="itunes.apple.com"){b=1}else{if(DDG.device.isAndroid&&a.hostname=="play.google.com"){b=1}}return b};DDG.get_http_redirect=function(e,f){var b=e.href;if(DDG.settings.useRedirect()&&e.href.indexOf("/l/?")==-1&&!DDG.isInternalURL(e.href)&&!DDG.detect_intent_link(e)){var c=b.match(/^https/)||DDG.device.isOnion,a=c?"":"http://r.duckduckgo.com";b=a+"/l/?kh=-1&uddg="+encodeURIComponent(e.href);if(!(DDG.device.isEdge&&f)){nua("nul",e,500)}}return b};DDG.get_query_encoded=function(){return rq};DDG.get_query=function(){return decodeURIComponentSafe(rq)};DDG.get_is_safe_search=function(){return DDG.settings.safeSearch.isStrict()};DDG.stem=function(a){return a.replace(/(?:s)$/,"")};DDG.get_asset_path=function(b,a){if(Spice&&Spice.sharedir_map&&Spice.sharedir_map[b]){return"/share/"+Spice.sharedir_map[b].path+"/"+a}return"/share/spice/"+b+"/"+spice_version+"/"+a};DDG.get_now=function(){var a=new Date();return a.getTime()};DDG.$win=$(window);DDG.$doc=$(document);DDG.$html=$("html");DDG._$cache={};DDG.$=function(a){return DDG._$cache[a.toString()]||(DDG._$cache[a.toString()]=$(a))};DDG._$classCache={};DDG.addClass=function(c,b,a){DDG._$classCache[c+a]=true;b.addClass(a)};DDG.removeClass=function(c,b,a){delete DDG._$classCache[c+a];b.removeClass(a)};DDG.hasClass=function(b,a){return DDG._$classCache[b+a]};DDG.toggleClass=function(c,b,a){if(DDG.hasClass(c,a)){DDG.removeClass(c,b,a)}else{DDG.addClass(c,b,a)}};DDG.get_header_height=function(){return typeof DDG._header_height!=="undefined"?DDG._header_height:(DDG._header_height=DDG.$("#header_wrapper").outerHeight())};DDG.add_sitelinks=function(j,g,b,f){if(b&&b[g]&&b[g]["l"]){b[g]["l"].forEach(function(p,m,k){var q=m%2===0;var i=m===0;var o=m===k.length-1;var n=(o&&q&&k.length>1);p.id="r1-"+(m+1);p.nextRow=(q&&!i&&!o)||(n);p.domainName=f});var e=DDG.$exec_template("sitelinks",{links:b[g]["l"]});j.appendChild(e[0]);var a=function(i){return nrl(i,this)};var h=$(e).find(".result__a");for(var c=0;cviewport_width-100&&fmy>parseInt(viewport_height)-17){if(!DDG.deep.isLastResult&&nrb){nrb()}}i="";if(h.srcElement){i=h.srcElement}else{i=h.target}var g=0;var c=0;if(DDG.device.isIE&&(nkdc(h)||nkdm(h))){g=1}if(DDG.device.isEdge&&(nkdc(h)||nkdm(h))){c=1}var b=h.which&&h.which==2;var m=h.which&&h.which==3;if(c||g||b||m){fm=1;while(i&&i!=window){if(i.nodeName&&i.nodeName=="A"){if(DDG.isJSURL(i.href)){i.onclick();return false}else{i.href=DDG.get_http_redirect(i,m)}fl=1;break}a=i.id;if(a&&!m){if(a=="links"){break}if(rc&&a==rc.id){nrg(rc,0,h,1)}}if(i.parentNode){i=i.parentNode}else{break}}setTimeout(function(){fm=0;fl=0},1000)}else{fm=0}}function ncg(a){fmx=0;fmy=0;if(a.clientX>viewport_width-25){if(!DDG.deep.isLastResult&&nrb){nrb()}}}function nir(g){var a,f,e,b,c;e=(g)?".highlight_"+g:".result";a=$(e);a.each(function(h,j){f=$(j);if(f.attr("data-nir")){return}if(!is_mobile_device){f.on("mouseenter",function(i){if(fk||fe){return false}if(rc&&rc!=this){nua("nro",rc)}nua("nrv",this);rc=this});f.on("mouseleave",function(i){if(fk||fe){return false}nua("nro",this)})}if(g!="a"){f.click(function(i){if(this.id!=="did_you_mean"){organicClick(this,i)}if(!fe){nrg(this,0,i,0)}})}f.attr("data-nir",1);if(!g||g=="a"||g=="v"){b=f.find("a");for(c=0;cDDG.deep.pageNumber){if(!DDG.deep.isLastResult&&nrb){nrb("",1)}}else{if(!DDG.deep.isLastResult&&nrb&&!DDG.settings.autoloadDisabled()){nrb("",1)}}}if(!h){var b=$(g);if(!b.hasClass("highlight")){b.addClass("highlight");if(b.hasClass("highlight_sponsored")){b.addClass("highlight_sponsored_hover")}n=nun(g);o=b.offset().top;m=DDG.device.scrollTop();if(c&&n&&!fq&&o>m){n.focus();n.onclick=function(i){return nrl(i,this)}}}}}function nro(j){var h,f,e,b,g,c;if(!j){return false}var a=$(j);if(a.hasClass("highlight")){a.removeClass("highlight");if(a.hasClass("highlight_sponsored_hover")){a.removeClass("highlight_sponsored_hover")}h=nun(j);if(h&&!fq){h.blur()}}}function nrs(b,f,e){var g,a,c,i,h;g=$(b).offset().top;c=$(b).outerHeight();a=DDG.device.scrollTop();h=viewport_height/2;if(!c||g==a){return}if(f||g+c+10>viewport_height+a||g-10h||e==-1&&g-a1){DDG.page.relatedSearches=new DDG.Views.RelatedSearches({appendTo:$("#links"),model:DDG.deep})}}function nrb(b,c){var e,p,g,j,n,m,o,f,a,h,k;if(!DDG.duckbar.areOrganicsShowing()){return}if(fs){return false}fs=1;n=document.body.scrollHeight;m=DDG.device.scrollTop();g=m+viewport_height>=n-500?1:0;j=0;if(!c&&fmx&&fmy&&fmx>viewport_width-100&&fmy=0;f--){k="r1-"+(f+((slo)?slo:0));a=d.getElementById(k);h=a&&a.parentNode;if($(h).css("display")=="block"){nrm(7,k);break}}}fs=0}function nrm(q,m){var o,g,f,c,e,a,v,n,u,i,r,j,h,t,z,s,b,p;if(fq){return false}if(fo){setTimeout("nrm("+q+",'"+m+"')",100);return false}fo=1;o=new RegExp("r(\\d+)-(\\d+)");g=new RegExp("rl([ei])(\\d+)-(\\d+)");f=new RegExp("rld-(\\d+)");if(m){if(o.test(m)){c=RegExp.$1||0;e=RegExp.$2||0}else{if(m=="zero_click_wrapper"){c=1;e=-1}else{fo=0;return false}}}else{if(rc&&rc.id=="zero_click_wrapper"){c=1;e=-1}else{if(rc&&o.test(rc.id)){c=RegExp.$1||0;e=RegExp.$2||0}else{if(rc&&g.test(rc.id)){c=rs?1:2;r=1}else{if(rc&&f.test(rc.id)){c=1;r=1}else{rc=d.getElementById(DDG.first_result);if(!rc){rc=d.getElementById("zero_click_wrapper")}if(!rc){fo=0;return false}else{e=0;c=1}}}}}}switch(q){case 1:if(rc&&rc.id&&rc.id==DDG.first_result&&!$(rc).hasClass("highlight")){}else{e++}break;case 2:e--;break;case 3:c++;e=0;break;case 4:c--;e=0;break;case 5:break;case 6:break;case 7:e++;break;default:e++}n="r"+c+"-"+e;if(e<=-1){n="zero_click_wrapper"}u=d.getElementById(n);i=0;if(m){i=d.getElementById(m)}if(q==1&&c==2&&!u&&r1c){n=DDG.first_result;u=d.getElementById(n)}z=DDG.device.scrollTop();if(q==1){if($("#"+n).length>0){t=$("#"+n).offset().top}if(t&&(t(z+1.5*viewport_height))){a=0;while(a>-1){v=d.getElementById("r1-"+a);if(!v){break}b=$(v);t=b.offset().top;p=10;s=b.height()+p;if(t-s0){t=$("#"+n).offset().top}if(t<(z-0.5*viewport_height)||t>(z+viewport_height)){a=r1c-2;while(a>0){v=d.getElementById("r1-"+a);if(!v){break}b=$(v);t=b.offset().top;p=10;s=Math.max(b.height(),90)+p;if(t+s>(z+viewport_height)){a--}else{u=v;break}}}}if(i&&!u&&q==7&&i.nextSibling&&i.nextSibling.firstChild){var k=i.nextSibling;if(k.firstChild&&k.firstChild.onclick){k.firstChild.onclick()}fo=0;return}else{if(!i&&!u&&q==7&&rc&&rc.nextSibling&&rc.nextSibling.firstChild){var k=rc.nextSibling;if(k.firstChild&&k.firstChild.onclick){k.firstChild.onclick()}fo=0;return}}if((n=="zero_click_wrapper")&&$(u).css("display")=="none"){fo=0;return}if(r){switch(q){case 1:if(c==2){u=rc.nextSibling.nextSibling;if(!u){n=DDG.first_result;u=d.getElementById(n)}else{if($(u).css("display")=="none"){u=u.nextSibling.firstChild;if(!u.id&&u.nextSibling){u=u.nextSibling}}}}else{if(c==1&&rc.nextSibling.nextSibling){u=rc.nextSibling.nextSibling.nextSibling}else{if(1){n=DDG.first_result;u=d.getElementById(n)}else{u=rc.nextSibling.firstChild}}}break;case 2:u=rc.previousSibling.previousSibling;if($(u).css("display")=="none"){u=u.nextSibling.lastChild}break;case 4:break;case 7:if(rc.nextSibling.nextSibling){u=rc.nextSibling.nextSibling.nextSibling}else{u=rc.nextSibling.firstChild}break;default:fo=0;return false}}if(u){if(c==1&&g.test(u.id)){u=u.nextSibling.firstChild}if(q!=7){if(rc){nua("nro",rc)}}if(q!=5&&(c==2||rs)&&$(u.parentNode).css("display")=="none"){j=u;while(j.parentNode.id!="zero_click_topics"&&j.parentNode.id!="links"&&j.parentNode.id!="content"){j=j.parentNode;if(!h&&$(j).css("display")=="block"){h=j}}if(h&&r){u=j.nextSibling.nextSibling}else{if($(j).css("display")=="none"){u=j.previousSibling}else{if(j.nextSibling&&$(j.nextSibling).css("display")=="block"){u=h.lastChild.previousSibling}else{if(q==2&&j.previousSibling){u=j.previousSibling}else{if(q==1&&j.nextSibling&&$(j.nextSibling).css("display")=="none"){u=j.nextSibling.nextSibling.firstChild.nextSibling}else{if(q==1&&!j.nextSibling){u=j.previousSibling}}}}}}if(g.test(u.id)&&rs&&RegExp.$1=="e"){u=u.nextSibling.firstChild}}nua("nrv",u,0,1,0,q==7?1:0,q==5||q==7?1:0,1);if(q!=7){rc=u}if(q!=7&&rc&&rc.id){if(fk&&(e>6+slo||q==2)){if(!DDG.device.isOpera){nua("nrs",rc,0,1,0,1,q==5?0:q==1?1:-1)}else{nrs(rc,1,q==5?0:q==1?1:-1)}}else{if(!DDG.device.isOpera){nua("nrs",rc,0,1)}else{nrs(rc,0,0)}}}}else{if(c==1&&n!="zero_click_wrapper"&&!DDG.deep.isOutOfResults&&(!rs||!it)&&DDG.deep.lastPage>=DDG.deep.pageNumber){nrv(d.getElementById("r1-"+parseInt(r1c-1)),1);setTimeout("nrm("+q+",'"+m+"')",100)}}if(DDG.device.isOpera&&q==1&&nrb){nrb()}fo=0}function appendAdClass(b,a,c){b.className+=" result--ad highlight_sponsored sponsored";if((a===0&&DDG.page.ads.smallFirst)||(a===1&&DDG.page.ads.smallSecond)||a>1){b.className+=" result--ad--small"}b.setAttribute("data-source",c)}function nrn(aw,H,r,N){if(!aw||!H){return}if(DDG.page.relatedSearches){DDG.pixel.fire("rele",{l:DDG.deep.getResultCount(),p:DDG.deep.pageNumber,kav:DDG.settings.get("kav")});DDG.page.relatedSearches.destroy();delete DDG.page.relatedSearches}if(!r){DDG.deep.nrnWrapper(aw,H);return}var P,au,an,al,aj,J,k,C,B,o,T,ae,n,at,ah,u,t,av,aq,ao,W,b,v,ac,ab,Y,E,p,S,Q,G,aa,F,V,ad,af,M,I,ai,a,L;var ap=DDG.page.ads.canShowRightRailAds();var ar=DDG.page.ads.canShowGoodAdsLayout();var O=false;var g=kai&&kai=="-1";var h;E=H.length;if(aw==="d"){at="1";n=d.getElementById("links");ah=r1c;if(!DDG.deep.started){af=1;DDG.deep.set("started",new Date().getTime())}}else{if(aw==="a"){ah=r3c;at="a";O=!ah&&(DDG.deep.pageNumber===1||DDG.page.ads.pendingAds);var R=3;if(DDG.device.isMobile){R=1}if(E>R){H=H.slice(0,R);E=H.length}if(DDG.page.ads.isBlocked()){return}if(!DDG.page.ads.hasAds()&&O&&DDG.deep.timeSinceFinished()>500){return}if(O){var s=$(".js-sidebar-ads"),e=DDG.page.ads.rightRailBoth,f=DDG.page.ads.rightRailSecond;if(f||e||(DDG.page.ads.ads.length>2&&ap)){s.addClass("results--ads results--ads--rrail has-ad");$("html").addClass("has-right-rail-ads")}if(e){n=s[0]}else{n=d.getElementById("ads")}}else{var X=DDG.page.ads.hasSiteLinks(H)?"has-ad--sitelinks":"",c;c=$('
');$("#links").append(c);n=c[0]}}}B="";G=0;if(aw=="d"&&(!H.length||H[E-1]["t"]=="EOP"||H[E-1]["t"]=="EOF")){G=1;DDG.deep.set("isOutOfResults",true);DDG.deep.set("isLastResult",true);if(H.length&&H[E-1]["t"]=="EOP"){G=2}if(E===1&&af){setTimeout(function(){DDG.pixel.fire("nre",{ss:DDG.page.showingSafeSearch})},250)}}if(aw=="d"){$(".js-results-loading").remove();if(E>1){$(".js-result-sep.is-hidden").removeClass("is-hidden")}}W=b=p=S=Q=0;for(var P=0;P0){slo=$(".js-sitelink").length;a=true}if(!DDG.settings.isDefault("k1")&&H[P]["p"]){continue}if(aw==="a"&&((P>0&&DDG.page.ads.rightRailSecond)||(P>1&&ap))){n=$(".js-sidebar-ads")[0]}if(!I&&aw=="d"&&H[P]["k"]){I=P}if(W==1&&rv=="i"){setTimeout('top.location.replace("'+H[P]["u"]+'")',100);return}var am=H[P]["u"]||"";var U=H[P]["d"]||"";U=U.split("/");var v=U.shift()||"";aa=0;if(aw=="d"&&H[P]["t"]=="EOP"){aa=1;continue}else{if(aw=="d"&&H[P]["t"]=="EOF"){aa=1;continue}}if(aw=="d"&&!aa&&!H[P]["p"]){if(!v||DDG.deep.resultDomains[H[P]["u"]]){if(b==0&&W==E&&!af&&!DDG.deep.hideNoResults){nrj("/l.js?q="+rq);G=1}if(W==E){F=1}else{continue}}else{DDG.deep.resultDomains[H[P]["u"]]=H[P]["u"]}if(P==(E-1)&&H[P]["n"]){DDG.page.deepNextURL=H[P]["n"]}}if(!F){b++;au=d.createElement("div");au.id="r"+at+"-"+(ah+((ah===0)?0:slo));ah++;$(au).addClass("result results_links"+(aw=="d"&&!H[P]["h"]?"_deep":"")+" highlight_"+aw);if(ar&&aw=="a"){$(au).addClass("result--ad--good")}if(aw==="a"&&H[P]["adn"]){au.setAttribute("data-adn",H[P]["adn"])}if(aw==="a"&&H[P]["relevancy"]){au.setAttribute("data-rel",JSON.stringify(H[P]["relevancy"]))}if(aw==="a"&&H[P]["adf"]){au.setAttribute("data-adf",1)}au.setAttribute("data-domain",v);var D=d.createElement("a");D.href=am;au.setAttribute("data-hostname",D.hostname);if(typeof H[P]["hu"]!=="undefined"){au.setAttribute("data-hu",H[P]["hu"])}}if(H[P]["da"]){DDG.search.deepAnswerIAs["r"+(ah-1)]=H[P]["da"]}if(F){continue}an=d.createElement("div");$(an).addClass("result__body links_"+(at==1||at=="a"?"main":"zero_click"));if((aw=="d"||aw=="a")&&!H[P]["h"]){$(an).addClass("links_deep")}var K;if(aw!="r"){k=d.createElement("a");K=d.createElement("a");if(aw=="d"||aw=="a"){k.className="result__a";k.setAttribute("rel","noopener");K.setAttribute("rel","noopener");K.className="result__check";K.innerHTML=''+l("Your browser indicates if you've visited this link")+""}k.href=H[P]["c"];K.href=H[P]["c"];if(kn&&kn=="1"&&k&&k.href&&k.getAttribute("href").indexOf("http")!=-1){k.target="_blank";K.target="_blank"}M=d.createElement("h2");M.className="result__title";k.innerHTML=H[P]["t"];C=k;if(DDG.searchExperiments.demexp&&DDG.searchExperiments.demexp.activeGroup==="c"){h=DDG.$exec_template("result_icon_lock",{icon:{hide:false}});M.appendChild(h[0])}M.appendChild(k);M.appendChild(K);an.appendChild(M)}if(aw=="d"||aw=="a"){var m=new DDG.Views.ResultSnippet({model:new DDG.Models.ResultSnippet({isAd:aw==="a",item:H[P],showExtensionData:aw==="a"&&DDG.page.ads.canShowAdExtensions(P,DDG.deep.pageNumber)}),appendTo:$(an),parentDiv:au});var ag=null;if(aw==="a"&&H[P].l){ag=new DDG.Models.AdSitelinks({sitelinksMarkup:H[P].l,showEnhancedSiteLinks:DDG.page.ads.canShowEnhancedSiteLinks(P),canShowGoodAdsLayout:DDG.page.ads.canShowGoodAdsLayout(),source:H[P].s,adxExperiment:DDG.page.ads.adxExperiment,layoutName:DDG.page.ads.adx,isShowingLargeSitelinks:L,isFirstPageOfAds:O});L=ag.canShowLargeSitelinks()}al=d.createElement("div");al.className="result__extras js-result-extras";var ak=new DDG.Views.ResultExtras({model:new DDG.Models.ResultExtras({isAd:aw==="a",item:H[P]}),appendTo:$(al),parentDiv:au,titleLockIcon:h});if(H[P]["l"]&&aw==="a"&&ag&&!ag.canShowLargeSitelinks()){DDG.page.views["adSitelinks"+P]=new DDG.Views.AdSitelinks({model:ag,organicResultContainer:au,appendTo:$(m.$el)})}if(!aa){if(H[P]["p"]){M.appendChild(DDG.$exec_template("ad_badge")[0]);appendAdClass(au,P,H[P].s)}}if(ag&&ag.canShowLargeSitelinks()&&g){an.appendChild(al);DDG.page.views["adSitelinks"+P]=new DDG.Views.AdSitelinks({model:ag,organicResultContainer:au,appendTo:$(an)})}else{if(ag&&ag.canShowLargeSitelinks()){an.insertBefore(al,an.lastChild);au.className+=" result--url-above-snippet";DDG.page.views["adSitelinks"+P]=new DDG.Views.AdSitelinks({model:ag,organicResultContainer:au,appendTo:$(an)})}else{if((m.$el&&!m.$el[0]||g)){an.appendChild(al)}else{an.insertBefore(al,an.lastChild);au.className+=" result--url-above-snippet"}}}}au.appendChild(an);n.appendChild(au);if(H[P]["l"]&&aw==="d"){DDG.add_sitelinks(n,P,H,v)}if(!rc&&au.id==DDG.first_result){rc=au;var q=d.createElement("div");q.id="organic-module";n.appendChild(q)}if(aw=="d"&&b==1){V=0;t=new RegExp("^r1-(\\d+)$");if(rc&&t.test(rc.id)){av=RegExp.$1}V=av==ah?1:0;if(fk&&V&&(!au.previousSibling||au.previousSibling.id.indexOf("r1-")==-1)){nrm(6,au.id)}}var A=function(i,x,j,y){if(i==="a"){adClick(x,j,y)}return nrl(y,this)};if(C){C.onclick=A.bind(C,aw,H[P].s,au)}if(B){if(aw==="a"){B.onclick=function(i){return nrl(i,this)}}else{$(B).click(function(i){i.stopPropagation();DDG.pixel.fire("mrc");return nrl(i,this)})}}}if(aw=="d"&&H[0]&&H[0]["s"]&&!DDG.deep.showedAttribution){if(af){DDG.first_source=H[0]["s"]}DDG.search.set("src",H[0]["s"]);if(DDG.deep.canShowAttribution()){new DDG.Views.WebAttribution({model:DDG.deep,appendTo:".js-serp-bottom-right"});DDG.deep.set("showedAttribution",true)}}if(at=="a"){if(!r3c){DDG.page.ads.setFirstBatchShown()}r3c=ah}else{if(!af&&(ah-r1c<10||r1c<10)){$(".js-result-sep:last").hide();DDG.deep.pageNumberDecrement()}r1c=ah}if(af&&I){DDG.page.ads.setDefaultAds([H[I]])}H=null;if(nir){nir(aw)}DDG.ImageLoader.locateUnloaded();if(G&&!DDG.deep.hideNoResults&&!DDG.deep.getResultCount()){DDG.page.noResults=new DDG.Views.NoResults({appendTo:$("#links")})}if(!G&&W==E&&!p&&N){var Z=$("#links")[0];an=d.createElement("div");$(an).addClass("result result--more");k=d.createElement("a");k.href="javascript:;";k.onclick=function(){if(DDG.deep.hasPendingResults()){DDG.deep.showPendingResults();nsr(this);$(".js-result-sep").removeClass("is-hidden")}else{nsr(this)}};k.className="result__a";an.id="rld-"+ ++rdc;k.appendChild(d.createTextNode(lp("additional_info_at","More results")));k.className="result--more__btn btn btn--full";an.appendChild(k);Z.appendChild(an);an=d.createElement("div");an.id="rrd-"+rdc;$(an).css("display","none");Z.appendChild(an);p=1}if(nrb){nrb()}}function nsr(f,s,e){if(!f){return}var j,i,h,c,g,m,o,n,k,r,a,u,b;h=new RegExp("^r[lr](.*)-(\\d+)$");f=f.parentNode;if(f.id&&h.test(f.id)){g=RegExp.$1||0;m=RegExp.$2||0}if(g&&m){if(tn==f.id){return false}tn=f.id;b=j=i=0;c=new RegExp("^r1-(\\d+)$");if(rc&&c.test(rc.id)){j=RegExp.$1}if(f.previousSibling&&c.test(f.previousSibling.id)){i=RegExp.$1}b=j&&i&&parseInt(j)==parseInt(i)+1?1:0;if(!fk){b=2}o=d.getElementById("rl"+g+"-"+m);n=d.getElementById("rr"+g+"-"+m);k=d.getElementById("rl"+g+"-"+(parseInt(m)+1));var q=DDG.settings.get("kv");if(q&&q!="-1"&&rds!=0&&(rds!=1||r1hc)&&g&&g.indexOf("i")==-1){o.onmouseover=function(){};o.onmouseout=function(){};o.onclick=function(){};o.className="result result--sep is-hidden js-result-sep";var p=DDG.deep.pageNumberIncrement();if(q=="m"){o.className+=" result--sep--hr";o.innerHTML=""}else{if(q=="l"){o.innerHTML='
'+l("Page %s",p)+"
"}else{o.className+=" result--sep--hr has-pagenum";o.innerHTML='
'+p+"
"}}}else{$(o).css("display","none")}n.style.display="block";if(k&&!s){$(k).css("display","block")}else{if(!k&&(g=="d"||g=="e0"&&!fd)&&DDG.page.deepNextURL){a=d.createElement("span");a.className=(!DDG.settings.autoloadDisabled())?"result--more":"btn result--more";a.className+=" is-loading js-results-loading";a.innerHTML=Handlebars.helpers.loader();n.parentNode.appendChild(a);if(rv=="d"){rv=""}if(rds){rds+=50}else{rds+=30}nrj(DDG.page.deepNextURL,1);delete DDG.page.deepNextURL}}if(!s&&!e&&b==1){if(f.nextSibling.firstChild){nrm(6,f.nextSibling.firstChild.id)}}}}function nul(b){var a,c;var a=b.href.indexOf("/l/?kh=-1&uddg=");if(a!=-1){c=decodeURIComponent(b.href.substring(a+15))}if(c){b.href=c}fl=0}function nutp(b){var a=b.split("_");DDG.pixel.fire.apply(DDG.pixel,a);a.unshift("old");DDG.pixel.fire.apply(DDG.pixel,a)}function nua(i,j,h,g,b,e,c,a){if(!b){b=tr.length;tr[b]=j}if(!h){h=10}if(!g){setTimeout(i+"(tr["+b+"],"+e+","+c+","+a+");",h)}else{if(!tsl){tsl=ts.length;setTimeout(i+"(tr["+b+"],"+e+","+c+","+a+");tsl=0",10)}else{setTimeout("nua("+i+",0,1,"+b+","+e+","+c+","+a+")",100)}}}function nug(e,g){var b,c,f,a;fl=0;fn=0;a="";if(window.getSelection){a=window.getSelection().toString()}else{if(document.selection){a=document.selection.createRange();a=a.text}}var h=a==DDG.last_selection?1:0;DDG.last_selection=a;if(!h){return false}if(g){openBlankWindow(e)}else{if(w.postMessage&&!DDG.device.isSafari&&!DDG.device.isIDevice&&!DDG.device.isKonqueror&&kg!="p"&&DDG.settings.useRedirect()){b=document.getElementById("iframe_hidden");b.contentWindow.postMessage("ddg:"+e,location.protocol+"//"+location.hostname)}else{if((DDG.device.isIE||DDG.device.isIDevice||DDG.device.isChrome||DDG.device.isSafari||DDG.device.isFirefox)&&e.indexOf("http")!=-1&&kg!="p"&&DDG.settings.useRedirect()){if(d.getElementById("iframe_hidden")){d.body.removeChild(d.getElementById("iframe_hidden"))}c="