jQuery.template("Tmpl-knoema-dataset-viewer-guide-message",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof(!Knoema.Utils.isCommunity()&&showActionBar&&!hideActionBarMessage)!="undefined"&&(!Knoema.Utils.isCommunity()&&showActionBar&&!hideActionBarMessage)!=null&&(typeof(!Knoema.Utils.isCommunity()&&showActionBar&&!hideActionBarMessage)=="function"?(!Knoema.Utils.isCommunity()&&showActionBar&&!hideActionBarMessage).call($item):!Knoema.Utils.isCommunity()&&showActionBar&&!hideActionBarMessage)&&(__.push("  "),typeof Modernizr.mq!="undefined"&&Modernizr.mq!=null&&Modernizr.mq("(min-width: 1440px)")?(__.push('  <a class="arrow top is-wide"><\/a>  <div class="guide-message for-action-bar is-wide">   '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-guide-message.htm","Use action bar to export and save visualizations."))),__.push("  <\/div>  ")):!0&&(__.push('  <a class="arrow top"><\/a>  <div class="guide-message for-action-bar">   '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-guide-message.htm","Use action bar to export and save visualizations."))),__.push("  <\/div>  ")),__.push("    ")),__.push('  <a class="arrow right"><\/a>  <div class="guide-message for-best-viz">   '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-guide-message.htm","Switch between different visualizations on the fly. Based on your selection recommended gadgets are shown on top with large tiles."))),__.push("  <\/div>    "),typeof isFullRequest!="undefined"&&isFullRequest!=null&&(typeof isFullRequest=="function"?isFullRequest.call($item):isFullRequest)?(__.push("  "),typeof!calledFromOverlay!="undefined"&&!calledFromOverlay!=null&&(typeof!calledFromOverlay=="function"?(!calledFromOverlay).call($item):!calledFromOverlay)&&(__.push('  <div class="guide-message center">   '),typeof hasPublicViews!="undefined"&&hasPublicViews!=null&&(typeof hasPublicViews=="function"?hasPublicViews.call($item):hasPublicViews)?(__.push("   "),typeof showRandomSelection!="undefined"&&showRandomSelection!=null&&(typeof showRandomSelection=="function"?showRandomSelection.call($item):showRandomSelection)?(__.push("   "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-guide-message.htm","You don't have to start from scratch. Load [random selection|id=random-selection] or [browse dashboards|id=browse-dashboards] to see what other people did")),__.push("   ")):!0&&(__.push("   "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-guide-message.htm","You don't have to start from scratch. [Browse dashboards|id=browse-dashboards] to see what other people did")),__.push("   ")),__.push("   ")):!0&&(__.push("   "),typeof showRandomSelection!="undefined"&&showRandomSelection!=null&&(typeof showRandomSelection=="function"?showRandomSelection.call($item):showRandomSelection)&&(__.push("   "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-guide-message.htm","You don't have to start from scratch. Load [random selection|id=random-selection]")),__.push("   ")),__.push("   ")),__.push("  <\/div>  ")),__.push("  ")):!0&&__.push('  <a class="arrow left partial"><\/a>  <div class="guide-message for-partial-request">  <\/div>  '),__.push("  "),typeof showHideHelpLink!="undefined"&&showHideHelpLink!=null&&(typeof showHideHelpLink=="function"?showHideHelpLink.call($item):showHideHelpLink)&&(__.push('  <a id="hide-guide-message">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-guide-message.htm","Do not show help anymore"))),__.push("<\/a>  ")),__.push("    "),typeof isFullRequest!="undefined"&&isFullRequest!=null&&(typeof isFullRequest=="function"?isFullRequest.call($item):isFullRequest)&&(__.push("  "),typeof showNaturalSearch!="undefined"&&showNaturalSearch!=null&&(typeof showNaturalSearch=="function"?showNaturalSearch.call($item):showNaturalSearch)&&(__.push("  "),!0&&(__=__.concat($item.nest("Tmpl-natural-search",{query:""}))),__.push("  ")),__.push("  ")),__.push('    <a class="arrow left"><\/a>  <div class="guide-message for-dim-filter">   '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-guide-message.htm","Use dimension filter to select data to visualize. Add/remove elements by selecting/deselecting checkboxes, switch between categories by clicking on their names."))),__.push("  <\/div>");return __});jQuery.template("Tmpl-natural-search",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="natural-query">   <input id="query" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/natural-search.htm","Please input your query here"))),__.push('" value="'),typeof query!="undefined"&&query!=null&&__.push($.encode(typeof query=="function"?query.call($item):query)),__.push('"/>   <button class="ui-button kn-button common accent" id="send">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/natural-search.htm","Search"))),__.push('<\/button>  <\/div>  <div id="result-message-container"><\/div>  <div id="alt-results-container"><\/div>');return __});jQuery.template("Tmpl-knoema-dataset-viewer",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="explore-dataset" style="height:100%;">     <div id="advanced-dim-filter" class="ui-layout-west focus-area">   <\/div>      <div class="content ui-layout-center">    <div id="premium">     <div class="container">      <span class="close"><\/span>      <div class="message"><\/div>     <\/div>    <\/div>    '),typeof!calledFromOverlay!="undefined"&&!calledFromOverlay!=null&&(typeof!calledFromOverlay=="function"?(!calledFromOverlay).call($item):!calledFromOverlay)&&__.push('     <div id="transformation-container"><\/div>    '),__.push('    <div id="dsv-warning">     <div class="dsv-w-content"><\/div>     <div class="dsv-w-close"><i class="knoema-ico close"><\/i><\/div>    <\/div>    <div id="gadget-control" class="'),typeof(calledFromOverlay?"":"transformation-panel-outside")!="undefined"&&(calledFromOverlay?"":"transformation-panel-outside")!=null&&__.push($.encode(typeof(calledFromOverlay?"":"transformation-panel-outside")=="function"?(calledFromOverlay?"":"transformation-panel-outside").call($item):calledFromOverlay?"":"transformation-panel-outside")),__.push('">     <div id="host">      '),typeof calledFromOverlay!="undefined"&&calledFromOverlay!=null&&(typeof calledFromOverlay=="function"?calledFromOverlay.call($item):calledFromOverlay)&&__.push('       <div id="transformation-container"><\/div>      '),__.push('      <div id="visualization" class="gadget-container dataset-viewer-gadget-container" style="display:none;">       '),typeof!hasDescriptor!="undefined"&&!hasDescriptor!=null&&(typeof!hasDescriptor=="function"?(!hasDescriptor).call($item):!hasDescriptor)&&(__.push("        "),!0&&(__=__.concat($item.nest("Tmpl-knoema-dataset-viewer-guide-message",null))),__.push("       ")),__.push('      <\/div>     <\/div>     <div id="switch-gadget">      <button class="gadget line enable" data-gadget-type="line" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Line Chart"))),__.push('"><\/button>      <button class="gadget column-group column enable" data-gadget-type="column" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Column Chart"))),__.push('"><\/button>      <button class="gadget column-group column-stacking enable" data-gadget-type="column-stacking" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Column Stacking Chart"))),__.push('"><\/button>      <button class="gadget column-group column-percentage-stacking enable" data-gadget-type="column-percentage-stacking" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Column Percentage Stacking Chart"))),__.push('"><\/button>      <button class="gadget bar-group bar enable" data-gadget-type="bar" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Bar Chart"))),__.push('"><\/button>      <button class="gadget bar-group bar-stacking enable" data-gadget-type="bar-stacking" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Bar Stacking Chart"))),__.push('"><\/button>      <button class="gadget bar-group bar-percentage-stacking enable" data-gadget-type="bar-percentage-stacking" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Bar Percentage Stacking Chart"))),__.push('"><\/button>      <button class="gadget area-group area enable" data-gadget-type="area" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Area Chart"))),__.push('"><\/button>      <button class="gadget area-group area-stacking enable" data-gadget-type="area-stacking" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Area Stacking Chart"))),__.push('"><\/button>      <button class="gadget area-group area-percentage-stacking enable" data-gadget-type="area-percentage-stacking" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Area Percentage Stacking Chart"))),__.push('"><\/button>      <button class="gadget spline enable" data-gadget-type="spline" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Spline Chart"))),__.push('"><\/button>      <button class="gadget radar enable" data-gadget-type="radar" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Radar Chart"))),__.push('"><\/button>      <button class="gadget pie enable" data-gadget-type="pie" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Pie Chart"))),__.push('"><\/button>      <button class="gadget bubble enable" data-gadget-type="bubble" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Bubble Chart"))),__.push('"><\/button>      <button class="gadget table enable" data-gadget-type="table" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Table"))),__.push('"><\/button>      <button class="gadget grid enable" data-gadget-type="grid" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Grid"))),__.push('"><\/button>      <button class="gadget map enable" data-gadget-type="map" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Map"))),__.push('"><\/button>      <button class="gadget leaflet-map enable" data-gadget-type="leaflet-map" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Advanced map"))),__.push('"><\/button>      <button class="gadget ranking enable" data-gadget-type="ranking" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Ranking"))),__.push('"><\/button>      <button class="gadget treemap enable" data-gadget-type="treemap" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","TreeMap"))),__.push('"><\/button>      <button class="gadget sunburst enable" data-gadget-type="sunburst" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Sunburst"))),__.push('"><\/button>      <button class="gadget bubbletree enable" data-gadget-type="bubbletree" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Bubbletree"))),__.push('"><\/button>      <button class="gadget donut enable" data-gadget-type="donut" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Donut Chart"))),__.push('"><\/button>      <button class="gadget pictogram enable" data-gadget-type="pictogram" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Pictogram"))),__.push('"><\/button>     <\/div>    <\/div>    <div class="clear"><\/div>    '),typeof showActionBar!="undefined"&&showActionBar!=null&&(typeof showActionBar=="function"?showActionBar.call($item):showActionBar)&&(__.push('    <div id="action-bar">      '),typeof Knoema.Utils.isCommunity!="undefined"&&Knoema.Utils.isCommunity!=null&&Knoema.Utils.isCommunity()&&(__.push('      <a class="export"><em class="icon icon-export"><\/em> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Export"))),__.push("<\/a>      ")),__.push("      "),typeof isContributor!="undefined"&&isContributor!=null&&(typeof isContributor=="function"?isContributor.call($item):isContributor)&&(__.push("       "),typeof(!IsAccessedByAccessKey||isDatasetPublic||hasAccess)!="undefined"&&(!IsAccessedByAccessKey||isDatasetPublic||hasAccess)!=null&&(typeof(!IsAccessedByAccessKey||isDatasetPublic||hasAccess)=="function"?(!IsAccessedByAccessKey||isDatasetPublic||hasAccess).call($item):!IsAccessedByAccessKey||isDatasetPublic||hasAccess)&&(__.push("        "),typeof Knoema.Utils.isCommunity!="undefined"&&Knoema.Utils.isCommunity!=null&&Knoema.Utils.isCommunity()&&(__.push('        <a class="save-view"><em class="icon icon-save"><\/em> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Save"))),__.push("<\/a>        ")),__.push("       ")),__.push("      ")),__.push('      <a class="add-to-gb"><em class="icon icon-add-to-gb"><\/em> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer.htm","Bookmark"))),__.push("<\/a>      "),typeof!isAuthenticatedUser!="undefined"&&!isAuthenticatedUser!=null&&(typeof!isAuthenticatedUser=="function"?(!isAuthenticatedUser).call($item):!isAuthenticatedUser)&&(__.push('      <div id="login-warning-message">       '),typeof returnUrl!="undefined"&&returnUrl!=null&&(__=__.concat($item.nest(returnUrl,null))),__.push("      <\/div>      ")),__.push("    <\/div>    ")),__.push("   <\/div>  <\/div>");return __});jQuery.template("Tmpl-dataset-verification-reject-reason",function(n,t){var $=n,__=[],i=t.data;with(i)__.push("<div>          <br />    <label>     "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-verification-reject-reason.htm","Please specify the reason(s) for rejecting this dataset:"))),__.push('<\/label>    <br />    <textarea id="verification-reject-reason"><\/textarea><br />          <label id="verification-warning-reason">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-verification-reject-reason.htm","* Please provide a reason"))),__.push("<\/label>  <\/div>");return __});jQuery.template("Tmpl-knoema-dataset-viewer-gold-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="gold-data-hub-statistic-popup" class="hub-statistic-popup">     <div class="popup">         <p class="subheader">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-gold-dialog.htm","Activate Knoema Professional for additional access"))),__.push('<\/p>         <ul class="features">             <li>'),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-gold-dialog.htm","<b>Access to 15k+ Premium Datasets<\/b> from Knoema Data Hub Catalog")),__.push("<\/li>             <li>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-gold-dialog.htm","Search across <b>4.2b+ time series<\/b> from <b>1.6k+ sources<\/b>")),__.push("<\/li>             <li>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-gold-dialog.htm","Unlimited download and export data and charts")),__.push('<\/li>         <\/ul>         <div class="button-box">             <a href="/products/professional/get?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('" class="kn-button common">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-gold-dialog.htm","Go Professional"))),__.push("<\/a>         <\/div>     <\/div> <\/div>");return __});jQuery.template("Tmpl-knoema-dataset-viewer-free-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="free-data-hub-statistic-popup" class="hub-statistic-popup">  <div class="popup">   <p class="subheader">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-free-dialog.htm","Activate Free account for additional access"))),__.push('<\/p>   <ul class="features">    <li>'),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-free-dialog.htm","<b>Access to 5k+ Free Datasets<\/b> from Knoema Data Hub Catalog")),__.push("<\/li>    <li>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-free-dialog.htm","Search across <b>4.2b+ time series<\/b> from <b>1.6k+ sources<\/b>")),__.push('<\/li>   <\/ul>   <div class="button-box">    <a href="/sys/login/signup?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('" class="kn-button common">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-free-dialog.htm","Sign Up Free"))),__.push("<\/a>    <div>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-free-dialog.htm","for additional access"))),__.push("<\/div>   <\/div>  <\/div> <\/div>");return __});jQuery.template("Tmpl-knoema-dataset-viewer-diamond-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="diamond-data-hub-statistic-popup" class="hub-statistic-popup">  <div class="popup">   <p class="subheader">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-diamond-dialog.htm","Integrated data for your organization"))),__.push('<\/p>   <ul class="features">    <li>'),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-diamond-dialog.htm","<b>Knoema’s global database<\/b> your internal and 3rd party data assets")),__.push("<\/li>    <li>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-diamond-dialog.htm","<b>Streamlined ingestion<\/b>, maintenance, and delivery")),__.push("<\/li>    <li>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-viewer-diamond-dialog.htm","Bulk download by <b>API tools<\/b> (JSON, Python, C#, R)")),__.push('<\/li>   <\/ul>   <div class="button-box">    <a href="/contact/access-to-enterprise-data?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('" class="kn-button common">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-diamond-dialog.htm","Contact Us"))),__.push("<\/a>   <\/div>  <\/div> <\/div>");return __});jQuery.template("Tmpl-premium-download-in-csv-sdmx",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="download-in-csv-sdmx">     '),typeof!downloadOfSelectedDataAvailable!="undefined"&&!downloadOfSelectedDataAvailable!=null&&(typeof!downloadOfSelectedDataAvailable=="function"?(!downloadOfSelectedDataAvailable).call($item):!downloadOfSelectedDataAvailable)?(__.push("    <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-in-csv-sdmx.htm","The selection you have made is too huge for interactive visualization. You can reduce selection to explore data."))),__.push("<\/p>   ")):!0&&(__.push("      "),typeof warning!="undefined"&&warning!=null&&(typeof warning=="function"?warning.call($item):warning)&&(__.push("     <p>      "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-in-csv-sdmx.htm","The selection you have made is too huge for interactive visualization. You can reduce selection to less than 100 timeseries or download selected data to explore it."))),__.push("     <\/p>    ")),__.push("      <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-in-csv-sdmx.htm","Download selected data in one of the specified formats:"))),__.push('<\/span>       <form action="/data/download" target ="_blank"  id="download-form" method="post">           <div class="format-list">      <button class="csv">       <div class="export-item"><\/div>       <div class="export-item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-in-csv-sdmx.htm","Comma Separated Values"))),__.push('<\/div>       <div class="export-item-format">(CSV)<\/div>      <\/button>      <button class="xlsx">       <div class="export-item"><\/div>       <div class="export-item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-in-csv-sdmx.htm","MS Excel"))),__.push('<\/div>       <div class="export-item-format">(XLSX)<\/div>      <\/button>      <button class="atom">       <div class="export-item"><\/div>       <div class="export-item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-in-csv-sdmx.htm","OData"))),__.push('<\/div>       <div class="export-item-format">(Atomsvc)<\/div>      <\/button>     <\/div>          '),typeof(showBilling&&Knoema.CommunityBilling)!="undefined"&&(showBilling&&Knoema.CommunityBilling)!=null&&(typeof(showBilling&&Knoema.CommunityBilling)=="function"?(showBilling&&Knoema.CommunityBilling).call($item):showBilling&&Knoema.CommunityBilling)&&(__.push("      "),typeof Knoema.CommunityBilling!="undefined"&&Knoema.CommunityBilling!=null&&(__=__.concat($item.nest("Tmpl-charge-code-dialog",Knoema.CommunityBilling,null))),__.push("     ")),__.push('       <input id="pivot-request" name="requestString" type="hidden" />     <input id="feature-available" type="hidden" value="'),typeof featureAvailable!="undefined"&&featureAvailable!=null&&__.push($.encode(typeof featureAvailable=="function"?featureAvailable.call($item):featureAvailable)),__.push('" />     <input id="format" name="format" type="hidden" value="" />       <\/form>     ')),__.push("      "),typeof datasetImageUrl!="undefined"&&datasetImageUrl!=null&&(typeof datasetImageUrl=="function"?datasetImageUrl.call($item):datasetImageUrl)&&(__.push("    <br />    "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/premium/download-in-csv-sdmx.htm","Or alternatively you can [download all data|href={datasetImageUrl}] at once in a single file.",{datasetImageUrl:datasetImageUrl})),__.push("    <br />   ")),__.push('     <br />   <span id="dev-or-geek">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-in-csv-sdmx.htm","Developer or data geek? Use one of the following links to access data from your application:"))),__.push('<\/span>   <span id="json"><a href="#" target="_blank" >JSON<\/a><\/span><span id="sdmx">, <a href="#" target="_blank">SDMX<\/a><\/span><span id="odata">, <a href="#" target="_blank">OData<\/a><\/span><span id="python">, <a href="#">Python<\/a><\/span><span id="r">, <a href="#">R<\/a><\/span><span id="csharp">, <a href="#">C#<\/a><\/span><span id="xlsx-formula">, <a href="#">Excel formula<\/a><\/span>   '),!0&&(__=__.concat($item.nest("Tmpl-knoema-dsviewer-codesnippet-dialog",{premium:premium}))),__.push("  <\/div>");return __});jQuery.template("Tmpl-premium-download-limit-exceeded",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="download-limit-exceeded">  '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-limit-exceeded.htm","The selection you have made is too huge for interactive visualization. Reduce your selection to less than 1000 timeseries."))),__.push("  <\/div>");return __});jQuery.template("Tmpl-dataset-segment-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="segment-dialog form" title="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('">   <label class="row bigLabel">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-segment-dialog.htm","Segment name"))),__.push('<\/label>   <input class="row" id="segment-name" type="text" value="'),typeof segmentName!="undefined"&&segmentName!=null&&__.push($.encode(typeof segmentName=="function"?segmentName.call($item):segmentName)),__.push('" />   <label class="row bigLabel">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-segment-dialog.htm","Approved usage by:"))),__.push('<\/label>     <div class="access-levels-radio-lists">    <label class="mtl-radio-btn">     <input class="mtl-radio-btn-input" type="radio" id="segment-access-nobody" name="access" '),typeof(!isPublic&&!anyRoleSelected)=="undefined"||(!isPublic&&!anyRoleSelected)==null||(typeof(!isPublic&&!anyRoleSelected)=="function"?!(!isPublic&&!anyRoleSelected).call($item):isPublic||anyRoleSelected)||__.push(' checked="checked" '),__.push(' />     <span class="mtl-radio-btn-bg"><\/span>    <\/label>    <label for="segment-access-nobody">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-segment-dialog.htm","None"))),__.push('<\/label>   <\/div>     <div class="access-levels-radio-lists">    <label class="mtl-radio-btn">     <input class="mtl-radio-btn-input" type="radio" id="segment-access-users" name="access" '),typeof(isPublic&&!anyRoleSelected)!="undefined"&&(isPublic&&!anyRoleSelected)!=null&&(typeof(isPublic&&!anyRoleSelected)=="function"?(isPublic&&!anyRoleSelected).call($item):isPublic&&!anyRoleSelected)&&__.push(' checked="checked" '),__.push(' />     <span class="mtl-radio-btn-bg"><\/span>    <\/label>    <label for="segment-access-users">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-segment-dialog.htm","All registered users"))),__.push("<\/label>   <\/div>     "),typeof(rolesSelection.length!==0)!="undefined"&&rolesSelection.length!==0!=null&&(typeof(rolesSelection.length!==0)=="function"?(rolesSelection.length!==0).call($item):rolesSelection.length!==0)&&(__.push('     <div class="access-levels-radio-lists">    <label class="mtl-radio-btn">     <input class="mtl-radio-btn-input" type="radio" id="segment-access-roles" name="access" '),typeof anyRoleSelected!="undefined"&&anyRoleSelected!=null&&(typeof anyRoleSelected=="function"?anyRoleSelected.call($item):anyRoleSelected)&&__.push(' checked="checked" '),__.push(' />     <span class="mtl-radio-btn-bg"><\/span>    <\/label>    <label for="segment-access-roles">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-segment-dialog.htm","Content roles"))),__.push('<\/label>   <\/div>     <ul class="row" id="segment-access-roles-list" '),typeof!anyRoleSelected!="undefined"&&!anyRoleSelected!=null&&(typeof!anyRoleSelected=="function"?(!anyRoleSelected).call($item):!anyRoleSelected)&&__.push(' style="display: none" '),__.push(">    "),typeof rolesSelection!="undefined"&&rolesSelection!=null&&$.each(typeof rolesSelection=="function"?rolesSelection.call($item):rolesSelection,function(n,role){with(this)__.push('    <li>     <label class="mtl-checkbox">      <input class="mtl-checkbox-input" id="'),typeof role.key!="undefined"&&role.key!=null&&__.push($.encode(typeof role.key=="function"?role.key.call($item):role.key)),__.push('" type="checkbox" '),typeof role.value!="undefined"&&role.value!=null&&(typeof role.value=="function"?role.value.call($item):role.value)&&__.push(' checked="checked" '),__.push(' />      <span class="mtl-checkbox-bg"><\/span>     <\/label>     <label class="role-label" for="'),typeof role.key!="undefined"&&role.key!=null&&__.push($.encode(typeof role.key=="function"?role.key.call($item):role.key)),__.push('">'),typeof role.key!="undefined"&&role.key!=null&&__.push($.encode(typeof role.key=="function"?role.key.call($item):role.key)),__.push("<\/label>    <\/li>    ")}),__.push("   <\/ul>   ")),__.push('   <div class="error-message"><\/div>  <\/div>');return __});jQuery.template("Tmpl-dataset-segment-view-as-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="segment-dialog form" title="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('">   <select id="select-view-as">     <option value="Default" '),typeof(viewAs.viewAs==0)!="undefined"&&viewAs.viewAs==0!=null&&(typeof(viewAs.viewAs==0)=="function"?(viewAs.viewAs==0).call($item):viewAs.viewAs==0)&&__.push('selected="selected"'),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-segment-view-as-dialog.htm","Default"))),__.push('<\/option>     <option value="Anonymous" '),typeof(viewAs.viewAs==1)!="undefined"&&viewAs.viewAs==1!=null&&(typeof(viewAs.viewAs==1)=="function"?(viewAs.viewAs==1).call($item):viewAs.viewAs==1)&&__.push('selected="selected"'),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-segment-view-as-dialog.htm","Anonymous user"))),__.push("<\/option>     "),typeof!$.isEmptyObject=="undefined"||!$.isEmptyObject==null||$.isEmptyObject(viewAs.contentRoles)||(__.push('      <option value="UserWithRoles" '),typeof(viewAs.viewAs==2)!="undefined"&&viewAs.viewAs==2!=null&&(typeof(viewAs.viewAs==2)=="function"?(viewAs.viewAs==2).call($item):viewAs.viewAs==2)&&__.push('selected="selected"'),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-segment-view-as-dialog.htm","User with content roles"))),__.push("<\/option>     ")),__.push("   <\/select>   "),typeof!$.isEmptyObject=="undefined"||!$.isEmptyObject==null||$.isEmptyObject(viewAs.contentRoles)||(__.push('    <div id="content-roles-selection" class="'),typeof(viewAs.viewAs!=2)!="undefined"&&viewAs.viewAs!=2!=null&&(typeof(viewAs.viewAs!=2)=="function"?(viewAs.viewAs!=2).call($item):viewAs.viewAs!=2)&&__.push("hidden"),__.push('">     '),typeof viewAs.contentRoles!="undefined"&&viewAs.contentRoles!=null&&$.each(typeof viewAs.contentRoles=="function"?viewAs.contentRoles.call($item):viewAs.contentRoles,function($index,$value){with(this)__.push('     <label><input type="checkbox" name ="'),typeof $index!="undefined"&&$index!=null&&__.push($.encode(typeof $index=="function"?$index.call($item):$index)),__.push('" '),typeof $value!="undefined"&&$value!=null&&(typeof $value=="function"?$value.call($item):$value)&&__.push(' checked="checked" '),__.push("/> "),typeof $index!="undefined"&&$index!=null&&__.push($.encode(typeof $index=="function"?$index.call($item):$index)),__.push("<\/label><br />     ")}),__.push("    <\/div>   ")),__.push("  <\/div>");return __});jQuery.template("Tmpl-dataset-stages-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="stages-dialog form" title="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('">  <h3>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-stages-dialog.htm","Please select stages for the dataset to use:"))),__.push("<\/h3>  "),typeof settings.stages!="undefined"&&settings.stages!=null&&$.each(typeof settings.stages=="function"?settings.stages.call($item):settings.stages,function(n,item){with(this)__.push('  <label><input type="checkbox" name="'),typeof item.target!="undefined"&&item.target!=null&&__.push($.encode(typeof item.target=="function"?item.target.call($item):item.target)),__.push('" '),typeof item.enabled!="undefined"&&item.enabled!=null&&(typeof item.enabled=="function"?item.enabled.call($item):item.enabled)&&__.push(' checked="checked" '),__.push(" />"),typeof item.target!="undefined"&&item.target!=null&&__.push($.encode(typeof item.target=="function"?item.target.call($item):item.target)),__.push(" - "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-stages-dialog.htm","System"))),__.push("<\/label><br />  ")}),__.push(" <\/div>");return __});jQuery.template("Tmpl-shrink-dataset-details",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push("<div>  "),typeof $data!="undefined"&&$data!=null&&$.each(typeof $data=="function"?$data.call($item):$data,function(dimension,members){with(this)__.push("   <h3>"),typeof dimension!="undefined"&&dimension!=null&&__.push($.encode(typeof dimension=="function"?dimension.call($item):dimension)),__.push("<\/h3>   <ul>    "),typeof members!="undefined"&&members!=null&&$.each(typeof members=="function"?members.call($item):members,function(n,member){with(this)__.push("     <li>"),typeof member!="undefined"&&member!=null&&__.push($.encode(typeof member=="function"?member.call($item):member)),__.push("<\/li>    ")}),__.push("   <\/ul>  ")}),__.push(" <\/div>");return __});jQuery.template("Tmpl-knoema-dsviewer-codesnippet-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dialog" id="codesnippet-dialog">   <button class="close"><\/button>   <div class="python message">    <h2><em class="export-icon py"><\/em>Python<\/h2>    <p>     '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Please use the code snippet below to get the selected data in your Python code. You need to import [Knoema Python Package|href={pythonPackageUrl}|target=_blank] in order for it to work.",{pythonPackageUrl:"https://pypi.python.org/pypi/knoema"})),__.push('    <\/p>   <\/div>   <div class="r message">    <h2><em class="export-icon r"><\/em>R<\/h2>    <p>     '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Please use the code snippet below to get the selected data in your R code. You need to install [Knoema R Package|href={rPackageUrl}|target=_blank] in order for it to work.",{rPackageUrl:"https://github.com/Knoema/knoema-r-driver"})),__.push('    <\/p>   <\/div>   <div class="csharp message">    <h2><em class="export-icon csharp"><\/em>C#<\/h2>    <p>     '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Please use the code snippet below to get the selected data in your C# code. You need to install [Knoema Client Library|href={csharpLibraryUrl}|target=_blank] in order for it to work.",{csharpLibraryUrl:"https://www.nuget.org/packages/Knoema.Client"})),__.push('    <\/p>   <\/div>   <div class="html message">    <h2><em class="export-icon html"><\/em>HTML<\/h2>    <p>     '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Please use the HTML snippet below to embed it into your website or blog.")),__.push('    <\/p>   <\/div>   <div class="json message">    <h2><em class="export-icon json"><\/em>JSON<\/h2>    <p>     '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Please use the URL below to get the selected data in your code.")),__.push('    <\/p>   <\/div>   <div class="sdmx message">    <h2><em class="export-icon sdmx"><\/em>SDMX<\/h2>    <p>     '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Please use the URL below to import the selected data.")),__.push('    <\/p>   <\/div>   <div class="xlsx message">    <h2><em class="export-icon xlsx"><\/em>Excel formula<\/h2>    <p>     '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Please use the formula below to get the selected data in Excel. You need to install latest version of [Knoema DataFinder add-in|href={excelAddInUrl}|target=_blank] in order for it to work.",{excelAddInUrl:"/datafinder"})),__.push("    <\/p>   <\/div>   "),typeof snowflake!="undefined"&&snowflake!=null&&(typeof snowflake=="function"?snowflake.call($item):snowflake)&&(__.push('   <div class="snowflake message">    <h2><em class="export-icon snowflake"><\/em>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Query in Snowflake"))),__.push("<\/h2>   <\/div>   ")),__.push("   "),typeof(typeof premium!="undefined"&&premium)!="undefined"&&(typeof premium!="undefined"&&premium)!=null&&(typeof(typeof premium!="undefined"&&premium)=="function"?(typeof premium!="undefined"&&premium).call($item):typeof premium!="undefined"&&premium)?(__.push('   <div class="activate-premium">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Activate Professional subscription to get code snippet with the selected data."))),__.push('    <a href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" target="_blank" class="go-premium kn-button common green-charcoal">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Activate now"))),__.push("<\/a>    "),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('    <p class="subscriber">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Already have Professional subscription"))),__.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/knoema/dsviewer/codesnippet-dialog.htm","Log in"))),__.push("<\/a><\/p>    ")),__.push("   <\/div>   ")):!0&&(__.push('   <textarea readonly="readonly" rows="8" cols="45" class="snippet-text"><\/textarea>   <div class="cs-control hidden" id="cs-direction">    <div class="cs-direction-ctrl cs-direction-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Insert data as:"))),__.push('<\/div>    <div class="cs-direction-ctrl">     <input type="radio" id="cs-use-rows" class="cs-control-dir-inp" name="cs-direction" value="@rows" />     <label for="cs-use-rows" class="cs-control-dir-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","rows"))),__.push('<\/label>    <\/div>    <div class="cs-direction-ctrl">     <input type="radio" id="cs-use-columns" class="cs-control-dir-inp" name="cs-direction" value="@cols" />     <label for="cs-use-columns" class="cs-control-dir-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","columns"))),__.push('<\/label>    <\/div>   <\/div>   <div class="cs-control hidden" id="cs-include-metadata-control">    <input type="checkbox" id="cs-include-metadata" />    <label class="label-mac" for="cs-include-metadata">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Add dates and metadata to the formula"))),__.push('<\/label>   <\/div>   <div class="cs-control hidden" id="cs-names-control">    <input type="checkbox" id="cs-use-names" />    <label class="label-mac" for="cs-use-names">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Use member names instead of codes"))),__.push('<\/label>   <\/div>   <a id="copy-snippet" href="#" class="ui-button kn-button common accent">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Copy"))),__.push("<\/a>   ")),__.push('   <a id="cancel-snippet" href="#" class="first ui-button ui-button-secondary">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Cancel"))),__.push("<\/a>   "),typeof!removeDataFinderForExport!="undefined"&&!removeDataFinderForExport!=null&&(typeof!removeDataFinderForExport=="function"?(!removeDataFinderForExport).call($item):!removeDataFinderForExport)&&(__.push('   <a id="open-excel" href="#" class="ui-button ui-button-secondary right">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/codesnippet-dialog.htm","Open in Excel"))),__.push("<\/a>   ")),__.push('     <form action="/resource/ExportFormulas" id="formula-export-form" method="post">    <input class="formulas" name="formulas" type="hidden" />    <input class="selection-name" name="selectionName" type="hidden" />   <\/form>  <\/div>');return __});jQuery.template("Tmpl-knoema-dataset-viewer-timeseries-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<table class="knoema-table">  <thead>   <tr>    <th>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-timeseries-list.htm","Time series"))),__.push("<\/th>    <th>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-timeseries-list.htm","Dataset"))),__.push("<\/th>    <th>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-timeseries-list.htm","Source"))),__.push("<\/th>    <th>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-timeseries-list.htm","Date range"))),__.push("<\/th>   <\/tr>  <\/thead>  <tbody>   "),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(n,item){with(this)__.push("    "),!0&&(__=__.concat($item.nest("Tmpl-knoema-dataset-viewer-timeseries-row",{item:item}))),__.push("   ")}),__.push('  <\/tbody> <\/table> <a class="kn-button common accent open-in-search" href="/search?query='),typeof query!="undefined"&&query!=null&&__.push($.encode(typeof query=="function"?query.call($item):query)),__.push('" target="_blank">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-viewer-timeseries-list.htm","Open in search"))),__.push("<\/a>");return __});jQuery.template("Tmpl-knoema-dataset-viewer-timeseries-row",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<tr>  <td>   <a class="time-series-item" href="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('" target="_blank">'),typeof item.title!="undefined"&&item.title!=null&&__.push($.encode(typeof item.title=="function"?item.title.call($item):item.title)),__.push('<\/a>  <\/td>  <td>   <a class="dataset-item" href="'),typeof item.dataset.resourceUrl!="undefined"&&item.dataset.resourceUrl!=null&&__.push($.encode(typeof item.dataset.resourceUrl=="function"?item.dataset.resourceUrl.call($item):item.dataset.resourceUrl)),__.push('" target="_blank">'),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("<\/a>  <\/td>  <td>   "),typeof item.dataset.sourceId!="undefined"&&item.dataset.sourceId!=null&&(typeof item.dataset.sourceId=="function"?item.dataset.sourceId.call($item):item.dataset.sourceId)&&(__.push('    <a class="source-item" href="'),typeof item.dataset.sourceUrl!="undefined"&&item.dataset.sourceUrl!=null&&__.push($.encode(typeof item.dataset.sourceUrl=="function"?item.dataset.sourceUrl.call($item):item.dataset.sourceUrl)),__.push('" target="_blank">'),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("<\/a>   ")),__.push("  <\/td>  <td>   "),typeof(item.startDate&&item.endDate)!="undefined"&&(item.startDate&&item.endDate)!=null&&(typeof(item.startDate&&item.endDate)=="function"?(item.startDate&&item.endDate).call($item):item.startDate&&item.endDate)&&(__.push("    <span>"),typeof(item.startDate+" - "+item.endDate)!="undefined"&&item.startDate+" - "+item.endDate!=null&&__.push($.encode(typeof(item.startDate+" - "+item.endDate)=="function"?(item.startDate+" - "+item.endDate).call($item):item.startDate+" - "+item.endDate)),__.push("<\/span>   ")),__.push("  <\/td> <\/tr>");return __})