jQuery.template("Tmpl-search-atlas",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('"   '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push(' data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('" ')),__.push('>   <div id="atlas-result-item">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-search-dataalert-subscribe",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="search-dataalert-subscribe">   <div id="step1">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataalert-subscribe.htm","Stay up to date on results for"))),__.push(' "<span>'),typeof query!="undefined"&&query!=null&&__.push($.encode(typeof query=="function"?query.call($item):query)),__.push('<\/span>".<\/p>    <span id="dataalert-subscribe" class="kn-button common accent">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataalert-subscribe.htm","Create alert"))),__.push('<\/span>   <\/div>   <div id="step2">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataalert-subscribe.htm",'Please select your preferred settings and click "Subscribe" to receive emails with updates.'))),__.push('<\/p>    <div id="dataalert-form">     <span id="dataalert-save" class="kn-button common accent">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataalert-subscribe.htm","Subscribe"))),__.push('<\/span>    <\/div>   <\/div>   <div id="step3">    <h3>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataalert-subscribe.htm","Thank you for subscribing!"))),__.push("<\/h3>    <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/search-dataalert-subscribe.htm","You can edit and create new subscriptions in [profile|href=/user/subscriptions|target=_blank].")),__.push("<\/p>   <\/div>  <\/div>");return __});jQuery.template("Tmpl-search-datapoints",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('">   <div class="datapoints-result">    <div class="datapoints-result-values">     <div class="datapoints-result-last-value">      <a target="_blank" href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" title="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('" data-id="'),typeof dataset.id!="undefined"&&dataset.id!=null&&__.push($.encode(typeof dataset.id=="function"?dataset.id.call($item):dataset.id)),__.push('" data-ts="'),typeof timeSeriesKey!="undefined"&&timeSeriesKey!=null&&__.push($.encode(typeof timeSeriesKey=="function"?timeSeriesKey.call($item):timeSeriesKey)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('" data-history-key="'),typeof historyKey!="undefined"&&historyKey!=null&&__.push($.encode(typeof historyKey=="function"?historyKey.call($item):historyKey)),__.push('">       '),typeof Globalize.format!="undefined"&&Globalize.format!=null&&__.push($.encode(Globalize.format(lastValue,"n2"))),__.push('      <\/a>     <\/div>     <div class="datapoints-result-unit">      <span>'),typeof scale.toLowerCase!="undefined"&&scale.toLowerCase!=null&&__.push($.encode(scale.toLowerCase())),__.push(" "),typeof unit.toLowerCase!="undefined"&&unit.toLowerCase!=null&&__.push($.encode(unit.toLowerCase())),__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-datapoints.htm","in"))),__.push(" "),typeof endYear!="undefined"&&endYear!=null&&__.push($.encode(typeof endYear=="function"?endYear.call($item):endYear)),__.push("<\/span>     <\/div>     "),typeof(startYear!=endYear&&changeSign!==0)!="undefined"&&(startYear!=endYear&&changeSign!==0)!=null&&(typeof(startYear!=endYear&&changeSign!==0)=="function"?(startYear!=endYear&&changeSign!==0).call($item):startYear!=endYear&&changeSign!==0)&&(__.push('     <div class="datapoints-result-change" style="'),typeof(changeSign===1)!="undefined"&&changeSign===1!=null&&(typeof(changeSign===1)=="function"?(changeSign===1).call($item):changeSign===1)?__.push("color: green"):!0&&__.push("color: red"),__.push('">      <span>'),typeof(changeSign===1)!="undefined"&&changeSign===1!=null&&(typeof(changeSign===1)=="function"?(changeSign===1).call($item):changeSign===1)?__.push("&#x21D1;"):!0&&__.push("&#x21D3;"),__.push("&nbsp;"),typeof Globalize.format!="undefined"&&Globalize.format!=null&&__.push($.encode(Globalize.format(valueChange,"n2"))),__.push("&nbsp;("),typeof Globalize.format!="undefined"&&Globalize.format!=null&&__.push($.encode(Globalize.format(valueChangeInPercent,"n2"))),__.push('%)<\/span>     <\/div>     <div class="datapoints-result-change-year" style="'),typeof(changeSign===1)!="undefined"&&changeSign===1!=null&&(typeof(changeSign===1)=="function"?(changeSign===1).call($item):changeSign===1)?__.push("color: green"):!0&&__.push("color: red"),__.push(';">      <span>from '),typeof startYear!="undefined"&&startYear!=null&&__.push($.encode(typeof startYear=="function"?startYear.call($item):startYear)),__.push("<\/span>     <\/div>     ")),__.push('    <\/div>    <div class="datapoints-result-preview">     <div class="datapoints-result-preview-host">     <\/div>     <div class="datapoints-result-source">      <span class="search-metadata-item">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-datapoints.htm","Source:"))),__.push(' <\/span>      <span class="search-metadata-value"><a target="_blank" href="'),typeof dataset.resourceUrl!="undefined"&&dataset.resourceUrl!=null&&__.push($.encode(typeof dataset.resourceUrl=="function"?dataset.resourceUrl.call($item):dataset.resourceUrl)),__.push('">'),typeof dataset.title!="undefined"&&dataset.title!=null&&__.push($.encode(typeof dataset.title=="function"?dataset.title.call($item):dataset.title)),__.push('<\/a><\/span>     <\/div>    <\/div>    <div class="clear">    <\/div>   <\/div>   <input id="datapoints-desc" type="hidden" value="'),typeof JSON.stringify!="undefined"&&JSON.stringify!=null&&__.push($.encode(JSON.stringify(dataDescriptor))),__.push('" />  <\/div>');return __});jQuery.template("Tmpl-search-dataset-content",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item dataset-content '),typeof(dataset&&(dataset.isProtected||dataset.mainSearch))!="undefined"&&(dataset&&(dataset.isProtected||dataset.mainSearch))!=null&&(typeof(dataset&&(dataset.isProtected||dataset.mainSearch))=="function"?(dataset&&(dataset.isProtected||dataset.mainSearch)).call($item):dataset&&(dataset.isProtected||dataset.mainSearch))&&__.push("protected-open"),__.push(" "),typeof(dataset&&dataset.mainSearch)!="undefined"&&(dataset&&dataset.mainSearch)!=null&&(typeof(dataset&&dataset.mainSearch)=="function"?(dataset&&dataset.mainSearch).call($item):dataset&&dataset.mainSearch)&&__.push("main-open"),__.push('" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('" data-subindex="'),typeof subindex!="undefined"&&subindex!=null&&__.push($.encode(typeof subindex=="function"?subindex.call($item):subindex)),__.push('"   '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push('data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('"')),__.push('>   <div class="dataset-content-top">    <div>     '),typeof(dataset&&(dataset.isProtected||dataset.mainSearch))!="undefined"&&(dataset&&(dataset.isProtected||dataset.mainSearch))!=null&&(typeof(dataset&&(dataset.isProtected||dataset.mainSearch))=="function"?(dataset&&(dataset.isProtected||dataset.mainSearch)).call($item):dataset&&(dataset.isProtected||dataset.mainSearch))?(__.push('     <span class="protected-open-tag '),typeof dataset.mainSearch!="undefined"&&dataset.mainSearch!=null&&(typeof dataset.mainSearch=="function"?dataset.mainSearch.call($item):dataset.mainSearch)&&__.push("main-open-tag"),__.push(' knoema-ico float" title=""><\/span>     ')):!0&&(__.push('     <span class="add-to-gadgetbin knoema-ico float" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset-content.htm","Bookmark"))),__.push('"><\/span>     ')),__.push('    <\/div>    <div class="header">     <a class="'),typeof formattedTitle!="undefined"&&formattedTitle!=null&&(typeof formattedTitle=="function"?formattedTitle.call($item):formattedTitle)&&__.push("formatted-title "),__.push('external-link search-result-title dataset-content-browse"        data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('" data-id="'),typeof dataset.id!="undefined"&&dataset.id!=null&&__.push($.encode(typeof dataset.id=="function"?dataset.id.call($item):dataset.id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('"        '),typeof modelFlavor!="undefined"&&modelFlavor!=null&&(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)&&(__.push(' data-model="'),typeof modelFlavor!="undefined"&&modelFlavor!=null&&__.push($.encode(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)),__.push('"')),__.push(" "),typeof semantic!="undefined"&&semantic!=null&&(typeof semantic=="function"?semantic.call($item):semantic)&&__.push("data-semantic='true'"),__.push('         target="_blank" href="#">      '),typeof formattedTitle!="undefined"&&formattedTitle!=null&&(typeof formattedTitle=="function"?formattedTitle.call($item):formattedTitle)?(__.push(""),typeof formattedTitle!="undefined"&&formattedTitle!=null&&__.push(typeof formattedTitle=="function"?formattedTitle.call($item):formattedTitle),__.push("")):!0&&(__.push(""),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("")),__.push('&nbsp;<i class="fa fa-lock" aria-hidden="true"><\/i>     <\/a>     <form class="dataset-content-browse" action="'),typeof dataset.resourceUrl!="undefined"&&dataset.resourceUrl!=null&&__.push($.encode(typeof dataset.resourceUrl=="function"?dataset.resourceUrl.call($item):dataset.resourceUrl)),__.push('" method="post" target="_blank">      <input class="dataDescriptor" name="dataDescriptor" type="hidden" value="'),typeof dataDescriptor!="undefined"&&dataDescriptor!=null&&__.push($.encode(typeof dataDescriptor=="function"?dataDescriptor.call($item):dataDescriptor)),__.push('" />      <input class="gadgetDetails" name="gadgetDetails" type="hidden" />     <\/form>     '),typeof unit!="undefined"&&unit!=null&&(typeof unit=="function"?unit.call($item):unit)&&(__.push('     <span class="search-metadata-item unit">('),typeof unit!="undefined"&&unit!=null&&__.push($.encode(typeof unit=="function"?unit.call($item):unit)),__.push(")<\/span>     ")),__.push("     "),!0&&(__=__.concat($item.nest("Tmpl-search-yodatai-description",null))),__.push('    <\/div>    <div class="filter">     <div class="search-frequency">     <\/div>     <div class="switch-gadget">      '),typeof(availableGadgetClasses.length>1)!="undefined"&&availableGadgetClasses.length>1!=null&&(typeof(availableGadgetClasses.length>1)=="function"?(availableGadgetClasses.length>1).call($item):availableGadgetClasses.length>1)&&(__.push("      "),typeof($.inArray("Knoema.Chart",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.Chart",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.Chart",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.Chart",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.Chart",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget line enable '),typeof(gadgetClass=="Knoema.Chart")!="undefined"&&gadgetClass=="Knoema.Chart"!=null&&(typeof(gadgetClass=="Knoema.Chart")=="function"?(gadgetClass=="Knoema.Chart").call($item):gadgetClass=="Knoema.Chart")&&__.push("active"),__.push('" data-gadget-type="line" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset-content.htm"," line chart"))),__.push('"><\/a>      ')),__.push("      "),typeof($.inArray("Knoema.InfoCard",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.InfoCard",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.InfoCard",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.InfoCard",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.InfoCard",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget infocard enable '),typeof(gadgetClass=="Knoema.InfoCard")!="undefined"&&gadgetClass=="Knoema.InfoCard"!=null&&(typeof(gadgetClass=="Knoema.InfoCard")=="function"?(gadgetClass=="Knoema.InfoCard").call($item):gadgetClass=="Knoema.InfoCard")&&__.push("active"),__.push('" data-gadget-type="infocard" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset-content.htm"," infocard"))),__.push('"><\/a>      ')),__.push("      "),typeof($.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget table enable '),typeof(gadgetClass=="Knoema.HtmlTable")!="undefined"&&gadgetClass=="Knoema.HtmlTable"!=null&&(typeof(gadgetClass=="Knoema.HtmlTable")=="function"?(gadgetClass=="Knoema.HtmlTable").call($item):gadgetClass=="Knoema.HtmlTable")&&__.push("active"),__.push('" data-gadget-type="table" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset-content.htm"," table"))),__.push('"><\/a>      ')),__.push("      "),typeof($.inArray("Knoema.Ranking",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.Ranking",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.Ranking",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.Ranking",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.Ranking",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget ranking enable '),typeof(gadgetClass=="Knoema.Ranking")!="undefined"&&gadgetClass=="Knoema.Ranking"!=null&&(typeof(gadgetClass=="Knoema.Ranking")=="function"?(gadgetClass=="Knoema.Ranking").call($item):gadgetClass=="Knoema.Ranking")&&__.push("active"),__.push('" data-gadget-type="ranking" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset-content.htm"," ranking"))),__.push('"><\/a>      ')),__.push("      "),typeof($.inArray("Knoema.Map",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.Map",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.Map",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.Map",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.Map",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget map enable '),typeof(gadgetClass=="Knoema.Map")!="undefined"&&gadgetClass=="Knoema.Map"!=null&&(typeof(gadgetClass=="Knoema.Map")=="function"?(gadgetClass=="Knoema.Map").call($item):gadgetClass=="Knoema.Map")&&__.push("active"),__.push('" data-gadget-type="map" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset-content.htm"," map"))),__.push('"><\/a>      ')),__.push("      ")),__.push('     <\/div>    <\/div>   <\/div>   <div class="clear"><\/div>   <input id="data-desc" type="hidden" value="'),typeof JSON.stringify!="undefined"&&JSON.stringify!=null&&__.push($.encode(JSON.stringify(dataDescriptor))),__.push('" />   <div class="search-result-preview one-different-dimension">    <div class="search-result-preview-host gadget-container">    <\/div>   <\/div>   '),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("   "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("")),__.push("   "),typeof extraParameters.corpus!="undefined"&&extraParameters.corpus!=null&&(typeof extraParameters.corpus=="function"?extraParameters.corpus.call($item):extraParameters.corpus)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-voting",null))),__.push("")),__.push("   ")),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-partner-content",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item partner-content" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('" data-subindex="'),typeof subindex!="undefined"&&subindex!=null&&__.push($.encode(typeof subindex=="function"?subindex.call($item):subindex)),__.push('" data-type="Partner"  '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push(' data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('" ')),__.push('>  <div class="partner-teaser">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-partner-content.htm","Partner's data"))),__.push('<\/div>  <div class="search-result-preview">   <div class="search-result-preview-host">    '),typeof data.logo!="undefined"&&data.logo!=null&&(typeof data.logo=="function"?data.logo.call($item):data.logo)&&(__.push('    <img class="partner-logo" src="../../Img/partners/'),typeof data.logo!="undefined"&&data.logo!=null&&__.push($.encode(typeof data.logo=="function"?data.logo.call($item):data.logo)),__.push('.png" />    ')),__.push('    <div class="dataset-content-top">     <div class="header">      <p class="search-result-title">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<span class="time"><\/span><\/p>     <\/div>     <div class="dataset-result-content">      <p class="generated-description"><\/p>      <div class="dataset-result-data"><\/div>     <\/div>     '),typeof data.description!="undefined"&&data.description!=null&&(typeof data.description=="function"?data.description.call($item):data.description)&&(__.push('     <div class="dataset-result-description">'),typeof data.description!="undefined"&&data.description!=null&&__.push(typeof data.description=="function"?data.description.call($item):data.description),__.push("<\/div>     ")),__.push("    <\/div>   <\/div>   "),typeof data.url!="undefined"&&data.url!=null&&(typeof data.url=="function"?data.url.call($item):data.url)&&(__.push('   <a href="'),typeof data.url!="undefined"&&data.url!=null&&__.push($.encode(typeof data.url=="function"?data.url.call($item):data.url)),__.push('" class="ui-button lead-button" target="_blank" data-partner-id="'),typeof data.partnerId!="undefined"&&data.partnerId!=null&&__.push($.encode(typeof data.partnerId=="function"?data.partnerId.call($item):data.partnerId)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('" '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push(' data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('" ')),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-partner-content.htm","Learn More"))),__.push("<\/a>   ")),__.push("  <\/div>  "),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("  "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("")),__.push("  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-search-dataset",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item '),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push(" "),typeof(dataset.isProtected||dataset.mainSearch)!="undefined"&&(dataset.isProtected||dataset.mainSearch)!=null&&(typeof(dataset.isProtected||dataset.mainSearch)=="function"?(dataset.isProtected||dataset.mainSearch).call($item):dataset.isProtected||dataset.mainSearch)&&__.push("protected-open"),__.push(" "),typeof dataset.mainSearch!="undefined"&&dataset.mainSearch!=null&&(typeof dataset.mainSearch=="function"?dataset.mainSearch.call($item):dataset.mainSearch)&&__.push("main-open"),__.push('" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('"    '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push(' data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('" ')),__.push(">   "),typeof(dataset.isProtected||dataset.mainSearch)!="undefined"&&(dataset.isProtected||dataset.mainSearch)!=null&&(typeof(dataset.isProtected||dataset.mainSearch)=="function"?(dataset.isProtected||dataset.mainSearch).call($item):dataset.isProtected||dataset.mainSearch)?(__.push('   <span class="protected-open-tag '),typeof dataset.mainSearch!="undefined"&&dataset.mainSearch!=null&&(typeof dataset.mainSearch=="function"?dataset.mainSearch.call($item):dataset.mainSearch)&&__.push("main-open-tag"),__.push(' knoema-ico float" title=""><\/span>   ')):!0&&(__.push('   <span class="add-to-gadgetbin knoema-ico float" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset.htm","Bookmark"))),__.push('"><\/span>   ')),__.push('   <a target="_blank" class="'),typeof resource.formattedTitle!="undefined"&&resource.formattedTitle!=null&&(typeof resource.formattedTitle=="function"?resource.formattedTitle.call($item):resource.formattedTitle)&&__.push("formatted-title "),__.push('external-link dataset-result-title"      id="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" href="'),typeof resource.resourceUrl!="undefined"&&resource.resourceUrl!=null&&__.push($.encode(typeof resource.resourceUrl=="function"?resource.resourceUrl.call($item):resource.resourceUrl)),__.push('" data-id="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('"      '),typeof modelFlavor!="undefined"&&modelFlavor!=null&&(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)&&(__.push(' data-model="'),typeof modelFlavor!="undefined"&&modelFlavor!=null&&__.push($.encode(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)),__.push('"')),__.push(" "),typeof semantic!="undefined"&&semantic!=null&&(typeof semantic=="function"?semantic.call($item):semantic)&&__.push("data-semantic='true'"),__.push(">    "),typeof resource.formattedTitle!="undefined"&&resource.formattedTitle!=null&&(typeof resource.formattedTitle=="function"?resource.formattedTitle.call($item):resource.formattedTitle)?(__.push(""),typeof resource.formattedTitle!="undefined"&&resource.formattedTitle!=null&&__.push(typeof resource.formattedTitle=="function"?resource.formattedTitle.call($item):resource.formattedTitle),__.push("")):!0&&(__.push(""),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push("")),__.push('&nbsp;<i class="fa fa-lock" aria-hidden="true"><\/i>   <\/a>     <div class="dataset-result-metadata">    <table>     <tr>      <td class="metadata-value">       <span class="search-metadata-item-gray">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset.htm","Published:"))),__.push("&nbsp;<\/span>       "),typeof resource.publicationDate!="undefined"&&resource.publicationDate!=null&&(typeof resource.publicationDate=="function"?resource.publicationDate.call($item):resource.publicationDate)?(__.push('       <span class="search-metadata-value-gray">'),typeof resource.publicationDate!="undefined"&&resource.publicationDate!=null&&__.push($.encode(typeof resource.publicationDate=="function"?resource.publicationDate.call($item):resource.publicationDate)),__.push("<\/span>       ")):!0&&__.push('       <span class="search-metadata-value-gray">&ndash;<\/span>       '),__.push('      <\/td>      <td class="metadata-value dataset-date-range">       <span class="search-metadata-item-gray">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset.htm","Date Range:"))),__.push("&nbsp;<\/span>       "),typeof(resource.dateRangeStart&&resource.dateRangeEnd)!="undefined"&&(resource.dateRangeStart&&resource.dateRangeEnd)!=null&&(typeof(resource.dateRangeStart&&resource.dateRangeEnd)=="function"?(resource.dateRangeStart&&resource.dateRangeEnd).call($item):resource.dateRangeStart&&resource.dateRangeEnd)?(__.push('       <span class="search-metadata-value-gray">'),typeof resource.dateRangeStart!="undefined"&&resource.dateRangeStart!=null&&__.push($.encode(typeof resource.dateRangeStart=="function"?resource.dateRangeStart.call($item):resource.dateRangeStart)),__.push("&nbsp;&ndash;&nbsp;"),typeof resource.dateRangeEnd!="undefined"&&resource.dateRangeEnd!=null&&__.push($.encode(typeof resource.dateRangeEnd=="function"?resource.dateRangeEnd.call($item):resource.dateRangeEnd)),__.push("<\/span>       ")):!0&&__.push('       <span class="search-metadata-value-gray">&ndash;<\/span>       '),__.push('      <\/td>      <td class="metadata-value uploaded-by">       <span class="search-metadata-item-gray">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset.htm","Uploaded by:"))),__.push("&nbsp;<\/span>       "),typeof resource.owner!="undefined"&&resource.owner!=null&&(typeof resource.owner=="function"?resource.owner.call($item):resource.owner)?(__.push('       <span class="search-metadata-value-gray">'),typeof resource.owner!="undefined"&&resource.owner!=null&&__.push($.encode(typeof resource.owner=="function"?resource.owner.call($item):resource.owner)),__.push("<\/span>       ")):!0&&__.push('       <span class="search-metadata-value-gray">&ndash;<\/span>       '),__.push('      <\/td>      <td class="metadata-value-source">       <span class="search-metadata-item-gray">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset.htm","Source:"))),__.push("&nbsp;<\/span>       "),typeof resource.source!="undefined"&&resource.source!=null&&(typeof resource.source=="function"?resource.source.call($item):resource.source)?(__.push("  "),typeof resource.sourceUrl!="undefined"&&resource.sourceUrl!=null&&(typeof resource.sourceUrl=="function"?resource.sourceUrl.call($item):resource.sourceUrl)?(__.push('  <span class="search-metadata-value-gray"><!--  --><a class="'),typeof resource.formattedSourceName!="undefined"&&resource.formattedSourceName!=null&&(typeof resource.formattedSourceName=="function"?resource.formattedSourceName.call($item):resource.formattedSourceName)&&__.push("formatted-title "),__.push('external-link" target="_blank" href="'),typeof(resource.sourceUrl||"#")!="undefined"&&(resource.sourceUrl||"#")!=null&&__.push($.encode(typeof(resource.sourceUrl||"#")=="function"?(resource.sourceUrl||"#").call($item):resource.sourceUrl||"#")),__.push('">'),typeof resource.formattedSourceName!="undefined"&&resource.formattedSourceName!=null&&(typeof resource.formattedSourceName=="function"?resource.formattedSourceName.call($item):resource.formattedSourceName)?(__.push(""),typeof resource.formattedSourceName!="undefined"&&resource.formattedSourceName!=null&&__.push(typeof resource.formattedSourceName=="function"?resource.formattedSourceName.call($item):resource.formattedSourceName),__.push("")):!0&&(__.push(""),typeof resource.source!="undefined"&&resource.source!=null&&__.push($.encode(typeof resource.source=="function"?resource.source.call($item):resource.source)),__.push("")),__.push("<\/a><!--  --><\/span>  ")):!0&&(__.push('  <span class="search-metadata-value-gray"><!--  --><span class="'),typeof resource.formattedSourceName!="undefined"&&resource.formattedSourceName!=null&&(typeof resource.formattedSourceName=="function"?resource.formattedSourceName.call($item):resource.formattedSourceName)&&__.push("formatted-title "),__.push('external-link">'),typeof resource.formattedSourceName!="undefined"&&resource.formattedSourceName!=null&&(typeof resource.formattedSourceName=="function"?resource.formattedSourceName.call($item):resource.formattedSourceName)?(__.push(""),typeof resource.formattedSourceName!="undefined"&&resource.formattedSourceName!=null&&__.push(typeof resource.formattedSourceName=="function"?resource.formattedSourceName.call($item):resource.formattedSourceName),__.push("")):!0&&(__.push(""),typeof resource.source!="undefined"&&resource.source!=null&&__.push($.encode(typeof resource.source=="function"?resource.source.call($item):resource.source)),__.push("")),__.push("<\/span><!--  --><\/span>  ")),__.push("       ")):!0&&__.push('       <span class="search-metadata-value-gray">&ndash;<\/span>       '),__.push("      <\/td>     <\/tr>    <\/table>   <\/div>   "),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription)&&(__.push('   <div class="dataset-result-description">    <span class="search-metadata-value black  ">     '),typeof resource.cutDescription!="undefined"&&resource.cutDescription!=null&&(typeof resource.cutDescription=="function"?resource.cutDescription.call($item):resource.cutDescription)?(__.push("     "),typeof resource.cutDescription!="undefined"&&resource.cutDescription!=null&&__.push($.encode(typeof resource.cutDescription=="function"?resource.cutDescription.call($item):resource.cutDescription)),__.push('<span data-description="'),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&__.push($.encode(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription)),__.push('" class="more-link">&nbsp;'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset.htm","More"))),__.push("<\/span>     ")):!0&&(__.push("     "),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&__.push($.encode(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription)),__.push("     ")),__.push("    <\/span>   <\/div>   ")),__.push("   "),typeof resource.dimensionsInfo!="undefined"&&resource.dimensionsInfo!=null&&(typeof resource.dimensionsInfo=="function"?resource.dimensionsInfo.call($item):resource.dimensionsInfo)&&(__.push('   <div class="dataset-result-description dimensions-info">    '),typeof resource.dimensionsInfo!="undefined"&&resource.dimensionsInfo!=null&&$.each(typeof resource.dimensionsInfo=="function"?resource.dimensionsInfo.call($item):resource.dimensionsInfo,function(n,info){with(this)__.push('    <span class="found-dimension black'),typeof(info.elements.length==1)!="undefined"&&info.elements.length==1!=null&&(typeof(info.elements.length==1)=="function"?(info.elements.length==1).call($item):info.elements.length==1)&&__.push(" found-single"),__.push('">     <span class="dimension-name">'),typeof info.dimName!="undefined"&&info.dimName!=null&&__.push($.encode(typeof info.dimName=="function"?info.dimName.call($item):info.dimName)),__.push("&#58;<\/span>     "),typeof info.elements!="undefined"&&info.elements!=null&&$.each(typeof info.elements=="function"?info.elements.call($item):info.elements,function(k,el){with(this)__.push('     <span class="search-dataset-dim-elements"><a class="'),typeof el.formattedText!="undefined"&&el.formattedText!=null&&(typeof el.formattedText=="function"?el.formattedText.call($item):el.formattedText)&&__.push("formatted-title "),__.push('external-link" target="_blank" href="'),typeof el.filterUrl!="undefined"&&el.filterUrl!=null&&__.push($.encode(typeof el.filterUrl=="function"?el.filterUrl.call($item):el.filterUrl)),__.push('" title="'),typeof el.text!="undefined"&&el.text!=null&&__.push($.encode(typeof el.text=="function"?el.text.call($item):el.text)),__.push('">'),typeof el.formattedText!="undefined"&&el.formattedText!=null&&(typeof el.formattedText=="function"?el.formattedText.call($item):el.formattedText)?(__.push(""),typeof el.formattedText!="undefined"&&el.formattedText!=null&&__.push(typeof el.formattedText=="function"?el.formattedText.call($item):el.formattedText),__.push("")):!0&&(__.push(""),typeof el.text!="undefined"&&el.text!=null&&__.push($.encode(typeof el.text=="function"?el.text.call($item):el.text)),__.push("")),__.push("<\/a>"),typeof(k+1<info.elements.length)!="undefined"&&k+1<info.elements.length!=null&&(typeof(k+1<info.elements.length)=="function"?(k+1<info.elements.length).call($item):k+1<info.elements.length)&&__.push('<span class="elements-separator">&#044;<\/span>'),__.push("<\/span>     ")}),__.push("     "),typeof(info.elementsMoreCount>0)!="undefined"&&info.elementsMoreCount>0!=null&&(typeof(info.elementsMoreCount>0)=="function"?(info.elementsMoreCount>0).call($item):info.elementsMoreCount>0)&&(__.push('<span class="more-count">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset.htm","and"))),__.push("&nbsp;"),typeof info.elementsMoreCount!="undefined"&&info.elementsMoreCount!=null&&__.push($.encode(typeof info.elementsMoreCount=="function"?info.elementsMoreCount.call($item):info.elementsMoreCount)),__.push("&nbsp;"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-dataset.htm","more"))),__.push("<\/span>")),__.push("    <\/span>    <br>    ")}),__.push("   <\/div>   ")),__.push("   "),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("   "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("")),__.push("   "),typeof extraParameters.corpus!="undefined"&&extraParameters.corpus!=null&&(typeof extraParameters.corpus=="function"?extraParameters.corpus.call($item):extraParameters.corpus)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-voting",null))),__.push("")),__.push("   ")),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-empty",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="search-empty-msg">   '),typeof noRelevantResults!="undefined"&&noRelevantResults!=null&&(typeof noRelevantResults=="function"?noRelevantResults.call($item):noRelevantResults)?(__.push("   <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","No relevant results were found for"))),__.push(" <b>"),typeof query!="undefined"&&query!=null&&__.push($.encode(typeof query=="function"?query.call($item):query)),__.push("<\/b>&#046;&nbsp;"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","To see what we were able to find click"))),__.push('&nbsp;<span id="search-show-no-relevant-results">here<\/span>&#046;<\/p>   ')):!0&&(__.push("   <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","No results found for"))),__.push(" <b>"),typeof query!="undefined"&&query!=null&&__.push($.encode(typeof query=="function"?query.call($item):query)),__.push("<\/b>.<\/p>   ")),__.push("     <p>    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Search tips:"))),__.push("<ul>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Ensure words are spelled correctly."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Try rephrasing keywords or using synonyms."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Try less specific keywords."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Make your queries as concise as possible."))),__.push("<\/li>    <\/ul>   <\/p>     <p>    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Other resources that may help you:"))),__.push("    <ul>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Get additional search tips by visiting Web Search Help."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","If you cannot find a page that you know exists, send the address to us"))),__.push("<\/li>    <\/ul>   <\/p>  <\/div>");return __});jQuery.template("Tmpl-search-filters",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('﻿<div class="filter-container">   '),typeof!term!="undefined"&&!term!=null&&(typeof!term=="function"?(!term).call($item):!term)?(__.push("    "),typeof(correction&&correction.corrected)!="undefined"&&(correction&&correction.corrected)!=null&&(typeof(correction&&correction.corrected)=="function"?(correction&&correction.corrected).call($item):correction&&correction.corrected)?(__.push('     <div class="best-result">      <div class="instant-answer left-container">       <div class="instant-caption left-container"><\/div>       '),!0&&(__=__.concat($item.nest("Tmpl-search-query-correct",correction))),__.push("      <\/div>     <\/div>    ")):!0&&(__.push('     <div class="search-tip">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-filters.htm","Use the dropdown above to filter the results by time series, visualizations, and datasets."))),__.push("     <\/div>    ")),__.push("   ")):!0&&__.push('    <div class="best-result">     <div class="instant-answer left-container">      <div class="instant-caption left-container"><\/div>     <\/div>    <\/div>   '),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-frequency",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="time-frequency"><!--   --><label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Frequency:"))),__.push("<\/label><!--   -->"),typeof($.inArray("A",frequencies)>=0)!="undefined"&&$.inArray("A",frequencies)>=0!=null&&(typeof($.inArray("A",frequencies)>=0)=="function"?($.inArray("A",frequencies)>=0).call($item):$.inArray("A",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" '),typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("A",selectedFrequencies)>=0))!="undefined"&&(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("A",selectedFrequencies)>=0))!=null&&(typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("A",selectedFrequencies)>=0))=="function"?(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("A",selectedFrequencies)>=0)).call($item):selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("A",selectedFrequencies)>=0))?__.push('class="checked"'):!0&&__.push('class="unchecked"'),__.push(' id="Annual" value="A" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Annual"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","A"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("H",frequencies)>=0)!="undefined"&&$.inArray("H",frequencies)>=0!=null&&(typeof($.inArray("H",frequencies)>=0)=="function"?($.inArray("H",frequencies)>=0).call($item):$.inArray("H",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" '),typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("H",selectedFrequencies)>=0))!="undefined"&&(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("H",selectedFrequencies)>=0))!=null&&(typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("H",selectedFrequencies)>=0))=="function"?(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("H",selectedFrequencies)>=0)).call($item):selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("H",selectedFrequencies)>=0))?__.push('class="checked"'):!0&&__.push('class="unchecked"'),__.push(' id="SemiAnnual" value="H" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","SemiAnnual"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Sa"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("Q",frequencies)>=0)!="undefined"&&$.inArray("Q",frequencies)>=0!=null&&(typeof($.inArray("Q",frequencies)>=0)=="function"?($.inArray("Q",frequencies)>=0).call($item):$.inArray("Q",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" '),typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("Q",selectedFrequencies)>=0))!="undefined"&&(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("Q",selectedFrequencies)>=0))!=null&&(typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("Q",selectedFrequencies)>=0))=="function"?(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("Q",selectedFrequencies)>=0)).call($item):selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("Q",selectedFrequencies)>=0))?__.push('class="checked"'):!0&&__.push('class="unchecked"'),__.push(' id="Quarterly" value="Q" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Quarterly"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Q"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("FQ",frequencies)>=0)!="undefined"&&$.inArray("FQ",frequencies)>=0!=null&&(typeof($.inArray("FQ",frequencies)>=0)=="function"?($.inArray("FQ",frequencies)>=0).call($item):$.inArray("FQ",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" '),typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("FQ",selectedFrequencies)>=0))!="undefined"&&(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("FQ",selectedFrequencies)>=0))!=null&&(typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("FQ",selectedFrequencies)>=0))=="function"?(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("FQ",selectedFrequencies)>=0)).call($item):selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("FQ",selectedFrequencies)>=0))?__.push('class="checked"'):!0&&__.push('class="unchecked"'),__.push(' id="FiscalQuarterly" value="FQ" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Fiscal quarterly"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","FQ"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("M",frequencies)>=0)!="undefined"&&$.inArray("M",frequencies)>=0!=null&&(typeof($.inArray("M",frequencies)>=0)=="function"?($.inArray("M",frequencies)>=0).call($item):$.inArray("M",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" '),typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("M",selectedFrequencies)>=0))!="undefined"&&(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("M",selectedFrequencies)>=0))!=null&&(typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("M",selectedFrequencies)>=0))=="function"?(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("M",selectedFrequencies)>=0)).call($item):selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("M",selectedFrequencies)>=0))?__.push('class="checked"'):!0&&__.push('class="unchecked"'),__.push(' id="Monthly" value="M" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Monthly"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Mo"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("W",frequencies)>=0)!="undefined"&&$.inArray("W",frequencies)>=0!=null&&(typeof($.inArray("W",frequencies)>=0)=="function"?($.inArray("W",frequencies)>=0).call($item):$.inArray("W",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" '),typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("W",selectedFrequencies)>=0))!="undefined"&&(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("W",selectedFrequencies)>=0))!=null&&(typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("W",selectedFrequencies)>=0))=="function"?(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("W",selectedFrequencies)>=0)).call($item):selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("W",selectedFrequencies)>=0))?__.push('class="checked"'):!0&&__.push('class="unchecked"'),__.push(' id="Weekly" value="W" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Weekly"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","W"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("D",frequencies)>=0)!="undefined"&&$.inArray("D",frequencies)>=0!=null&&(typeof($.inArray("D",frequencies)>=0)=="function"?($.inArray("D",frequencies)>=0).call($item):$.inArray("D",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" '),typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("D",selectedFrequencies)>=0))!="undefined"&&(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("D",selectedFrequencies)>=0))!=null&&(typeof(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("D",selectedFrequencies)>=0))=="function"?(selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("D",selectedFrequencies)>=0)).call($item):selectedFrequencies&&(selectedFrequencies.length==0||$.inArray("D",selectedFrequencies)>=0))?__.push('class="checked"'):!0&&__.push('class="unchecked"'),__.push(' id="Daily" value="D" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","Daily"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-frequency.htm","D"))),__.push("<\/span><!--   -->")),__.push("<!--  --><\/div>");return __});jQuery.template("Tmpl-search-full-results",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="full-search-results">   <form action="" name="explore-data" id="explore-data-form" method="post" target="_blank">    <input name="datadescriptor" type="hidden" value="" />   <\/form>     <div id="search-results-with-filters">    <div class="search-results">     <h2 id="search-results-caption"><em><\/em><span><\/span><\/h2>     <div id="search-results"><\/div>    <\/div>   <\/div>     <div id="ontology-dialog" title="Ontology" style="display: none">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-full-results.htm","Loading…"))),__.push("<\/div>  <\/div>");return __});jQuery.template("Tmpl-search-facets-pane",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="filters-pane">   <h2 class="filters-caption">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-facets-pane.htm","Filter"))),__.push('<\/h2>   <div class="filter-item reset">    <input type="button" value="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-facets-pane.htm","Reset"))),__.push('" id="reset-facet-filters" />   <\/div>   '),typeof(!1&&queryRegions&&queryRegions.query)!="undefined"&&(!1&&queryRegions&&queryRegions.query)!=null&&(typeof(!1&&queryRegions&&queryRegions.query)=="function"?(!1&&queryRegions&&queryRegions.query).call($item):!1&&queryRegions&&queryRegions.query)&&(__.push('    <div class="filter-item">     <ul>      <li>       <label class="queryRegions '),typeof queryRegions.selected!="undefined"&&queryRegions.selected!=null&&(typeof queryRegions.selected=="function"?queryRegions.selected.call($item):queryRegions.selected)&&__.push("active"),__.push('">        <input type="checkbox" '),typeof queryRegions.selected!="undefined"&&queryRegions.selected!=null&&(typeof queryRegions.selected=="function"?queryRegions.selected.call($item):queryRegions.selected)&&__.push(' checked="checked" '),__.push(' name="queryRegions" id="queryRegions" data-value="queryRegions" value="queryRegions" class="facet-multiple-value" data-facet="queryRegions" /><span class="checkmark"><\/span>        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-facets-pane.htm","Show results only for"))),__.push(" "),typeof queryRegions.query!="undefined"&&queryRegions.query!=null&&__.push($.encode(typeof queryRegions.query=="function"?queryRegions.query.call($item):queryRegions.query)),__.push("       <\/label>      <\/li>     <\/ul>    <\/div>   ")),__.push("   "),typeof filters!="undefined"&&filters!=null&&$.each(typeof filters=="function"?filters.call($item):filters,function(n,filter){with(this)__.push('    <div class="filter-item">     <h4 class="filter-title">'),typeof filter.name!="undefined"&&filter.name!=null&&__.push($.encode(typeof filter.name=="function"?filter.name.call($item):filter.name)),__.push('<span class="filter-title-delimiter">:<\/span><\/h4>     <ul class="'),typeof filter.expanded!="undefined"&&filter.expanded!=null&&(typeof filter.expanded=="function"?filter.expanded.call($item):filter.expanded)&&__.push("expanded"),__.push('">       '),typeof values!="undefined"&&values!=null&&$.each(typeof values=="function"?values.call($item):values,function(j,value){with(this)__.push('        <li class="'),typeof(j>=7)!="undefined"&&j>=7!=null&&(typeof(j>=7)=="function"?(j>=7).call($item):j>=7)&&__.push("more"),__.push('" data-level="'),typeof value.level!="undefined"&&value.level!=null&&__.push($.encode(typeof value.level=="function"?value.level.call($item):value.level)),__.push('">         <label '),typeof value.title!="undefined"&&value.title!=null&&(typeof value.title=="function"?value.title.call($item):value.title)&&(__.push(' title="'),typeof value.title!="undefined"&&value.title!=null&&__.push($.encode(typeof value.title=="function"?value.title.call($item):value.title)),__.push('" ')),__.push(' class="'),typeof value.header!="undefined"&&value.header!=null&&(typeof value.header=="function"?value.header.call($item):value.header)&&__.push("header "),__.push(""),typeof value.selected!="undefined"&&value.selected!=null&&(typeof value.selected=="function"?value.selected.call($item):value.selected)&&__.push("active "),__.push(""),typeof value.disabled!="undefined"&&value.disabled!=null&&(typeof value.disabled=="function"?value.disabled.call($item):value.disabled)&&__.push("disabled"),__.push('">          '),typeof!value.header!="undefined"&&!value.header!=null&&(typeof!value.header=="function"?(!value.header).call($item):!value.header)&&(__.push('           <input type="checkbox" '),typeof value.selected!="undefined"&&value.selected!=null&&(typeof value.selected=="function"?value.selected.call($item):value.selected)&&__.push('checked="checked"'),__.push(' name="'),typeof value.id!="undefined"&&value.id!=null&&__.push($.encode(typeof value.id=="function"?value.id.call($item):value.id)),__.push('" data-value="'),typeof escape!="undefined"&&escape!=null&&__.push($.encode(escape.call($item,value.id))),__.push('" value="'),typeof value.name!="undefined"&&value.name!=null&&__.push($.encode(typeof value.name=="function"?value.name.call($item):value.name)),__.push('" class="facet-multiple-value" data-facet="'),typeof filter.id!="undefined"&&filter.id!=null&&__.push($.encode(typeof filter.id=="function"?filter.id.call($item):filter.id)),__.push('" />          ')),__.push('          <span class="checkmark"><\/span><span class="label-text">'),typeof(value.title||value.name)!="undefined"&&(value.title||value.name)!=null&&__.push($.encode(typeof(value.title||value.name)=="function"?(value.title||value.name).call($item):value.title||value.name)),__.push("<span>("),typeof value.entries!="undefined"&&value.entries!=null&&__.push($.encode(typeof value.entries=="function"?value.entries.call($item):value.entries)),__.push(")<\/span><\/span>         <\/label>        <\/li>       ")}),__.push("      "),typeof(values.length>8)!="undefined"&&values.length>8!=null&&(typeof(values.length>8)=="function"?(values.length>8).call($item):values.length>8)&&(__.push("       "),typeof filter.expanded!="undefined"&&filter.expanded!=null&&(typeof filter.expanded=="function"?filter.expanded.call($item):filter.expanded)?(__.push('        <li><input type="button" class="show-more less" value="- '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-facets-pane.htm","See less"))),__.push('" data-alt-value="+ '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-facets-pane.htm","See more"))),__.push('" data-facet="'),typeof filter.id!="undefined"&&filter.id!=null&&__.push($.encode(typeof filter.id=="function"?filter.id.call($item):filter.id)),__.push('" /><\/li>       ')):!0&&(__.push('        <li><input type="button" class="show-more" value="+ '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-facets-pane.htm","See more"))),__.push('" data-alt-value="- '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-facets-pane.htm","See less"))),__.push('" data-facet="'),typeof filter.id!="undefined"&&filter.id!=null&&__.push($.encode(typeof filter.id=="function"?filter.id.call($item):filter.id)),__.push('" /><\/li>       ')),__.push("      ")),__.push("     <\/ul>    <\/div>   ")}),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-named-entity-embed-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="named-entity-embed-dialog" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-named-entity-embed-dialog.htm","Embed"))),__.push('" class="embed-dialog">   <div>    <label class="embed-label" for="embed-markup">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-named-entity-embed-dialog.htm","Link to this page"))),__.push('<\/label>    <br />    <textarea id="embed-markup" readonly="readonly" rows="3" cols="45">'),typeof embedHtml!="undefined"&&embedHtml!=null&&__.push(typeof embedHtml=="function"?embedHtml.call($item):embedHtml),__.push("<\/textarea>   <\/div>  <\/div>");return __});jQuery.template("Tmpl-search-named-entity",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('"   '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push(' data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('" ')),__.push('>   <div id="named-entity-result-item">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-search-no-results",function(n,t){var $=n,__=[],i=t.data;with(i)__.push("<p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-no-results.htm","No results found for the filters applied. Please change your filter."))),__.push("<\/p>");return __});jQuery.template("Tmpl-search-pager",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="search-pager">   <input id="resultsCount" type="hidden" value=\''),typeof totalItems!="undefined"&&totalItems!=null&&__.push($.encode(typeof totalItems=="function"?totalItems.call($item):totalItems)),__.push("'/>   "),typeof(totalPages>1)!="undefined"&&totalPages>1!=null&&(typeof(totalPages>1)=="function"?(totalPages>1).call($item):totalPages>1)&&(__.push('    <div id="pager">     '),typeof(firstPage!=currentPage)!="undefined"&&firstPage!=currentPage!=null&&(typeof(firstPage!=currentPage)=="function"?(firstPage!=currentPage).call($item):firstPage!=currentPage)&&(__.push('      <a data-index="'),typeof(currentPage-1)!="undefined"&&currentPage-1!=null&&__.push($.encode(typeof(currentPage-1)=="function"?(currentPage-1).call($item):currentPage-1)),__.push('"><b>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-pager.htm","Previous"))),__.push("<\/b><\/a>     ")),__.push("     "),typeof(firstPage!=1)!="undefined"&&firstPage!=1!=null&&(typeof(firstPage!=1)=="function"?(firstPage!=1).call($item):firstPage!=1)&&__.push('      <a data-index="1">1<\/a><span>...<\/span>     '),__.push("     "),typeof pages!="undefined"&&pages!=null&&$.each(typeof pages=="function"?pages.call($item):pages,function(n,page){with(this)__.push("     <!--@for (var i = Model.FirstPage; i <= Model.LastPage; i++)-->      "),typeof(page==currentPage)!="undefined"&&page==currentPage!=null&&(typeof(page==currentPage)=="function"?(page==currentPage).call($item):page==currentPage)?(__.push('       <span class="current-page">'),typeof page!="undefined"&&page!=null&&__.push($.encode(typeof page=="function"?page.call($item):page)),__.push("<\/span>      ")):!0&&(__.push('       <a data-index="'),typeof page!="undefined"&&page!=null&&__.push($.encode(typeof page=="function"?page.call($item):page)),__.push('">'),typeof page!="undefined"&&page!=null&&__.push($.encode(typeof page=="function"?page.call($item):page)),__.push("<\/a>      ")),__.push("     ")}),__.push("     "),typeof(lastPage!=totalPages)!="undefined"&&lastPage!=totalPages!=null&&(typeof(lastPage!=totalPages)=="function"?(lastPage!=totalPages).call($item):lastPage!=totalPages)&&(__.push('      <span>...<\/span><a data-index="'),typeof totalPages!="undefined"&&totalPages!=null&&__.push($.encode(typeof totalPages=="function"?totalPages.call($item):totalPages)),__.push('">'),typeof totalPages!="undefined"&&totalPages!=null&&__.push($.encode(typeof totalPages=="function"?totalPages.call($item):totalPages)),__.push("<\/a>     ")),__.push("     "),typeof(totalPages!=currentPage)!="undefined"&&totalPages!=currentPage!=null&&(typeof(totalPages!=currentPage)=="function"?(totalPages!=currentPage).call($item):totalPages!=currentPage)&&(__.push('      <a data-index="'),typeof(currentPage+1)!="undefined"&&currentPage+1!=null&&__.push($.encode(typeof(currentPage+1)=="function"?(currentPage+1).call($item):currentPage+1)),__.push('"><b>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-pager.htm","Next"))),__.push("<\/b><\/a>     ")),__.push("    <\/div>   ")),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-panel",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="search-panel">   <div class=\'list-search-result-type\'>    <div class=\'search-result-type-item\'>     <a class=\'search-result-type\' id="search-everything" data-value="" href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-panel.htm","Everything"))),__.push('<\/a>    <\/div>    <div class=\'search-result-type-item\'>     <a class=\'search-result-type\' id="search-datasets" data-value="dataset" href="#"><span class="search-dataset-in-ts-data-img">     <\/span><span class="search-filter-name">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-panel.htm","Datasets"))),__.push('<\/span><\/a>    <\/div>    <div class=\'search-result-type-item\'>     <a class=\'search-result-type\' id="search-pages" data-value="page" href="#"><span class="search-dataset-in-ts-page-img">     <\/span><span class="search-filter-name">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-panel.htm","Pages"))),__.push('<\/span><\/a>    <\/div>    <div class=\'search-result-type-item\'>     <a class=\'search-result-type\' data-value="presentation" id="search-presentations" href="#"><span class="search-dataset-in-ts-presentation-img">     <\/span><span class="search-filter-name">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-panel.htm","Presentations"))),__.push('<\/span><\/a>    <\/div>    <div class=\'search-result-type-item\' style="margin-bottom:5px">     <a class=\'search-result-type\' data-value="timeseries" id="search-timeseries" href="#"><span class="search-filter-name">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-panel.htm","Data"))),__.push('<\/span><\/a>    <\/div>    <ul class="search-datasets-in-ts">    <\/ul>   <\/div>   <div class="search-filter-separator opened">    <span class="collapse-icon"><\/span>   <\/div>   <div class="clear">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-search-query-correct",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="search-query-correct">   <span>'),typeof forecast!="undefined"&&forecast!=null&&(typeof forecast=="function"?forecast.call($item):forecast)?(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-query-correct.htm","Results with forecast for"))),__.push("")):!0&&(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-query-correct.htm","Results for"))),__.push("")),__.push(" “<strong>"),typeof correctedQueryFormatted!="undefined"&&correctedQueryFormatted!=null&&(typeof correctedQueryFormatted=="function"?correctedQueryFormatted.call($item):correctedQueryFormatted)?(__.push(""),typeof correctedQueryFormatted!="undefined"&&correctedQueryFormatted!=null&&__.push(typeof correctedQueryFormatted=="function"?correctedQueryFormatted.call($item):correctedQueryFormatted),__.push("")):!0&&(__.push(""),typeof correctedQuery!="undefined"&&correctedQuery!=null&&__.push($.encode(typeof correctedQuery=="function"?correctedQuery.call($item):correctedQuery)),__.push("")),__.push("<\/strong>”<\/span>   <span> — "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-query-correct.htm","search instead for"))),__.push(' <\/span><a id="search-initial-query-link" href="#">'),typeof initialQuery!="undefined"&&initialQuery!=null&&__.push($.encode(typeof initialQuery=="function"?initialQuery.call($item):initialQuery)),__.push("<\/a><span>.<\/span>  <\/div>");return __});jQuery.template("Tmpl-search-relationship",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<tr>   <td class="search-table-top-border"><input  type="checkbox" name="chk"/><\/td>   <td style ="width:185px"class="search-table-top-border" id="keywordOne">'),typeof keyOne!="undefined"&&keyOne!=null&&__.push($.encode(typeof keyOne=="function"?keyOne.call($item):keyOne)),__.push('<\/td>   <td style ="width:200px" class="search-table-top-border" id="keywordTwo">'),typeof keyTwo!="undefined"&&keyTwo!=null&&__.push($.encode(typeof keyTwo=="function"?keyTwo.call($item):keyTwo)),__.push('<\/td>   <td style ="width:250px" class="search-table-top-border" id="relationship">'),typeof rel!="undefined"&&rel!=null&&__.push($.encode(typeof rel=="function"?rel.call($item):rel)),__.push("<\/td>  <\/tr>");return __});jQuery.template("Tmpl-search-result-components",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("  "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push('   <div class="search-result-components">    <br />    '),typeof extraParameters.extra.searchEngine!="undefined"&&extraParameters.extra.searchEngine!=null&&(typeof extraParameters.extra.searchEngine=="function"?extraParameters.extra.searchEngine.call($item):extraParameters.extra.searchEngine)&&(__.push("    <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","Engine:"))),__.push("&nbsp;"),typeof extraParameters.extra.searchEngine!="undefined"&&extraParameters.extra.searchEngine!=null&&__.push($.encode(typeof extraParameters.extra.searchEngine=="function"?extraParameters.extra.searchEngine.call($item):extraParameters.extra.searchEngine)),__.push("<\/span>    ")),__.push("    "),typeof extraParameters.extra.modelFlavor!="undefined"&&extraParameters.extra.modelFlavor!=null&&(typeof extraParameters.extra.modelFlavor=="function"?extraParameters.extra.modelFlavor.call($item):extraParameters.extra.modelFlavor)&&(__.push("    <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","Flavor:"))),__.push("&nbsp;"),typeof extraParameters.extra.modelFlavor!="undefined"&&extraParameters.extra.modelFlavor!=null&&__.push($.encode(typeof extraParameters.extra.modelFlavor=="function"?extraParameters.extra.modelFlavor.call($item):extraParameters.extra.modelFlavor)),__.push("<\/span>    ")),__.push("    "),typeof extraParameters.extra.rerankingScore!="undefined"&&extraParameters.extra.rerankingScore!=null&&(typeof extraParameters.extra.rerankingScore=="function"?extraParameters.extra.rerankingScore.call($item):extraParameters.extra.rerankingScore)&&(__.push("    <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","Reranking score:"))),__.push("&nbsp;"),typeof extraParameters.extra.rerankingScore!="undefined"&&extraParameters.extra.rerankingScore!=null&&__.push($.encode(typeof extraParameters.extra.rerankingScore=="function"?extraParameters.extra.rerankingScore.call($item):extraParameters.extra.rerankingScore)),__.push("<\/span>    ")),__.push("    <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","Relevance:"))),__.push("&nbsp;"),typeof extraParameters.extra.weight!="undefined"&&extraParameters.extra.weight!=null&&__.push($.encode(typeof extraParameters.extra.weight=="function"?extraParameters.extra.weight.call($item):extraParameters.extra.weight)),__.push("<\/span>    "),typeof extraParameters.extra.weightRatio!="undefined"&&extraParameters.extra.weightRatio!=null&&(typeof extraParameters.extra.weightRatio=="function"?extraParameters.extra.weightRatio.call($item):extraParameters.extra.weightRatio)&&(__.push("    <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","Relevance ratio:"))),__.push("&nbsp;"),typeof extraParameters.extra.weightRatio!="undefined"&&extraParameters.extra.weightRatio!=null&&__.push($.encode(typeof extraParameters.extra.weightRatio=="function"?extraParameters.extra.weightRatio.call($item):extraParameters.extra.weightRatio)),__.push("<\/span>    ")),__.push("    <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","Request coverage:"))),__.push("&nbsp;"),typeof extraParameters.extra.matchingWordRatio!="undefined"&&extraParameters.extra.matchingWordRatio!=null&&__.push($.encode(typeof extraParameters.extra.matchingWordRatio=="function"?extraParameters.extra.matchingWordRatio.call($item):extraParameters.extra.matchingWordRatio)),__.push("<\/span>    "),typeof extraParameters.extra.components!="undefined"&&extraParameters.extra.components!=null&&(typeof extraParameters.extra.components=="function"?extraParameters.extra.components.call($item):extraParameters.extra.components)&&(__.push("     "),typeof extraParameters.extra.components!="undefined"&&extraParameters.extra.components!=null&&$.each(typeof extraParameters.extra.components=="function"?extraParameters.extra.components.call($item):extraParameters.extra.components,function(i,component){with(this)__.push("    <span>"),typeof(i>0)!="undefined"&&i>0!=null&&(typeof(i>0)=="function"?(i>0).call($item):i>0)&&__.push(", "),__.push(""),typeof component.termText!="undefined"&&component.termText!=null&&__.push($.encode(typeof component.termText=="function"?component.termText.call($item):component.termText)),__.push(": "),typeof component.weightText!="undefined"&&component.weightText!=null&&__.push($.encode(typeof component.weightText=="function"?component.weightText.call($item):component.weightText)),__.push("<\/span>     ")}),__.push("     <br />    ")),__.push("      <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","Result coverage:"))),__.push("&nbsp;"),typeof extraParameters.extra.coveredPart!="undefined"&&extraParameters.extra.coveredPart!=null&&__.push($.encode(typeof extraParameters.extra.coveredPart=="function"?extraParameters.extra.coveredPart.call($item):extraParameters.extra.coveredPart)),__.push("<\/span>    <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","Resource quality:"))),__.push("&nbsp;"),typeof extraParameters.extra.resourceQuality!="undefined"&&extraParameters.extra.resourceQuality!=null&&__.push($.encode(typeof extraParameters.extra.resourceQuality=="function"?extraParameters.extra.resourceQuality.call($item):extraParameters.extra.resourceQuality)),__.push("&nbsp;    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","(views:"))),__.push("&nbsp;"),typeof extraParameters.extra.resourceViewQuality!="undefined"&&extraParameters.extra.resourceViewQuality!=null&&__.push($.encode(typeof extraParameters.extra.resourceViewQuality=="function"?extraParameters.extra.resourceViewQuality.call($item):extraParameters.extra.resourceViewQuality)),__.push("&#044;&nbsp;"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","updated:"))),__.push("&nbsp;"),typeof extraParameters.extra.resourceUpdateQuality!="undefined"&&extraParameters.extra.resourceUpdateQuality!=null&&__.push($.encode(typeof extraParameters.extra.resourceUpdateQuality=="function"?extraParameters.extra.resourceUpdateQuality.call($item):extraParameters.extra.resourceUpdateQuality)),__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm",")"))),__.push("<\/span>    <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-components.htm","Result quality:"))),__.push("&nbsp;"),typeof extraParameters.extra.resultQuality!="undefined"&&extraParameters.extra.resultQuality!=null&&__.push($.encode(typeof extraParameters.extra.resultQuality=="function"?extraParameters.extra.resultQuality.call($item):extraParameters.extra.resultQuality)),__.push("<\/span>    "),typeof extraParameters.extra.wordUsage!="undefined"&&extraParameters.extra.wordUsage!=null&&(typeof extraParameters.extra.wordUsage=="function"?extraParameters.extra.wordUsage.call($item):extraParameters.extra.wordUsage)&&(__.push("     "),typeof extraParameters.extra.wordUsage!="undefined"&&extraParameters.extra.wordUsage!=null&&$.each(typeof extraParameters.extra.wordUsage=="function"?extraParameters.extra.wordUsage.call($item):extraParameters.extra.wordUsage,function(n,word){with(this)__.push("      <span>&quot;"),typeof word.text!="undefined"&&word.text!=null&&__.push($.encode(typeof word.text=="function"?word.text.call($item):word.text)),__.push("&quot;: count:&nbsp;"),typeof word.count!="undefined"&&word.count!=null&&__.push($.encode(typeof word.count=="function"?word.count.call($item):word.count)),__.push(" idf:&nbsp;"),typeof word.idf!="undefined"&&word.idf!=null&&__.push($.encode(typeof word.idf=="function"?word.idf.call($item):word.idf)),__.push(" weight:&nbsp;"),typeof word.weight!="undefined"&&word.weight!=null&&__.push($.encode(typeof word.weight=="function"?word.weight.call($item):word.weight)),__.push("<\/span>     ")}),__.push("     <br />    ")),__.push("   <\/div>  ")),__.push("  ")),__.push("");return __});jQuery.template("Tmpl-search-tag",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="tag-result-item">   <a target="_blank" class="tag-result-title" href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" data-id="'),typeof topResources[0].id!="undefined"&&topResources[0].id!=null&&__.push($.encode(typeof topResources[0].id=="function"?topResources[0].id.call($item):topResources[0].id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('" data-history-key="'),typeof historyKey!="undefined"&&historyKey!=null&&__.push($.encode(typeof historyKey=="function"?historyKey.call($item):historyKey)),__.push('"><span>'),typeof tag!="undefined"&&tag!=null&&__.push($.encode(typeof tag=="function"?tag.call($item):tag)),__.push('<\/span><\/a><br />   <div class="grid-view">    <ul>    '),typeof topResources!="undefined"&&topResources!=null&&$.each(typeof topResources=="function"?topResources.call($item):topResources,function(i,resource){with(this)__.push("     <li "),typeof(i==0)!="undefined"&&i==0!=null&&(typeof(i==0)=="function"?(i==0).call($item):i==0)&&__.push('class="first"'),__.push('>     <a target="_blank" href="'),typeof resource.resourceUrl!="undefined"&&resource.resourceUrl!=null&&__.push($.encode(typeof resource.resourceUrl=="function"?resource.resourceUrl.call($item):resource.resourceUrl)),__.push('" class="'),typeof resource.type.toLowerCase!="undefined"&&resource.type.toLowerCase!=null&&__.push($.encode(resource.type.toLowerCase())),__.push(' tag-browse" title="'),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push('" data-id="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('" data-history-key="'),typeof historyKey!="undefined"&&historyKey!=null&&__.push($.encode(typeof historyKey=="function"?historyKey.call($item):historyKey)),__.push('">      <div style="background: url('),typeof resource.thumbnailUrl!="undefined"&&resource.thumbnailUrl!=null&&__.push($.encode(typeof resource.thumbnailUrl=="function"?resource.thumbnailUrl.call($item):resource.thumbnailUrl)),__.push(') no-repeat center"><\/div>     <\/a>     <span title="'),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push('"><a target="_blank" href="'),typeof resource.resourceUrl!="undefined"&&resource.resourceUrl!=null&&__.push($.encode(typeof resource.resourceUrl=="function"?resource.resourceUrl.call($item):resource.resourceUrl)),__.push('" data-id="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('" data-history-key="'),typeof historyKey!="undefined"&&historyKey!=null&&__.push($.encode(typeof historyKey=="function"?historyKey.call($item):historyKey)),__.push('">'),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push("<\/a><\/span>     <\/li>    ")}),__.push("    <\/ul>   <\/div>   <div>   "),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("    "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("<br />")),__.push("    "),typeof extraParameters.corpus!="undefined"&&extraParameters.corpus!=null&&(typeof extraParameters.corpus=="function"?extraParameters.corpus.call($item):extraParameters.corpus)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-voting",null))),__.push("")),__.push("   ")),__.push("   <\/div>  <\/div>");return __});jQuery.template("Tmpl-search-timeseries-one",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item one-timeseries-result one" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('">   '),!0&&(__=__.concat($item.nest("Tmpl-search-timeseries",null))),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-timeseries",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-timeseries" data-type="OneResult" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('">   '),typeof correlation!="undefined"&&correlation!=null&&(typeof correlation=="function"?correlation.call($item):correlation)&&(__.push('    <span class="correlation-box">r = '),typeof correlation!="undefined"&&correlation!=null&&__.push($.encode(typeof correlation=="function"?correlation.call($item):correlation)),__.push(", pc = "),typeof proCyclicality!="undefined"&&proCyclicality!=null&&__.push($.encode(typeof proCyclicality=="function"?proCyclicality.call($item):proCyclicality)),__.push(", lag = "),typeof lag!="undefined"&&lag!=null&&__.push($.encode(typeof lag=="function"?lag.call($item):lag)),__.push("<\/span>   ")),__.push('   <a class="search-one-result-title result-url" data-type="OneResult" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('" data-id="'),typeof dataset.id!="undefined"&&dataset.id!=null&&__.push($.encode(typeof dataset.id=="function"?dataset.id.call($item):dataset.id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('" data-ts="'),typeof timeSeriesKey!="undefined"&&timeSeriesKey!=null&&__.push($.encode(typeof timeSeriesKey=="function"?timeSeriesKey.call($item):timeSeriesKey)),__.push('" href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" target="_blank">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/a>   "),typeof unit!="undefined"&&unit!=null&&(typeof unit=="function"?unit.call($item):unit)&&(__.push('    <br /><span class="search-metadata-item unit">('),typeof unit!="undefined"&&unit!=null&&__.push($.encode(typeof unit=="function"?unit.call($item):unit)),__.push(")<\/span>   ")),__.push("   "),!0&&(__=__.concat($item.nest("Tmpl-search-yodatai-description",null))),__.push('   <input id="data-desc" type="hidden" value="'),typeof dataDescriptor!="undefined"&&dataDescriptor!=null&&__.push($.encode(typeof dataDescriptor=="function"?dataDescriptor.call($item):dataDescriptor)),__.push('" />       <div class="search-result-preview">    <div class="search-result-preview-host gadget-container">    <\/div>   <\/div>  '),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("   "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("")),__.push("   "),typeof extraParameters.corpus!="undefined"&&extraParameters.corpus!=null&&(typeof extraParameters.corpus=="function"?extraParameters.corpus.call($item):extraParameters.corpus)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-voting",null))),__.push("")),__.push("  ")),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-source-result",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="instant-answer-source" class="search-result-item">   '),typeof sourceId!="undefined"&&sourceId!=null&&(typeof sourceId=="function"?sourceId.call($item):sourceId)&&(__.push('  <div class="icon" style="background: no-repeat url(\'//cdn.knoema.com/sources/normal/'),typeof sourceId.toLowerCase!="undefined"&&sourceId.toLowerCase!=null&&__.push($.encode(sourceId.toLowerCase())),__.push(".png'), no-repeat url('/Img/v2/atlas/default-datasource.png') 75px center\"><\/div>  ")),__.push('  <div class="info">   '),typeof sourceName!="undefined"&&sourceName!=null&&(typeof sourceName=="function"?sourceName.call($item):sourceName)&&(__.push('<h3><a href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" data-track="'),typeof sourceId!="undefined"&&sourceId!=null&&__.push($.encode(typeof sourceId=="function"?sourceId.call($item):sourceId)),__.push('">'),typeof sourceName!="undefined"&&sourceName!=null&&__.push($.encode(typeof sourceName=="function"?sourceName.call($item):sourceName)),__.push(" <\/a><\/h3> ")),__.push("   "),typeof sourceDescription!="undefined"&&sourceDescription!=null&&(typeof sourceDescription=="function"?sourceDescription.call($item):sourceDescription)&&(__.push(" <div>"),typeof sourceDescription!="undefined"&&sourceDescription!=null&&__.push(typeof sourceDescription=="function"?sourceDescription.call($item):sourceDescription),__.push(" <\/div>")),__.push('   <div class="buttons-container buttons-panel">    <a class="explore button kn-button common accent explore-data" href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" target="_blank" data-self-explore="1" data-track="'),typeof sourceId!="undefined"&&sourceId!=null&&__.push($.encode(typeof sourceId=="function"?sourceId.call($item):sourceId)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-source-result.htm","Explore data"))),__.push("<\/a>   <\/div>  <\/div> <\/div>");return __});jQuery.template("Tmpl-search-instant-dataset-result",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="instant-answer-dataset" class="search-result-item ungrouped-dataset '),typeof(dataset.isProtected||dataset.mainSearch)!="undefined"&&(dataset.isProtected||dataset.mainSearch)!=null&&(typeof(dataset.isProtected||dataset.mainSearch)=="function"?(dataset.isProtected||dataset.mainSearch).call($item):dataset.isProtected||dataset.mainSearch)&&__.push("protected-open"),__.push(" "),typeof dataset.mainSearch!="undefined"&&dataset.mainSearch!=null&&(typeof dataset.mainSearch=="function"?dataset.mainSearch.call($item):dataset.mainSearch)&&__.push("main-open"),__.push('" data-id="'),typeof dataset.id!="undefined"&&dataset.id!=null&&__.push($.encode(typeof dataset.id=="function"?dataset.id.call($item):dataset.id)),__.push('">  '),typeof(dataset&&(dataset.isProtected||dataset.mainSearch))!="undefined"&&(dataset&&(dataset.isProtected||dataset.mainSearch))!=null&&(typeof(dataset&&(dataset.isProtected||dataset.mainSearch))=="function"?(dataset&&(dataset.isProtected||dataset.mainSearch)).call($item):dataset&&(dataset.isProtected||dataset.mainSearch))?(__.push('  <span class="protected-open-tag '),typeof dataset.mainSearch!="undefined"&&dataset.mainSearch!=null&&(typeof dataset.mainSearch=="function"?dataset.mainSearch.call($item):dataset.mainSearch)&&__.push("main-open-tag"),__.push(' knoema-ico float" title=""><\/span>  ')):!0&&(__.push('  <span class="add-to-gadgetbin knoema-ico float" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-instant-dataset-result.htm","Bookmark"))),__.push('"><\/span>  ')),__.push('   <a target="_blank" class="formatted-title dataset-result-title" id="'),typeof dataset.id!="undefined"&&dataset.id!=null&&__.push($.encode(typeof dataset.id=="function"?dataset.id.call($item):dataset.id)),__.push('" href="'),typeof dataset.resourceUrl!="undefined"&&dataset.resourceUrl!=null&&__.push($.encode(typeof dataset.resourceUrl=="function"?dataset.resourceUrl.call($item):dataset.resourceUrl)),__.push('"     data-id="'),typeof dataset.id!="undefined"&&dataset.id!=null&&__.push($.encode(typeof dataset.id=="function"?dataset.id.call($item):dataset.id)),__.push('" data-rank="1"     '),typeof modelFlavor!="undefined"&&modelFlavor!=null&&(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)&&(__.push(' data-model="'),typeof modelFlavor!="undefined"&&modelFlavor!=null&&__.push($.encode(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)),__.push('"')),__.push(" "),typeof semantic!="undefined"&&semantic!=null&&(typeof semantic=="function"?semantic.call($item):semantic)&&__.push("data-semantic='true'"),__.push(">   <em>"),typeof dataset.title!="undefined"&&dataset.title!=null&&__.push($.encode(typeof dataset.title=="function"?dataset.title.call($item):dataset.title)),__.push('<\/em>  <\/a>   <div class="dataset-result-metadata">   <table class="search-metadata-item-gray">    <tbody>     <tr>      <td class="metadata-value">       <span class="search-metadata-item-gray">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-instant-dataset-result.htm","Published:"))),__.push('&nbsp;<\/span>       <span class="search-metadata-value-gray">'),typeof dataset.publicationDate!="undefined"&&dataset.publicationDate!=null&&__.push($.encode(typeof dataset.publicationDate=="function"?dataset.publicationDate.call($item):dataset.publicationDate)),__.push('<\/span>      <\/td>      <td class="metadata-value dataset-date-range">       <span class="search-metadata-item-gray">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-instant-dataset-result.htm","Date Range:"))),__.push('&nbsp;<\/span>       <span class="search-metadata-value-gray">'),typeof dateRangeStart!="undefined"&&dateRangeStart!=null&&__.push($.encode(typeof dateRangeStart=="function"?dateRangeStart.call($item):dateRangeStart)),__.push(" - "),typeof dateRangeEnd!="undefined"&&dateRangeEnd!=null&&__.push($.encode(typeof dateRangeEnd=="function"?dateRangeEnd.call($item):dateRangeEnd)),__.push('<\/span>      <\/td>      <td class="metadata-value-source">       <span class="search-metadata-item-gray">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-instant-dataset-result.htm","Source:"))),__.push('&nbsp;<\/span>       <span class="search-metadata-value-gray">       '),typeof dataset.sourceUrl!="undefined"&&dataset.sourceUrl!=null&&(typeof dataset.sourceUrl=="function"?dataset.sourceUrl.call($item):dataset.sourceUrl)?(__.push('        <a class="external-link" target="_blank" href="'),typeof(dataset.sourceUrl||"#")!="undefined"&&(dataset.sourceUrl||"#")!=null&&__.push($.encode(typeof(dataset.sourceUrl||"#")=="function"?(dataset.sourceUrl||"#").call($item):dataset.sourceUrl||"#")),__.push('">'),typeof dataset.source!="undefined"&&dataset.source!=null&&__.push($.encode(typeof dataset.source=="function"?dataset.source.call($item):dataset.source)),__.push("<\/a>       ")):!0&&(__.push('        <span class="external-link">'),typeof dataset.source!="undefined"&&dataset.source!=null&&__.push($.encode(typeof dataset.source=="function"?dataset.source.call($item):dataset.source)),__.push("<\/span>       ")),__.push("       <\/span>      <\/td>     <\/tr>    <\/tbody>   <\/table>    "),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription)&&(__.push('   <div class="dataset-result-description instant-description">    <span class="search-metadata-value black">     '),typeof resource.cutDescription!="undefined"&&resource.cutDescription!=null&&(typeof resource.cutDescription=="function"?resource.cutDescription.call($item):resource.cutDescription)?(__.push("     "),typeof resource.cutDescription!="undefined"&&resource.cutDescription!=null&&__.push($.encode(typeof resource.cutDescription=="function"?resource.cutDescription.call($item):resource.cutDescription)),__.push('<span data-description="'),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&__.push($.encode(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription)),__.push('" class="more-link">&nbsp;'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-instant-dataset-result.htm","More"))),__.push("<\/span>     ")):!0&&(__.push("     "),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&__.push($.encode(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription)),__.push("     ")),__.push("    <\/span>   <\/div>   ")),__.push("  <\/div> <\/div>");return __});jQuery.template("Tmpl-search-view-compact",function(n,$item){var i=n,__=[],t=$item.data;with(t)__.push('<div class="search-view-compact thumbnail">   '),!0&&(__=__.concat($item.nest("Tmpl-search-view-thumbnail",null))),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-view-thumbnail",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="normal-size" data-key="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-href="'),typeof resource.resourceUrl!="undefined"&&resource.resourceUrl!=null&&__.push($.encode(typeof resource.resourceUrl=="function"?resource.resourceUrl.call($item):resource.resourceUrl)),__.push('" data-hover-color="#3399CC">   <div style="position: absolute">      <div class="picture">     <a target="_blank" class="result-url '),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push('"        href="'),typeof resource.resourceUrl!="undefined"&&resource.resourceUrl!=null&&__.push($.encode(typeof resource.resourceUrl=="function"?resource.resourceUrl.call($item):resource.resourceUrl)),__.push('" data-id="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('"        '),typeof modelFlavor!="undefined"&&modelFlavor!=null&&(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)&&(__.push(' data-model="'),typeof modelFlavor!="undefined"&&modelFlavor!=null&&__.push($.encode(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)),__.push('"')),__.push(" "),typeof semantic!="undefined"&&semantic!=null&&(typeof semantic=="function"?semantic.call($item):semantic)&&__.push("data-semantic='true'"),__.push('>      <div style="background: url('),typeof resource.thumbnailUrl!="undefined"&&resource.thumbnailUrl!=null&&__.push($.encode(typeof resource.thumbnailUrl=="function"?resource.thumbnailUrl.call($item):resource.thumbnailUrl)),__.push(') no-repeat center"><\/div>     <\/a>    <\/div>      <div class="'),typeof resource.formattedTitle!="undefined"&&resource.formattedTitle!=null&&(typeof resource.formattedTitle=="function"?resource.formattedTitle.call($item):resource.formattedTitle)&&__.push("formatted-title "),__.push('title-background title">'),typeof resource.formattedTitle!="undefined"&&resource.formattedTitle!=null&&(typeof resource.formattedTitle=="function"?resource.formattedTitle.call($item):resource.formattedTitle)?(__.push(""),typeof resource.formattedTitle!="undefined"&&resource.formattedTitle!=null&&__.push(typeof resource.formattedTitle=="function"?resource.formattedTitle.call($item):resource.formattedTitle),__.push("")):!0&&(__.push(""),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push("")),__.push('<\/div>      <a target="_blank" rel="nofollow" class="resource-url result-url" href="'),typeof resource.resourceUrl!="undefined"&&resource.resourceUrl!=null&&__.push($.encode(typeof resource.resourceUrl=="function"?resource.resourceUrl.call($item):resource.resourceUrl)),__.push('"       data-id="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('"       '),typeof modelFlavor!="undefined"&&modelFlavor!=null&&(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)&&(__.push(' data-model="'),typeof modelFlavor!="undefined"&&modelFlavor!=null&&__.push($.encode(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)),__.push('"')),__.push(" "),typeof semantic!="undefined"&&semantic!=null&&(typeof semantic=="function"?semantic.call($item):semantic)&&__.push("data-semantic='true'"),__.push('>     <div class="details">          <div class="description">       '),typeof resource.description!="undefined"&&resource.description!=null&&(typeof resource.description=="function"?resource.description.call($item):resource.description)&&(__.push("        "),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&__.push(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription),__.push("       ")),__.push("      <\/div>     <\/div>    <\/a>    "),typeof(resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner))!="undefined"&&(resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner))!=null&&(typeof(resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner))=="function"?(resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner)).call($item):resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner))&&(__.push('     <a target="_blank" rel="nofollow" class="author" href="/user/'),typeof resource.ownerKey!="undefined"&&resource.ownerKey!=null&&__.push($.encode(typeof resource.ownerKey=="function"?resource.ownerKey.call($item):resource.ownerKey)),__.push('">      '),typeof resource.owner!="undefined"&&resource.owner!=null&&__.push($.encode(typeof resource.owner=="function"?resource.owner.call($item):resource.owner)),__.push("     <\/a>    ")),__.push("   <\/div>  <\/div>");return __});jQuery.template("Tmpl-resource-wide",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="resource-wide '),typeof style!="undefined"&&style!=null&&__.push($.encode(typeof style=="function"?style.call($item):style)),__.push('">  <div class="left-block thumbnail-block ">'),!0&&(__=__.concat($item.nest("Tmpl-search-view-thumbnail",null))),__.push('<\/div>   <div class="right-block">   <div class="details">     <span class="add-to-gadgetbin" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/resource-wide.htm","Bookmark"))),__.push('"><\/span>    <div class="res-title">     <a class="'),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push(" "),typeof resource.formattedTitle!="undefined"&&resource.formattedTitle!=null&&(typeof resource.formattedTitle=="function"?resource.formattedTitle.call($item):resource.formattedTitle)&&__.push("formatted-title "),__.push('result-url"        href="'),typeof resource.resourceUrl!="undefined"&&resource.resourceUrl!=null&&__.push($.encode(typeof resource.resourceUrl=="function"?resource.resourceUrl.call($item):resource.resourceUrl)),__.push('" target="_blank" data-id="'),typeof resource.id!="undefined"&&resource.id!=null&&__.push($.encode(typeof resource.id=="function"?resource.id.call($item):resource.id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('"         '),typeof modelFlavor!="undefined"&&modelFlavor!=null&&(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)&&(__.push(' data-model="'),typeof modelFlavor!="undefined"&&modelFlavor!=null&&__.push($.encode(typeof modelFlavor=="function"?modelFlavor.call($item):modelFlavor)),__.push('"')),__.push(" "),typeof semantic!="undefined"&&semantic!=null&&(typeof semantic=="function"?semantic.call($item):semantic)&&__.push("data-semantic='true'"),__.push(">      "),typeof resource.formattedTitle!="undefined"&&resource.formattedTitle!=null&&(typeof resource.formattedTitle=="function"?resource.formattedTitle.call($item):resource.formattedTitle)?(__.push(""),typeof resource.formattedTitle!="undefined"&&resource.formattedTitle!=null&&__.push(typeof resource.formattedTitle=="function"?resource.formattedTitle.call($item):resource.formattedTitle),__.push("")):!0&&(__.push(""),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push("")),__.push('     <\/a>    <\/div>     <div class="description '),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("preloading"),__.push('">     <span class="'),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push('">      '),typeof resource.description!="undefined"&&resource.description!=null&&(typeof resource.description=="function"?resource.description.call($item):resource.description)&&(__.push("       "),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&__.push(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription),__.push("      ")),__.push("     <\/span>    <\/div>     "),typeof(resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner))!="undefined"&&(resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner))!=null&&(typeof(resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner))=="function"?(resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner)).call($item):resource.owner&&(displayKnoemaAuthor||!resource.isKnoemaOwner))&&(__.push('     <div>      <a class="author" href="/user/'),typeof resource.ownerKey!="undefined"&&resource.ownerKey!=null&&__.push($.encode(typeof resource.ownerKey=="function"?resource.ownerKey.call($item):resource.ownerKey)),__.push('" target="_blank">'),typeof resource.owner!="undefined"&&resource.owner!=null&&__.push($.encode(typeof resource.owner=="function"?resource.owner.call($item):resource.owner)),__.push("<\/a>     <\/div>    ")),__.push("   <\/div>  <\/div> <\/div>");return __});jQuery.template("Tmpl-search-view",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push(""),typeof(items.length==1)!="undefined"&&items.length==1!=null&&(typeof(items.length==1)=="function"?(items.length==1).call($item):items.length==1)&&(__.push("   "),typeof($data.searchResultId=items[0].searchResultId,"")!="undefined"&&($data.searchResultId=items[0].searchResultId,"")!=null&&__.push($.encode(typeof($data.searchResultId=items[0].searchResultId,"")=="function"?($data.searchResultId=items[0].searchResultId,"").call($item):($data.searchResultId=items[0].searchResultId,""))),__.push("  ")),__.push('  <div class="search-result-item" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('"   '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push('data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('"')),__.push('>   <div class="search-view thumbnails-row">    '),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(n,item){with(this)__.push("     "),typeof(item.style=="single")!="undefined"&&item.style=="single"!=null&&(typeof(item.style=="single")=="function"?(item.style=="single").call($item):item.style=="single")?(__.push("      "),typeof item!="undefined"&&item!=null&&(__=__.concat($item.nest("Tmpl-search-view-compact",item,null))),__.push("     ")):!0&&(__.push("      "),typeof item!="undefined"&&item!=null&&(__=__.concat($item.nest("Tmpl-resource-wide",item,null))),__.push("     ")),__.push("    ")}),__.push("   <\/div>  "),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("   "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("")),__.push("   "),typeof extraParameters.corpus!="undefined"&&extraParameters.corpus!=null&&(typeof extraParameters.corpus=="function"?extraParameters.corpus.call($item):extraParameters.corpus)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-voting",null))),__.push("")),__.push("  ")),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-keyword-result-info",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof isCaption!="undefined"&&isCaption!=null&&(typeof isCaption=="function"?isCaption.call($item):isCaption)&&(__.push('   <div class="dataset-result-keyword-search-info-caption">   '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-keyword-result-info.htm","Most popular datasets on"))),__.push("&nbsp;"),typeof keywordText!="undefined"&&keywordText!=null&&__.push($.encode(typeof keywordText=="function"?keywordText.call($item):keywordText)),__.push("  <\/div>  ")),__.push("  "),typeof isButton!="undefined"&&isButton!=null&&(typeof isButton=="function"?isButton.call($item):isButton)&&(__.push('   <div>    <a href="'),typeof moreDatasetsLink!="undefined"&&moreDatasetsLink!=null&&__.push($.encode(typeof moreDatasetsLink=="function"?moreDatasetsLink.call($item):moreDatasetsLink)),__.push('" target="_blank">     <span id="more-keyword-search-datasets">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-keyword-result-info.htm","More datasets on"))),__.push("&nbsp;"),typeof keywordText!="undefined"&&keywordText!=null&&__.push($.encode(typeof keywordText=="function"?keywordText.call($item):keywordText)),__.push("<\/span>    <\/a>   <\/div>  ")),__.push("");return __});jQuery.template("Tmpl-search-grouped-dataset-content",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof(items.length>0)!="undefined"&&items.length>0!=null&&(typeof(items.length>0)=="function"?(items.length>0).call($item):items.length>0)?(__.push('   <div class="search-result-item grouped-dataset-content group-show-more" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('"    '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push(' data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('"')),__.push('>   <div class="grouped-dataset">      '),!0&&(__=__.concat($item.nest("Tmpl-search-dataset",null))),__.push("    "),typeof dataset!="undefined"&&dataset!=null&&(typeof dataset=="function"?dataset.call($item):dataset)&&(__.push('    <div class="relevant-search-visualizations">     <span class="group-more-button group-show-more">      <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-grouped-dataset-content.htm","Display relevant visualizations"))),__.push('<\/span><i class="fa fa-chevron-down"><\/i>     <\/span>       <span class="group-more-button group-hide-more">      <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-grouped-dataset-content.htm","Hide relevant visualizations"))),__.push('<\/span><i class="fa fa-chevron-up"><\/i>     <\/span>    <\/div>    ')),__.push('   <\/div>     <div class="grouped-dataset-contents">    <br />    '),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(n,item){with(this)__.push("    "),typeof item!="undefined"&&item!=null&&(__=__.concat($item.nest("Tmpl-search-dataset-content",item,null))),__.push("    ")}),__.push("   <\/div>  <\/div>  ")):!0&&(__.push('   <div class="search-result-item ungrouped-dataset" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('">    '),!0&&(__=__.concat($item.nest("Tmpl-search-dataset",null))),__.push("   <\/div>  ")),__.push("");return __});jQuery.template("Tmpl-search-show-more-results-info",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-show-more-results-button '),typeof wide!="undefined"&&wide!=null&&(typeof wide=="function"?wide.call($item):wide)&&__.push("wide-more"),__.push('" data-type="'),typeof type!="undefined"&&type!=null&&__.push($.encode(typeof type=="function"?type.call($item):type)),__.push('" '),typeof isTeaser!="undefined"&&isTeaser!=null&&(typeof isTeaser=="function"?isTeaser.call($item):isTeaser)&&__.push('data-is-teaser="1"'),__.push('><span class="kn-button common accent">'),typeof!text!="undefined"&&!text!=null&&(typeof!text=="function"?(!text).call($item):!text)?(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-show-more-results-info.htm","Show more results"))),__.push("")):!0&&(__.push(""),typeof text!="undefined"&&text!=null&&__.push($.encode(typeof text=="function"?text.call($item):text)),__.push("")),__.push("<\/span><\/div>");return __});jQuery.template("Tmpl-search-concept-new",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item concept-result '),typeof(dataset.isProtected||dataset.mainSearch)!="undefined"&&(dataset.isProtected||dataset.mainSearch)!=null&&(typeof(dataset.isProtected||dataset.mainSearch)=="function"?(dataset.isProtected||dataset.mainSearch).call($item):dataset.isProtected||dataset.mainSearch)&&__.push("protected-open"),__.push(" "),typeof dataset.mainSearch!="undefined"&&dataset.mainSearch!=null&&(typeof dataset.mainSearch=="function"?dataset.mainSearch.call($item):dataset.mainSearch)&&__.push("main-open"),__.push('" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('"   '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push('data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('"')),__.push('>   <div class="widget">    <h1>'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<\/h1>   <\/div>   <div class="placeholder"><\/div>  <\/div>');return __});jQuery.template("Tmpl-search-concept-bind-new",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item concept-bind-result" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('"   '),typeof searchResultId!="undefined"&&searchResultId!=null&&(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)&&(__.push(' data-id="'),typeof searchResultId!="undefined"&&searchResultId!=null&&__.push($.encode(typeof searchResultId=="function"?searchResultId.call($item):searchResultId)),__.push('" ')),__.push(' data-type="ConceptBind">  <div class="placeholder"><\/div> <\/div>');return __});jQuery.template("Tmpl-search-concept-new-card",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="info-card short">   <div class="name" title="'),typeof Title!="undefined"&&Title!=null&&__.push($.encode(typeof Title=="function"?Title.call($item):Title)),__.push('">'),typeof Title!="undefined"&&Title!=null&&__.push($.encode(typeof Title=="function"?Title.call($item):Title)),__.push('<\/div>   <div class="value">'),typeof(Value.toFixed(2)*1).toLocaleString()!="undefined"&&(Value.toFixed(2)*1).toLocaleString()!=null&&__.push($.encode(typeof(Value.toFixed(2)*1).toLocaleString()=="function"?(Value.toFixed(2)*1).toLocaleString().call($item):(Value.toFixed(2)*1).toLocaleString())),__.push('<\/div>   <div class="unit" title="'),typeof Unit!="undefined"&&Unit!=null&&__.push($.encode(typeof Unit=="function"?Unit.call($item):Unit)),__.push('">'),typeof Unit!="undefined"&&Unit!=null&&__.push($.encode(typeof Unit=="function"?Unit.call($item):Unit)),__.push("<\/div>  <\/div>");return __});jQuery.template("Tmpl-search-concept-new-table",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<table class="rankings '),typeof hide!="undefined"&&hide!=null&&(typeof hide=="function"?hide.call($item):hide)&&__.push("hidden"),__.push(""),typeof premium!="undefined"&&premium!=null&&(typeof premium=="function"?premium.call($item):premium)&&__.push(" premium-open"),__.push('" cellspacing="0" cellpadding="0" data-idx="'),typeof idx!="undefined"&&idx!=null&&__.push($.encode(typeof idx=="function"?idx.call($item):idx)),__.push('">   '),typeof header!="undefined"&&header!=null&&(typeof header=="function"?header.call($item):header)&&(__.push("<caption>    <h4>"),typeof header!="undefined"&&header!=null&&__.push($.encode(typeof header=="function"?header.call($item):header)),__.push(":&nbsp;<\/h4>    "),typeof parents!="undefined"&&parents!=null&&$.each(typeof parents=="function"?parents.call($item):parents,function(n,parent){with(this)__.push('<span data-idx="'),typeof parent.detail!="undefined"&&parent.detail!=null&&__.push($.encode(typeof parent.detail=="function"?parent.detail.call($item):parent.detail)),__.push('">'),typeof parent.title!="undefined"&&parent.title!=null&&__.push($.encode(typeof parent.title=="function"?parent.title.call($item):parent.title)),__.push("<\/span><em><\/em>")}),__.push('<span data-idx="'),typeof idx!="undefined"&&idx!=null&&__.push($.encode(typeof idx=="function"?idx.call($item):idx)),__.push('">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/span>   <\/caption>")),__.push('   <tbody data-idx="'),typeof idx!="undefined"&&idx!=null&&__.push($.encode(typeof idx=="function"?idx.call($item):idx)),__.push('">    '),!0&&(__=__.concat($item.nest("Tmpl-search-concept-new-table-item",{rows:rows,region:region,datasetUrl:datasetUrl,source:source}))),__.push("   <\/tbody>  <\/table>");return __});jQuery.template("Tmpl-search-concept-new-table-item",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof rows!="undefined"&&rows!=null&&$.each(typeof rows=="function"?rows.call($item):rows,function(n,row){with(this)__.push('  <tr class="data-row" data-member-name="'),typeof row.MemberName!="undefined"&&row.MemberName!=null&&__.push($.encode(typeof row.MemberName=="function"?row.MemberName.call($item):row.MemberName)),__.push('" data-member-key="'),typeof row.MemberKey!="undefined"&&row.MemberKey!=null&&__.push($.encode(typeof row.MemberKey=="function"?row.MemberKey.call($item):row.MemberKey)),__.push('">   <td class="name'),typeof(region&&row.RegionId&&row.RegionId.length==2)!="undefined"&&(region&&row.RegionId&&row.RegionId.length==2)!=null&&(typeof(region&&row.RegionId&&row.RegionId.length==2)=="function"?(region&&row.RegionId&&row.RegionId.length==2).call($item):region&&row.RegionId&&row.RegionId.length==2)&&__.push(" region"),__.push('" '),typeof(region&&row.RegionId&&row.RegionId.length==2)!="undefined"&&(region&&row.RegionId&&row.RegionId.length==2)!=null&&(typeof(region&&row.RegionId&&row.RegionId.length==2)=="function"?(region&&row.RegionId&&row.RegionId.length==2).call($item):region&&row.RegionId&&row.RegionId.length==2)&&(__.push(' style="background-image: url(//cdn.knoema.com/flags/normal/'),typeof row.RegionId.toLowerCase!="undefined"&&row.RegionId.toLowerCase!=null&&__.push($.encode(row.RegionId.toLowerCase())),__.push('.png)" ')),__.push(">    "),typeof row.Url!="undefined"&&row.Url!=null&&(typeof row.Url=="function"?row.Url.call($item):row.Url)?(__.push('<a target="_blank" href="'),typeof row.Url!="undefined"&&row.Url!=null&&__.push($.encode(typeof row.Url=="function"?row.Url.call($item):row.Url)),__.push('">'),typeof row.Title!="undefined"&&row.Title!=null&&__.push($.encode(typeof row.Title=="function"?row.Title.call($item):row.Title)),__.push("<\/a>    ")):!0&&(__.push(""),typeof row.Title!="undefined"&&row.Title!=null&&__.push($.encode(typeof row.Title=="function"?row.Title.call($item):row.Title)),__.push("")),__.push('   <\/td>   <td class="value">    '),typeof row.formattedValue!="undefined"&&row.formattedValue!=null&&__.push($.encode(typeof row.formattedValue=="function"?row.formattedValue.call($item):row.formattedValue)),__.push(' <span class="unit">'),typeof row.Unit!="undefined"&&row.Unit!=null&&__.push($.encode(typeof row.Unit=="function"?row.Unit.call($item):row.Unit)),__.push("<\/span>    "),typeof row.formattedDate!="undefined"&&row.formattedDate!=null&&(typeof row.formattedDate=="function"?row.formattedDate.call($item):row.formattedDate)&&(__.push('    <span class="time">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/concept-new-table-item.htm","in {time}",{time:row.formattedDate}))),__.push("<\/span>    ")),__.push('   <\/td>   <td class="more">    '),typeof(row.source||source)!="undefined"&&(row.source||source)!=null&&__.push($.encode(typeof(row.source||source)=="function"?(row.source||source).call($item):row.source||source)),__.push("   <\/td>  <\/tr>  ")}),__.push("");return __});jQuery.template("Tmpl-search-concept-new-table-chart",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<tr class="chart">   <td colspan="3">    <div class="maximize-restriction-container">     <div class="gadget-container"><\/div>    <\/div>   <\/td>   <td class="gadgetbin-column"><span class="add-to-gadgetbin" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/concept-new-table-chart.htm","Bookmark"))),__.push('"><\/span><\/td>  <\/tr>');return __});jQuery.template("Tmpl-search-concept",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-result-item concept-result" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('">   <div class="dataset-content-top">    <div class="header">     <a class="search-result-title dataset-content-browse" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('" data-id="'),typeof dataset.id!="undefined"&&dataset.id!=null&&__.push($.encode(typeof dataset.id=="function"?dataset.id.call($item):dataset.id)),__.push('" data-rank="'),typeof rank!="undefined"&&rank!=null&&__.push($.encode(typeof rank=="function"?rank.call($item):rank)),__.push('" href="#">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<\/a>     <form class="dataset-content-browse" action="'),typeof dataset.resourceUrl!="undefined"&&dataset.resourceUrl!=null&&__.push($.encode(typeof dataset.resourceUrl=="function"?dataset.resourceUrl.call($item):dataset.resourceUrl)),__.push('" method="post" target="_blank">      <input class="dataDescriptor" name="dataDescriptor" type="hidden" value="'),typeof dataDescriptor!="undefined"&&dataDescriptor!=null&&__.push($.encode(typeof dataDescriptor=="function"?dataDescriptor.call($item):dataDescriptor)),__.push('" />      <input class="gadgetDetails" name="gadgetDetails" type="hidden" />     <\/form>     '),typeof unit!="undefined"&&unit!=null&&(typeof unit=="function"?unit.call($item):unit)&&(__.push('     <span class="search-metadata-item unit">('),typeof unit!="undefined"&&unit!=null&&__.push($.encode(typeof unit=="function"?unit.call($item):unit)),__.push(")<\/span>     ")),__.push('    <\/div>    <div class="filter">     <div class="search-frequency">     <\/div>     <div class="switch-gadget">      '),typeof(availableGadgetClasses.length>1)!="undefined"&&availableGadgetClasses.length>1!=null&&(typeof(availableGadgetClasses.length>1)=="function"?(availableGadgetClasses.length>1).call($item):availableGadgetClasses.length>1)&&(__.push("      "),typeof($.inArray("Knoema.Chart",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.Chart",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.Chart",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.Chart",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.Chart",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget line enable '),typeof(gadgetClass=="Knoema.Chart")!="undefined"&&gadgetClass=="Knoema.Chart"!=null&&(typeof(gadgetClass=="Knoema.Chart")=="function"?(gadgetClass=="Knoema.Chart").call($item):gadgetClass=="Knoema.Chart")&&__.push("active"),__.push('" data-gadget-type="line" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/concept.htm"," line chart"))),__.push('"><\/a>      ')),__.push("      "),typeof($.inArray("Knoema.InfoCard",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.InfoCard",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.InfoCard",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.InfoCard",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.InfoCard",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget infocard enable '),typeof(gadgetClass=="Knoema.InfoCard")!="undefined"&&gadgetClass=="Knoema.InfoCard"!=null&&(typeof(gadgetClass=="Knoema.InfoCard")=="function"?(gadgetClass=="Knoema.InfoCard").call($item):gadgetClass=="Knoema.InfoCard")&&__.push("active"),__.push('" data-gadget-type="infocard" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/concept.htm"," infocard"))),__.push('"><\/a>      ')),__.push("      "),typeof($.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.HtmlTable",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget table enable '),typeof(gadgetClass=="Knoema.HtmlTable")!="undefined"&&gadgetClass=="Knoema.HtmlTable"!=null&&(typeof(gadgetClass=="Knoema.HtmlTable")=="function"?(gadgetClass=="Knoema.HtmlTable").call($item):gadgetClass=="Knoema.HtmlTable")&&__.push("active"),__.push('" data-gadget-type="table" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/concept.htm"," table"))),__.push('"><\/a>      ')),__.push("      "),typeof($.inArray("Knoema.Ranking",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.Ranking",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.Ranking",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.Ranking",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.Ranking",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget ranking enable '),typeof(gadgetClass=="Knoema.Ranking")!="undefined"&&gadgetClass=="Knoema.Ranking"!=null&&(typeof(gadgetClass=="Knoema.Ranking")=="function"?(gadgetClass=="Knoema.Ranking").call($item):gadgetClass=="Knoema.Ranking")&&__.push("active"),__.push('" data-gadget-type="ranking" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/concept.htm"," ranking"))),__.push('"><\/a>      ')),__.push("      "),typeof($.inArray("Knoema.Map",availableGadgetClasses)>=0)!="undefined"&&$.inArray("Knoema.Map",availableGadgetClasses)>=0!=null&&(typeof($.inArray("Knoema.Map",availableGadgetClasses)>=0)=="function"?($.inArray("Knoema.Map",availableGadgetClasses)>=0).call($item):$.inArray("Knoema.Map",availableGadgetClasses)>=0)&&(__.push('      <a class="gadget map enable '),typeof(gadgetClass=="Knoema.Map")!="undefined"&&gadgetClass=="Knoema.Map"!=null&&(typeof(gadgetClass=="Knoema.Map")=="function"?(gadgetClass=="Knoema.Map").call($item):gadgetClass=="Knoema.Map")&&__.push("active"),__.push('" data-gadget-type="map" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/concept.htm"," map"))),__.push('"><\/a>      ')),__.push("      ")),__.push('     <\/div>    <\/div>   <\/div>   <div class="clear"><\/div>     <div class="concept-chart" data-type="Concept">    <input class="data-desc" type="hidden" value="'),typeof dataDescriptor!="undefined"&&dataDescriptor!=null&&__.push($.encode(typeof dataDescriptor=="function"?dataDescriptor.call($item):dataDescriptor)),__.push('" />    <input class="data-gadget" type="hidden" value="'),typeof gadgetClass!="undefined"&&gadgetClass!=null&&__.push($.encode(typeof gadgetClass=="function"?gadgetClass.call($item):gadgetClass)),__.push('" />    <div class="search-result-preview">     <div class="search-result-preview-host gadget-container">     <\/div>    <\/div>   <\/div>   '),typeof details!="undefined"&&details!=null&&$.each(typeof details=="function"?details.call($item):details,function(n,related){with(this)__.push("    "),!0&&{data:related,title:related.concept.title}!=null&&(__=__.concat($item.nest("Tmpl-search-concept-related-data",{data:related,title:related.concept.title},null))),__.push("   ")}),__.push("   "),typeof concepts!="undefined"&&concepts!=null&&$.each(typeof concepts=="function"?concepts.call($item):concepts,function(n,concept){with(this)__.push('    <a href="/sys/searchadmin/ConceptList?key='),typeof concept.key!="undefined"&&concept.key!=null&&__.push($.encode(typeof concept.key=="function"?concept.key.call($item):concept.key)),__.push('" target="_blank">'),typeof concept.title!="undefined"&&concept.title!=null&&__.push($.encode(typeof concept.title=="function"?concept.title.call($item):concept.title)),__.push("<\/a>   ")}),__.push("     "),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("    "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("")),__.push("    "),typeof extraParameters.corpus!="undefined"&&extraParameters.corpus!=null&&(typeof extraParameters.corpus=="function"?extraParameters.corpus.call($item):extraParameters.corpus)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-voting",null))),__.push("")),__.push("   ")),__.push("  <\/div>");return __});jQuery.template("Tmpl-search-concept-related-data",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="concept-chart category" data-type="Concept">   <span class="category-title">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<\/span>   <input class="data-desc" type="hidden" value="'),typeof data.dataDescriptor!="undefined"&&data.dataDescriptor!=null&&__.push($.encode(typeof data.dataDescriptor=="function"?data.dataDescriptor.call($item):data.dataDescriptor)),__.push('" />   <div class="search-result-preview">    <div class="search-result-preview-host gadget-container">    <\/div>   <\/div>  <\/div>');return __});jQuery.template("Tmpl-search-voting",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof(extraParameters!==null)!="undefined"&&extraParameters!==null!=null&&(typeof(extraParameters!==null)=="function"?(extraParameters!==null).call($item):extraParameters!==null)&&(__.push("  "),typeof(extraParameters.corpus!==null)!="undefined"&&extraParameters.corpus!==null!=null&&(typeof(extraParameters.corpus!==null)=="function"?(extraParameters.corpus!==null).call($item):extraParameters.corpus!==null)&&(__.push('  <div class="facts-voting">   <div class="sc-scorebar" data-value="'),typeof extraParameters.corpus.scoreRank!="undefined"&&extraParameters.corpus.scoreRank!=null&&__.push($.encode(typeof extraParameters.corpus.scoreRank=="function"?extraParameters.corpus.scoreRank.call($item):extraParameters.corpus.scoreRank)),__.push('"><\/div>   '),typeof(extraParameters.corpus.uniqueWords!==null)!="undefined"&&extraParameters.corpus.uniqueWords!==null!=null&&(typeof(extraParameters.corpus.uniqueWords!==null)=="function"?(extraParameters.corpus.uniqueWords!==null).call($item):extraParameters.corpus.uniqueWords!==null)&&(__.push('    <div class="stars stars-right">    <div data-value="0" data-unique-words="'),typeof extraParameters.corpus.uniqueWords!="undefined"&&extraParameters.corpus.uniqueWords!=null&&__.push($.encode(typeof extraParameters.corpus.uniqueWords=="function"?extraParameters.corpus.uniqueWords.call($item):extraParameters.corpus.uniqueWords)),__.push('">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/voting.htm","Useful?"))),__.push("<\/span>     <a href='#' title='-2'><\/a><a href='#' title='-1'><\/a><a href='#' title='0'><\/a><a href='#' title='1'><\/a><a href='#' title='2'><\/a><a href='#' title='3'><\/a><a href='#' title='4'><\/a><a href='#' title='5'><\/a>    <\/div>    <\/div>   ")),__.push("  <\/div>  ")),__.push(" ")),__.push("");return __});jQuery.template("Tmpl-search-yodatai-description",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="yodatai-description">   <p class="text generated-description"><\/p>   <span class="icon"><\/span>   <span class="promo">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/yodatai-description.htm","The description is composed by our digital data assistant."))),__.push("<\/span>  <\/div>");return __});jQuery.template("Tmpl-search-partner-new-table",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<table class="partner-data" cellspacing="0" cellpadding="0">  <tbody>   '),typeof rows!="undefined"&&rows!=null&&$.each(typeof rows=="function"?rows.call($item):rows,function(n,row){with(this)__.push('   <tr>    <td class="name'),typeof row.countryId!="undefined"&&row.countryId!=null&&(typeof row.countryId=="function"?row.countryId.call($item):row.countryId)&&__.push(" region"),__.push('" '),typeof row.countryId!="undefined"&&row.countryId!=null&&(typeof row.countryId=="function"?row.countryId.call($item):row.countryId)&&(__.push(' style="background-image: url(//cdn.knoema.com/flags/normal/'),typeof row.countyId.toLowerCase!="undefined"&&row.countyId.toLowerCase!=null&&__.push($.encode(row.countyId.toLowerCase())),__.push('.png)" ')),__.push(">"),typeof row.title!="undefined"&&row.title!=null&&__.push($.encode(typeof row.title=="function"?row.title.call($item):row.title)),__.push('<\/td>    <td class="value">'),typeof row.value!="undefined"&&row.value!=null&&__.push($.encode(typeof row.value=="function"?row.value.call($item):row.value)),__.push(" <span>"),typeof row.unit!="undefined"&&row.unit!=null&&__.push($.encode(typeof row.unit=="function"?row.unit.call($item):row.unit)),__.push("<\/span><\/td>   <\/tr>   ")}),__.push("  <\/tbody> <\/table>");return __});jQuery.template("Tmpl-search-instant-answer",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="autocomplete-instanswer">  <span class="instanswer-title">'),typeof localizedTitle!="undefined"&&localizedTitle!=null&&__.push($.encode(typeof localizedTitle=="function"?localizedTitle.call($item):localizedTitle)),__.push('<\/span>  <div class="instanswer-block">   <span class="instanswer-value block-item ">'),typeof lastValueFixed!="undefined"&&lastValueFixed!=null&&__.push($.encode(typeof lastValueFixed=="function"?lastValueFixed.call($item):lastValueFixed)),__.push('<\/span>   <div class="instanswer-units block-item">'),typeof localizedIndicatorUnit!="undefined"&&localizedIndicatorUnit!=null&&__.push($.encode(typeof localizedIndicatorUnit=="function"?localizedIndicatorUnit.call($item):localizedIndicatorUnit)),__.push("<br>"),typeof lastDateYear!="undefined"&&lastDateYear!=null&&__.push($.encode(typeof lastDateYear=="function"?lastDateYear.call($item):lastDateYear)),__.push('<\/div>   <div class="chart instanswer-chart block-item"><\/div>  <\/div>  <div class="instanswer-description">'),typeof autoDescription!="undefined"&&autoDescription!=null&&__.push($.encode(typeof autoDescription=="function"?autoDescription.call($item):autoDescription)),__.push("<\/div> <\/div>");return __});jQuery.template("Tmpl-search-instant-country",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push('<div id="autocomplete-instanswer">  <div class="chevron move-right"><\/div>  <div class="instanswer-top-block">   <img src="//cdn.knoema.com/flags/normal/'),typeof regionCountryId!="undefined"&&regionCountryId!=null&&__.push($.encode(typeof regionCountryId=="function"?regionCountryId.call($item):regionCountryId)),__.push('.png" class="instanswer-flag block-item">   <span class="block-item">'),typeof localizedRegionName!="undefined"&&localizedRegionName!=null&&__.push($.encode(typeof localizedRegionName=="function"?localizedRegionName.call($item):localizedRegionName)),__.push('<\/span>  <\/div>  <div class="instanswer-links-block">   '),typeof namesLinksMap!="undefined"&&namesLinksMap!=null&&$.each(typeof namesLinksMap=="function"?namesLinksMap.call($item):namesLinksMap,function($index,$value){with(this)__.push('   <a href="'),typeof $value.value!="undefined"&&$value.value!=null&&__.push($.encode(typeof $value.value=="function"?$value.value.call($item):$value.value)),__.push('"><span class="block-item instanswer-link" data-target="'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push('">'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push("<\/span><\/a>   "),typeof($index<$data.namesLinksMap.length-1)!="undefined"&&$index<$data.namesLinksMap.length-1!=null&&(typeof($index<$data.namesLinksMap.length-1)=="function"?($index<$data.namesLinksMap.length-1).call($item):$index<$data.namesLinksMap.length-1)&&__.push('   <span class="divider"><\/span>   '),__.push("   ")}),__.push("  <\/div> <\/div>");return __});jQuery.template("Tmpl-search-instant-ranking",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push('<div id="autocomplete-instanswer">  <span class="instanswer-top-block">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<\/span>  <div class="instanswer-description">'),typeof autoDescription!="undefined"&&autoDescription!=null&&__.push($.encode(typeof autoDescription=="function"?autoDescription.call($item):autoDescription)),__.push('<\/div>  <div class="instanswer-links-block">   '),typeof namesLinksMap!="undefined"&&namesLinksMap!=null&&$.each(typeof namesLinksMap=="function"?namesLinksMap.call($item):namesLinksMap,function($index,$value){with(this)__.push('   <a href="'),typeof $value.value!="undefined"&&$value.value!=null&&__.push($.encode(typeof $value.value=="function"?$value.value.call($item):$value.value)),__.push('"><span class="block-item instanswer-link" data-target="'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push('">'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push("<\/span><\/a>   "),typeof($index<$data.namesLinksMap.length-1)!="undefined"&&$index<$data.namesLinksMap.length-1!=null&&(typeof($index<$data.namesLinksMap.length-1)=="function"?($index<$data.namesLinksMap.length-1).call($item):$index<$data.namesLinksMap.length-1)&&__.push('   <span class="divider"><\/span>   '),__.push("   ")}),__.push("  <\/div> <\/div>");return __});jQuery.template("Tmpl-search-instant-datasource",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="autocomplete-instanswer">  <div class="chevron move-right"><\/div>  <div class="instanswer-top-block">   <div class="block-item instanswer-datasourse-image" style="background-image:url(\''),typeof imagePath!="undefined"&&imagePath!=null&&__.push($.encode(typeof imagePath=="function"?imagePath.call($item):imagePath)),__.push(".png'), url('/Img/v7/search/datasource-default.png')\"><\/div>   <span class=\"block-item source-name-source\">"),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('<\/span>  <\/div>   <div class="instanswer-description">'),typeof description!="undefined"&&description!=null&&__.push(typeof description=="function"?description.call($item):description),__.push("<\/div> <\/div>");return __});jQuery.template("Tmpl-search-instant-page",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="autocomplete-instanswer">  <h1 class="instanswer-title">'),typeof localizedTitle!="undefined"&&localizedTitle!=null&&__.push($.encode(typeof localizedTitle=="function"?localizedTitle.call($item):localizedTitle)),__.push('<\/h1>  <div class="instanswer-block">   <img class="block-item infographics-image" src="'),typeof imagePath!="undefined"&&imagePath!=null&&__.push($.encode(typeof imagePath=="function"?imagePath.call($item):imagePath)),__.push('">   <p class="block-item page-description">'),typeof rawTextDescription!="undefined"&&rawTextDescription!=null&&__.push($.encode(typeof rawTextDescription=="function"?rawTextDescription.call($item):rawTextDescription)),__.push("<\/p>  <\/div> <\/div>");return __});jQuery.template("Tmpl-search-instant-dataset",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="autocomplete-instanswer">  <div>   <span class="dataset-title">'),typeof datasetName!="undefined"&&datasetName!=null&&__.push($.encode(typeof datasetName=="function"?datasetName.call($item):datasetName)),__.push('<span class="source-name">by '),typeof source!="undefined"&&source!=null&&__.push($.encode(typeof source=="function"?source.call($item):source)),__.push('<\/span><\/span>  <\/div>  <div>   <span class="dataset-metadata block-item">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/instant-dataset.htm","Published"))),__.push(": "),typeof formattedPublicationDate!="undefined"&&formattedPublicationDate!=null&&__.push($.encode(typeof formattedPublicationDate=="function"?formattedPublicationDate.call($item):formattedPublicationDate)),__.push('<span class="dataset-metadata" style="padding-left: 30px">  '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/instant-dataset.htm","Date Range"))),__.push(": "),typeof parseInt!="undefined"&&parseInt!=null&&__.push($.encode(parseInt.call($item,timeseriesStartDate)===parseInt(timeseriesEndDate)?parseInt(timeseriesStartDate):parseInt(timeseriesStartDate)+"-"+parseInt(timeseriesEndDate))),__.push(' <\/span><\/span>  <\/div>  <div class="instanswer-description dataset-description">'),typeof description!="undefined"&&description!=null&&__.push($.encode(typeof description=="function"?description.call($item):description)),__.push("<\/div> <\/div>");return __});jQuery.template("Tmpl-search-instant-topic",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push('<div id="autocomplete-instanswer">  <div class="chevron move-right"><\/div>  <div class="instanswer-top-block">   '),typeof(typeof regionCountryId!="undefined"&&regionCountryId&&typeof selectedConcepts!="undefined"&&selectedConcepts.length===1)!="undefined"&&(typeof regionCountryId!="undefined"&&regionCountryId&&typeof selectedConcepts!="undefined"&&selectedConcepts.length===1)!=null&&(typeof(typeof regionCountryId!="undefined"&&regionCountryId&&typeof selectedConcepts!="undefined"&&selectedConcepts.length===1)=="function"?(typeof regionCountryId!="undefined"&&regionCountryId&&typeof selectedConcepts!="undefined"&&selectedConcepts.length===1).call($item):typeof regionCountryId!="undefined"&&regionCountryId&&typeof selectedConcepts!="undefined"&&selectedConcepts.length===1)&&(__.push('   <img src="//cdn.knoema.com/flags/normal/'),typeof regionCountryId.toLowerCase!="undefined"&&regionCountryId.toLowerCase!=null&&__.push($.encode(regionCountryId.toLowerCase())),__.push('.png" class="instanswer-flag block-item">   ')),__.push('   <span class="block-item">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<\/span>  <\/div>  <div class="instanswer-description">'),typeof autoDescription!="undefined"&&autoDescription!=null&&__.push($.encode(typeof autoDescription=="function"?autoDescription.call($item):autoDescription)),__.push('<\/div>  <div class="instanswer-links-block">   '),typeof namesLinksMap!="undefined"&&namesLinksMap!=null&&$.each(typeof namesLinksMap=="function"?namesLinksMap.call($item):namesLinksMap,function($index,$value){with(this)__.push('   <a href="'),typeof $value.value!="undefined"&&$value.value!=null&&__.push($.encode(typeof $value.value=="function"?$value.value.call($item):$value.value)),__.push('"><span class="block-item instanswer-link" data-target="'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push('">'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push("<\/span><\/a>   "),typeof($index<$data.namesLinksMap.length-1)!="undefined"&&$index<$data.namesLinksMap.length-1!=null&&(typeof($index<$data.namesLinksMap.length-1)=="function"?($index<$data.namesLinksMap.length-1).call($item):$index<$data.namesLinksMap.length-1)&&__.push('   <span class="divider"><\/span>   '),__.push("   ")}),__.push("  <\/div> <\/div>");return __});jQuery.template("Tmpl-search-training-panel",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-panel-header">  <div>   <label><input type="checkbox" id="only-search-training-marks" '),typeof onlyFromTraining!="undefined"&&onlyFromTraining!=null&&(typeof onlyFromTraining=="function"?onlyFromTraining.call($item):onlyFromTraining)&&__.push("checked"),__.push(" /> Display only marks made in training mode<\/label>  <\/div>  "),typeof(gain!==null&&!isNaN(gain))!="undefined"&&(gain!==null&&!isNaN(gain))!=null&&(typeof(gain!==null&&!isNaN(gain))=="function"?(gain!==null&&!isNaN(gain)).call($item):gain!==null&&!isNaN(gain))&&(__.push('  <span class="search-gain">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-training-panel.htm","Search gain"))),__.push(": "),typeof gain.toFixed!="undefined"&&gain.toFixed!=null&&__.push($.encode(gain.toFixed(2))),__.push("<\/span>  ")),__.push("  "),typeof recentMarksByUser!="undefined"&&recentMarksByUser!=null&&(typeof recentMarksByUser=="function"?recentMarksByUser.call($item):recentMarksByUser)&&(__.push('  <input type="button" id="reset-search-training" class="search-panel-button-link" value="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-training-panel.htm","Delete my recent marks"))),__.push(" ("),typeof recentMarksByUser!="undefined"&&recentMarksByUser!=null&&__.push($.encode(typeof recentMarksByUser=="function"?recentMarksByUser.call($item):recentMarksByUser)),__.push(')" />  ')),__.push(' <\/div> <div class="container">  '),typeof items.length!="undefined"&&items.length!=null&&(typeof items.length=="function"?items.length.call($item):items.length)?(__.push('  <table class="knoema-table">   <thead>    <th class="desc">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-training-panel.htm","Search result"))),__.push('<\/th>    <th class="position">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-training-panel.htm","Position"))),__.push('<\/th>    <th class="score">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-training-panel.htm","Marks"))),__.push("<\/th>   <\/thead>   <tbody>    "),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(n,item){with(this)__.push('    <tr data-id="'),typeof item.resultId!="undefined"&&item.resultId!=null&&__.push($.encode(typeof item.resultId=="function"?item.resultId.call($item):item.resultId)),__.push('" data-timestamp="'),typeof item.timestamp!="undefined"&&item.timestamp!=null&&__.push($.encode(typeof item.timestamp=="function"?item.timestamp.call($item):item.timestamp)),__.push('"     class="marked-search-result '),typeof item.notFound!="undefined"&&item.notFound!=null&&(typeof item.notFound=="function"?item.notFound.call($item):item.notFound)?__.push("not-found"):!0&&__.push("found"),__.push(" "),typeof item.selected!="undefined"&&item.selected!=null&&(typeof item.selected=="function"?item.selected.call($item):item.selected)&&__.push("selected"),__.push('">     <td class="desc"><div>'),typeof item.resultDescription!="undefined"&&item.resultDescription!=null&&__.push($.encode(typeof item.resultDescription=="function"?item.resultDescription.call($item):item.resultDescription)),__.push(" /"),typeof item.resultId!="undefined"&&item.resultId!=null&&__.push($.encode(typeof item.resultId=="function"?item.resultId.call($item):item.resultId)),__.push('<\/div><\/td>     <td class="position">'),typeof(item.position>=0)!="undefined"&&item.position>=0!=null&&(typeof(item.position>=0)=="function"?(item.position>=0).call($item):item.position>=0)&&(__.push(""),typeof(item.position+1)!="undefined"&&item.position+1!=null&&__.push($.encode(typeof(item.position+1)=="function"?(item.position+1).call($item):item.position+1)),__.push("")),__.push('<\/td>     <td class="score">      <div>'),typeof item.count!="undefined"&&item.count!=null&&__.push($.encode(typeof item.count=="function"?item.count.call($item):item.count)),__.push('<\/div>      <div class="remove-result" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-training-panel.htm","Remove"))),__.push('"><i class="fa fa-remove"><\/i><\/div>     <\/td>        <\/tr>    ')}),__.push("   <\/tbody>  <\/table>  ")):!0&&(__.push("  "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-training-panel.htm","There is no training data yet."))),__.push("  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-search-parameters-panel",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="search-panel-header">  <input type="button" id="reset-search-training-parameters" class="search-panel-button-link" value="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-parameters-panel.htm","Reset parameters"))),__.push('" /> <\/div> <div class="container">  <table class="knoema-table">   <thead>    <th class="param">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-parameters-panel.htm","Parameter"))),__.push('<\/th>    <th class="value">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-parameters-panel.htm","Value"))),__.push("<\/th>   <\/thead>   <tbody>    "),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(key,item){with(this)__.push('    <tr data-id="'),typeof key!="undefined"&&key!=null&&__.push($.encode(typeof key=="function"?key.call($item):key)),__.push('">     <td class="param"><div>'),typeof item.name!="undefined"&&item.name!=null&&__.push($.encode(typeof item.name=="function"?item.name.call($item):item.name)),__.push('<\/div><\/td>     <td class="value">      <div class="view-mode">       <div class="parameter-text">'),typeof item.value!="undefined"&&item.value!=null&&__.push($.encode(typeof item.value=="function"?item.value.call($item):item.value)),__.push('<\/div>       <div class="value-action-block">        <div class="edit-parameter value-action" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-parameters-panel.htm","Edit"))),__.push('"><i class="fa fa-pencil"><\/i><\/div>       <\/div>      <\/div>      <div class="edit-mode">       <input type="number" id="'),typeof key!="undefined"&&key!=null&&__.push($.encode(typeof key=="function"?key.call($item):key)),__.push('" value="'),typeof item.value!="undefined"&&item.value!=null&&__.push($.encode(typeof item.value=="function"?item.value.call($item):item.value)),__.push('"           min="'),typeof item.min!="undefined"&&item.min!=null&&__.push($.encode(typeof item.min=="function"?item.min.call($item):item.min)),__.push('"           max="'),typeof item.max!="undefined"&&item.max!=null&&__.push($.encode(typeof item.max=="function"?item.max.call($item):item.max)),__.push('"           step="'),typeof item.step!="undefined"&&item.step!=null&&__.push($.encode(typeof item.step=="function"?item.step.call($item):item.step)),__.push('" />       <div class="value-action-block">        <div class="accept-parameter value-action" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-parameters-panel.htm","Accept"))),__.push('"><i class="fa fa-check"><\/i><\/div>        <div class="cancel-parameter value-action" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-parameters-panel.htm","Cancel"))),__.push('"><i class="fa fa-remove"><\/i><\/div>       <\/div>      <\/div>     <\/td>        <\/tr>    ')}),__.push("   <\/tbody>  <\/table> <\/div>");return __});jQuery.template("Tmpl-search-result-item",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<table class="search-timeseries">   <thead>    <tr>     <th class="star"><\/th>     <th class="series">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-item.htm","Series"))),__.push('<\/th>     <th class="dataset">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-item.htm","Dataset"))),__.push('<\/th>     <th class="source">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-item.htm","Source"))),__.push('<\/th>     <th class="range">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-item.htm","Range"))),__.push('<\/th>     <th class="corner-column"><\/th>    <\/tr>   <\/thead>   <tbody>    '),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(i,item){with(this)__.push('    <tr class="'),typeof(item.isProtected||item.mainSearch)!="undefined"&&(item.isProtected||item.mainSearch)!=null&&(typeof(item.isProtected||item.mainSearch)=="function"?(item.isProtected||item.mainSearch).call($item):item.isProtected||item.mainSearch)&&__.push("protected-open"),__.push(" "),typeof item.mainSearch!="undefined"&&item.mainSearch!=null&&(typeof item.mainSearch=="function"?item.mainSearch.call($item):item.mainSearch)&&__.push("main-open"),__.push('" data-item-index="'),typeof i!="undefined"&&i!=null&&__.push($.encode(typeof i=="function"?i.call($item):i)),__.push('" data-global-index="'),typeof item.globalIndex!="undefined"&&item.globalIndex!=null&&__.push($.encode(typeof item.globalIndex=="function"?item.globalIndex.call($item):item.globalIndex)),__.push('" '),typeof(item.extraParameters&&item.extraParameters.extra)!="undefined"&&(item.extraParameters&&item.extraParameters.extra)!=null&&(typeof(item.extraParameters&&item.extraParameters.extra)=="function"?(item.extraParameters&&item.extraParameters.extra).call($item):item.extraParameters&&item.extraParameters.extra)&&(__.push(' data-extra="'),typeof JSON.stringify!="undefined"&&JSON.stringify!=null&&__.push($.encode(JSON.stringify(item.extraParameters.extra))),__.push('" ')),__.push('>     <td class="gadgetbin-column">      '),typeof(item.isProtected||item.mainSearch)!="undefined"&&(item.isProtected||item.mainSearch)!=null&&(typeof(item.isProtected||item.mainSearch)=="function"?(item.isProtected||item.mainSearch).call($item):item.isProtected||item.mainSearch)?(__.push('      <span class="protected-open-tag '),typeof item.mainSearch!="undefined"&&item.mainSearch!=null&&(typeof item.mainSearch=="function"?item.mainSearch.call($item):item.mainSearch)&&__.push("main-open-tag"),__.push(" knoema-ico "),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push('" title=""><\/span>      ')):!0&&(__.push('      <span class="add-to-gadgetbin knoema-ico '),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push('" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-item.htm","Bookmark"))),__.push('"><\/span>      ')),__.push('     <\/td>     <td class="series-column"><a class="'),typeof item.formattedTitle!="undefined"&&item.formattedTitle!=null&&(typeof item.formattedTitle=="function"?item.formattedTitle.call($item):item.formattedTitle)&&__.push("formatted-title "),__.push("external-link result-url "),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push('" href="'),typeof(hideLinks&&!item.mainSearch?"#":item.tsUrl||item.url)!="undefined"&&(hideLinks&&!item.mainSearch?"#":item.tsUrl||item.url)!=null&&__.push($.encode(typeof(hideLinks&&!item.mainSearch?"#":item.tsUrl||item.url)=="function"?(hideLinks&&!item.mainSearch?"#":item.tsUrl||item.url).call($item):hideLinks&&!item.mainSearch?"#":item.tsUrl||item.url)),__.push('" target="_blank" data-rank="'),typeof item.rank!="undefined"&&item.rank!=null&&__.push($.encode(typeof item.rank=="function"?item.rank.call($item):item.rank)),__.push('" data-id="'),typeof item.dataset.id!="undefined"&&item.dataset.id!=null&&__.push($.encode(typeof item.dataset.id=="function"?item.dataset.id.call($item):item.dataset.id)),__.push('" data-ts="'),typeof item.timeSeriesKey!="undefined"&&item.timeSeriesKey!=null&&__.push($.encode(typeof item.timeSeriesKey=="function"?item.timeSeriesKey.call($item):item.timeSeriesKey)),__.push('">'),typeof item.formattedTitle!="undefined"&&item.formattedTitle!=null&&(typeof item.formattedTitle=="function"?item.formattedTitle.call($item):item.formattedTitle)?(__.push(""),typeof item.formattedTitle!="undefined"&&item.formattedTitle!=null&&__.push(typeof item.formattedTitle=="function"?item.formattedTitle.call($item):item.formattedTitle),__.push("")):!0&&(__.push(""),typeof item.title!="undefined"&&item.title!=null&&__.push($.encode(typeof item.title=="function"?item.title.call($item):item.title)),__.push("")),__.push('&nbsp;<i class="fa fa-lock" aria-hidden="true"><\/i><\/a><\/td>     <td class="dataset-column expand-hidden"><a class="'),typeof item.dataset.formattedTitle!="undefined"&&item.dataset.formattedTitle!=null&&(typeof item.dataset.formattedTitle=="function"?item.dataset.formattedTitle.call($item):item.dataset.formattedTitle)&&__.push("formatted-title "),__.push("external-link data-resource-url "),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push('" href="'),typeof(hideLinks&&!item.mainSearch?"#":item.dataset.resourceUrl)!="undefined"&&(hideLinks&&!item.mainSearch?"#":item.dataset.resourceUrl)!=null&&__.push($.encode(typeof(hideLinks&&!item.mainSearch?"#":item.dataset.resourceUrl)=="function"?(hideLinks&&!item.mainSearch?"#":item.dataset.resourceUrl).call($item):hideLinks&&!item.mainSearch?"#":item.dataset.resourceUrl)),__.push('" target="_blank">'),typeof item.dataset.formattedTitle!="undefined"&&item.dataset.formattedTitle!=null&&(typeof item.dataset.formattedTitle=="function"?item.dataset.formattedTitle.call($item):item.dataset.formattedTitle)?(__.push(""),typeof item.dataset.formattedTitle!="undefined"&&item.dataset.formattedTitle!=null&&__.push(typeof item.dataset.formattedTitle=="function"?item.dataset.formattedTitle.call($item):item.dataset.formattedTitle),__.push("")):!0&&(__.push(""),typeof item.dataset.title!="undefined"&&item.dataset.title!=null&&__.push($.encode(typeof item.dataset.title=="function"?item.dataset.title.call($item):item.dataset.title)),__.push("")),__.push("<\/a><\/td>     "),typeof item.dataset.sourceUrl!="undefined"&&item.dataset.sourceUrl!=null&&(typeof item.dataset.sourceUrl=="function"?item.dataset.sourceUrl.call($item):item.dataset.sourceUrl)?(__.push('     <td class="source-column expand-hidden"><!--     --><a class="'),typeof item.dataset.formattedSourceId!="undefined"&&item.dataset.formattedSourceId!=null&&(typeof item.dataset.formattedSourceId=="function"?item.dataset.formattedSourceId.call($item):item.dataset.formattedSourceId)&&__.push("formatted-title "),__.push("external-link metadata-value-source "),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push('" href="'),typeof(hideLinks&&!item.mainSearch?"#":item.dataset.sourceUrl||"#")!="undefined"&&(hideLinks&&!item.mainSearch?"#":item.dataset.sourceUrl||"#")!=null&&__.push($.encode(typeof(hideLinks&&!item.mainSearch?"#":item.dataset.sourceUrl||"#")=="function"?(hideLinks&&!item.mainSearch?"#":item.dataset.sourceUrl||"#").call($item):hideLinks&&!item.mainSearch?"#":item.dataset.sourceUrl||"#")),__.push('" target="_blank" title="'),typeof item.dataset.source!="undefined"&&item.dataset.source!=null&&__.push($.encode(typeof item.dataset.source=="function"?item.dataset.source.call($item):item.dataset.source)),__.push('">'),typeof item.dataset.formattedSourceId!="undefined"&&item.dataset.formattedSourceId!=null&&(typeof item.dataset.formattedSourceId=="function"?item.dataset.formattedSourceId.call($item):item.dataset.formattedSourceId)?(__.push(""),typeof item.dataset.formattedSourceId!="undefined"&&item.dataset.formattedSourceId!=null&&__.push(typeof item.dataset.formattedSourceId=="function"?item.dataset.formattedSourceId.call($item):item.dataset.formattedSourceId),__.push("")):!0&&(__.push(""),typeof item.dataset.sourceId!="undefined"&&item.dataset.sourceId!=null&&__.push($.encode(typeof item.dataset.sourceId=="function"?item.dataset.sourceId.call($item):item.dataset.sourceId)),__.push("")),__.push("<\/a><!--     --><\/td>     ")):!0&&(__.push('     <td class="source-column expand-hidden"><!--     --><span class="'),typeof item.dataset.formattedSourceId!="undefined"&&item.dataset.formattedSourceId!=null&&(typeof item.dataset.formattedSourceId=="function"?item.dataset.formattedSourceId.call($item):item.dataset.formattedSourceId)&&__.push("formatted-title "),__.push("external-link metadata-value-source "),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push('" title="'),typeof item.dataset.source!="undefined"&&item.dataset.source!=null&&__.push($.encode(typeof item.dataset.source=="function"?item.dataset.source.call($item):item.dataset.source)),__.push('">'),typeof item.dataset.formattedSourceId!="undefined"&&item.dataset.formattedSourceId!=null&&(typeof item.dataset.formattedSourceId=="function"?item.dataset.formattedSourceId.call($item):item.dataset.formattedSourceId)?(__.push(""),typeof item.dataset.formattedSourceId!="undefined"&&item.dataset.formattedSourceId!=null&&__.push(typeof item.dataset.formattedSourceId=="function"?item.dataset.formattedSourceId.call($item):item.dataset.formattedSourceId),__.push("")):!0&&(__.push(""),typeof item.dataset.sourceId!="undefined"&&item.dataset.sourceId!=null&&__.push($.encode(typeof item.dataset.sourceId=="function"?item.dataset.sourceId.call($item):item.dataset.sourceId)),__.push("")),__.push("<\/span><!--     --><\/td>     ")),__.push('     <td class="range-column expand-hidden ">      <span class="'),typeof isLoading!="undefined"&&isLoading!=null&&(typeof isLoading=="function"?isLoading.call($item):isLoading)&&__.push("loading-placeholder"),__.push('">'),typeof item.startDate!="undefined"&&item.startDate!=null&&(typeof item.startDate=="function"?item.startDate.call($item):item.startDate)&&(__.push(""),typeof item.startDate!="undefined"&&item.startDate!=null&&__.push($.encode(typeof item.startDate=="function"?item.startDate.call($item):item.startDate)),__.push(" - "),typeof item.endDate!="undefined"&&item.endDate!=null&&__.push($.encode(typeof item.endDate=="function"?item.endDate.call($item):item.endDate)),__.push("")),__.push('<\/span>     <\/td>     <td class="corner-column"><a class="ui-icon" role="button"><\/a><\/td>    <\/tr>    ')}),__.push('   <\/tbody>  <\/table>    <div id="show-more-single-results" class="wide-more"><span class="kn-button common accent">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-result-item.htm","Show more results"))),__.push("<\/span><\/div>");return __});jQuery.template("Tmpl-search-results-teaser",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="search-teaser-'),typeof type!="undefined"&&type!=null&&__.push($.encode(typeof type=="function"?type.call($item):type)),__.push('" class="search-teaser '),typeof type!="undefined"&&type!=null&&__.push($.encode(typeof type=="function"?type.call($item):type)),__.push('">  <div class="title" data-type="'),typeof type!="undefined"&&type!=null&&__.push($.encode(typeof type=="function"?type.call($item):type)),__.push('">    <em><\/em><!--    -->'),typeof(type=="instant")!="undefined"&&type=="instant"!=null&&(typeof(type=="instant")=="function"?(type=="instant").call($item):type=="instant")?(__.push("<!--    -->"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-teaser.htm","Instant answer"))),__.push("<!--    -->")):typeof(type=="timeseries")!="undefined"&&type=="timeseries"!=null&&(typeof(type=="timeseries")=="function"?(type=="timeseries").call($item):type=="timeseries")?(__.push("<!--    -->"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-teaser.htm","Time series"))),__.push("<!--    -->")):typeof(type=="visualizations")!="undefined"&&type=="visualizations"!=null&&(typeof(type=="visualizations")=="function"?(type=="visualizations").call($item):type=="visualizations")?(__.push("<!--    -->"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-teaser.htm","Visualizations"))),__.push("<!--    -->")):!0&&(__.push("<!--    -->"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-teaser.htm","Datasets"))),__.push("<!--    -->")),__.push("<!--   --><\/div>  "),typeof(dynamicFilters&&dynamicFilters.length)!="undefined"&&(dynamicFilters&&dynamicFilters.length)!=null&&(typeof(dynamicFilters&&dynamicFilters.length)=="function"?(dynamicFilters&&dynamicFilters.length).call($item):dynamicFilters&&dynamicFilters.length)&&(__.push('    <div class="see-also right-container">     <div class="instant-caption">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-teaser.htm","See also:"))),__.push('<\/div>     <ul class="dynamic-filters">      '),typeof dynamicFilters!="undefined"&&dynamicFilters!=null&&$.each(typeof dynamicFilters=="function"?dynamicFilters.call($item):dynamicFilters,function(i,filter){with(this)__.push('      <li data-filter="dynamic" data-type="'),typeof filter.type!="undefined"&&filter.type!=null&&__.push($.encode(typeof filter.type=="function"?filter.type.call($item):filter.type)),__.push('" data-name="'),typeof filter.name!="undefined"&&filter.name!=null&&__.push($.encode(typeof filter.name=="function"?filter.name.call($item):filter.name)),__.push('" '),typeof filter.mode!="undefined"&&filter.mode!=null&&(typeof filter.mode=="function"?filter.mode.call($item):filter.mode)&&(__.push(' data-mode="'),typeof filter.mode!="undefined"&&filter.mode!=null&&__.push($.encode(typeof filter.mode=="function"?filter.mode.call($item):filter.mode)),__.push('" ')),__.push('>       <a class="instant-caption" href="#">'),typeof filter.name!="undefined"&&filter.name!=null&&__.push($.encode(typeof filter.name=="function"?filter.name.call($item):filter.name)),__.push("<\/a>"),typeof(i<dynamicFilters.length-1?", ":"")!="undefined"&&(i<dynamicFilters.length-1?", ":"")!=null&&__.push($.encode(typeof(i<dynamicFilters.length-1?", ":"")=="function"?(i<dynamicFilters.length-1?", ":"").call($item):i<dynamicFilters.length-1?", ":"")),__.push("      <\/li>      ")}),__.push("     <\/ul>    <\/div>   ")),__.push('  <div class="content"><\/div> <\/div>');return __});jQuery.template("Tmpl-search-results-premium-filter",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof(info&&info.short)!="undefined"&&(info&&info.short)!=null&&(typeof(info&&info.short)=="function"?(info&&info.short).call($item):info&&info.short)?(__.push('  <span class="more-with-premium">'),typeof info.text!="undefined"&&info.text!=null&&__.push($.encode(typeof info.text=="function"?info.text.call($item):info.text)),__.push(' <a href="/products/professional?returnUrl='),typeof searchUrl!="undefined"&&searchUrl!=null&&__.push($.encode(typeof searchUrl=="function"?searchUrl.call($item):searchUrl)),__.push('" class="ui-button">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-filter.htm","Professional Content"))),__.push("<\/a><\/span>  ")):!0&&(__.push('  <div class="premium-content-filter">   <div>    <span class="premium-content-caption">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-filter.htm","Professional Content"))),__.push('<\/span>    <ul class="buttons">     <li '),typeof premium!="undefined"&&premium!=null&&(typeof premium=="function"?premium.call($item):premium)&&__.push(' class="active" '),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-filter.htm","On"))),__.push("<\/li><li "),typeof!premium!="undefined"&&!premium!=null&&(typeof!premium=="function"?(!premium).call($item):!premium)&&__.push(' class="active" '),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-filter.htm","Off"))),__.push("<\/li>    <\/ul>    "),typeof info!="undefined"&&info!=null&&(typeof info=="function"?info.call($item):info)&&(__.push('    <span class="more-with-premium light">'),typeof info.text!="undefined"&&info.text!=null&&__.push($.encode(typeof info.text=="function"?info.text.call($item):info.text)),__.push(' <a href="/products/professional?returnUrl='),typeof searchUrl!="undefined"&&searchUrl!=null&&__.push($.encode(typeof searchUrl=="function"?searchUrl.call($item):searchUrl)),__.push('" class="ui-button">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-filter.htm","Professional Content"))),__.push("<\/a><\/span>    ")),__.push("   <\/div>   "),typeof!info!="undefined"&&!info!=null&&(typeof!info=="function"?(!info).call($item):!info)&&(__.push('   <a href="/products/professional?returnUrl='),typeof searchUrl!="undefined"&&searchUrl!=null&&__.push($.encode(typeof searchUrl=="function"?searchUrl.call($item):searchUrl)),__.push('" target="_blank" class="ui-button kn-button common green-charcoal">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-filter.htm","Go Professional"))),__.push("<\/a>   ")),__.push("  <\/div>  ")),__.push("");return __});jQuery.template("Tmpl-search-results-premium-popup",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<div "),typeof(typeof hideID=="undefined")!="undefined"&&typeof hideID=="undefined"!=null&&(typeof(typeof hideID=="undefined")=="function"?(typeof hideID=="undefined").call($item):typeof hideID=="undefined")&&__.push('id="search-results-premium-popup"'),__.push(' class="search-results-premium-popup'),typeof(typeof addClass!="undefined")!="undefined"&&typeof addClass!="undefined"!=null&&(typeof(typeof addClass!="undefined")=="function"?(typeof addClass!="undefined").call($item):typeof addClass!="undefined")&&(__.push(" "),typeof addClass!="undefined"&&addClass!=null&&__.push($.encode(typeof addClass=="function"?addClass.call($item):addClass)),__.push("")),__.push('">   <div class="content">    <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-popup.htm","Available to Professional subscribers"))),__.push('<\/span>    <a href="/products/professional" target="_blank" class="premium">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-popup.htm","Learn more"))),__.push('<\/a>    <a href="/products/professional/get?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('" target="_blank" class="ui-button kn-button common premium green-charcoal">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-popup.htm","Activate Professional subscription"))),__.push('<\/a>    <p class="subscriber '),typeof(typeof authenticated!="undefined"&&authenticated)!="undefined"&&(typeof authenticated!="undefined"&&authenticated)!=null&&(typeof(typeof authenticated!="undefined"&&authenticated)=="function"?(typeof authenticated!="undefined"&&authenticated).call($item):typeof authenticated!="undefined"&&authenticated)&&__.push("hidden"),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-popup.htm","Already Professional subscriber"))),__.push('? <a href="/sys/login?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-results-premium-popup.htm","Log in"))),__.push("<\/a><\/p>   <\/div>  <\/div>");return __});jQuery.template("Tmpl-search-timeseries-metadata",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<ul>  "),typeof mnemonics!="undefined"&&mnemonics!=null&&(typeof mnemonics=="function"?mnemonics.call($item):mnemonics)&&(__.push("  <li><span>"),typeof mnemonicsTitle!="undefined"&&mnemonicsTitle!=null&&__.push($.encode(typeof mnemonicsTitle=="function"?mnemonicsTitle.call($item):mnemonicsTitle)),__.push("<\/span> "),typeof mnemonics!="undefined"&&mnemonics!=null&&__.push($.encode(typeof mnemonics=="function"?mnemonics.call($item):mnemonics)),__.push("<\/li>  ")),__.push("  "),typeof data_members!="undefined"&&data_members!=null&&$.each(typeof data_members=="function"?data_members.call($item):data_members,function(member_key,members){with(this)__.push("   "),typeof members!="undefined"&&members!=null&&$.each(typeof members=="function"?members.call($item):members,function(n,fields){with(this)__.push("    "),typeof fields!="undefined"&&fields!=null&&$.each(typeof fields=="function"?fields.call($item):fields,function(name,field_value){with(this)__.push("     <li><span>"),typeof member_key!="undefined"&&member_key!=null&&__.push($.encode(typeof member_key=="function"?member_key.call($item):member_key)),__.push(" "),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push(":<\/span> "),typeof field_value!="undefined"&&field_value!=null&&__.push($.encode(typeof field_value=="function"?field_value.call($item):field_value)),__.push("<\/li>    ")}),__.push("   ")}),__.push("  ")}),__.push("  "),typeof data_attributes!="undefined"&&data_attributes!=null&&$.each(typeof data_attributes=="function"?data_attributes.call($item):data_attributes,function(attr_key,attr_value){with(this)__.push("   <li><span>"),typeof attr_key!="undefined"&&attr_key!=null&&__.push($.encode(typeof attr_key=="function"?attr_key.call($item):attr_key)),__.push(":<\/span> "),typeof attr_value!="undefined"&&attr_value!=null&&__.push($.encode(typeof attr_value=="function"?attr_value.call($item):attr_value)),__.push("<\/li>  ")}),__.push(" <\/ul>");return __});jQuery.template("Tmpl-search-single-series-chart",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="single-series-chart" style="width: '),typeof width!="undefined"&&width!=null&&__.push($.encode(typeof width=="function"?width.call($item):width)),__.push('">   <h3 class="series-title-header">    <a class="'),typeof dataset.formattedTitle!="undefined"&&dataset.formattedTitle!=null&&(typeof dataset.formattedTitle=="function"?dataset.formattedTitle.call($item):dataset.formattedTitle)&&__.push("formatted-title "),__.push('data-resource-url" href="'),typeof dataset.dataUrl!="undefined"&&dataset.dataUrl!=null&&__.push($.encode(typeof dataset.dataUrl=="function"?dataset.dataUrl.call($item):dataset.dataUrl)),__.push('" target="_blank">'),typeof dataset.formattedTitle!="undefined"&&dataset.formattedTitle!=null&&(typeof dataset.formattedTitle=="function"?dataset.formattedTitle.call($item):dataset.formattedTitle)?(__.push(""),typeof dataset.formattedTitle!="undefined"&&dataset.formattedTitle!=null&&__.push(typeof dataset.formattedTitle=="function"?dataset.formattedTitle.call($item):dataset.formattedTitle),__.push("")):!0&&(__.push(""),typeof dataset.title!="undefined"&&dataset.title!=null&&__.push($.encode(typeof dataset.title=="function"?dataset.title.call($item):dataset.title)),__.push("")),__.push("<\/a>    "),typeof dataset.sourceId!="undefined"&&dataset.sourceId!=null&&(typeof dataset.sourceId=="function"?dataset.sourceId.call($item):dataset.sourceId)&&(__.push("     <span> "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-single-series-chart.htm","by"))),__.push(" <\/span>     "),typeof dataset.sourceUrl!="undefined"&&dataset.sourceUrl!=null&&(typeof dataset.sourceUrl=="function"?dataset.sourceUrl.call($item):dataset.sourceUrl)?(__.push('     <a class="'),typeof dataset.formattedSourceId!="undefined"&&dataset.formattedSourceId!=null&&(typeof dataset.formattedSourceId=="function"?dataset.formattedSourceId.call($item):dataset.formattedSourceId)&&__.push("formatted-title "),__.push('metadata-value-source" href="'),typeof(dataset.sourceUrl||"#")!="undefined"&&(dataset.sourceUrl||"#")!=null&&__.push($.encode(typeof(dataset.sourceUrl||"#")=="function"?(dataset.sourceUrl||"#").call($item):dataset.sourceUrl||"#")),__.push('" title="'),typeof dataset.source!="undefined"&&dataset.source!=null&&__.push($.encode(typeof dataset.source=="function"?dataset.source.call($item):dataset.source)),__.push('" target="_blank">'),typeof dataset.formattedSourceId!="undefined"&&dataset.formattedSourceId!=null&&(typeof dataset.formattedSourceId=="function"?dataset.formattedSourceId.call($item):dataset.formattedSourceId)?(__.push(""),typeof dataset.formattedSourceId!="undefined"&&dataset.formattedSourceId!=null&&__.push(typeof dataset.formattedSourceId=="function"?dataset.formattedSourceId.call($item):dataset.formattedSourceId),__.push("")):!0&&(__.push(""),typeof dataset.sourceId!="undefined"&&dataset.sourceId!=null&&__.push($.encode(typeof dataset.sourceId=="function"?dataset.sourceId.call($item):dataset.sourceId)),__.push("")),__.push("<\/a>     ")):!0&&(__.push('     <span class="'),typeof dataset.formattedSourceId!="undefined"&&dataset.formattedSourceId!=null&&(typeof dataset.formattedSourceId=="function"?dataset.formattedSourceId.call($item):dataset.formattedSourceId)&&__.push("formatted-title "),__.push('metadata-value-source" title="'),typeof dataset.source!="undefined"&&dataset.source!=null&&__.push($.encode(typeof dataset.source=="function"?dataset.source.call($item):dataset.source)),__.push('">'),typeof dataset.formattedSourceId!="undefined"&&dataset.formattedSourceId!=null&&(typeof dataset.formattedSourceId=="function"?dataset.formattedSourceId.call($item):dataset.formattedSourceId)?(__.push(""),typeof dataset.formattedSourceId!="undefined"&&dataset.formattedSourceId!=null&&__.push(typeof dataset.formattedSourceId=="function"?dataset.formattedSourceId.call($item):dataset.formattedSourceId),__.push("")):!0&&(__.push(""),typeof dataset.sourceId!="undefined"&&dataset.sourceId!=null&&__.push($.encode(typeof dataset.sourceId=="function"?dataset.sourceId.call($item):dataset.sourceId)),__.push("")),__.push("<\/span>     ")),__.push("    ")),__.push('   <\/h3>   <h3 class="series-value">    <span class="tuple-value"><\/span>    <span class="tuple-unit"><\/span>    <span class="tuple-in">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-single-series-chart.htm","in"))),__.push('<\/span>    <span class="tuple-time"><\/span>   <\/h3>   '),!0&&(__=__.concat($item.nest("Tmpl-search-yodatai-description",null))),__.push('   <div class="series-title-footer">    <a href="'),typeof item.tsUrl!="undefined"&&item.tsUrl!=null&&__.push($.encode(typeof item.tsUrl=="function"?item.tsUrl.call($item):item.tsUrl)),__.push('" class="series-explore ui-button" target="_blank">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-single-series-chart.htm","Explore"))),__.push('<\/a>    <ul class="dataset-attributes">     '),typeof item.startDate!="undefined"&&item.startDate!=null&&(typeof item.startDate=="function"?item.startDate.call($item):item.startDate)&&(__.push("     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-single-series-chart.htm","Date Range:"))),__.push(" "),typeof item.startDate!="undefined"&&item.startDate!=null&&__.push($.encode(typeof item.startDate=="function"?item.startDate.call($item):item.startDate)),__.push(" - "),typeof item.endDate!="undefined"&&item.endDate!=null&&__.push($.encode(typeof item.endDate=="function"?item.endDate.call($item):item.endDate)),__.push("<\/li>")),__.push("     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-single-series-chart.htm","Published:"))),__.push(" "),typeof dataset.publicationDate!="undefined"&&dataset.publicationDate!=null&&__.push($.encode(typeof dataset.publicationDate=="function"?dataset.publicationDate.call($item):dataset.publicationDate)),__.push("<\/li>     "),typeof dataset.accessedOn!="undefined"&&dataset.accessedOn!=null&&(typeof dataset.accessedOn=="function"?dataset.accessedOn.call($item):dataset.accessedOn)&&(__.push("     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-single-series-chart.htm","Accessed On:"))),__.push(" "),typeof dataset.accessedOn!="undefined"&&dataset.accessedOn!=null&&__.push($.encode(typeof dataset.accessedOn=="function"?dataset.accessedOn.call($item):dataset.accessedOn)),__.push("<\/li>")),__.push('    <\/ul>   <\/div>   <div class="single-chart-container '),typeof premium!="undefined"&&premium!=null&&(typeof premium=="function"?premium.call($item):premium)&&__.push("blurred"),__.push('"><\/div>   <div class="metadata">    <h3>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-single-series-chart.htm","Timeseries Metadata"))),__.push("<\/h3>   <\/div>   "),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("   "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("")),__.push("   ")),__.push("  <\/div>");return __})