Найден корректный robots.txt
Файл управления сканированием сайта роботами
?
Robots.txt указывает поисковым роботам, какие страницы сканировать, а какие — нет. Ошибки в файле могут случайно закрыть важные разделы от индексации.
Robots.txt настроен корректно. Размер файла: 26906 байт. Загружен за: 1сек.
Проверяемая страница не запрещена в robots.txt.
Цепочка редиректов для файла robots.txt:
http://charts.ecmwf.int/robots.txt
301 MovedPermanently
https://charts.ecmwf.int/robots.txt
200 OK
Показать содержимое robots.txt
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="shortcut icon" type="image/x-icon" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ1JREFUeNpiYBjygBHOiphYDyQLgFgAKvIAygeBCUCsAGV/APNX5DciDIiYeB5IGpBo+QWgIYbMUJsjoIIbgDgDiBdAXaKBR1yCQccTyQvYQMTE9WB6RX4gFvEAkHcYgZz/KJIr8hlJ8QcT9WKBAi+AArEBKbAmQNkFUEX4xBsojkYmqBMNoa74gKTgAdSmACibASkhNUD1DAcAEGAAyz0yJNpSDRQAAAAASUVORK5CYII="><link rel="shortcut icon" href="/favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#000000" />
<link rel="manifest" href="/manifest.json" />
<script src="/is-embedded.js" type="application/javascript"></script>
<title>ECMWF | Charts</title><!--Google Tag Manager--><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-P5T597');</script><!-- End Google Tag Manager--><script>window.ECMWF_TEMPLATE_CONFIG = {"authHost":"https://charts.ecmwf.int/opencharts-api"};</script><style type="text/css">html,body{height:100%;width:100%;margin:0;padding:0}.ecmwf-template__dropdown .ecmwf-template__dropdown-anchor{height:100%;padding:0 1em;transition:background-color .3s ease-in-out}.ecmwf-template__dropdown .ecmwf-template__dropdown-anchor .ecmwf-template__title{display:none}.ecmwf-template__dropdown .ecmwf-template__dropdown-content{position:absolute;top:60px;left:0;opacity:0;transform:scaleY(0);transform-origin:top;transition:all .3s ease-in-out;z-index:10;height:calc(100vh - 60px);width:100vw}.ecmwf-template__dropdown.ecmwf-template__open .ecmwf-template__dropdown-anchor{background:#fff;color:#000}.ecmwf-template__dropdown.ecmwf-template__open .ecmwf-template__dropdown-anchor:after{transform:rotate(90deg)}.ecmwf-template__dropdown.ecmwf-template__open .ecmwf-template__dropdown-content{transform:scaleY(1);opacity:1}@media (min-width: 960px){.ecmwf-template__dropdown{position:relative}.ecmwf-template__dropdown .ecmwf-template__dropdown-anchor:not(.ecmwf-template__no-caret):after{content:'';display:block;width:0;height:0;border-left:0.4em solid transparent;border-right:0.4em solid transparent;border-top:0.4em solid currentColor;margin-left:0.5em;transition:all .3s}.ecmwf-template__dropdown .ecmwf-template__dropdown-anchor .ecmwf-template__title{display:inline}.ecmwf-template__dropdown .ecmwf-template__dropdown-content{top:48px;height:auto;width:auto}}.ecmwf-template__content-wrapper{margin:0 auto;display:flex;align-items:center;height:100%;width:100%}.ecmwf-template__header,.ecmwf-template__footer{font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;background:#000;color:#fff;display:flex;justify-content:flex-start;align-items:center}.ecmwf-template__header *,.ecmwf-template__footer *{box-sizing:border-box}.ecmwf-template__header a,.ecmwf-template__footer a{color:#fff;text-decoration:none;display:flex;align-items:center}.ecmwf-template__header a:hover,.ecmwf-template__footer a:hover{text-decoration:underline}.ecmwf-template__header a:hover,.ecmwf-template__header a:focus,.ecmwf-template__header a:active,.ecmwf-template__footer a:hover,.ecmwf-template__footer a:focus,.ecmwf-template__footer a:active{color:#fff}.ecmwf-template__header a .ecmwf-template__icon,.ecmwf-template__footer a .ecmwf-template__icon{width:1em;height:1em;fill:currentColor}.ecmwf-template__header .ecmwf-template__links,.ecmwf-template__footer .ecmwf-template__links{display:flex;margin-left:auto;height:100%}.ecmwf-template__header .ecmwf-template__links>a,.ecmwf-template__footer .ecmwf-template__links>a{padding:0 1em}.ecmwf-template__header .ecmwf-template__links .ecmwf-template__dropdown .ecmwf-template__dropdown-content,.ecmwf-template__footer .ecmwf-template__links .ecmwf-template__dropdown .ecmwf-template__dropdown-content{min-width:14em;background:#fff;color:#000;left:auto;right:0;box-shadow:0 3px 6px rgba(0,0,0,0.15)}.ecmwf-template__header .ecmwf-template__links .ecmwf-template__dropdown .ecmwf-template__dropdown-content a,.ecmwf-template__footer .ecmwf-template__links .ecmwf-template__dropdown .ecmwf-template__dropdown-content a{padding:1em 1.5em;border-bottom:1px solid #000;color:currentColor;font-size:1.5em;justify-content:center}@media (min-width: 960px){.ecmwf-template__header .ecmwf-template__links .ecmwf-template__dropdown .ecmwf-template__dropdown-content a,.ecmwf-template__footer .ecmwf-template__links .ecmwf-template__dropdown .ecmwf-template__dropdown-content a{border:none;font-size:1em;justify-content:flex-start}}@media (min-width: 960px){.ecmwf-template__header a .ecmwf-template__icon,.ecmwf-template__footer a .ecmwf-template__icon{margin-right:0.6em}}.ecmwf-template__header{font-size:14px;height:60px}.ecmwf-template__header .ecmwf-template__menu{height:100%;display:flex;margin-right:1em}.ecmwf-template__header .ecmwf-template__menu .ecmwf-template__icon{font-size:2em;margin-right:0}.ecmwf-template__header .ecmwf-template__menu .ecmwf-template__header-menu{border-top:1px solid #fff;background:#000;font-size:20px;width:100vw;height:calc(100vh - 60px);display:flex;flex-direction:column;overflow-y:auto}.ecmwf-template__header .ecmwf-template__menu .ecmwf-template__header-menu>a{border-color:#fff;border-width:0 0 1px 0;border-style:solid;text-decoration:none;color:#fff;padding:1em 1.5em;display:flex;align-items:center}.ecmwf-template__header .ecmwf-template__menu .ecmwf-template__header-menu>a:hover,.ecmwf-template__header .ecmwf-template__menu .ecmwf-template__header-menu>a.ecmwf-template__active{border-color:#fff}@media (min-width: 960px){.ecmwf-template__header .ecmwf-template__menu .ecmwf-template__header-menu{height:3.1em;justify-content:center;flex-direction:row}.ecmwf-template__header .ecmwf-template__menu .ecmwf-template__header-menu>a{border-color:transparent;border-width:2px 0 3px 0;padding:0 1.5em}}.ecmwf-template__header .ecmwf-template__branding{margin:0;padding:0;font-weight:400;font-size:2em;display:flex;align-items:center;flex-grow:1;justify-content:center}.ecmwf-template__header .ecmwf-template__branding .ecmwf-template__logo{font-size:0.8em}.ecmwf-template__header .ecmwf-template__branding .ecmwf-template__logo .ecmwf-template__icon{width:5.9em;margin-right:0}.ecmwf-template__header .ecmwf-template__branding .ecmwf-template__logo+.ecmwf-template__title{display:none;margin-left:1em;padding-left:1em;border-left:1px solid #fff;font-size:0.5em}.ecmwf-template__header .ecmwf-template__links{margin-left:1em}.ecmwf-template__header .ecmwf-template__help-menu{display:none}.ecmwf-template__header .ecmwf-template__user-info{display:none}.ecmwf-template__header .ecmwf-template__user-info .ecmwf-template__dropdown-anchor .ecmwf-template__icon{width:1.5em;height:1.5em;padding:0 0.25em}.ecmwf-template__header .ecmwf-template__log-in{display:none}.ecmwf-template__header .ecmwf-template__log-in .ecmwf-template__icon{width:1.5em;height:1.5em;padding:0 0.25em}.ecmwf-template__header .ecmwf-template__log-in .ecmwf-template__title{display:none}.ecmwf-template__header .ecmwf-template__user-menu{border-bottom:1px solid rgba(0,0,0,0.12)}@media (min-width: 720px){.ecmwf-template__header .ecmwf-template__branding .ecmwf-template__logo+.ecmwf-template__title{display:inline-block;font-size:0.6em}}@media (min-width: 960px){.ecmwf-template__header{height:48px}.ecmwf-template__header .ecmwf-template__branding{justify-content:flex-start}.ecmwf-template__header .ecmwf-template__help-menu{display:block}.ecmwf-template__header .ecmwf-template__user-info .ecmwf-template__dropdown-anchor .ecmwf-template__icon{width:1em;height:1em;padding:0}.ecmwf-template__header .ecmwf-template__log-in .ecmwf-template__icon{width:1em;height:1em;padding:0}.ecmwf-template__header .ecmwf-template__log-in .ecmwf-template__title{display:inline-block}}.ecmwf-template__subheader{font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;background:#000;color:#fff;display:flex;padding:0.5em 1em;border-top:1px solid currentColor;font-size:0.9em}.ecmwf-template__subheader .ecmwf-template__app-title{display:flex;flex-grow:1;justify-content:center;align-items:center}@media (min-width: 720px){.ecmwf-template__subheader{display:none}}.ecmwf-template__content{flex-direction:column;display:flex;min-height:calc(100vh - 60px)}.ecmwf-template__content .ecmwf-template__content-wrapper{flex-grow:1;align-items:flex-start}@media (min-width: 960px){.ecmwf-template__content{min-height:calc(100vh - 48px - 50px)}}.ecmwf-template__footer{font-size:12.6px}.ecmwf-template__footer .ecmwf-template__content-wrapper{display:flex;flex-direction:column;justify-content:space-between;text-align:center}.ecmwf-template__footer .ecmwf-template__links{width:100%;flex-direction:column;order:1}.ecmwf-template__footer .ecmwf-template__links a{width:100%;justify-content:center;padding:1.5em 2em;border-bottom:1px solid #fff}.ecmwf-template__footer .ecmwf-template__copyright{color:#999;display:block;width:100%;margin:2em 0;order:2}@media (min-width: 960px){.ecmwf-template__footer{height:50px}.ecmwf-template__footer .ecmwf-template__content-wrapper{flex-direction:row;text-align:left}.ecmwf-template__footer .ecmwf-template__links{margin-left:auto;flex-direction:row;justify-content:flex-end;order:2}.ecmwf-template__footer .ecmwf-template__links a{width:auto;border:none;padding:0 1em;flex-shrink:0}.ecmwf-template__footer .ecmwf-template__copyright{padding-left:1em;margin:0;order:1}}@media (min-width: 1400px){body.ecmwf-template__contained .ecmwf-template__content-wrapper{width:1400px}}body.ecmwf-template__contained .ecmwf-template__header .ecmwf-template__menu .ecmwf-template__header-menu{left:0}@media (min-width: 1400px){body.ecmwf-template__contained .ecmwf-template__header .ecmwf-template__menu .ecmwf-template__header-menu{left:calc(-1 * (100vw - 1400px) / 2)}}
</style> <script type="module" crossorigin src="/assets/index-Kj7HQE1a.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Bevq2_Az.css">
</head><body class="ecmwf-template__fluid"><!-- Google Tag Manager (noscript)--><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P5T597" style="display:none;visibility:hidden" width="0" height="0"></iframe></noscript><!-- End Google Tag Manager (noscript)--><header class="ecmwf-template__header"><div class="ecmwf-template__content-wrapper"><div class="ecmwf-template__dropdown ecmwf-template__menu"><a class="ecmwf-template__dropdown-anchor ecmwf-template__no-caret" href="#menu" title="Open menu"><svg class="ecmwf-template__icon" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z"></path></svg></a><nav class="ecmwf-template__dropdown-content ecmwf-template__header-menu"><a href="https://www.ecmwf.int/" title="Home">Home</a><a href="https://www.ecmwf.int/en/about" title="About">About</a><a href="https://www.ecmwf.int/en/forecasts" title="Forecasts">Forecasts</a><a href="https://www.ecmwf.int/en/computing" title="Computing">Computing</a><a href="https://www.ecmwf.int/en/learning" title="Learning">Learning</a><a href="https://www.ecmwf.int/en/publications" title="Publications">Publications</a></nav></div><h1 class="ecmwf-template__branding"><a class="ecmwf-template__logo" href="https://www.ecmwf.int/" title="ECMWF"><svg class="ecmwf-template__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480.5 82.68"><title>ECMWF logo</title><path d="M183.28,6.8V19.74H146.34v15h33.91v12H146.34V63.84h37.73V76.78H130.95V6.8h52.33Z"></path><path d="M234.33,25.47a15.49,15.49,0,0,0-3.43-3.87,16.06,16.06,0,0,0-10.09-3.53,18,18,0,0,0-8.82,2,16.65,16.65,0,0,0-5.88,5.39,23.6,23.6,0,0,0-3.28,7.69,38.33,38.33,0,0,0-1,8.92,35.64,35.64,0,0,0,1,8.58,23.13,23.13,0,0,0,3.28,7.5A16.8,16.8,0,0,0,212,63.5a18,18,0,0,0,8.82,2q7.06,0,11-4.31a19.94,19.94,0,0,0,4.85-11.37h14.9a35.6,35.6,0,0,1-3,11.86,28.43,28.43,0,0,1-6.47,9,27.5,27.5,0,0,1-9.41,5.68,34.5,34.5,0,0,1-11.86,2,35.88,35.88,0,0,1-14.46-2.79,31,31,0,0,1-10.83-7.69,34.06,34.06,0,0,1-6.76-11.51,42.25,42.25,0,0,1-2.35-14.26,43.72,43.72,0,0,1,2.35-14.55,35,35,0,0,1,6.76-11.71A30.92,30.92,0,0,1,206.35,8,37.52,37.52,0,0,1,231.73,6.8a29.63,29.63,0,0,1,9.21,4.85,26.23,26.23,0,0,1,6.71,7.89A28.2,28.2,0,0,1,251,30.32h-14.9A12.58,12.58,0,0,0,234.33,25.47Z"></path><path d="M279.37,6.8l16.37,48.12h0.2L311.42,6.8h21.66v70H318.67V27.19h-0.2L301.32,76.78H289.46l-17.15-49.1h-0.2v49.1H257.71V6.8h21.66Z"></path><path d="M394,76.78L382.19,29.15H382L370.33,76.78H354.75l-18.52-70h15.39l11.07,47.63h0.2L375,6.8h14.41L401.4,55h0.2L413.06,6.8h15.09l-18.82,70H394Z"></path><path d="M480.5,6.8V19.74H446.69V35.91H476v12h-29.3V76.78H431.31V6.8h49.2Z"></path><path d="M0.4,46H34.81V36.68H0.4A27.1,27.1,0,0,0,.4,46Z"></path><path d="M115,49.24a41,41,0,0,1-40,33.44A44,44,0,0,1,58.1,79a40.9,40.9,0,0,1-17.36,3.64A40.67,40.67,0,0,1,.76,49.4l25.09,0A17.47,17.47,0,0,0,41.77,59.64,18,18,0,0,0,58.36,47.81,17.68,17.68,0,0,0,91.12,49.3Z"></path><path d="M115,33.44A41,41,0,0,0,74.94,0,43.08,43.08,0,0,0,58.1,3.69,40.19,40.19,0,0,0,40.74,0a40.66,40.66,0,0,0-40,33.28l25.09,0A17.46,17.46,0,0,1,41.77,23,18,18,0,0,1,58.36,34.86a17.69,17.69,0,0,1,32.77-1.48Z"></path></svg></a><span class="ecmwf-template__title">Charts</span></h1><nav class="ecmwf-template__links"><div class="ecmwf-template__dropdown ecmwf-template__help-menu"><a class="ecmwf-template__dropdown-anchor" href="#help" title="Help"><svg class="ecmwf-template__icon" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1024 1376v-192q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23-9t9-23zm256-672q0-88-55.5-163t-138.5-116-170-41q-243 0-371 213-15 24 8 42l132 100q7 6 19 6 16 0 25-12 53-68 86-92 34-24 86-24 48 0 85.5 26t37.5 59q0 38-20 61t-68 45q-63 28-115.5 86.5t-52.5 125.5v36q0 14 9 23t23 9h192q14 0 23-9t9-23q0-19 21.5-49.5t54.5-49.5q32-18 49-28.5t46-35 44.5-48 28-60.5 12.5-81zm384 192q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"></path></svg><span class="ecmwf-template__title">Help</span></a><nav class="ecmwf-template__dropdown-content"><a href="https://www.ecmwf.int/en/support" title="Support">Support</a><a href="https://confluence.ecmwf.int/display/FCST/Changes+on+web+charts+application" target="_blank" rel="noreferrer">
Opencharts news
</a>
</nav></div><a class="ecmwf-template__log-in" href="#" title="Log in"><svg class="ecmwf-template__icon" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1312 896q0 26-19 45l-544 544q-19 19-45 19t-45-19-19-45v-288h-448q-26 0-45-19t-19-45v-384q0-26 19-45t45-19h448v-288q0-26 19-45t45-19 45 19l544 544q19 19 19 45zm352-352v704q0 119-84.5 203.5t-203.5 84.5h-320q-13 0-22.5-9.5t-9.5-22.5q0-4-1-20t-.5-26.5 3-23.5 10-19.5 20.5-6.5h320q66 0 113-47t47-113v-704q0-66-47-113t-113-47h-312l-11.5-1-11.5-3-8-5.5-7-9-2-13.5q0-4-1-20t-.5-26.5 3-23.5 10-19.5 20.5-6.5h320q119 0 203.5 84.5t84.5 203.5z"></path></svg><span class="ecmwf-template__title">Log in</span></a><div class="ecmwf-template__dropdown ecmwf-template__user-info"><a class="ecmwf-template__dropdown-anchor" href="#user-menu" title="Open user menu"><svg class="ecmwf-template__icon" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1523 1339q-22-155-87.5-257.5t-184.5-118.5q-67 74-159.5 115.5t-195.5 41.5-195.5-41.5-159.5-115.5q-119 16-184.5 118.5t-87.5 257.5q106 150 271 237.5t356 87.5 356-87.5 271-237.5zm-243-699q0-159-112.5-271.5t-271.5-112.5-271.5 112.5-112.5 271.5 112.5 271.5 271.5 112.5 271.5-112.5 112.5-271.5zm512 256q0 182-71 347.5t-190.5 286-285.5 191.5-349 71q-182 0-348-71t-286-191-191-286-71-348 71-348 191-286 286-191 348-71 348 71 286 191 191 286 71 348z"></path></svg><span class="ecmwf-template__title ecmwf-template__user-name"></span></a><nav class="ecmwf-template__dropdown-content"><div class="ecmwf-template__user-menu"><a href="https://eccharts.ecmwf.int/dashboard" target="_blank" rel="noreferrer">
Dashboard
</a>
</div><a class="ecmwf-template__log-out" href="#">Log out</a></nav></div></nav></div></header><header class="ecmwf-template__subheader"><div class="ecmwf-template__app-title">Charts</div></header><main class="ecmwf-template__content"><div class="ecmwf-template__content-wrapper"><style>
.ecmwf-template__contained.embedded .ecmwf-template__header,
.ecmwf-template__contained.embedded .ecmwf-template__subheader,
.ecmwf-template__contained.embedded .ecmwf-template__footer,
.ecmwf-template__fluid.embedded .ecmwf-template__header,
.ecmwf-template__fluid.embedded .ecmwf-template__subheader,
.ecmwf-template__fluid.embedded .ecmwf-template__footer {
display: none;
}
</style>
<noscript>You need to enable JavaScript to run this app.</noscript>
<script>
if (window.isEmbedded) {
document.body.classList.add('embedded');
}
</script>
<div id="root" data-iframe-height style="width: 100%"></div>
</div></main><footer class="ecmwf-template__footer"><div class="ecmwf-template__content-wrapper"><div class="ecmwf-template__copyright">© European Centre for Medium-Range Weather Forecasts</div><nav class="ecmwf-template__links"><a href="https://www.ecmwf.int/en/accessibility" title="Accessibility">Accessibility</a><a href="https://www.ecmwf.int/en/privacy" title="Privacy">Privacy</a><a href="https://www.ecmwf.int/en/terms-use" title="Terms of use">Terms of use</a><a href="https://www.ecmwf.int/en/about/contact-us" title="Contact us">Contact us</a></nav></div></footer><script>/*! For license information please see ecmwf-template.bundle.js.LICENSE.txt */
!function(){var t={241:function(){"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){"use strict";if("Element"in t){var e="classList",n=t.Element.prototype,i=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},u=function(t,e){if(""===e)throw new s("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","String contains an invalid character");return o.call(t,e)},a=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=a.prototype=[],l=function(){return new a(this)};if(s.prototype=Error.prototype,c.item=function(t){return this[t]||null},c.contains=function(t){return-1!==u(this,t+="")},c.add=function(){var t,e=arguments,n=0,i=e.length,r=!1;do{t=e[n]+"",-1===u(this,t)&&(this.push(t),r=!0)}while(++n<i);r&&this._updateClassName()},c.remove=function(){var t,e,n=arguments,i=0,r=n.length,o=!1;do{for(t=n[i]+"",e=u(this,t);-1!==e;)this.splice(e,1),o=!0,e=u(this,t)}while(++i<r);o&&this._updateClassName()},c.toggle=function(t,e){t+="";var n=this.contains(t),i=n?!0!==e&&"remove":!1!==e&&"add";return i&&this[i](t),!0===e||!1===e?e:!n},c.toString=function(){return this.join(" ")},i.defineProperty){var f={get:l,enumerable:!0,configurable:!0};try{i.defineProperty(n,e,f)}catch(t){void 0!==t.number&&-2146823252!==t.number||(f.enumerable=!1,i.defineProperty(n,e,f))}}else i.prototype.__defineGetter__&&n.__defineGetter__(e,l)}}(window.self),function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,i=arguments.length;for(n=0;n<i;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}())},746:function(){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)})}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}!function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n(746),n(241);var i=function(t){return".".concat(t)},r=function(t){return"".concat("ecmwf-template__").concat(t)};function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var s={ROOT:r("dropdown"),ANCHOR:r("dropdown-anchor"),EXPANDED:r("open")},u=function(t,e){c(e),t.classList.add(s.EXPANDED)},a=function(t){t.classList.remove(s.EXPANDED)},c=function(t){t.forEach(a)},l=function t(e,n){if(e&&e.classList)return e.classList.contains(n)?e:t(e.parentNode,n)},f=function(t,e,n){t.querySelector(i(s.ANCHOR)).addEventListener("click",(function(e){e.preventDefault(),function(t,e){(t.classList.contains(s.EXPANDED)?a:u)(t,e)}(t,n)}))},d=function(t,e){if(l(t.target,s.ANCHOR))return!1;c(e)},h=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"initialize",value:function(){this.$dropdowns=document.querySelectorAll(i(s.ROOT)),this.attachListeners()}},{key:"attachListeners",value:function(){var t;this.$dropdowns.forEach(f),t=this.$dropdowns,document.addEventListener("click",(function(e){return d(e,t)}),!1),document.addEventListener("touchstart",(function(e){return d(e,t)}),!1)}}])&&o(e.prototype,n),t}();function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var g=(window.ECMWF_TEMPLATE_CONFIG&&window.ECMWF_TEMPLATE_CONFIG.authHost||window.location.origin)+"/frontend/config",y={LOGIN_BUTTON:r("log-in"),LOGOUT_BUTTON:r("log-out"),USER_INFO:r("user-info"),USER_NAME:r("user-name")},v="openidc-op",m="openidc-rp",w=function(t,e){return'<iframe id="'.concat(t,'" style="visibility: hidden; border: none; display: block" width="0" height="0" tabindex="-1" src="').concat(e,'"></iframe>')},L=function(t){document.body.insertAdjacentHTML("beforeend",t)},E=function(){function n(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o;return r=n,(o=[{key:"initialize",value:function(){this.$login=document.querySelector(i(y.LOGIN_BUTTON)),this.$logout=document.querySelector(i(y.LOGOUT_BUTTON)),this.$userInfo=document.querySelector(i(y.USER_INFO)),this.$userName=this.$userInfo.querySelector(i(y.USER_NAME)),this.user=null,g&&this.updateConfig()}},{key:"onSuccess",value:function(t){var e=t.user,n=t.login_url,i=t.logout_url,r=t.op_check_session_url,o=t.rp_check_session_url;this.updateUser(e),this.injectAuthLinks(n,i),this.injectOpenIdIframes(r,o),e?this.triggerLoggedInMode(e):this.triggerLoggedOutMode()}},{key:"triggerLoggedInMode",value:function(t){this.injectUserName(t.full_name),this.showUserInfoDropdown(),this.hideLoginButton()}},{key:"triggerLoggedOutMode",value:function(){this.injectUserName(""),this.hideUserInfoDropdown(),this.showLoginButton()}},{key:"onFailure",value:function(){this.updateUser(null),this.triggerLoggedOutMode()}},{key:"addUserListener",value:function(){var t=this;this.userListenerId||window.location.origin!==new URL(g).origin||(this.userListenerId=setInterval((function(){t.hasUidChanged()&&t.updateConfig()}),1e4))}},{key:"removeUserListener",value:function(){this.userListenerId=clearInterval()}},{key:"hasUidChanged",value:function(){var n=document.cookie.split(";").reduce((function(n,i){var r,o,s=(r=i.trim().split("=").map(decodeURIComponent),o=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var i,r,o=[],s=!0,u=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(t){u=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(u)throw r}}return o}}(r,o)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],a=s[1];try{return Object.assign(n,t({},u,JSON.parse(a)))}catch(e){return Object.assign(n,t({},u,a))}}),{}).WebAuth_WREP,i=this.user&&this.user.uid;if(!n)return Boolean(this.user);var r=new RegExp("uid:".concat(i,"s?"));return!n.match(r)}},{key:"injectAuthLinks",value:function(t,e){this.$login.setAttribute("href",t),this.$logout.setAttribute("href",e)}},{key:"injectOpenIdIframes",value:function(t,e){this.$opSessionFrame||(L(w(v,t)),this.$opSessionFrame=document.getElementById(v)),this.$rpSessionFrame||(L(w(m,e)),this.$rpSessionFrame=document.getElementById(m))}},{key:"updateUser",value:function(t){this.user=t}},{key:"updateConfig",value:function(){var t=this;return fetch(g,{mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"}}).then((function(t){if(t.status<400)return t.json();throw new Error("Unable to fetch config.")})).then((function(e){return t.onSuccess(e)})).catch((function(){return t.onFailure()}))}},{key:"showUserInfoDropdown",value:function(){this.$userInfo.style.display="block"}},{key:"injectUserName",value:function(t){this.$userName.innerHTML=t}},{key:"hideUserInfoDropdown",value:function(){this.$userInfo.style.display="none"}},{key:"showLoginButton",value:function(){this.$login.style.display="flex"}},{key:"hideLoginButton",value:function(){this.$login.style.display="none"}}])&&p(r.prototype,o),n}();document.addEventListener("DOMContentLoaded",(function(){var t=new E,e=new h;t.initialize(),e.initialize()}))}()}();</script></body></html>