jQuery.template("Tmpl-page-export",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="export-dialog">   <span id="title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Export visualization to one of the specified formats:"))),__.push('<\/span>   <div class="format-list">    '),typeof(typeof canPptx=="undefined"||typeof canPptx!="undefined"&&canPptx)!="undefined"&&(typeof canPptx=="undefined"||typeof canPptx!="undefined"&&canPptx)!=null&&(typeof(typeof canPptx=="undefined"||typeof canPptx!="undefined"&&canPptx)=="function"?(typeof canPptx=="undefined"||typeof canPptx!="undefined"&&canPptx).call($item):typeof canPptx=="undefined"||typeof canPptx!="undefined"&&canPptx)&&(__.push('    <button class="pptx">     <div class="export-item"><\/div>     <div class="export-item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","MS PowerPoint"))),__.push('<\/div>     <div class="export-item-format">(PPTX)<\/div>    <\/button>    ')),__.push("    "),typeof(typeof canXlsx=="undefined"||typeof canXlsx!="undefined"&&canXlsx)!="undefined"&&(typeof canXlsx=="undefined"||typeof canXlsx!="undefined"&&canXlsx)!=null&&(typeof(typeof canXlsx=="undefined"||typeof canXlsx!="undefined"&&canXlsx)=="function"?(typeof canXlsx=="undefined"||typeof canXlsx!="undefined"&&canXlsx).call($item):typeof canXlsx=="undefined"||typeof canXlsx!="undefined"&&canXlsx)&&(__.push('    <button class="xlsx">     <div class="export-item"><\/div>     <div class="export-item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","MS Excel"))),__.push('<\/div>     <div class="export-item-format">(XLSX)<\/div>    <\/button>    ')),__.push("    <!--"),typeof isGadgetExport!="undefined"&&isGadgetExport!=null&&(typeof isGadgetExport=="function"?isGadgetExport.call($item):isGadgetExport)&&(__.push("   "),typeof fromAtlas!="undefined"&&fromAtlas!=null&&(typeof fromAtlas=="function"?fromAtlas.call($item):fromAtlas)&&(__.push('    <button class="sheets">     <div class="export-item"><\/div>     <div class="export-item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Google Sheets"))),__.push("<\/div>    <\/button>   ")),__.push("   ")),__.push("-->    "),typeof(typeof canPdf=="undefined"||typeof canPdf!="undefined"&&canPdf)!="undefined"&&(typeof canPdf=="undefined"||typeof canPdf!="undefined"&&canPdf)!=null&&(typeof(typeof canPdf=="undefined"||typeof canPdf!="undefined"&&canPdf)=="function"?(typeof canPdf=="undefined"||typeof canPdf!="undefined"&&canPdf).call($item):typeof canPdf=="undefined"||typeof canPdf!="undefined"&&canPdf)&&(__.push('    <button class="pdf">     <div class="export-item"><\/div>     <div class="export-item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Adobe Acrobat Reader"))),__.push('<\/div>     <div class="export-item-format">(PDF)<\/div>    <\/button>    ')),__.push("    "),typeof isGadgetExport!="undefined"&&isGadgetExport!=null&&(typeof isGadgetExport=="function"?isGadgetExport.call($item):isGadgetExport)&&(__.push("    "),typeof(typeof canPng=="undefined"||typeof canPng!="undefined"&&canPng)!="undefined"&&(typeof canPng=="undefined"||typeof canPng!="undefined"&&canPng)!=null&&(typeof(typeof canPng=="undefined"||typeof canPng!="undefined"&&canPng)=="function"?(typeof canPng=="undefined"||typeof canPng!="undefined"&&canPng).call($item):typeof canPng=="undefined"||typeof canPng!="undefined"&&canPng)&&(__.push('    <button class="png">     <div class="export-item"><\/div>     <div class="export-item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Image"))),__.push('<\/div>     <div class="export-item-format">(PNG)<\/div>    <\/button>    ')),__.push("    "),typeof(typeof canSnowflake!="undefined"&&canSnowflake)!="undefined"&&(typeof canSnowflake!="undefined"&&canSnowflake)!=null&&(typeof(typeof canSnowflake!="undefined"&&canSnowflake)=="function"?(typeof canSnowflake!="undefined"&&canSnowflake).call($item):typeof canSnowflake!="undefined"&&canSnowflake)&&(__.push('    <button class="snowflake">     <div class="export-item"><\/div>     <div class="export-item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Snowflake"))),__.push('<\/div>     <div class="export-item-format">(SQL)<\/div>    <\/button>    ')),__.push("    ")),__.push("   <\/div>   "),typeof isPremiumUser!="undefined"&&isPremiumUser!=null&&(typeof isPremiumUser=="function"?isPremiumUser.call($item):isPremiumUser)?(__.push('   <div class="watermarks">    <input type="checkbox" id="watermark" /><span class="checkmark"><\/span><label for="watermark">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Do not insert watermarks"))),__.push("<\/label>   <\/div>   "),typeof(typeof canPptx=="undefined"&&typeof canXlsx=="undefined"||typeof canPptx!="undefined"&&canPptx||typeof canXlsx!="undefined"&&canXlsx)!="undefined"&&(typeof canPptx=="undefined"&&typeof canXlsx=="undefined"||typeof canPptx!="undefined"&&canPptx||typeof canXlsx!="undefined"&&canXlsx)!=null&&(typeof(typeof canPptx=="undefined"&&typeof canXlsx=="undefined"||typeof canPptx!="undefined"&&canPptx||typeof canXlsx!="undefined"&&canXlsx)=="function"?(typeof canPptx=="undefined"&&typeof canXlsx=="undefined"||typeof canPptx!="undefined"&&canPptx||typeof canXlsx!="undefined"&&canXlsx).call($item):typeof canPptx=="undefined"&&typeof canXlsx=="undefined"||typeof canPptx!="undefined"&&canPptx||typeof canXlsx!="undefined"&&canXlsx)&&(__.push('   <div class="insert-gadget-as-image">    <input type="checkbox" '),typeof(typeof gadgetsAsImageByDefault!="undefined"&&gadgetsAsImageByDefault)!="undefined"&&(typeof gadgetsAsImageByDefault!="undefined"&&gadgetsAsImageByDefault)!=null&&(typeof(typeof gadgetsAsImageByDefault!="undefined"&&gadgetsAsImageByDefault)=="function"?(typeof gadgetsAsImageByDefault!="undefined"&&gadgetsAsImageByDefault).call($item):typeof gadgetsAsImageByDefault!="undefined"&&gadgetsAsImageByDefault)&&__.push(' checked="checked" '),__.push(' id="insert-gadget-as-image" /><span class="checkmark"><\/span><label for="insert-gadget-as-image">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Insert static images instead of live charts"))),__.push("<\/label>   <\/div>   ")),__.push("   ")):!0&&(__.push("   "),typeof variant!="undefined"&&variant!=null&&(typeof variant=="function"?variant.call($item):variant)?(__.push("   "),typeof(variant==="Sign up Free now")!="undefined"&&variant==="Sign up Free now"!=null&&(typeof(variant==="Sign up Free now")=="function"?(variant==="Sign up Free now").call($item):variant==="Sign up Free now")&&(__.push('   <div class="activate-premium">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","To get 1 free data or visualization export sign up now."))),__.push('    <div><a href="/sys/login/signup?returnUrl='),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" target="_blank" class="go-premium ui-button kn-button common green-charcoal">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Sign up Free now"))),__.push("<\/a><\/div>    "),typeof!authenticated!="undefined"&&!authenticated!=null&&(typeof!authenticated=="function"?(!authenticated).call($item):!authenticated)&&(__.push("    "),typeof fromEmbed!="undefined"&&fromEmbed!=null&&(typeof fromEmbed=="function"?fromEmbed.call($item):fromEmbed)?(__.push('    <p class="subscriber">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Already have a Knoema account?"))),__.push(' <a href="/sys/login?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('" target="_blank">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Log in"))),__.push("<\/a><\/p>    ")):!0&&(__.push('    <p class="subscriber">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Already have a Knoema 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/page-export.htm","Log in"))),__.push("<\/a><\/p>    ")),__.push("    ")),__.push("   <\/div>   ")),__.push("   "),typeof(variant==="Go Professional")!="undefined"&&variant==="Go Professional"!=null&&(typeof(variant==="Go Professional")=="function"?(variant==="Go Professional").call($item):variant==="Go Professional")&&(__.push('   <div class="activate-premium">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Get watermark-free exports and live, animated visualizations with a Knoema Professional account."))),__.push('    <div><a href="/products/professional/get?returnUrl='),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" target="_blank" class="go-premium ui-button kn-button common green-charcoal">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Go Professional"))),__.push("<\/a><\/div>    "),typeof!authenticated!="undefined"&&!authenticated!=null&&(typeof!authenticated=="function"?(!authenticated).call($item):!authenticated)&&(__.push("    "),typeof fromEmbed!="undefined"&&fromEmbed!=null&&(typeof fromEmbed=="function"?fromEmbed.call($item):fromEmbed)?(__.push('    <p class="subscriber">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Already have a Professional account?"))),__.push(' <a href="/sys/login?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('" target="_blank">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Log in"))),__.push("<\/a><\/p>    ")):!0&&(__.push('    <p class="subscriber">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Already have a 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/page-export.htm","Log in"))),__.push("<\/a><\/p>    ")),__.push("    ")),__.push("   <\/div>   ")),__.push("     ")):!0&&(__.push('   <div class="activate-premium">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Get watermark-free exports and live, animated visualizations with a Knoema Professional account."))),__.push('    <div><a href="/products/professional/get?returnUrl='),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" target="_blank" class="go-premium ui-button kn-button common green-charcoal">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Go Professional"))),__.push("<\/a><\/div>    "),typeof!authenticated!="undefined"&&!authenticated!=null&&(typeof!authenticated=="function"?(!authenticated).call($item):!authenticated)&&(__.push("    "),typeof fromEmbed!="undefined"&&fromEmbed!=null&&(typeof fromEmbed=="function"?fromEmbed.call($item):fromEmbed)?(__.push('    <p class="subscriber">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Already have a Professional account?"))),__.push(' <a href="/sys/login?returnUrl='),typeof returnUrl!="undefined"&&returnUrl!=null&&__.push($.encode(typeof returnUrl=="function"?returnUrl.call($item):returnUrl)),__.push('" target="_blank">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Log in"))),__.push("<\/a><\/p>    ")):!0&&(__.push('    <p class="subscriber">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Already have a 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/page-export.htm","Log in"))),__.push("<\/a><\/p>    ")),__.push("    ")),__.push("   <\/div>   ")),__.push("   ")),__.push('   <div class="export-indicator">    <img width="16" height="16" src="/Img/v2/shared/ajax-loader.gif" alt="" />    <span>     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/page-export.htm","Exporting"))),__.push('    <\/span>   <\/div>  <\/div>    <div id="dialog-warning-message"><\/div>    '),typeof Knoema.CommunityBilling!="undefined"&&Knoema.CommunityBilling!=null&&(typeof Knoema.CommunityBilling=="function"?Knoema.CommunityBilling.call($item):Knoema.CommunityBilling)&&(__.push("  "),typeof Knoema.CommunityBilling!="undefined"&&Knoema.CommunityBilling!=null&&(__=__.concat($item.nest("Tmpl-charge-code-dialog",Knoema.CommunityBilling,null))),__.push("  ")),__.push('    <form action="/resource/ExportGadget" id="gadget-export-form" method="post">   <input id="gadget-content" name="content" type="hidden" />   <input id="export-format" name="format" type="hidden" />   <input id="gadget-name" name="gadgetName" type="hidden" />   <input id="gadget-watermark" name="insertWatermark" type="hidden" />   <input id="gadget-ff-export" name="factFinderExport" type="hidden" />   <input id="gadget-as-image" name="gadgetAsImage" type="hidden" />   <input id="body-font-size" name="bodyFontSize" type="hidden" />   <input id="gadget-id" name="gadgetId" type="hidden" />   <input id="gadget-export-page-id" name="pageId" type="hidden" />   <input id="gadget-data-finder-export" name="dataFinderExport" type="hidden" />  <\/form>');return __});jQuery.template("Tmpl-embed-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="embed-dialog" title=" '),typeof isDataset!="undefined"&&isDataset!=null&&(typeof isDataset=="function"?isDataset.call($item):isDataset)?(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Embed Dataset"))),__.push("")):typeof isGeoPlayground!="undefined"&&isGeoPlayground!=null&&(typeof isGeoPlayground=="function"?isGeoPlayground.call($item):isGeoPlayground)?(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Embed Geo Playground"))),__.push("")):!0&&(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Embed Gadget"))),__.push("")),__.push('">   <div>    '),typeof message!="undefined"&&message!=null&&(typeof message=="function"?message.call($item):message)&&(__.push('    <label class="warning-message">'),typeof message!="undefined"&&message!=null&&__.push($.encode(typeof message=="function"?message.call($item):message)),__.push("<\/label>    ")),__.push('    <label class="embed-label">     '),typeof isDataset!="undefined"&&isDataset!=null&&(typeof isDataset=="function"?isDataset.call($item):isDataset)?(__.push("     "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Link to this dataset"))),__.push(":     ")):typeof isGeoPlayground!="undefined"&&isGeoPlayground!=null&&(typeof isGeoPlayground=="function"?isGeoPlayground.call($item):isGeoPlayground)?(__.push("     "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Link to this playground"))),__.push(":     ")):!0&&(__.push("     "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/embed-dialog.htm","Link to this gadget"))),__.push(":     ")),__.push('    <\/label>    <br />    <textarea id="embed-markup" readonly="readonly" rows="4" cols="45"><\/textarea>    <\/div>  <\/div>');return __});jQuery.template("Tmpl-knoema-page-gadget-menu",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="gadget_actions'),typeof view!="undefined"&&view!=null&&(typeof view=="function"?view.call($item):view)&&__.push(" view"),__.push('">      <button class="gadget-options section-control-item" title="'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Gadget options","~/Js/knoema/Knoema.Page.js"))),__.push('" aria-label="'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Gadget options","~/Js/knoema/Knoema.Page.js"))),__.push('">    <i class="knoema-ico menu"><\/i>   <\/button>   <div class="gadget-menu">    <div class="arrow-holder">     <em class="arrow"><\/em>    <\/div>    <div class="gadget-menu-body">     '),typeof gadgetMenuOptions!="undefined"&&gadgetMenuOptions!=null&&$.each(typeof gadgetMenuOptions=="function"?gadgetMenuOptions.call($item):gadgetMenuOptions,function(){with(this)__.push("      "),typeof(className!="open-in-geoplayground")!="undefined"&&className!="open-in-geoplayground"!=null&&(typeof(className!="open-in-geoplayground")=="function"?(className!="open-in-geoplayground").call($item):className!="open-in-geoplayground")?(__.push('       <a href="#" class="'),typeof className!="undefined"&&className!=null&&__.push($.encode(typeof className=="function"?className.call($item):className)),__.push('"><em class="knoema-ico '),typeof className!="undefined"&&className!=null&&__.push($.encode(typeof className=="function"?className.call($item):className)),__.push('"><\/em> '),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("<\/a>      ")):!0&&(__.push('       <a href="#" class="'),typeof className!="undefined"&&className!=null&&__.push($.encode(typeof className=="function"?className.call($item):className)),__.push('"><em class="fa fa-map-marker"><\/em> '),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("<\/a>      ")),__.push("     ")}),__.push("    <\/div>   <\/div>     "),typeof editable!="undefined"&&editable!=null&&(typeof editable=="function"?editable.call($item):editable)?(__.push("    "),typeof isTabFeatureEnabled!="undefined"&&isTabFeatureEnabled!=null&&(typeof isTabFeatureEnabled=="function"?isTabFeatureEnabled.call($item):isTabFeatureEnabled)&&(__.push('     <button class="section-control-item add-new-tab" title="'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Add a tab","~/Js/knoema/Knoema.Page.js"))),__.push('" aria-label="'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Add a tab","~/Js/knoema/Knoema.Page.js"))),__.push('">      <i class="knoema-ico tab-add"><\/i>     <\/button>    ')),__.push("   ")):!0&&(__.push('    <button class="gadget-maximize section-control-item '),typeof hideMaximize!="undefined"&&hideMaximize!=null&&(typeof hideMaximize=="function"?hideMaximize.call($item):hideMaximize)&&__.push("hidden"),__.push('" title="'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Gadget maximize","~/Js/knoema/Knoema.Page.js"))),__.push('" aria-label="'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Gadget maximize","~/Js/knoema/Knoema.Page.js"))),__.push('">     <i class="knoema-ico expand '),typeof hideMaximize!="undefined"&&hideMaximize!=null&&(typeof hideMaximize=="function"?hideMaximize.call($item):hideMaximize)&&__.push("hidden"),__.push('"><\/i>    <\/button>   ')),__.push("    <\/div>");return __});jQuery.template("Tmpl-knoema-page-dataset-dialog",function(n,$item){var i=n,__=[],t=$item.data;with(t)__.push('<div id="view-in-dataset-viewer-dialog">   <p>'),typeof message!="undefined"&&message!=null&&__.push(typeof message=="function"?message.call($item):message),__.push("<\/p>  <\/div>");return __});jQuery.template("Tmpl-knoema-page-datasets-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="view-in-dataset-viewer-dialog">   <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/datasets-dialog.htm","This visualization was built using more than one dataset. Open related datasets using the following links:"))),__.push("<\/p>   <ul>    "),typeof datasets!="undefined"&&datasets!=null&&$.each(typeof datasets=="function"?datasets.call($item):datasets,function(n,dataset){with(this)__.push('     <li><a href="'),typeof dataset.url!="undefined"&&dataset.url!=null&&__.push($.encode(typeof dataset.url=="function"?dataset.url.call($item):dataset.url)),__.push('" target="_blank">'),typeof dataset.name!="undefined"&&dataset.name!=null&&__.push($.encode(typeof dataset.name=="function"?dataset.name.call($item):dataset.name)),__.push("<\/a><\/li>    ")}),__.push("   <\/ul>  <\/div>");return __});jQuery.template("Tmpl-knoema-page-gadget-layouts-default",function(n,t){var r=n,__=[],i=t.data;with(i)__.push('<div class="edit_pane">   <h2 class="gadget-title"><\/h2>   <span class="gadget-subtitle"><\/span>    <\/div>  <div class="inner_container">   <div class="visualization">   <\/div>   <div class="footer">   <\/div>  <\/div>');return __});jQuery.template("Tmpl-knoema-page-gadget-layouts-naked",function(n,t){var r=n,__=[],i=t.data;with(i)__.push('<div class="visualization">  <\/div>  <div class="footer">  <\/div>');return __});jQuery.template("Tmpl-theme-picker-container",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="arrow-holder">   <em class="arrow"><\/em>  <\/div>    <div class="theme-picker-container-body">   '),typeof isCustomThemes!="undefined"&&isCustomThemes!=null&&(typeof isCustomThemes=="function"?isCustomThemes.call($item):isCustomThemes)&&(__.push('     <div class="theme-group">    <p>'),typeof communityThemesName!="undefined"&&communityThemesName!=null&&__.push($.encode(typeof communityThemesName=="function"?communityThemesName.call($item):communityThemesName)),__.push('<\/p>    <div class="items-container">     '),typeof uniqueCustomThemes!="undefined"&&uniqueCustomThemes!=null&&$.each(typeof uniqueCustomThemes=="function"?uniqueCustomThemes.call($item):uniqueCustomThemes,function(n,name){with(this)__.push('      <button class="g custom-theme '),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" data-theme-name="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" style="background-image: url(/theme/Img/'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('_theme.png)"><\/button>     ')}),__.push("    <\/div>   <\/div>     ")),__.push("     "),typeof showCustomThemes!="undefined"&&showCustomThemes!=null&&(typeof showCustomThemes=="function"?showCustomThemes.call($item):showCustomThemes)&&(__.push('     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Multi-hue"))),__.push('<\/p>    <div class="items-container">     <button class="g BuGn" data-theme-name="BuGn"><\/button>     <button class="g BuPu" data-theme-name="BuPu"><\/button>     <button class="g GnBu" data-theme-name="GnBu"><\/button>     <button class="g OrRd" data-theme-name="OrRd"><\/button>     <button class="g PuBu" data-theme-name="PuBu"><\/button>     <button class="g PuBuGn" data-theme-name="PuBuGn"><\/button>     <button class="g PuRd" data-theme-name="PuRd"><\/button>     <button class="g RdPu" data-theme-name="RdPu"><\/button>     <button class="g YlGn" data-theme-name="YlGn"><\/button>     <button class="g YlGnBu" data-theme-name="YlGnBu"><\/button>     <button class="g YlOrBr" data-theme-name="YlOrBr"><\/button>     <button class="g YlOrRd" data-theme-name="YlOrRd"><\/button>    <\/div>   <\/div>     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Single-hue"))),__.push('<\/p>    <div class="items-container">     <button class="g Blues" data-theme-name="Blues"><\/button>     <button class="g Greens" data-theme-name="Greens"><\/button>     <button class="g Greys" data-theme-name="Greys"><\/button>     <button class="g Oranges" data-theme-name="Oranges"><\/button>     <button class="g Purples" data-theme-name="Purples"><\/button>     <button class="g Reds" data-theme-name="Reds"><\/button>    <\/div>   <\/div>     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Diverging"))),__.push('<\/p>    <div class="items-container">     <button class="g BrBG" data-theme-name="BrBG"><\/button>     <button class="g PiYG" data-theme-name="PiYG"><\/button>     <button class="g PRGn" data-theme-name="PRGn"><\/button>     <button class="g PuOr" data-theme-name="PuOr"><\/button>     <button class="g RdBu" data-theme-name="RdBu"><\/button>     <button class="g RdGy" data-theme-name="RdGy"><\/button>     <button class="g RdYlBu" data-theme-name="RdYlBu"><\/button>     <button class="g RdYlGn" data-theme-name="RdYlGn"><\/button>     <button class="g Spectral" data-theme-name="Spectral"><\/button>    <\/div>   <\/div>     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Qualitative"))),__.push('<\/p>    <div class="items-container">     <button class="g Accent" data-theme-name="Accent"><\/button>     <button class="g Dark2" data-theme-name="Dark2"><\/button>     <button class="g Paired" data-theme-name="Paired"><\/button>     <button class="g Pastel1" data-theme-name="Pastel1"><\/button>     <button class="g Pastel2" data-theme-name="Pastel2"><\/button>     <button class="g Set1" data-theme-name="Set1"><\/button>     <button class="g Set2" data-theme-name="Set2"><\/button>     <button class="g Set3" data-theme-name="Set3"><\/button>    <\/div>   <\/div>     <div class="theme-group">    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/theme-picker-container.htm","Classic"))),__.push('<\/p>    <div class="items-container">     <button class="g juicy" data-theme-name="juicy"><\/button>     <button class="g fruity" data-theme-name="fruity"><\/button>     <button class="g bluegreen" data-theme-name="bluegreen"><\/button>     <button class="g white" data-theme-name="white"><\/button>     <button class="g green" data-theme-name="green"><\/button>     <button class="g blue" data-theme-name="blue"><\/button>     <button class="g orange" data-theme-name="orange"><\/button>     <button class="g gray" data-theme-name="gray"><\/button>     <button class="g violet" data-theme-name="violet"><\/button>     <button class="g pink" data-theme-name="pink"><\/button>     <button class="g red" data-theme-name="red"><\/button>     <button class="g maroon" data-theme-name="maroon"><\/button>    <\/div>   <\/div>     ')),__.push("    <\/div>");return __});jQuery.template("Tmpl-news",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="column">    <a target="_blank" href="'),typeof link!="undefined"&&link!=null&&__.push($.encode(typeof link=="function"?link.call($item):link)),__.push('"><h2>'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/h2><\/a>   "),typeof description!="undefined"&&description!=null&&__.push($.encode(typeof description=="function"?description.call($item):description)),__.push("  <\/div>");return __});jQuery.template("Tmpl-vizOfTheDay-feed",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(n,item){with(this)__.push('<!--  --><div class="viz">    <div class="thumbnail" data-key="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('">    '),typeof mobile!="undefined"&&mobile!=null&&(typeof mobile=="function"?mobile.call($item):mobile)?(__.push('     <a class="hover" href="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('" rel="nofollow" target="_blank" style="background-image: url(\''),typeof item.thumbnail!="undefined"&&item.thumbnail!=null&&__.push($.encode(typeof item.thumbnail=="function"?item.thumbnail.call($item):item.thumbnail)),__.push("')\"><\/a>    ")):!0&&(__.push('    <div class="image lazy" data-original="'),typeof thumbnail!="undefined"&&thumbnail!=null&&__.push($.encode(typeof thumbnail=="function"?thumbnail.call($item):thumbnail)),__.push('"><\/div>    <div class="hover" href="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('" rel="nofollow" target="_blank">     <p>      '),typeof item.description!="undefined"&&item.description!=null&&__.push($.encode(typeof item.description=="function"?item.description.call($item):item.description)),__.push('     <\/p>     <div class="statistics">      <a href="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('" target="_blank" class="learn-more kn-button common accent">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/vizOfTheDay-feed.htm","Learn more"))),__.push("<\/a>     <\/div>    <\/div>    ")),__.push('   <\/div>    <h3><a href="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('" rel="nofollow" target="_blank" title="'),typeof item.title!="undefined"&&item.title!=null&&__.push($.encode(typeof item.title=="function"?item.title.call($item):item.title)),__.push('">'),typeof item.title!="undefined"&&item.title!=null&&__.push($.encode(typeof item.title=="function"?item.title.call($item):item.title)),__.push("<\/a><\/h3>  <\/div><!---->")}),__.push("");return __});jQuery.template("Tmpl-charge-code-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="charge-code-dialog form" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/charge-code-dialog.htm","Enter Charge Code"))),__.push('">   <label class="wholeline">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/charge-code-dialog.htm","Charge Code:"))),__.push('<\/label>   <input type="text" class="chargeCode text-box single-line" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/charge-code-dialog.htm","Enter Charge Code"))),__.push('" required pattern="'),typeof chargeCodeTemplate!="undefined"&&chargeCodeTemplate!=null&&__.push($.encode(typeof chargeCodeTemplate=="function"?chargeCodeTemplate.call($item):chargeCodeTemplate)),__.push('" />   <label class="error-message wholeline hidden"><\/label>   <div class="disclaimer">'),typeof chargeCodeDisclaimer!="undefined"&&chargeCodeDisclaimer!=null&&__.push(typeof chargeCodeDisclaimer=="function"?chargeCodeDisclaimer.call($item):chargeCodeDisclaimer),__.push("<\/div>  <\/div>");return __});jQuery.template("Tmpl-premium-download-sign-up",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="download-sign-up">       <div>    <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-sign-up.htm","Get access to data and visualizations. Join our data community."))),__.push('<\/p>     <a id="site-sign-up-dsbrowser" class="signup" href="'),typeof signUpUrl!="undefined"&&signUpUrl!=null&&__.push($.encode(typeof signUpUrl=="function"?signUpUrl.call($item):signUpUrl)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/premium/download-sign-up.htm","Sign up"))),__.push("<\/a>    <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/premium/download-sign-up.htm","Already have an account? [Login|id=site-login-dsbrowser|href={loginUrl}] now.",{loginUrl:loginUrl})),__.push("<\/p>    <\/div>    <\/div>");return __});jQuery.template("Tmpl-knoema-page-feed",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="feed-bg" style="'),typeof backgroundStyle!="undefined"&&backgroundStyle!=null&&__.push($.encode(typeof backgroundStyle=="function"?backgroundStyle.call($item):backgroundStyle)),__.push('"><\/div> <div class="feed-content '),typeof(pages.length>0?"paging":"")!="undefined"&&(pages.length>0?"paging":"")!=null&&__.push($.encode(typeof(pages.length>0?"paging":"")=="function"?(pages.length>0?"paging":"").call($item):pages.length>0?"paging":"")),__.push('"><\/div>  '),typeof(pages.length>0)!="undefined"&&pages.length>0!=null&&(typeof(pages.length>0)=="function"?(pages.length>0).call($item):pages.length>0)&&(__.push('  <div class="pages">   '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/feed.htm","Page:"))),__.push("   <ul>    "),typeof pages!="undefined"&&pages!=null&&$.each(typeof pages=="function"?pages.call($item):pages,function(n,value){with(this)__.push('     <li class="'),typeof(value==1?"active":"")!="undefined"&&(value==1?"active":"")!=null&&__.push($.encode(typeof(value==1?"active":"")=="function"?(value==1?"active":"").call($item):value==1?"active":"")),__.push('" style="color: #'),typeof titleColor!="undefined"&&titleColor!=null&&__.push($.encode(typeof titleColor=="function"?titleColor.call($item):titleColor)),__.push('">'),typeof value!="undefined"&&value!=null&&__.push($.encode(typeof value=="function"?value.call($item):value)),__.push("<\/li>    ")}),__.push("   <\/ul>  <\/div> ")),__.push("");return __});jQuery.template("Tmpl-knoema-page-feed-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<ul data-page="'),typeof page!="undefined"&&page!=null&&__.push($.encode(typeof page=="function"?page.call($item):page)),__.push('" class="feed '),typeof layout!="undefined"&&layout!=null&&__.push($.encode(typeof layout=="function"?layout.call($item):layout)),__.push(" "),typeof(page?"page":"")!="undefined"&&(page?"page":"")!=null&&__.push($.encode(typeof(page?"page":"")=="function"?(page?"page":"").call($item):page?"page":"")),__.push('">  '),typeof items!="undefined"&&items!=null&&$.each(typeof items=="function"?items.call($item):items,function(){with(this)__.push('   <li>    <a class="title" target="'),typeof target!="undefined"&&target!=null&&__.push($.encode(typeof target=="function"?target.call($item):target)),__.push('" href="'),typeof link!="undefined"&&link!=null&&__.push($.encode(typeof link=="function"?link.call($item):link)),__.push('" style="color: #'),typeof titleColor!="undefined"&&titleColor!=null&&__.push($.encode(typeof titleColor=="function"?titleColor.call($item):titleColor)),__.push('" tabindex="'),typeof(isEditing?-1:0)!="undefined"&&(isEditing?-1:0)!=null&&__.push($.encode(typeof(isEditing?-1:0)=="function"?(isEditing?-1:0).call($item):isEditing?-1:0)),__.push('">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/a>    "),typeof pubDate!="undefined"&&pubDate!=null&&(typeof pubDate=="function"?pubDate.call($item):pubDate)&&(__.push('     <div class="pubdate">'),typeof pubDate!="undefined"&&pubDate!=null&&__.push($.encode(typeof pubDate=="function"?pubDate.call($item):pubDate)),__.push("<\/div>    ")),__.push('    <div class="description">'),typeof description!="undefined"&&description!=null&&__.push($.encode(typeof description=="function"?description.call($item):description)),__.push("<\/div>   <\/li>  ")}),__.push(" <\/ul>");return __});jQuery.template("Tmpl-knoema-gadget-grid-card-view",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="grid-card-view">  <div class="card-placeholder" style="background-color: '),typeof bgColor!="undefined"&&bgColor!=null&&__.push($.encode(typeof bgColor=="function"?bgColor.call($item):bgColor)),__.push(';">   <table width="100%" style="color: '),typeof fontColor!="undefined"&&fontColor!=null&&__.push($.encode(typeof fontColor=="function"?fontColor.call($item):fontColor)),__.push(";background-color: "),typeof bgColor!="undefined"&&bgColor!=null&&__.push($.encode(typeof bgColor=="function"?bgColor.call($item):bgColor)),__.push(";font-size: "),typeof fontSize!="undefined"&&fontSize!=null&&__.push($.encode(typeof fontSize=="function"?fontSize.call($item):fontSize)),__.push("!important;font-family: "),typeof fontName!="undefined"&&fontName!=null&&__.push($.encode(typeof fontName=="function"?fontName.call($item):fontName)),__.push(';">    '),typeof rowData!="undefined"&&rowData!=null&&$.each(typeof rowData=="function"?rowData.call($item):rowData,function(i,record){with(this)__.push('     <tr style="background-color: '),typeof(i%2==0?stripesBgColor:"inherit")!="undefined"&&(i%2==0?stripesBgColor:"inherit")!=null&&__.push($.encode(typeof(i%2==0?stripesBgColor:"inherit")=="function"?(i%2==0?stripesBgColor:"inherit").call($item):i%2==0?stripesBgColor:"inherit")),__.push('">      <td>       '),typeof record.column!="undefined"&&record.column!=null&&__.push($.encode(typeof record.column=="function"?record.column.call($item):record.column)),__.push("      <\/td>      <td>       "),typeof record.value!="undefined"&&record.value!=null&&__.push($.encode(typeof record.value=="function"?record.value.call($item):record.value)),__.push("      <\/td>     <\/tr>    ")}),__.push('   <\/table>  <\/div>   <div class="toolbar" style="background-color: '),typeof stripesBgColor!="undefined"&&stripesBgColor!=null&&__.push($.encode(typeof stripesBgColor=="function"?stripesBgColor.call($item):stripesBgColor)),__.push(";"),typeof oneRowOnly!="undefined"&&oneRowOnly!=null&&(typeof oneRowOnly=="function"?oneRowOnly.call($item):oneRowOnly)&&__.push("display:none;"),__.push('">   <div class="controls">    <i class="fa fa-step-backward go-to-beginning" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","First"))),__.push('"><\/i>     <i class="fa fa-caret-left go-to-previous" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","Previous"))),__.push('"><\/i>     <input class="current-row" '),typeof oneRowOnly!="undefined"&&oneRowOnly!=null&&(typeof oneRowOnly=="function"?oneRowOnly.call($item):oneRowOnly)&&__.push(" disabled "),__.push(' value="'),typeof(row+1)!="undefined"&&row+1!=null&&__.push($.encode(typeof(row+1)=="function"?(row+1).call($item):row+1)),__.push('"/> '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/gadget/grid-card-view.htm","out of {rowsCount}",{rowsCount:rowsCount})),__.push('     <i class="fa fa-caret-right go-to-next" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","Next"))),__.push('"><\/i>     <i class="fa fa-step-forward go-to-end" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","Last"))),__.push('"><\/i>     '),typeof!oneRowOnly!="undefined"&&!oneRowOnly!=null&&(typeof!oneRowOnly=="function"?(!oneRowOnly).call($item):!oneRowOnly)&&(__.push('     <i class="fa fa-list close-card-view" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/grid-card-view.htm","Go to Grid"))),__.push('"><\/i>    ')),__.push("   <\/div>  <\/div> <\/div>");return __});jQuery.template("Tmpl-gadgetbin-popup",function(n,t){var $=n,__=[],$data=t.data;with($data)__.push('<div id="gadgetbin-popup" class="tooltip-popup">   <div class="triangle"><\/div>   <div class="popup-body">    <i class="knoema-ico bookmark"><\/i>    <p>    '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/gadgetbin-popup.htm.htm","The {type} been added to [Bookmarks|href={gadgetBinUrl}|target=_blank]",{gadgetBinUrl:"/user/fav?tab="+($data.detailsType=="page"?"pages":$data.detailsType=="document"?"documents":$data.detailsType=="dataset"?"data":$data.vizSection?"visualizations":"data"),type:$.R("~/Tmpl/gadgetbin-popup.htm.htm",$data.detailsType)})),__.push("    <\/p>   <\/div>  <\/div>");return __});jQuery.template("Tmpl-gadgetbin-anonymous-user-popup",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="gadgetbin-popup">  '),typeof(content=="Dataset")!="undefined"&&content=="Dataset"!=null&&(typeof(content=="Dataset")=="function"?(content=="Dataset").call($item):content=="Dataset")?(__.push("  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadgetbin-anonymous-user-popup.htm","To bookmark this dataset, sign up free."))),__.push("<\/p>  ")):typeof(content=="Page")!="undefined"&&content=="Page"!=null&&(typeof(content=="Page")=="function"?(content=="Page").call($item):content=="Page")?(__.push("  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadgetbin-anonymous-user-popup.htm","To bookmark this page, sign up free."))),__.push("<\/p>  ")):typeof(content=="Timeseries"||content=="TimeSeries")!="undefined"&&(content=="Timeseries"||content=="TimeSeries")!=null&&(typeof(content=="Timeseries"||content=="TimeSeries")=="function"?(content=="Timeseries"||content=="TimeSeries").call($item):content=="Timeseries"||content=="TimeSeries")?(__.push("  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadgetbin-anonymous-user-popup.htm","To bookmark this timeseries, sign up free."))),__.push("<\/p>  ")):typeof(content=="Visualization")!="undefined"&&content=="Visualization"!=null&&(typeof(content=="Visualization")=="function"?(content=="Visualization").call($item):content=="Visualization")&&(__.push("  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadgetbin-anonymous-user-popup.htm","To bookmark this visualization, sign up free."))),__.push("<\/p>  ")),__.push("  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadgetbin-anonymous-user-popup.htm","You can easily find your bookmarked datasets and pages in your Bookmarks and use bookmarked visualizations to build personal dashboards and presentations."))),__.push(" <\/p>  <\/div>");return __});jQuery.template("Tmpl-knoema-dataset-remote-data-state",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="remote-data-state">  '),typeof(state=="Available")!="undefined"&&state=="Available"!=null&&(typeof(state=="Available")=="function"?(state=="Available").call($item):state=="Available")&&(__.push("   <p>    "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-remote-data-state.htm","Requested data is available from {source} but not ready yet. We need some time to request it.",{source:source})),__.push("   <\/p>   <p>    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-remote-data-state.htm","Please confirm the request."))),__.push('   <\/p>   <p>    <input type="button" class="ui-button confirm-read-remote-data" value="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-remote-data-state.htm","Confirm"))),__.push('" />   <\/p>  ')),__.push("   "),typeof(state=="Requested")!="undefined"&&state=="Requested"!=null&&(typeof(state=="Requested")=="function"?(state=="Requested").call($item):state=="Requested")&&(__.push("   <p>    "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-remote-data-state.htm","Data from {source} is getting ready to use.",{source:source})),__.push("   <\/p>   <p>    "),typeof(isAuthenticatedUser===!0)!="undefined"&&isAuthenticatedUser===!0!=null&&(typeof(isAuthenticatedUser===!0)=="function"?(isAuthenticatedUser===!0).call($item):isAuthenticatedUser===!0)?(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-remote-data-state.htm","We will send you an email once data is available."))),__.push(" ")):!0&&(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dataset-remote-data-state.htm","Please wait."))),__.push(" ")),__.push('   <\/p>   <p>    <img id="remote-data-progress" src="/img/v4/loader.gif" alt="" />   <\/p>  ')),__.push("   "),typeof(state=="Unaccessible")!="undefined"&&state=="Unaccessible"!=null&&(typeof(state=="Unaccessible")=="function"?(state=="Unaccessible").call($item):state=="Unaccessible")&&(__.push("   <p>    "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dataset-remote-data-state.htm","Remote data from {source} is not accessible.",{source:source})),__.push("   <\/p>  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-action-bar-share-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div>  <div id="dialog-warning-message">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/action-bar-share-dialog.htm","This resource is not public. Please ensure that all recipients have access in order to view the content that will be shared."))),__.push('<\/div>  <label for="link-to-share">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/action-bar-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>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/action-bar-share-dialog.htm","Share with friends"))),__.push('<\/label>  <a href="#" class="fb" data-channel="fb" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/action-bar-share-dialog.htm","Share on Facebook"))),__.push('">  <\/a><a href="#" class="tw" data-channel="twitter" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/action-bar-share-dialog.htm","Share on Twitter"))),__.push('">  <\/a>'),typeof canRSS!="undefined"&&canRSS!=null&&(typeof canRSS=="function"?canRSS.call($item):canRSS)&&(__.push('<a rel="nofollow" class="rss" href="#" target="_blank" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/action-bar-share-dialog.htm","RSS"))),__.push('"><\/a>')),__.push(" <\/div>");return __});jQuery.template("Tmpl-subscribe-viz-anonymous",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="triangle"><\/div> <div class="popup-body">  <h4>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/subscribe-viz-anonymous.htm","Subscribe to Data Driven"))),__.push("<\/h4>  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/subscribe-viz-anonymous.htm","Let Knoema deliver expertly designed visualizations and data insights directly to your inbox."))),__.push('<\/p>  <div class="buttons">   <input type="button" value="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/subscribe-viz-anonymous.htm","Cancel"))),__.push('" class="cancel" />   <input type="button" value="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/subscribe-viz-anonymous.htm","Subscribe"))),__.push('" class="subscribe kn-button common green-charcoal" />  <\/div> <\/div>');return __});jQuery.template("Tmpl-follow-signup-redirect",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<div>  "),typeof isDataset!="undefined"&&isDataset!=null&&(typeof isDataset=="function"?isDataset.call($item):isDataset)?(__.push("  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/follow-signup-redirect.htm","To follow this dataset for updates, sign up free."))),__.push("<\/p>  ")):!0&&(__.push("  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/follow-signup-redirect.htm","To follow this page for updates, sign up free."))),__.push("<\/p>  ")),__.push("  "),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)&&(__.push("  <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/follow-signup-redirect.htm",'For unlimited access to follow content, subscribe to <a href="#">Knoema Professional<\/a>.')),__.push("<\/p>  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-follow-go-professional",function(n,t){var $=n,__=[],i=t.data;with(i)__.push("<div>  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/follow-go-professional.htm","You've already set up your one follow request as a free user on Knoema.com."))),__.push("<\/p>  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/follow-go-professional.htm","To enjoy unlimited access to follow content for updates subscribe to Knoema Professional."))),__.push("<\/p> <\/div>");return __});jQuery.template("Tmpl-follow-free-user-first-page",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<div>  "),typeof isDataset!="undefined"&&isDataset!=null&&(typeof isDataset=="function"?isDataset.call($item):isDataset)?(__.push("  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/follow-free-user-first-page.htm","As a free registered user on Knoema.com you may follow one dataset."))),__.push("<\/p>  ")):!0&&(__.push("  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/follow-free-user-first-page.htm","As a free registered user on Knoema.com you may follow one page."))),__.push("<\/p>  ")),__.push("  <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/follow-free-user-first-page.htm","To enjoy unlimited access to follow content for updates subscribe to <a>Knoema Professional<\/a>.")),__.push("<\/p> <\/div>");return __});jQuery.template("Tmpl-follow-premium",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="follow-dialog tooltip-popup">  <div class="triangle"><\/div>  <i class="knoema-ico check"><\/i>  <p>'),typeof message!="undefined"&&message!=null&&__.push($.encode(typeof message=="function"?message.call($item):message)),__.push("<\/p> <\/div>");return __});jQuery.template("Tmpl-alert-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="alert-dialog dialog" id="create-alert">  <div class="triangle"><\/div>  <span class="close"><\/span>  <div>   <p class="title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/alert-dialog.htm","Alert me when"))),__.push('<\/p>   <select id="series" name="series">    '),typeof series!="undefined"&&series!=null&&$.each(typeof series=="function"?series.call($item):series,function(key,serie){with(this)__.push('    <option value="'),typeof key!="undefined"&&key!=null&&__.push($.encode(typeof key=="function"?key.call($item):key)),__.push("\" title='"),typeof serie!="undefined"&&serie!=null&&__.push($.encode(typeof serie=="function"?serie.call($item):serie)),__.push("'>"),typeof serie!="undefined"&&serie!=null&&__.push($.encode(typeof serie=="function"?serie.call($item):serie)),__.push("<\/option>    ")}),__.push('   <\/select>  <\/div>  <div class="condition">   <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/alert-dialog.htm","Сondition"))),__.push('<\/p>   <select id="condition" name="condition">    <option value="less" '),typeof!isMoreThan!="undefined"&&!isMoreThan!=null&&(typeof!isMoreThan=="function"?(!isMoreThan).call($item):!isMoreThan)&&__.push(" selected "),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/alert-dialog.htm","is less than"))),__.push('<\/option>    <option value="more" '),typeof isMoreThan!="undefined"&&isMoreThan!=null&&(typeof isMoreThan=="function"?isMoreThan.call($item):isMoreThan)&&__.push(" selected "),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/alert-dialog.htm","is more than"))),__.push('<\/option>   <\/select>  <\/div>  <div class="units-and-value">   <p id="units" title="'),typeof units!="undefined"&&units!=null&&__.push($.encode(typeof units=="function"?units.call($item):units)),__.push('">'),typeof units!="undefined"&&units!=null&&__.push($.encode(typeof units=="function"?units.call($item):units)),__.push('<\/p>   <input data-val="true" id="value" name="Value" placeholder='),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/alert-dialog.htm","value"))),__.push(' type="text" value='),typeof value!="undefined"&&value!=null&&__.push($.encode(typeof value=="function"?value.call($item):value)),__.push('>   <p id="transformation" title="'),typeof transformation!="undefined"&&transformation!=null&&__.push($.encode(typeof transformation=="function"?transformation.call($item):transformation)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/alert-dialog.htm","Transformation"))),__.push(": "),typeof transformation!="undefined"&&transformation!=null&&__.push($.encode(typeof transformation=="function"?transformation.call($item):transformation)),__.push('<\/p>  <\/div>  <p id="error"><\/p>  <div class="buttons">   <a id="cancel-alert" href="#" class="ui-button ui-button-secondary">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/alert-dialog.htm","Cancel"))),__.push('<\/a>   <a id="update-alert-dataset" href="#" class="ui-button kn-button common accent">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/alert-dialog.htm","OK"))),__.push("<\/a>  <\/div> <\/div>");return __});jQuery.template("Tmpl-dataalert-signup-redirect",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<div>  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataalert-signup-redirect.htm","For using the functionality of data alert need to sign up."))),__.push("<\/p>  "),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)&&(__.push("  <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/dataalert-signup-redirect.htm","For unlimited access to data alert content, subscribe to <a>Knoema Professional<\/a>.")),__.push("<\/p>  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-dataalert-go-professional",function(n,t){var $=n,__=[],i=t.data;with(i)__.push("<div>  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataalert-go-professional.htm","You've already set up your one data alert request as a free user on Knoema.com."))),__.push("<\/p>  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataalert-go-professional.htm","To enjoy unlimited access to data alert content subscribe to Knoema Professional."))),__.push("<\/p> <\/div>");return __});jQuery.template("Tmpl-dataalert-free-user-first-page",function(n,t){var $=n,__=[],i=t.data;with(i)__.push("<div>  <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataalert-free-user-first-page.htm","As a free registered user on Knoema.com you may use only one data alert"))),__.push("<\/p>  <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/dataalert-free-user-first-page.htm","To enjoy unlimited access to data alert content subscribe to <a>Knoema Professional<\/a>.")),__.push("<\/p> <\/div>");return __});jQuery.template("Tmpl-dataalert-welcome",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="alert-dialog" id="welcome-alert">  <span><\/span>  <p>   <b> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataalert-welcome.htm","Create Data Alert"))),__.push("<\/b>  <\/p>  <p>   "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/dataalert-welcome.htm","<strong>Set an alert <\/strong> <em><\/em> and we'll notify you about specific changes in the data. Or, <strong>Follow<\/strong> <em><\/em> to learn about dataset updates.")),__.push("  <\/p> <\/div>");return __});jQuery.template("Tmpl-databrief-confirmation",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<div>  <p> "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/databrief-confirmation.htm","You are a Knoema Free subscriber. Free users may download a single Data Brief."))),__.push("<\/p>  <p> "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/databrief-confirmation.htm","Click Download to continue with your free download."))),__.push("<\/p>  "),typeof withLearnMore!="undefined"&&withLearnMore!=null&&(typeof withLearnMore=="function"?withLearnMore.call($item):withLearnMore)&&(__.push("   <p>"),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/databrief-confirmation.htm","[Learn more|href=/data-brief|target=_blank] about Knoema Data Briefs.")),__.push("<\/p>  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-databrief-gopro-home",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="db-img" style="background-image:url(https://cdn.knoema.com/cheatsheet/thumbnail/ico-construction-small.png);"> <\/div> <div class="ico-check" > <\/div> <div class="ddb-text" >'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/databrief-gopro-home.htm","You’ve downloaded your one free Data Brief."))),__.push('<\/div> <div class="ddb-text" id="go-pro-link">  '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/databrief-gopro-home.htm","[Upgrade to Pro|href=/products/professional/get|target=_blank] for unlimited access.")),__.push(" <\/div>");return __})