jQuery.template("chart-group",function(n,$item){var i=n,__=[],t=$item.data;with(t)__.push('<div class="chart-group"> '),typeof nav!="undefined"&&nav!=null&&(typeof nav=="function"?nav.call($item):nav)&&__.push(' <div class="nav"><span class="prev disable">&larr; previous<\/span><span class="next enable">next &rarr;<\/span><\/div> '),__.push(' <div class="slider"><\/div> <\/div>');return __});jQuery.template("chart",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="fact gadget-container" data-type="Atlas" data-url="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('" data-subindex="'),typeof subindex!="undefined"&&subindex!=null&&__.push($.encode(typeof subindex=="function"?subindex.call($item):subindex)),__.push('">  <div class="search-result-item">  <div class="dataset-content-top">   <div class="header">    <a class="search-result-title atlas-content-browse" href="#">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/a>    "),typeof unit!="undefined"&&unit!=null&&(typeof unit=="function"?unit.call($item):unit)&&(__.push('     <span class="search-metadata-item unit">('),typeof unit!="undefined"&&unit!=null&&__.push($.encode(typeof unit=="function"?unit.call($item):unit)),__.push(")<\/span>    ")),__.push('   <\/div>   <div class="filter">   <\/div>  <\/div>  <div class="clear"><\/div>  <div class="search-result-preview atlas">   <div class="search-result-preview-host gadget-container">   <\/div>  <\/div>  <\/div> '),typeof extraParameters!="undefined"&&extraParameters!=null&&(typeof extraParameters=="function"?extraParameters.call($item):extraParameters)&&(__.push("  "),typeof extraParameters.extra!="undefined"&&extraParameters.extra!=null&&(typeof extraParameters.extra=="function"?extraParameters.extra.call($item):extraParameters.extra)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-result-components",null))),__.push("")),__.push("  "),typeof extraParameters.corpus!="undefined"&&extraParameters.corpus!=null&&(typeof extraParameters.corpus=="function"?extraParameters.corpus.call($item):extraParameters.corpus)&&(__.push(""),!0&&(__=__.concat($item.nest("Tmpl-search-voting",null))),__.push("")),__.push(" ")),__.push("  <\/div>");return __});jQuery.template("concept-info",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<div "),typeof isDeleted!="undefined"&&isDeleted!=null&&(typeof isDeleted=="function"?isDeleted.call($item):isDeleted)&&__.push('class="concept-deleted-overlay"'),__.push('>  <div class="current-concept concept-container current concept'),typeof hasDataCollapsed!="undefined"&&hasDataCollapsed!=null&&(typeof hasDataCollapsed=="function"?hasDataCollapsed.call($item):hasDataCollapsed)&&__.push(" data-collapsed"),__.push('" data-key="'),typeof key!="undefined"&&key!=null&&__.push($.encode(typeof key=="function"?key.call($item):key)),__.push('">   <input type="checkbox" class="concept-checkbox" />   <div class="concept-name"><span class="block-title">Concept:<\/span> <span class="concept-name concept-type-'),typeof(textType||"none").toLowerCase().replace(" ","")!="undefined"&&(textType||"none").toLowerCase().replace(" ","")!=null&&__.push($.encode(typeof(textType||"none").toLowerCase().replace(" ","")=="function"?(textType||"none").toLowerCase().replace(" ","").call($item):(textType||"none").toLowerCase().replace(" ",""))),__.push('">'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('<\/span><input class="concept-name" type="text" /> <span class="concept-type"> ('),typeof(textType||"None")!="undefined"&&(textType||"None")!=null&&__.push($.encode(typeof(textType||"None")=="function"?(textType||"None").call($item):textType||"None")),__.push(') <\/span><select class="concept-type"><\/select><\/div>   <div class="verified '),typeof!isVerified!="undefined"&&!isVerified!=null&&(typeof!isVerified=="function"?(!isVerified).call($item):!isVerified)&&__.push("hidden"),__.push('"><\/div>   <div class="alt-names">    <p class="alt-names">'),typeof(altNames||"(None)")!="undefined"&&(altNames||"(None)")!=null&&__.push($.encode(typeof(altNames||"(None)")=="function"?(altNames||"(None)").call($item):altNames||"(None)")),__.push('<\/p><input type="text" class="alt-names" />   <\/div>   <a href="#" class="ui-button add-child-link">Add child<\/a>    <div class="parent-container">    '),typeof parents!="undefined"&&parents!=null&&$.each(typeof parents=="function"?parents.call($item):parents,function(n,$value){with(this)__.push('    <div class="parent-concept '),typeof $value.isDeleted!="undefined"&&$value.isDeleted!=null&&(typeof $value.isDeleted=="function"?$value.isDeleted.call($item):$value.isDeleted)&&__.push("concept-deleted"),__.push('" data-key="'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push('">     <span class="block-title">Parent:<\/span><div class="parent-concept-name"><a href="#" data-key="'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push('" class="data-related" target="_blank"><span class="concept-name concept-type-'),typeof($value.type||"none").toLowerCase().replace(" ","")!="undefined"&&($value.type||"none").toLowerCase().replace(" ","")!=null&&__.push($.encode(typeof($value.type||"none").toLowerCase().replace(" ","")=="function"?($value.type||"none").toLowerCase().replace(" ","").call($item):($value.type||"none").toLowerCase().replace(" ",""))),__.push('">'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push('<\/span><\/a> <span class="concept-type">'),typeof $value.textType!="undefined"&&$value.textType!=null&&(typeof $value.textType=="function"?$value.textType.call($item):$value.textType)&&(__.push(" ("),typeof($value.textType||"None")!="undefined"&&($value.textType||"None")!=null&&__.push($.encode(typeof($value.textType||"None")=="function"?($value.textType||"None").call($item):$value.textType||"None")),__.push(") ")),__.push('<\/span><div class="verified '),typeof!$value.isVerified!="undefined"&&!$value.isVerified!=null&&(typeof!$value.isVerified=="function"?(!$value.isVerified).call($item):!$value.isVerified)&&__.push("hidden"),__.push('"><\/div><input type="text" class="parent-concept-select" /><\/div>    <\/div>    ')}),__.push('   <\/div>    <div class="data-container">    <p class="data-title"><span class="block-title">Data:<\/span>'),typeof hasDataCollapsed!="undefined"&&hasDataCollapsed!=null&&(typeof hasDataCollapsed=="function"?hasDataCollapsed.call($item):hasDataCollapsed)&&__.push('<i title="Expand" class="fa fa-chevron-down"><\/i><i title="Collapse" class="fa fa-chevron-up"><\/i>'),__.push(""),typeof hasData!="undefined"&&hasData!=null&&(typeof hasData=="function"?hasData.call($item):hasData)&&__.push('<span class="delete-data-item" title="Remove all data"><\/span>'),__.push("<\/p>    "),typeof hasData!="undefined"&&hasData!=null&&(typeof hasData=="function"?hasData.call($item):hasData)?(__.push("    <ul>     "),typeof data!="undefined"&&data!=null&&$.each(typeof data=="function"?data.call($item):data,function(n,$value){with(this)__.push(""),typeof!$value.isDeleted!="undefined"&&!$value.isDeleted!=null&&(typeof!$value.isDeleted=="function"?(!$value.isDeleted).call($item):!$value.isDeleted)&&(__.push('     <li>      <input type="checkbox" class="data-item-checkbox" />      <a class="explore-data-item" data-dataset="'),typeof $value.datasetId!="undefined"&&$value.datasetId!=null&&__.push($.encode(typeof $value.datasetId=="function"?$value.datasetId.call($item):$value.datasetId)),__.push('" data-dataset-key="'),typeof $value.datasetKey!="undefined"&&$value.datasetKey!=null&&__.push($.encode(typeof $value.datasetKey=="function"?$value.datasetKey.call($item):$value.datasetKey)),__.push('" data-dimension="'),typeof $value.dimensionName!="undefined"&&$value.dimensionName!=null&&__.push($.encode(typeof $value.dimensionName=="function"?$value.dimensionName.call($item):$value.dimensionName)),__.push('" data-key="'),typeof $value.elementKey!="undefined"&&$value.elementKey!=null&&__.push($.encode(typeof $value.elementKey=="function"?$value.elementKey.call($item):$value.elementKey)),__.push('" data-title="'),typeof $value.datasetTitle!="undefined"&&$value.datasetTitle!=null&&__.push($.encode(typeof $value.datasetTitle=="function"?$value.datasetTitle.call($item):$value.datasetTitle)),__.push('" href="/'),typeof $value.datasetId!="undefined"&&$value.datasetId!=null&&__.push($.encode(typeof $value.datasetId=="function"?$value.datasetId.call($item):$value.datasetId)),__.push("/"),typeof $value.datasetTitle!="undefined"&&$value.datasetTitle!=null&&__.push($.encode(typeof $value.datasetTitle=="function"?$value.datasetTitle.call($item):$value.datasetTitle)),__.push('" target="_blank">       <i class="bind-item-state fa '),typeof $value.isManual!="undefined"&&$value.isManual!=null&&(typeof $value.isManual=="function"?$value.isManual.call($item):$value.isManual)?__.push("fa-hand-stop-o"):!0&&(__.push(""),typeof $value.isConfirmed!="undefined"&&$value.isConfirmed!=null&&(typeof $value.isConfirmed=="function"?$value.isConfirmed.call($item):$value.isConfirmed)?__.push("fa-check"):!0&&__.push("fa-exclamation"),__.push("")),__.push('"><\/i>       '),typeof $value.datasetId!="undefined"&&$value.datasetId!=null&&__.push($.encode(typeof $value.datasetId=="function"?$value.datasetId.call($item):$value.datasetId)),__.push(" <b>/<\/b> "),typeof $value.dimensionName!="undefined"&&$value.dimensionName!=null&&__.push($.encode(typeof $value.dimensionName=="function"?$value.dimensionName.call($item):$value.dimensionName)),__.push(" <b>/<\/b> "),typeof $value.elementKey!="undefined"&&$value.elementKey!=null&&__.push($.encode(typeof $value.elementKey=="function"?$value.elementKey.call($item):$value.elementKey)),__.push(" - "),typeof $value.elementName!="undefined"&&$value.elementName!=null&&__.push($.encode(typeof $value.elementName=="function"?$value.elementName.call($item):$value.elementName)),__.push("      <\/a>      "),typeof($value.otherConcepts&&$value.otherConcepts.length)!="undefined"&&($value.otherConcepts&&$value.otherConcepts.length)!=null&&(typeof($value.otherConcepts&&$value.otherConcepts.length)=="function"?($value.otherConcepts&&$value.otherConcepts.length).call($item):$value.otherConcepts&&$value.otherConcepts.length)&&(__.push('      <div class="data-concepts">       '),typeof $value.otherConcepts!="undefined"&&$value.otherConcepts!=null&&$.each(typeof $value.otherConcepts=="function"?$value.otherConcepts.call($item):$value.otherConcepts,function(n,$value){with(this)__.push('       <a href="#" data-key="'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push('" class="data-related" target="_blank">        '),typeof!$value.isManual!="undefined"&&!$value.isManual!=null&&(typeof!$value.isManual=="function"?(!$value.isManual).call($item):!$value.isManual)&&(__.push('        <i class="bind-item-state fa '),typeof $value.isManual!="undefined"&&$value.isManual!=null&&(typeof $value.isManual=="function"?$value.isManual.call($item):$value.isManual)?__.push("fa-hand-stop-o"):!0&&(__.push(""),typeof $value.isConfirmed!="undefined"&&$value.isConfirmed!=null&&(typeof $value.isConfirmed=="function"?$value.isConfirmed.call($item):$value.isConfirmed)?__.push("fa-check"):!0&&__.push("fa-exclamation"),__.push("")),__.push('"><\/i>        ')),__.push("        <span "),typeof $value.textType!="undefined"&&$value.textType!=null&&(typeof $value.textType=="function"?$value.textType.call($item):$value.textType)&&(__.push(' title="'),typeof $value.textType!="undefined"&&$value.textType!=null&&__.push($.encode(typeof $value.textType=="function"?$value.textType.call($item):$value.textType)),__.push('" ')),__.push(' class="concept-type concept-type-'),typeof($value.type||"none").toLowerCase().replace(" ","")!="undefined"&&($value.type||"none").toLowerCase().replace(" ","")!=null&&__.push($.encode(typeof($value.type||"none").toLowerCase().replace(" ","")=="function"?($value.type||"none").toLowerCase().replace(" ","").call($item):($value.type||"none").toLowerCase().replace(" ",""))),__.push('">'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push("<\/span>       <\/a>       ")}),__.push("      <\/div>      ")),__.push('      <span class="delete-data-item" title="Remove data item"><\/span>     <\/li>     ')),__.push("")}),__.push("    <\/ul>    ")):!0&&__.push("    <ul>     <li>None<\/li>    <\/ul>    "),__.push("   <\/div>   <\/div> <\/div>");return __});jQuery.template("country",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="fact" id="'),typeof region.id!="undefined"&&region.id!=null&&__.push($.encode(typeof region.id=="function"?region.id.call($item):region.id)),__.push('">   <a href="'),typeof countryUrl!="undefined"&&countryUrl!=null&&__.push($.encode(typeof countryUrl=="function"?countryUrl.call($item):countryUrl)),__.push('" target="_blank" title="'),typeof region.name!="undefined"&&region.name!=null&&__.push($.encode(typeof region.name=="function"?region.name.call($item):region.name)),__.push('">    <img src="//cdn.knoema.com/flags/normal/'),typeof region.id.toLowerCase!="undefined"&&region.id.toLowerCase!=null&&__.push($.encode(region.id.toLowerCase())),__.push('.png" alt="'),typeof region.name!="undefined"&&region.name!=null&&__.push($.encode(typeof region.name=="function"?region.name.call($item):region.name)),__.push('" />    <span>'),typeof region.name!="undefined"&&region.name!=null&&__.push($.encode(typeof region.name=="function"?region.name.call($item):region.name)),__.push("<\/span>   <\/a>  <\/div>");return __});jQuery.template("data-filter",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="filter-container">  <div class="right-container">   <div class="region-filter">    <div class="filter-text">     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/data-filter.htm","Showing results only for"))),__.push(" "),typeof filterText!="undefined"&&filterText!=null&&__.push($.encode(typeof filterText=="function"?filterText.call($item):filterText)),__.push('<\/span>    <\/div>    <div class="filter-close-button">     <a><\/a>    <\/div>   <\/div>  <\/div> <\/div>');return __});jQuery.template("expert-mode-help-popup",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="expert-mode-popup">  <p>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","The FactFinder engine uses a concept map to 'bind' (or, link) text you enter to relevant time series. With Expert Mode you will be able to edit the concept map directly, with your changes affecting all future FactFinder results for all users on your FactFinder system."))),__.push('<\/p>   <div class="tabs">   <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","Concept Defintions"))),__.push('<\/span>  <\/div>   <p class="concept-type topic">   '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","<b>Topics<\/b> are used to group semantically related concepts. No data can be bound to this concept because it is not associated with data.")),__.push("   <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","Example: The topic National Accounts includes GDP and National Income. Topics are not never bound directly to data because it is not measurable like the related concepts within a topic."))),__.push('<\/span>  <\/p>   <p class="concept-type named-entities">   '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","<b>Named entit​ies<\/b> are essentially nouns.​")),__.push("   <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","​Examples(s): ​Commodities, companies, currencies, financial instruments, stock indices, facilities, diseases, industries, ​and brands."))),__.push('<\/span>  <\/p>   <p class="concept-type regions">   '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","<b>Regions<\/b>​ refer to geographic regions. FactFinder regions are based on international standards and may not be added or changed in Expert Mode.")),__.push('  <\/p>   <p class="concept-type attributes">   '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","<b>Attribute​s<\/b> define the propert​ies of your subjects.")),__.push("   <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","​Example(s): ​Gender, rac​e, nationality, age ​group, measurement (i.e. gross, net, crude, real, nominal)."))),__.push('<\/span>  <\/p>   <p class="concept-type indicators">   '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","<b>Indicators<\/b> ​can be represented numerical and are the standard type of information contained in structured datasets.")),__.push("   <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","Example(s): ​Production, consumption, price, area, population, number, interest rate, density, yield, profit, revenue, ​and dividends.​"))),__.push('<\/span>  <\/p>   <p class="concept-type utils">   '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","<b>Units<\/b> reference units of measurement.")),__.push("   <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/expert-mode-help-popup.htm","Example(s): ​Percent, heads, tonnes, currency units, MW, barrels, etc."))),__.push("<\/span> <\/p> <\/div>");return __});jQuery.template("gadget-menu",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="gadget_actions">  <div class="gadget-maximize">   <em class="icon icon-maximize"><\/em>  <\/div>  <div class="gadget-options">   <em class="icon icon-menu"><\/em>  <\/div>  <div class="gadget-menu">   <div class="arrow-holder">    <em class="arrow"><\/em>   <\/div>   <div class="gadget-menu-body factfinder-gadget-menu">    <a href="#" class="view-in-dataset-viewer">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/gadget-menu.htm","Open in Dataset Viewer"))),__.push("<\/a>    <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/gadget-menu.htm","Export:"))),__.push('<\/p>    <a href="#" class="export" data-export-format="pdf"><span class="export-icon pdf"><\/span>PDF<\/a>    <a href="#" class="export" data-export-format="pptx"><span class="export-icon pptx"><\/span>PPTX<\/a>    <a href="#" class="export" data-export-format="xlsx"><span class="export-icon xlsx"><\/span>XLSX<\/a>    <a href="#" class="export" data-export-format="png"><span class="export-icon png"><\/span>PNG<\/a>   <\/div>  <\/div> <\/div>');return __});jQuery.template("group-switch",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<ul class="group-switch">   <li>    <a href="#" class="semantic-grouping text active">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/group-switch.htm","Text"))),__.push('<\/a>   <\/li><li>    <a href="#" class="semantic-grouping country">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/group-switch.htm","Location"))),__.push('<\/a>   <\/li><li>    <a href="#" class="semantic-grouping topic">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/group-switch.htm","Topic"))),__.push("<\/a>   <\/li>  <\/ul>");return __});jQuery.template("hide-fact-popup-optional-part",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="hide-result-popup optional-part">  '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/hide-fact-popup-optional-part.htm","(Optional) Let us know what went wrong:"))),__.push("  <span>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/hide-fact-popup-optional-part.htm","Select all applicable"))),__.push('<\/span>  <label>   <input type="checkbox" class="reason" value="Outdated result" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/hide-fact-popup-optional-part.htm","Outdated result"))),__.push('  <\/label>  <label>   <input type="checkbox" class="reason" value="Wrong geographic location" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/hide-fact-popup-optional-part.htm","Wrong geographic location"))),__.push('  <\/label>  <label>   <input type="checkbox" class="reason" value="Unit of measure is not helpful" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/hide-fact-popup-optional-part.htm","Unit of measure is not helpful"))),__.push('  <\/label>  <label>   <input type="checkbox" class="reason" value="Data is irrelevant" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/hide-fact-popup-optional-part.htm","Data is irrelevant"))),__.push('  <\/label>  <label>   <input type="checkbox" class="reason" value="Result is too general" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/hide-fact-popup-optional-part.htm","Result is too general"))),__.push('  <\/label>  <label class="other">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/hide-fact-popup-optional-part.htm","Other"))),__.push(":<\/label>  <textarea><\/textarea> <\/div>");return __});jQuery.template("number-item-data",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<tr class="data'),typeof premium!="undefined"&&premium!=null&&(typeof premium=="function"?premium.call($item):premium)&&__.push(" premium-open"),__.push('">   <td colspan="5">    <div class="maximize-restriction-container">     <div class="history"><\/div>     <div class="cards"><\/div>     <div class="tables" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('"><\/div>    <\/div>   <\/td>  <\/tr>');return __});jQuery.template("number-item",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<tr class="fact primary '),typeof hasSecondary!="undefined"&&hasSecondary!=null&&(typeof hasSecondary=="function"?hasSecondary.call($item):hasSecondary)&&__.push("has-secondary"),__.push(""),typeof item.dataset.premium!="undefined"&&item.dataset.premium!=null&&(typeof item.dataset.premium=="function"?item.dataset.premium.call($item):item.dataset.premium)&&__.push(" premium-open"),__.push('" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('" data-sentence="'),typeof item.sentenceIndex!="undefined"&&item.sentenceIndex!=null&&__.push($.encode(typeof item.sentenceIndex=="function"?item.sentenceIndex.call($item):item.sentenceIndex)),__.push('">   <td class="name">   '),typeof item.url!="undefined"&&item.url!=null&&(typeof item.url=="function"?item.url.call($item):item.url)?(__.push('    <a target="_blank" href="'),typeof item.url!="undefined"&&item.url!=null&&__.push($.encode(typeof item.url=="function"?item.url.call($item):item.url)),__.push('">'),typeof itemConcepts!="undefined"&&itemConcepts!=null&&$.each(typeof itemConcepts=="function"?itemConcepts.call($item):itemConcepts,function(i,concept){with(this)__.push(""),typeof concept.title!="undefined"&&concept.title!=null&&__.push($.encode(typeof concept.title=="function"?concept.title.call($item):concept.title)),__.push(""),typeof(i!=itemConcepts.length-1)!="undefined"&&i!=itemConcepts.length-1!=null&&(typeof(i!=itemConcepts.length-1)=="function"?(i!=itemConcepts.length-1).call($item):i!=itemConcepts.length-1)&&__.push("&nbsp;-&nbsp;"),__.push("")}),__.push("<\/a>   ")):!0&&(__.push("    "),typeof itemConcepts!="undefined"&&itemConcepts!=null&&$.each(typeof itemConcepts=="function"?itemConcepts.call($item):itemConcepts,function(i,concept){with(this)__.push("     "),typeof guru!="undefined"&&guru!=null&&(typeof guru=="function"?guru.call($item):guru)?(__.push('      <a target="_blank" href="/sys/conceptmap/conceptlist?key='),typeof concept.key!="undefined"&&concept.key!=null&&__.push($.encode(typeof concept.key=="function"?concept.key.call($item):concept.key)),__.push('">'),typeof concept.title!="undefined"&&concept.title!=null&&__.push($.encode(typeof concept.title=="function"?concept.title.call($item):concept.title)),__.push("<\/a>"),typeof(i!=itemConcepts.length-1)!="undefined"&&i!=itemConcepts.length-1!=null&&(typeof(i!=itemConcepts.length-1)=="function"?(i!=itemConcepts.length-1).call($item):i!=itemConcepts.length-1)&&__.push("&nbsp;-&nbsp;"),__.push("     ")):!0&&(__.push("      "),typeof concept.title!="undefined"&&concept.title!=null&&__.push($.encode(typeof concept.title=="function"?concept.title.call($item):concept.title)),__.push(""),typeof(i!=itemConcepts.length-1)!="undefined"&&i!=itemConcepts.length-1!=null&&(typeof(i!=itemConcepts.length-1)=="function"?(i!=itemConcepts.length-1).call($item):i!=itemConcepts.length-1)&&__.push("&nbsp;-&nbsp;"),__.push("     ")),__.push("    ")}),__.push("   ")),__.push("   "),typeof item.snippets!="undefined"&&item.snippets!=null&&(typeof item.snippets=="function"?item.snippets.call($item):item.snippets)&&(__.push("    <br />    "),typeof item.snippets!="undefined"&&item.snippets!=null&&$.each(typeof item.snippets=="function"?item.snippets.call($item):item.snippets,function(n,snippet){with(this)__.push("    <span>"),typeof snippet!="undefined"&&snippet!=null&&__.push($.encode(typeof snippet=="function"?snippet.call($item):snippet)),__.push("<\/span>    ")}),__.push("   ")),__.push('   <\/td>   <td class="td-value"><span class="value"><\/span><span class="unit"><\/span><br />in <span class="time"><\/span><\/td>   <td class="more">    <form action="'),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('" name="explore-data" method="post" target="_blank">     <input name="datadescriptor" type="hidden" value="'),typeof item.dataDescriptor!="undefined"&&item.dataDescriptor!=null&&__.push($.encode(typeof item.dataDescriptor=="function"?item.dataDescriptor.call($item):item.dataDescriptor)),__.push('" />    <\/form>    <a target="_blank" class="external-link source" 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('">'),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('&nbsp;<i class="fa fa-lock" aria-hidden="true"><\/i><\/a>   <\/td>   <td class="other">    '),typeof hasSecondary!="undefined"&&hasSecondary!=null&&(typeof hasSecondary=="function"?hasSecondary.call($item):hasSecondary)&&(__.push('    <span class="other-sources">+&nbsp;'),typeof secondaryItems.length!="undefined"&&secondaryItems.length!=null&&__.push($.encode(typeof secondaryItems.length=="function"?secondaryItems.length.call($item):secondaryItems.length)),__.push(" "),typeof(secondaryItems.length===1)!="undefined"&&secondaryItems.length===1!=null&&(typeof(secondaryItems.length===1)=="function"?(secondaryItems.length===1).call($item):secondaryItems.length===1)?__.push("other"):!0&&__.push("others"),__.push('<img src="/Img/v6/factfinder/arrow-down.png" /><\/span>      <div class="source-menu">     <div class="arrow-holder">      <em class="arrow"><\/em>     <\/div>     <div class="source-menu-body">      '),typeof secondaryItems!="undefined"&&secondaryItems!=null&&$.each(typeof secondaryItems=="function"?secondaryItems.call($item):secondaryItems,function(i,item){with(this)__.push('      <a href="#" data-dataset-id="'),typeof item.dataset.id!="undefined"&&item.dataset.id!=null&&__.push($.encode(typeof item.dataset.id=="function"?item.dataset.id.call($item):item.dataset.id)),__.push('" data-source-id="'),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('" data-index="'),typeof secondaryIndexes[i]!="undefined"&&secondaryIndexes[i]!=null&&__.push($.encode(typeof secondaryIndexes[i]=="function"?secondaryIndexes[i].call($item):secondaryIndexes[i])),__.push('">'),typeof item.dataset.sourceId!="undefined"&&item.dataset.sourceId!=null&&__.push($.encode(typeof item.dataset.sourceId=="function"?item.dataset.sourceId.call($item):item.dataset.sourceId)),__.push("<\/a>      ")}),__.push("     <\/div>    <\/div>    ")),__.push('   <\/td>   <td class="hide-fact">    <div title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/number-item.htm","Remove result"))),__.push('"><\/div>   <\/td>  <\/tr>');return __});jQuery.template("number-new",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<table>   "),typeof id!="undefined"&&id!=null&&(typeof id=="function"?id.call($item):id)?(__.push("    "),typeof(id.length===2||regionIsInternal)!="undefined"&&(id.length===2||regionIsInternal)!=null&&(typeof(id.length===2||regionIsInternal)=="function"?(id.length===2||regionIsInternal).call($item):id.length===2||regionIsInternal)?(__.push('<caption style="background-image: url(//cdn.knoema.com/flags/normal/'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('.png)" data-keywords="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("    ")):!0&&(__.push('<caption class="no-padding" data-keywords="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("    ")),__.push("   <\/caption>   ")):typeof title!="undefined"&&title!=null&&(typeof title=="function"?title.call($item):title)&&(__.push('    <caption class="no-padding" data-keywords="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/caption>   ")),__.push('   <tbody class="spoiler-items"><\/tbody>   <tbody class="cutted-items"><\/tbody>   <tfoot>    <tr>     <td colspan="5">      <div class="group-item-btn show-all-btn"><a><img src="/Img/v6/factfinder/arrow-down.png" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/number-new.htm","Show all results"))),__.push(' <span data-count=""><\/span><\/a><\/div>      <div class="group-item-btn collapse-btn"><a><img src="/Img/v6/factfinder/arrow-up.png" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/number-new.htm","Collapse"))),__.push("<\/a><\/div>     <\/td>    <\/tr>   <\/tfoot>  <\/table>");return __});jQuery.template("number",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="fact" data-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('" data-sentence="'),typeof sentence!="undefined"&&sentence!=null&&__.push($.encode(typeof sentence=="function"?sentence.call($item):sentence)),__.push('">  <span class="text">'),typeof subject!="undefined"&&subject!=null&&__.push($.encode(typeof subject=="function"?subject.call($item):subject)),__.push('<\/span><!--  --><span class="text">'),typeof indicator!="undefined"&&indicator!=null&&__.push($.encode(typeof indicator=="function"?indicator.call($item):indicator)),__.push('<\/span><!--  --><span class="text">'),typeof direction!="undefined"&&direction!=null&&__.push($.encode(typeof direction=="function"?direction.call($item):direction)),__.push('<\/span><!--  --><span class="text number">'),typeof value!="undefined"&&value!=null&&__.push($.encode(typeof value=="function"?value.call($item):value)),__.push('<\/span><!--  --><span class="text unit">'),typeof unit!="undefined"&&unit!=null&&__.push($.encode(typeof unit=="function"?unit.call($item):unit)),__.push('<\/span><!--  --><span class="text date">'),typeof date!="undefined"&&date!=null&&__.push($.encode(typeof date=="function"?date.call($item):date)),__.push("<\/span> <\/div>");return __});jQuery.template("open-dialog",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="open-dialog" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/open-dialog.htm","Open"))),__.push('">   <div id="open-error"><\/div>  <\/div>');return __});jQuery.template("save-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="save-dialog" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/save-dialog.htm","Save as"))),__.push('">   <input type="text" id="ff-name" value="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" maxlength="255" />   <div id="save-error"><\/div>  <\/div>');return __});jQuery.template("send-request",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="send-request-dialog">  <form>   <input type="hidden" name="article" value="" id="full-article-text" />   <div class="req-label"><span class="req-marker">*<\/span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/send-request.htm","Required"))),__.push('<\/div>      <label class="first" for="source-list">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/send-request.htm","Source"))),__.push('<span class="req-marker">*<\/span>   <\/label>   <select id="source-list" name="source" data-placeholder="Select a source"><\/select>   <div class="error-container">    <span data-field="source">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/send-request.htm","Select a source."))),__.push('<\/span>   <\/div>    <label for="topic-list">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/send-request.htm","Topic(s)"))),__.push('<span class="req-marker">*<\/span>   <\/label>   <select id="topic-list" name="topics" multiple data-placeholder="Choose a topic"><\/select>   <div class="error-container">    <span data-field="topic">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/send-request.htm","Select a topic(s)."))),__.push('<\/span>   <\/div>    <label for="source-url">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/send-request.htm","Url"))),__.push('   <\/label>   <input type="text" id="source-url" name="url" />   <div class="error-container"><\/div>    <label>    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/factfinder/send-request.htm","Additional information"))),__.push('   <\/label>   <textarea name="info"><\/textarea>  <\/form> <\/div>');return __});jQuery.template("topic",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="topic"><a target="_blank" href="'),typeof url!="undefined"&&url!=null&&__.push($.encode(typeof url=="function"?url.call($item):url)),__.push('" title="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/a><span>,<\/span><\/div>");return __})