1 line
66 KiB
Plaintext
1 line
66 KiB
Plaintext
var DDG={Data:{},Models:{Answers:{},AnswerItems:{},Settings:{},AnswerSelectLists:{},Maps:{},Modules:{},Bang:{}},Pages:{},Views:{About:{},Address:{},AnswerBar:{Answers:{},Meta:{}},Bang:{},Dropdowns:{},Feedback:{},Mapkit:{},Maps:{},Modules:{},Places:{},Settings:{},Verticals:{}},Text:{},Utils:{Settings:{}}};DDG.Data.Pixels={abort:{},ac:{once:true},ad:{ct:true,kl:true,kp:true,once:true},atbai:{once:true},atbac:{once:true},atbbi:{once:true},atbbsi:{once:true},atbbsc:{once:true,dedupe:"va"},atbhi:{once:true,ct:true},atbhc:{once:true,ct:true,dedupe:"va"},atbhl:{once:true},atbhx:{once:true},atbht:{once:true},atbic:{once:true},atbii:{once:true},atbis:{once:true},atbil:{once:true},atbif:{once:true},atbish:{once:true},atbmi:{once:true},atbmc:{once:true},atbmx:{once:true},atbpi:{once:true},atbpc:{once:true},atbsi:{once:true},atbsc:{once:true,dedupe:"va"},atbti:{once:true},atbtc:{once:true},atbsx:{once:true},atbob:{once:true},atboc:{once:true},atbaoc:{once:true},atbaoct:{once:true},atbaoi:{once:true},atbskc:{once:true},atbbgc:{once:true},aopl:{once:true},aops:{once:true},aobc:{once:true},aoabi:{once:true},aoac:{once:true},aosc:{once:true},aomc:{once:true},aths:{},bcl:{once:true},c:{once:true},cs:{once:true},dem:{once:true},dfc:{once:true,ct:true,device:true},dli:{once:true},dop:{once:true},dpi:{ct:true,device:true},dxr:{ct:true,device:true,once:true,kl:true},"dntul-1":{once:true},"dntul-2":{once:true},"dntul-3":{once:true},"dntul-4":{once:true},"dntul-5":{once:true},dntus:{once:true},emcb:{},exti:{once:true,ct:true,qsParam:"file"},exts:{once:true},exte:{once:true},aaud:{query:true,ct:true},fbp:{query:true,ct:true,kl:true,device:true},fbpm:{query:true,ct:true,kl:true,device:true},fbf:{},fbs:{device:true},fbc:{once:true,device:true},fmd:{once:true,query:true},ibc:{},hlt:{once:true},htl:{once:true},l:{once:true,ct:true,kl:true,kp:true,query:true},lc:{once:true,ct:true,kl:true,kp:true,device:true,query:true,dedupe:"ttc"},lm:{query:true},lse:{},map_si:{once:true,device:true},map_se:{once:true,device:true},map_ei:{once:true,device:true},map_eze:{once:true,device:true},map_ete:{once:true,device:true},map_ese:{once:true,device:true},map_est:{once:true,device:true},map_ece:{once:true,device:true},map_ebe:{once:true,device:true},mrc:{once:true},nrjt:{once:true},nor:{once:true,query:true,ct:true,kl:true},norrc:{once:true,query:true,ct:true,kl:true,kp:true},norwc:{once:true,query:true,ct:true,kl:true,kp:true},nre:{once:true,query:true,ct:true,kl:true},ntp_c:{once:true},nv:{once:true,query:true,ct:true,kl:true},prb:{once:true},rgc:{once:true,ct:true,device:true},reli:{query:true,once:true,device:true,ct:true},relc:{query:true,once:true,device:true,ct:true},rele:{query:true,once:true,device:true,ct:true},rq:{query:true,once:true,ct:true,kl:true,kp:true,device:true},shc:{once:true},shs:{once:true},sm:{},sml:{},smo:{},sp:{},spp:{once:true},spd:{},splc:{once:true},sshc:{ct:true,device:true,once:true},sshs:{ct:true,device:true,once:true},ssi:{ct:true,device:true,once:true,query:true},sss:{ct:true,device:true,once:true},w:{},iaa:{once:true,device:true},iae:{once:true,ct:true,kl:true,kp:true,device:true,query:true},iafd:{once:true,query:true,ct:true,kl:true,device:true},iaff:{ct:true,query:true,kl:true,device:true},iafp:{ct:true,query:true,kl:true,device:true},iafo:{ct:true,query:true,kl:true,device:true},iafi:{once:true,kl:true,device:true},iag:{once:true,ct:true,kl:true,device:true,dedupe:"clk"},iacg:{once:true,ct:true,kl:true,kp:true,device:true},iaoe:{once:true,query:true,ct:true,kl:true,kp:true,device:true},iaob:{once:true,ct:true,kl:true,kp:true,device:true},iaof:{ct:true,kl:true,device:true},iaoi:{once:true,ct:true,kl:true,kp:true,device:true,query:true},iaolc:{once:true,ct:true,kl:true,kp:true,device:true,query:true,dedupe:"ttc"},iaui:{once:true,ct:true,kl:true,device:true,query:true},iaop:{ct:true,kl:true,device:true},iaoq:{once:true,ct:true,kl:true,kp:true,device:true},iaor:{once:true,ct:true,kl:true,kp:true,device:true},ias:{once:true,ct:true,kl:true,device:true,query:true},iasm:{once:true,ct:true,kl:true,device:true},iadrc:{once:true,kl:true,device:true},iatc:{once:true,ct:true,kl:true,device:true},iahic:{once:true,ct:true,kl:true},iahmc:{once:true,ct:true,kl:true},iahmf:{once:true,query:true},jse:{once:true,ct:true},depr:{},old:{},sppl:{once:true},sps:{once:true},sptb:{once:true},atbbsb:{once:true},atbbl:{once:true},hpec:{once:true},hptc:{once:true},hpac:{once:true},atbbc:{once:true},atb0c:{once:true},atb1c:{once:true},atb2c:{once:true},atb3c:{once:true},hi:{once:true},hs:{once:true},hst:{once:true},nb:{once:true},nlms:{once:true},nli:{once:true},nlc:{once:true},nlx:{once:true},nlmx:{once:true},nlxs:{once:true},pollnew:{once:true},pollold:{once:true},pollr:{once:true},pollret:{once:true},nlis:{once:true},iconf:{once:true},readsb:{once:false},perf:{once:false,device:true},lctai:{once:true,device:true,kl:true,ct:true},lctac:{once:true,device:true,kl:true,ct:true},lctan:{once:true,device:true,kl:true,ct:true},lctar:{once:true,device:true,kl:true,ct:true},lctax:{once:true,device:true,kl:true,ct:true},lctas:{once:true,device:true,kl:true,ct:true},lfmi:{once:true,device:true,kl:true,ct:true},lfmc:{once:true,device:true,kl:true,ct:true},lfmx:{once:true,device:true,kl:true,ct:true},lmc:{once:true,device:true,kl:true,ct:true},lhc:{once:true,device:true,kl:true,ct:true},lupd:{once:true,device:true,kl:true,ct:true},lups:{once:true,device:true,kl:true,ct:true},lupe:{once:true,device:true,kl:true,ct:true},fic:{once:true},lmm:{once:true,device:true,kl:true,ct:true},lmmh:{once:true,device:true,kl:true,ct:true},lmms:{once:true,device:true,kl:true,ct:true},lmgc:{once:true,device:true,kl:true,ct:true},sui:{once:true},suc:{once:true},sux:{once:true},vu:{once:true},vr:{once:true},sad:{once:true},sda:{},sdd:{once:true},sdr:{},set:{once:true},wcmi:{once:true},wcmc:{once:true},wcmd:{once:true}};!function(a){a.Utils.Pixel=function(){this._pixels=DDG.Data.Pixels;this._sentPixels=[]};a.Utils.Pixel.prototype=$.extend({},{fire:function(){var e=Array.prototype.slice.call(arguments),c=this._pixels[e[0]],g,f;if(!c){e.unshift("depr")}else{var h={};if(c.query){h.q=DDG.get_query_encoded()}if(c.ct&&window.ct){h.ct=window.ct}if(c.device){h.d=a.device.pixelId}if(c.kl){h.kl=a.settings.get("kl")}if(c.kp){h.kp=a.settings.get("kp")}if(c.qsParam&&a.history.get(c.qsParam)){h.qsp=a.history.get(c.qsParam)}if(a.opensearch&&a.opensearch.installed.version){h.atb=a.opensearch.installed.version;if(a.opensearch.installed.atbVariant){h.atbva=a.opensearch.installed.atbVariant}if(a.opensearch.installed.variant){h.va=a.opensearch.installed.variant}if(a.opensearch.installed.experimentPixelId){h.atbexp=a.opensearch.installed.experimentPixelId}}var b=a.modulesLayout&&a.modulesLayout.getModuleInfo(a.Models.ModulesPositions.SIDE);if(b&&b.length){h.sm=b.join(",")}if(a.duckbar&&a.duckbar.hasOrganicModules()){h.om=a.duckbar.getOrganicModuleInfo().join(",")}if(a.backData&&a.backData.getId()){h.bkl=a.backData.getId()}if(a.search&&a.search.userLocationExp){h.ulexp=a.search.userLocationExp}e.push(h);g=c.once;f=c.dedupe}return this._send(e,{once:g,dedupe:f})},sanitizeUrl:function(b){return b.replace(/^\/|\/$/,"").replace(/[^a-z0-9_-]+/ig,"-")},_send:function(n,c){var q=Math.ceil(Math.random()*10000000),t="",r="",m={},u;for(var h=0;h<n.length;h++){u=n[h];if(typeof u==="object"){$.extend(m,u)}else{if(t.length){t+="_"}t+=u}}for(var s in m){var g=m[s];r+="&"+s+"="+g}if(c.once){var o=r;if(c.dedupe){var f=new RegExp("&?"+c.dedupe+"=[^&]+");o=r.replace(f,"")}var k=t+o;if(this._sentPixels.indexOf(k)>-1){return}this._sentPixels.push(k)}if(a.searchExperiments){var p=a.searchExperiments.getPixelParameters();if(p){r+="&"+p}}if(a.duckpan||a.device&&a.device.isDDGIgnore){return}var b;try{b=$('<img src="'+a.services.getURL("pixels")+t+"?"+q+r+'"/>')}catch(j){}return b}});a.pixel=new a.Utils.Pixel()}(DDG);!function(a){a.Utils.ErrorHandler=function(){window.onerror=this._onError.bind(this)};a.Utils.ErrorHandler.prototype={_onError:function(n,b,f,m,i,k){if(!n||n===": "||n.match(/Script error|Cannot read property \'style\'|atomicFindClose|bestpriceninja|ModifyLinkTargets|browserToolsLoaded|__gCrWeb|mobiGetClick|savingsslider|DealPly|processSiteSource|symcBFPerform|Papa_|ByTagName\(\'video\'|setTimeout[0-9]+ is undefined/)){return}if(!b||!b.match(/^http/i)||b.match(/checkpoint|main\.js/)){return}if(n.match("contentWindow")&&a.device.label==="Android"){return}var c=(k)?k.toLowerCase():this._getCategory(b,f);try{var g={msg:encodeURIComponent(n),url:encodeURIComponent(b),line:f,col:m};a.pixel.fire("jse",c,g)}catch(h){var j=Math.ceil(Math.random()*10000000);$('<img src="/t/jse_u?'+j+"&msg=infinite%20loop%20in%20onerror%3A%20"+h.message+'"/>')}},_getCategory:function(b,f){var c;if(b.match(/\/\?q=/)){c="view";if(f&&f>1){c="ext"}}else{if(b.match(/\/share\/spice/)){c="spice"}else{if(b.match(/\/share\/goodie/)){c="goodie"}else{if(b.match(/\/js\/spice/)){c="spiceupstream"}else{if(b.match(/\/d\d+\.js/)){c="base"}else{if(b.match(/\/g\d+\.js/)){c="serp"}else{if(b.match(/\/t\d+\.js/)){c="static"}else{if(b.match(/\/util\/u\d+\.js/)){c="util"}else{if(b.match(/\/js\/.*\.js/)||b.match(/\/lib\/l\d+\.js/)){c="lib"}else{if(b.match(/\/[a-z]+\.js/)){var e=b.match(/([a-z]+)\.js/);c=e[1]||"u"}else{c="u"}}}}}}}}}}return c}}}(DDG);!function(a){a.embed={callback:null,id:"embed",_hasValidResult:function(b){return b&&b.description&&b.image&&b.provider&&b.title&&b.icon&&b.url&&b.tab_name},add:function(b){if(!b||!this._hasValidResult(b)){a.duckbar.failed("embed");return}Spice.add({id:this.id,name:l(b.tab_name),data:b,signal:b.signal,meta:{sourceName:b.provider,sourceUrl:b.url,sourceIconUrl:b.icon},templates:{group:"info",options:{moreAt:true}}})}}}(DDG);!function(b,a){a.SM2_DEFER=true;var h,e=0,g=0,f=function(){if(h){return}h=window.soundManager=new SoundManager();h.url="/soundmanager2/swf";h.flashVersion=9;h.useFlashBlock=false;h.useHTML5Audio=true;h.ontimeout(function(){g=1;c.ready=0});h.beginDelayedInit();h.onready(function(){g=1;c.ready=1})};var c=b.audio={requires:function(){if(!e){nrj("soundmanager2/script/soundmanager2-nodebug-jsmin.js",1);e=1;return false}else{if(!h&&window.SoundManager){f();return false}else{if(h&&g){return c}}}return false},play:function(m,i,k){if(!c.ready){return false}k=k||{};var j=h.getSoundById(m);if(j){j.play(k)}else{k.onloadstart&&k.onloadstart();j=h.createSound($.extend(k,{id:m,url:i}))}return j},pause:function(j){if(!c.ready){return false}var i=h.getSoundById(j);if(i){i.pause()}},stop:function(j){if(!c.ready){return false}var i=h.getSoundById(j);if(i){i.stop()}else{h.stopAll()}}}}(DDG,this);!function(b){var e={audio:{require:DDG.audio.requires},mapkit:{require:function(){return window.mapkit||c("mapkit")},load:function(){nrj("/js/mapkit/mapkit.5.23.1.js",1)}},settings:{require:function(){return DDG.Views.Settings.Main||c("settings")},load:function(){nrj(settings_js_version,1)}},"moment.js":{require:function(){return window.moment||c("moment.js")},load:function(){nrj("/js/moment.2.9.0.min.js",1)}},"masonry.js":{require:function(){return window.Masonry||c("masonry.js")},load:function(){nrj("/js/masonry.pkgd.min.js",1)}},mathquill:{require:function(){return $.fn.mathquill||c("mathquill")},load:function(){nrj("/js/mathquill-0.9.4/mathquill.min.js",1);nrc("/js/mathquill-0.9.4/mathquill.css",1)}},sports:{require:function(){return window.ddg_spice_sports_games||c("sports")},load:function(){nrj(DDG.get_asset_path("sports","sports.spice.js"),1)}},velocity:{require:function(){return $.Velocity||c("velocity")},load:function(){nrj("/js/velocity-1.5.0.min.js",1)}},flashDetect:{require:function(){return window.FlashDetect||c("flashDetect")},load:function(){nrj("/js/flashdetect_modified.js",1)}},"chart.js":{require:function(){return window.Chart||c("chart.js")},load:function(){nrj("/js/Chart-2.8.0.min.js",1)}},pikaday:{require:function(){return $.fn.pikaday||c("pikaday")},load:function(){nrj("/js/Pikaday-1.4.0/pikaday.min.js",1);nrc("/js/Pikaday-1.4.0/css/pikaday.min.css",1)}},prettydiff:{require:function(){return window.prettydiff||c("prettydiff")},load:function(){nrj("/js/prettydiff.js",1)}},jsonlint:{require:function(){return window.jsonlint||c("jsonlint")},load:function(){nrj("/js/jsonlint.js",1)}},extensionsuccess:{require:function(){return window.extensionsuccess||c("extensionsuccess")},load:function(){nrj("/js/extensionsuccess.min.js?v=6",1)}},prettify:{require:function(){return window.prettyPrint||c("prettify")},load:function(){nrc("/js/highlight/tomorrow.css?v=2");nrc("/js/highlight/tomorrow-night-eighties.css");nrj("/js/highlight/prettify.min.js",1)}},"sass.js":{require:function(){return window.Sass||c("sass.js")},load:function(){nrj("/js/sass.js/sass.sync.min.js")}},"js-beautify":{require:function(){return window.js_beautify||c("js-beautify")},load:function(){nrj("/js/js-beautify/beautify.min.js")}},"html-beautify":{require:function(){return window.html_beautify||c("html-beautify")},load:function(){nrj("/js/js-beautify/beautify-html.min.js")}},"math.js":{require:function(){return window.math||c("math.js")},load:function(){nrj("/js/math-3.13.3.min.js")}},"twitter-text":{require:function(){return window.twttr||c("twitter-text")},load:function(){nrj("/js/twitter-text-2.0.0.min.js")}},hammer:{require:function(){return window.Hammer||c("hammer")},load:function(){nrj("/js/build/hammer-v2.0.8.min.js")}}},c=function(g){var f=e[g];if(!f||f.required){return false}f.load();f.required=true},a=function(i,h){var j=e[i],f=j&&j.require;if(typeof f!=="function"){if(i.match(/^\//)){$.getScript(i,h);return}return h()}var g=f();if(g){return h(g)}setTimeout(b.require.bind(this,i,h),25)};b.require=function(i,h){if($.isArray(i)){var g=[];$.each(i,function(m,k){a(k,function(n){g[m]=n})});var j,f;j=setTimeout(function(){var k=i.map(function(n,m){return n+((g[m])?":loaded":":timeout")});clearInterval(f)},5000);f=setInterval(function(){var k=true;$.each(i,function(m){if(k&&!g[m]){k=false}});if(k){clearInterval(j);clearInterval(f);h.apply(null,g)}},25)}else{a(i,h)}}}(DDG);!function(){var a=["ln","lnp","ld","ldn","ldp","ldnp"];for(var b=0,c;c=a[b];b+=1){if(!this[c]){this[c]=function(f){return f}}}function e(g,f){return g.replace(/%s/g,function(){return f.shift()})}if(!this.l){this.l=function(g){var f=Array.prototype.slice.call(arguments,1);return e(g,f)}}if(!this.lp){this.lp=function(h,g){var f=Array.prototype.slice.call(arguments,2);return e(g,f)}}if(!this.locale_data||!this.locale_data.duckduckgo){this.locale_data.duckduckgo={"":""};if(this.ltd){this.ltd("duckduckgo")}}}(window);!function(b){var a=[];b.ready=function(e,c){if($.isReady){return e()}if(c){a.unshift(e)}else{a.push(e)}};$(document).ready(function(){var c;while(c=a.shift()){c()}})}(DDG);!function(a){a.services={domain:"duckduckgo.com",icons:{sub:"proxy",path:"/ip3/"},images:{sub:"proxy",path:"/iu/"},autocomplete:{path:"/ac/"},imageReports:{sub:"reports",path:"/collect.js"},reports:{sub:"reports",path:"/collect.js?type=feedback"},pixels:{sub:"improving",skipDev:true,path:"/t/"},getURL:function(g){var f=this[g],e=a.isDev&&f.skipDev,c=a.device.isOnion||e;var b=f.path;if(!c){b="//";if(f.sub&&!e){b+=f.sub+"."}b+=this.domain+f.path}return b},local:{path:"/local.js?q=",skipDev:true}}}(DDG);!function(a){a.Utils.Events={bindEvents:function(f){if(!this._bEvents){this._bEvents=[]}for(var e=0,c;c=f[e];e++){if(c.length<2||!c[0]||!c[1]||!c[2]){continue}var b={bound:c[2].bind(this),evt:c};if(typeof c[0]==="string"){this.$&&this.$(c[0]).on(c[1],b.bound)}else{c[0].on(c[1],b.bound)}this._bEvents.push(b)}},unbindEvents:function(){while(this._bEvents&&this._bEvents.length){var c=this._bEvents[this._bEvents.length-1],b=c.evt;if(b){if(typeof b[0]==="string"){this.$&&this.$(b[0]).off(b[1],c.bound)}else{b[0].off(b[1],c.bound)}}this._bEvents.pop()}this._bEvents=null}}}(DDG);!function(b){var a=b.Utils;a.BackData=function(c){this.$hiddenEl=c;this._initFromDOM();this._resetDOM()};a.BackData.prototype=$.extend({},{set:function(f,e){var c=f;if(e){c+="|"+JSON.stringify(e)}this.$hiddenEl.val(c)},getId:function(){return this._id},getData:function(){return this._data},_initFromDOM:function(){var c=this._getVal().split("|");this._id=c[0];try{this._data=JSON.parse(c[1])}catch(f){this._data={}}},_getVal:function(){var c=this.$hiddenEl.val()||"";return String(c)},_resetDOM:function(){this.$hiddenEl.val("")}})}(DDG);!function(a){a.Utils.History=function(h){this.path=window.location.pathname;this._history=h;if(this.path.indexOf("//")===0){this.path=this.path.substring(1)}this.curState={};this._callbacks=[];var b,e=/\+/g,c=/([^&=]+)=?([^&]*)/g,g=function(j){return decodeURIComponentSafe(j.replace(e," "))},i=window.location.search+window.location.hash,f=i.substring(1);while(b=c.exec(f)){this.curState[g(b[1])]=g(b[2])}this._deviceSupportsHistory=this._history&&this._history.pushState&&this._history.replaceState};a.Utils.History.prototype=$.extend({},EventEmitter2.prototype,{enablePushState:function(b){if(this._deviceSupportsHistory&&!this._pushStateEnabled){this._pushStateEnabled=true;this._shouldPushFn=b;window.onpopstate=this._onPopState.bind(this)}},get:function(b,c){if(c){return this._history.state?this._history.state[b]:null}return this.curState[b]},getNamespace:function(b){var c={};for(var e in this.curState){if(this.curState.hasOwnProperty(e)){if(e.indexOf(b)===0){c[e]=this.curState[e]}}}return c},set:function(b,f,e){if(typeof b==="object"){if(typeof f==="function"){e=f}for(var c in b){this.set(c,b[c],e)}return}this.curState[b]=f;this._updatePath(this._shouldPushState(b,f),e)},clear:function(){var b=Array.prototype.slice.call(arguments),f=false,e;if(typeof b[b.length-1]==="function"){e=b.pop()}for(var c=0;c<b.length;c++){delete this.curState[b[c]];if(this._shouldPushState(b[c])){f=true}}this._updatePath(f,e)},clearNamespace:function(e,c){var b=false;for(var f in this.curState){if(this.curState.hasOwnProperty(f)){if(f.indexOf(e)===0){delete this.curState[f];if(this._shouldPushState(f)){b=true}}}}this._updatePath(b,c)},setComposite:function(e,i,c,g){var b=this.get(e),h={},f;if(b){f=this._deserializeComposite(b);f[i]=c}else{f={};f[i]=c}h[e]=this._serializeComposite(f);this.set(h,g)},getComposite:function(c,f){var b=this.get(c),e;if(!b){return}e=this._deserializeComposite(b);return e[f]},clearComposite:function(c,h,f){var b=this.get(c),e;if(!b){return}e=this._deserializeComposite(b);delete e[h];if($.isEmptyObject(e)){this.clear(c,f)}else{var g={};g[c]=this._serializeComposite(e);this.set(g,f)}},_updatePath:function(c,b){var e=this.path+"?"+$.param(this.curState);if(this._curPath===e){return b&&b()}this._curPath=e;if(b){this._callbacks.push(b)}if(this._deviceSupportsHistory&&a.settings.isDefault("kg")){clearTimeout(this._stateTimeout);this._pushing=this._pushing||c;this._stateTimeout=setTimeout(function(){if(this._pushing){this._history.pushState(this.curState,this,this._curPath)}else{this._history.replaceState(this.curState,null,this._curPath)}this._callbacks.forEach(function(f){f()});this._callbacks=[];delete this._pushing}.bind(this),50)}},_deserializeComposite:function(c){var f={},g=c.split(","),b;for(var e=0;e<g.length;e++){b=g[e].split(":");f[b[0]]=b[1]}return f},_serializeComposite:function(b){var c=[];for(var e in b){if(b.hasOwnProperty(e)){c.push(e+":"+b[e])}}return c.join(",")},_shouldPushState:function(b,c){if(this._popping||!this._pushStateEnabled||typeof this._shouldPushFn!=="function"){return false}return this._shouldPushFn(b,c)},_onPopState:function(b){this._popping=true;this.emit("popstate",b);this._popping=false}})}(DDG);!function(e){var i={},a=[],b={},g=["title","id","height","width","className","alt","visibility"];e.ImageLoader={make:function(o){var m=d.createElement("img");for(var n=0,k;k=g[n];n++){if(o[k]){m[k]=o[k]}}if(o.lazyLoad){this.register(m,o.src,o.lazyLoad)}else{m.src=o.src}return m},register:function(m,o,k){var n={src:o,el:m,trigger:k||"none"};if(k&&k==="scrollY"){if(j(n)){if(!f(n)){c(n)}}else{h(n)}}else{if(!f(n)){c(n)}}},registerAll:function(r,m,p){if(!r||!r.length){return}p=p||{};for(var n=0;n<r.length;n++){var k=r[n],q=$(k).attr("data-src");if(!q){return}var o=q.split(".").pop();if(p.svg){if(!q.match(/\.svg|\.png/i)){q+=".png";o="png"}if(Modernizr.svg){q=q.replace("."+o,".svg")}}else{if(p.has3x&&DDG.is3x){q=q.replace("."+o,"@3x."+o)}else{if(p.has2x&&(DDG.is2x||DDG.is3x)){q=q.replace("."+o,"@2x."+o)}}}this.register(k,q,m)}},locateUnloaded:function(){var k=a.length;for(var m=0;m<k;m++){var n=a[m];if(j(n)){if(!f(n)){c(n)}a.splice(m,1);m--;k--}}},trigger:function(m){if(!i[m]){return}var n=i[m];for(var k=0;k<n.length;k++){f(n[k],true)}delete i[m];b[m]=1},loadMore:function(){if(!i.scrollY||!i.scrollY.length){return}var k;while(k=i.scrollY.shift()){f(k,true)}}};function j(k){if(!k.el.parentNode){return false}k.offset=$(k.el).offset();return true}function h(k){a.push(k)}function f(m,k){if(k){m.el.src=m.src;return true}if(m.trigger==="scrollY"){var n=e.device.scrollTop();if(m.offset.top>=n&&(m.offset.top-n)<viewport_height){m.el.src=m.src;return true}}if(m.trigger!=="none"&&b[m.trigger]){m.el.src=m.src;return true}return false}function c(o){var m=i[o.trigger];if(!m){i[o.trigger]=m=[]}if(o.trigger==="scrollY"){for(var k=0;k<m.length;k++){var n=m[k];if(o.offset.top>n.offset.top){continue}break}m.splice(k,0,o)}else{m.push(o)}}}(DDG);!function(e){var c="is-touching",f=80,h=0.5,b=4,g=20,a=300;e.Utils.GestureRecognizer=function(i){this.$el=i.el;this._lastMoves=[];if(Modernizr.touch){this.$el.on("touchstart",this._onTouchStart.bind(this))}};e.Utils.GestureRecognizer.prototype=$.extend({},EventEmitter2.prototype,{numTouches:0,reset:function(){e.$doc.off("touchmove.gestures");e.$doc.off("touchend.gestures");this.$el.removeClass(c);delete this._startX;delete this._startY;delete this._startTime;delete this._pinchDistance;delete this._pinchDelta;delete this._multitouch;delete this._axis;delete this._direction;this._lastMoves=[]},_pan:function(s,r){this._deltaX=this._x?s-this._x:0;this._deltaY=this._y?r-this._y:0;this._x=s;this._y=r;if(!this._startX){this._startX=this._x}if(!this._startY){this._startY=this._y}var j=new Date().getTime();this._distX=this._x-this._startX;this._distY=this._y-this._startY;this._lastMoves.push([s,r,j]);if(this._lastMoves.length>b){this._lastMoves.shift();var i=this._lastMoves[0],o=i[0],n=i[1],k=i[2],m=j-k,q=this._x-o,p=this._y-n;this._velocityX=m?q/m:0;this._velocityY=m?p/m:0;this._axis=Math.abs(q)>Math.abs(p)?"x":"y";this._direction=this._axis==="x"?q>=0?"right":"left":p>=0?"down":"up"}this._multitouch=false},_pinch:function(j,m,i,k){var n=this._getDistance(j,m,i,k);if(!this._pinchDistance){this._pinchDistance=n}this._pinchDelta=Math.abs(n/this._pinchDistance);this._pinchDistance=n;this._multitouch=true},_getDistance:function(m,o,j,n){var k=m-j,i=o-n;return Math.sqrt(k*k+i*i)},_getEventData:function(i){return{e:i,axis:this._axis,multitouch:this._multitouch,direction:this._direction,velocityX:this._velocityX,velocityY:this._velocityY,distX:this._distX,distY:this._distY,deltaX:this._deltaX,deltaY:this._deltaY,pinchDist:this._pinchDistance,pinchDelta:this._pinchDelta}},_getNumTouches:function(i){var j=i.originalEvent;return j&&j.touches&&j.touches.length},_handleTouches:function(i){var j=i.originalEvent;if(j&&j.touches&&j.touches.length){if(j.touches.length>1){this._pinch(j.touches[0].clientX,j.touches[0].clientY,j.touches[1].clientX,j.touches[1].clientY)}else{if(!this._multitouch){this._pan(j.touches[0].clientX,j.touches[0].clientY)}}}else{this._pan(i.clientX,i.clientY)}},_onTouchStart:function(k){this.numTouches=this._getNumTouches(k)||1;if(!this._startTime){this.$el.addClass(c);this._startTime=new Date().getTime();e.$doc.on("touchmove.gestures",this._onTouchMove.bind(this));e.$doc.on("touchend.gestures",this._onTouchEnd.bind(this))}if(!k.target||k.target.nodeName!=="A"){k.preventDefault()}this._handleTouches(k);var i=this._multitouch?"pinchstart":"panstart",j=this._getEventData(k);this.emit(i,j)},_onTouchMove:function(k){k.preventDefault();this.numTouches=this._getNumTouches(k)||1;this._handleTouches(k);var i=this._multitouch?"pinchmove":"panmove",j=this._getEventData(k);this.emit(i,j)},_onTouchEnd:function(p){this.numTouches=this._getNumTouches(p)||0;if(this.numTouches>0){return}var i=Math.abs(this._axis==="x"?this._distX:this._distY),o=this._axis==="x"?this._velocityX:this._velocityY,k=i<g,j=i>f||o>h,n=this._getEventData(p);if(this._multitouch){this.emit("pinchend",n)}else{if(j&&!k){n.swiped=true;this.emit("swipe",n)}else{if(k){var m=new Date().getTime();if(this._lastTapTime&&(m-this._lastTapTime)<a){this.emit("double-tap",n);delete this._lastTapTime}else{this._lastTapTime=m;this.emit("tap",n)}}}this.emit("panend",n)}this.reset()}})}(DDG);!function(a){var e=["Detail","GridTiles"],c={images:["Images"],videos:["Videos"],news:["GridTiles"]},h=["About"],f={images:["Images"],maps_maps:["Maps"],news:["News"],videos:["News"],maps_places:["Places"],forecast:["Forecast"]},g=["VerticalLinks"],b={};a.Utils.TabViewBuilder=function(){};a.Utils.TabViewBuilder.prototype=$.extend({},{build:function(i){this.model=i.model;this._viewRoot=a.Views.AnswerBar.Answers;if(this.model.view){this._availableViews=[this.model.view]}else{if($.isArray(this.model.views)){this._availableViews=this.model.views}else{if(this.model.isModule){if(a.duckbar.activeTabOpenType==="e"&&this.model.allowModuleIA){if(!a.device.isMobile){this.model.set("expanded",true)}this._availableViews=c[this.model.id]||e}else{this._availableViews=f[this.model.id]||h;this._viewRoot=a.Views.Modules}}else{if(this.model.isVertical){this._availableViews=b[this.model.id]||g;this._viewRoot=a.Views.Verticals}else{this._availableViews=c[this.model.id]||e}}}}var j=this._getValidClass();if(!j){return false}return new j({model:this.model,appendTo:i.appendTo,events:i.events})},_getValidClass:function(){if(typeof this._viewIndex==="undefined"){this._viewIndex=0}else{if(!this._availableViews[this._viewIndex+1]){return false}this._viewIndex++}if(!this._isCurrentClassValid()){return this._getValidClass()}return this._getCurrentViewClass()},_isCurrentClassValid:function(){var i=this._getCurrentViewClass(),j=i.prototype.isValid.call({requiredTemplates:i.prototype.requiredTemplates,maxItems:i.prototype.maxItems,model:this.model});return j},_getCurrentViewClass:function(){var i=this._availableViews[this._viewIndex];return this._viewRoot[i]}})}(DDG);(function(){var c={"sort:date":1,"s:d":1,"!safeoff":1},b=/[';,.]/g,a=/[\s-]+/;DDG.getRelevants=function(j){if(j.num===undefined){j.num=j.candidates.length}var e=[];var h=DDG.get_query();h.replace("'","");j.candidates=j.candidates.sort(j.comparator);for(var f=0,g;g=j.candidates[f];f++){if(DDG.isRelevant(g.comparable,j.skipArray,j.minWordLength,j.strict)){if(f>j.num){return e}else{e.push(g)}}}return e};DDG.isRelevant=function(f,g,h,e){return DDG.stringsRelevant(f.toLowerCase(),DDG.get_query().toLowerCase(),g,h,e)};DDG.stringsRelevant=function(g,e,v,q,C){if(v instanceof Array){var r={};for(var s=0;s<v.length;s++){var p=v[s].toLowerCase();r[p]=1}v=r}if(q===undefined){q=4}if(v===undefined){v=c}else{for(var B in c){if(c[B]){v[B]=1}}}g=g.replace(b,"");e=e.replace(b,"");var x=g.split(a);var u=e.split(a);var y=[];var A=[];for(var s=0;s<x.length;s++){var t=x[s].toLowerCase();if(t&&t.length>=q&&!v[t]){y.push(t)}}for(var s=0;s<u.length;s++){var t=u[s].toLowerCase();if(t&&t.length>=q&&!v[t]){A.push(t)}}x=y;u=A;var m,j;if(C){if(x.length>=u.length){m=u;j=x}else{m=x;j=u}}else{if(x.length>=u.length){m=x;j=u}else{m=u;j=x}}var f={};var o={};var k=0;var z=0;for(var s=0;s<j.length;s++){var t=j[s].toLowerCase();var n=t.substring(0,q);f[n]=t;z++}f.length=z;for(var s=0;s<m.length;s++){var t=m[s].toLowerCase();var h=t.substring(0,q);if(!(h in o)&&f[h]){o[h]=1;k++}}if(f.length>0&&f.length<=2&&k==f.length){return true}else{if(f.length>2&&k>=f.length-1){return true}}return false}})();!function(a){a.Utils.LocalAPIWrapper=function(){};a.Utils.LocalAPIWrapper.prototype={getMapsResponse:function(c){var e=this._getMapsSource(c),b={};if(!c||!c.features||!c.features.length){return b}if(e==="mapkit"){b=this._getMapkitMapsResponse(c)}else{if(e==="wikipedia"){b=this._getWikipediaMapsResponse(c)}}return b},getPlacesResponse:function(c){var b={};if(!c||!c.results||!c.results.length){return b}return{source:c.results[0].engine,url:c.more_at,signal:c.signal,proximity:c.proximity,local_source:c.local_source,geoip:{lat:c.geoip_lat,lon:c.geoip_lon},distance:c.distance,biz_score:c.biz_score,cat_score:c.cat_score,chain_score:c.chain_score,delta:c.delta,matches_location:c.matches_location,review_count:c.review_count,trigger_count:c.trigger_count,wiki_entity:c.wiki_entity,parsed_query:c.parsed_query,results:c.results.map(this._getPlaceItemResponse.bind(this))}},getPlaceReviewsURL:function(b){if(b.url&&b.url.length){if(b.source==="Yelp"||b.engine==="Yelp"){var c;if(b.review_detail&&b.review_detail.length){c=b.review_detail[0]}else{if(b.reviews&&b.reviews.length){c=b.reviews[0]}}var e=c?"&hrid="+c.id:"";return b.url+e}else{if(b.source==="TripAdvisor"||b.engine==="TripAdvisor"){return b.url+"#REVIEWS"}}return""}},_getMapkitMapsResponse:function(b){var c=["directions","map","maps","st","street","ave","avenue","dr","drive","pl","place","apt","suite","latitude","longitude","zip","code","postal"],e=b.features.shift();if(e.relevance<0.9&&!(e.place_name&&a.isRelevant(e.place_name.toLowerCase(),c))){return{src:"mapkit",results:[]}}return{src:"mapkit",responseType:b.response_type,query:b.query,results:[this._getMapkitMapsItemResponse(e)]}},_getPlaceItemResponse:function(b,e){var c={};if(b.id&&b.id.length){c.itemId=b.id}if(b.name&&b.name.length){c.name=b.name}c.number=e+1;if(b.address&&b.address.length){c.address=b.address}if(b.address_lines&&b.address_lines.length){c.addressLines=b.address_lines}if(b.phone&&b.phone.length){c.phone=b.phone}var f=b.coordinates;if(f){c.lat=parseFloat(f.latitude);c.lon=parseFloat(f.longitude)}if(b.engine&&b.engine.length){c.source=b.engine}if(b.url&&b.url.length){c.url=b.url}if(b.website&&b.website.length){c.website=b.website}if(b.image&&b.image.length){c.image=b.image}if(b.photoURL&&b.photoURL.length){c.imageURL=b.photoURL}else{if(b.name){c.imageURL="/?q="+encodeURIComponent(b.name)+"&ia=images&iax=images"}}if(b.thumbnails&&b.thumbnails.length){c.thumbnails=b.thumbnails.map(function(g){return b.engine==="Yelp"?g.replace(/ms.jpg/,"ls.jpg"):g})}if(b.menu&&b.menu.length){c.menuURL=b.menu}if(b.price&&a.isNumber(b.price)){c.price=b.price}if(b.hours){c.hours=b.hours}if(b.distance){c.distance=b.distance}if(b.returned_categories&&b.returned_categories.length){c.categories=b.returned_categories.map(function(g){return{id:g[1],name:g[0]}})}if(b.rating&&a.isNumber(b.rating)){c.rating=b.rating}if(b.engine==="Yelp"&&b.rating){c.ratingImage="/assets/yelp-stars/v3/"+b.rating+".png";c.ratingImageRetina="/assets/yelp-stars/v3/"+b.rating+"@2x.png"}else{if(b.engine==="TripAdvisor"&&b.rating){c.ratingImage="/assets/tripadvisor-ratings/"+b.rating+".svg"}}if(b.reviews&&a.isNumber(b.reviews)){c.reviewCount=b.reviews}c.reviewsURL=this.getPlaceReviewsURL(b);if(b.review_detail&&b.review_detail.length){c.reviews=b.review_detail.map(function(i){var g={};if(i.id&&i.id.length){g.id=i.id}if(i.rating&&a.isNumber(i.rating)){g.rating=i.rating}if(b.engine&&b.engine==="Yelp"){g.ratingImage="/assets/yelp-stars/v3/"+i.rating+".png";g.ratingImageRetina="/assets/yelp-stars/v3/"+i.rating+"@2x.png"}else{if(b.engine==="TripAdvisor"){g.ratingImage="/assets/tripadvisor-ratings/"+i.rating+".svg"}}if(i.time_created&&a.isNumber(i.time_created)){g.timeCreated=i.time_created}if(b.url&&b.url.length){if(b.engine==="Yelp"){g.url=g.id?b.url+"&hrid="+g.id:b.url}else{if(b.engine==="TripAdvisor"){g.url=b.url+"#REVIEWS"}}}if(i.excerpt&&i.excerpt.length){g.excerpt=i.excerpt}var h=i.user;if(h){g.user={};if(h.id&&h.id.length){g.user.id=h.id}if(h.name&&h.name.length){g.user.name=h.name}if(h.image_url&&h.image_url.length){g.user.image=h.image_url}if(h.id&&h.id.length&&b.engine==="Yelp"){g.user.url="https://www.yelp.com/user_details?userid="+h.id}}return g})}return c},_getMapkitMapsItemResponse:function(h){var f,e,c={};if(h.context){h.context.forEach(function(i){var j=i.id.split(".")[0];c[j]=i.text})}if(h.address||h.place_type&&h.place_type[0]=="address"){var g=h.place_name.split(",");f=g[0];if(c.place&&c.region&&c.place!==c.region){e=c.postcode?c.place+", "+c.region+" "+c.postcode:c.place+", "+c.region;e=c.locality?c.locality+", "+e:e}else{if(c.place){e=c.postcode?c.place+" "+c.postcode:c.place;e=c.locality?c.locality+", "+e:e;e=c.country?e+", "+c.country:e}else{if(c.region){e=c.region===h.name?c.country:c.region+", "+c.country}else{e=c.country}}}}else{f=h.text;if(c.place){f=c.place;e=(c.place!==c.region)?c.region:c.country}else{if(c.region){if(name!==c.region){e=c.region}else{e=c.country}}else{e=c.country}}}var b={lat:h.center[1],lon:h.center[0],name:f,address:e?f+", "+e:f};if(h.bbox){b.bbox=h.bbox}if(e){b.addressLines=[e]}return b},_getWikipediaMapsResponse:function(b){return{src:"wikipedia",results:b.features.map(function(c){return{lat:c.center[1],lon:c.center[0],bbox:c.bbox,name:c.place_name,address:c.place_name}})}},_getMapsSource:function(b){if(b&&b.features&&b.query){return"mapkit"}else{if(b){return"wikipedia"}}return"unknown"}}}(DDG);!function(e){var c="/local.js?get_mk_token=1",f="https://proxy.duckduckgo.com/ssv2/?",a=200,g=400,b="0.0195";e.Utils.Mapkit=function(){};e.Utils.Mapkit.prototype={init:function(h){e.require("mapkit",function(){if(!w.mapkit){return h(new Error("Unable to load mapkit JS"))}$.ajax({dataType:"text",url:c}).done(function(i){var j={authorizationCallback:function(k){k(i)},language:e.device.getLang(),_proxyPrefixes:["https://proxy1.duckduckgo.com/mapkit/?","https://proxy2.duckduckgo.com/mapkit/?","https://proxy3.duckduckgo.com/mapkit/?","https://proxy4.duckduckgo.com/mapkit/?"]};w.mapkit.init(j);h(null,true)}).fail(function(){h("Error getting Mapkit auth token",false)})})},coord:function(h,i){return new w.mapkit.Coordinate(h,i)},regionFromLatLon:function(h,i){return new w.mapkit.CoordinateRegion(this.coord(h,i),new w.mapkit.CoordinateSpan(0.005,0.01))},regionFromBoundingBox:function(h){h=this._formatBBox(h);return this.boundingRegion(h).toCoordinateRegion()},boundingRegion:function(h){return new w.mapkit.BoundingRegion(h.maxlat,h.maxlon,h.minlat,h.minlon)},mapType:function(h){return h?w.mapkit.Map.MapTypes.Hybrid:w.mapkit.Map.MapTypes.Standard},marker:function(j,k,h,i){return new w.mapkit.Annotation(this.coord(j,k),h,i)},getStaticImageURL:function(n){var p=n.marker||(n.markers&&n.markers[0]);if(!p){throw"getStaticImageURL: A location of type Models.AnswerItems.MapLocation is required"}var i=w.encodeURI(p.address),m,j,k=Math.round(n.width||g),h=Math.round(n.height||a),o="";if(p.bbox){m=(Math.abs(p.bbox[1]-p.bbox[3]))/2;j=(Math.abs(p.bbox[0]-p.bbox[2]))/2}else{if(p.parentId==="maps_places"){m=j=b}}if(m&&j){i=p.lat+","+p.lon}o=f+"center="+i+(m&&j?"&spn="+m+","+j:"")+"&size="+k+"x"+h+"&scale="+(e.device.isRetina?"2":"1")+"&lang="+e.device.getLang()+"&colorScheme="+(e.settings.isDarkTheme()?"dark":"light")+"&format=png";return o},_formatBBox:function(i){var h=i;if($.isArray(i)){h={minlon:i[0],maxlat:i[1],maxlon:i[2],minlat:i[3]}}return h}}}(DDG);!function(a){a.Data.templates={defaultOptions:{price:true,brand:true,rating:true,ratingText:true,moreAt:true,content:false},groups:{base:{item:"base_item",detail:"base_detail",options:{price:false,brand:false,rating:false,ratingText:false,rowHighlight:false,keySpacing:false,moreAt:false}},text:{item:"text_item",detail:"text_detail"},info:{item:"basic_image_item",detail:"basic_info_detail",options:{moreAt:true,aux:false}},products:{item:"products_item",detail:"products_detail",item_detail:"products_item_detail",wrap_detail:"base_detail",options:{rating:true,price:true,brand:true,hideReviewText:false}},products_simple:{item:"basic_image_item",detail:"products_detail",item_detail:"products_item_detail",wrap_detail:"base_detail",options:{price:false,brand:false,rating:false,ratingText:true}},movies:{item:"basic_image_item",detail:"products_detail",item_detail:"products_item_detail",wrap_detail:"base_detail",options:{price:false,brand:false,rating:false,ratingText:true},variants:{tile:"poster"},elClass:{tileBody:"is-hidden"}},media:{item:"media_item",detail:"basic_info_detail",item_detail:"media_item_detail",options:{moreAt:true,aux:false}},icon:{item:"text_item",detail:"basic_icon_detail",item_detail:"products_item_detail"},places:{item:"places_item",detail:"places_detail"},list:{item:"text_item",detail:"list_detail"},images:{item:"images_item",detail:"images_detail"},videos:{item:"videos_item",detail:"videos_detail"}},viewVariants:{bgColor:{dark:"bg-clr--dk",dark2:"bg-clr--dk2",light:"bg-clr--lt",light2:"bg-clr--lt2",light3:"bg-clr--lt3",red:"bg-clr--red",redLight:"bg-clr--red-light",redDark:"bg-clr--red-dark",blue:"bg-clr--blue",blueLight:"bg-clr--blue-light",blueDark:"bg-clr--blue-dark",purple:"bg-clr--purple",green:"bg-clr--green",gold:"bg-clr--gold"},detail:{light:"detail--l"},tile:{narrow:"tile--c--n",wide:"tile--c--w",xwide:"tile--c--xw",video:"tile--b--i--vid tile--c",poster:"tile--b--i--mov tile--c--n",local:{tile:"tile--loc",tileFront:"tile--loc__main",tileBack:"tile--loc__alt"},basic1:[{tileTitle:"2line"},{tileSnippet:"small"}],basic2:[{tileTitle:"3line-small"},{tileSnippet:"large"}],basic3:[{tileTitle:"3line-large"},{tileSnippet:"small"}],basic4:[{tileTitle:"1line-large"},{tileSnippet:"large"}]},tileTitle:{"1line":"tile__title--1","1line-large":"tile__title--1lg","2line":"tile__title--2","3line":"tile__title--3","4line":"tile__title--4","3line-small":"tile__title--3sm","3line-large":"tile__title--3lg"},tileSubtitle:{"2line":"tile__sub--2"},tileSnippet:{small:"tile__content--sm",large:"tile__content--lg"},tileFooter:{"2line":{tileFoot:"tile__foot--2",tileBody:"has-foot--2"},"3line":{tileFoot:"tile__foot--3",tileBody:"has-foot--3"},"4line":{tileFoot:"tile__foot--4",tileBody:"has-foot--4"}},tileRating:{starsLeft:"tile__rating--left",starsRight:"tile__rating--right"},iconImage:{small:"c-icon__img-wrap--sm",medium:"c-icon__img-wrap--md",large:"c-icon__img-wrap--lg"},iconBadge:{small:"c-icon__badge--sm",medium:"c-icon__badge--md",large:"c-icon__badge--lg"},iconTitle:{large:"c-icon__title--lg"},productSub:{noMax:"c-product__subtitle--nm"}}}}(DDG);(function(c){var a;if(!c.DDG){c.DDG={}}a=c.DDG;a.abbrevNumber=function(e){if(!$.isNumeric(e)){return e}if(e<1000){return e}if(e<10000){return(Math.round(e/100)/10)+"K"}if(e<1000000){return Math.round(e/1000)+"K"}if(e<10000000){return(Math.round(e/100000)/10)+"M"}if(e<1000000000){return Math.round(e/1000000)+"M"}if(e<10000000000){return(Math.round(e/100000000)/10)+"B"}return Math.round(e/1000000000)+"B"};a.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};a.capitalizeWords=function(e){e=e.replace(/\w\S+/g,a.capitalize);e=e.replace(/\b(?:Of|And|The|At|By|In|To|A|For|An|On|Or)\b/g,function(f){return f.toLowerCase()});return e};a.commifyNumber=function(e){if(!$.isNumeric(e)){return e}var f=e.toString().split(".");f[0]=f[0].replace(/\B(?=(\d{3})+(?!\d))/g,",");return f.join(".")};a.eventToCoordinates=function(g){var h=g.originalEvent,f=(h.touches&&h.touches.length)?h.touches[0]:g;return{x:f.clientX,y:f.clientY}};a.exec_template=function(g,h){if(!g){throw new Error("DDG.exec_template: template is null")}var f,e;if($.isFunction(g)){e=g}else{if(a.templates[g]){e=a.templates[g]}else{if(g.match(/^DDH\./)){e=a.getProperty(window,g)}}}if(!e){throw new Error("Template Not Found: "+g)}f=e(h||{});if(!f){throw new Error("Error Rendering Template: "+g,h)}return f};a.$exec_template=function(e,f){var g=a.exec_template(e,f);return g&&$(g)};a.findInArray=function(e,g,j){for(var f=0;f<e.length;f++){var h=e[f];if(h&&h[g]===j){return h}}};a.formatDuration=function(h){var j=3600000,f=60000,g=1000;var e=Math.floor(h/j),i=Math.floor((h-(e*j))/f),m=Math.round((h-(e*j)-(i*f))/g);if(e&&i<10){i="0"+i}if(m<10){m="0"+m}var k=i+":"+m;if(e){k=e+":"+k}return k};a.getDateFromString=function(e){var g=e.match(/([\d]{4})\-([\d]{2})\-([\d]{2})(?:(T|\s)([\d]{2}):([\d]{2}):([\d]{2,}))?($|Z|\s)?(UTC)?/);if(g){for(var f=0;f<10;f++){if(g[f]===undefined){g[f]=false}}if(g[8]==="Z"||g[9]==="UTC"){e=new Date(Date.UTC(g[1],g[2]-1,g[3],g[5],g[6],g[7]))}else{e=new Date(g[1],g[2]-1,g[3],g[5],g[6],g[7])}return e}};a.get_favicon_url=function(o){if(!o||typeof o!=="string"){return}var k,e,r,h,n,i,p,g,j="",q,f=/wikipedia|amazon|youtube|yelp|apple|vimeo|metrolyrics|spotify|wolfram|metrolyrics|wordnik|brainyquote|soundcloud/,m=/wikipedia/;r=/^.*?\/\/([^\/\?\:\#]+)/;h=r.exec(o);if(h&&$.isArray(h)){k=h[1]}else{k=o}n=k.match(f);if(n){n=n.toString();p=o.split(".");g=(p.length>1)?(p[p.length-2]===n):true;if(g){if(a.settings&&a.settings.updater&&a.settings.updater.isDarkBg&&m.test(n)){j=".white"}i=a.is3x?".3x":a.is2x?".2x":"";e="/assets/icons/favicons/"+n+j+i+".png"}}if(!e){e=a.services.getURL("icons")+k+".ico"}return e};a.getImageProxyURL=function(g,i,h,e){var f="&f=1"+(h?"&w="+h:"")+(e?"&h="+e:"");if(a.isInternalURL(g)){return g}if(g.match(/^\/\//)){g=window.location.protocol+g}g=(i)?g:encodeURIComponent(g);return a.services.getURL("images")+"?u="+g+f};a.getOrdinal=function(g){if(!g){return""}var f=["th","st","nd","rd"],e=g%100;return g+(f[(e-20)%10]||f[e]||f[0])};a.getProperty=function(h,g){if(!g){return null}var k=g.split("."),j=h;for(var f=0,e=k.length;f<e;f++){if(!j){return null}j=j[k[f]]}return j};a.inject=function(f,k){var j=f.split("."),g;for(var e=0,m;m=j[e];e++){var h=e===j.length-1;if(e===0){if(!window[m]){window[m]={}}if(h){window[m]=k}g=window[m]}else{if(!g[m]){g[m]={}}if(h){g[m]=k}g=g[m]}}};a.isInternalURL=function(e){return !e||(e.indexOf("http")==-1&&!e.match(/^\/\//))||/^(https?:)?\/\/([a-z\-0-9]+\.)?duckduckgo.com/.test(e)};a.isNumber=function(e){return !isNaN(parseFloat(e))&&isFinite(e)};a.objectToArray=function(e){return Object.keys(e).map(function(f){return e[f]})};a.parseAbstract=function(h){var f=/^(.*)\((.*)\)(.*)/,g=f.exec(h);var e={content:h,main:h};if(g){e.head=g[1];e.subTitle=g[2]||"";e.tail=g[3]||"";e.main=e.head+e.tail}return e};a.parse_link=function(h,g){var e,i,j,f;if(!g){g="url"}i=$("<p>"+h+"</p>");j=i.find("a");if(j.length){f=$(j[0])}else{e=i.text();g=""}if(g==="text"){e=f.text()}else{if(g==="rest"){f.remove();e=i.text();if(e){e=e.replace(/^(\-|\:|\;|,|"|'|\s)+/,"")}}else{if(g==="url"){e=f[0].href}}}return e};a.pluralize=function(f,g,e){f=parseFloat(f);if(!f&&f!==0){return""}if(f===1){return g}else{return e||(g+"s")}};a.querystringParam=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var g=new RegExp("[\\?&]"+e+"=([^&#]*)"),f=g.exec(location.search);return f===null?"":decodeURIComponentSafe(f[1].replace(/\+/g," "))};a.scaleToFit=function(g,e,i,h){var f={width:g,height:e};if(i&&f.width>i){f.width=i;f.height=(i/g)*e}if(h&&f.height>h){f.height=h;f.width=(h/e)*g}return f};a.shuffle=function(e){for(var h=e.length-1;h>0;h--){var g=Math.floor(Math.random()*(h+1)),f=e[h];e[h]=e[g];e[g]=f}return e};a.strip_all_html=function(g){var e="(?:[^\"'>]|\"[^\"]*\"|'[^']*')*",f=new RegExp("<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b"+e+">[\\s\\S]*?<\/script\\s*|style\\b"+e+">[\\s\\S]*?</style\\s*|/?[a-z]"+e+")>","gi"),h;while(g!==h){h=g;g=g.replace(f,"")}return g.replace(/</g,"<")};a.strip_href=function(e){if(e){return e.replace(/(src|href)\s*=\s*(['"])/gi,"_$1=$2")}return""};a.strip_html=function(e){if(!e){return""}return String(e).replace(/<\/?[^>]+>/g,"")};a.strip_non_alpha=function(e){if(e){e=e.replace(/\W/g,"")}return e};a.toHTTPS=function(e){return e&&e.replace(/^http:/,"https:")};a.toHTTP=function(e){return e&&e.replace(/^https/,"http")};var b=document.createElement("a");a.addSearchParam=function(f,g,h){b.href=f;var e=encodeURIComponent(g);if(h){e+="="+encodeURIComponent(h)}if(b.search.length>0&&b.search!=="?"){b.search+="&"+e}else{b.search="?"+e}return b.href};a.unescape=function(f){var e=document.implementation.createHTMLDocument("example");e.documentElement.innerHTML=f;return e.body.textContent}})(this);DDG.Data.Settings={colors:{b:"ecf5f8",b2:"2e4a57",ct:"9f9f9f",d:"e7eed5",g:"215017",g2:"ecf8ee",kt:"333333",o:"ffebcd",p:"693E68",r:"d44c2a",r2:"7c2c1f",r3:"fff",r4:"d3B5B0",w:"fff"},directionSources:{"apple-maps-ios":{directionsURL:"maps://?daddr={{addr}}&near={{lat}},{{lng}}",faviconURL:"maps.apple.com",mapURL:"maps://?address={{addr}}&near={{lat}},{{lng}}",name:"Apple Maps",onDevices:["isIDevice"]},"apple-maps-osx":{directionsURL:"http://maps.apple.com/?daddr={{addr}}&&near={{lat}},{{lng}}",mapURL:"http://maps.apple.com/?address={{addr}}&near={{lat}},{{lng}}",name:"Apple Maps",onDevices:["isOSXMavericksAndUp"]},"bing-maps":{directionsURL:"https://bing.com/maps/default.aspx?rtp=~adr.{{addr}}&cp={{lat}}~{{lng}}&lvl=15",mapURL:"https://bing.com/maps/default.aspx?where1={{addr}}",name:"Bing Maps"},"google-maps":{directionsURL:"https://www.google.com/maps/dir//{{addr}}",mapURL:"https://maps.google.com?q={{addr}}",name:"Google Maps"},"here-maps":{directionsURL:"https://maps.here.com/directions/drive//{{addr}}:{{lat}},{{lng}}?map={{lat}},{{lng}},15,normal",faviconURL:"here.com",mapURL:"https://wego.here.com/?map={{lat}},{{lng}},5,normal",name:"HERE Maps",notOnDevices:["isMobileDevice","isIE9"]},osm:{directionsURL:"https://www.openstreetmap.org/directions?route=%3B{{lat}}%2C{{lng}}#map=15/{{lat}}/{{lng}}",mapURL:"https://www.openstreetmap.org/?query={{addr}}#map=5/{{lat}}/{{lng}}",name:"OpenStreetMap"}},fonts:{a:"Arial",b:"Trebuchet MS",c:"Century Gothic",e:"Segoe UI",g:"Georgia",h:"Helvetica",n:"Sans-serif",o:"Tahoma",p:"Proxima Nova",s:"Serif",t:"Times",u:"Helvetica Neue",v:"Verdana"},headerBehaviors:{"1":{name:"On & Fixed",onDevices:["hasFixedHeaderSupport"]},"-1":{name:"Off"},d:{name:"On & Dynamic"},s:{name:"On & Scrolling"}},k1:{"default":"1",desc:"If you still want to support us, %shelp spread DuckDuckGo%s",desc2:"<a href='https://duckduckgo.com/spread'>",desc3:"</a>",name:"Advertisements",type:"boolean"},k18:{"default":"0",desc:"Changes whether the visited check mark is visible",name:"Result Visited Check Mark",type:"boolean"},k5:{"default":"-1",desc:"Changes what happens when you click on a video thumbnail",name:"Video Playback",type:"dropdown",values:{"1":"Always play on DuckDuckGo","2":"Open on third-party site","-1":"Prompt me"}},k7:{"default":"ffffff",desc:"Change the background color across the entire site",name:"Background Color",type:"color",values:"colors"},k8:{"default":"494949",desc:"Changes the color of the result description text",name:"Result Description Color",type:"color",values:{g:"595959"}},k9:{"default":"084999",desc:"Changes the title link color for each result",name:"Result Title Color",type:"color",values:{b:"1168cc",g:"292929"}},ka:{"default":"p",desc:"Changes the title link font for each result",name:"Result Title Font",order:["a","c","g","h","u","p","n","e","s","t","o","b","v"],type:"dropdowncustom",values:"fonts"},kaa:{"default":"6c00a2",desc:"Changes the title link color for each result",name:"Result Visited Title Color",type:"color",values:{g:"292929",p:"6830bb"}},kac:{"default":"1",desc:"Show suggestions under the search box as you type",name:"Auto-Suggest",type:"boolean"},kad:{"default":"wt_WT",desc:"Changes the language across the entire site",dropdownSettings:{category:"general"},name:"Language",order:["wt_WT"],type:"dropdown",values:"languages"},kae:{"default":"-1",dropdownSettings:{category:"appearance",options:["-1","d"]},name:"Theme",type:"theme",values:{"-1":{color1:"084999",color2:"888",id:"-1",name:"Default",settings:{k10:null,k11:null,k12:null,k13:null,k14:null,k15:null,k16:null,k17:null,k18:null,k19:null,k20:null,k7:null,k8:null,k9:null,ka:null,kaa:null,kac:null,kaf:null,kag:null,kai:null,kf:null,kj:null,km:null,ko:null,kt:null,kx:null}},b:{color1:"3434d4",color2:"047d00",id:"b",name:"Basic",settings:{k15:"normal",k18:null,k19:"4495d4",k8:"444",k9:"1a0dab",ka:"h",kaa:"5500A3",kaf:"1",kai:null,kf:"-1",kt:"h",kx:"006621"}},c:{color1:"0f6ccc",color2:"ca4323",id:"c",name:"Contrast",settings:{k15:"normal",k18:null,k19:"4495d4",k8:"333",k9:"3a7fb4",kaa:"6d59a3",kaf:"1",kx:"bd4b2b"}},d:{color1:"444",color2:"222",id:"d",name:"Dark",settings:{k15:"normal",k18:"1",k20:"888888",k7:"333",kaa:"e6e6e6",kj:"333"}},g:{color1:"333",color2:"888",id:"g",name:"Gray",settings:{k10:"3a7fb4",k11:"3a7fb4",k15:"normal",k17:"3a7fb4",k18:"1",k19:"4495d4",k20:"888888",k7:null,k8:"666",k9:"333",ka:null,kaa:"333",kac:null,kaf:null,kag:null,kai:null,kf:null,kj:null,km:null,ko:null,kt:null,kx:"888"}},r:{id:"r",name:"Retro",settings:{k18:null,k19:"4495d4",k8:"333",k9:"1168cc",ka:"n",kaa:"6830bb",kaf:"1",kag:"1",kj:"d44c2a",km:"m",ko:"1",kt:"n",kx:"c14100"},suppress:"true"},t:{id:"t",name:"Terminal",settings:{k18:null,k7:"222",k8:"ccc",k9:"50f148",kaa:"ad4ad2",kj:"222",kx:"a1ac25"}}}},kaf:{"default":"1",desc:"Show the full URL for each result",name:"Result Full URLs",type:"boolean"},kag:{"default":"-1",desc:"Shows the search button background",name:"Search Button Background",type:"boolean"},kah:{desc:"Stores the previous region that was set",name:"Previous Region",values:"regions"},kai:{"default":"1",desc:"Show the Result URL line above the snippet text",name:"Result URLs above snippet",type:"boolean"},kaj:{"default":"-1",desc:"Preferred units of measure",name:"Units of Measure",order:["-1","m","u"],type:"dropdown",values:{"-1":"No Preference (Default)",m:"Metric (Kilograms, Meters, Celsius)",u:"US based (Pounds, Feet, Fahrenheit)"}},kak:{"default":"1",desc:"Show links to instructions for how to add DuckDuckGo to your browser",name:"Install DuckDuckGo",type:"boolean"},kam:{desc:"Which third party source to use for directions",deviceDependent:true,name:"Directions Source",order:["apple-maps-osx","apple-maps-ios","bing-maps","google-maps","here-maps","osm"],type:"dropdown",values:"directionSources"},kan:{"default":"0",name:"ATB related (not displayed on settings page)"},kao:{"default":"1",desc:"Show the privacy benefits of using DuckDuckGo on the homepage",name:"Homepage Privacy Tips",type:"boolean"},kap:{"default":"1",desc:"Show occasional reminders to sign up for the DuckDuckGo privacy newsletter",hideTitle:true,name:"Privacy Newsletter",type:"boolean"},kaq:{"default":"1",desc:"Show sign up form for the DuckDuckGo privacy newsletter",name:"Privacy Newsletter",type:"boolean"},kar:{"default":"",desc:"We don't store your location. It remains only on your device. %sInfo%s",desc2:"<a href='https://help.duckduckgo.com/privacy/anonymous-localized-results'>",desc3:"</a>",hideTitle:true,name:"Location",type:"clear"},kas:{"default":"0",name:"Mobile Instructions (not displayed on settings page)"},kat:{"default":"1",desc:"Prompt me to anonymously use browser location for better results.",name:"Location",type:"boolean"},kau:{"default":"1",desc:"It's okay to (very infrequently) ask me about my experience using DuckDuckGo",name:"Help Improve DuckDuckGo",type:"boolean"},kav:{"default":"-1",desc:"Loads more results when scrolling",dropdownSettings:{category:"general"},name:"Infinite Scroll",type:"boolean"},kaw:{"default":"1",desc:"Hides search term from being shown in browser tab/history",name:"Seach Visibility",type:"boolean"},kax:{"default":"1",desc:"Show occasional reminders to add DuckDuckGo to your browser",hideTitle:true,name:"ATB Dismiss",type:"boolean"},kay:{"default":"-1",desc:"The rendering method to use for interactive maps",name:"Map Rendering",order:["-1","b","i"],type:"dropdown",values:{"-1":"Not Set",b:"Best Available",i:"Image Tiles"}},kaz:{"default":"-1",desc:"Show welcome message on top of the search results page",name:"Welcome Message",type:"boolean"},kc:{"default":"1",desc:"Loads more image results when scrolling",name:"Infinite Scroll for Images",type:"boolean"},kd:{"default":"1",desc:"In some older browsers it's necessary to redirect your clicks through our server to prevent Search Leakage. %sMore Info%s.",desc2:"<a href='https://help.duckduckgo.com/results/rduckduckgocom'>",desc3:"</a>",name:"Redirect (when necessary)",type:"boolean"},kf:{"default":"1",desc:"Show favicons for each result",dropdownSettings:{category:"appearance"},name:"Site Icons",type:"boolean"},kg:{"default":"g",desc:"Search queries are included in URL (if off, searches will use POST requests)",name:"GET requests",type:"boolean",values:{"1":"g","-1":"p"}},kh:{"default":"1",desc:"Use encrypted version of the site",name:"HTTPS",type:"boolean"},kj:{"default":"ffffff",desc:"Changes the header color across the entire site",name:"Header Color",type:"color",values:"colors"},kk:{"default":"1",desc:"Enables keyboard shortcuts on the site",name:"Keyboard Shortcuts",type:"boolean"},kl:{"default":"wt-wt",desc:"Changes results to be region specific",name:"Region",order:["wt-wt"],type:"dropdown",values:"regions"},km:{"default":"l",desc:"Center align the results page (instead of left aligned)",name:"Center Alignment",type:"boolean",values:{"1":"m","-1":"l"}},kn:{"default":"-1",desc:"Opens results in new windows/tabs",dropdownSettings:{category:"general"},name:"Open Links in a New Tab",type:"boolean"},kntp_s:{"default":"0",desc:"Show most visited links on new tab page",name:"New Tab Page Most Visited Sites",type:"boolean"},ko:{"default":"d",desc:"Changes how much space the header takes up and what happens to it when you scroll",deviceDependent:true,name:"Header Behavior",type:"dropdown",values:"headerBehaviors"},kp:{"default":"-1",desc:"Omits objectionable (mostly adult) material",name:"Safe Search",order:["1","-1","-2"],type:"dropdown",values:{"1":"Strict","-1":"Moderate","-2":"Off"}},ks:{"default":"n",desc:"Changes the font size across the entire site",dropdownSettings:{category:"appearance"},name:"Font Size",order:["t","l","n","m","s"],type:"dropdown",values:{l:"Larger",m:"Medium",n:"Large",s:"Small",t:"Largest"}},kt:{"default":"p",desc:"Changes the font across the entire site",dropdownSettings:{category:"appearance"},name:"Font",order:["a","c","g","h","u","p","n","e","s","t","o","b","v"],type:"dropdowncustom",values:"fonts"},ku:{"default":"-1",desc:"Underline the title link for each result",name:"Result Title Underline",type:"boolean"},kv:{compositeKey:{"-1:-1":"-1","-1:1":"m","1:-1":"l","1:1":"1"},"default":"1",name:"Page #'s",subsettings:[{"default":"1",desc:"Show page numbers at result page breaks",id:"kv_num",name:"Page Break #'s",type:"boolean"},{"default":"1",desc:"Show horizontal lines at result page breaks",id:"kv_lin",name:"Page Break Lines",type:"boolean"}],type:"composite"},kw:{"default":"n",desc:"Controls the width of the search box and results",name:"Page Width",order:["s","w","n"],type:"dropdown",values:{n:"Normal",s:"Super Wide",w:"Wide"}},kx:{"default":"3F6E35",desc:"Changes the color of the result URL",name:"Result URL Color",type:"color",values:{b:"10385d",e:"858585",g:"0f5c17",l:"222222",o:"d15d0d",p:"732883",r:"c14100"}},kz:{"default":"1",desc:"Automatically open relevant Instant Answers",name:"Instant Answers",type:"boolean"},languages:{af_ZA:"Afrikaans (South Africa)",ar_DZ:"العربية (الجزائر)",ar_EG:"العربية (مصر)",ar_JO:"العربية (الأردن)",ar_SA:"العربية (السعودية)",ast_ES:"Asturianu",az_AZ:"Azərbaycan dili",be_BY:"беларускі (Беларусь)",bg_BG:"български (България)",bn_BD:"বাংলা(বাংলাদেশ)",bn_IN:"বাংলা (ভারত)",br_FR:"Brezhoneg",bs_BA:"Bosanski",ca_ES:"català (Espanya)",cs_CZ:"čeština (Česká republika)",cy_GB:"Cymraeg",da_DK:"Dansk (Danmark)",de_CH:"Deutsch (Schweiz)",de_DE:"Deutsch (Deutschland)",el_GR:"Ελληνικά (Ελλάδα)",en_AU:"English (Australia)",en_CA:"English (Canada)",en_GB:"English (United Kingdom)",en_US:"English (United States)",eo_XX:"Esperanto",es_AR:"español (Argentina)",es_CL:"español (Chile)",es_CO:"español (Colombia)",es_CR:"español (Costa Rica)",es_EC:"español (Ecuador)",es_ES:"español (España)",es_MX:"español (México)",es_PE:"español (Perú)",es_UY:"español (Uruguay)",es_VE:"español (Venezuela)",et_EE:"Eesti (Eesti)",eu_ES:"Euskara",fa_IR:"فارسی",fi_FI:"suomi (Suomi)",fr_BE:"français (Belgique)",fr_CA:"français (Canada)",fr_CH:"français (Suisse)",fr_FR:"français (France)",ga_IE:"Gaeilge (Éire)",gd_GB:"Gàidhlig",gl_ES:"Galego",gu_IN:"ગુજરાતી",he_IL:"עברית",hi_IN:"हिंदी (भारत)",hr_HR:"hrvatski (Hrvatska)",hu_HU:"magyar (Magyarország)",hy_AM:"Հայերեն",id_ID:"Bahasa Indonesia",io_XX:"Ido",it_IT:"italiano (Italia)",ja_JP:"日本語 (日本)",ka_GE:"ქართული",kn_IN:"ಕನ್ನಡ (India)",ko_KR:"한국어 (대한민국)",kw_GB:"Kernowek",ky_KG:"кыргызча",lt_LT:"Lietuvių (Lietuva)",lv_LV:"Latviešu (Latvija)",ml_IN:"മലയാളം",mr_IN:"मराठी",ms_MY:"Bahasa Melayu (Malaysia)",nb_NO:"Norsk (bokmål)",ne_NP:"नेपाली",nl_BE:"Nederlands (België)",nl_NL:"Nederlands (Nederland)",nn_NO:"Norsk (nynorsk)",od_IN:"ଓଡ଼ିଆ (ଭାରତ)",pl_PL:"polski (Polska)",pt_BR:"português (Brasil)",pt_PT:"português (Portugal)",ro_RO:"română (România)",ru_RU:"русский (Россия)",sk_SK:"Slovenčina (Slovenská republika)",sl_SI:"Slovenščina (Slovenija)",sq_AL:"shqip (Shqipëria)",sr_RS:"Српски (Serbia)",sv_SE:"svenska (Sverige)",ta_IN:"தமிழ்",te_IN:"తెలుగు",th_TH:"ไทย (ประเทศไทย)",tl_PH:"Filipino",tokipona_XX:"Toki Pona",tr_TR:"Türkçe (Türkiye)",uk_UA:"українська (Україна)",ur_PK:"اردو",vi_VN:"Tiếng Việt (Việt Nam)",wt_WT:"Browser preferred language",zh_CN:"中文 (中国)",zh_TW:"中文 (台灣)"},regions:{"wt-wt":"All Regions","ar-es":"Argentina","au-en":"Australia","at-de":"Austria","be-fr":"Belgium (fr)","be-nl":"Belgium (nl)","br-pt":"Brazil","bg-bg":"Bulgaria","ca-en":"Canada","ca-fr":"Canada (fr)","ct-ca":"Catalonia","cl-es":"Chile","cn-zh":"China","co-es":"Colombia","hr-hr":"Croatia","cz-cs":"Czech Republic","dk-da":"Denmark","ee-et":"Estonia","fi-fi":"Finland","fr-fr":"France","de-de":"Germany","gr-el":"Greece","hk-tzh":"Hong Kong","hu-hu":"Hungary","in-en":"India","id-id":"Indonesia","id-en":"Indonesia (en)","ie-en":"Ireland","il-he":"Israel","it-it":"Italy","jp-jp":"Japan","kr-kr":"Korea","lv-lv":"Latvia","lt-lt":"Lithuania","my-ms":"Malaysia","my-en":"Malaysia (en)","mx-es":"Mexico","nl-nl":"Netherlands","nz-en":"New Zealand","no-no":"Norway","pe-es":"Peru","ph-en":"Philippines","ph-tl":"Philippines (tl)","pl-pl":"Poland","pt-pt":"Portugal","ro-ro":"Romania","ru-ru":"Russia","xa-ar":"Saudi Arabia","sg-en":"Singapore","sk-sk":"Slovakia","sl-sl":"Slovenia","za-en":"South Africa","es-es":"Spain","es-ca":"Spain (ca)","se-sv":"Sweden","ch-de":"Switzerland (de)","ch-fr":"Switzerland (fr)","ch-it":"Switzerland (it)","tw-tzh":"Taiwan","th-th":"Thailand","tr-tr":"Turkey","uk-en":"United Kingdom","us-en":"United States","us-es":"United States (es)","vn-vi":"Vietnam"},tabs:[{id:"general",name:"General",settings:["kl","kad","break","kp","kz","break","kc","kav","kac","kn","k1","kk","kaj","kam","kat","kar","kay","break","kv","break","kak","kax","break","kaq","kap","break","kao","break","kau"]},{id:"theme",name:"Theme",settings:["kae"]},{id:"appearance",name:"Appearance",settings:["Page Appearance","kt","ks","kw","km","k7","break","Header Appearance","ko","kj","break","Results Appearance","ka","k9","kaa","ku","break","k8","kx","kaf","kai","k18","break","kf"]},{id:"privacy",name:"Privacy",settings:["kh","kg","k5","kd"]}]};!function(a){a.Data.languages={fontSubsets:{normal:["sq","eu","br","ch","da","nl","en","fo","fi","fr","gl","de","is","it","mg","no","pt","es","sv"],afrikaans:["af"],catalan:["ca"],cyrillic:["ru","ab","av","ba","be","bg","ce","cv","uk","kk","ku","kv","ky","mk","mn","os","tg","tt","ug","uz","sr"],esperanto:["eo"],estonian:["et"],greek:["el","gr"],hungarian:["hu"],lithuanian:["lt","sl"],maltese:["mt"],polish:["pl"],romanian:["ro"],serbian:["sr","bs","hr","sl","lv"],slovak:["sk","sl","lv"],turkish:["tr"],welsh:["cy"],czech:["cs","sl","lv"]},languageFontLookup:{af:"afrikaans",ca:"catalan",eo:"esperanto",et:"estonian",el:"greek",gr:"greek",hu:"hungarian",lt:"lithuanian",mt:"maltese",pl:"polish",ro:"romanian",tr:"turkish",cy:"welsh",cs:"czech",sk:"slovak",sl:"serbian",bs:"serbian",hr:"serbian",lv:"serbian",ru:"cyrillic",ab:"cyrillic",av:"cyrillic",ba:"cyrillic",be:"cyrillic",bg:"cyrillic",ce:"cyrillic",cv:"cyrillic",uk:"cyrillic",kk:"cyrillic",ku:"cyrillic",kv:"cyrillic",ky:"cyrillic",mk:"cyrillic",mn:"cyrillic",os:"cyrillic",tg:"cyrillic",tt:"cyrillic",ug:"cyrillic",uz:"cyrillic",sr:["serbian","cyrillic"]}}}(DDG);DDG.Data.NewsImageDomains=["wsj.com","latimes.com","fastcompany.com","cnbc.com","billboard.com","cnn.com","techcrunch.com","pando.com","huffingtonpost.com","foxnews.com","nbcnews.com","extratv.com","gawker.com","nymag.com","chron.com","mediaite.com","inquisitr.com","spin.com","mtv.com","cbslocal.com","wired.com","ibtimes.com","entrepreneur.com","arstechnica.com","slashgear.com","theverge.com","businessinsider.com","gizmodo.com","nypost.com","si.com","abcnews.go.com","foxsports.com","sciencedaily.com","eurekalert.org","engadget.com","app.com","valleywx.com","nydailynews.com","kitv.com","observer.com","usmagazine.com","mercurynews.com","deadline.com","abqjournal.com","voanews.com","hollywoodlife.com","justjaredjr.com","popsugar.com","opposingviews.com","kdvr.com","digitaltrends.com","pcworld.com","scpr.com","pcmag.com","operationrainfall.com","awn.com","investopedia.com","geek.com","curbed.com","discovery.com","abcactionnews.com","nola.com","forward.com","crainsnewyork.com","abc7news.com","advocate.com","scientificamerican.com","discovermagazine.com","espn.go.com","xconomy.com","peoplestylewatch.com","people.com","vibe.com","pitchfork.com","anandtech.com","oregonlive.com","gigaom.com","hypable.com","ign.com","comingsoon.net","eonline.com","lemonde.fr","theguardian.com","fortune.com","forbes.com","bloomberg.com","afp.com","time.com","variety.com","telegraph.co.uk","ap.org","zacks.com","newsweek.com","hellogiggles.com","digitalspy.co.uk","refinery29.uk","thewrap.com","bgr.com","afprelaxnews.com","businesswire.com","etonline.com","cosmopolitan.com","esquire.com","foreignpolicy.com","thefiscaltimes.com","tvline.com","esquire.com","vulture.com","accesswire.com","harpersbazaar.com","marketwired.com","insideedition.com","rollingstone.com","instyle.com","rideapart.com","essence.com","townandcountrymag.com","stereogum.com","goal.com","golf.com","cover32.com","delish.com","briefing.com","gma.yahoo.com","popularmechanics.com","foxbusiness.com","countryliving.com","roadandtrack.com","glamour.com","southernliving.com","racked.com","elle.com","geekwire.com","complex.com","caranddriver.com","travelandleisure.com","coastalliving.com","scroll.in","greencarreports.com","robbreport.com","realsimple.com","womansday.com","elledecor.com","vanityfair.com","vogue.com","housebeautiful.com","viddsee.com","teenvogue.com","rotoworld.com"];!function(a){a.Utils.Perf=function(){this._lacksApiSupport=(!window.performance||!window.performance.getEntriesByType);this._shouldReportSample=Math.random()<0.1};a.Utils.Perf.prototype=$.extend({},{reportNavigation:function(c){if(!this._shouldReportSample){return}if(this._lacksApiSupport){this._reportUnsupportedApis();return}try{var b=this._reportNavigation(c);a.pixel.fire("perf",c,b)}catch(f){a.pixel.fire("jse","perf",{msg:"reportNavigation: "+f.message})}},reportResource:function(c,f){if(!this._shouldReportSample||this._lacksApiSupport){return}try{var b=this._reportResource(f);a.pixel.fire("perf",c,f,b)}catch(g){a.pixel.fire("jse","perf",{msg:"reportResource: "+g.message})}},_reportUnsupportedApis:function(){a.pixel.fire("perf","unsupported")},_reportResource:function(c){var e=this._resourceTimingByName(c);if(!e){return null}var b={};this._populateResourceTimingResults(e,b);this._truncateFloatValues(b);return b},_resourceTimingByName:function(c){var e=window.performance.getEntriesByType("resource");for(var b in e){if(e[b].name.includes(c)){return e[b]}}return null},_populateResourceTimingResults:function(e,c){c.redirect_time_ms=e.redirectEnd-e.redirectStart;c.connect_time_ms=e.connectEnd-e.connectStart;c.dns_time_ms=e.domainLookupEnd-e.domainLookupStart;if(e.secureConnectionStart){c.tls_handshake_time_ms=e.connectEnd-e.secureConnectionStart}c.ttfb_ms=e.responseStart-e.requestStart;c.transfer_time_ms=e.responseEnd-e.responseStart;if(e.serverTiming&&e.nextHopProtocol!==""){for(var b in e.serverTiming){var f=e.serverTiming[b];if(f.name==="total"){c.net_rtt_ms=(e.responseStart-e.requestStart)-f.duration;break}}}if(typeof e.nextHopProtocol!=="undefined"){c.protocol=e.nextHopProtocol}if(typeof e.transferSize!=="undefined"){c.transfer_size_bytes=e.transferSize}if(typeof e.encodedBodySize!=="undefined"){c.encoded_size_bytes=e.encodedBodySize}if(typeof e.decodedBodySize!=="undefined"){c.decoded_size_bytes=e.decodedBodySize}},_reportNavigation:function(){var b={};var c=window.performance.getEntriesByType("navigation")[0];if(c){b.redirects_count=c.redirectCount;b.unload_time_ms=c.unloadEventEnd-c.unloadEventStart;this._populateResourceTimingResults(c,b);b.dom_interactive_time_ms=c.domInteractive-c.responseEnd;b.dom_content_loaded_time_ms=c.domContentLoadedEventStart-c.responseEnd;b.dom_complete_time_ms=Math.max(c.domComplete-c.responseEnd,0);b.type=c.type}this._truncateFloatValues(b);return b},_truncateFloatValues:function(e){for(var b in e){var c=e[b];if(typeof(c)==="number"){e[b]=Math.round(c).toFixed(0)}}}})}(DDG);!function(b){b.Utils.Geo=function(){};b.Utils.Geo.prototype={boundingBox:function(e){var f={minlon:null,minlat:null,maxlon:null,maxlat:null};e.forEach(function(g){if(f.minlat===null||g.lat<f.minlat){f.minlat=g.lat}if(f.maxlat===null||g.lat>f.maxlat){f.maxlat=g.lat}if(f.minlon===null||g.lon<f.minlon){f.minlon=g.lon}if(f.maxlon===null||g.lon>f.maxlon){f.maxlon=g.lon}});return f},intersects:function(e,f){if(e.lon<f.minlon||e.lat<f.minlat||e.lon>f.maxlon||e.lat>f.maxlat){return false}return true},near:function(e,g,h){for(var f=0;f<g.length;f++){if(this.distance(e,g[f])<h){return true}}return false},distance:function(j,h){var i=6371,f=a(h.lat-j.lat),g=a(h.lon-j.lon),e=Math.sin(f/2)*Math.sin(f/2)+Math.cos(a(j.lat))*Math.cos(a(h.lat))*Math.sin(g/2)*Math.sin(g/2);var m=2*Math.atan2(Math.sqrt(e),Math.sqrt(1-e)),k=i*m;return Math.abs(k)},metersToMiles:function(e){return c(e*0.0006213712)},metersToKilometers:function(e){return c(e*0.001)},sort:function(e){return e.sort(function(g,f){return g.lat<f.lat?1:-1})},getUOM:function(){var e="metric";if(!b.settings.isDefault("kaj")){e=b.settings.get("kaj")==="m"?"metric":"imperial"}else{if(b.settings.region.hasRegion()){e=b.settings.region.hasUSRegion()?"imperial":"metric"}else{if(w.ct==="US"){e="imperial"}}}return e}};function a(e){return e*(Math.PI/180)}function c(e){if(!e){return}return Math.round(e*10)/10}b.geo=new b.Utils.Geo()}(DDG);!function(a){a.pixel=new a.Utils.Pixel();a.errorHandler=new a.Utils.ErrorHandler();a.backData=new a.Utils.BackData($("#state_hidden"));a.history=new a.Utils.History(window.history);a.localAPI=new a.Utils.LocalAPIWrapper();a.mapkit=new a.Utils.Mapkit();a.perf=new a.Utils.Perf();a.geo=new a.Utils.Geo()}(DDG);!function(a){a.Utils.Strings={validTags:["b","br","code","em","li","ol","p","pre","strong","u","ul"],removeUnwantedHtml:function(b){if(!b||!b.length){return b}b=this._stripScriptTags(b);b=this._checkWhitelistedTags(b);return b},_stripScriptTags:function(b){var c=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;b=b.replace(c,"");return b},_checkWhitelistedTags:function(e){var c=this.validTags,f=$("<div>").append($.parseHTML(e));f.find("*").each(function(){var g=$(this);if(c.indexOf(this.nodeName.toLowerCase())<0){if(this.nodeName==="IFRAME"){g.remove()}else{if(!g.contents().length){g.remove()}else{g.contents().unwrap()}}}});var b=f.html();return b}}}(DDG);!function(a){a.Utils.Cache={}}(DDG); |