jQuery.template("Tmpl-knoema-dsviewer-sidebar-tabs",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof allTabs!="undefined"&&allTabs!=null&&(typeof allTabs=="function"?allTabs.call($item):allTabs)&&(__.push('<button class="tab tools" data-tab="tools">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/sidebar-tabs.htm","Tools"))),__.push("<\/button>")),__.push('  <button class="tab metadata" data-tab="metadata">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/sidebar-tabs.htm","Details"))),__.push("<\/button>  "),typeof health!="undefined"&&health!=null&&(typeof health=="function"?health.call($item):health)&&(__.push('<button class="tab health" data-tab="health">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/sidebar-tabs.htm","Health"))),__.push("<\/button>")),__.push("  "),typeof history!="undefined"&&history!=null&&(typeof history=="function"?history.call($item):history)&&(__.push('<button class="tab history" data-tab="history">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/sidebar-tabs.htm","Archive"))),__.push("<\/button>")),__.push("");return __});jQuery.template("Tmpl-knoema-dsviewer-share-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="share-dialog" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/share-dialog.htm","Share"))),__.push('">   <label for="link-to-share">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/share-dialog.htm","Link to share"))),__.push('<\/label>   <input type="text" value="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" id="link-to-share"/>   <label class="share-with-friends">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/share-dialog.htm","Share with friends"))),__.push('<\/label>   <a href="#" class="fb" data-channel="fb" title="Share on Facebook">   <\/a><a href="#" class="tw" data-channel="twitter" title="Share on Twitter"><\/a>  <\/div>');return __});jQuery.template("Tmpl-knoema-dsviewer-selection-too-huge",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dialog" id="selection-too-huge">   <div class="wrapper">    <div class="bg"><\/div>    '),typeof!limitExceeded!="undefined"&&!limitExceeded!=null&&(typeof!limitExceeded=="function"?(!limitExceeded).call($item):!limitExceeded)?(__.push("     <h2>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/selection-too-huge.htm","The selection you have made<br />is too huge for interactive visualization.")),__.push("<\/h2>     <p>      "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/selection-too-huge.htm","Either reduce your selection to fewer than <strong>100 time series<\/strong> or <strong>download the selected data<\/strong> to explore it further.")),__.push("     <\/p>    ")):!0&&(__.push("     <h2>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/selection-too-huge.htm","The selection you have made<br />is too huge")),__.push("<\/h2>     <p>      "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/selection-too-huge.htm","Please reduce it to <strong>100 timeseries<\/strong><br />to load interactive visualizations<br /> or reduce to {limit} timeseries <strong>to request downloads<\/strong>.",{limit:downloadSeriesLimit})),__.push("     <\/p>    ")),__.push("    "),typeof datasetImageUrl!="undefined"&&datasetImageUrl!=null&&(typeof datasetImageUrl=="function"?datasetImageUrl.call($item):datasetImageUrl)&&(__.push("    <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/selection-too-huge.htm","Or alternatively you can [download all data|href={datasetImageUrl}] at once in a single file.",{datasetImageUrl:datasetImageUrl})),__.push("    ")),__.push("   <\/div>  <\/div>");return __});jQuery.template("Tmpl-knoema-dsviewer-gadget-export-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dialog" id="modern-gadget-export-dialog">   <h2><em class="export-icon '),typeof format!="undefined"&&format!=null&&__.push($.encode(typeof format=="function"?format.call($item):format)),__.push('"><\/em>'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<\/h2>   <button class="close"><\/button>   '),typeof isPremiumUser!="undefined"&&isPremiumUser!=null&&(typeof isPremiumUser=="function"?isPremiumUser.call($item):isPremiumUser)?(__.push('    <div class="watermarks clearfix">     <input type="checkbox" id="watermark" /><label for="watermark">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/gadget-export-dialog.htm","Do not insert watermarks"))),__.push('<\/label>    <\/div>    <div class="insert-gadget-as-image clearfix">     <input type="checkbox" id="insert-gadget-as-image" /><label for="insert-gadget-as-image">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/gadget-export-dialog.htm","Insert static images instead of live charts"))),__.push('<\/label>    <\/div>    <div id="dialog-warning-message"><\/div>    <a id="export" href="#" class="ui-button kn-button common accent">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/gadget-export-dialog.htm","Export"))),__.push("<\/a>   ")):!0&&(__.push('    <div class="activate-premium">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/gadget-export-dialog.htm","Our Professional users have access to our full suite of export options."))),__.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/gadget-export-dialog.htm","Go Professional"))),__.push("<\/a>     "),typeof!authenticated!="undefined"&&!authenticated!=null&&(typeof!authenticated=="function"?(!authenticated).call($item):!authenticated)&&(__.push('     <p class="subscriber">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/gadget-export-dialog.htm","Already have Professional account?"))),__.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/gadget-export-dialog.htm","Log in"))),__.push("<\/a><\/p>     ")),__.push("    <\/div>   ")),__.push("  <\/div>");return __});jQuery.template("Tmpl-knoema-dsviewer-request-update",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="request-update-dialog" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/request-update.htm","Confirmation"))),__.push('">  <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/request-update.htm","Need this dataset updated? Feel free to add a message below and then click 'Send request' to proceed."))),__.push("<\/p>  <textarea placeholder='"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/request-update.htm","(Optional) Additional comments"))),__.push("'><\/textarea> <\/div>");return __});jQuery.template("Tmpl-knoema-dsviewer-request-update-success",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="request-update-dialog-success" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/request-update-success.htm","Confirmation"))),__.push('">  <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/request-update-success.htm","We've received your request for review."))),__.push("<\/p>  <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dsviewer/request-update-success.htm","Follow <em><\/em> this dataset to learn when it's next updated.")),__.push("<\/p> <\/div>");return __});jQuery.template("Tmpl-knoema-dsviewer-report-problem",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="report-problem-dialog" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/report-problem.htm","Confirmation"))),__.push('">  <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/report-problem.htm","Does something in this dataset not look right? Let us know by providing details below and then click 'Send report' to proceed."))),__.push('<\/p>  <textarea id="problem-description" placeholder=\''),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dsviewer/report-problem.htm","Describe the problem"))),__.push("'><\/textarea> <\/div>");return __})