3 lines
905 KiB
JavaScript
3 lines
905 KiB
JavaScript
/*! For license information please see 904.js.LICENSE.txt */
|
||
(self.webpackChunkgrafana_metricsdrilldown_app=self.webpackChunkgrafana_metricsdrilldown_app||[]).push([[605,904],{231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var n=r(262),a=r(44757);t.switchAll=function(){return n.switchMap(a.identity)}},262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var n=r(83598),a=r(34230),o=r(82792);t.switchMap=function(e,t){return a.operate(function(r,a){var i=null,s=0,l=!1,u=function(){return l&&!i&&a.complete()};r.subscribe(o.createOperatorSubscriber(a,function(r){null==i||i.unsubscribe();var l=0,c=s++;n.innerFrom(e(r,c)).subscribe(i=o.createOperatorSubscriber(a,function(e){return a.next(t?t(r,e,c,l++):e)},function(){i=null,u()}))},function(){l=!0,u()}))})}},1172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var n=r(83598),a=r(34230),o=r(87023),i=r(82792);t.sample=function(e){return a.operate(function(t,r){var a=!1,s=null;t.subscribe(i.createOperatorSubscriber(r,function(e){a=!0,s=e})),n.innerFrom(e).subscribe(i.createOperatorSubscriber(r,function(){if(a){a=!1;var e=s;s=null,r.next(e)}},o.noop))})}},1785:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,pluginVersion:()=>a});var n=r(33300);const a="12.3.1",o={cellHeight:n.T.Sm,frameIndex:0,showHeader:!0,showTypeIcons:!1,sortBy:[]}},2013:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},2125:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeatmapColorMode:()=>o,HeatmapColorScale:()=>i,HeatmapSelectionMode:()=>s,defaultOptions:()=>l,pluginVersion:()=>a});var n=r(33300);const a="12.3.1";var o=(e=>(e.Opacity="opacity",e.Scheme="scheme",e))(o||{}),i=(e=>(e.Exponential="exponential",e.Linear="linear",e))(i||{}),s=(e=>(e.X="x",e.Xy="xy",e.Y="y",e))(s||{});const l={calculate:!1,cellGap:1,cellValues:{},color:{scheme:"Oranges",fill:"dark-orange",reverse:!1,exponent:.5,steps:64},exemplars:{color:"rgba(255,0,255,0.7)"},filterValues:{le:1e-9},legend:{show:!0},selectionMode:"x",showValue:n.V.Auto,tooltip:{mode:n.d.Single,yHistogram:!1,showColorScale:!1}}},2894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var n=r(83598),a=r(86322),o=r(34230),i=r(82792);t.retryWhen=function(e){return o.operate(function(t,r){var o,s,l=!1,u=function(){o=t.subscribe(i.createOperatorSubscriber(r,void 0,void 0,function(t){s||(s=new a.Subject,n.innerFrom(e(s)).subscribe(i.createOperatorSubscriber(r,function(){return o?u():l=!0}))),s&&s.next(t)})),l&&(o.unsubscribe(),o=null,l=!1,u())};u()})}},3014:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Upravit filtr pomocí klíče {{keyLabel}}","managed-filter":"Spravovaný filtr: {{origin}}","non-applicable":"","remove-filter-with-key":"Odebrat filtr pomocí klíče {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Odebrat hodnotu filtru – {{itemLabel}}","use-custom-value":"Použít vlastní hodnotu: {{itemLabel}}"},"fallback-page":{content:"Pokud jste se sem dostali pomocí odkazu, může se jednat o chybu v této aplikaci.",subTitle:"Adresa URL neodpovídá žádné stránce",title:"Nenalezeno"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Sbalit scénu","expand-button-label":"Rozbalit scénu","remove-button-label":"Odebrat scénu"},"scene-debugger":{"object-details":"Podrobnosti objektu","scene-graph":"Graf scény","title-scene-debugger":"Ladicí program scény"},"scene-grid-row":{"collapse-row":"Sbalit řádek","expand-row":"Rozbalit řádek"},"scene-refresh-picker":{"text-cancel":"Zrušit","text-refresh":"Obnovit","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Srovnání","button-tooltip":"Povolit porovnání časového rámce"},splitter:{"aria-label-pane-resize-widget":"Widget pro změnu velikosti panelu"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Název"}},"viz-panel-explore-button":{explore:"Prozkoumat"},"viz-panel-renderer":{"loading-plugin-panel":"Načítání panelu pluginu…","panel-plugin-has-no-panel-component":"Plugin panelu nemá žádnou komponentu panelu"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Renderování příliš mnoha řad v rámci jednoho panelu může ovlivnit výkon a zhoršit čitelnost dat.","warning-message":"Zobrazují se pouze {{seriesLimit}} série/sérií"}},utils:{"controls-label":{"tooltip-remove":"Odebrat"},"loading-indicator":{"content-cancel-query":"Zrušit dotaz"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Upravit operátor filtru"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Přidat filtr","title-add-filter":"Přidat filtr"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Odebrat filtr","key-select":{"placeholder-select-label":"Vybrat štítek"},"label-select-label":"Vybrat štítek","title-remove-filter":"Odebrat filtr","value-select":{"placeholder-select-value":"Vybrat hodnotu"}},"data-source-variable":{label:{default:"výchozí"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"vymazat",tooltip:"Použito ve výchozím nastavení na této nástěnce. Pokud je upraveno, přenese se na jiné nástěnky.","tooltip-restore-groupby-set-by-this-dashboard":"Obnovit skupinu nastavenou touto nástěnkou."},"format-registry":{formats:{description:{"commaseparated-values":"Hodnoty oddělené čárkou","double-quoted-values":"Hodnoty v dvojitých uvozovkách","format-date-in-different-ways":"Formátovat datum různými způsoby","format-multivalued-variables-using-syntax-example":"Formátovat vícehodnotové proměnné pomocí globální syntaxe, například {value1,value2}","html-escaping-of-values":"HTML escapování hodnot","join-values-with-a-comma":"","json-stringify-value":"Hodnota JSON stringify","keep-value-as-is":"Ponechat hodnotu tak, jak je","multiple-values-are-formatted-like-variablevalue":"Více hodnot je formátováno jako proměnná=hodnota","single-quoted-values":"Hodnoty v jednoduchých uvozovkách","useful-escaping-values-taking-syntax-characters":"Užitečné pro hodnoty HTML escapování, přičemž se bere v úvahu syntaxe URL","useful-for-url-escaping-values":"Užitečné pro hodnoty adresy URL escapování","values-are-separated-by-character":"Hodnoty jsou odděleny znakem |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Seřadit podle voliče","placeholder-group-by-label":"Seřadit podle štítku"},"interval-variable":{"placeholder-select-value":"Vybrat hodnotu"},"loading-options-placeholder":{"loading-options":"Načítání možností…"},"multi-value-apply-button":{apply:"Použít"},"no-options-placeholder":{"no-options-found":"Nebyly nalezeny žádné možnosti"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Při načítání štítků došlo k chybě. Klikněte pro opakování"},"test-object-with-variable-dependency":{title:{hello:"Dobrý den"}},"test-variable":{text:{text:"Text"}},"variable-value-input":{"placeholder-enter-value":"Zadat hodnotu"},"variable-value-select":{"placeholder-select-value":"Vybrat hodnotu"}}}}},3526:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var r=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&r(e[0])?e[0]:e}},4181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var n=r(76628),a=r(93639);t.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),a.isFunction(t)?n.mergeMap(function(){return e},t,r):("number"==typeof t&&(r=t),n.mergeMap(function(){return e},r))}},4283:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var a=r(86322),o=r(34230),i=r(82792);t.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return o.operate(function(t,o){var s=[new a.Subject],l=0;o.next(s[0].asObservable()),t.subscribe(i.createOperatorSubscriber(o,function(t){var i,u;try{for(var c=n(s),d=c.next();!d.done;d=c.next()){d.value.next(t)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(i)throw i.error}}var f=l-e+1;if(f>=0&&f%r===0&&s.shift().complete(),++l%r===0){var p=new a.Subject;s.push(p),o.next(p.asObservable())}},function(){for(;s.length>0;)s.shift().complete();o.complete()},function(e){for(;s.length>0;)s.shift().error(e);o.error(e)},function(){s=null}))})}},4908:(e,t)=>{"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,a,o,i){return n((s=n(n(t,e),n(a,i)))<<(l=o)|s>>>32-l,r);var s,l}function o(e,t,r,n,o,i,s){return a(t&r|~t&n,e,t,o,i,s)}function i(e,t,r,n,o,i,s){return a(t&n|r&~n,e,t,o,i,s)}function s(e,t,r,n,o,i,s){return a(t^r^n,e,t,o,i,s)}function l(e,t,r,n,o,i,s){return a(r^(t|~n),e,t,o,i,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let a=0;a<r;a+=8){const r=e[a>>5]>>>a%32&255,o=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let a=1732584193,u=-271733879,c=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const r=a,f=u,p=c,h=d;a=o(a,u,c,d,e[t],7,-680876936),d=o(d,a,u,c,e[t+1],12,-389564586),c=o(c,d,a,u,e[t+2],17,606105819),u=o(u,c,d,a,e[t+3],22,-1044525330),a=o(a,u,c,d,e[t+4],7,-176418897),d=o(d,a,u,c,e[t+5],12,1200080426),c=o(c,d,a,u,e[t+6],17,-1473231341),u=o(u,c,d,a,e[t+7],22,-45705983),a=o(a,u,c,d,e[t+8],7,1770035416),d=o(d,a,u,c,e[t+9],12,-1958414417),c=o(c,d,a,u,e[t+10],17,-42063),u=o(u,c,d,a,e[t+11],22,-1990404162),a=o(a,u,c,d,e[t+12],7,1804603682),d=o(d,a,u,c,e[t+13],12,-40341101),c=o(c,d,a,u,e[t+14],17,-1502002290),u=o(u,c,d,a,e[t+15],22,1236535329),a=i(a,u,c,d,e[t+1],5,-165796510),d=i(d,a,u,c,e[t+6],9,-1069501632),c=i(c,d,a,u,e[t+11],14,643717713),u=i(u,c,d,a,e[t],20,-373897302),a=i(a,u,c,d,e[t+5],5,-701558691),d=i(d,a,u,c,e[t+10],9,38016083),c=i(c,d,a,u,e[t+15],14,-660478335),u=i(u,c,d,a,e[t+4],20,-405537848),a=i(a,u,c,d,e[t+9],5,568446438),d=i(d,a,u,c,e[t+14],9,-1019803690),c=i(c,d,a,u,e[t+3],14,-187363961),u=i(u,c,d,a,e[t+8],20,1163531501),a=i(a,u,c,d,e[t+13],5,-1444681467),d=i(d,a,u,c,e[t+2],9,-51403784),c=i(c,d,a,u,e[t+7],14,1735328473),u=i(u,c,d,a,e[t+12],20,-1926607734),a=s(a,u,c,d,e[t+5],4,-378558),d=s(d,a,u,c,e[t+8],11,-2022574463),c=s(c,d,a,u,e[t+11],16,1839030562),u=s(u,c,d,a,e[t+14],23,-35309556),a=s(a,u,c,d,e[t+1],4,-1530992060),d=s(d,a,u,c,e[t+4],11,1272893353),c=s(c,d,a,u,e[t+7],16,-155497632),u=s(u,c,d,a,e[t+10],23,-1094730640),a=s(a,u,c,d,e[t+13],4,681279174),d=s(d,a,u,c,e[t],11,-358537222),c=s(c,d,a,u,e[t+3],16,-722521979),u=s(u,c,d,a,e[t+6],23,76029189),a=s(a,u,c,d,e[t+9],4,-640364487),d=s(d,a,u,c,e[t+12],11,-421815835),c=s(c,d,a,u,e[t+15],16,530742520),u=s(u,c,d,a,e[t+2],23,-995338651),a=l(a,u,c,d,e[t],6,-198630844),d=l(d,a,u,c,e[t+7],10,1126891415),c=l(c,d,a,u,e[t+14],15,-1416354905),u=l(u,c,d,a,e[t+5],21,-57434055),a=l(a,u,c,d,e[t+12],6,1700485571),d=l(d,a,u,c,e[t+3],10,-1894986606),c=l(c,d,a,u,e[t+10],15,-1051523),u=l(u,c,d,a,e[t+1],21,-2054922799),a=l(a,u,c,d,e[t+8],6,1873313359),d=l(d,a,u,c,e[t+15],10,-30611744),c=l(c,d,a,u,e[t+6],15,-1560198380),u=l(u,c,d,a,e[t+13],21,1309151649),a=l(a,u,c,d,e[t+4],6,-145523070),d=l(d,a,u,c,e[t+11],10,-1120210379),c=l(c,d,a,u,e[t+2],15,718787259),u=l(u,c,d,a,e[t+9],21,-343485551),a=n(a,r),u=n(u,f),c=n(c,p),d=n(d,h)}return[a,u,c,d]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};t.default=u},5481:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Редактировать фильтр с ключом {{keyLabel}}","managed-filter":"фильтр, управляемый {{origin}}","non-applicable":"","remove-filter-with-key":"Удалить фильтр с ключом {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Удалить значение фильтра ({{itemLabel}})","use-custom-value":"Использовать пользовательское значение: {{itemLabel}}"},"fallback-page":{content:"Если вы попали сюда по ссылке, возможна ошибка в приложении.",subTitle:"URL-адрес не соответствует ни одной странице",title:"Не найдена"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Свернуть сцену","expand-button-label":"Развернуть сцену","remove-button-label":"Удалить сцену"},"scene-debugger":{"object-details":"Сведения об объекте","scene-graph":"Граф сцены","title-scene-debugger":"Отладчик сцен"},"scene-grid-row":{"collapse-row":"Свернуть строку","expand-row":"Развернуть строку"},"scene-refresh-picker":{"text-cancel":"Отмена","text-refresh":"Обновить","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Сравнение","button-tooltip":"Включить сравнение временных рамок"},splitter:{"aria-label-pane-resize-widget":"Виджет изменения размера панелей"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Заголовок"}},"viz-panel-explore-button":{explore:"Обзор"},"viz-panel-renderer":{"loading-plugin-panel":"Загрузка панели плагинов...","panel-plugin-has-no-panel-component":"Плагин не имеет свойства панели"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Отображение слишком большого количества рядов на одной панели может повлиять на производительность и затруднить чтение данных.","warning-message":"Макс. количество отображаемых рядов: {{seriesLimit}}"}},utils:{"controls-label":{"tooltip-remove":"Удалить"},"loading-indicator":{"content-cancel-query":"Отмена запроса"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Оператор редактирования фильтра"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Добавить фильтр","title-add-filter":"Добавить фильтр"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Удалить фильтр","key-select":{"placeholder-select-label":"Выбрать метку"},"label-select-label":"Выбрать метку","title-remove-filter":"Удалить фильтр","value-select":{"placeholder-select-value":"Выбрать значение"}},"data-source-variable":{label:{default:"по умолчанию"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"очистить",tooltip:"Применяется по умолчанию на этом дашборде. При редактировании переносится на другие дашборды.","tooltip-restore-groupby-set-by-this-dashboard":"Восстановить критерий группирования, заданный этим дашбордом."},"format-registry":{formats:{description:{"commaseparated-values":"Значения, разделенные запятыми","double-quoted-values":"Значения в двойных кавычках","format-date-in-different-ways":"Форматируйте дату разными способами","format-multivalued-variables-using-syntax-example":"Форматируйте многозначные переменные с использованием синтаксиса glob, например {value1,value2}","html-escaping-of-values":"HTML-экранирование значений","join-values-with-a-comma":"","json-stringify-value":"Значение преобразования JSON в строку","keep-value-as-is":"Сохраните значение как есть","multiple-values-are-formatted-like-variablevalue":"Несколько значений форматируются как «переменная=значение»","single-quoted-values":"Значения в одинарных кавычках","useful-escaping-values-taking-syntax-characters":"Функция удобна при URL-экранировании значений с учетом символов синтаксиса URI","useful-for-url-escaping-values":"Функция удобна при URL-экранировании значений","values-are-separated-by-character":"Значения разделяются символом |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Группировать по селектору","placeholder-group-by-label":"Группировать по меткам"},"interval-variable":{"placeholder-select-value":"Выбрать значение"},"loading-options-placeholder":{"loading-options":"Загрузка параметров..."},"multi-value-apply-button":{apply:"Применить"},"no-options-placeholder":{"no-options-found":"Параметры не найдены"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Ошибка при получении меток. Нажмите, чтобы повторить попытку"},"test-object-with-variable-dependency":{title:{hello:"Привет"}},"test-variable":{text:{text:"Текст"}},"variable-value-input":{"placeholder-enter-value":"Ввести значение"},"variable-value-select":{"placeholder-select-value":"Выбрать значение"}}}}},6024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var n=r(36333);t.NotFoundError=n.createErrorClass(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})},6278:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var o=r(93639),i=r(59705),s=r(85362),l=r(45094),u=r(87023),c=r(98005),d=r(8630),f=r(91722),p=function(e){function r(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,i.isSubscription(r)&&r.add(n)):n.destination=t.EMPTY_OBSERVER,n}return a(r,e),r.create=function(e,t,r){return new g(e,t,r)},r.prototype.next=function(e){this.isStopped?y(c.nextNotification(e),this):this._next(e)},r.prototype.error=function(e){this.isStopped?y(c.errorNotification(e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?y(c.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(i.Subscription);t.Subscriber=p;var h=Function.prototype.bind;function m(e,t){return h.call(e,t)}var v=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),g=function(e){function t(t,r,n){var a,i,l=e.call(this)||this;o.isFunction(t)||!t?a={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:l&&s.config.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},a={next:t.next&&m(t.next,i),error:t.error&&m(t.error,i),complete:t.complete&&m(t.complete,i)}):a=t;return l.destination=new v(a),l}return a(t,e),t}(p);function b(e){s.config.useDeprecatedSynchronousErrorHandling?f.captureError(e):l.reportUnhandledError(e)}function y(e,t){var r=s.config.onStoppedNotification;r&&d.timeoutProvider.setTimeout(function(){return r(e,t)})}t.SafeSubscriber=g,t.EMPTY_OBSERVER={closed:!0,next:u.noop,error:function(e){throw e},complete:u.noop}},6832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MIN_GRAFANA_VERSION="8.5.0"},7003:(e,t,r)=>{"use strict";e.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=r(89637).default,e.exports.ResizableBox=r(34156).default},7040:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!==a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!==a--;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=n;0!==a--;){var i=o[a];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},7108:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbortedDeferredError:()=>i.AbortedDeferredError,Await:()=>i.Await,BrowserRouter:()=>Ot,Form:()=>Pt,HashRouter:()=>At,Link:()=>Ct,MemoryRouter:()=>i.MemoryRouter,NavLink:()=>It,Navigate:()=>i.Navigate,NavigationType:()=>i.NavigationType,Outlet:()=>i.Outlet,Route:()=>i.Route,Router:()=>i.Router,RouterProvider:()=>St,Routes:()=>i.Routes,ScrollRestoration:()=>Mt,UNSAFE_DataRouterContext:()=>i.UNSAFE_DataRouterContext,UNSAFE_DataRouterStateContext:()=>i.UNSAFE_DataRouterStateContext,UNSAFE_ErrorResponseImpl:()=>$,UNSAFE_FetchersContext:()=>mt,UNSAFE_LocationContext:()=>i.UNSAFE_LocationContext,UNSAFE_NavigationContext:()=>i.UNSAFE_NavigationContext,UNSAFE_RouteContext:()=>i.UNSAFE_RouteContext,UNSAFE_ViewTransitionContext:()=>ht,UNSAFE_useRouteId:()=>i.UNSAFE_useRouteId,UNSAFE_useScrollRestoration:()=>$t,createBrowserRouter:()=>ct,createHashRouter:()=>dt,createMemoryRouter:()=>i.createMemoryRouter,createPath:()=>i.createPath,createRoutesFromChildren:()=>i.createRoutesFromChildren,createRoutesFromElements:()=>i.createRoutesFromElements,createSearchParams:()=>rt,defer:()=>i.defer,generatePath:()=>i.generatePath,isRouteErrorResponse:()=>i.isRouteErrorResponse,json:()=>i.json,matchPath:()=>i.matchPath,matchRoutes:()=>i.matchRoutes,parsePath:()=>i.parsePath,redirect:()=>i.redirect,redirectDocument:()=>i.redirectDocument,renderMatches:()=>i.renderMatches,replace:()=>i.replace,resolvePath:()=>i.resolvePath,unstable_HistoryRouter:()=>Rt,unstable_usePrompt:()=>Qt,useActionData:()=>i.useActionData,useAsyncError:()=>i.useAsyncError,useAsyncValue:()=>i.useAsyncValue,useBeforeUnload:()=>Kt,useBlocker:()=>i.useBlocker,useFetcher:()=>Wt,useFetchers:()=>Gt,useFormAction:()=>Ut,useHref:()=>i.useHref,useInRouterContext:()=>i.useInRouterContext,useLinkClickHandler:()=>jt,useLoaderData:()=>i.useLoaderData,useLocation:()=>i.useLocation,useMatch:()=>i.useMatch,useMatches:()=>i.useMatches,useNavigate:()=>i.useNavigate,useNavigation:()=>i.useNavigation,useNavigationType:()=>i.useNavigationType,useOutlet:()=>i.useOutlet,useOutletContext:()=>i.useOutletContext,useParams:()=>i.useParams,useResolvedPath:()=>i.useResolvedPath,useRevalidator:()=>i.useRevalidator,useRouteError:()=>i.useRouteError,useRouteLoaderData:()=>i.useRouteLoaderData,useRoutes:()=>i.useRoutes,useSearchParams:()=>Lt,useSubmit:()=>Bt,useViewTransitionState:()=>Yt});var n,a=r(85959),o=r(48398),i=r(81159);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));const l="popstate";function u(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return h("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:m(t)},null,e)}function c(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=v(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),h("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:m(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,r,n){return void 0===r&&(r=null),s({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?v(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function v(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,f=null,v=g();function g(){return(u.state||{idx:null}).idx}function b(){c=n.Pop;let e=g(),t=null==e?null:e-v;v=e,f&&f({action:c,location:w.location,delta:t})}function y(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:m(e);return r=r.replace(/ $/,"%20"),d(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==v&&(v=0,u.replaceState(s({},u.state,{idx:v}),""));let w={get action(){return c},get location(){return e(o,u)},listen(e){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(l,b),f=e,()=>{o.removeEventListener(l,b),f=null}},createHref:e=>t(o,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=h(w.location,e,t);r&&r(a,e),v=g()+1;let s=p(a,v),l=w.createHref(a);try{u.pushState(s,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(l)}i&&f&&f({action:c,location:w.location,delta:1})},replace:function(e,t){c=n.Replace;let a=h(w.location,e,t);r&&r(a,e),v=g();let o=p(a,v),s=w.createHref(a);u.replaceState(o,"",s),i&&f&&f({action:c,location:w.location,delta:0})},go:e=>u.go(e)};return w}var b;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(b||(b={}));const y=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=s({},e,t(e),{id:i});return n[i]=r,r}{let r=s({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function S(e,t,r){return void 0===r&&(r="/"),_(e,t,r,!1)}function _(e,t,r,n){let a=F(("string"==typeof t?v(t):t).pathname||"/",r);if(null==a)return null;let o=x(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e){let t=D(a);i=T(o[e],t,n)}return i}function x(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(d(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=W([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),x(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:M(s,e.index),routesMeta:l})};return e.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of O(e.path))a(e,t,r);else a(e,t)}),t}function O(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=O(n.join("/")),s=[];return s.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}const A=/^:[\w-]+$/,R=3,E=2,k=1,C=10,I=-2,P=e=>"*"===e;function M(e,t){let r=e.split("/"),n=r.length;return r.some(P)&&(n+=I),t&&(n+=E),r.filter(e=>!P(e)).reduce((e,t)=>e+(A.test(t)?R:""===t?k:C),n)}function T(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=N({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u),d=s.route;if(!c&&l&&r&&!n[n.length-1].route.index&&(c=N({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:W([o,c.pathname]),pathnameBase:G(W([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=W([o,c.pathnameBase]))}return i}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);f("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let o=new RegExp(a,t?void 0:"i");return[o,n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=s[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function D(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}const j=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,L=e=>j.test(e);function V(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function z(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function B(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function U(e,t,r,n){let a;void 0===n&&(n=!1),"string"==typeof e?a=v(e):(a=s({},e),d(!a.pathname||!a.pathname.includes("?"),z("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),z("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),z("#","search","hash",a)));let o,i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let r,{pathname:n,search:a="",hash:o=""}="string"==typeof e?v(e):e;if(n)if(L(n))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),f(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+n)}r=n.startsWith("/")?V(n.substring(1),"/"):V(n,t)}else r=t;return{pathname:r,search:H(a),hash:q(o)}}(a,o),c=l&&"/"!==l&&l.endsWith("/"),p=(i||"."===l)&&r.endsWith("/");return u.pathname.endsWith("/")||!c&&!p||(u.pathname+="/"),u}const W=e=>e.join("/").replace(/\/\/+/g,"/"),G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),H=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class ${constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function K(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Q=["post","put","patch","delete"],Y=new Set(Q),Z=["get",...Q],J=new Set(Z),X=new Set([301,302,303,307,308]),ee=new Set([307,308]),te={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ae=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ie="remix-router-transitions";function se(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,a=!r;let o;if(d(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=oe;let i,l,u,c={},p=w(e.routes,o,void 0,c),m=e.basename||"/",v=e.dataStrategy||ge,g=e.patchRoutesOnNavigation,y=s({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),x=null,O=new Set,A=null,R=null,E=null,k=null!=e.hydrationData,C=S(p,e.history.location,m),I=!1,P=null;if(null==C&&!g){let t=Pe(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Ie(p);C=r,P={[n.id]:t}}if(C&&!e.hydrationData){ut(C,p,e.history.location.pathname).active&&(C=null)}if(C)if(C.some(e=>e.route.lazy))l=!1;else if(C.some(e=>e.route.loader))if(y.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=C.findIndex(e=>void 0!==r[e.route.id]);l=C.slice(0,e+1).every(e=>!fe(e.route,t,r))}else l=C.every(e=>!fe(e.route,t,r))}else l=null!=e.hydrationData;else l=!0;else if(l=!1,C=[],y.v7_partialHydration){let t=ut(null,p,e.history.location.pathname);t.active&&t.matches&&(I=!0,C=t.matches)}let M,T,N={historyAction:e.history.action,location:e.history.location,matches:C,initialized:l,navigation:te,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||P,fetchers:new Map,blockers:new Map},D=n.Pop,j=!1,L=!1,V=new Map,z=null,B=!1,U=!1,W=[],G=new Set,H=new Map,q=0,$=-1,Q=new Map,Y=new Set,Z=new Map,J=new Map,X=new Set,se=new Map,ce=new Map;function pe(e,t){void 0===t&&(t={}),N=s({},N,e);let r=[],n=[];y.v7_fetcherPersist&&N.fetchers.forEach((e,t)=>{"idle"===e.state&&(X.has(t)?n.push(t):r.push(t))}),X.forEach(e=>{N.fetchers.has(e)||H.has(e)||n.push(e)}),[...O].forEach(e=>e(N,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),y.v7_fetcherPersist?(r.forEach(e=>N.fetchers.delete(e)),n.forEach(e=>Ze(e))):n.forEach(e=>X.delete(e))}function he(t,r,a){var o,l;let u,{flushSync:c}=void 0===a?{}:a,d=null!=N.actionData&&null!=N.navigation.formMethod&&Be(N.navigation.formMethod)&&"loading"===N.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);u=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?N.actionData:null;let f=r.loaderData?Ee(N.loaderData,r.loaderData,r.matches||[],r.errors):N.loaderData,h=N.blockers;h.size>0&&(h=new Map(h),h.forEach((e,t)=>h.set(t,ne)));let m,v=!0===j||null!=N.navigation.formMethod&&Be(N.navigation.formMethod)&&!0!==(null==(l=t.state)?void 0:l._isRedirect);if(i&&(p=i,i=void 0),B||D===n.Pop||(D===n.Push?e.history.push(t,t.state):D===n.Replace&&e.history.replace(t,t.state)),D===n.Pop){let e=V.get(N.location.pathname);e&&e.has(t.pathname)?m={currentLocation:N.location,nextLocation:t}:V.has(t.pathname)&&(m={currentLocation:t,nextLocation:N.location})}else if(L){let e=V.get(N.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),V.set(N.location.pathname,e)),m={currentLocation:N.location,nextLocation:t}}pe(s({},r,{actionData:u,loaderData:f,historyAction:D,location:t,initialized:!0,navigation:te,revalidation:"idle",restoreScrollPosition:lt(t,r.matches||N.matches),preventScrollReset:v,blockers:h}),{viewTransitionOpts:m,flushSync:!0===c}),D=n.Pop,j=!1,L=!1,B=!1,U=!1,W=[]}async function ve(t,r,a){M&&M.abort(),M=null,D=t,B=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(A&&E){let r=st(e,t);A[r]=E()}}(N.location,N.matches),j=!0===(a&&a.preventScrollReset),L=!0===(a&&a.enableViewTransition);let o=i||p,l=a&&a.overrideNavigation,u=null!=a&&a.initialHydration&&N.matches&&N.matches.length>0&&!I?N.matches:S(o,r,m),c=!0===(a&&a.flushSync);if(u&&N.initialized&&!U&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(N.location,r)&&!(a&&a.submission&&Be(a.submission.formMethod)))return void he(r,{matches:u},{flushSync:c});let d=ut(u,o,r.pathname);if(d.active&&d.matches&&(u=d.matches),!u){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return void he(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c})}M=new AbortController;let f,h=_e(e.history,r,M.signal,a&&a.submission);if(a&&a.pendingError)f=[Ce(u).route.id,{type:b.error,error:a.pendingError}];else if(a&&a.submission&&Be(a.submission.formMethod)){let t=await async function(t,r,a,o,i,s){void 0===s&&(s={});Le();let l,u=function(e,t){let r={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return r}(r,a);if(pe({navigation:u},{flushSync:!0===s.flushSync}),i){let e=await ct(o,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ce(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:b.error,error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:n}=ot(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:b.error,error:t}]}}o=e.matches}let c=qe(o,r);if(c.route.action||c.route.lazy){if(l=(await Ae("action",N,t,[c],o,null))[c.route.id],t.signal.aborted)return{shortCircuited:!0}}else l={type:b.error,error:Pe(405,{method:t.method,pathname:r.pathname,routeId:c.route.id})};if(je(l)){let r;if(s&&null!=s.replace)r=s.replace;else{r=Se(l.response.headers.get("Location"),new URL(t.url),m,e.history)===N.location.pathname+N.location.search}return await Oe(t,l,!0,{submission:a,replace:r}),{shortCircuited:!0}}if(De(l))throw Pe(400,{type:"defer-action"});if(Fe(l)){let e=Ce(o,c.route.id);return!0!==(s&&s.replace)&&(D=n.Push),{matches:o,pendingActionResult:[e.route.id,l]}}return{matches:o,pendingActionResult:[c.route.id,l]}}(h,r,a.submission,u,d.active,{replace:a.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(Fe(n)&&K(n.error)&&404===n.error.status)return M=null,void he(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}u=t.matches||u,f=t.pendingActionResult,l=Ke(r,a.submission),c=!1,d.active=!1,h=_e(e.history,h.url,h.signal)}let{shortCircuited:v,matches:g,loaderData:w,errors:_}=await async function(t,r,n,a,o,l,u,c,d,f,h){let v=o||Ke(r,l),g=l||u||$e(v),b=!(B||y.v7_partialHydration&&d);if(a){if(b){let e=xe(h);pe(s({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ct(n,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ce(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}n=e.matches}let w=i||p,[S,_]=de(e.history,N,n,g,r,y.v7_partialHydration&&!0===d,y.v7_skipActionErrorRevalidation,U,W,G,X,Z,Y,w,m,h);if(it(e=>!(n&&n.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),$=++q,0===S.length&&0===_.length){let e=et();return he(r,s({matches:n,loaderData:{},errors:h&&Fe(h[1])?{[h[0]]:h[1].error}:null},ke(h),e?{fetchers:new Map(N.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(b){let e={};if(!a){e.navigation=v;let t=xe(h);void 0!==t&&(e.actionData=t)}_.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=N.fetchers.get(e.key),r=Qe(void 0,t?t.data:void 0);N.fetchers.set(e.key,r)}),new Map(N.fetchers)}(_)),pe(e,{flushSync:f})}_.forEach(e=>{Je(e.key),e.controller&&H.set(e.key,e.controller)});let x=()=>_.forEach(e=>Je(e.key));M&&M.signal.addEventListener("abort",x);let{loaderResults:O,fetcherResults:A}=await Te(N,n,S,_,t);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",x);_.forEach(e=>H.delete(e.key));let R=Me(O);if(R)return await Oe(t,R.result,!0,{replace:c}),{shortCircuited:!0};if(R=Me(A),R)return Y.add(R.key),await Oe(t,R.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:E,errors:k}=Re(N,n,O,h,_,A,se);se.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&se.delete(t)})}),y.v7_partialHydration&&d&&N.errors&&(k=s({},N.errors,k));let C=et(),I=tt($),P=C||I||_.length>0;return s({matches:n,loaderData:E,errors:k},P?{fetchers:new Map(N.fetchers)}:{})}(h,r,u,d.active,l,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,c,f);v||(M=null,he(r,s({matches:g||u},ke(f),{loaderData:w,errors:_})))}function xe(e){return e&&!Fe(e[1])?{[e[0]]:e[1].data}:N.actionData?0===Object.keys(N.actionData).length?null:N.actionData:void 0}async function Oe(a,o,i,l){let{submission:u,fetcherSubmission:c,preventScrollReset:f,replace:p}=void 0===l?{}:l;o.response.headers.has("X-Remix-Revalidate")&&(U=!0);let v=o.response.headers.get("Location");d(v,"Expected a Location header on the redirect Response"),v=Se(v,new URL(a.url),m,e.history);let g=h(N.location,v,{_isRedirect:!0});if(r){let r=!1;if(o.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(ae.test(v)){const n=e.history.createURL(v);r=n.origin!==t.location.origin||null==F(n.pathname,m)}if(r)return void(p?t.location.replace(v):t.location.assign(v))}M=null;let b=!0===p||o.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:y,formAction:w,formEncType:S}=N.navigation;!u&&!c&&y&&w&&S&&(u=$e(N.navigation));let _=u||c;if(ee.has(o.response.status)&&_&&Be(_.formMethod))await ve(b,g,{submission:s({},_,{formAction:v}),preventScrollReset:f||j,enableViewTransition:i?L:void 0});else{let e=Ke(g,u);await ve(b,g,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:f||j,enableViewTransition:i?L:void 0})}}async function Ae(e,t,r,n,a,i){let s,l={};try{s=await be(v,e,t,r,n,a,i,c,o)}catch(e){return n.forEach(t=>{l[t.route.id]={type:b.error,error:e}}),l}for(let[e,t]of Object.entries(s))if(Ne(t)){let n=t.result;l[e]={type:b.redirect,response:we(n,r,e,a,m,y.v7_relativeSplatPath)}}else l[e]=await ye(t);return l}async function Te(t,r,n,a,o){let i=t.matches,s=Ae("loader",t,o,n,r,null),l=Promise.all(a.map(async r=>{if(r.matches&&r.match&&r.controller){let n=(await Ae("loader",t,_e(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}return Promise.resolve({[r.key]:{type:b.error,error:Pe(404,{pathname:r.path})}})})),u=await s,c=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Ue(r,u,o.signal,i,t.loaderData),We(r,c,a)]),{loaderResults:u,fetcherResults:c}}function Le(){U=!0,W.push(...it()),Z.forEach((e,t)=>{H.has(t)&&G.add(t),Je(t)})}function Ve(e,t,r){void 0===r&&(r={}),N.fetchers.set(e,t),pe({fetchers:new Map(N.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function ze(e,t,r,n){void 0===n&&(n={});let a=Ce(N.matches,t);Ze(e),pe({errors:{[a.route.id]:r},fetchers:new Map(N.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function He(e){return J.set(e,(J.get(e)||0)+1),X.has(e)&&X.delete(e),N.fetchers.get(e)||re}function Ze(e){let t=N.fetchers.get(e);!H.has(e)||t&&"loading"===t.state&&Q.has(e)||Je(e),Z.delete(e),Q.delete(e),Y.delete(e),y.v7_fetcherPersist&&X.delete(e),G.delete(e),N.fetchers.delete(e)}function Je(e){let t=H.get(e);t&&(t.abort(),H.delete(e))}function Xe(e){for(let t of e){let e=Ye(He(t).data);N.fetchers.set(t,e)}}function et(){let e=[],t=!1;for(let r of Y){let n=N.fetchers.get(r);d(n,"Expected fetcher: "+r),"loading"===n.state&&(Y.delete(r),e.push(r),t=!0)}return Xe(e),t}function tt(e){let t=[];for(let[r,n]of Q)if(n<e){let e=N.fetchers.get(r);d(e,"Expected fetcher: "+r),"loading"===e.state&&(Je(r),Q.delete(r),t.push(r))}return Xe(t),t.length>0}function rt(e){N.blockers.delete(e),ce.delete(e)}function nt(e,t){let r=N.blockers.get(e)||ne;d("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(N.blockers);n.set(e,t),pe({blockers:n})}function at(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ce.size)return;ce.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(ce.entries()),[o,i]=a[a.length-1],s=N.blockers.get(o);return s&&"proceeding"===s.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function ot(e){let t=Pe(404,{pathname:e}),r=i||p,{matches:n,route:a}=Ie(r);return it(),{notFoundMatches:n,route:a,error:t}}function it(e){let t=[];return se.forEach((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),se.delete(n))}),t}function st(e,t){if(R){return R(e,t.map(e=>function(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}(e,N.loaderData)))||e.key}return e.key}function lt(e,t){if(A){let r=st(e,t),n=A[r];if("number"==typeof n)return n}return null}function ut(e,t,r){if(g){if(!e){return{active:!0,matches:_(t,r,m,!0)||[]}}if(Object.keys(e[0].params).length>0){return{active:!0,matches:_(t,r,m,!0)}}}return{active:!1,matches:null}}async function ct(e,t,r,n){if(!g)return{type:"success",matches:e};let a=e;for(;;){let e=null==i,s=i||p,l=c;try{await g({signal:r,path:t,matches:a,fetcherKey:n,patch:(e,t)=>{r.aborted||me(e,t,s,l,o)}})}catch(e){return{type:"error",error:e,partialMatches:a}}finally{e&&!r.aborted&&(p=[...p])}if(r.aborted)return{type:"aborted"};let u=S(s,t,m);if(u)return{type:"success",matches:u};let d=_(s,t,m,!0);if(!d||a.length===d.length&&a.every((e,t)=>e.route.id===d[t].route.id))return{type:"success",matches:null};a=d}}return u={get basename(){return m},get future(){return y},get state(){return N},get routes(){return p},get window(){return t},initialize:function(){if(x=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(T)return T(),void(T=void 0);f(0===ce.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=at({currentLocation:N.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{T=e});return e.history.go(-1*a),void nt(o,{state:"blocked",location:n,proceed(){nt(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(N.blockers);e.set(o,ne),pe({blockers:e})}})}return ve(r,n)}),r){!function(e,t){try{let r=e.sessionStorage.getItem(ie);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,V);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ie,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,V);t.addEventListener("pagehide",e),z=()=>t.removeEventListener("pagehide",e)}return N.initialized||ve(n.Pop,N.location,{initialHydration:!0}),u},subscribe:function(e){return O.add(e),()=>O.delete(e)},enableScrollRestoration:function(e,t,r){if(A=e,E=t,R=r||null,!k&&N.navigation===te){k=!0;let e=lt(N.location,N.matches);null!=e&&pe({restoreScrollPosition:e})}return()=>{A=null,E=null,R=null}},navigate:async function t(r,a){if("number"==typeof r)return void e.history.go(r);let o=le(N.location,N.matches,m,y.v7_prependBasename,r,y.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:i,submission:l,error:u}=ue(y.v7_normalizeFormMethod,!1,o,a),c=N.location,d=h(N.location,i,a&&a.state);d=s({},d,e.history.encodeLocation(d));let f=a&&null!=a.replace?a.replace:void 0,p=n.Push;!0===f?p=n.Replace:!1===f||null!=l&&Be(l.formMethod)&&l.formAction===N.location.pathname+N.location.search&&(p=n.Replace);let v=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,g=!0===(a&&a.flushSync),b=at({currentLocation:c,nextLocation:d,historyAction:p});if(!b)return await ve(p,d,{submission:l,pendingError:u,preventScrollReset:v,replace:a&&a.replace,enableViewTransition:a&&a.viewTransition,flushSync:g});nt(b,{state:"blocked",location:d,proceed(){nt(b,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(r,a)},reset(){let e=new Map(N.blockers);e.set(b,ne),pe({blockers:e})}})},fetch:function(t,r,n,o){if(a)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Je(t);let s=!0===(o&&o.flushSync),l=i||p,u=le(N.location,N.matches,m,y.v7_prependBasename,n,y.v7_relativeSplatPath,r,null==o?void 0:o.relative),c=S(l,u,m),f=ut(c,l,u);if(f.active&&f.matches&&(c=f.matches),!c)return void ze(t,r,Pe(404,{pathname:u}),{flushSync:s});let{path:h,submission:v,error:g}=ue(y.v7_normalizeFormMethod,!0,u,o);if(g)return void ze(t,r,g,{flushSync:s});let b=qe(c,h),w=!0===(o&&o.preventScrollReset);v&&Be(v.formMethod)?async function(t,r,n,a,o,s,l,u,c){function f(e){if(!e.route.action&&!e.route.lazy){let e=Pe(405,{method:c.formMethod,pathname:n,routeId:r});return ze(t,r,e,{flushSync:l}),!0}return!1}if(Le(),Z.delete(t),!s&&f(a))return;let h=N.fetchers.get(t);Ve(t,function(e,t){let r={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return r}(c,h),{flushSync:l});let v=new AbortController,g=_e(e.history,n,v.signal,c);if(s){let e=await ct(o,new URL(g.url).pathname,g.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ze(t,r,e.error,{flushSync:l});if(!e.matches)return void ze(t,r,Pe(404,{pathname:n}),{flushSync:l});if(f(a=qe(o=e.matches,n)))return}H.set(t,v);let b=q,w=await Ae("action",N,g,[a],o,t),_=w[a.route.id];if(g.signal.aborted)return void(H.get(t)===v&&H.delete(t));if(y.v7_fetcherPersist&&X.has(t)){if(je(_)||Fe(_))return void Ve(t,Ye(void 0))}else{if(je(_))return H.delete(t),$>b?void Ve(t,Ye(void 0)):(Y.add(t),Ve(t,Qe(c)),Oe(g,_,!1,{fetcherSubmission:c,preventScrollReset:u}));if(Fe(_))return void ze(t,r,_.error)}if(De(_))throw Pe(400,{type:"defer-action"});let x=N.navigation.location||N.location,O=_e(e.history,x,v.signal),A=i||p,R="idle"!==N.navigation.state?S(A,N.navigation.location,m):N.matches;d(R,"Didn't find any matches after fetcher action");let E=++q;Q.set(t,E);let k=Qe(c,_.data);N.fetchers.set(t,k);let[C,I]=de(e.history,N,R,c,x,!1,y.v7_skipActionErrorRevalidation,U,W,G,X,Z,Y,A,m,[a.route.id,_]);I.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=N.fetchers.get(t),n=Qe(void 0,r?r.data:void 0);N.fetchers.set(t,n),Je(t),e.controller&&H.set(t,e.controller)}),pe({fetchers:new Map(N.fetchers)});let P=()=>I.forEach(e=>Je(e.key));v.signal.addEventListener("abort",P);let{loaderResults:T,fetcherResults:F}=await Te(N,R,C,I,O);if(v.signal.aborted)return;v.signal.removeEventListener("abort",P),Q.delete(t),H.delete(t),I.forEach(e=>H.delete(e.key));let j=Me(T);if(j)return Oe(O,j.result,!1,{preventScrollReset:u});if(j=Me(F),j)return Y.add(j.key),Oe(O,j.result,!1,{preventScrollReset:u});let{loaderData:L,errors:V}=Re(N,R,T,void 0,I,F,se);if(N.fetchers.has(t)){let e=Ye(_.data);N.fetchers.set(t,e)}tt(E),"loading"===N.navigation.state&&E>$?(d(D,"Expected pending action"),M&&M.abort(),he(N.navigation.location,{matches:R,loaderData:L,errors:V,fetchers:new Map(N.fetchers)})):(pe({errors:V,loaderData:Ee(N.loaderData,L,R,V),fetchers:new Map(N.fetchers)}),U=!1)}(t,r,h,b,c,f.active,s,w,v):(Z.set(t,{routeId:r,path:h}),async function(t,r,n,a,o,i,s,l,u){let c=N.fetchers.get(t);Ve(t,Qe(u,c?c.data:void 0),{flushSync:s});let f=new AbortController,p=_e(e.history,n,f.signal);if(i){let e=await ct(o,new URL(p.url).pathname,p.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ze(t,r,e.error,{flushSync:s});if(!e.matches)return void ze(t,r,Pe(404,{pathname:n}),{flushSync:s});a=qe(o=e.matches,n)}H.set(t,f);let h=q,m=await Ae("loader",N,p,[a],o,t),v=m[a.route.id];De(v)&&(v=await Ge(v,p.signal,!0)||v);H.get(t)===f&&H.delete(t);if(p.signal.aborted)return;if(X.has(t))return void Ve(t,Ye(void 0));if(je(v))return $>h?void Ve(t,Ye(void 0)):(Y.add(t),void await Oe(p,v,!1,{preventScrollReset:l}));if(Fe(v))return void ze(t,r,v.error);d(!De(v),"Unhandled fetcher deferred data"),Ve(t,Ye(v.data))}(t,r,h,b,c,f.active,s,w,v))},revalidate:function(){Le(),pe({revalidation:"loading"}),"submitting"!==N.navigation.state&&("idle"!==N.navigation.state?ve(D||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:!0===L}):ve(N.historyAction,N.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:He,deleteFetcher:function(e){let t=(J.get(e)||0)-1;t<=0?(J.delete(e),X.add(e),y.v7_fetcherPersist||Ze(e)):J.set(e,t),pe({fetchers:new Map(N.fetchers)})},dispose:function(){x&&x(),z&&z(),O.clear(),M&&M.abort(),N.fetchers.forEach((e,t)=>Ze(t)),N.blockers.forEach((e,t)=>rt(t))},getBlocker:function(e,t){let r=N.blockers.get(e)||ne;return ce.get(e)!==t&&ce.set(e,t),r},deleteBlocker:rt,patchRoutes:function(e,t){let r=null==i;me(e,t,i||p,c,o),r&&(p=[...p],pe({}))},_internalFetchControllers:H,_internalActiveDeferreds:se,_internalSetRoutes:function(e){c={},i=w(e,o,void 0,c)}},u}Symbol("deferred");function le(e,t,r,n,a,o,i,s){let l,u;if(i){l=[];for(let e of t)if(l.push(e),e.route.id===i){u=e;break}}else l=t,u=t[t.length-1];let c=U(a||".",function(e,t){let r=B(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}(l,o),F(e.pathname,r)||e.pathname,"path"===s);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=He(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:W([r,c.pathname])),m(c)}function ue(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&!ze(n.formMethod))return{path:r,error:Pe(405,{method:n.formMethod})};let a,o,i=()=>({path:r,error:Pe(400,{type:"invalid-body"})}),s=n.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),u=Te(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Be(l))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:l,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Be(l))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:u,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)a=xe(n.formData),o=n.formData;else if(n.body instanceof FormData)a=xe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)a=n.body,o=Oe(a);else if(null==n.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(n.body),o=Oe(a)}catch(e){return i()}let c={formMethod:l,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Be(c.formMethod))return{path:r,submission:c};let f=v(r);return t&&f.search&&He(f.search)&&a.append("index",""),f.search="?"+a,{path:m(f),submission:c}}function ce(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function de(e,t,r,n,a,o,i,l,u,c,d,f,p,h,m,v){let g=v?Fe(v[1])?v[1].error:v[1].data:void 0,b=e.createURL(t.location),y=e.createURL(a),w=r;o&&t.errors?w=ce(r,Object.keys(t.errors)[0],!0):v&&Fe(v[1])&&(w=ce(r,v[0]));let _=v?v[1].statusCode:void 0,x=i&&_&&_>=400,O=w.filter((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return fe(a,t.loaderData,t.errors);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||u.some(t=>t===e.route.id))return!0;let i=t.matches[r],c=e;return he(e,s({currentUrl:b,currentParams:i.params,nextUrl:y,nextParams:c.params},n,{actionResult:g,actionStatus:_,defaultShouldRevalidate:!x&&(l||b.pathname+b.search===y.pathname+y.search||b.search!==y.search||pe(i,c))}))}),A=[];return f.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=S(h,e.path,m);if(!i)return void A.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),f=qe(i,e.path),v=!1;p.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?l:he(f,s({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:g,actionStatus:_,defaultShouldRevalidate:!x&&l})),v&&A.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:f,controller:new AbortController})}),[O,A]}function fe(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return!(!n&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function pe(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function he(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function me(e,t,r,n,a){var o;let i;if(e){let t=n[e];d(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let s=w(t.filter(e=>!i.some(t=>ve(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...s)}function ve(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,r)=>{var n;return null==(n=t.children)?void 0:n.some(t=>ve(e,t))}))}async function ge(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function be(e,t,r,n,a,o,i,l,u,c){let p=o.map(e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];d(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||y.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,s({},t(a),{lazy:void 0}))}(e.route,u,l):void 0),h=o.map((e,r)=>{let o=p[r],i=a.some(t=>t.route.id===e.route.id);return s({},e,{shouldLoad:i,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,r,n,a,o){let i,s,l=n=>{let i,l=new Promise((e,t)=>i=t);s=()=>i(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]),c=(async()=>{try{return{type:"data",result:await(a?a(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([c,l])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([l(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else{if(await n,a=r.route[e],!a){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Pe(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:b.data,result:void 0}}i=await l(a)}else{if(!a){let e=new URL(t.url);throw Pe(404,{pathname:e.pathname+e.search})}i=await l(a)}d(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:b.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return i}(t,n,e,o,r,c):Promise.resolve({type:b.data,result:void 0}))})}),m=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:c});try{await Promise.all(p)}catch(e){}return m}async function ye(e){let{result:t,type:r}=e;if(Ve(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:b.error,error:e}}return r===b.error?{type:b.error,error:new $(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:b.data,data:e,statusCode:t.status,headers:t.headers}}var n,a,o,i,s,l,u,c;return r===b.error?Le(t)?t.data instanceof Error?{type:b.error,error:t.data,statusCode:null==(o=t.init)?void 0:o.status,headers:null!=(i=t.init)&&i.headers?new Headers(t.init.headers):void 0}:{type:b.error,error:new $((null==(n=t.init)?void 0:n.status)||500,void 0,t.data),statusCode:K(t)?t.status:void 0,headers:null!=(a=t.init)&&a.headers?new Headers(t.init.headers):void 0}:{type:b.error,error:t,statusCode:K(t)?t.status:void 0}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:b.deferred,deferredData:t,statusCode:null==(s=t.init)?void 0:s.status,headers:(null==(l=t.init)?void 0:l.headers)&&new Headers(t.init.headers)}:Le(t)?{type:b.data,data:t.data,statusCode:null==(u=t.init)?void 0:u.status,headers:null!=(c=t.init)&&c.headers?new Headers(t.init.headers):void 0}:{type:b.data,data:t}}function we(e,t,r,n,a,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ae.test(i)){let s=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=le(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function Se(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ae.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n);if(a.includes(o.protocol))throw new Error("Invalid redirect location");let i=null!=F(o.pathname,r);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function _e(e,t,r,n){let a=e.createURL(Te(t)).toString(),o={signal:r};if(n&&Be(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=xe(n.formData):o.body=n.formData}return new Request(a,o)}function xe(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Oe(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Ae(e,t,r,n,a){let o,i={},s=null,l=!1,u={},c=r&&Fe(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let f=r.route.id,p=t[f];if(d(!je(p),"Cannot handle redirect results in processLoaderData"),Fe(p)){let t=p.error;if(void 0!==c&&(t=c,c=void 0),s=s||{},a)s[f]=t;else{let r=Ce(e,f);null==s[r.route.id]&&(s[r.route.id]=t)}i[f]=void 0,l||(l=!0,o=K(p.error)?p.error.status:500),p.headers&&(u[f]=p.headers)}else De(p)?(n.set(f,p.deferredData),i[f]=p.deferredData.data,null==p.statusCode||200===p.statusCode||l||(o=p.statusCode),p.headers&&(u[f]=p.headers)):(i[f]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(o=p.statusCode),p.headers&&(u[f]=p.headers))}),void 0!==c&&r&&(s={[r[0]]:c},i[r[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:u}}function Re(e,t,r,n,a,o,i){let{loaderData:l,errors:u}=Ae(t,r,n,i,!1);return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(d(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(Fe(i)){let t=Ce(e.matches,null==n?void 0:n.route.id);u&&u[t.route.id]||(u=s({},u,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(je(i))d(!1,"Unhandled fetcher revalidation redirect");else if(De(i))d(!1,"Unhandled fetcher deferred data");else{let t=Ye(i.data);e.fetchers.set(r,t)}}),{loaderData:l,errors:u}}function Ee(e,t,r,n){let a=s({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function ke(e){return e?Fe(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ce(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function Ie(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Pe(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",l='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new $(e||500,s,new Error(l),!0)}function Me(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(je(n))return{key:r,result:n}}}function Te(e){return m(s({},"string"==typeof e?v(e):e,{hash:""}))}function Ne(e){return Ve(e.result)&&X.has(e.result.status)}function De(e){return e.type===b.deferred}function Fe(e){return e.type===b.error}function je(e){return(e&&e.type)===b.redirect}function Le(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ve(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ze(e){return J.has(e.toLowerCase())}function Be(e){return Y.has(e.toLowerCase())}async function Ue(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===s);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!pe(c,u)&&void 0!==(a&&a[u.route.id]);De(l)&&d&&await Ge(l,r,!1).then(e=>{e&&(t[s]=e)})}}async function We(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],s=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&(De(s)&&(d(i,"Expected an AbortController for revalidating fetcher deferred result"),await Ge(s,i.signal,!0).then(e=>{e&&(t[a]=e)})))}}async function Ge(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:b.data,data:e.deferredData.unwrappedData}}catch(e){return{type:b.error,error:e}}return{type:b.data,data:e.deferredData.data}}}function He(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function qe(e,t){let r="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&He(r||""))return e[e.length-1];let n=B(e);return n[n.length-1]}function $e(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function Ke(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Qe(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ye(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ze.apply(this,arguments)}function Je(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}const Xe="get",et="application/x-www-form-urlencoded";function tt(e){return null!=e&&"string"==typeof e.tagName}function rt(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let nt=null;const at=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ot(e){return null==e||at.has(e)?e:null}function it(e,t){let r,n,a,o,i;if(tt(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?F(i,t):null,r=e.getAttribute("method")||Xe,a=ot(e.getAttribute("enctype"))||et,o=new FormData(e)}else if(function(e){return tt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return tt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(n=s?F(s,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||Xe,a=ot(e.getAttribute("formenctype"))||ot(i.getAttribute("enctype"))||et,o=new FormData(i,e),!function(){if(null===nt)try{new FormData(document.createElement("form"),0),nt=!1}catch(e){nt=!0}return nt}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else{if(tt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Xe,n=null,a=et,i=e}var s;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}const st=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lt=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ut=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function ct(e,t){return se({basename:null==t?void 0:t.basename,future:Ze({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:u({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ft(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function dt(e,t){return se({basename:null==t?void 0:t.basename,future:Ze({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:c({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ft(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function ft(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ze({},t,{errors:pt(t.errors)})),t}function pt(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new $(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const ht=a.createContext({isTransitioning:!1});const mt=a.createContext(new Map);const vt=a.startTransition,gt=o.flushSync,bt=a.useId;function yt(e){gt?gt(e):e()}class wt{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function St(e){let{fallbackElement:t,router:r,future:n}=e,[o,s]=a.useState(r.state),[l,u]=a.useState(),[c,d]=a.useState({isTransitioning:!1}),[f,p]=a.useState(),[h,m]=a.useState(),[v,g]=a.useState(),b=a.useRef(new Map),{v7_startTransition:y}=n||{},w=a.useCallback(e=>{y?function(e){vt?vt(e):e()}(e):e()},[y]),S=a.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:o}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&b.current.set(t,e.data)}),n.forEach(e=>b.current.delete(e));let i=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(o&&!i){if(a){yt(()=>{h&&(f&&f.resolve(),h.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})});let t=r.window.document.startViewTransition(()=>{yt(()=>s(e))});return t.finished.finally(()=>{yt(()=>{p(void 0),m(void 0),u(void 0),d({isTransitioning:!1})})}),void yt(()=>m(t))}h?(f&&f.resolve(),h.skipTransition(),g({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(u(e),d({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?yt(()=>s(e)):w(()=>s(e))},[r.window,h,f,b,w]);a.useLayoutEffect(()=>r.subscribe(S),[r,S]),a.useEffect(()=>{c.isTransitioning&&!c.flushSync&&p(new wt)},[c]),a.useEffect(()=>{if(f&&l&&r.window){let e=l,t=f.promise,n=r.window.document.startViewTransition(async()=>{w(()=>s(e)),await t});n.finished.finally(()=>{p(void 0),m(void 0),u(void 0),d({isTransitioning:!1})}),m(n)}},[w,l,f,r.window]),a.useEffect(()=>{f&&l&&o.location.key===l.location.key&&f.resolve()},[f,h,o.location,l]),a.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),g(void 0))},[c.isTransitioning,v]),a.useEffect(()=>{},[]);let _=a.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),x=r.basename||"/",O=a.useMemo(()=>({router:r,navigator:_,static:!1,basename:x}),[r,_,x]),A=a.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return a.useEffect(()=>(0,i.UNSAFE_logV6DeprecationWarnings)(n,r.future),[n,r.future]),a.createElement(a.Fragment,null,a.createElement(i.UNSAFE_DataRouterContext.Provider,{value:O},a.createElement(i.UNSAFE_DataRouterStateContext.Provider,{value:o},a.createElement(mt.Provider,{value:b.current},a.createElement(ht.Provider,{value:c},a.createElement(i.Router,{basename:x,location:o.location,navigationType:o.historyAction,navigator:_,future:A},o.initialized||r.future.v7_partialHydration?a.createElement(_t,{routes:r.routes,future:r.future,state:o}):t))))),null)}const _t=a.memo(xt);function xt(e){let{routes:t,future:r,state:n}=e;return(0,i.UNSAFE_useRoutesImpl)(t,void 0,n,r)}function Ot(e){let{basename:t,children:r,future:n,window:o}=e,s=a.useRef();null==s.current&&(s.current=u({window:o,v5Compat:!0}));let l=s.current,[c,d]=a.useState({action:l.action,location:l.location}),{v7_startTransition:f}=n||{},p=a.useCallback(e=>{f&&vt?vt(()=>d(e)):d(e)},[d,f]);return a.useLayoutEffect(()=>l.listen(p),[l,p]),a.useEffect(()=>(0,i.UNSAFE_logV6DeprecationWarnings)(n),[n]),a.createElement(i.Router,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:l,future:n})}function At(e){let{basename:t,children:r,future:n,window:o}=e,s=a.useRef();null==s.current&&(s.current=c({window:o,v5Compat:!0}));let l=s.current,[u,d]=a.useState({action:l.action,location:l.location}),{v7_startTransition:f}=n||{},p=a.useCallback(e=>{f&&vt?vt(()=>d(e)):d(e)},[d,f]);return a.useLayoutEffect(()=>l.listen(p),[l,p]),a.useEffect(()=>(0,i.UNSAFE_logV6DeprecationWarnings)(n),[n]),a.createElement(i.Router,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:l,future:n})}function Rt(e){let{basename:t,children:r,future:n,history:o}=e,[s,l]=a.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},c=a.useCallback(e=>{u&&vt?vt(()=>l(e)):l(e)},[l,u]);return a.useLayoutEffect(()=>o.listen(c),[o,c]),a.useEffect(()=>(0,i.UNSAFE_logV6DeprecationWarnings)(n),[n]),a.createElement(i.Router,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const Et="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,kt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ct=a.forwardRef(function(e,t){let r,{onClick:n,relative:o,reloadDocument:s,replace:l,state:u,target:c,to:d,preventScrollReset:f,viewTransition:p}=e,h=Je(e,st),{basename:m}=a.useContext(i.UNSAFE_NavigationContext),v=!1;if("string"==typeof d&&kt.test(d)&&(r=d,Et))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),r=F(t.pathname,m);t.origin===e.origin&&null!=r?d=r+t.search+t.hash:v=!0}catch(e){}let g=(0,i.useHref)(d,{relative:o}),b=jt(d,{replace:l,state:u,target:c,preventScrollReset:f,relative:o,viewTransition:p});return a.createElement("a",Ze({},h,{href:r||g,onClick:v||s?n:function(e){n&&n(e),e.defaultPrevented||b(e)},ref:t,target:c}))});const It=a.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:s=!1,style:l,to:u,viewTransition:c,children:d}=e,f=Je(e,lt),p=(0,i.useResolvedPath)(u,{relative:f.relative}),h=(0,i.useLocation)(),m=a.useContext(i.UNSAFE_DataRouterStateContext),{navigator:v,basename:g}=a.useContext(i.UNSAFE_NavigationContext),b=null!=m&&Yt(p)&&!0===c,y=v.encodeLocation?v.encodeLocation(p).pathname:p.pathname,w=h.pathname,S=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(w=w.toLowerCase(),S=S?S.toLowerCase():null,y=y.toLowerCase()),S&&g&&(S=F(S,g)||S);const _="/"!==y&&y.endsWith("/")?y.length-1:y.length;let x,O=w===y||!s&&w.startsWith(y)&&"/"===w.charAt(_),A=null!=S&&(S===y||!s&&S.startsWith(y)&&"/"===S.charAt(y.length)),R={isActive:O,isPending:A,isTransitioning:b},E=O?r:void 0;x="function"==typeof o?o(R):[o,O?"active":null,A?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof l?l(R):l;return a.createElement(Ct,Ze({},f,{"aria-current":E,className:x,ref:t,style:k,to:u,viewTransition:c}),"function"==typeof d?d(R):d)});const Pt=a.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:i,state:s,method:l=Xe,action:u,onSubmit:c,relative:d,preventScrollReset:f,viewTransition:p}=e,h=Je(e,ut),m=Bt(),v=Ut(u,{relative:d}),g="get"===l.toLowerCase()?"get":"post";return a.createElement("form",Ze({ref:t,method:g,action:v,onSubmit:o?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:i,state:s,relative:d,preventScrollReset:f,viewTransition:p})}},h))});function Mt(e){let{getKey:t,storageKey:r}=e;return $t({getKey:t,storageKey:r}),null}var Tt,Nt;function Dt(e){let t=a.useContext(i.UNSAFE_DataRouterContext);return t||d(!1),t}function Ft(e){let t=a.useContext(i.UNSAFE_DataRouterStateContext);return t||d(!1),t}function jt(e,t){let{target:r,replace:n,state:o,preventScrollReset:s,relative:l,viewTransition:u}=void 0===t?{}:t,c=(0,i.useNavigate)(),d=(0,i.useLocation)(),f=(0,i.useResolvedPath)(e,{relative:l});return a.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==n?n:(0,i.createPath)(d)===(0,i.createPath)(f);c(e,{replace:r,state:o,preventScrollReset:s,relative:l,viewTransition:u})}},[d,c,f,n,o,r,e,s,l,u])}function Lt(e){let t=a.useRef(rt(e)),r=a.useRef(!1),n=(0,i.useLocation)(),o=a.useMemo(()=>function(e,t){let r=rt(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),s=(0,i.useNavigate)(),l=a.useCallback((e,t)=>{const n=rt("function"==typeof e?e(o):e);r.current=!0,s("?"+n,t)},[s,o]);return[o,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Tt||(Tt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Nt||(Nt={}));let Vt=0,zt=()=>"__"+String(++Vt)+"__";function Bt(){let{router:e}=Dt(Tt.UseSubmit),{basename:t}=a.useContext(i.UNSAFE_NavigationContext),r=(0,i.UNSAFE_useRouteId)();return a.useCallback(function(n,a){void 0===a&&(a={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:o,method:i,encType:s,formData:l,body:u}=it(n,t);if(!1===a.navigate){let t=a.fetcherKey||zt();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||i,formEncType:a.encType||s,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||i,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function Ut(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=a.useContext(i.UNSAFE_NavigationContext),o=a.useContext(i.UNSAFE_RouteContext);o||d(!1);let[s]=o.matches.slice(-1),l=Ze({},(0,i.useResolvedPath)(e||".",{relative:r})),u=(0,i.useLocation)();if(null==e){l.search=u.search;let e=new URLSearchParams(l.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();l.search=r?"?"+r:""}}return e&&"."!==e||!s.route.index||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(l.pathname="/"===l.pathname?n:W([n,l.pathname])),(0,i.createPath)(l)}function Wt(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=Dt(Tt.UseFetcher),o=Ft(Nt.UseFetcher),s=a.useContext(mt),l=a.useContext(i.UNSAFE_RouteContext),u=null==(t=l.matches[l.matches.length-1])?void 0:t.route.id;s||d(!1),l||d(!1),null==u&&d(!1);let c=bt?bt():"",[f,p]=a.useState(r||c);r&&r!==f?p(r):f||p(zt()),a.useEffect(()=>(n.getFetcher(f),()=>{n.deleteFetcher(f)}),[n,f]);let h=a.useCallback((e,t)=>{u||d(!1),n.fetch(f,u,e,t)},[f,u,n]),m=Bt(),v=a.useCallback((e,t)=>{m(e,Ze({},t,{navigate:!1,fetcherKey:f}))},[f,m]),g=a.useMemo(()=>a.forwardRef((e,t)=>a.createElement(Pt,Ze({},e,{navigate:!1,fetcherKey:f,ref:t}))),[f]),b=o.fetchers.get(f)||re,y=s.get(f);return a.useMemo(()=>Ze({Form:g,submit:v,load:h},b,{data:y}),[g,v,h,b,y])}function Gt(){let e=Ft(Nt.UseFetchers);return Array.from(e.fetchers.entries()).map(e=>{let[t,r]=e;return Ze({},r,{key:t})})}const Ht="react-router-scroll-positions";let qt={};function $t(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=Dt(Tt.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:s}=Ft(Nt.UseScrollRestoration),{basename:l}=a.useContext(i.UNSAFE_NavigationContext),u=(0,i.useLocation)(),c=(0,i.useMatches)(),d=(0,i.useNavigation)();a.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}=t||{};a.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(a.useCallback(()=>{if("idle"===d.state){let e=(t?t(u,c):null)||u.key;qt[e]=window.scrollY}try{sessionStorage.setItem(r||Ht,JSON.stringify(qt))}catch(e){}window.history.scrollRestoration="auto"},[r,t,d.state,u,c])),"undefined"!=typeof document&&(a.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||Ht);e&&(qt=JSON.parse(e))}catch(e){}},[r]),a.useLayoutEffect(()=>{let e=t&&"/"!==l?(e,r)=>t(Ze({},e,{pathname:F(e.pathname,l)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(qt,()=>window.scrollY,e);return()=>r&&r()},[n,l,t]),a.useLayoutEffect(()=>{if(!1!==o)if("number"!=typeof o){if(u.hash){let e=document.getElementById(decodeURIComponent(u.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==s&&window.scrollTo(0,0)}else window.scrollTo(0,o)},[u,o,s]))}function Kt(e,t){let{capture:r}=t||{};a.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function Qt(e){let{when:t,message:r}=e,n=(0,i.useBlocker)(t);a.useEffect(()=>{if("blocked"===n.state){window.confirm(r)?setTimeout(n.proceed,0):n.reset()}},[n,r]),a.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function Yt(e,t){void 0===t&&(t={});let r=a.useContext(ht);null==r&&d(!1);let{basename:n}=Dt(Tt.useViewTransitionState),o=(0,i.useResolvedPath)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let s=F(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=F(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=N(o.pathname,l)||null!=N(o.pathname,s)}},7115:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var n=r(76628);t.flatMap=n.mergeMap},8630:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e,a){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var s=t.timeoutProvider.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,n([e,a],r(o))):setTimeout.apply(void 0,n([e,a],r(o)))},clearTimeout:function(e){var r=t.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0}},8779:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,pluginVersion:()=>a});var n=r(33300);const a="12.3.1",o={minVizHeight:75,minVizWidth:75,showThresholdLabels:!1,showThresholdMarkers:!0,sizing:n.e.Auto}},8889:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,r,n,a){void 0===n&&(n=0),void 0===a&&(a=!1);var o=t.schedule(function(){r(),a?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!a)return o}},9034:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var o=r(81358);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.concat.apply(void 0,a([],n(e)))}},9502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var n=r(93639);t.isScheduler=function(e){return e&&n.isFunction(e.schedule)}},9605:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BRAZILIAN_PORTUGUESE:()=>a.jQ,CHINESE_SIMPLIFIED:()=>a.fY,CHINESE_TRADITIONAL:()=>a.AY,CZECH_CZECHIA:()=>a.w2,DEFAULT_LANGUAGE:()=>a.Nm,DUTCH_NETHERLANDS:()=>a.wQ,ENGLISH_US:()=>a.MB,FRENCH_FRANCE:()=>a.NY,GERMAN_GERMANY:()=>a.rT,HUNGARIAN_HUNGARY:()=>a.tv,INDONESIAN_INDONESIA:()=>a.IP,ITALIAN_ITALY:()=>a.bE,JAPANESE_JAPAN:()=>a.Hp,KOREAN_KOREA:()=>a.y6,LANGUAGES:()=>n.Y,POLISH_POLAND:()=>a.tS,PORTUGUESE_PORTUGAL:()=>a.LE,PSEUDO_LOCALE:()=>a.wi,RUSSIAN_RUSSIA:()=>a.k8,SPANISH_SPAIN:()=>a.d_,SWEDISH_SWEDEN:()=>a.$0,TURKISH_TURKEY:()=>a.mz,Trans:()=>o.x6,formatDate:()=>p,formatDateRange:()=>m,formatDuration:()=>h,initPluginTranslations:()=>o.wR,initRegionalFormatForTests:()=>v,t:()=>o.t});var n=r(46280),a=r(5946),o=r(37768),i=r(7040),s=r(44003);const l=e=>s(e,{isEqual:i});function u(e){e.cache.keys.length=0,e.cache.values.length=0}let c;const d=l((e,t)=>{try{return new Intl.DateTimeFormat(e,t)}catch(e){return new Intl.DateTimeFormat("en-US",t)}}),f=l((e,t)=>new Intl.DurationFormat(e,t)),p=l((e,t={})=>{const r="string"==typeof e?new Date(e):e;return d(c,t).format(r)}),h=l((e,t={})=>f(c,t).format(e)),m=(e,t,r={})=>{const n="string"==typeof e?new Date(e):e,a="string"==typeof t?new Date(t):t;return d(c,r).formatRange(n,a)},v=e=>{u(p),u(h),c=e}},9958:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var o=r(73100),i=r(76790),s=r(72420),l=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return a(t,e),t.prototype.schedule=function(e,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,a=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(a,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(a,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),i.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&i.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,s.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(o.Action);t.AsyncAction=l},11162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var n=r(34230),a=r(52628);t.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,n.operate(function(n,o){return a.mergeInternals(n,o,e,t,void 0,!0,r)})}},11199:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var o=r(57177),i=r(34230),s=r(44757);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?i.operate(function(t,r){o.raceInit(a([t],n(e)))(r)}):s.identity}},11420:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var n=r(53201),a=r(83598);t.from=function(e,t){return t?n.scheduled(e,t):a.innerFrom(e)}},11807:(e,t,r)=>{"use strict";r.r(t),r.d(t,{PieChartLabels:()=>o,PieChartLegendValues:()=>i,PieChartType:()=>a,defaultOptions:()=>l,defaultPieChartLegendOptions:()=>s,pluginVersion:()=>n});const n="12.3.1";var a=(e=>(e.Donut="donut",e.Pie="pie",e))(a||{}),o=(e=>(e.Name="name",e.Percent="percent",e.Value="value",e))(o||{}),i=(e=>(e.Percent="percent",e.Value="value",e))(i||{});const s={values:[]},l={displayLabels:[]}},11824:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createBreakpoint:()=>Me,createGlobalState:()=>yr,createMemo:()=>a,createReducer:()=>l,createReducerContext:()=>o,createStateContext:()=>u,ensuredForwardRef:()=>le,useAsync:()=>p,useAsyncFn:()=>f,useAsyncRetry:()=>h,useAudio:()=>b,useBattery:()=>E,useBeforeUnload:()=>k,useBoolean:()=>P,useClickAway:()=>T,useCookie:()=>F,useCopyToClipboard:()=>V,useCounter:()=>G,useCss:()=>J,useCustomCompareEffect:()=>X,useDebounce:()=>te,useDeepCompareEffect:()=>re,useDefault:()=>ne,useDrop:()=>ae,useDropArea:()=>oe,useEffectOnce:()=>ie,useEnsuredForwardedRef:()=>se,useError:()=>pe,useEvent:()=>fe,useFavicon:()=>he,useFirstMountState:()=>i,useFullscreen:()=>ge,useGeolocation:()=>be,useGetSet:()=>W,useGetSetState:()=>ye,useHarmonicIntervalFn:()=>_e,useHash:()=>wr,useHover:()=>Oe,useHoverDirty:()=>Ae,useIdle:()=>ke,useIntersection:()=>Ce,useInterval:()=>Ie,useIsomorphicLayoutEffect:()=>Q,useKey:()=>Pe,useKeyPress:()=>Te,useKeyPressEvent:()=>Ne,useLatest:()=>De,useLifecycles:()=>Fe,useList:()=>je,useLocalStorage:()=>Le,useLocation:()=>Ue,useLockBodyScroll:()=>Qe,useLogger:()=>Ye,useLongPress:()=>Je,useMap:()=>Xe,useMeasure:()=>hr,useMedia:()=>et,useMediaDevices:()=>tt,useMediatedState:()=>rt,useMethods:()=>nt,useMotion:()=>ot,useMount:()=>it,useMountedState:()=>d,useMouse:()=>ut,useMouseHovered:()=>dt,useMouseWheel:()=>ft,useMultiStateValidator:()=>cr,useNetworkState:()=>vt,useNumber:()=>gt,useObservable:()=>bt,useOrientation:()=>wt,usePageLeave:()=>St,usePermission:()=>_t,usePinchZoom:()=>vr,usePrevious:()=>xt,usePreviousDistinct:()=>At,usePromise:()=>Rt,useQueue:()=>Et,useRaf:()=>kt,useRafLoop:()=>Ct,useRafState:()=>lt,useRendersCount:()=>gr,useScratch:()=>Tt,useScroll:()=>Nt,useScrollbarWidth:()=>ur,useScrolling:()=>Dt,useSearchParam:()=>Pt,useSessionStorage:()=>Ft,useSet:()=>br,useSetState:()=>m,useShallowCompareEffect:()=>Vt,useSize:()=>Wt,useSlider:()=>Gt,useSpeech:()=>qt,useStartTyping:()=>$t,useStateList:()=>Qt,useStateValidator:()=>sr,useStateWithHistory:()=>Kt,useThrottle:()=>Yt,useThrottleFn:()=>Zt,useTimeout:()=>Jt,useTimeoutFn:()=>ee,useTitle:()=>er,useToggle:()=>I,useTween:()=>rr,useUnmount:()=>st,useUnmountPromise:()=>nr,useUpdate:()=>B,useUpdateEffect:()=>s,useUpsert:()=>ar,useVibrate:()=>or,useVideo:()=>ir,useWindowScroll:()=>dr,useWindowSize:()=>fr});var n=r(85959);const a=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0,n.useMemo)(function(){return e.apply(void 0,t)},t)}};const o=function(e,t){var r=(0,n.createContext)(void 0);return[function(){var e=(0,n.useContext)(r);if(null==e)throw new Error("useReducerContext must be used inside a ReducerProvider.");return e},function(a){var o=a.children,i=a.initialState;return function(e,t){return(0,n.createElement)(r.Provider,e,t)}({value:(0,n.useReducer)(e,void 0!==i?i:t)},o)},r]};function i(){var e=(0,n.useRef)(!0);return e.current?(e.current=!1,!0):e.current}const s=function(e,t){var r=i();(0,n.useEffect)(function(){if(!r)return e()},t)};const l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r,a=(r=e,function(e,t){return r.reduceRight(function(t,r){return r(e)(t)},t)});return function(e,t,r){void 0===r&&(r=function(e){return e});var o=(0,n.useRef)(r(t)),i=(0,n.useState)(o.current)[1],l=(0,n.useCallback)(function(t){return o.current=e(o.current,t),i(o.current),t},[e]),u=(0,n.useRef)(a({getState:function(){return o.current},dispatch:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u.current.apply(u,e)}},l));return s(function(){u.current=a({getState:function(){return o.current},dispatch:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u.current.apply(u,e)}},l)},[l]),[o.current,u.current]}};const u=function(e){var t=(0,n.createContext)(void 0);return[function(){var e=(0,n.useContext)(t);if(null==e)throw new Error("useStateContext must be used inside a StateProvider.");return e},function(r){var a=r.children,o=r.initialValue;return function(e,r){return(0,n.createElement)(t.Provider,e,r)}({value:(0,n.useState)(void 0!==o?o:e)},a)},t]};var c=r(56636);function d(){var e=(0,n.useRef)(!1),t=(0,n.useCallback)(function(){return e.current},[]);return(0,n.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}function f(e,t,r){void 0===t&&(t=[]),void 0===r&&(r={loading:!1});var a=(0,n.useRef)(0),o=d(),i=(0,n.useState)(r),s=i[0],l=i[1],u=(0,n.useCallback)(function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=++a.current;return s.loading||l(function(e){return(0,c.__assign)((0,c.__assign)({},e),{loading:!0})}),e.apply(void 0,t).then(function(e){return o()&&n===a.current&&l({value:e,loading:!1}),e},function(e){return o()&&n===a.current&&l({error:e,loading:!1}),e})},t);return[s,u]}function p(e,t){void 0===t&&(t=[]);var r=f(e,t,{loading:!0}),a=r[0],o=r[1];return(0,n.useEffect)(function(){o()},[o]),a}const h=function(e,t){void 0===t&&(t=[]);var r=(0,n.useState)(0),a=r[0],o=r[1],i=p(e,(0,c.__spreadArrays)(t,[a])),s=i.loading,l=(0,n.useCallback)(function(){s||o(function(e){return e+1})},(0,c.__spreadArrays)(t,[s]));return(0,c.__assign)((0,c.__assign)({},i),{retry:l})};const m=function(e){void 0===e&&(e={});var t=(0,n.useState)(e),r=t[0],a=t[1];return[r,(0,n.useCallback)(function(e){a(function(t){return Object.assign({},t,e instanceof Function?e(t):e)})},[])]};function v(e){for(var t=[],r=0;r<e.length;r++)t.push({start:e.start(r),end:e.end(r)});return t}function g(e){return function(t){var r,a;a=n.isValidElement(t)?(r=t).props:t;var o=m({buffered:[],time:0,duration:0,paused:!0,muted:!1,volume:1,playing:!1}),i=o[0],s=o[1],l=(0,n.useRef)(null),u=function(e,t){return function(r){try{t&&t(r)}finally{e&&e(r)}}},d=function(){return s({paused:!1})},f=function(){return s({playing:!0})},p=function(){return s({playing:!1})},h=function(){return s({paused:!0,playing:!1})},g=function(){var e=l.current;e&&s({muted:e.muted,volume:e.volume})},b=function(){var e=l.current;if(e){var t=e.duration,r=e.buffered;s({duration:t,buffered:v(r)})}},y=function(){var e=l.current;e&&s({time:e.currentTime})},w=function(){var e=l.current;e&&s({buffered:v(e.buffered)})};r=r?n.cloneElement(r,(0,c.__assign)((0,c.__assign)({controls:!1},a),{ref:l,onPlay:u(a.onPlay,d),onPlaying:u(a.onPlaying,f),onWaiting:u(a.onWaiting,p),onPause:u(a.onPause,h),onVolumeChange:u(a.onVolumeChange,g),onDurationChange:u(a.onDurationChange,b),onTimeUpdate:u(a.onTimeUpdate,y),onProgress:u(a.onProgress,w)})):n.createElement(e,(0,c.__assign)((0,c.__assign)({controls:!1},a),{ref:l,onPlay:u(a.onPlay,d),onPlaying:u(a.onPlaying,f),onWaiting:u(a.onWaiting,p),onPause:u(a.onPause,h),onVolumeChange:u(a.onVolumeChange,g),onDurationChange:u(a.onDurationChange,b),onTimeUpdate:u(a.onTimeUpdate,y),onProgress:u(a.onProgress,w)}));var S=!1,_={play:function(){var e=l.current;if(e&&!S){var t=e.play();if("object"==typeof t){S=!0;var r=function(){S=!1};t.then(r,r)}return t}},pause:function(){var e=l.current;if(e&&!S)return e.pause()},seek:function(e){var t=l.current;t&&void 0!==i.duration&&(e=Math.min(i.duration,Math.max(0,e)),t.currentTime=e)},volume:function(e){var t=l.current;t&&(e=Math.min(1,Math.max(0,e)),t.volume=e,s({volume:e}))},mute:function(){var e=l.current;e&&(e.muted=!0)},unmute:function(){var e=l.current;e&&(e.muted=!1)}};return(0,n.useEffect)(function(){var e=l.current;e&&(s({volume:e.volume,muted:e.muted,paused:e.paused}),a.autoPlay&&e.paused&&_.play())},[a.src]),[r,i,_,l]}}const b=g("audio");var y=function(){};function w(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function S(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var _="undefined"!=typeof window,x="undefined"!=typeof navigator,O=r(89467);const A=r.n(O)();var R=x?navigator:void 0;const E=R&&"function"==typeof R.getBattery?function(){var e=(0,n.useState)({isSupported:!0,fetched:!1}),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=!0,n=null,a=function(){if(e&&n){var a={isSupported:!0,fetched:!0,level:n.level,charging:n.charging,dischargingTime:n.dischargingTime,chargingTime:n.chargingTime};!A(t,a)&&r(a)}};return R.getBattery().then(function(t){e&&(w(n=t,"chargingchange",a),w(n,"chargingtimechange",a),w(n,"dischargingtimechange",a),w(n,"levelchange",a),a())}),function(){e=!1,n&&(S(n,"chargingchange",a),S(n,"chargingtimechange",a),S(n,"dischargingtimechange",a),S(n,"levelchange",a))}},[]),t}:function(){return{isSupported:!1}};const k=function(e,t){void 0===e&&(e=!0);var r=(0,n.useCallback)(function(r){if("function"!=typeof e||e())return r.preventDefault(),t&&(r.returnValue=t),t},[e,t]);(0,n.useEffect)(function(){if(e)return w(window,"beforeunload",r),function(){return S(window,"beforeunload",r)}},[e,r])};var C=function(e,t){return"boolean"==typeof t?t:!e};const I=function(e){return(0,n.useReducer)(C,e)},P=I;var M=["mousedown","touchstart"];const T=function(e,t,r){void 0===r&&(r=M);var a=(0,n.useRef)(t);(0,n.useEffect)(function(){a.current=t},[t]),(0,n.useEffect)(function(){for(var t=function(t){var r=e.current;r&&!r.contains(t.target)&&a.current(t)},n=0,o=r;n<o.length;n++){var i=o[n];w(document,i,t)}return function(){for(var e=0,n=r;e<n.length;e++){var a=n[e];S(document,a,t)}}},[r,e])};var N=r(58484),D=r.n(N);const F=function(e){var t=(0,n.useState)(function(){return D().get(e)||null}),r=t[0],a=t[1];return[r,(0,n.useCallback)(function(t,r){D().set(e,t,r),a(t)},[e]),(0,n.useCallback)(function(){D().remove(e),a(null)},[e])]};var j=r(83990),L=r.n(j);const V=function(){var e=d(),t=m({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],a=t[1];return[r,(0,n.useCallback)(function(t){var r,n;if(e())try{if("string"!=typeof t&&"number"!=typeof t){var o=new Error("Cannot copy typeof "+typeof t+" to clipboard, must be a string");return void a({value:t,error:o,noUserInteraction:!0})}if(""===t){o=new Error("Cannot copy empty string to clipboard.");return void a({value:t,error:o,noUserInteraction:!0})}n=t.toString(),r=L()(n),a({value:n,error:void 0,noUserInteraction:r})}catch(o){a({value:n,error:o,noUserInteraction:r})}},[])]};var z=function(e){return(e+1)%1e6};function B(){return(0,n.useReducer)(z,0)[1]}function U(e,t){return"function"==typeof e?e.length?e(t):e():e}function W(e){var t=(0,n.useRef)(U(e)),r=B();return(0,n.useMemo)(function(){return[function(){return t.current},function(e){t.current=U(e,t.current),r()}]},[])}function G(e,t,r){void 0===e&&(e=0),void 0===t&&(t=null),void 0===r&&(r=null);var a=U(e);"number"!=typeof a&&console.error("initialValue has to be a number, got "+typeof e),"number"==typeof r?a=Math.max(a,r):null!==r&&console.error("min has to be a number, got "+typeof r),"number"==typeof t?a=Math.min(a,t):null!==t&&console.error("max has to be a number, got "+typeof t);var o=W(a),i=o[0],s=o[1];return[i(),(0,n.useMemo)(function(){var e=function(e){var n=i(),a=U(e,n);n!==a&&("number"==typeof r&&(a=Math.max(a,r)),"number"==typeof t&&(a=Math.min(a,t)),n!==a&&s(a))};return{get:i,set:e,inc:function(t){void 0===t&&(t=1);var r=U(t,i());"number"!=typeof r&&console.error("delta has to be a number or function returning a number, got "+typeof r),e(function(e){return e+r})},dec:function(t){void 0===t&&(t=1);var r=U(t,i());"number"!=typeof r&&console.error("delta has to be a number or function returning a number, got "+typeof r),e(function(e){return e-r})},reset:function(t){void 0===t&&(t=a);var r=U(t,i());"number"!=typeof r&&console.error("value has to be a number or function returning a number, got "+typeof r),a=r,e(r)}}},[a,r,t])]}var H=r(91805),q=r(38135),$=r(97243),K=r(35102);const Q=_?n.useLayoutEffect:n.useEffect;var Y=(0,H.v)();(0,q.v)(Y),(0,$.v)(Y);var Z=0;const J=function(e){var t=(0,n.useMemo)(function(){return"react-use-css-"+(Z++).toString(36)},[]),r=(0,n.useMemo)(function(){return new Y.VSheet},[]);return Q(function(){var n={};return(0,K.J)(n,e,"."+t,""),r.diff(n),function(){r.diff({})}}),t};const X=function(e,t,r){var a=(0,n.useRef)(void 0);a.current&&r(t,a.current)||(a.current=t),(0,n.useEffect)(e,a.current)};function ee(e,t){void 0===t&&(t=0);var r=(0,n.useRef)(!1),a=(0,n.useRef)(),o=(0,n.useRef)(e),i=(0,n.useCallback)(function(){return r.current},[]),s=(0,n.useCallback)(function(){r.current=!1,a.current&&clearTimeout(a.current),a.current=setTimeout(function(){r.current=!0,o.current()},t)},[t]),l=(0,n.useCallback)(function(){r.current=null,a.current&&clearTimeout(a.current)},[]);return(0,n.useEffect)(function(){o.current=e},[e]),(0,n.useEffect)(function(){return s(),l},[t]),[i,l,s]}function te(e,t,r){void 0===t&&(t=0),void 0===r&&(r=[]);var a=ee(e,t),o=a[0],i=a[1],s=a[2];return(0,n.useEffect)(s,r),[o,i]}const re=function(e,t){X(e,t,A)};const ne=function(e,t){var r=(0,n.useState)(t),a=r[0],o=r[1];return null==a?[e,o]:[a,o]};const ae=function(e,t){void 0===e&&(e={}),void 0===t&&(t=[]);var r=e.onFiles,a=e.onText,o=e.onUri,i=(0,n.useState)(!1),s=i[0],l=i[1],u=(0,n.useCallback)(l,[]),d=(0,n.useMemo)(function(){return function(e){return function(t,r){var n=t.getData("text/uri-list");if(n)(e.onUri||y)(n,r);else if(t.files&&t.files.length)(e.onFiles||y)(Array.from(t.files),r);else if(r.clipboardData){var a=r.clipboardData.getData("text");(e.onText||y)(a,r)}}}(e)},[r,a,o]);return(0,n.useEffect)(function(){var e=function(e){e.preventDefault(),u(!0)},t=function(e){e.preventDefault(),u(!0)},r=function(){u(!1)},n=function(){u(!1)},o=function(e){e.preventDefault(),u(!1),d(e.dataTransfer,e)},i=function(e){d(e.clipboardData,e)};return w(document,"dragover",e),w(document,"dragenter",t),w(document,"dragleave",r),w(document,"dragexit",n),w(document,"drop",o),a&&w(document,"paste",i),function(){S(document,"dragover",e),S(document,"dragenter",t),S(document,"dragleave",r),S(document,"dragexit",n),S(document,"drop",o),S(document,"paste",i)}},(0,c.__spreadArrays)([d],t)),{over:s}};const oe=function(e){void 0===e&&(e={});var t=e.onFiles,r=e.onText,a=e.onUri,o=d(),i=(0,n.useState)(!1),s=i[0],l=i[1],u=(0,n.useMemo)(function(){return function(e,t){return function(r,n){var a=r.getData("text/uri-list");a?(e.onUri||y)(a,n):r.files&&r.files.length?(e.onFiles||y)(Array.from(r.files),n):r.items&&r.items.length&&r.items[0].getAsString(function(r){t&&(e.onText||y)(r,n)})}}(e,o())},[t,r,a]),c=(0,n.useMemo)(function(){return function(e,t){return{onDragOver:function(e){e.preventDefault()},onDragEnter:function(e){e.preventDefault(),t(!0)},onDragLeave:function(){t(!1)},onDrop:function(r){r.preventDefault(),r.persist(),t(!1),e(r.dataTransfer,r)},onPaste:function(t){t.persist(),e(t.clipboardData,t)}}}(u,l)},[u,l]);return[c,{over:s}]};const ie=function(e){(0,n.useEffect)(e,[])};function se(e){var t=(0,n.useRef)(e&&e.current);return(0,n.useEffect)(function(){e&&(e.current=t.current)},[e]),t}function le(e){return(0,n.forwardRef)(function(t,r){var n=se(r);return e(t,n)})}var ue=_?window:null,ce=function(e){return!!e.addEventListener},de=function(e){return!!e.on};const fe=function(e,t,r,a){void 0===r&&(r=ue),(0,n.useEffect)(function(){if(t&&r)return ce(r)?w(r,e,t,a):de(r)&&r.on(e,t,a),function(){ce(r)?S(r,e,t,a):de(r)&&r.off(e,t,a)}},[e,t,r,JSON.stringify(a)])};const pe=function(){var e=(0,n.useState)(null),t=e[0],r=e[1];return(0,n.useEffect)(function(){if(t)throw t},[t]),(0,n.useCallback)(function(e){r(e)},[])};const he=function(e){(0,n.useEffect)(function(){var t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)},[e])};var me=r(59408),ve=r.n(me);const ge=function(e,t,r){void 0===r&&(r={});var a=r.video,o=r.onClose,i=void 0===o?y:o,s=(0,n.useState)(t),l=s[0],u=s[1];return Q(function(){if(t&&e.current){var r=function(){(null==a?void 0:a.current)&&S(a.current,"webkitendfullscreen",r),i()},n=function(){if(ve().isEnabled){var e=ve().isFullscreen;u(e),e||i()}};if(ve().isEnabled){try{ve().request(e.current),u(!0)}catch(e){i(e),u(!1)}ve().on("change",n)}else a&&a.current&&a.current.webkitEnterFullscreen?(a.current.webkitEnterFullscreen(),w(a.current,"webkitendfullscreen",r),u(!0)):(i(),u(!1));return function(){if(u(!1),ve().isEnabled)try{ve().off("change",n),ve().exit()}catch(e){}else a&&a.current&&a.current.webkitExitFullscreen&&(S(a.current,"webkitendfullscreen",r),a.current.webkitExitFullscreen())}}},[t,a,e]),l};const be=function(e){var t,r=(0,n.useState)({loading:!0,accuracy:null,altitude:null,altitudeAccuracy:null,heading:null,latitude:null,longitude:null,speed:null,timestamp:Date.now()}),a=r[0],o=r[1],i=!0,s=function(e){i&&o({loading:!1,accuracy:e.coords.accuracy,altitude:e.coords.altitude,altitudeAccuracy:e.coords.altitudeAccuracy,heading:e.coords.heading,latitude:e.coords.latitude,longitude:e.coords.longitude,speed:e.coords.speed,timestamp:e.timestamp})},l=function(e){return i&&o(function(t){return(0,c.__assign)((0,c.__assign)({},t),{loading:!1,error:e})})};return(0,n.useEffect)(function(){return navigator.geolocation.getCurrentPosition(s,l,e),t=navigator.geolocation.watchPosition(s,l,e),function(){i=!1,navigator.geolocation.clearWatch(t)}},[]),a};const ye=function(e){void 0===e&&(e={});var t=B(),r=(0,n.useRef)((0,c.__assign)({},e));return[(0,n.useCallback)(function(){return r.current},[]),(0,n.useCallback)(function(e){e&&(Object.assign(r.current,e),t())},[])]};var we=0,Se={};const _e=function(e,t){void 0===t&&(t=0);var r=(0,n.useRef)(function(){});(0,n.useEffect)(function(){r.current=e}),(0,n.useEffect)(function(){if(null!==t){var e=function(e,t){var r,n=we++;if(Se[t])Se[t].listeners[n]=e;else{var a=setInterval(function(){for(var e,r=Se[t].listeners,n=!1,a=0,o=Object.values(r);a<o.length;a++){var i=o[a];try{i()}catch(t){n=!0,e=t}}if(n)throw e},t);Se[t]={ms:t,timer:a,listeners:(r={},r[n]=e,r)}}return{bucket:Se[t],id:n}}(function(){return r.current()},t);return function(){return function(e){var t=e.bucket,r=e.id;delete t.listeners[r];var n=!1;for(var a in t.listeners){n=!0;break}n||(clearInterval(t.timer),delete Se[t.ms])}(e)}}},[t])};var xe=n.useState;const Oe=function(e){var t,r,a=xe(!1),o=a[0],i=a[1];return"function"==typeof e&&(e=e(o)),[n.cloneElement(e,{onMouseEnter:(r=e.props.onMouseEnter,function(e){(r||y)(e),i(!0)}),onMouseLeave:(t=e.props.onMouseLeave,function(e){(t||y)(e),i(!1)})}),o]};const Ae=function(e,t){void 0===t&&(t=!0);var r=(0,n.useState)(!1),a=r[0],o=r[1];return(0,n.useEffect)(function(){var r=function(){return o(!0)},n=function(){return o(!1)};t&&e&&e.current&&(w(e.current,"mouseover",r),w(e.current,"mouseout",n));var a=e.current;return function(){t&&a&&(S(a,"mouseover",r),S(a,"mouseout",n))}},[t,e]),a};function Re(e,t,r,n){var a,o=!1,i=0;function s(){a&&clearTimeout(a)}function l(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var d=this,f=Date.now()-i;function p(){i=Date.now(),r.apply(d,u)}o||(n&&!a&&p(),s(),void 0===n&&f>e?p():!0!==t&&(a=setTimeout(n?function(){a=void 0}:p,void 0===n?e-f:e)))}return"boolean"!=typeof t&&(n=r,r=t,t=void 0),l.cancel=function(){s(),o=!0},l}var Ee=["mousemove","mousedown","resize","keydown","touchstart","wheel"];const ke=function(e,t,r){void 0===e&&(e=6e4),void 0===t&&(t=!1),void 0===r&&(r=Ee);var a=(0,n.useState)(t),o=a[0],i=a[1];return(0,n.useEffect)(function(){for(var t,n=!0,a=o,s=function(e){n&&(a=e,i(e))},l=Re(50,function(){a&&s(!1),clearTimeout(t),t=setTimeout(function(){return s(!0)},e)}),u=function(){document.hidden||l()},c=0;c<r.length;c++)w(window,r[c],l);return w(document,"visibilitychange",u),t=setTimeout(function(){return s(!0)},e),function(){n=!1;for(var e=0;e<r.length;e++)S(window,r[e],l);S(document,"visibilitychange",u)}},[e,r]),o};const Ce=function(e,t){var r=(0,n.useState)(null),a=r[0],o=r[1];return(0,n.useEffect)(function(){if(e.current&&"function"==typeof IntersectionObserver){var r=new IntersectionObserver(function(e){o(e[0])},t);return r.observe(e.current),function(){o(null),r.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),a};const Ie=function(e,t){var r=(0,n.useRef)(function(){});(0,n.useEffect)(function(){r.current=e}),(0,n.useEffect)(function(){if(null!==t){var e=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(e)}}},[t])};const Pe=function(e,t,r,a){void 0===t&&(t=y),void 0===r&&(r={}),void 0===a&&(a=[e]);var o=r.event,i=void 0===o?"keydown":o,s=r.target,l=r.options,u=(0,n.useMemo)(function(){var r,n="function"==typeof(r=e)?r:"string"==typeof r?function(e){return e.key===r}:r?function(){return!0}:function(){return!1};return function(e){if(n(e))return t(e)}},a);fe(i,u,s,l)};const Me=function(e){return void 0===e&&(e={laptopL:1440,laptop:1024,tablet:768}),function(){var t=(0,n.useState)(_?window.innerWidth:0),r=t[0],a=t[1];(0,n.useEffect)(function(){var e=function(){a(window.innerWidth)};return e(),w(window,"resize",e),function(){S(window,"resize",e)}});var o=(0,n.useMemo)(function(){return Object.entries(e).sort(function(e,t){return e[1]>=t[1]?1:-1})},[e]),i=o.reduce(function(e,t){var n=t[0],a=t[1];return r>=a?n:e},o[0][0]);return i}};const Te=function(e){var t=(0,n.useState)([!1,null]),r=t[0],a=t[1];return Pe(e,function(e){return a([!0,e])},{event:"keydown"},[r]),Pe(e,function(e){return a([!1,e])},{event:"keyup"},[r]),r};const Ne=function(e,t,r,n){void 0===n&&(n=Te);var a=n(e),o=a[0],i=a[1];s(function(){!o&&r?r(i):o&&t&&t(i)},[o])};const De=function(e){var t=(0,n.useRef)(e);return t.current=e,t};const Fe=function(e,t){(0,n.useEffect)(function(){return e&&e(),function(){t&&t()}},[])};const je=function(e){void 0===e&&(e=[]);var t=(0,n.useRef)(U(e)),r=B(),a=(0,n.useMemo)(function(){var n={set:function(e){t.current=U(e,t.current),r()},push:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.length&&a.set(function(t){return t.concat(e)})},updateAt:function(e,t){a.set(function(r){var n=r.slice();return n[e]=t,n})},insertAt:function(e,t){a.set(function(r){var n=r.slice();return e>n.length?n[e]=t:n.splice(e,0,t),n})},update:function(e,t){a.set(function(r){return r.map(function(r){return e(r,t)?t:r})})},updateFirst:function(e,r){var n=t.current.findIndex(function(t){return e(t,r)});n>=0&&a.updateAt(n,r)},upsert:function(e,r){var n=t.current.findIndex(function(t){return e(t,r)});n>=0?a.updateAt(n,r):a.push(r)},sort:function(e){a.set(function(t){return t.slice().sort(e)})},filter:function(e,t){a.set(function(r){return r.slice().filter(e,t)})},removeAt:function(e){a.set(function(t){var r=t.slice();return r.splice(e,1),r})},clear:function(){a.set([])},reset:function(){a.set(U(e).slice())}};return n.remove=n.removeAt,n},[]);return[t.current,a]};const Le=function(e,t,r){if(!_)return[t,y,y];if(!e)throw new Error("useLocalStorage key may not be falsy");var a=r?r.raw?function(e){return e}:r.deserializer:JSON.parse,o=(0,n.useRef)(function(e){try{var n=r?r.raw?String:r.serializer:JSON.stringify,o=localStorage.getItem(e);return null!==o?a(o):(t&&localStorage.setItem(e,n(t)),t)}catch(e){return t}}),i=(0,n.useState)(function(){return o.current(e)}),s=i[0],l=i[1];(0,n.useLayoutEffect)(function(){return l(o.current(e))},[e]);var u=(0,n.useCallback)(function(t){try{var n="function"==typeof t?t(s):t;if(void 0===n)return;var o=void 0;o=r?r.raw?"string"==typeof n?n:JSON.stringify(n):r.serializer?r.serializer(n):JSON.stringify(n):JSON.stringify(n),localStorage.setItem(e,o),l(a(o))}catch(e){}},[e,l]),c=(0,n.useCallback)(function(){try{localStorage.removeItem(e),l(void 0)}catch(e){}},[e,l]);return[s,u,c]};var Ve=function(e){var t=window.history,r=t[e];t[e]=function(t){var n=r.apply(this,arguments),a=new Event(e.toLowerCase());return a.state=t,window.dispatchEvent(a),n}};_&&(Ve("pushState"),Ve("replaceState"));var ze=function(e){var t=window.history,r=t.state,n=t.length,a=window.location;return{trigger:e,state:r,length:n,hash:a.hash,host:a.host,hostname:a.hostname,href:a.href,origin:a.origin,pathname:a.pathname,port:a.port,protocol:a.protocol,search:a.search}},Be="function"==typeof Event;const Ue=_&&Be?function(){var e=(0,n.useState)(ze("load")),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=function(){return r(ze("popstate"))},t=function(){return r(ze("pushstate"))},n=function(){return r(ze("replacestate"))};return w(window,"popstate",e),w(window,"pushstate",t),w(window,"replacestate",n),function(){S(window,"popstate",e),S(window,"pushstate",t),S(window,"replacestate",n)}},[]),t}:function(){return{trigger:"load",length:1}};function We(e){if(!e)return null;if("BODY"===e.tagName)return e;if("IFRAME"===e.tagName){var t=e.contentDocument;return t?t.body:null}return e.offsetParent?We(e.offsetParent):null}function Ge(e){var t=e||window.event;return t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)}var He=_&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),qe=new Map,$e="object"==typeof document?document:void 0,Ke=!1;const Qe=$e?function(e,t){void 0===e&&(e=!0);var r=(0,n.useRef)($e.body);t=t||r;var a=function(e){var t=qe.get(e);t&&(1===t.counter?(qe.delete(e),He?(e.ontouchmove=null,Ke&&(S(document,"touchmove",Ge),Ke=!1)):e.style.overflow=t.initialOverflow):qe.set(e,{counter:t.counter-1,initialOverflow:t.initialOverflow}))};(0,n.useEffect)(function(){var r=We(t.current);r&&(e?function(e){var t=qe.get(e);t?qe.set(e,{counter:t.counter+1,initialOverflow:t.initialOverflow}):(qe.set(e,{counter:1,initialOverflow:e.style.overflow}),He?Ke||(w(document,"touchmove",Ge,{passive:!1}),Ke=!0):e.style.overflow="hidden")}(r):a(r))},[e,t.current]),(0,n.useEffect)(function(){var e=We(t.current);if(e)return function(){a(e)}},[])}:function(e,t){void 0===e&&(e=!0)};const Ye=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];ie(function(){return function(){}}),s(function(){})};var Ze=function(e){(function(e){return"touches"in e})(e)&&e.touches.length<2&&e.preventDefault&&e.preventDefault()};const Je=function(e,t){var r=void 0===t?{}:t,a=r.isPreventDefault,o=void 0===a||a,i=r.delay,s=void 0===i?300:i,l=(0,n.useRef)(),u=(0,n.useRef)(),c=(0,n.useCallback)(function(t){o&&t.target&&(w(t.target,"touchend",Ze,{passive:!1}),u.current=t.target),l.current=setTimeout(function(){return e(t)},s)},[e,s,o]),d=(0,n.useCallback)(function(){l.current&&clearTimeout(l.current),o&&u.current&&S(u.current,"touchend",Ze)},[o]);return{onMouseDown:function(e){return c(e)},onTouchStart:function(e){return c(e)},onMouseUp:d,onMouseLeave:d,onTouchEnd:d}};const Xe=function(e){void 0===e&&(e={});var t=(0,n.useState)(e),r=t[0],a=t[1],o=(0,n.useMemo)(function(){return{set:function(e,t){a(function(r){var n;return(0,c.__assign)((0,c.__assign)({},r),((n={})[e]=t,n))})},setAll:function(e){a(e)},remove:function(e){a(function(t){var r=t,n=e;r[n];return(0,c.__rest)(r,["symbol"==typeof n?n:n+""])})},reset:function(){return a(e)}}},[a]),i=(0,c.__assign)({get:(0,n.useCallback)(function(e){return r[e]},[r])},o);return[r,i]};const et=function(e,t){var r=(0,n.useState)(function(e,t){return void 0!==t?t:!!_&&window.matchMedia(e).matches}(e,t)),a=r[0],o=r[1];return(0,n.useEffect)(function(){var t=!0,r=window.matchMedia(e),n=function(){t&&o(!!r.matches)};return r.addEventListener("change",n),o(r.matches),function(){t=!1,r.removeEventListener("change",n)}},[e]),a};const tt=x&&navigator.mediaDevices?function(){var e=(0,n.useState)({}),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=!0,t=function(){navigator.mediaDevices.enumerateDevices().then(function(t){e&&r({devices:t.map(function(e){return{deviceId:e.deviceId,groupId:e.groupId,kind:e.kind,label:e.label}})})}).catch(y)};return w(navigator.mediaDevices,"devicechange",t),t(),function(){e=!1,S(navigator.mediaDevices,"devicechange",t)}},[]),t}:function(){return{}};function rt(e,t){var r=(0,n.useRef)(e),a=(0,n.useState)(t),o=a[0],i=a[1];return[o,(0,n.useCallback)(function(e){2===r.current.length?r.current(e,i):i(r.current(e))},[o])]}const nt=function(e,t){var r=(0,n.useMemo)(function(){return function(t,r){var n;return(n=e(t))[r.type].apply(n,r.payload)}},[e]),a=(0,n.useReducer)(r,t),o=a[0],i=a[1],s=(0,n.useMemo)(function(){return Object.keys(e(t)).reduce(function(e,t){return e[t]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return i({type:t,payload:e})},e},{})},[e,t]);return[o,s]};var at={acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null},rotationRate:{alpha:null,beta:null,gamma:null},interval:16};const ot=function(e){void 0===e&&(e=at);var t=(0,n.useState)(e),r=t[0],a=t[1];return(0,n.useEffect)(function(){var e=function(e){var t=e.acceleration,r=e.accelerationIncludingGravity,n=e.rotationRate,o=e.interval;a({acceleration:{x:t.x,y:t.y,z:t.z},accelerationIncludingGravity:{x:r.x,y:r.y,z:r.z},rotationRate:{alpha:n.alpha,beta:n.beta,gamma:n.gamma},interval:o})};return w(window,"devicemotion",e),function(){S(window,"devicemotion",e)}},[]),r};const it=function(e){ie(function(){e()})};const st=function(e){var t=(0,n.useRef)(e);t.current=e,ie(function(){return function(){return t.current()}})};const lt=function(e){var t=(0,n.useRef)(0),r=(0,n.useState)(e),a=r[0],o=r[1],i=(0,n.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(e)})},[]);return st(function(){cancelAnimationFrame(t.current)}),[a,i]};const ut=function(e){var t=lt({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),r=t[0],a=t[1];return(0,n.useEffect)(function(){var t=function(t){if(e&&e.current){var r=e.current.getBoundingClientRect(),n=r.left,o=r.top,i=r.width,s=r.height,l=n+window.pageXOffset,u=o+window.pageYOffset,c=t.pageX-l,d=t.pageY-u;a({docX:t.pageX,docY:t.pageY,posX:l,posY:u,elX:c,elY:d,elH:s,elW:i})}};return w(document,"mousemove",t),function(){S(document,"mousemove",t)}},[e]),r};var ct={current:null};const dt=function(e,t){void 0===t&&(t={});var r=!!t.whenHovered,n=!!t.bound,a=Ae(e,r),o=ut(r&&!a?ct:e);return n&&(o.elX=Math.max(0,Math.min(o.elX,o.elW)),o.elY=Math.max(0,Math.min(o.elY,o.elH))),o},ft=function(){var e=(0,n.useState)(0),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=function(e){r(e.deltaY+t)};return w(window,"wheel",e,!1),function(){return S(window,"wheel",e)}}),t};var pt=x?navigator:void 0,ht=pt&&(pt.connection||pt.mozConnection||pt.webkitConnection);function mt(e){var t=null==pt?void 0:pt.onLine,r=null==e?void 0:e.online;return{online:t,previous:r,since:t!==r?new Date:null==e?void 0:e.since,downlink:null==ht?void 0:ht.downlink,downlinkMax:null==ht?void 0:ht.downlinkMax,effectiveType:null==ht?void 0:ht.effectiveType,rtt:null==ht?void 0:ht.rtt,saveData:null==ht?void 0:ht.saveData,type:null==ht?void 0:ht.type}}function vt(e){var t=(0,n.useState)(null!=e?e:mt),r=t[0],a=t[1];return(0,n.useEffect)(function(){var e=function(){a(mt)};return w(window,"online",e,{passive:!0}),w(window,"offline",e,{passive:!0}),ht&&w(ht,"change",e,{passive:!0}),function(){S(window,"online",e),S(window,"offline",e),ht&&S(ht,"change",e)}},[]),r}const gt=G;const bt=function(e,t){var r=(0,n.useState)(t),a=r[0],o=r[1];return Q(function(){var t=e.subscribe(o);return function(){return t.unsubscribe()}},[e]),a};var yt={angle:0,type:"landscape-primary"};const wt=function(e){void 0===e&&(e=yt);var t=(0,n.useState)(e),r=t[0],a=t[1];return(0,n.useEffect)(function(){var t=window.screen,r=!0,n=function(){if(r){var n=t.orientation;if(n){var o=n.angle,i=n.type;a({angle:o,type:i})}else void 0!==window.orientation?a({angle:"number"==typeof window.orientation?window.orientation:0,type:""}):a(e)}};return w(window,"orientationchange",n),n(),function(){r=!1,S(window,"orientationchange",n)}},[]),r};const St=function(e,t){void 0===t&&(t=[]),(0,n.useEffect)(function(){if(e){var t=function(t){var r=(t=t||window.event).relatedTarget||t.toElement;r&&"HTML"!==r.nodeName||e()};return w(document,"mouseout",t),function(){S(document,"mouseout",t)}}},t)};const _t=function(e){var t=(0,n.useState)(""),r=t[0],a=t[1];return(0,n.useEffect)(function(){var t=!0,r=null,n=function(){t&&a(function(){var e;return null!==(e=null==r?void 0:r.state)&&void 0!==e?e:""})};return navigator.permissions.query(e).then(function(e){w(r=e,"change",n),n()}).catch(y),function(){r&&S(r,"change",n),t=!1,r=null}},[e]),r};function xt(e){var t=(0,n.useRef)();return(0,n.useEffect)(function(){t.current=e}),t.current}var Ot=function(e,t){return e===t};function At(e,t){void 0===t&&(t=Ot);var r=(0,n.useRef)(),a=(0,n.useRef)(e);return i()||t(a.current,e)||(r.current=a.current,a.current=e),r.current}const Rt=function(){var e=d();return(0,n.useCallback)(function(t){return new Promise(function(r,n){t.then(function(t){e()&&r(t)},function(t){e()&&n(t)})})},[])};const Et=function(e){void 0===e&&(e=[]);var t=(0,n.useState)(e),r=t[0],a=t[1];return{add:function(e){a(function(t){return(0,c.__spreadArrays)(t,[e])})},remove:function(){var e;return a(function(t){var r=t[0],n=t.slice(1);return e=r,n}),e},get first(){return r[0]},get last(){return r[r.length-1]},get size(){return r.length}}};const kt=function(e,t){void 0===e&&(e=1e12),void 0===t&&(t=0);var r=(0,n.useState)(0),a=r[0],o=r[1];return Q(function(){var r,n,a,i=function(){var t=Math.min(1,(Date.now()-a)/e);o(t),s()},s=function(){r=requestAnimationFrame(i)},l=setTimeout(function(){n=setTimeout(function(){cancelAnimationFrame(r),o(1)},e),a=Date.now(),s()},t);return function(){clearTimeout(n),clearTimeout(l),cancelAnimationFrame(r)}},[e,t]),a};function Ct(e,t){void 0===t&&(t=!0);var r=(0,n.useRef)(null),a=(0,n.useRef)(!1),o=(0,n.useRef)(e);o.current=e;var i=(0,n.useCallback)(function(e){a.current&&(o.current(e),r.current=requestAnimationFrame(i))},[]),s=(0,n.useMemo)(function(){return[function(){a.current&&(a.current=!1,r.current&&cancelAnimationFrame(r.current))},function(){a.current||(a.current=!0,r.current=requestAnimationFrame(i))},function(){return a.current}]},[]);return(0,n.useEffect)(function(){return t&&s[1](),s[0]},[]),s}var It=function(e,t){return new URLSearchParams(e).get(t)};const Pt=_?function(e){var t=window.location,r=(0,n.useState)(function(){return It(t.search,e)}),a=r[0],o=r[1];return(0,n.useEffect)(function(){var r=function(){o(It(t.search,e))};return w(window,"popstate",r),w(window,"pushstate",r),w(window,"replacestate",r),function(){S(window,"popstate",r),S(window,"pushstate",r),S(window,"replacestate",r)}},[]),a}:function(){return null};r(48896);var Mt=function(e){void 0===e&&(e={});var t=e.disabled,r=De(e),a=(0,n.useState)({isScratching:!1}),o=a[0],i=a[1],s=(0,n.useRef)(o),l=(0,n.useRef)(!1),u=(0,n.useRef)(null),d=(0,n.useState)(null),f=d[0],p=d[1];return(0,n.useEffect)(function(){if(!t&&f){var e,n,a=function(e,t){cancelAnimationFrame(u.current),u.current=requestAnimationFrame(function(){var n=f.getBoundingClientRect(),a=n.left,o=n.top,l=a+window.scrollX,u=o+window.scrollY,d=e-l,p=t-u;i(function(e){var t=(0,c.__assign)((0,c.__assign)({},e),{dx:d-(e.x||0),dy:p-(e.y||0),end:Date.now(),isScratching:!0});return s.current=t,(r.current.onScratch||y)(t),t})})},o=function(e){a(e.pageX,e.pageY)},d=function(e){a(e.changedTouches[0].pageX,e.changedTouches[0].pageY)},p=function(){l.current&&(l.current=!1,s.current=(0,c.__assign)((0,c.__assign)({},s.current),{isScratching:!1}),(r.current.onScratchEnd||y)(s.current),i({isScratching:!1}),S(window,"mousemove",o),S(window,"touchmove",d),S(window,"mouseup",e),S(window,"touchend",n))};e=p,n=p;var h=function(t,a){if(l.current){var u=f.getBoundingClientRect(),c=u.left,p=u.top,h=c+window.scrollX,m=p+window.scrollY,v=t-h,g=a-m,b=Date.now(),S={isScratching:!0,start:b,end:b,docX:t,docY:a,x:v,y:g,dx:0,dy:0,elH:f.offsetHeight,elW:f.offsetWidth,elX:h,elY:m};s.current=S,(r.current.onScratchStart||y)(S),i(S),w(window,"mousemove",o),w(window,"touchmove",d),w(window,"mouseup",e),w(window,"touchend",n)}},m=function(e){l.current=!0,h(e.pageX,e.pageY)},v=function(e){l.current=!0,h(e.changedTouches[0].pageX,e.changedTouches[0].pageY)};return w(f,"mousedown",m),w(f,"touchstart",v),function(){S(f,"mousedown",m),S(f,"touchstart",v),S(window,"mousemove",o),S(window,"touchmove",d),S(window,"mouseup",e),S(window,"touchend",n),u.current&&cancelAnimationFrame(u.current),u.current=null,l.current=!1,s.current={isScratching:!1},i(s.current)}}},[f,t,r]),[p,o]};const Tt=Mt;const Nt=function(e){var t=lt({x:0,y:0}),r=t[0],a=t[1];return(0,n.useEffect)(function(){var t=function(){e.current&&a({x:e.current.scrollLeft,y:e.current.scrollTop})};return e.current&&w(e.current,"scroll",t,{capture:!1,passive:!0}),function(){e.current&&S(e.current,"scroll",t)}},[e]),r};const Dt=function(e){var t=(0,n.useState)(!1),r=t[0],a=t[1];return(0,n.useEffect)(function(){if(e.current){var t,r=function(){a(!0),clearTimeout(t),t=setTimeout(function(){a(!1)},150)};return w(e.current,"scroll",r,!1),function(){e.current&&S(e.current,"scroll",r,!1)}}return function(){}},[e]),r};const Ft=function(e,t,r){if(!_)return[t,function(){}];var a=(0,n.useState)(function(){try{var n=sessionStorage.getItem(e);return"string"!=typeof n?(sessionStorage.setItem(e,r?String(t):JSON.stringify(t)),t):r?n:JSON.parse(n||"null")}catch(e){return t}}),o=a[0],i=a[1];return(0,n.useEffect)(function(){try{var t=r?String(o):JSON.stringify(o);sessionStorage.setItem(e,t)}catch(e){}}),[o,i]};var jt=r(75706),Lt=function(e,t){return e.every(function(e,r){return(0,jt.L)(e,t[r])})};const Vt=function(e,t){X(e,t,Lt)};var zt=n.useState,Bt=n.useEffect,Ut=n.useRef;const Wt=function(e,t){var r=void 0===t?{}:t,a=r.width,o=void 0===a?1/0:a,i=r.height,s=void 0===i?1/0:i;if(!_)return["function"==typeof e?e({width:o,height:s}):e,{width:o,height:s}];var l=zt({width:o,height:s}),u=l[0],d=l[1];"function"==typeof e&&(e=e(u));var f=e.props.style||{},p=Ut(null),h=null,m=function(){var e=p.current,t=e?{width:e.offsetWidth,height:e.offsetHeight}:{width:o,height:s};d(t)},v=function(e){w(e,"resize",m),setTimeout(m,35)};return Bt(function(){var e=p.current;if(e){if(e.contentWindow)h=e.contentWindow,v(h);else{var t=function(){w(e,"load",t),h=e.contentWindow,v(h)};S(e,"load",t)}return function(){h&&h.removeEventListener&&S(h,"resize",m)}}},[]),f.position="relative",[n.cloneElement.apply(n,(0,c.__spreadArrays)([e,{style:f}],(0,c.__spreadArrays)([n.createElement("iframe",{ref:p,style:{background:"transparent",border:"none",height:"100%",left:0,position:"absolute",top:0,width:"100%",zIndex:-1}})],n.Children.toArray(e.props.children)))),u]};const Gt=function(e,t){void 0===t&&(t={});var r=d(),a=(0,n.useRef)(!1),o=(0,n.useRef)(0),i=(0,n.useRef)(0),s=m({isSliding:!1,value:0}),l=s[0],u=s[1];return o.current=l.value,(0,n.useEffect)(function(){if(_){var n=void 0===t.styles||t.styles,s=void 0!==t.reverse&&t.reverse;e.current&&n&&(e.current.style.userSelect="none");var l=function(){!a.current&&r()&&((t.onScrubStart||y)(),a.current=!0,u({isSliding:!0}),m())},c=function(){a.current&&r()&&((t.onScrubStop||y)(o.current),a.current=!1,u({isSliding:!1}),v())},d=function(e){l(),f(e)},f=t.vertical?function(e){return g(e.clientY)}:function(e){return g(e.clientX)},p=function(e){l(),h(e)},h=t.vertical?function(e){return g(e.changedTouches[0].clientY)}:function(e){return g(e.changedTouches[0].clientX)},m=function(){w(document,"mousemove",f),w(document,"mouseup",c),w(document,"touchmove",h),w(document,"touchend",c)},v=function(){S(document,"mousemove",f),S(document,"mouseup",c),S(document,"touchmove",h),S(document,"touchend",c)},g=function(n){cancelAnimationFrame(i.current),i.current=requestAnimationFrame(function(){if(r()&&e.current){var a=e.current.getBoundingClientRect(),o=t.vertical?a.top:a.left,i=t.vertical?a.height:a.width;if(!i)return;var l=(n-o)/i;l>1?l=1:l<0&&(l=0),s&&(l=1-l),u({value:l}),(t.onScrub||y)(l)}})};return w(e.current,"mousedown",d),w(e.current,"touchstart",p),function(){S(e.current,"mousedown",d),S(e.current,"touchstart",p)}}},[e,t.vertical]),l};var Ht;!function(e){e[e.init=0]="init",e[e.play=1]="play",e[e.pause=2]="pause",e[e.end=3]="end"}(Ht||(Ht={}));const qt=function(e,t){var r=(0,n.useRef)(!1),a=(0,n.useState)(function(){var e=t.voice||{},r=e.lang,n=void 0===r?"default":r,a=e.name,o=void 0===a?"":a;return{isPlaying:!1,status:Ht[Ht.init],lang:t.lang||"default",voiceInfo:{lang:n,name:o},rate:t.rate||1,pitch:t.pitch||1,volume:t.volume||1}}),o=a[0],i=a[1],s=(0,n.useCallback)(function(){r.current&&i(function(e){return(0,c.__assign)((0,c.__assign)({},e),{isPlaying:!0,status:Ht[Ht.play]})})},[]),l=(0,n.useCallback)(function(){r.current&&i(function(e){return(0,c.__assign)((0,c.__assign)({},e),{isPlaying:!1,status:Ht[Ht.pause]})})},[]),u=(0,n.useCallback)(function(){r.current&&i(function(e){return(0,c.__assign)((0,c.__assign)({},e),{isPlaying:!1,status:Ht[Ht.end]})})},[]);return(0,n.useEffect)(function(){r.current=!0;var n=new SpeechSynthesisUtterance(e);return t.lang&&(n.lang=t.lang),t.voice&&(n.voice=t.voice),n.rate=t.rate||1,n.pitch=t.pitch||1,n.volume=t.volume||1,n.onstart=s,n.onpause=l,n.onresume=s,n.onend=u,window.speechSynthesis.speak(n),function(){r.current=!1}},[]),o};const $t=function(e){Q(function(){var t=function(t){var r,n,a,o,i;!function(){var e=document.activeElement,t=document.body;if(!e)return!1;if(e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}()&&(n=(r=t).keyCode,a=r.metaKey,o=r.ctrlKey,i=r.altKey,!(a||o||i)&&(n>=48&&n<=57||n>=65&&n<=90))&&e(t)};return w(document,"keydown",t),function(){S(document,"keydown",t)}},[])};function Kt(e,t,r){if(void 0===t&&(t=10),t<1)throw new Error("Capacity has to be greater than 1, got '"+t+"'");var a=i(),o=(0,n.useState)(e),s=o[0],l=o[1],u=(0,n.useRef)(null!=r?r:[]),c=(0,n.useRef)(0);return a&&(u.current.length?(u.current[u.current.length-1]!==e&&u.current.push(e),u.current.length>t&&(u.current=u.current.slice(u.current.length-t))):u.current.push(e),c.current=u.current.length&&u.current.length-1),[s,(0,n.useCallback)(function(e){l(function(r){return(e=U(e,r))!==r&&(c.current<u.current.length-1&&(u.current=u.current.slice(0,c.current+1)),c.current=u.current.push(e)-1,u.current.length>t&&(u.current=u.current.slice(u.current.length-t))),e})},[s,t]),(0,n.useMemo)(function(){return{history:u.current,position:c.current,capacity:t,back:function(e){void 0===e&&(e=1),c.current&&l(function(){return c.current-=Math.min(e,c.current),u.current[c.current]})},forward:function(e){void 0===e&&(e=1),c.current!==u.current.length-1&&l(function(){return c.current=Math.min(c.current+e,u.current.length-1),u.current[c.current]})},go:function(e){e!==c.current&&l(function(){return c.current=e<0?Math.max(u.current.length+e,0):Math.min(u.current.length-1,e),u.current[c.current]})}}},[s])]}function Qt(e){void 0===e&&(e=[]);var t=d(),r=B(),a=(0,n.useRef)(0);s(function(){e.length<=a.current&&(a.current=e.length-1,r())},[e.length]);var o=(0,n.useMemo)(function(){return{next:function(){return o.setStateAt(a.current+1)},prev:function(){return o.setStateAt(a.current-1)},setStateAt:function(n){t()&&e.length&&n!==a.current&&(a.current=n>=0?n%e.length:e.length+n%e.length,r())},setState:function(n){if(t()){var o=e.length?e.indexOf(n):-1;if(-1===o)throw new Error("State '"+n+"' is not a valid state (does not exist in state list)");a.current=o,r()}}}},[e]);return(0,c.__assign)({state:e[a.current],currentIndex:a.current,isFirst:0===a.current,isLast:a.current===e.length-1},o)}const Yt=function(e,t){void 0===t&&(t=200);var r=(0,n.useState)(e),a=r[0],o=r[1],i=(0,n.useRef)(),s=(0,n.useRef)(null),l=(0,n.useRef)(0);return(0,n.useEffect)(function(){if(i.current)s.current=e,l.current=!0;else{o(e);var r=function(){l.current?(l.current=!1,o(s.current),i.current=setTimeout(r,t)):i.current=void 0};i.current=setTimeout(r,t)}},[e]),st(function(){i.current&&clearTimeout(i.current)}),a};const Zt=function(e,t,r){void 0===t&&(t=200);var a=(0,n.useState)(null),o=a[0],i=a[1],s=(0,n.useRef)(),l=(0,n.useRef)();return(0,n.useEffect)(function(){if(s.current)l.current=r;else{i(e.apply(void 0,r));var n=function(){l.current?(i(e.apply(void 0,l.current)),l.current=void 0,s.current=setTimeout(n,t)):s.current=void 0};s.current=setTimeout(n,t)}},r),st(function(){s.current&&clearTimeout(s.current)}),o};function Jt(e){return void 0===e&&(e=0),ee(B(),e)}var Xt={restoreOnUnmount:!1};const er="undefined"!=typeof document?function(e,t){void 0===t&&(t=Xt);var r=(0,n.useRef)(document.title);document.title!==e&&(document.title=e),(0,n.useEffect)(function(){return t&&t.restoreOnUnmount?function(){document.title=r.current}:void 0},[])}:function(e){};var tr=r(12341);const rr=function(e,t,r){return void 0===e&&(e="inCirc"),void 0===t&&(t=200),void 0===r&&(r=0),(0,tr.c[e])(kt(t,r))};const nr=function(){var e=(0,n.useRef)(!1);return ie(function(){return function(){e.current=!0}}),(0,n.useMemo)(function(){return function(t,r){return new Promise(function(n,a){t.then(function(t){e.current||n(t)},function(t){e.current?r?r(t):console.error("useUnmountPromise",t):a(t)})})}},[])};function ar(e,t){void 0===t&&(t=[]);var r=je(t),n=r[0],a=r[1];return[n,(0,c.__assign)((0,c.__assign)({},a),{upsert:function(t){a.upsert(e,t)}})]}const or=x&&"vibrate"in navigator?function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=[1e3,1e3]),void 0===r&&(r=!0),(0,n.useEffect)(function(){var n;if(e&&(navigator.vibrate(t),r)){var a=t instanceof Array?t.reduce(function(e,t){return e+t}):t;n=setInterval(function(){navigator.vibrate(t)},a)}return function(){e&&(navigator.vibrate(0),r&&clearInterval(n))}},[e])}:y;const ir=g("video");function sr(e,t,r){void 0===r&&(r=[void 0]);var a=(0,n.useRef)(t),o=(0,n.useRef)(e);a.current=t,o.current=e;var i=(0,n.useState)(r),s=i[0],l=i[1],u=(0,n.useCallback)(function(){a.current.length>=2?a.current(o.current,l):l(a.current(o.current))},[l]);return(0,n.useEffect)(function(){u()},[e]),[s,u]}var lr=function(e){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==e&&"number"==typeof lr.__cache)return lr.__cache;var t=document.createElement("div"),r=t.style;r.display="block",r.position="absolute",r.width="100px",r.height="100px",r.left="-999px",r.top="-999px",r.overflow="scroll",document.body.insertBefore(t,null);var n=t.clientWidth;if(0!==n)return lr.__cache=100-n,document.body.removeChild(t),lr.__cache;document.body.removeChild(t)}};function ur(){var e=(0,n.useState)(lr()),t=e[0],r=e[1];return(0,n.useEffect)(function(){if(void 0===t){var e=requestAnimationFrame(function(){r(lr())});return function(){return cancelAnimationFrame(e)}}},[]),t}function cr(e,t,r){if(void 0===r&&(r=[void 0]),"object"!=typeof e)throw new Error("states expected to be an object or array, got "+typeof e);var a=(0,n.useRef)(t),o=(0,n.useRef)(e);a.current=t,o.current=e;var i=(0,n.useState)(r),s=i[0],l=i[1],u=(0,n.useCallback)(function(){a.current.length>=2?a.current(o.current,l):l(a.current(o.current))},[l]);return(0,n.useEffect)(function(){u()},Object.values(e)),[s,u]}const dr=function(){var e=lt(function(){return{x:_?window.pageXOffset:0,y:_?window.pageYOffset:0}}),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=function(){r(function(e){var t=window.pageXOffset,r=window.pageYOffset;return e.x!==t||e.y!==r?{x:t,y:r}:e})};return e(),w(window,"scroll",e,{capture:!1,passive:!0}),function(){S(window,"scroll",e)}},[]),t};const fr=function(e,t){void 0===e&&(e=1/0),void 0===t&&(t=1/0);var r=lt({width:_?window.innerWidth:e,height:_?window.innerHeight:t}),a=r[0],o=r[1];return(0,n.useEffect)(function(){if(_){var e=function(){o({width:window.innerWidth,height:window.innerHeight})};return w(window,"resize",e),function(){S(window,"resize",e)}}},[]),a};var pr={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const hr=_&&void 0!==window.ResizeObserver?function(){var e=(0,n.useState)(null),t=e[0],r=e[1],a=(0,n.useState)(pr),o=a[0],i=a[1],s=(0,n.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,r=t.x,n=t.y,a=t.width,o=t.height,s=t.top,l=t.left,u=t.bottom,c=t.right;i({x:r,y:n,width:a,height:o,top:s,left:l,bottom:u,right:c})}})},[]);return Q(function(){if(t)return s.observe(t),function(){s.disconnect()}},[t]),[r,o]}:function(){return[y,pr]};var mr;!function(e){e.ZOOMING_IN="ZOOMING_IN",e.ZOOMING_OUT="ZOOMING_OUT"}(mr||(mr={}));const vr=function(e){var t=(0,n.useMemo)(function(){return{evCache:[],prevDiff:-1}},[e.current]),r=(0,n.useState)(),a=r[0],o=r[1],i=function(e){for(var r=0;r<t.evCache.length;r++)if(e.pointerId==t.evCache[r].pointerId){t.evCache[r]=e;break}if(2==t.evCache.length){var n=Math.abs(t.evCache[0].clientX-t.evCache[1].clientX);t.prevDiff>0&&(n>t.prevDiff&&o([mr.ZOOMING_IN,n]),n<t.prevDiff&&o([mr.ZOOMING_OUT,n])),t.prevDiff=n}},s=function(e){t.evCache.push(e)},l=function(e){u(e),t.evCache.length<2&&(t.prevDiff=-1)},u=function(e){for(var r=0;r<t.evCache.length;r++)if(t.evCache[r].pointerId==e.pointerId){t.evCache.splice(r,1);break}};return(0,n.useEffect)(function(){(null==e?void 0:e.current)&&(e.current.onpointerdown=s,e.current.onpointermove=i,e.current.onpointerup=l,e.current.onpointercancel=l,e.current.onpointerout=l,e.current.onpointerleave=l)},[null==e?void 0:e.current]),a?{zoomingState:a[0],pinchState:a[1]}:{zoomingState:null,pinchState:0}};function gr(){return++(0,n.useRef)(0).current}const br=function(e){void 0===e&&(e=new Set);var t=(0,n.useState)(e),r=t[0],a=t[1],o=(0,n.useMemo)(function(){return{add:function(e){return a(function(t){return new Set((0,c.__spreadArrays)(Array.from(t),[e]))})},remove:function(e){return a(function(t){return new Set(Array.from(t).filter(function(t){return t!==e}))})},toggle:function(e){return a(function(t){return t.has(e)?new Set(Array.from(t).filter(function(t){return t!==e})):new Set((0,c.__spreadArrays)(Array.from(t),[e]))})},reset:function(){return a(e)},clear:function(){return a(new Set)}}},[a]),i=(0,c.__assign)({has:(0,n.useCallback)(function(e){return r.has(e)},[r])},o);return[r,i]};function yr(e){var t={state:e instanceof Function?e():e,setState:function(e){t.state=U(e,t.state),t.setters.forEach(function(e){return e(t.state)})},setters:[]};return function(){var e=(0,n.useState)(t.state),r=e[0],a=e[1];return ie(function(){return function(){t.setters=t.setters.filter(function(e){return e!==a})}}),Q(function(){t.setters.includes(a)||t.setters.push(a)}),[r,t.setState]}}var wr=function(){var e=(0,n.useState)(function(){return window.location.hash}),t=e[0],r=e[1],a=(0,n.useCallback)(function(){r(window.location.hash)},[]);Fe(function(){w(window,"hashchange",a)},function(){S(window,"hashchange",a)});var o=(0,n.useCallback)(function(e){e!==t&&(window.location.hash=e)},[t]);return[t,o]}},11965:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"使用鍵 {{keyLabel}} 編輯篩選條件","managed-filter":"{{origin}} 受管理的篩選條件","non-applicable":"","remove-filter-with-key":"使用鍵 {{keyLabel}} 移除篩選條件"},"adhoc-filters-combobox":{"remove-filter-value":"移除篩選條件值 - {{itemLabel}}","use-custom-value":"使用自訂值:{{itemLabel}}"},"fallback-page":{content:"如果您使用連結找到此處,則此應用程式中可能存在錯誤。",subTitle:"URL 與任何頁面都不相符",title:"無結果"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"收闔場景","expand-button-label":"展開場景","remove-button-label":"移除場景"},"scene-debugger":{"object-details":"物件詳情","scene-graph":"場景圖表","title-scene-debugger":"場景除錯器"},"scene-grid-row":{"collapse-row":"收闔列","expand-row":"展開列"},"scene-refresh-picker":{"text-cancel":"取消","text-refresh":"更新","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"比較","button-tooltip":"啟用時間範圍比較"},splitter:{"aria-label-pane-resize-widget":"窗格調整大小小工具"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"標題"}},"viz-panel-explore-button":{explore:"探索"},"viz-panel-renderer":{"loading-plugin-panel":"正在載入外掛程式面板…","panel-plugin-has-no-panel-component":"面板外掛程式沒有面板元件"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"在單個面板中呈現太多序列可能會影響效能,並使資料更難讀取。","warning-message":"僅顯示 {{seriesLimit}} 個序列"}},utils:{"controls-label":{"tooltip-remove":"移除"},"loading-indicator":{"content-cancel-query":"取消查詢"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"編輯篩選條件運算子"},"ad-hoc-filter-builder":{"aria-label-add-filter":"新增篩選條件","title-add-filter":"新增篩選條件"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"移除篩選條件","key-select":{"placeholder-select-label":"選擇標籤"},"label-select-label":"選擇標籤","title-remove-filter":"移除篩選條件","value-select":{"placeholder-select-value":"選擇值"}},"data-source-variable":{label:{default:"預設值"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"清除",tooltip:"在此儀表板中預設套用。如果編輯,它會轉移到其他儀表板。","tooltip-restore-groupby-set-by-this-dashboard":"還原此儀表板設定的分組依據。"},"format-registry":{formats:{description:{"commaseparated-values":"逗點分隔的值","double-quoted-values":"帶雙引號的值","format-date-in-different-ways":"以不同方式格式化日期","format-multivalued-variables-using-syntax-example":"使用 glob 語法格式化多值變數,例如 {value1,value2}","html-escaping-of-values":"值的 HTML 轉義","join-values-with-a-comma":"","json-stringify-value":"JSON 字串化值","keep-value-as-is":"按原樣保留值","multiple-values-are-formatted-like-variablevalue":"多個值按「變數=值」的方式格式化","single-quoted-values":"帶單引號的值","useful-escaping-values-taking-syntax-characters":"對 URL 轉義值很有用,需考慮 URI 語法字元","useful-for-url-escaping-values":"對 URL 轉義值很有用","values-are-separated-by-character":"值以 | 字元分隔"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"按選取器分組","placeholder-group-by-label":"按標籤分組"},"interval-variable":{"placeholder-select-value":"選擇值"},"loading-options-placeholder":{"loading-options":"正在載入選項…"},"multi-value-apply-button":{apply:"套用"},"no-options-placeholder":{"no-options-found":"未找到選項"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"擷取標籤時發生錯誤。點選以重試"},"test-object-with-variable-dependency":{title:{hello:"您好"}},"test-variable":{text:{text:"文字"}},"variable-value-input":{"placeholder-enter-value":"輸入值"},"variable-value-select":{"placeholder-select-value":"選擇值"}}}}},11998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var n=r(93639),a=r(9502);function o(e){return e[e.length-1]}t.popResultSelector=function(e){return n.isFunction(o(e))?e.pop():void 0},t.popScheduler=function(e){return a.isScheduler(o(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof o(e)?e.pop():t}},12010:e=>{e.exports=function(e,t,r){return e===t||e.className===t.className&&r(e.style,t.style)&&e.width===t.width&&e.autoSize===t.autoSize&&e.cols===t.cols&&e.draggableCancel===t.draggableCancel&&e.draggableHandle===t.draggableHandle&&r(e.verticalCompact,t.verticalCompact)&&r(e.compactType,t.compactType)&&r(e.layout,t.layout)&&r(e.margin,t.margin)&&r(e.containerPadding,t.containerPadding)&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.isBounded===t.isBounded&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.allowOverlap===t.allowOverlap&&e.preventCollision===t.preventCollision&&e.useCSSTransforms===t.useCSSTransforms&&e.transformScale===t.transformScale&&e.isDroppable===t.isDroppable&&r(e.resizeHandles,t.resizeHandles)&&r(e.resizeHandle,t.resizeHandle)&&e.onLayoutChange===t.onLayoutChange&&e.onDragStart===t.onDragStart&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResizeStart===t.onResizeStart&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.onDrop===t.onDrop&&r(e.droppingItem,t.droppingItem)&&r(e.innerRef,t.innerRef)}},12157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(81038)),a=o(r(4908));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,n.default)("v3",48,a.default);t.default=i},12227:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var o=r(28619);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.zip.apply(void 0,a([],n(e)))}},12341:(e,t)=>{"use strict";t.c={linear:function(e){return e},quadratic:function(e){return e*(-e*e*e+4*e*e-6*e+4)},cubic:function(e){return e*(4*e*e-9*e+6)},elastic:function(e){return e*(33*e*e*e*e-106*e*e*e+126*e*e-67*e+15)},inQuad:function(e){return e*e},outQuad:function(e){return e*(2-e)},inOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},inCubic:function(e){return e*e*e},outCubic:function(e){return--e*e*e+1},inOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},inQuart:function(e){return e*e*e*e},outQuart:function(e){return 1- --e*e*e*e},inOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},inQuint:function(e){return e*e*e*e*e},outQuint:function(e){return 1+--e*e*e*e*e},inOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},inSine:function(e){return 1-Math.cos(e*(Math.PI/2))},outSine:function(e){return Math.sin(e*(Math.PI/2))},inOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2},inExpo:function(e){return Math.pow(2,10*(e-1))},outExpo:function(e){return 1-Math.pow(2,-10*e)},inOutExpo:function(e){return(e/=.5)<1?Math.pow(2,10*(e-1))/2:(e--,(2-Math.pow(2,-10*e))/2)},inCirc:function(e){return 1-Math.sqrt(1-e*e)},outCirc:function(e){return Math.sqrt(1-(e-=1)*e)},inOutCirc:function(e){return(e/=.5)<1?-(Math.sqrt(1-e*e)-1)/2:(e-=2,(Math.sqrt(1-e*e)+1)/2)}}},13563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(80857))&&n.__esModule?n:{default:n},o=r(80009);let i,s,l=0,u=0;var c=function(e,t,r){let n=t&&r||0;const c=t||new Array(16);let d=(e=e||{}).node||i,f=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==f){const t=e.random||(e.rng||a.default)();null==d&&(d=i=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=s=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:u+1;const m=p-l+(h-u)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||p>l)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,u=h,s=f,p+=122192928e5;const v=(1e4*(268435455&p)+h)%4294967296;c[n++]=v>>>24&255,c[n++]=v>>>16&255,c[n++]=v>>>8&255,c[n++]=255&v;const g=p/4294967296*1e4&268435455;c[n++]=g>>>8&255,c[n++]=255&g,c[n++]=g>>>24&15|16,c[n++]=g>>>16&255,c[n++]=f>>>8|128,c[n++]=255&f;for(let e=0;e<6;++e)c[n+e]=d[e];return t||(0,o.unsafeStringify)(c)};t.default=c},13769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var n=r(51623),a=r(34230),o=r(82792);t.take=function(e){return e<=0?function(){return n.EMPTY}:a.operate(function(t,r){var n=0;t.subscribe(o.createOperatorSubscriber(r,function(t){++n<=e&&(r.next(t),e<=n&&r.complete())}))})}},14123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var n=r(72301);t.concatAll=function(){return n.mergeAll(1)}},14534:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeHandleType=t.resizeHandleAxesType=t.default=void 0;var n=o(r(23108)),a=o(r(85959));function o(e){return e&&e.__esModule?e:{default:e}}var i=n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"]));t.resizeHandleAxesType=i;var s=n.default.oneOfType([n.default.node,n.default.func]);t.resizeHandleType=s;var l={className:n.default.string,style:n.default.object,width:n.default.number,autoSize:n.default.bool,cols:n.default.number,draggableCancel:n.default.string,draggableHandle:n.default.string,verticalCompact:function(e){e.verticalCompact,0},compactType:n.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&r(39726).validateLayout(t,"layout")},margin:n.default.arrayOf(n.default.number),containerPadding:n.default.arrayOf(n.default.number),rowHeight:n.default.number,maxRows:n.default.number,isBounded:n.default.bool,isDraggable:n.default.bool,isResizable:n.default.bool,allowOverlap:n.default.bool,preventCollision:n.default.bool,useCSSTransforms:n.default.bool,transformScale:n.default.number,isDroppable:n.default.bool,resizeHandles:i,resizeHandle:s,onLayoutChange:n.default.func,onDragStart:n.default.func,onDrag:n.default.func,onDragStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,onResizeStop:n.default.func,onDrop:n.default.func,droppingItem:n.default.shape({i:n.default.string.isRequired,w:n.default.number.isRequired,h:n.default.number.isRequired}),children:function(e,t){var r=e[t],n={};a.default.Children.forEach(r,function(e){if(null!=(null==e?void 0:e.key)){if(n[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');n[e.key]=!0}})},innerRef:n.default.any};t.default=l},14782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(56636),a=r(85959),o=parseInt(a.version.substr(0,a.version.indexOf(".")))>15;t.default=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var s=e.render,l=e.children,u=void 0===l?s:l,c=e.component,d=e.comp,f=void 0===d?c:d;return"function"==typeof u?u.apply(void 0,n.__spreadArrays([t],r)):f?a.createElement(f,t):u instanceof Array?o?u:a.createElement.apply(void 0,n.__spreadArrays(["div",null],u)):u&&u instanceof Object?"string"==typeof u.type?u:a.cloneElement(u,Object.assign({},u.props,t)):u||null}},14820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var n=r(32403),a=r(34230),o=r(82792);t.dematerialize=function(){return a.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){return n.observeNotification(e,t)}))})}},14895:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var n=r(36333);t.UnsubscriptionError=n.createErrorClass(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}})},15171:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var n=r(34230),a=r(82792);t.every=function(e,t){return n.operate(function(r,n){var o=0;r.subscribe(a.createOperatorSubscriber(n,function(a){e.call(t,a,o++,r)||(n.next(!1),n.complete())},function(){n.next(!0),n.complete()}))})}},15261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var n=r(93697);t.fromSubscribable=function(e){return new n.Observable(function(t){return e.subscribe(t)})}},15798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(56636),a=n.__importStar(r(85959));t.default=function(e){var t=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(r,t),r.prototype.render=function(){return e(this.props,this.context)},r}(a.Component);return t}},16351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var n=r(93697),a=r(21492),o=r(9502),i=r(99939);t.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=a.async);var s=-1;return null!=t&&(o.isScheduler(t)?r=t:s=t),new n.Observable(function(t){var n=i.isValidDate(e)?+e-r.now():e;n<0&&(n=0);var a=0;return r.schedule(function(){t.closed||(t.next(a++),0<=s?this.schedule(void 0,s):t.complete())},n)})}},16820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var n=r(74560),a=r(11998),o=r(34230);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popScheduler(e);return o.operate(function(t,a){(r?n.concat(e,t,r):n.concat(e,t)).subscribe(a)})}},16924:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});const n=(e,t)=>e>t?1:e<t?-1:0,a=1/0,o=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i="eexxaacctt",s=/\p{P}/gu,l=["en",{numeric:!0,sensitivity:"base"}],u=(e,t,r)=>e.replace("A-Z",t).replace("a-z",r),c={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",interBound:"[^A-Za-z\\d]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:a,intraChars:"[a-z\\d']",intraIns:null,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,a],intraSub:null,intraTrn:null,intraDel:null,intraFilt:(e,t,r)=>!0,toUpper:e=>e.toLocaleUpperCase(),toLower:e=>e.toLocaleLowerCase(),compare:null,sort:(e,t,r,a=n)=>{let{idx:o,chars:i,terms:s,interLft2:l,interLft1:u,start:c,intraIns:d,interIns:f,cases:p}=e;return o.map((e,t)=>t).sort((e,r)=>i[r]-i[e]||d[e]-d[r]||s[r]+l[r]+.5*u[r]-(s[e]+l[e]+.5*u[e])||f[e]-f[r]||c[e]-c[r]||p[r]-p[e]||a(t[o[e]],t[o[r]]))}},d=(e,t)=>0==t?"":1==t?e+"??":t==a?e+"*?":e+`{0,${t}}?`,f="(?:\\b|_)";function p(e){e=Object.assign({},c,e);let{unicode:t,interLft:r,interRgt:a,intraMode:p,intraSlice:h,intraIns:v,intraSub:g,intraTrn:b,intraDel:y,intraContr:w,intraSplit:S,interSplit:_,intraBound:x,interBound:O,intraChars:A,toUpper:R,toLower:E,compare:k}=e;v??=p,g??=p,b??=p,y??=p,k??="undefined"==typeof Intl?n:new Intl.Collator(...l).compare;let C=e.letters??e.alpha;if(null!=C){let e=R(C),t=E(C);_=u(_,e,t),S=u(S,e,t),O=u(O,e,t),x=u(x,e,t),A=u(A,e,t),w=u(w,e,t)}let I=t?"u":"";const P='".+?"',M=new RegExp(P,"gi"+I),T=new RegExp(`(?:\\s+|^)-(?:${A}+|${P})`,"gi"+I);let{intraRules:N}=e;null==N&&(N=e=>{let t=c.intraSlice,r=0,n=0,a=0,o=0;if(/[^\d]/.test(e)){let i=e.length;i<=4?i>=3&&(a=Math.min(b,1),4==i&&(r=Math.min(v,1))):(t=h,r=v,n=g,a=b,o=y)}return{intraSlice:t,intraIns:r,intraSub:n,intraTrn:a,intraDel:o}});let D=!!S,F=new RegExp(S,"g"+I),j=new RegExp(_,"g"+I),L=new RegExp("^"+_+"|"+_+"$","g"+I),V=new RegExp(w,"gi"+I);const z=(e,t=!1)=>{let r=[];e=(e=e.replace(M,e=>(r.push(e),i))).replace(L,""),t||(e=E(e)),D&&(e=e.replace(F,e=>e[0]+" "+e[1]));let n=0;return e.split(j).filter(e=>""!=e).map(e=>e===i?r[n++]:e)},B=/[^\d]+|\d+/g,U=(t,n=0,i=!1)=>{let s=z(t);if(0==s.length)return[];let l,u=Array(s.length).fill("");if(s=s.map((e,t)=>e.replace(V,e=>(u[t]=e,""))),1==p)l=s.map((e,t)=>{if('"'===e[0])return o(e.slice(1,-1));let r="";for(let n of e.matchAll(B)){let e=n[0],{intraSlice:a,intraIns:o,intraSub:i,intraTrn:s,intraDel:l}=N(e);if(o+i+s+l==0)r+=e+u[t];else{let[n,c]=a,f=e.slice(0,n),p=e.slice(c),h=e.slice(n,c);1==o&&1==f.length&&f!=h[0]&&(f+="(?!"+f+")");let m=h.length,v=[e];if(i)for(let e=0;e<m;e++)v.push(f+h.slice(0,e)+A+h.slice(e+1)+p);if(s)for(let e=0;e<m-1;e++)h[e]!=h[e+1]&&v.push(f+h.slice(0,e)+h[e+1]+h[e]+h.slice(e+2)+p);if(l)for(let e=0;e<m;e++)v.push(f+h.slice(0,e+1)+"?"+h.slice(e+1)+p);if(o){let e=d(A,1);for(let t=0;t<m;t++)v.push(f+h.slice(0,t)+e+h.slice(t)+p)}r+="(?:"+v.join("|")+")"+u[t]}}return r});else{let e=d(A,v);2==n&&v>0&&(e=")("+e+")("),l=s.map((t,r)=>'"'===t[0]?o(t.slice(1,-1)):t.split("").map((e,t,r)=>(1==v&&0==t&&r.length>1&&e!=r[t+1]&&(e+="(?!"+e+")"),e)).join(e)+u[r])}let c=2==r?f:"",h=2==a?f:"",m=h+d(e.interChars,e.interIns)+c;return n>0?i?l=c+"("+l.join(")"+h+"|"+c+"(")+")"+h:(l="("+l.join(")("+m+")(")+")",l="(.??"+c+")"+l+"("+h+".*)"):(l=l.join(m),l=c+l+h),[new RegExp(l,"i"+I),s,u]},W=(e,t,r)=>{let[n]=U(t);if(null==n)return null;let a=[];if(null!=r)for(let t=0;t<r.length;t++){let o=r[t];n.test(e[o])&&a.push(o)}else for(let t=0;t<e.length;t++)n.test(e[t])&&a.push(t);return a};let G=!!x,H=new RegExp(O,I),q=new RegExp(x,I);const $=(t,n,o)=>{let[i,s,l]=U(o,1),u=z(o,!0),[c]=U(o,2),d=s.length,f=Array(d),p=Array(d);for(let e=0;e<d;e++){let t=s[e],r=u[e],n='"'==t[0]?t.slice(1,-1):t+l[e],a='"'==r[0]?r.slice(1,-1):r+l[e];f[e]=n,p[e]=a}let h=t.length,m=Array(h).fill(0),v={idx:Array(h),start:m.slice(),chars:m.slice(),cases:m.slice(),terms:m.slice(),interIns:m.slice(),intraIns:m.slice(),interLft2:m.slice(),interRgt2:m.slice(),interLft1:m.slice(),interRgt1:m.slice(),ranges:Array(h)},g=1==r||1==a,b=0;for(let o=0;o<t.length;o++){let s=n[t[o]],l=s.match(i),u=l.index+l[1].length,h=u,m=!1,y=0,w=0,S=0,_=0,x=0,O=0,A=0,R=0,k=0,C=[];for(let t=0,n=2;t<d;t++,n+=2){let o=E(l[n]),i=f[t],c=p[t],v=i.length,b=o.length,P=o==i;if(l[n]==c&&A++,!P&&l[n+1].length>=v){let e=E(l[n+1]).indexOf(i);e>-1&&(C.push(h,b,e,v),h+=K(l,n,e,v),o=i,b=v,P=!0,0==t&&(u=h))}if(g||P){let e=h-1,c=h+b,d=!1,f=!1;if(-1==e||H.test(s[e]))P&&y++,d=!0;else{if(2==r){m=!0;break}if(G&&q.test(s[e]+s[e+1]))P&&w++,d=!0;else if(1==r){let e=l[n+1],r=h+b;if(e.length>=v){let a,c=0,f=!1,p=new RegExp(i,"ig"+I);for(;a=p.exec(e);){c=a.index;let e=r+c,t=e-1;if(-1==t||H.test(s[t])){y++,f=!0;break}if(q.test(s[t]+s[e])){w++,f=!0;break}}f&&(d=!0,C.push(h,b,c,v),h+=K(l,n,c,v),o=i,b=v,P=!0,0==t&&(u=h))}if(!d){m=!0;break}}}if(c==s.length||H.test(s[c]))P&&S++,f=!0;else{if(2==a){m=!0;break}if(G&&q.test(s[c-1]+s[c]))P&&_++,f=!0;else if(1==a){m=!0;break}}P&&(x+=v,d&&f&&O++)}if(b>v&&(k+=b-v),t>0&&(R+=l[n-1].length),!e.intraFilt(i,o,h)){m=!0;break}t<d-1&&(h+=b+l[n+1].length)}if(!m){v.idx[b]=t[o],v.interLft2[b]=y,v.interLft1[b]=w,v.interRgt2[b]=S,v.interRgt1[b]=_,v.chars[b]=x,v.terms[b]=O,v.cases[b]=A,v.interIns[b]=R,v.intraIns[b]=k,v.start[b]=u;let e=s.match(c),r=e.index+e[1].length,n=C.length,a=n>0?0:1/0,i=n-4;for(let t=2;t<e.length;){let n=e[t].length;if(a<=i&&C[a]==r){let n=C[a+1],o=C[a+2],i=C[a+3],s=t,l="";for(let t=0;t<n;s++)l+=e[s],t+=e[s].length;e.splice(t,s-t,l),r+=K(e,t,o,i),a+=4}else r+=n,t++}r=e.index+e[1].length;let l=v.ranges[b]=[],d=r,f=r;for(let t=2;t<e.length;t++){let n=e[t].length;r+=n,t%2==0?f=r:n>0&&(l.push(d,f),d=f=r)}f>d&&l.push(d,f),b++}}if(b<t.length)for(let e in v)v[e]=v[e].slice(0,b);return v},K=(e,t,r,n)=>{let a=e[t]+e[t+1].slice(0,r);return e[t-1]+=a,e[t]=e[t+1].slice(r,r+n),e[t+1]=e[t+1].slice(r+n),a.length};return{search:(...t)=>((t,r,n,a=1e3,i)=>{n=n?!0===n?5:n:0;let l=null,u=null,c=[];r=r.replace(T,e=>{let t=e.trim().slice(1);return t='"'===t[0]?o(t.slice(1,-1)):t.replace(s,""),""!=t&&c.push(t),""});let d,f=z(r);if(c.length>0){if(d=new RegExp(c.join("|"),"i"+I),0==f.length){let e=[];for(let r=0;r<t.length;r++)d.test(t[r])||e.push(r);return[e,null,null]}}else if(0==f.length)return[null,null,null];if(n>0){let e=z(r);if(e.length>1){let r=e.slice().sort((e,t)=>t.length-e.length);for(let e=0;e<r.length;e++){if(0==i?.length)return[[],null,null];i=W(t,r[e],i)}if(e.length>n)return[i,null,null];l=m(e).map(e=>e.join(" ")),u=[];let a=new Set;for(let e=0;e<l.length;e++)if(a.size<i.length){let r=i.filter(e=>!a.has(e)),n=W(t,l[e],r);for(let e=0;e<n.length;e++)a.add(n[e]);u.push(n)}else u.push([])}}null==l&&(l=[r],u=[i?.length>0?i:W(t,r)]);let p=null,h=null;if(c.length>0&&(u=u.map(e=>e.filter(e=>!d.test(t[e])))),u.reduce((e,t)=>e+t.length,0)<=a){p={},h=[];for(let r=0;r<u.length;r++){let n=u[r];if(null==n||0==n.length)continue;let a=l[r],o=$(n,t,a),i=e.sort(o,t,a,k);if(r>0)for(let e=0;e<i.length;e++)i[e]+=h.length;for(let e in o)p[e]=(p[e]??[]).concat(o[e]);h=h.concat(i)}}return[[].concat(...u),p,h]})(...t),split:z,filter:W,info:$,sort:e.sort}}const h=(()=>{let e={A:"ÁÀÃÂÄĄĂÅ",a:"áàãâäąăå",E:"ÉÈÊËĖĚ",e:"éèêëęě",I:"ÍÌÎÏĮİ",i:"íìîïįı",O:"ÓÒÔÕÖ",o:"óòôõö",U:"ÚÙÛÜŪŲŮŰ",u:"úùûüūųůű",C:"ÇČĆ",c:"çčć",D:"Ď",d:"ď",G:"Ğ",g:"ğ",L:"Ł",l:"ł",N:"ÑŃŇ",n:"ñńň",S:"ŠŚȘŞ",s:"šśșş",T:"ŢȚŤ",t:"ţțť",Y:"Ý",y:"ý",Z:"ŻŹŽ",z:"żźž"},t={},r="";for(let n in e)e[n].split("").forEach(e=>{r+=e,t[e]=n});let n=new RegExp(`[${r}]`,"g"),a=e=>t[e];return e=>{if("string"==typeof e)return e.replace(n,a);let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r].replace(n,a);return t}})();function m(e){let t,r,n=(e=e.slice()).length,a=[e.slice()],o=new Array(n).fill(0),i=1;for(;i<n;)o[i]<i?(t=i%2&&o[i],r=e[i],e[i]=e[t],e[t]=r,++o[i],i=1,a.push(e.slice())):(o[i]=0,++i);return a}const v=(e,t)=>t?`<mark>${e}</mark>`:e,g=(e,t)=>e+t;p.latinize=h,p.permute=e=>m([...Array(e.length).keys()]).sort((e,t)=>{for(let r=0;r<e.length;r++)if(e[r]!=t[r])return e[r]-t[r];return 0}).map(t=>t.map(t=>e[t])),p.highlight=function(e,t,r=v,n="",a=g){n=a(n,r(e.substring(0,t[0]),!1))??n;for(let o=0;o<t.length;o+=2){let i=t[o],s=t[o+1];n=a(n,r(e.substring(i,s),!0))??n,o<t.length-3&&(n=a(n,r(e.substring(t[o+1],t[o+2]),!1))??n)}return n=a(n,r(e.substring(t[t.length-1]),!1))??n}},17046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var n=r(36333);t.EmptyError=n.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},17124:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var n=r(34661),a=r(64881);t.zipAll=function(e){return a.joinAllInternals(n.zip,e)}},18346:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var o=r(23980),i=r(34230),s=r(3526),l=r(46914),u=r(55955),c=r(11998);t.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var d=c.popResultSelector(t);return d?u.pipe(e.apply(void 0,a([],n(t))),l.mapOneOrManyArgs(d)):i.operate(function(e,r){o.combineLatestInit(a([e],n(s.argsOrArgArray(t))))(r)})}},18839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6832);const a={Alerting:{AddAlertRule:{url:{"10.1.0":"/alerting/new/alerting",[n.MIN_GRAFANA_VERSION]:"/alerting/new"}},EditAlertRule:{url:{[n.MIN_GRAFANA_VERSION]:e=>`alerting/${e}/edit`}}},Login:{url:{[n.MIN_GRAFANA_VERSION]:"/login"},username:{"10.2.3":"data-testid Username input field",[n.MIN_GRAFANA_VERSION]:"Username input field"},password:{"10.2.3":"data-testid Password input field",[n.MIN_GRAFANA_VERSION]:"Password input field"},submit:{"10.2.3":"data-testid Login button",[n.MIN_GRAFANA_VERSION]:"Login button"},skip:{"10.2.3":"data-testid Skip change password button"}},PasswordlessLogin:{url:{[n.MIN_GRAFANA_VERSION]:"/login/passwordless/authenticate"},email:{"10.2.3":"data-testid Email input field",[n.MIN_GRAFANA_VERSION]:"Email input field"},submit:{"10.2.3":"data-testid PasswordlessLogin button",[n.MIN_GRAFANA_VERSION]:"PasswordlessLogin button"}},Home:{url:{[n.MIN_GRAFANA_VERSION]:"/"}},DataSource:{name:{"10.3.0":"data-testid Data source settings page name input field",[n.MIN_GRAFANA_VERSION]:"Data source settings page name input field"},delete:{[n.MIN_GRAFANA_VERSION]:"Data source settings page Delete button"},readOnly:{"10.3.0":"data-testid Data source settings page read only message",[n.MIN_GRAFANA_VERSION]:"Data source settings page read only message"},saveAndTest:{"10.0.0":"data-testid Data source settings page Save and Test button",[n.MIN_GRAFANA_VERSION]:"Data source settings page Save and Test button"},alert:{"10.3.0":"data-testid Data source settings page Alert",[n.MIN_GRAFANA_VERSION]:"Data source settings page Alert"}},DataSources:{url:{[n.MIN_GRAFANA_VERSION]:"/datasources"},dataSources:{[n.MIN_GRAFANA_VERSION]:e=>`Data source list item ${e}`},dataSourceAddButton:{"12.4.0":"data-testid data-source-add-button"}},EditDataSource:{url:{"9.5.0":e=>`/datasources/edit/${e}`},settings:{"9.5.0":"Datasource settings page basic settings"}},AddDataSource:{url:{[n.MIN_GRAFANA_VERSION]:"/datasources/new"},dataSourcePluginsV2:{"9.3.1":e=>`Add new data source ${e}`,[n.MIN_GRAFANA_VERSION]:e=>`Data source plugin item ${e}`}},ConfirmModal:{delete:{"10.0.0":"data-testid Confirm Modal Danger Button",[n.MIN_GRAFANA_VERSION]:"Confirm Modal Danger Button"},input:{"12.2.0":"data-testid Confirm Modal Input"}},SecretsManagement:{SecretForm:{"12.2.0":"data-testid Secret Form"}},AddDashboard:{url:{[n.MIN_GRAFANA_VERSION]:"/dashboard/new"},itemButton:{"9.5.0":e=>`data-testid ${e}`},addNewPanel:{"11.1.0":"data-testid Add new panel","8.0.0":"Add new panel",[n.MIN_GRAFANA_VERSION]:"Add new panel"},itemButtonAddViz:{[n.MIN_GRAFANA_VERSION]:"Add new visualization menu item"},addNewRow:{"11.1.0":"data-testid Add new row",[n.MIN_GRAFANA_VERSION]:"Add new row"},addNewPanelLibrary:{"11.1.0":"data-testid Add new panel from panel library",[n.MIN_GRAFANA_VERSION]:"Add new panel from panel library"},Settings:{Annotations:{List:{url:{[n.MIN_GRAFANA_VERSION]:"/dashboard/new?orgId=1&editview=annotations"}},Edit:{url:{[n.MIN_GRAFANA_VERSION]:e=>`/dashboard/new?editview=annotations&editIndex=${e}`}}},Variables:{List:{url:{"11.3.0":"/dashboard/new?orgId=1&editview=variables",[n.MIN_GRAFANA_VERSION]:"/dashboard/new?orgId=1&editview=templating"}},Edit:{url:{"11.3.0":e=>`/dashboard/new?orgId=1&editview=variables&editIndex=${e}`,[n.MIN_GRAFANA_VERSION]:e=>`/dashboard/new?orgId=1&editview=templating&editIndex=${e}`}}}}},ImportDashboard:{url:{[n.MIN_GRAFANA_VERSION]:"/dashboard/import"}},Dashboard:{url:{[n.MIN_GRAFANA_VERSION]:e=>`/d/${e}`},Sidebar:{optionsButton:{"12.4.0":"data-testid Dashboard Sidebar options button"},outlineButton:{"12.4.0":"data-testid Dashboard Sidebar outline button"},addButton:{"12.4.0":"data-testid Dashboard Sidebar new button"}},DashNav:{nav:{[n.MIN_GRAFANA_VERSION]:"Dashboard navigation"},navV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Dashboard navigation"},publicDashboardTag:{"9.1.0":"data-testid public dashboard tag"},shareButton:{"10.4.0":"data-testid share-button"},scrollContainer:{"11.1.0":"data-testid Dashboard canvas scroll container"},newShareButton:{container:{"11.1.0":"data-testid new share button"},shareLink:{"11.1.0":"data-testid new share link-button"},arrowMenu:{"11.1.0":"data-testid new share button arrow menu"},menu:{container:{"11.1.0":"data-testid new share button menu"},shareInternally:{"11.1.0":"data-testid new share button share internally"},shareExternally:{"11.1.1":"data-testid new share button share externally"},shareSnapshot:{"11.2.0":"data-testid new share button share snapshot"}}},NewExportButton:{container:{"11.2.0":"data-testid new export button"},arrowMenu:{"11.2.0":"data-testid new export button arrow menu"},Menu:{container:{"11.2.0":"data-testid new export button menu"},exportAsJson:{"11.2.0":"data-testid new export button export as json"},exportAsImage:{"12.1.0":"data-testid new export button export as image"}}},playlistControls:{prev:{"11.0.0":"data-testid playlist previous dashboard button"},stop:{"11.0.0":"data-testid playlist stop dashboard button"},next:{"11.0.0":"data-testid playlist next dashboard button"}}},Controls:{"11.1.0":"data-testid dashboard controls"},ControlsButton:{"12.3.0":"data-testid dashboard controls button"},SubMenu:{submenu:{[n.MIN_GRAFANA_VERSION]:"Dashboard submenu"},submenuItem:{[n.MIN_GRAFANA_VERSION]:"data-testid template variable"},submenuItemLabels:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Dashboard template variables submenu Label ${e}`},submenuItemValueDropDownValueLinkTexts:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Dashboard template variables Variable Value DropDown value link text ${e}`},submenuItemValueDropDownDropDown:{[n.MIN_GRAFANA_VERSION]:"Variable options"},submenuItemValueDropDownOptionTexts:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Dashboard template variables Variable Value DropDown option text ${e}`},Annotations:{annotationsWrapper:{"10.0.0":"data-testid annotation-wrapper"},annotationLabel:{"10.0.0":e=>`data-testid Dashboard annotations submenu Label ${e}`},annotationToggle:{"10.0.0":e=>`data-testid Dashboard annotations submenu Toggle ${e}`}}},Settings:{Actions:{close:{"9.5.0":"data-testid dashboard-settings-close"}},General:{deleteDashBoard:{"11.1.0":"data-testid Dashboard settings page delete dashboard button"},sectionItems:{[n.MIN_GRAFANA_VERSION]:e=>`Dashboard settings section item ${e}`},saveDashBoard:{[n.MIN_GRAFANA_VERSION]:"Dashboard settings aside actions Save button"},saveAsDashBoard:{[n.MIN_GRAFANA_VERSION]:"Dashboard settings aside actions Save As button"},title:{"11.2.0":"General"}},Annotations:{Edit:{urlParams:{[n.MIN_GRAFANA_VERSION]:e=>`editview=annotations&editIndex=${e}`}},List:{url:{[n.MIN_GRAFANA_VERSION]:e=>`/d/${e}?editview=annotations`},addAnnotationCTAV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Call to action button Add annotation query"},annotations:{"10.4.0":"data-testid list-annotations"}},Settings:{name:{"11.1.0":"data-testid Annotations settings name input",[n.MIN_GRAFANA_VERSION]:"Annotations settings name input"}},NewAnnotation:{panelFilterSelect:{"10.0.0":"data-testid annotations-panel-filter"},showInLabel:{"11.1.0":"data-testid show-in-label"},annotationControlsDisplay:{"12.4.0":"data-testid annotation-controls-display-label"},previewInDashboard:{"10.0.0":"data-testid annotations-preview"},delete:{"10.4.0":"data-testid annotations-delete"},apply:{"10.4.0":"data-testid annotations-apply"},enable:{"10.4.0":"data-testid annotation-enable"},hide:{"10.4.0":"data-testid annotation-hide"}}},Variables:{List:{url:{"11.3.0":e=>`/d/${e}?editview=variables`,[n.MIN_GRAFANA_VERSION]:e=>`/d/${e}?editview=templating`},addVariableCTAV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Call to action button Add variable"},newButton:{[n.MIN_GRAFANA_VERSION]:"Variable editor New variable button"},table:{[n.MIN_GRAFANA_VERSION]:"Variable editor Table"},tableRowNameFields:{[n.MIN_GRAFANA_VERSION]:e=>`Variable editor Table Name field ${e}`},tableRowDefinitionFields:{"10.1.0":e=>`Variable editor Table Definition field ${e}`},tableRowArrowUpButtons:{[n.MIN_GRAFANA_VERSION]:e=>`Variable editor Table ArrowUp button ${e}`},tableRowArrowDownButtons:{[n.MIN_GRAFANA_VERSION]:e=>`Variable editor Table ArrowDown button ${e}`},tableRowDuplicateButtons:{[n.MIN_GRAFANA_VERSION]:e=>`Variable editor Table Duplicate button ${e}`},tableRowRemoveButtons:{[n.MIN_GRAFANA_VERSION]:e=>`Variable editor Table Remove button ${e}`}},Edit:{urlParams:{"11.3.0":e=>`editview=variables&editIndex=${e}`,[n.MIN_GRAFANA_VERSION]:e=>`editview=templating&editIndex=${e}`},General:{headerLink:{[n.MIN_GRAFANA_VERSION]:"Variable editor Header link"},modeLabelNew:{[n.MIN_GRAFANA_VERSION]:"Variable editor Header mode New"},modeLabelEdit:{[n.MIN_GRAFANA_VERSION]:"Variable editor Header mode Edit"},generalNameInput:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Name field"},generalNameInputV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Name field"},generalTypeSelect:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Type select"},generalTypeSelectV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Type select"},generalLabelInput:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Label field"},generalLabelInputV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Label field"},generalHideSelect:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Hide select"},generalHideSelectV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Hide select"},generalDisplaySelect:{"12.4.0":"data-testid Variable editor Display select"},selectionOptionsAllowCustomValueSwitch:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Allow Custom Value switch"},selectionOptionsMultiSwitch:{"10.4.0":"data-testid Variable editor Form Multi switch",[n.MIN_GRAFANA_VERSION]:"Variable editor Form Multi switch"},selectionOptionsIncludeAllSwitch:{"10.4.0":"data-testid Variable editor Form IncludeAll switch",[n.MIN_GRAFANA_VERSION]:"Variable editor Form IncludeAll switch"},selectionOptionsCustomAllInput:{"10.4.0":"data-testid Variable editor Form IncludeAll field",[n.MIN_GRAFANA_VERSION]:"Variable editor Form IncludeAll field"},previewOfValuesOption:{"10.4.0":"data-testid Variable editor Preview of Values option",[n.MIN_GRAFANA_VERSION]:"Variable editor Preview of Values option"},submitButton:{"10.4.0":"data-testid Variable editor Run Query button",[n.MIN_GRAFANA_VERSION]:"Variable editor Submit button"},applyButton:{"9.3.0":"data-testid Variable editor Apply button"}},QueryVariable:{closeButton:{[n.MIN_GRAFANA_VERSION]:"data-testid Query Variable editor close button"},editor:{[n.MIN_GRAFANA_VERSION]:"data-testid Query Variable editor"},previewButton:{[n.MIN_GRAFANA_VERSION]:"data-testid Query Variable editor preview button"},queryOptionsDataSourceSelect:{"10.4.0":"data-testid Select a data source","10.0.0":"data-testid Data source picker select container",[n.MIN_GRAFANA_VERSION]:"Data source picker select container"},queryOptionsOpenButton:{[n.MIN_GRAFANA_VERSION]:"data-testid Query Variable editor open button"},queryOptionsRefreshSelect:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Query Refresh select"},queryOptionsRefreshSelectV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Query Refresh select"},queryOptionsRegExInput:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Query RegEx field"},queryOptionsRegExInputV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Query RegEx field"},queryOptionsRegExApplyToSelectV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Query RegExApplyTo select"},queryOptionsSortSelect:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Query Sort select"},queryOptionsSortSelectV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Query Sort select"},queryOptionsQueryInput:{"10.4.0":"data-testid Variable editor Form Default Variable Query Editor textarea"},queryOptionsStaticOptionsToggle:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Query Static Options toggle"},queryOptionsStaticOptionsOrderDropdown:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Query Static Options Order dropdown"},valueGroupsTagsEnabledSwitch:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Query UseTags switch"},valueGroupsTagsTagsQueryInput:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Query TagsQuery field"},valueGroupsTagsTagsValuesQueryInput:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Query TagsValuesQuery field"}},ConstantVariable:{constantOptionsQueryInput:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form Constant Query field"},constantOptionsQueryInputV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Constant Query field"}},DatasourceVariable:{datasourceSelect:{[n.MIN_GRAFANA_VERSION]:"data-testid datasource variable datasource type"},nameFilter:{[n.MIN_GRAFANA_VERSION]:"data-testid datasource variable datasource name filter"}},TextBoxVariable:{textBoxOptionsQueryInput:{[n.MIN_GRAFANA_VERSION]:"Variable editor Form TextBox Query field"},textBoxOptionsQueryInputV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form TextBox Query field"}},CustomVariable:{customValueInput:{[n.MIN_GRAFANA_VERSION]:"data-testid custom-variable-input"},optionsOpenButton:{[n.MIN_GRAFANA_VERSION]:"data-testid custom-variable-options-open-button"},closeButton:{[n.MIN_GRAFANA_VERSION]:"data-testid custom-variable-close-button"},applyButton:{[n.MIN_GRAFANA_VERSION]:"data-testid custom-variable-apply-button"}},IntervalVariable:{intervalsValueInput:{[n.MIN_GRAFANA_VERSION]:"data-testid interval variable intervals input"},autoEnabledCheckbox:{"10.4.0":"data-testid interval variable auto value checkbox"},stepCountIntervalSelect:{"10.4.0":"data-testid interval variable step count input"},minIntervalInput:{"10.4.0":"data-testid interval variable mininum interval input"}},GroupByVariable:{dataSourceSelect:{"10.4.0":"data-testid Select a data source"},infoText:{"10.4.0":"data-testid group by variable info text"},modeToggle:{"10.4.0":"data-testid group by variable mode toggle"}},AdHocFiltersVariable:{datasourceSelect:{"10.4.0":"data-testid Select a data source"},infoText:{"10.4.0":"data-testid ad-hoc filters variable info text"},modeToggle:{"11.0.0":"data-testid ad-hoc filters variable mode toggle"}},SwitchVariable:{valuePairTypeSelect:{"12.3.0":"data-testid switch variable value pair type select"},enabledValueInput:{"12.3.0":"data-testid switch variable enabled value input"},disabledValueInput:{"12.3.0":"data-testid switch variable disabled value input"}},StaticOptionsEditor:{addButton:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Static Options Add button"},labelInput:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Static Options Label input"},valueInput:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Static Options Value input"},moveButton:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Static Options Move button"},deleteButton:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Static Options Delete button"},row:{[n.MIN_GRAFANA_VERSION]:"data-testid Variable editor Form Static Options Row"}}}}},Annotations:{marker:{"10.0.0":"data-testid annotation-marker"}},Rows:{Repeated:{ConfigSection:{warningMessage:{"10.2.0":"data-testid Repeated rows warning message"}}}}},Dashboards:{url:{[n.MIN_GRAFANA_VERSION]:"/dashboards"},dashboards:{"10.2.0":e=>`Dashboard search item ${e}`},toggleView:{[n.MIN_GRAFANA_VERSION]:"data-testid radio-button"}},SaveDashboardAsModal:{newName:{"10.2.0":"Save dashboard title field"},save:{"10.2.0":"Save dashboard button"}},SaveDashboardModal:{save:{"10.2.0":"Dashboard settings Save Dashboard Modal Save button"},saveVariables:{"10.2.0":"Dashboard settings Save Dashboard Modal Save variables checkbox"},saveTimerange:{"10.2.0":"Dashboard settings Save Dashboard Modal Save timerange checkbox"},saveRefresh:{"11.1.0":"Dashboard settings Save Dashboard Modal Save refresh checkbox"},variablesWarningAlert:{"12.2.0":"Dashboard settings Save Dashboard Modal Save variables Variables With Errors Warning Alert"}},SharePanelModal:{linkToRenderedImage:{[n.MIN_GRAFANA_VERSION]:"Link to rendered image"}},ShareDashboardModal:{PublicDashboard:{WillBePublicCheckbox:{"9.1.0":"data-testid public dashboard will be public checkbox"},LimitedDSCheckbox:{"9.1.0":"data-testid public dashboard limited datasources checkbox"},CostIncreaseCheckbox:{"9.1.0":"data-testid public dashboard cost may increase checkbox"},PauseSwitch:{"9.5.0":"data-testid public dashboard pause switch"},EnableAnnotationsSwitch:{"9.3.0":"data-testid public dashboard on off switch for annotations"},CreateButton:{"9.5.0":"data-testid public dashboard create button"},DeleteButton:{"9.3.0":"data-testid public dashboard delete button"},CopyUrlInput:{"9.1.0":"data-testid public dashboard copy url input"},CopyUrlButton:{"9.1.0":"data-testid public dashboard copy url button"},SettingsDropdown:{"10.1.0":"data-testid public dashboard settings dropdown"},TemplateVariablesWarningAlert:{"9.1.0":"data-testid public dashboard disabled template variables alert"},UnsupportedDataSourcesWarningAlert:{"9.5.0":"data-testid public dashboard unsupported data sources alert"},NoUpsertPermissionsWarningAlert:{"9.5.0":"data-testid public dashboard no upsert permissions alert"},EnableTimeRangeSwitch:{"9.4.0":"data-testid public dashboard on off switch for time range"},EmailSharingConfiguration:{Container:{"9.5.0":"data-testid email sharing config container"},ShareType:{"9.5.0":"data-testid public dashboard share type"},EmailSharingInput:{"9.5.0":"data-testid public dashboard email sharing input"},EmailSharingInviteButton:{"9.5.0":"data-testid public dashboard email sharing invite button"},EmailSharingList:{"9.5.0":"data-testid public dashboard email sharing list"},DeleteEmail:{"9.5.0":"data-testid public dashboard delete email button"},ReshareLink:{"9.5.0":"data-testid public dashboard reshare link button"}}},SnapshotScene:{url:{"11.1.0":e=>`/dashboard/snapshot/${e}`},PublishSnapshot:{"11.1.0":"data-testid publish snapshot button"},CopyUrlButton:{"11.1.0":"data-testid snapshot copy url button"},CopyUrlInput:{"11.1.0":"data-testid snapshot copy url input"}}},ShareDashboardDrawer:{ShareInternally:{container:{"11.3.0":"data-testid share internally drawer container"},lockTimeRangeSwitch:{"11.3.0":"data-testid share internally lock time range switch"},shortenUrlSwitch:{"11.3.0":"data-testid share internally shorten url switch"},copyUrlButton:{"11.3.0":"data-testid share internally copy url button"},SharePanel:{preview:{"11.5.0":"data-testid share panel internally image generation preview"},widthInput:{"11.5.0":"data-testid share panel internally width input"},heightInput:{"11.5.0":"data-testid share panel internally height input"},scaleFactorInput:{"11.5.0":"data-testid share panel internally scale factor input"},generateImageButton:{"11.5.0":"data-testid share panel internally generate image button"},downloadImageButton:{"11.5.0":"data-testid share panel internally download image button"}}},ShareExternally:{container:{"11.3.0":"data-testid share externally drawer container"},publicAlert:{"11.3.0":"data-testid public share alert"},emailSharingAlert:{"11.3.0":"data-testid email share alert"},shareTypeSelect:{"11.3.0":"data-testid share externally share type select"},Creation:{PublicShare:{createButton:{"11.3.0":"data-testid public share dashboard create button"},cancelButton:{"11.3.0":"data-testid public share dashboard cancel button"}},EmailShare:{createButton:{"11.3.0":"data-testid email share dashboard create button"},cancelButton:{"11.3.0":"data-testid email share dashboard cancel button"}},willBePublicCheckbox:{"11.3.0":"data-testid share dashboard will be public checkbox"}},Configuration:{enableTimeRangeSwitch:{"11.3.0":"data-testid share externally enable time range switch"},enableAnnotationsSwitch:{"11.3.0":"data-testid share externally enable annotations switch"},copyUrlButton:{"11.3.0":"data-testid share externally copy url button"},revokeAccessButton:{"11.3.0":"data-testid share externally revoke access button"},toggleAccessButton:{"11.3.0":"data-testid share externally pause or resume access button"}}},ShareSnapshot:{url:{"11.3.0":e=>`/dashboard/snapshot/${e}`},container:{"11.3.0":"data-testid share snapshot drawer container"},publishSnapshot:{"11.3.0":"data-testid share snapshot publish button"},copyUrlButton:{"11.3.0":"data-testid share snapshot copy url button"}}},ExportDashboardDrawer:{ExportAsJson:{container:{"11.3.0":"data-testid export as json drawer container"},codeEditor:{"11.3.0":"data-testid export as json code editor"},exportExternallyToggle:{"11.3.0":"data-testid export as json externally switch"},saveToFileButton:{"11.3.0":"data-testid export as json save to file button"},copyToClipboardButton:{"11.3.0":"data-testid export as json copy to clipboard button"},cancelButton:{"11.3.0":"data-testid export as json cancel button"}}},PublicDashboard:{page:{"9.5.0":"public-dashboard-page"},NotAvailable:{container:{"9.5.0":"public-dashboard-not-available"},title:{"9.5.0":"public-dashboard-title"},pausedDescription:{"9.5.0":"public-dashboard-paused-description"}},footer:{"11.0.0":"public-dashboard-footer"}},PublicDashboardScene:{loadingPage:{"11.0.0":"public-dashboard-scene-loading-page"},page:{"11.0.0":"public-dashboard-scene-page"},controls:{"11.0.0":"public-dashboard-controls"}},RequestViewAccess:{form:{"9.5.0":"request-view-access-form"},recipientInput:{"9.5.0":"request-view-access-recipient-input"},submitButton:{"9.5.0":"request-view-access-submit-button"}},PublicDashboardConfirmAccess:{submitButton:{"10.2.0":"data-testid confirm-access-submit-button"}},Explore:{url:{[n.MIN_GRAFANA_VERSION]:"/explore"},General:{container:{[n.MIN_GRAFANA_VERSION]:"data-testid Explore"},graph:{[n.MIN_GRAFANA_VERSION]:"Explore Graph"},table:{[n.MIN_GRAFANA_VERSION]:"Explore Table"},scrollView:{"9.0.0":"data-testid explorer scroll view"},addFromQueryLibrary:{"11.5.0":"data-testid explore add from query library button"}},QueryHistory:{container:{"11.1.0":"data-testid QueryHistory"}}},SoloPanel:{url:{[n.MIN_GRAFANA_VERSION]:e=>`/d-solo/${e}`}},PluginsList:{page:{[n.MIN_GRAFANA_VERSION]:"Plugins list page"},list:{[n.MIN_GRAFANA_VERSION]:"Plugins list"},listItem:{[n.MIN_GRAFANA_VERSION]:"Plugins list item"},signatureErrorNotice:{"10.3.0":"data-testid Unsigned plugins notice",[n.MIN_GRAFANA_VERSION]:"Unsigned plugins notice"}},PluginPage:{page:{[n.MIN_GRAFANA_VERSION]:"Plugin page"},signatureInfo:{"10.3.0":"data-testid Plugin signature info",[n.MIN_GRAFANA_VERSION]:"Plugin signature info"},disabledInfo:{"10.3.0":"data-testid Plugin disabled info",[n.MIN_GRAFANA_VERSION]:"Plugin disabled info"}},PlaylistForm:{name:{[n.MIN_GRAFANA_VERSION]:"Playlist name"},interval:{[n.MIN_GRAFANA_VERSION]:"Playlist interval"},itemDelete:{"10.2.0":"data-testid playlist-form-delete-item"}},BrowseDashboards:{table:{body:{"10.2.0":"data-testid browse-dashboards-table"},row:{"10.2.0":e=>`data-testid browse dashboards row ${e}`},checkbox:{"10.0.0":e=>`data-testid ${e} checkbox`}},NewFolderForm:{form:{"10.2.0":"data-testid new folder form"},nameInput:{"10.2.0":"data-testid new-folder-name-input"},createButton:{"10.2.0":"data-testid new-folder-create-button"}}},SearchDashboards:{table:{"10.2.0":"Search results table"}},Search:{url:{"9.3.0":"/?search=openn"},FolderView:{url:{"9.3.0":"/?search=open&layout=folders"}}},PublicDashboards:{ListItem:{linkButton:{"9.3.0":"public-dashboard-link-button"},configButton:{"9.3.0":"public-dashboard-configuration-button"},trashcanButton:{"9.3.0":"public-dashboard-remove-button"},pauseSwitch:{"10.1.0":"data-testid public dashboard pause switch"}}},UserListPage:{tabs:{allUsers:{"10.0.0":"data-testid all-users-tab"},orgUsers:{"10.0.0":"data-testid org-users-tab"},anonUserDevices:{"10.2.3":"data-testid anon-user-devices-tab"},publicDashboardsUsers:{"10.0.0":"data-testid public-dashboards-users-tab"},users:{"10.0.0":"data-testid users-tab"}},org:{url:{"10.2.0":"/admin/users","9.5.0":"/org/users"}},admin:{url:{"9.5.0":"/admin/users"}},publicDashboards:{container:{"11.1.0":"data-testid public-dashboards-users-list"}},UserListAdminPage:{container:{"10.0.0":"data-testid user-list-admin-page"}},UsersListPage:{container:{"10.0.0":"data-testid users-list-page"}},UserAnonListPage:{container:{"10.4.0":"data-testid user-anon-list-page"}},UsersListPublicDashboardsPage:{container:{"10.0.0":"data-testid users-list-public-dashboards-page"},DashboardsListModal:{listItem:{"10.0.0":e=>`data-testid dashboards-list-item-${e}`}}}},ProfilePage:{url:{"10.2.0":"/profile"}},Plugin:{url:{[n.MIN_GRAFANA_VERSION]:e=>`/plugins/${e}`}},MigrateToCloud:{url:{"11.2.0":"/admin/migrate-to-cloud"}}};t.versionedPages=a},19631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,r){const a=!(0,n.isNum)(e.lastX),i=o(e);return a?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:r,x:t,y:r}:{node:i,deltaX:t-e.lastX,deltaY:r-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:r}},t.createDraggableData=function(e,t){const r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,r){if(!e.props.bounds)return[t,r];let{bounds:i}=e.props;i="string"==typeof i?i:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(i);const s=o(e);if("string"==typeof i){const{ownerDocument:e}=s,t=e.defaultView;let r;if("parent"===i)r=s.parentNode;else{r=s.getRootNode().querySelector(i)}if(!(r instanceof t.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');const o=r,l=t.getComputedStyle(s),u=t.getComputedStyle(o);i={left:-s.offsetLeft+(0,n.int)(u.paddingLeft)+(0,n.int)(l.marginLeft),top:-s.offsetTop+(0,n.int)(u.paddingTop)+(0,n.int)(l.marginTop),right:(0,a.innerWidth)(o)-(0,a.outerWidth)(s)-s.offsetLeft+(0,n.int)(u.paddingRight)-(0,n.int)(l.marginRight),bottom:(0,a.innerHeight)(o)-(0,a.outerHeight)(s)-s.offsetTop+(0,n.int)(u.paddingBottom)-(0,n.int)(l.marginBottom)}}(0,n.isNum)(i.right)&&(t=Math.min(t,i.right));(0,n.isNum)(i.bottom)&&(r=Math.min(r,i.bottom));(0,n.isNum)(i.left)&&(t=Math.max(t,i.left));(0,n.isNum)(i.top)&&(r=Math.max(r,i.top));return[t,r]},t.getControlPosition=function(e,t,r){const n="number"==typeof t?(0,a.getTouch)(e,t):null;if("number"==typeof t&&!n)return null;const i=o(r),s=r.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,a.offsetXYFromParent)(n||e,s,r.props.scale)},t.snapToGrid=function(e,t,r){const n=Math.round(t/e[0])*e[0],a=Math.round(r/e[1])*e[1];return[n,a]};var n=r(45025),a=r(47762);function o(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},19854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var n=r(44757),a=r(34230),o=r(82792);function i(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=n.identity),e=null!=e?e:i,a.operate(function(r,n){var a,i=!0;r.subscribe(o.createOperatorSubscriber(n,function(r){var o=t(r);!i&&e(a,o)||(i=!1,a=o,n.next(r))}))})}},20073:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var n=r(82792);t.scanInternals=function(e,t,r,a,o){return function(i,s){var l=r,u=t,c=0;i.subscribe(n.createOperatorSubscriber(s,function(t){var r=c++;u=l?e(u,t,r):(l=!0,t),a&&s.next(u)},o&&function(){l&&s.next(u),s.complete()}))}}},20249:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFieldConfig:()=>i,defaultOptions:()=>o,pluginVersion:()=>a});var n=r(33300);const a="12.3.1",o={alignValue:"left",mergeValues:!0,perPage:20,rowHeight:.9,showValue:n.V.Auto},i={fillOpacity:70,lineWidth:0}},20456:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var n=r(34230),a=r(87023),o=r(82792),i=r(83598);t.buffer=function(e){return n.operate(function(t,r){var n=[];return t.subscribe(o.createOperatorSubscriber(r,function(e){return n.push(e)},function(){r.next(n),r.complete()})),i.innerFrom(e).subscribe(o.createOperatorSubscriber(r,function(){var e=n;n=[],r.next(e)},a.noop)),function(){n=null}})}},20468:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var a=r(59705),o=r(34230),i=r(83598),s=r(82792),l=r(87023),u=r(72420);t.bufferToggle=function(e,t){return o.operate(function(r,o){var c=[];i.innerFrom(e).subscribe(s.createOperatorSubscriber(o,function(e){var r=[];c.push(r);var n=new a.Subscription;n.add(i.innerFrom(t(e)).subscribe(s.createOperatorSubscriber(o,function(){u.arrRemove(c,r),o.next(r),n.unsubscribe()},l.noop)))},l.noop)),r.subscribe(s.createOperatorSubscriber(o,function(e){var t,r;try{for(var a=n(c),o=a.next();!o.done;o=a.next()){o.value.push(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},function(){for(;c.length>0;)o.next(c.shift());o.complete()}))})}},20851:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var o=r(86322),i=r(63713),s=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=i.dateTimestampProvider);var a=e.call(this)||this;return a._bufferSize=t,a._windowTime=r,a._timestampProvider=n,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,r),a}return a(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,a=r._buffer,o=r._infiniteTimeWindow,i=r._timestampProvider,s=r._windowTime;n||(a.push(t),!o&&a.push(i.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),a=0;a<n.length&&!e.closed;a+=r?1:2)e.next(n[a]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,a=e._infiniteTimeWindow,o=(a?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!a){for(var i=r.now(),s=0,l=1;l<n.length&&n[l]<=i;l+=2)s=l;s&&n.splice(0,s+1)}},t}(o.Subject);t.ReplaySubject=s},20919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var n=r(23538),a=r(93639);t.concatMapTo=function(e,t){return a.isFunction(t)?n.concatMap(function(){return e},t):n.concatMap(function(){return e})}},21492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var n=r(9958),a=r(62899);t.asyncScheduler=new a.AsyncScheduler(n.AsyncAction),t.async=t.asyncScheduler},21539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var n=r(21492),a=r(24182),o=r(16351);t.throttleTime=function(e,t,r){void 0===t&&(t=n.asyncScheduler);var i=o.timer(e,t);return a.throttle(function(){return i},r)}},21723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var n=r(262),a=r(93639);t.switchMapTo=function(e,t){return a.isFunction(t)?n.switchMap(function(){return e},t):n.switchMap(function(){return e})}},21826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var n=r(59025),a=r(93639),o=r(99210);t.multicast=function(e,t){var r=a.isFunction(e)?e:function(){return e};return a.isFunction(t)?o.connect(t,{connector:r}):function(e){return new n.ConnectableObservable(e,r)}}},22026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var n=r(17046),a=r(31114),o=r(6024),i=r(34230),s=r(82792);t.single=function(e){return i.operate(function(t,r){var i,l=!1,u=!1,c=0;t.subscribe(s.createOperatorSubscriber(r,function(n){u=!0,e&&!e(n,c++,t)||(l&&r.error(new a.SequenceError("Too many matching values")),l=!0,i=n)},function(){l?(r.next(i),r.complete()):r.error(u?new o.NotFoundError("No matching values"):new n.EmptyError)}))})}},22841:(e,t,r)=>{"use strict";t.__esModule=!0,t.cloneElement=function(e,t){t.style&&e.props.style&&(t.style=i(i({},e.props.style),t.style));t.className&&e.props.className&&(t.className=`${e.props.className} ${t.className}`);return a.default.cloneElement(e,t)};var n,a=(n=r(85959))&&n.__esModule?n:{default:n};function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},23108:(e,t,r)=>{e.exports=r(86870)()},23222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var n=r(34230),a=r(82792),o=r(87023),i=r(83598);t.distinct=function(e,t){return n.operate(function(r,n){var s=new Set;r.subscribe(a.createOperatorSubscriber(n,function(t){var r=e?e(t):t;s.has(r)||(s.add(r),n.next(t))})),t&&i.innerFrom(t).subscribe(a.createOperatorSubscriber(n,function(){return s.clear()},o.noop))})}},23231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var n=r(23980),a=r(64881);t.combineLatestAll=function(e){return a.joinAllInternals(n.combineLatest,e)}},23538:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var n=r(76628),a=r(93639);t.concatMap=function(e,t){return a.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}},23980:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var n=r(93697),a=r(75489),o=r(11420),i=r(44757),s=r(46914),l=r(11998),u=r(29232),c=r(82792),d=r(8889);function f(e,t,r){return void 0===r&&(r=i.identity),function(n){p(t,function(){for(var a=e.length,i=new Array(a),s=a,l=a,u=function(a){p(t,function(){var u=o.from(e[a],t),d=!1;u.subscribe(c.createOperatorSubscriber(n,function(e){i[a]=e,d||(d=!0,l--),l||n.next(r(i.slice()))},function(){--s||n.complete()}))},n)},d=0;d<a;d++)u(d)},n)}}function p(e,t,r){e?d.executeSchedule(r,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.popScheduler(e),c=l.popResultSelector(e),d=a.argsArgArrayOrObject(e),p=d.args,h=d.keys;if(0===p.length)return o.from([],r);var m=new n.Observable(f(p,r,h?function(e){return u.createObject(h,e)}:i.identity));return c?m.pipe(s.mapOneOrManyArgs(c)):m},t.combineLatestInit=f},24182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var n=r(34230),a=r(82792),o=r(83598);t.throttle=function(e,t){return n.operate(function(r,n){var i=null!=t?t:{},s=i.leading,l=void 0===s||s,u=i.trailing,c=void 0!==u&&u,d=!1,f=null,p=null,h=!1,m=function(){null==p||p.unsubscribe(),p=null,c&&(b(),h&&n.complete())},v=function(){p=null,h&&n.complete()},g=function(t){return p=o.innerFrom(e(t)).subscribe(a.createOperatorSubscriber(n,m,v))},b=function(){if(d){d=!1;var e=f;f=null,n.next(e),!h&&g(e)}};r.subscribe(a.createOperatorSubscriber(n,function(e){d=!0,f=e,(!p||p.closed)&&(l?b():g(e))},function(){h=!0,(!(c&&d&&p)||p.closed)&&n.complete()}))})}},24431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},25117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var n=r(34230),a=r(82792),o=r(83598),i=r(87023);t.skipUntil=function(e){return n.operate(function(t,r){var n=!1,s=a.createOperatorSubscriber(r,function(){null==s||s.unsubscribe(),n=!0},i.noop);o.innerFrom(e).subscribe(s),t.subscribe(a.createOperatorSubscriber(r,function(e){return n&&r.next(e)}))})}},25755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var n=r(93697),a=r(8889);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.Observable(function(r){a.executeSchedule(r,t,function(){var n=e[Symbol.asyncIterator]();a.executeSchedule(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}},25960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var n=r(34230),a=r(82792);t.takeWhile=function(e,t){return void 0===t&&(t=!1),n.operate(function(r,n){var o=0;r.subscribe(a.createOperatorSubscriber(n,function(r){var a=e(r,o++);(a||t)&&n.next(r),!a&&n.complete()}))})}},26637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var n=r(32403),a=r(34230),o=r(82792);t.materialize=function(){return a.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){t.next(n.Notification.createNext(e))},function(){t.next(n.Notification.createComplete()),t.complete()},function(e){t.next(n.Notification.createError(e)),t.complete()}))})}},27847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(59396))&&n.__esModule?n:{default:n};var o=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};t.default=o},28075:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var n=r(86322),a=r(21492),o=r(59705),i=r(34230),s=r(82792),l=r(72420),u=r(11998),c=r(8889);t.windowTime=function(e){for(var t,r,d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];var p=null!==(t=u.popScheduler(d))&&void 0!==t?t:a.asyncScheduler,h=null!==(r=d[0])&&void 0!==r?r:null,m=d[1]||1/0;return i.operate(function(t,r){var a=[],i=!1,u=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),l.arrRemove(a,e),i&&d()},d=function(){if(a){var t=new o.Subscription;r.add(t);var i=new n.Subject,s={window:i,subs:t,seen:0};a.push(s),r.next(i.asObservable()),c.executeSchedule(t,p,function(){return u(s)},e)}};null!==h&&h>=0?c.executeSchedule(r,p,d,h,!0):i=!0,d();var f=function(e){return a.slice().forEach(e)},v=function(e){f(function(t){var r=t.window;return e(r)}),e(r),r.unsubscribe()};return t.subscribe(s.createOperatorSubscriber(r,function(e){f(function(t){t.window.next(e),m<=++t.seen&&u(t)})},function(){return v(function(e){return e.complete()})},function(e){return v(function(t){return t.error(e)})})),function(){a=null}})}},28602:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var n=r(17046),a=r(39708),o=r(28885),i=r(48926),s=r(55117),l=r(44757);t.last=function(e,t){var r=arguments.length>=2;return function(u){return u.pipe(e?a.filter(function(t,r){return e(t,r,u)}):l.identity,o.takeLast(1),r?s.defaultIfEmpty(t):i.throwIfEmpty(function(){return new n.EmptyError}))}}},28619:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var o=r(34661),i=r(34230);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.operate(function(t,r){o.zip.apply(void 0,a([t],n(e))).subscribe(r)})}},28639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=a,t.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},t.default=void 0,t.getPrefix=n;const r=["Moz","Webkit","O","ms"];function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const t=window.document?.documentElement?.style;if(!t)return"";if(e in t)return"";for(let n=0;n<r.length;n++)if(a(e,r[n])in t)return r[n];return""}function a(e,t){return t?`${t}${function(e){let t="",r=!0;for(let n=0;n<e.length;n++)r?(t+=e[n].toUpperCase(),r=!1):"-"===e[n]?r=!0:t+=e[n];return t}(e)}`:e}t.default=n()},28707:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(56636).__importDefault(r(15798));t.default=function(e){return!e.prototype?n.default(e):e}},28885:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var a=r(51623),o=r(34230),i=r(82792);t.takeLast=function(e){return e<=0?function(){return a.EMPTY}:o.operate(function(t,r){var a=[];t.subscribe(i.createOperatorSubscriber(r,function(t){a.push(t),e<a.length&&a.shift()},function(){var e,t;try{for(var o=n(a),i=o.next();!i.done;i=o.next()){var s=i.value;r.next(s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.complete()},void 0,function(){a=null}))})}},28904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7108),a=r(87781),o=r(18531),i=r(85959),s=r(31269),l=r(52868),u=r(93241),c=r(46410),d=r(9605),f=r(82007),p=r(43308),h=r(46089),m=r(16924),v=r(11824),g=r(74006),b=r(79158),y=r(79089);r(48398);var w=r(36692),S=r(37716),_=r(72247),x=r(93859),O=r(58931),A=r(8779),R=r(91103),E=r(2125),k=r(53113),C=r(76823),I=r(11807),P=r(83023),M=r(20249),T=r(29477),N=r(1785),D=r(58007),F=r(57351);function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var L=j(i),V=j(m),z=j(S);function B(e,t,r){const n={...t};if(r)for(const e of Object.keys(n))r.includes(e)||delete n[e];return a.urlUtil.renderUrl(a.locationUtil.assureBaseUrl(e),n)}function U(e){const t=n.useParams(),r=n.useLocation();return{params:t,isExact:null!==n.matchPath({path:e,caseSensitive:!1,end:!0},r.pathname),path:r.pathname,url:r.pathname}}const W=new Map;const G=L.default.memo(function({model:e,...t}){var r;const n=null!=(r=e.constructor.Component)?r:H,[a,o]=i.useState(0);return i.useEffect(()=>{const t=e.activate();return o(e=>e+1),t},[e]),e.isActive||e.renderBeforeActivation?L.default.createElement(n,{...t,model:e}):null});function H(e){return null}class q extends a.BusEventWithPayload{}q.type="scene-object-state-change";class $ extends a.BusEventWithPayload{}$.type="scene-object-user-action";var K,Q=e=>{throw TypeError(e)},Y=(e,t,r)=>t.has(e)||Q("Cannot "+r);class Z{constructor(e){var t,r,n;t=this,(r=K).has(t)?Q("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),((e,t,r)=>{Y(e,t,"write to private field"),t.set(e,r)})(this,K,e)}resolve(){return Y(e=this,t=K,"read from private field"),r?r.call(e):t.get(e);var e,t,r}}K=new WeakMap;class J{constructor(e){this._isActive=!1,this._activationHandlers=[],this._deactivationHandlers=new Map,this._subs=new s.Subscription,this._refCount=0,this._renderBeforeActivation=!1,e.key||(e.key=l.v4()),this._events=new a.EventBusSrv,this._state=Object.freeze(e),this._setParent(this._state)}get state(){return this._state}get isActive(){return this._isActive}get renderBeforeActivation(){return this._renderBeforeActivation}get parent(){return this._parent}get variableDependency(){return this._variableDependency}get urlSync(){return this._urlSync}get Component(){return G}_setParent(e){ee(e,e=>{e._parent&&e._parent!==this&&console.warn("SceneObject already has a parent set that is different from the new parent. You cannot share the same SceneObject instance in multiple scenes or in multiple different places of the same scene graph. Use SceneObject.clone() to duplicate a SceneObject or store a state key reference and use sceneGraph.findObject to locate it.",e,this),e._parent=this})}clearParent(){this._parent=void 0}subscribeToState(e){return this._events.subscribe(q,t=>{t.payload.changedObject===this&&e(t.payload.newState,t.payload.prevState)})}subscribeToEvent(e,t){return this._events.subscribe(e,t)}setState(e){const t=this._state,r={...this._state,...e};this._state=Object.freeze(r),this._setParent(e),this._handleActivationOfChangedStateProps(t,r),this.publishEvent(new q({prevState:t,newState:r,partialUpdate:e,changedObject:this}),!0)}_handleActivationOfChangedStateProps(e,t){this.isActive&&(e.$behaviors!==t.$behaviors&&this._handleChangedBehaviors(e.$behaviors,t.$behaviors),e.$data!==t.$data&&this._handleChangedStateActivation(e.$data,t.$data),e.$variables!==t.$variables&&this._handleChangedStateActivation(e.$variables,t.$variables),e.$timeRange!==t.$timeRange&&this._handleChangedStateActivation(e.$timeRange,t.$timeRange))}_handleChangedStateActivation(e,t){if(e){const t=this._deactivationHandlers.get(e);t&&(t(),this._deactivationHandlers.delete(e))}t&&this._deactivationHandlers.set(t,t.activate())}_handleChangedBehaviors(e,t){if(e)for(const r of e)if(!t||!t.includes(r)){const e=this._deactivationHandlers.get(r);e&&(e(),this._deactivationHandlers.delete(r))}if(t)for(const r of t)e&&e.includes(r)||this._activateBehavior(r)}publishEvent(e,t){this._events.publish(e),t&&this.parent&&this.parent.publishEvent(e,t)}getRoot(){return this._parent?this._parent.getRoot():this}_internalActivate(){this._isActive=!0;const{$data:e,$variables:t,$timeRange:r,$behaviors:n}=this.state;if(this._activationHandlers.forEach(e=>{const t=e();t&&this._deactivationHandlers.set(t,t)}),r&&!r.isActive&&this._deactivationHandlers.set(r,r.activate()),t&&!t.isActive&&this._deactivationHandlers.set(t,t.activate()),e&&!e.isActive&&this._deactivationHandlers.set(e,e.activate()),n)for(const e of n)this._activateBehavior(e)}_activateBehavior(e){if(e instanceof J)this._deactivationHandlers.set(e,e.activate());else if("function"==typeof e){const t=e(this);t&&this._deactivationHandlers.set(e,t)}}activate(){this.isActive||this._internalActivate(),this._refCount++;let e=!1;return()=>{if(this._refCount--,e){throw new Error("SceneObject cancelation handler returned by activate() called a second time")}e=!0,0===this._refCount&&this._internalDeactivate()}}_internalDeactivate(){this._isActive=!1;for(let e of this._deactivationHandlers.values())e();this._deactivationHandlers.clear(),this._events.removeAllListeners(),this._subs.unsubscribe(),this._subs=new s.Subscription}useState(){return X(this)}forceRender(){this.setState({})}clone(e){return function(e,t){const r=te(e.state,t);return new e.constructor(r)}(this,e)}addActivationHandler(e){this._activationHandlers.push(e)}forEachChild(e){ee(this.state,e)}getRef(){return this._ref||(this._ref=new Z(this)),this._ref}toJSON(){return{type:Object.getPrototypeOf(this).constructor.name,isActive:this.isActive,state:this.state}}}function X(e,t){var r;const[n,a]=i.useState(e.state),o=e.state,s=null!=(r=null==t?void 0:t.shouldActivateOrKeepAlive)&&r;return i.useEffect(()=>{let t;s&&(t=e.activate());const r=e.subscribeToState(e=>{a(e)});return e.state!==o&&a(e.state),()=>{r.unsubscribe(),t&&t()}},[e,s]),e.state}function ee(e,t){for(const r of Object.values(e)){if(r instanceof J){if(!1===t(r))break}if(Array.isArray(r)){let e=!1;for(const n of r)if(n instanceof J){if(!1===t(n)){e=!0;break}}if(e)break}}}function te(e,t){const r={...e};Object.assign(r,t);for(const e in r){if(t&&void 0!==t[e])continue;const n=r[e];if(n instanceof Z)console.warn("Cloning object with SceneObjectRef");else if(n instanceof J)r[e]=n.clone();else if(Array.isArray(n)){const t=[];for(const e of n)e instanceof J?t.push(e.clone()):"object"==typeof e?t.push(u.cloneDeep(e)):t.push(e);r[e]=t}else r[e]="object"==typeof n?u.cloneDeep(n):n}return r}class re extends a.DataSourceApi{constructor(e,t){super({name:"RuntimeDataSource-"+e,uid:t,type:e,id:1,readOnly:!0,jsonData:{},access:"direct",meta:{id:e,name:"RuntimeDataSource-"+e,type:a.PluginType.datasource,info:{author:{name:""},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""},module:"",baseUrl:""}})}testDatasource(){return Promise.resolve({})}}const ne=new Map;function ae({dataSource:e}){if(ne.has(e.uid))throw new Error(`A runtime data source with uid ${e.uid} has already been registered`);ne.set(e.uid,e)}const oe=["from","to","timezone"];class ie{constructor(e){this.index=new Map,this.options={namespace:(null==e?void 0:e.namespace)||"",excludeFromNamespace:(null==e?void 0:e.excludeFromNamespace)||oe}}getOptions(){return this.options}getNamespacedKey(e){return this.options.namespace&&!this.options.excludeFromNamespace.includes(e)?`${this.options.namespace}-${e}`:e}getUniqueKey(e,t){const r=this.getNamespacedKey(e),n=this.index.get(r);if(!n)return this.index.set(r,[t]),r;let a=n.findIndex(e=>e===t);return-1===a&&(!function(e){for(let t=0;t<e.length;t++){se(e[t])&&(e.splice(t,1),t--)}}(n,t.getRoot()),n.push(t),a=n.length-1),a>0?`${r}-${a+1}`:r}clear(){this.index.clear()}}function se(e,t){if(!e.parent)return!1;let r=!1;return e.parent.forEachChild(t=>{if(t===e)return r=!0,!1}),!r||se(e.parent)}function le(e,t){const r=new ie(t),n={},a=e=>{if(e.urlSync){const t=e.urlSync.getUrlState();for(const[a,o]of Object.entries(t))if(null!=o){const t=r.getUniqueKey(a,e);n[t]=o}}e.forEachChild(a)};return a(e),n}function ue(e,t,r,n){n||ce(e,t,r),e.forEachChild(e=>{ce(e,t,r)}),e.forEachChild(e=>ue(e,t,r,!0))}function ce(e,t,r){if(e.urlSync){const n={},a=e.urlSync.getUrlState();for(const o of e.urlSync.getKeys()){const i=r.getUniqueKey(o,e),s=t.getAll(i),l=a[o];de(s,l)||(s.length>0?Array.isArray(l)?n[o]=s:n[o]=s[0]:n[o]=null)}Object.keys(n).length>0&&e.urlSync.updateFromUrl(n)}}function de(e,t){return 0===e.length&&null==t||(Array.isArray(t)||1!==(null==e?void 0:e.length)?0===(null==t?void 0:t.length)&&null===e||u.isEqual(e,t):t===e[0])}function fe(e,t){const r=t.state.$variables;if(!r)return t.parent?fe(e,t.parent):null;const n=r.getByName(e);return n||(t.parent?fe(e,t.parent):null)}function pe(e,t,...r){let n=!1;"undefined"!=typeof window&&(n="true"===localStorage.getItem("grafana.debug.scenes"))}var he,me,ve=e=>{throw TypeError(e)},ge=(e,t,r)=>t.has(e)||ve("Cannot "+r),be=(e,t,r)=>(ge(e,t,"read from private field"),r?r.call(e):t.get(e)),ye=(e,t,r)=>t.has(e)?ve("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);function we(e){return"isQueryController"in e}function Se(e){let t=e;for(;t;){if(t.state.$behaviors)for(const e of t.state.$behaviors)if(we(e))return e;t=t.parent}}he=new WeakMap,me=new WeakMap;class _e extends J{constructor(e){super({data:xe,...e})}getResultsStream(){const e={origin:this,data:this.state.data};return s.of(e)}}const xe={state:c.LoadingState.Done,series:[],timeRange:a.getDefaultTimeRange()};class Oe{constructor(e,t){this._sceneObject=e,this._nextChangeShouldAddHistoryStep=!1,this._keys=t.keys}getKeys(){return"function"==typeof this._keys?this._keys():this._keys}getUrlState(){return this._sceneObject.getUrlState()}updateFromUrl(e){this._sceneObject.updateFromUrl(e)}shouldCreateHistoryStep(e){return this._nextChangeShouldAddHistoryStep}performBrowserHistoryAction(e){this._nextChangeShouldAddHistoryStep=!0,e(),this._nextChangeShouldAddHistoryStep=!1}}function Ae(e,t){let r,n=e;for(;n&&!r;)r=t(n),n=n.parent;return r}const Re=/^\d+[yYmMsSwWhHdD]$/;function Ee(e){if("string"!=typeof e)return null;if(-1!==e.indexOf("now"))return e;if(Re.test(e))return e;if(8===e.length){const t=a.toUtc(e,"YYYYMMDD");if(t.isValid())return t.toISOString()}else if(15===e.length){const t=a.toUtc(e,"YYYYMMDDTHHmmss");if(t.isValid())return t.toISOString()}else if(19===e.length){const t=a.toUtc(e,"YYYY-MM-DD HH:mm:ss");if(t.isValid())return t.toISOString()}else if(24===e.length){return a.toUtc(e).toISOString()}const t=parseInt(e,10);return isNaN(t)?null:a.toUtc(t).toISOString()}function ke(e,t,r,n,o,i){const s=o&&"now"===t,l=Date.now();i&&function(e){e!==Ce&&(Ce=e,a.setWeekStart(e))}(i);const u=(e,t)=>a.dateMath.toDateTime?a.dateMath.toDateTime(e,t):a.dateMath.parse(e,t.roundUp,t.timezone,t.fiscalYearStartMonth);return{to:u(s?"now-"+o:t,{roundUp:!0,timezone:r,fiscalYearStartMonth:n,now:l}),from:u(e,{roundUp:!1,timezone:r,fiscalYearStartMonth:n,now:l}),raw:{from:e,to:t}}}let Ce;function Ie(e,t,r){if(a.isDateTime(e))return e.isValid();if(a.dateMath.isMathString(e))return a.dateMath.isValid(e);return a.dateTimeParse(e,{roundUp:t,timeZone:r}).isValid()}const Pe="refresh",Me="filter_removed",Te="filter_changed",Ne="variable_value_changed",De="groupby_dimensions";class Fe extends J{constructor(e={}){var t;const r=e.from&&Ie(e.from)?e.from:"now-6h",n=e.to&&Ie(e.to)?e.to:"now",i=je(e.timeZone);super({from:r,to:n,timeZone:i,value:ke(r,n,i||a.getTimeZone(),e.fiscalYearStartMonth,e.UNSAFE_nowDelay,e.weekStart),refreshOnActivate:null!=(t=e.refreshOnActivate)?t:{percent:10},...e}),this._urlSync=new Oe(this,{keys:["from","to","timezone","time","time.window"]}),this.onTimeRangeChange=e=>{const t={};if("string"==typeof e.raw.from?t.from=e.raw.from:t.from=e.raw.from.toISOString(),"string"==typeof e.raw.to?t.to=e.raw.to:t.to=e.raw.to.toISOString(),t.value=ke(t.from,t.to,this.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart),t.from!==this.state.from||t.to!==this.state.to){const e=Se(this);null==e||e.startProfile("time_range_change"),this._urlSync.performBrowserHistoryAction(()=>{this.setState(t)})}},this.onTimeZoneChange=e=>{this._urlSync.performBrowserHistoryAction(()=>{var t;const r=null!=(t=je(e))?t:c.defaultTimeZone,n=ke(this.state.from,this.state.to,r,this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart);this.setState({timeZone:r,value:n})})},this.onRefresh=()=>{this.refreshRange(0),this.publishEvent(new o.RefreshEvent,!0)},this.addActivationHandler(this._onActivate.bind(this))}_onActivate(){if(!this.state.timeZone){const e=this.getTimeZoneSource();e!==this&&this._subs.add(e.subscribeToState((e,t)=>{void 0!==e.timeZone&&e.timeZone!==t.timeZone&&this.refreshRange(0)}))}return a.rangeUtil.isRelativeTimeRange(this.state.value.raw)&&this.refreshIfStale(),()=>{this.state.weekStart&&a.setWeekStart(o.config.bootData.user.weekStart)}}refreshIfStale(){var e,t,r,n;let a;void 0!==(null==(t=null==(e=this.state)?void 0:e.refreshOnActivate)?void 0:t.percent)&&(a=this.calculatePercentOfInterval(this.state.refreshOnActivate.percent)),void 0!==(null==(n=null==(r=this.state)?void 0:r.refreshOnActivate)?void 0:n.afterMs)&&(a=Math.min(this.state.refreshOnActivate.afterMs,null!=a?a:1/0)),void 0!==a&&this.refreshRange(a)}getTimeZoneSource(){if(!this.parent||!this.parent.parent)return this;const e=Ae(this.parent.parent,e=>{if(e.state.$timeRange&&e.state.$timeRange.state.timeZone)return e.state.$timeRange});return e||this}refreshRange(e){var t;const r=ke(this.state.from,this.state.to,null!=(t=this.state.timeZone)?t:a.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart);r.to.diff(this.state.value.to,"milliseconds")>=e&&this.setState({value:r})}calculatePercentOfInterval(e){const t=this.state.value.to.diff(this.state.value.from,"milliseconds");return Math.ceil(t/100*e)}getTimeZone(){if(this.state.timeZone&&je(this.state.timeZone))return this.state.timeZone;const e=this.getTimeZoneSource();return e!==this&&je(e.state.timeZone)?e.state.timeZone:a.getTimeZone()}getUrlState(){const e=o.locationService.getSearchObject(),t={from:this.state.from,to:this.state.to,timezone:this.getTimeZone()};return e.time&&e["time.window"]&&(t.time=null,t["time.window"]=null),t}updateFromUrl(e){var t,r,n;const o={};let i=Ee(e.from),s=Ee(e.to);if(e.time&&e["time.window"]){const t=function(e,t){const r=isNaN(Date.parse(e))?parseInt(e,10):Date.parse(e);let n;n=t.match(/^\d+$/)&&parseInt(t,10)?parseInt(t,10):a.rangeUtil.intervalToMs(t);return{from:a.toUtc(r-n/2).toISOString(),to:a.toUtc(r+n/2).toISOString()}}(Array.isArray(e.time)?e.time[0]:e.time,Array.isArray(e["time.window"])?e["time.window"][0]:e["time.window"]);t.from&&Ie(t.from)&&(i=t.from),t.to&&Ie(t.to)&&(s=t.to)}if(i&&Ie(i)&&(o.from=i),s&&Ie(s)&&(o.to=s),"string"==typeof e.timezone&&(o.timeZone=""!==e.timezone?e.timezone:void 0),0!==Object.keys(o).length)return o.value=ke(null!=(t=o.from)?t:this.state.from,null!=(r=o.to)?r:this.state.to,null!=(n=o.timeZone)?n:this.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart),this.setState(o)}}function je(e){if(void 0!==e)return u.isEmpty(e)?o.config.bootData.user.timezone:e===c.defaultTimeZone||a.getZone(e)?e:void pe()}const Le=new _e,Ve=new Fe;const ze=new class extends J{constructor(){super({variables:[]})}getByName(e){}isVariableLoadingOrWaitingToUpdate(e){return!1}};function Be(e){var t;return null!=(t=Ae(e,e=>e.state.$timeRange))?t:Ve}class Ue extends a.BusEventWithPayload{}function We(e){return"object"==typeof e&&"formatter"in e}Ue.type="scene-variable-changed-value";let Ge,He={};function qe(e){const t=He[e];return t||(He[e]=u.property(e))}class $e{constructor(e,t){this.state={name:e,value:t,type:"scopedvar"}}getValue(e){let{value:t}=this.state,r=t.value;return r=e?qe(e)(t.value):t.value,"string"===r||"number"===r||"boolean"===r?r:String(r)}getValueText(){const{value:e}=this.state;return null!=e.text?String(e.text):String(e)}}const Ke="All",Qe="$__all",Ye="$__auto",Ze=/\$(\w+)|\[\[(\w+?)(?::(\w+))?\]\]|\${(\w+)(?:\.([^:^\}]+))?(?::([^\}]+))?}/g,Je="__searchFilter",Xe="__scopes",et=new a.Registry(()=>{const e=[{id:c.VariableFormatID.Lucene,name:"Lucene",description:"Values are lucene escaped and multi-valued variables generate an OR expression",formatter:e=>{if("string"==typeof e)return tt(e);if(Array.isArray(e)){if(0===e.length)return"__empty__";return"("+u.map(e,e=>'"'+tt(e)+'"').join(" OR ")+")"}return tt(`${e}`)}},{id:c.VariableFormatID.Raw,name:"raw",description:d.t("grafana-scenes.variables.format-registry.formats.description.keep-value-as-is","Keep value as is"),formatter:e=>String(e)},{id:c.VariableFormatID.Regex,name:"Regex",description:"Values are regex escaped and multi-valued variables generate a (<value>|<value>) expression",formatter:e=>{if("string"==typeof e)return a.escapeRegex(e);if(Array.isArray(e)){const t=e.map(e=>"string"==typeof e?a.escapeRegex(e):a.escapeRegex(String(e)));return 1===t.length?t[0]:"("+t.join("|")+")"}return a.escapeRegex(`${e}`)}},{id:c.VariableFormatID.Pipe,name:"Pipe",description:d.t("grafana-scenes.variables.format-registry.formats.description.values-are-separated-by-character","Values are separated by | character"),formatter:e=>"string"==typeof e?e:Array.isArray(e)?e.join("|"):`${e}`},{id:c.VariableFormatID.Distributed,name:"Distributed",description:d.t("grafana-scenes.variables.format-registry.formats.description.multiple-values-are-formatted-like-variablevalue","Multiple values are formatted like variable=value"),formatter:(e,t,r)=>"string"==typeof e?e:Array.isArray(e)?(e=u.map(e,(e,t)=>0!==t?r.state.name+"="+e:e),e.join(",")):`${e}`},{id:c.VariableFormatID.CSV,name:"Csv",description:d.t("grafana-scenes.variables.format-registry.formats.description.commaseparated-values","Comma-separated values"),formatter:e=>"string"==typeof e?e:u.isArray(e)?e.join(","):String(e)},{id:c.VariableFormatID.HTML,name:"HTML",description:d.t("grafana-scenes.variables.format-registry.formats.description.html-escaping-of-values","HTML escaping of values"),formatter:e=>"string"==typeof e?a.textUtil.escapeHtml(e):u.isArray(e)?a.textUtil.escapeHtml(e.join(", ")):a.textUtil.escapeHtml(String(e))},{id:c.VariableFormatID.JSON,name:"JSON",description:d.t("grafana-scenes.variables.format-registry.formats.description.json-stringify-value","JSON stringify value"),formatter:e=>"string"==typeof e?e:JSON.stringify(e)},{id:c.VariableFormatID.PercentEncode,name:"Percent encode",description:d.t("grafana-scenes.variables.format-registry.formats.description.useful-for-url-escaping-values","Useful for URL escaping values"),formatter:e=>u.isArray(e)?rt("{"+e.join(",")+"}"):rt(e)},{id:c.VariableFormatID.SingleQuote,name:"Single quote",description:d.t("grafana-scenes.variables.format-registry.formats.description.single-quoted-values","Single quoted values"),formatter:e=>{const t=new RegExp("'","g");if(u.isArray(e))return u.map(e,e=>`'${u.replace(e,t,"\\'")}'`).join(",");let r="string"==typeof e?e:String(e);return`'${u.replace(r,t,"\\'")}'`}},{id:c.VariableFormatID.DoubleQuote,name:"Double quote",description:d.t("grafana-scenes.variables.format-registry.formats.description.double-quoted-values","Double quoted values"),formatter:e=>{const t=new RegExp('"',"g");if(u.isArray(e))return u.map(e,e=>`"${u.replace(e,t,'\\"')}"`).join(",");let r="string"==typeof e?e:String(e);return`"${u.replace(r,t,'\\"')}"`}},{id:c.VariableFormatID.SQLString,name:"SQL string",description:"SQL string quoting and commas for use in IN statements and other scenarios",formatter:lt},{id:"join",name:"Join",description:d.t("grafana-scenes.variables.format-registry.formats.description.join-values-with-a-comma","Join values with a comma"),formatter:(e,t)=>{var r;if(u.isArray(e)){const n=null!=(r=t[0])?r:",";return e.join(n)}return String(e)}},{id:c.VariableFormatID.Date,name:"Date",description:d.t("grafana-scenes.variables.format-registry.formats.description.format-date-in-different-ways","Format date in different ways"),formatter:(e,t)=>{var r;let n=NaN;if("number"==typeof e?n=e:"string"==typeof e&&(n=parseInt(e,10)),isNaN(n))return"NaN";const o=null!=(r=t[0])?r:"iso";switch(o){case"ms":return String(e);case"seconds":return`${Math.round(n/1e3)}`;case"iso":return a.dateTime(n).toISOString();default:return(t||[]).length>1?a.dateTime(n).format(t.join(":")):a.dateTime(n).format(o)}}},{id:c.VariableFormatID.Glob,name:"Glob",description:d.t("grafana-scenes.variables.format-registry.formats.description.format-multivalued-variables-using-syntax-example","Format multi-valued variables using glob syntax, example {value1,value2}"),formatter:e=>u.isArray(e)&&e.length>1?"{"+e.join(",")+"}":String(e)},{id:c.VariableFormatID.Text,name:"Text",description:"Format variables in their text representation. Example in multi-variable scenario A + B + C.",formatter:(e,t,r,n)=>r.getValueText?r.getValueText(n):String(e)},{id:c.VariableFormatID.QueryParam,name:"Query parameter",description:"Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.",formatter:(e,t,r,n)=>{if(r.urlSync&&!n){const e=r.urlSync.getUrlState();return a.urlUtil.toUrlParams(e)}return Array.isArray(e)?e.map(e=>ot(r.state.name,e)).join("&"):ot(r.state.name,e)}},{id:"customqueryparam",name:"Custom query parameter",description:"Format variables as URL parameters with custom name and value prefix. Example in multi-variable scenario A + B + C => p-foo=x-A&p-foo=x-B&p-foo=x-C.",formatter:(e,t,r)=>{const n=rt(t[0]||r.state.name),a=rt(t[1]||"");return Array.isArray(e)?e.map(e=>it(n,e,a)).join("&"):it(n,e,a)}},{id:c.VariableFormatID.UriEncode,name:"Percent encode as URI",description:d.t("grafana-scenes.variables.format-registry.formats.description.useful-escaping-values-taking-syntax-characters","Useful for URL escaping values, taking into URI syntax characters"),formatter:e=>u.isArray(e)?nt("{"+e.join(",")+"}"):nt(e)}];return e});function tt(e){return!1===isNaN(+e)?e:e.replace(/([\!\*\+\-\=<>\s\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g,"\\$1")}function rt(e){return"object"==typeof e&&(e=String(e)),at(encodeURIComponent(e))}const nt=e=>at(encodeURI(String(e))),at=e=>e.replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase());function ot(e,t){return`var-${e}=${rt(t)}`}function it(e,t,r=""){return`${e}=${r}${rt(t)}`}const st={"'":"''",'"':'\\"'};function lt(e){const t=new RegExp("'|\"","g");if(u.isArray(e))return u.map(e,e=>`'${u.replace(e,t,e=>{var t;return null!=(t=st[e])?t:""})}'`).join(",");let r="string"==typeof e?e:String(e);return`'${u.replace(r,t,e=>{var t;return null!=(t=st[e])?t:""})}'`}class ut{constructor(e){this._value=e}formatter(){return this._value}}class ct{constructor(e,t){this.state={name:e,type:"time_macro"},this._sceneObject=t}getValue(){const e=Be(this._sceneObject);return"__from"===this.state.name?e.state.value.from.valueOf():e.state.value.to.valueOf()}getValueText(){const e=Be(this._sceneObject);return"__from"===this.state.name?a.dateTimeFormat(e.state.value.from,{timeZone:e.getTimeZone()}):a.dateTimeFormat(e.state.value.to,{timeZone:e.getTimeZone()})}}class dt{constructor(e,t,r){this.state={name:e,type:"time_macro",match:r},this._sceneObject=t}getValue(){var e;const t=ao(this._sceneObject);if(t){const r=null==(e=t.state.data)?void 0:e.request;return r?"__interval_ms"===this.state.name?r.intervalMs:r.interval:this.state.match}return this.state.match}}function ft(e,t){e.setState(t)}function pt(){return o.useLocationService?o.useLocationService():o.locationService}function ht(e){let t=e;do{if("repeatSourceKey"in t.state&&t.state.repeatSourceKey)return!0;t=t.parent}while(t);return!1}const mt=class e extends J{constructor(){super(...arguments),this._urlSync=new gt(this)}validateAndUpdate(){return this.getValueOptions({}).pipe(s.map(e=>(this.updateValueGivenNewOptions(e),{})))}onCancel(){this.setStateHelper({loading:!1});const e=this.parent;null==e||e.cancel(this)}updateValueGivenNewOptions(e){const{value:t,text:r,options:n}=this.state,a=this.getStateUpdateGivenNewOptions(e,t,r);this.interceptStateUpdateAfterValidation(a),this.setStateHelper(a),(a.value!==t||a.text!==r||this.hasAllValue()&&!u.isEqual(e,n))&&this.publishEvent(new Ue(this),!0)}getStateUpdateGivenNewOptions(e,t,r){const n={options:e,loading:!1,value:t,text:r};if(0===e.length)return this.state.defaultToAll||this.state.includeAll?(n.value=Qe,n.text=Ke):this.state.isMulti?(n.value=[],n.text=[]):(n.value="",n.text=""),n;if(this.hasAllValue())return this.state.includeAll?n.text=Ke:(n.value=e[0].value,n.text=e[0].label,this.state.isMulti&&(n.value=[n.value],n.text=[n.text])),n;if(this.state.isMulti){const a=(Array.isArray(t)?t:[t]).filter(t=>e.find(e=>e.value===t)),o=a.map(t=>e.find(e=>e.value===t).label);if(0===a.length){const t=this.getDefaultMultiState(e);n.value=t.value,n.text=t.text}else u.isEqual(a,t)||(n.value=a),u.isEqual(o,r)||(n.text=o);return n}let a=function(e,t,r){let n;for(const a of r){if(a.value===e)return a;a.label===t&&(n=a)}return n}(t,r,e);if(a)n.text=a.label,n.value=a.value;else{const t=this.getDefaultSingleState(e);n.value=t.value,n.text=t.label}return n}interceptStateUpdateAfterValidation(e){const t=e.value===Qe&&this.state.text===Ke;this.skipNextValidation&&e.value!==this.state.value&&e.text!==this.state.text&&!t&&(e.value=this.state.value,e.text=this.state.text),this.skipNextValidation=!1}getValue(e){let t=this.state.value;if(this.hasAllValue()){if(this.state.allValue)return new bt(this.state.allValue,this);t=this.state.options.map(e=>e.value)}return null!=e?this.getFieldAtPath(t,e):t}getValueText(e){if(this.hasAllValue())return Ke;const t=null!=e?this.getFieldAtPath(this.state.value,e,!0):this.state.text;return Array.isArray(t)?t.join(" + "):String(t)}getFieldAtPath(e,t,r=!1){const n=this.getFieldAccessor(t);if(Array.isArray(e)){const a=parseInt(t,10);if(!isNaN(a)&&a>=0&&a<e.length){const t=e[a];if(!r)return t;const n=this.state.options.find(e=>e.value===t);return n?n.label:String(t)}return e.map(e=>{const t=this.state.options.find(t=>t.value===e);return t?n(t.properties):e})}const a=this.state.options.find(t=>t.value===e);return a?n(a.properties):r?this.state.text:e}getFieldAccessor(t){const r=e.fieldAccessorCache[t];return r||(e.fieldAccessorCache[t]=u.property(t))}hasAllValue(){const e=this.state.value;return e===Qe||Array.isArray(e)&&e[0]===Qe}getDefaultMultiState(e){return this.state.defaultToAll?{value:[Qe],text:[Ke]}:e.length>0?{value:[e[0].value],text:[e[0].label],properties:[e[0].properties]}:{value:[],text:[]}}getDefaultSingleState(e){return this.state.defaultToAll?{value:Qe,label:Ke}:e.length>0?{value:e[0].value,label:e[0].label,properties:e[0].properties}:{value:"",label:""}}changeValueTo(e,t,r=!1){var n,a;if(e===this.state.value&&t===this.state.text)return;if(t||(t=Array.isArray(e)?e.map(e=>this.findLabelTextForValue(e)):this.findLabelTextForValue(e)),Array.isArray(e)){if(0===e.length){const r=this.getDefaultMultiState(this.state.options);e=r.value,t=r.text}e[e.length-1]===Qe?(e=[Qe],t=[Ke]):e[0]===Qe&&e.length>1&&(e.shift(),Array.isArray(t)&&t.shift())}if(u.isEqual(e,this.state.value)&&u.isEqual(t,this.state.text))return;const o=()=>this.setStateHelper({value:e,text:t,loading:!1});if(r){const e=Se(this);null==e||e.startProfile(Ne),null==(a=(n=this._urlSync).performBrowserHistoryAction)||a.call(n,o)}else o();this.publishEvent(new Ue(this),!0)}findLabelTextForValue(e){if(e===Qe)return Ke;const t=this.state.options.find(t=>t.value===e);if(t)return t.label;const r=this.state.options.find(t=>t.label===e);return r?r.label:e}setStateHelper(e){ft(this,e)}getOptionsForSelect(e=!0){let t=this.state.options;if(this.state.includeAll&&(t=[{value:Qe,label:Ke},...t]),e&&!Array.isArray(this.state.value)){t.find(e=>e.value===this.state.value)||(t=[{value:this.state.value,label:String(this.state.text)},...t])}return t}refreshOptions(){this.getValueOptions({}).subscribe(e=>{this.updateValueGivenNewOptions(e)})}};mt.fieldAccessorCache={};let vt=mt;class gt{constructor(e){this._sceneObject=e,this._nextChangeShouldAddHistoryStep=!1}getKey(){return`var-${this._sceneObject.state.name}`}getKeys(){return this._sceneObject.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){if(this._sceneObject.state.skipUrlSync)return{};let e=null,t=this._sceneObject.state.value;return e=Array.isArray(t)&&t.length>1?t.map(String):this._sceneObject.state.isMulti?[String(t)]:String(t),{[this.getKey()]:e}}updateFromUrl(e){let t=e[this.getKey()];null!=t&&(this._sceneObject.state.includeAll&&(t=function(e){if(u.isArray(e)&&e[0]===Ke)return[Qe];if(e===Ke)return Qe;return e}(t)),this._sceneObject.state.allValue&&this._sceneObject.state.allValue===t&&(t=Qe),this._sceneObject.isActive||(this._sceneObject.skipNextValidation=!0),this._sceneObject.changeValueTo(t))}performBrowserHistoryAction(e){this._nextChangeShouldAddHistoryStep=!0,e(),this._nextChangeShouldAddHistoryStep=!1}shouldCreateHistoryStep(e){return this._nextChangeShouldAddHistoryStep}}class bt{constructor(e,t){this._value=e,this._variable=t}formatter(e){return e===c.VariableFormatID.Text?Ke:e===c.VariableFormatID.PercentEncode?et.get(c.VariableFormatID.PercentEncode).formatter(this._value,[],this._variable):e===c.VariableFormatID.QueryParam?et.get(c.VariableFormatID.QueryParam).formatter(Ke,[],this._variable):this._value}}function yt(e,t={}){if(e.state.$variables)for(const r of e.state.$variables.state.variables)r.state.skipUrlSync||t[r.state.name]||(t[r.state.name]=r);return e.parent&&yt(e.parent,t),t}function wt(e,t,r){return new Proxy({},{get:(n,o)=>"name"===o?e.name:"displayName"===o?a.getFieldDisplayName(e,t,r):"labels"===o||"formattedLabels"===o?e.labels?{...e.labels,__values:Object.values(e.labels).sort().join(", "),toString:()=>a.formatLabels(e.labels,"",!0)}:"":void 0})}const St=a.getDisplayProcessor();class _t{constructor(e){this._urlQueryParams=e}formatter(e){if(!e)return this._urlQueryParams;const t=e.split(":");if("exclude"===t[0]&&t.length>1){const e=new URLSearchParams(this._urlQueryParams);for(const r of t[1].split(","))e.delete(r);return`?${e}`}if("include"===t[0]&&t.length>1){const e=new URLSearchParams(this._urlQueryParams),r=t[1].split(",");for(const t of e.keys())r.includes(t)||e.delete(t);return`?${e}`}return this._urlQueryParams}}const xt=new Map([[a.DataLinkBuiltInVars.includeVars,class{constructor(e,t){this.state={name:e,type:"url_variable"},this._sceneObject=t}getValue(){const e=yt(this._sceneObject),t=et.get(c.VariableFormatID.QueryParam),r=[];for(const n of Object.keys(e)){const a=e[n];if(a instanceof vt&&a.hasAllValue()&&!a.state.allValue){r.push(t.formatter(Qe,[],a));continue}const o=a.getValue();o&&(We(o)?r.push(o.formatter(c.VariableFormatID.QueryParam)):r.push(t.formatter(o,[],a)))}return new ut(r.join("&"))}getValueText(){return""}}],[a.DataLinkBuiltInVars.keepTime,class{constructor(e,t){this.state={name:e,type:"url_variable"},this._sceneObject=t}getValue(){var e;const t=null==(e=Be(this._sceneObject).urlSync)?void 0:e.getUrlState();return new ut(a.urlUtil.toUrlParams(t))}getValueText(){return""}}],["__value",class{constructor(e,t,r,n){this._match=r,this._scopedVars=n,this.state={name:e,type:"__value"}}getValue(e){var t,r;const n=null==(t=this._scopedVars)?void 0:t.__dataContext;if(!n)return this._match;const{frame:o,rowIndex:i,field:s,calculatedValue:l}=n.value;if(l)switch(e){case"numeric":case"raw":return l.numeric;case"time":return"";default:return a.formattedValueToString(l)}if(null==i)return this._match;if("time"===e){const e=o.fields.find(e=>e.type===a.FieldType.time);return e?e.values.get(i):void 0}if(!s)return this._match;const u=s.values.get(i);if("raw"===e)return u;const c=(null!=(r=s.display)?r:St)(u);return"numeric"===e?c.numeric:a.formattedValueToString(c)}getValueText(){return""}}],["__data",class{constructor(e,t,r,n){this._match=r,this._scopedVars=n,this.state={name:e,type:"__data"}}getValue(e){var t,r;const n=null==(t=this._scopedVars)?void 0:t.__dataContext;if(!n||!e)return this._match;const{frame:o,rowIndex:i}=n.value;if(void 0===i||void 0===e)return this._match;const s={name:o.name,refId:o.refId,fields:a.getFieldDisplayValuesProxy({frame:o,rowIndex:i})};return null!=(r=qe(e)(s))?r:""}getValueText(){return""}}],["__series",class{constructor(e,t,r,n){this._match=r,this._scopedVars=n,this.state={name:e,type:"__series"}}getValue(e){var t;const r=null==(t=this._scopedVars)?void 0:t.__dataContext;if(!r||!e)return this._match;if("name"!==e)return this._match;const{frame:n,frameIndex:o}=r.value;return a.getFrameDisplayName(n,o)}getValueText(){return""}}],["__field",class{constructor(e,t,r,n){this._match=r,this._scopedVars=n,this.state={name:e,type:"__field"}}getValue(e){var t,r;const n=null==(t=this._scopedVars)?void 0:t.__dataContext;if(!n||!e)return this._match;if(void 0===e||""===e)return this._match;const{frame:a,field:o,data:i}=n.value,s=wt(o,a,i);return null!=(r=qe(e)(s))?r:""}getValueText(){return""}}],["__url",class{constructor(e,t){this.state={name:e,type:"url_macro"}}getValue(e){var t;const r=o.locationService.getLocation(),n=null!=(t=o.config.appSubUrl)?t:"";switch(null!=e?e:""){case"params":return new _t(r.search);case"path":return n+r.pathname;default:return n+r.pathname+r.search}}getValueText(){return""}}],["__from",ct],["__to",ct],["__timezone",class{constructor(e,t){this.state={name:e,type:"time_macro"},this._sceneObject=t}getValue(){const e=Be(this._sceneObject).getTimeZone();return"browser"===e?Intl.DateTimeFormat().resolvedOptions().timeZone:e}getValueText(){return this.getValue()}}],["__user",class{constructor(e,t){this.state={name:e,type:"user_macro"}}getValue(e){const t=o.config.bootData.user;switch(e){case"login":return t.login;case"email":return t.email;default:return String(t.id)}}getValueText(){return""}}],["__org",class{constructor(e,t){this.state={name:e,type:"org_macro"}}getValue(e){const t=o.config.bootData.user;return"name"===e?t.orgName:String(t.orgId)}getValueText(){return""}}],["__interval",dt],["__interval_ms",dt]]);function Ot(e,t,r,n,a){return t&&"string"==typeof t?(Ze.lastIndex=0,t.replace(Ze,(t,o,i,s,l,u,d)=>{const f=o||i||l,p=s||d||n,h=function(e,t,r,n){if(r&&r.hasOwnProperty(e)){const t=r[e];if(t)return function(e,t){return Ge?(Ge.state.name=e,Ge.state.value=t):Ge=new $e(e,t),Ge}(e,t)}const a=fe(e,n);if(a)return a;const o=xt.get(e);if(o)return new o(e,n,t,r);return null}(f,t,r,e);if(!h)return a&&a.push({match:t,variableName:f,fieldPath:u,format:p,value:t,found:!1}),t;const m=function(e,t,r,n,a){if(null==r)return"";if(We(r))return Ot(e,r.formatter(n));Array.isArray(r)||"object"!=typeof r||(r=`${r}`);if("function"==typeof n)return n(r,{name:t.state.name,type:t.state.type,multi:t.state.isMulti,includeAll:t.state.includeAll});let o=[];n?(o=n.split(":"),o.length>1?(n=o[0],o=o.slice(1)):o=[]):n=c.VariableFormatID.Glob;let i=et.getIfExists(n);i||(console.error(`Variable format ${n} not found. Using glob format as fallback.`),i=et.get(c.VariableFormatID.Glob));return i.formatter(r,o,t,a)}(e,h,h.getValue(u),p,u);return a&&a.push({match:t,variableName:f,fieldPath:u,format:p,value:m,found:m!==t}),m})):null!=t?t:""}function At(e){return void 0!==e.useState}function Rt(e){return"enrichDataRequest"in e}function Et(e){return"enrichFiltersRequest"in e}function kt(e){return"isDataLayer"in e}function Ct(e="op"){if("undefined"!=typeof crypto&&crypto.randomUUID){return`${e}-${crypto.randomUUID()}`}return`${e}-${Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}`}const It=class e{constructor(){this.observers=[]}static getInstance(){return e.instance||(e.instance=new e),e.instance}addObserver(e){return this.observers.push(e),()=>{const t=this.observers.indexOf(e);t>-1&&this.observers.splice(t,1)}}clearObservers(){this.observers=[]}getObserverCount(){return this.observers.length}notifyObservers(e,t,r){this.observers.forEach(n=>{try{const r=n[e];null==r||r(t)}catch(e){console.warn(`Error in ${r} observer:`,e)}})}notifyDashboardInteractionStart(e){this.notifyObservers("onDashboardInteractionStart",e,"dashboard interaction start")}notifyDashboardInteractionMilestone(e){this.notifyObservers("onDashboardInteractionMilestone",e,"dashboard interaction milestone")}notifyDashboardInteractionComplete(e){this.notifyObservers("onDashboardInteractionComplete",e,"dashboard interaction complete")}notifyPanelOperationStart(e){this.notifyObservers("onPanelOperationStart",e,"panel operation start")}notifyPanelOperationComplete(e){this.notifyObservers("onPanelOperationComplete",e,"panel operation complete")}notifyQueryStart(e){this.notifyObservers("onQueryStart",e,"query start")}notifyQueryComplete(e){this.notifyObservers("onQueryComplete",e,"query complete")}};It.instance=null;let Pt=It;function Mt(){return Pt.getInstance()}function Tt(e,t){return r=>{const n=uo.getQueryController(e.origin);return n?new s.Observable(a=>{var o;e.cancel||(e.cancel=()=>a.complete());const i=(null==(o=e.request)?void 0:o.requestId)||`${e.type}-${Math.floor(performance.now()).toString(36)}`,s=performance.now();let l=null;if(t)l=t.onQueryStarted(s,e,i);else{const t=Ct("query");Mt().notifyQueryStart({operationId:t,queryId:i,queryType:e.type,origin:e.origin.constructor.name,timestamp:s}),l=(r,n)=>{Mt().notifyQueryComplete({operationId:t,queryId:i,queryType:e.type,origin:e.origin.constructor.name,timestamp:r,duration:r-s,error:n?(null==n?void 0:n.message)||String(n)||"Unknown error":void 0})}}n.queryStarted(e);let u=!1;const d=r.subscribe({next:t=>{u||t.state===c.LoadingState.Loading||(u=!0,n.queryCompleted(e),null==l||l(performance.now())),a.next(t)},error:t=>{u||(u=!0,n.queryCompleted(e),null==l||l(performance.now(),t)),a.error(t)},complete:()=>{a.complete()}});return()=>{d.unsubscribe(),u||(n.queryCompleted(e),null==l||l(performance.now()))}}):r}}function Nt(e){return new s.Observable(t=>{t.next({state:c.LoadingState.Loading});s.from(e).pipe(s.map(()=>({state:c.LoadingState.Done})),s.catchError(()=>(t.next({state:c.LoadingState.Error}),[]))).subscribe({next:e=>t.next(e),complete:()=>t.complete()})})}async function Dt(e,t){var r;if(null==e?void 0:e.uid){const t=ne.get(e.uid);if(t)return t}if(e&&e.query)return e;const n=o.getDataSourceSrv().get(e,t);if(t.__sceneObject&&t.__sceneObject.value.valueOf()){const a=uo.getQueryController(t.__sceneObject.value.valueOf());a&&a.state.enableProfiling&&Nt(n).pipe(Tt({type:`getDataSource/${null!=(r=null==e?void 0:e.type)?r:"unknown"}`,origin:t.__sceneObject.value.valueOf()})).subscribe(()=>{})}return await n}class Ft{constructor(){this._values=new Map}recordCurrentDependencyValuesForSceneObject(e){if(this.clearValues(),e.variableDependency)for(const t of e.variableDependency.getNames()){const r=uo.lookupVariable(t,e);r&&this._values.set(r.state.name,r.getValue())}}cloneAndRecordCurrentValuesForSceneObject(e){const t=new Ft;return t.recordCurrentDependencyValuesForSceneObject(e),t}clearValues(){this._values.clear()}hasValues(){return!!this._values}recordCurrentValue(e){this._values.set(e.state.name,e.getValue())}hasRecordedValue(e){return this._values.has(e.state.name)}hasValueChanged(e){if(this._values.has(e.state.name)){if(!xa(this._values.get(e.state.name),e.getValue()))return!0}return!1}hasDependenciesChanged(e){if(!this._values)return!1;if(!e.variableDependency)return!1;for(const t of e.variableDependency.getNames()){const r=uo.lookupVariable(t,e);if(!r)continue;const n=r.state.name;if(r&&this._values.has(n)){if(!xa(this._values.get(n),r.getValue()))return!0}}return!1}}function jt(e){return"object"==typeof e&&"getExtraQueries"in e}const Lt=(e,t)=>s.of(t),Vt=0;function zt(e){const t=e.getRoot();return Rt(t)?t.enrichDataRequest(e):null}const Bt=new Set;function Ut(e){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(e)}function Wt(e){var t=function(e,t){if("object"!=Ut(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Ut(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ut(t)?t:t+""}function Gt(e,t,r){return(t=Wt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qt.apply(null,arguments)}var $t=function(){},Kt={get passive(){return!0}},Qt="undefined"!=typeof window?window:{};Qt.addEventListener&&Qt.removeEventListener&&(Qt.addEventListener("p",$t,Kt),Qt.removeEventListener("p",$t,!1));var Yt,Zt,Jt,Xt=function(e){var t=e.children,r=e.innerRef,n=e.innerProps;return y.jsx("div",qt({},function(e,t,r){var n=e.cx,a=e.getStyles,o=e.getClassNames,i=e.className;return{css:a(t,e),className:n(null!=r?r:{},o(t,e),i)}}(e,"menu",{menu:!0}),{ref:r},n),t)};y.keyframes(Yt||(Zt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Jt||(Jt=Zt.slice(0)),Yt=Object.freeze(Object.defineProperties(Zt,{raw:{value:Object.freeze(Jt)}}))));(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(r),!0).forEach(function(t){Gt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ht(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}})({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},{gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0});var er={Menu:Xt};const tr=/[^ -~]/m,rr=/^[\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]+$/m,nr=new V.default({intraMode:1});function ar(e,t,r){let n=[];if(""===r)n=e;else if(tr.test(r)||rr.test(r)||r.length>25||nr.split(r).length>5)for(let a=0;a<t.length;a++){t[a].includes(r)&&n.push(e[a])}else{const[a,o,i]=nr.search(t,r,5,1e4);(null==a?void 0:a.length)&&(n=o&&i?i.map(t=>e[o.idx[t]]):a.map(t=>e[t]))}return n}function or(e,t=!1){let r=e;t&&(r=[{value:Qe,label:Ke},...r]);const n=r.map(e=>e.label);return e=>ar(r,n,e)}const ir=()=>!0,sr=e=>"$__all"!==e.value,lr=(e,t)=>e.length===t.filter(sr).length?f.ToggleAllState.allSelected:0===e.length||1===e.length&&e[0]&&"$__all"===e[0].value?f.ToggleAllState.noneSelected:f.ToggleAllState.indeterminate;function ur({model:e,state:t}){const{value:r,text:n,key:a,options:o,includeAll:s,isReadOnly:l,allowCustomValue:u=!0}=t,[c,h]=i.useState(""),[m,v]=i.useState(!1),g=function(e,t){return{value:e,label:null!=t?t:String(e)}}(r,String(n)),b=uo.getQueryController(e),y=i.useMemo(()=>or(o,s),[o,s])(c);return L.default.createElement(f.Select,{id:a,isValidNewOption:e=>e.trim().length>0,placeholder:d.t("grafana-scenes.variables.variable-value-select.placeholder-select-value","Select value"),width:"auto",disabled:l,value:g,inputValue:c,allowCustomValue:u,virtualized:!0,filterOption:ir,tabSelectsValue:!1,onInputChange:(t,{action:r})=>"input-change"===r?(h(t),e.onSearchChange&&e.onSearchChange(t),t):t,onOpenMenu:()=>{m&&h(String(n))},onCloseMenu:()=>{h("")},options:y,"data-testid":p.selectors.pages.Dashboard.SubMenu.submenuItemValueDropDownValueLinkTexts(`${r}`),onChange:t=>{e.changeValueTo(t.value,t.label,!0),null==b||b.startProfile(Ne),m!==t.__isNew__&&v(t.__isNew__)}})}function cr({model:e,state:t}){const{value:r,options:n,key:a,maxVisibleValues:o,noValueOnClear:s,includeAll:l,isReadOnly:c,allowCustomValue:d=!0}=t,h=i.useMemo(()=>u.isArray(r)?r:[r],[r]),[m,v]=i.useState(h),[g,b]=i.useState(""),y=i.useMemo(()=>or(n,l),[n,l]);i.useEffect(()=>{v(h)},[h]);const w=n.length>0?"Select value":"",S=y(g);return L.default.createElement(f.MultiSelect,{id:a,placeholder:w,width:"auto",inputValue:g,disabled:c,value:m,noMultiValueWrap:!0,maxVisibleValues:null!=o?o:5,tabSelectsValue:!1,virtualized:!0,allowCustomValue:d,toggleAllOptions:{enabled:!0,optionsFilter:sr,determineToggleAllState:lr},options:S,closeMenuOnSelect:!1,components:{Option:dr},isClearable:!0,hideSelectedOptions:!1,onInputChange:(t,{action:r})=>"input-change"===r?(b(t),e.onSearchChange&&e.onSearchChange(t),t):"input-blur"===r?(b(""),""):g,onBlur:()=>{e.changeValueTo(m,void 0,!0)},filterOption:ir,"data-testid":p.selectors.pages.Dashboard.SubMenu.submenuItemValueDropDownValueLinkTexts(`${m}`),onChange:(t,r)=>{"clear"===r.action&&s&&e.changeValueTo([],void 0,!0),v(t.map(e=>e.value))}})}const dr=({children:e,data:t,innerProps:r,innerRef:n,isFocused:a,isSelected:o,indeterminate:i,renderOptionLabel:s})=>{var l;const{onMouseMove:u,onMouseOver:c,...d}=r,m=f.useTheme2(),v=f.getSelectStyles(m),g=f.useStyles2(fr);return L.default.createElement("div",{ref:n,className:h.cx(v.option,a&&v.optionFocused),...d,"data-testid":"data-testid Select option",title:t.title},L.default.createElement("div",{className:g.checkbox},L.default.createElement(f.Checkbox,{indeterminate:i,value:o})),L.default.createElement("div",{className:v.optionBody,"data-testid":p.selectors.pages.Dashboard.SubMenu.submenuItemValueDropDownOptionTexts(null!=(l=t.label)?l:String(t.value))},L.default.createElement("span",null,e)))};dr.displayName="SelectMenuOptions";const fr=e=>({checkbox:h.css({marginRight:e.spacing(2)})});function pr({model:e}){const t=e.useState();return t.isMulti?L.default.createElement(cr,{model:e,state:t}):L.default.createElement(ur,{model:e,state:t})}class hr{constructor(e){this._sceneObject=e,this._nextChangeShouldAddHistoryStep=!1}getRestorableKey(){return`restorable-var-${this._sceneObject.state.name}`}getKey(){return`var-${this._sceneObject.state.name}`}getKeys(){return this._sceneObject.state.skipUrlSync?[]:[this.getKey(),this.getRestorableKey()]}getUrlState(){return this._sceneObject.state.skipUrlSync?{}:{[this.getKey()]:this._sceneObject.state.defaultValue&&!this._sceneObject.state.restorable?[""]:mr(this._sceneObject.state.value,this._sceneObject.state.text),[this.getRestorableKey()]:this._sceneObject.state.defaultValue?this._sceneObject.state.restorable?"true":"false":null}}updateFromUrl(e){let t=e[this.getKey()],r=e[this.getRestorableKey()];if(null!=t){this._sceneObject.isActive||(this._sceneObject.skipNextValidation=!0);const{values:e,texts:a}=(n=t,(n=Array.isArray(n)?n:[n]).reduce((e,t)=>{const[r,n]=(null!=t?t:"").split(",");return e.values.push(Ta(r)),e.texts.push(Ta(null!=n?n:r)),e},{values:[],texts:[]}));if(this._sceneObject.state.defaultValue&&("false"===r||void 0===r))return;if("false"===r)return void this._sceneObject.changeValueTo([],[],!1);this._sceneObject.changeValueTo(e,a)}var n}performBrowserHistoryAction(e){this._nextChangeShouldAddHistoryStep=!0,e(),this._nextChangeShouldAddHistoryStep=!1}shouldCreateHistoryStep(e){return this._nextChangeShouldAddHistoryStep}}function mr(e,t){return e=Array.isArray(e)?e:[e],t=Array.isArray(t)?t:[t],e.map((e,r)=>{if(null==e)return"";e=String(e);let n=t[r];return n=null==n?e:String(n),Na(e,n)})}function vr(e){const t=e.getRoot();return Et(t)?t.enrichFiltersRequest(e):null}var gr,br=e=>{throw TypeError(e)},yr=(e,t,r)=>t.has(e)||br("Cannot "+r);class wr{constructor(e){((e,t,r)=>{t.has(e)?br("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r)})(this,gr),this.text="__sceneObject",this.valueOf=()=>{return yr(e=this,t=gr,"read from private field"),r?r.call(e):t.get(e);var e,t,r},((e,t,r)=>{yr(e,t,"write to private field"),t.set(e,r)})(this,gr,e)}toString(){}get value(){return this}}function Sr(e){return function(e){const t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(!t)return!1;const r=parseInt(t[1],10),n=parseInt(t[2],10),a=parseInt(t[3],10);return 11===r?0===n&&a>=4||1===n&&a>=2||n>1:10===r?4===n&&a>=8||n>=5:r>11}(o.config.buildInfo.version)?new wr(e):{value:e,text:"__sceneObject"}}function _r(e){const{model:t}=e,r=f.useTheme2(),n=xr(r),a=f.getInputStyles({theme:r,invalid:!1}),o=u.isArray(t.state.value)?t.state.value:t.state.value?[t.state.value]:[];let i=[];return o&&o.length&&i.push(L.default.createElement(f.IconButton,{"aria-label":d.t("grafana-scenes.variables.default-group-by-custom-indicator-container.aria-label-clear","clear"),key:"clear",name:"times",size:"md",className:n.clearIcon,onClick:e=>{t.changeValueTo([],void 0,!0),t.checkIfRestorable([])&&t.setState({restorable:!0})}})),t.state.restorable&&i.push(L.default.createElement(f.IconButton,{onClick:t=>{e.model.restoreDefaultValues()},onKeyDownCapture:t=>{"Enter"===t.key&&e.model.restoreDefaultValues()},key:"restore",name:"history",size:"md",className:n.clearIcon,tooltip:d.t("grafana-scenes.variables.default-group-by-custom-indicator-container.tooltip-restore-groupby-set-by-this-dashboard","Restore groupby set by this dashboard.")})),t.state.restorable||i.push(L.default.createElement(f.Tooltip,{key:"tooltip",content:d.t("grafana-scenes.variables.default-group-by-custom-indicator-container.tooltip","Applied by default in this dashboard. If edited, it carries over to other dashboards."),placement:"bottom"},L.default.createElement(f.Icon,{name:"info-circle",size:"md"}))),L.default.createElement("div",{onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},className:h.cx(a.suffix,h.css({position:"relative"}))},i)}gr=new WeakMap;const xr=e=>({clearIcon:h.css({color:e.colors.action.disabledText,cursor:"pointer","&:hover:before":{backgroundColor:"transparent"},"&:hover":{color:e.colors.text.primary}})}),Or=({keysApplicability:e,children:t})=>{var r,n;const a=f.useTheme2(),o=f.getSelectStyles(a),{disabledPill:i,strikethrough:s}=La(a),l=L.default.Children.toArray(t)[0];let u=!0;if(L.default.isValidElement(l)&&(null==(n=null==(r=l.props)?void 0:r.data)?void 0:n.value)){const t=l.props.data.value,r=null==e?void 0:e.find(e=>e.key===t);r&&!r.applicable&&(u=!1)}return L.default.createElement("div",{className:h.cx(o.multiValueContainer,!u&&h.cx(i,s))},t)};function Ar(e){return"isInteractionTracker"in e}function Rr(e){let t=e;for(;t;){if(t.state.$behaviors)for(const e of t.state.$behaviors)if(Ar(e))return e;t=t.parent}}function Er({recentDrilldowns:e,recommendedDrilldowns:t}){const r=f.useStyles2(kr),[n,a]=i.useState(!1),o=i.useRef(null),s=e=>{e(),a(!1)},l=L.default.createElement(f.ClickOutsideWrapper,{onClick:()=>a(!1),useCapture:!0},L.default.createElement("div",{className:r.menuContainer,onClick:e=>e.stopPropagation()},L.default.createElement(f.Stack,{direction:"column"},L.default.createElement(f.Text,{weight:"bold",variant:"bodySmall",color:"secondary"},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recent"},"Recent")),e&&e.length>0?e.map(e=>L.default.createElement("div",{key:e.label,className:h.cx(r.combinedFilterPill),onClick:()=>s(e.onClick)},e.label)):L.default.createElement("div",{className:r.emptyMessage},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recent-empty"},"No recent values")),L.default.createElement(f.Text,{weight:"bold",variant:"bodySmall",color:"secondary"},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recommended"},"Recommended")),t&&t.length>0?t.map(e=>L.default.createElement("div",{key:e.label,className:h.cx(r.combinedFilterPill),onClick:()=>s(e.onClick)},e.label)):L.default.createElement("div",{className:r.emptyMessage},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recommended-empty"},"No recommended values")))));return L.default.createElement(L.default.Fragment,null,L.default.createElement(f.IconButton,{name:"plus",tooltip:d.t("grafana-scenes.components.drilldown-recommendations.tooltip","Show recommendations"),ref:o,className:h.cx(n&&r.iconActive),onClick:e=>{a(!0),e.stopPropagation()}}),n&&o.current&&L.default.createElement(f.Popover,{content:l,onKeyDown:e=>{" "===e.key&&e.stopPropagation()},placement:"bottom-start",referenceElement:o.current,show:!0}))}const kr=e=>({menuContainer:h.css({display:"flex",flexDirection:"column",background:e.colors.background.elevated,border:`1px solid ${e.colors.border.weak}`,borderRadius:e.shape.radius.default,boxShadow:e.shadows.z3,padding:e.spacing(2)}),combinedFilterPill:h.css({alignItems:"center",background:e.colors.action.selected,borderRadius:e.shape.radius.default,border:`1px solid ${e.colors.border.weak}`,padding:e.spacing(.2,1),color:e.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:e.spacing(2.75),...e.typography.bodySmall,fontWeight:e.typography.fontWeightBold,cursor:"pointer","&:hover":{background:e.colors.action.hover}}),iconActive:h.css({"&:before":{backgroundColor:e.colors.action.hover,opacity:1}}),emptyMessage:h.css({padding:e.spacing(.5,0),color:e.colors.text.secondary,...e.typography.bodySmall})});class Cr extends J{constructor(e){super({skipUrlSync:!0,loading:!0,scopes:[],...e,type:"system",name:Xe,hide:c.VariableHide.hideVariable}),this._renderBeforeActivation=!0,this.UNSAFE_renderAsHidden=!0}getValue(){var e;const t=null!=(e=this.state.scopes)?e:[];return new Ir(t.map(e=>e.metadata.name))}getScopes(){return this.state.scopes}setContext(e){if(!e)return;this._context=e;const t=e.state;null!=this.state.enable&&e.setEnabled(this.state.enable);const r=e.stateObservable.subscribe(e=>{this.updateStateFromContext(e)});return()=>{r.unsubscribe(),null!=this.state.enable&&e.setEnabled(t.enabled)}}updateStateFromContext(e){const t=0!==e.value.length&&e.loading,r=this.state.scopes.map(e=>e.metadata.name),n=e.value.map(e=>e.metadata.name),a=!u.isEqual(r,n);if(t||!a&&0!==n.length)this.setState({loading:t});else{const r=Se(this);null==r||r.startProfile("scopes_changed"),this.setState({scopes:e.value,loading:t}),this.publishEvent(new Ue(this),!0)}}}Cr.Component=function({model:e}){const t=i.useContext(o.ScopesContext);return i.useEffect(()=>e.setContext(t),[t,e]),null};class Ir{constructor(e){this._value=e}formatter(e){return e===c.VariableFormatID.QueryParam?this._value.map(e=>`scope=${encodeURIComponent(e)}`).join("&"):this._value.join(", ")}}let Pr;const Mr=new Set;function Tr(e){return L.default.createElement(f.Tooltip,{content:d.t("grafana-scenes.utils.loading-indicator.content-cancel-query","Cancel query")},L.default.createElement(f.Icon,{className:"spin-clockwise",name:"sync",size:"xs",role:"button",onMouseDown:t=>{e.onCancel(t)}}))}function Nr(e){const t=f.useStyles2(Dr),r=f.useTheme2(),n="vertical"===e.layout,a=Boolean(e.isLoading)?L.default.createElement("div",{style:{marginLeft:r.spacing(1),marginTop:"-1px"},"aria-label":p.selectors.components.LoadingIndicator.icon},L.default.createElement(Tr,{onCancel:t=>{var r;t.preventDefault(),t.stopPropagation(),null==(r=e.onCancel)||r.call(e)}})):null;let o=null;e.error&&(o=L.default.createElement(f.Tooltip,{content:e.error,placement:"bottom"},L.default.createElement(f.Icon,{className:t.errorIcon,name:"exclamation-triangle"})));let i=null;e.description&&(i=L.default.createElement(f.Tooltip,{content:e.description,placement:n?"top":"bottom"},L.default.createElement(f.Icon,{className:t.normalIcon,name:"info-circle"})));const s="string"==typeof e.label?p.selectors.pages.Dashboard.SubMenu.submenuItemLabels(e.label):"";let l;return l=n?L.default.createElement("label",{className:h.cx(t.verticalLabel,e.className),"data-testid":s,htmlFor:e.htmlFor},e.prefix,e.label,i,o,e.icon&&L.default.createElement(f.Icon,{name:e.icon,className:t.normalIcon}),a,e.onRemove&&L.default.createElement(f.IconButton,{variant:"secondary",size:"xs",name:"times",onClick:e.onRemove,tooltip:d.t("grafana-scenes.utils.controls-label.tooltip-remove","Remove")}),e.suffix):L.default.createElement("label",{className:h.cx(t.horizontalLabel,e.className),"data-testid":s,htmlFor:e.htmlFor},e.prefix,o,e.icon&&L.default.createElement(f.Icon,{name:e.icon,className:t.normalIcon}),e.label,i,a,e.suffix),l}const Dr=e=>({horizontalLabel:h.css({background:e.isDark?e.colors.background.primary:e.colors.background.secondary,display:"flex",alignItems:"center",padding:e.spacing(0,1),fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.bodySmall.fontSize,height:e.spacing(e.components.height.md),lineHeight:e.spacing(e.components.height.md),borderRadius:`${e.shape.radius.default} 0 0 ${e.shape.radius.default}`,border:`1px solid ${e.components.input.borderColor}`,position:"relative",right:-1,whiteSpace:"nowrap",gap:e.spacing(.5)}),verticalLabel:h.css({display:"flex",alignItems:"center",fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.bodySmall.fontSize,lineHeight:e.typography.bodySmall.lineHeight,whiteSpace:"nowrap",marginBottom:e.spacing(.5),gap:e.spacing(1)}),errorIcon:h.css({color:e.colors.error.text}),normalIcon:h.css({color:e.colors.text.secondary})});function Fr(e){const t=e.map(e=>{var t;return null!=(t=e.label)?t:String(e.value)});return r=>ar(e,t,r)}function jr(e,t){return""!==e?{value:e,label:t||e}:null}const Lr=()=>!0;function Vr({filter:e,model:t}){var r,n,a,o,s;const l=f.useStyles2(zr),[u,c]=i.useState([]),[p,m]=i.useState([]),[v,g]=i.useState(!1),[b,y]=i.useState(!1),[w,S]=i.useState(!1),[_,x]=i.useState(!1),[O,A]=i.useState(!1),[R,E]=i.useState(""),[k,C]=i.useState(!1),[I,P]=i.useState(e.values?e.values.map((t,r)=>{var n;return jr(t,null==(n=e.valueLabels)?void 0:n[r])}):[]),M=Pn(e.operator),T=jr(e.key,e.keyLabel),N=jr(e.value,null==(r=e.valueLabels)?void 0:r[0]),D=i.useMemo(()=>Fr(p),[p]),F=t.state.onAddCustomValue,j=i.useMemo(()=>ja(D(R)),[D,R]),V={isMulti:!0,value:I,components:{Option:dr},hideSelectedOptions:!1,closeMenuOnSelect:!1,openMenuOnFocus:!1,onChange:e=>{P(e),e.some(e=>e.__isNew__)&&E("")},onBlur:()=>{var r,n;t._updateFilter(e,{value:null!=(n=null==(r=I[0])?void 0:r.value)?n:"",values:I.map(e=>e.value),valueLabels:I.map(e=>e.label)})}},z=xn.find(t=>e.operator===t.value),B=L.default.createElement(f.Select,{virtualized:!0,allowCustomValue:null==(n=t.state.allowCustomValue)||n,createOptionPosition:(null==z?void 0:z.isRegex)?"first":"last",isValidNewOption:e=>e.trim().length>0,allowCreateWhileLoading:!0,formatCreateLabel:e=>`Use custom value: ${e}`,disabled:t.state.readOnly,className:h.cx(l.value,_?l.widthWhenOpen:void 0),width:"auto",value:N,filterOption:Lr,placeholder:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.value-select.placeholder-select-value","Select value"),options:j,inputValue:R,onInputChange:(e,{action:t})=>("input-change"===t&&E(e),e),onChange:r=>{F&&r.__isNew__?t._updateFilter(e,F(r,e)):t._updateFilter(e,{value:r.value,valueLabels:r.label?[r.label]:[r.value]}),k!==r.__isNew__&&C(r.__isNew__)},isOpen:_&&!b,isLoading:b,openMenuOnFocus:!0,onOpenMenu:async()=>{var r;y(!0),x(!0);const n=await t._getValuesFor(e);y(!1),m(n),k&&E(null!=(r=null==N?void 0:N.label)?r:"")},onCloseMenu:()=>{x(!1),E("")},...M&&V}),U=L.default.createElement(f.Select,{key:""+(b?"loading":"loaded"),disabled:t.state.readOnly,className:h.cx(l.key,w?l.widthWhenOpen:void 0),width:"auto",allowCustomValue:null==(a=t.state.allowCustomValue)||a,createOptionPosition:(null==z?void 0:z.isRegex)?"first":"last",value:T,placeholder:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.key-select.placeholder-select-label","Select label"),options:ja(u),onChange:r=>{t._updateFilter(e,{key:r.value,keyLabel:r.label,value:"",valueLabels:[""],values:void 0}),P([])},autoFocus:""===e.key,isOpen:w&&!v,isLoading:v,onOpenMenu:async()=>{S(!0),g(!0);const r=await t._getKeys(e.key);g(!1),c(r)},onCloseMenu:()=>{S(!1)},onBlur:()=>{""===e.key&&t._removeFilter(e)},openMenuOnFocus:!0}),W=L.default.createElement(f.Select,{className:h.cx(l.operator,{[l.widthWhenOpen]:O}),value:e.operator,disabled:t.state.readOnly,options:t._getOperators(),onChange:r=>{var n,a;const o=e.operator,i=r.value,s={operator:i};Pn(o)&&!Pn(i)?(s.value="",s.valueLabels=[""],s.values=void 0,P([])):!Pn(o)&&Pn(i)&&e.value&&(s.values=[e.value],P([{value:e.value,label:null!=(a=null==(n=e.valueLabels)?void 0:n[0])?a:e.value}])),t._updateFilter(e,s)},onOpenMenu:()=>{A(!0)},onCloseMenu:()=>{A(!1)}});if("vertical"===t.state.layout){if(e.key){const r=L.default.createElement(Nr,{layout:"vertical",label:null!=(o=e.key)?o:"",onRemove:()=>t._removeFilter(e)});return L.default.createElement(f.Field,{label:r,"data-testid":`AdHocFilter-${e.key}`,className:l.field},L.default.createElement("div",{className:l.wrapper},W,B))}return L.default.createElement(f.Field,{label:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.label-select-label","Select label"),"data-testid":`AdHocFilter-${e.key}`,className:l.field},U)}return L.default.createElement("div",{className:l.wrapper,"data-testid":`AdHocFilter-${e.key}`},U,W,B,L.default.createElement(f.Button,{variant:"secondary","aria-label":d.t("grafana-scenes.variables.ad-hoc-filter-renderer.aria-label-remove-filter","Remove filter"),title:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.title-remove-filter","Remove filter"),className:l.removeButton,icon:"times","data-testid":`AdHocFilter-remove-${null!=(s=e.key)?s:""}`,onClick:()=>t._removeFilter(e)}))}const zr=e=>({field:h.css({marginBottom:0}),wrapper:h.css({display:"flex","&:first-child":{"> :first-child":{borderBottomLeftRadius:0,borderTopLeftRadius:0}},"> *":{"&:not(:first-child)":{marginLeft:-1},"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},position:"relative",zIndex:0,"&:hover":{zIndex:1},"&:focus-within":{zIndex:2}}}),widthWhenOpen:h.css({minWidth:e.spacing(16)}),value:h.css({flexBasis:"content",flexShrink:1,minWidth:"90px"}),key:h.css({flexBasis:"content",minWidth:"90px",flexShrink:1}),operator:h.css({flexShrink:0,flexBasis:"content"}),removeButton:h.css({paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5),borderLeft:"none",width:e.spacing(3),marginRight:e.spacing(1),boxSizing:"border-box",position:"relative",left:"1px"})});function Br({model:e,addFilterButtonText:t}){const{_wip:r}=e.useState(),n=f.useStyles2(Ur);return r?L.default.createElement(Vr,{filter:r,model:e}):L.default.createElement(f.Button,{variant:"secondary",icon:"plus",title:d.t("grafana-scenes.variables.ad-hoc-filter-builder.title-add-filter","Add filter"),"aria-label":d.t("grafana-scenes.variables.ad-hoc-filter-builder.aria-label-add-filter","Add filter"),"data-testid":"AdHocFilter-add",onClick:()=>e._addWip(),className:n.addButton},t)}const Ur=e=>({addButton:h.css({"&:first-child":{borderBottomLeftRadius:0,borderTopLeftRadius:0}})});class Wr{constructor(e){this._variable=e}getKey(){return`var-${this._variable.state.name}`}getKeys(){return[this.getKey()]}getUrlState(){const e=this._variable.state.filters,t=this._variable.state.originFilters;let r=[];return 0===e.length&&0===(null==t?void 0:t.length)?{[this.getKey()]:[""]}:(e.length&&r.push(...e.filter(Cn).filter(e=>!e.hidden).map(e=>Gr(e).map(Ma).join("|"))),(null==t?void 0:t.length)&&r.push(...null==t?void 0:t.filter(Cn).filter(e=>!e.hidden&&e.origin&&e.restorable).map(e=>Gr(e).map(Ma).join("|").concat(`#${e.origin}#restorable`))),{[this.getKey()]:r.length?r:[""]})}updateFromUrl(e){const t=e[this.getKey()];if(null==t)return;const r=function(e){if(Array.isArray(e)){return e.map(Hr).filter(qr)}const t=Hr(e);return null===t?[]:[t]}(t),n=function(e,t){const r=[...e];for(let n=0;n<t.length;n++){const a=e.findIndex(e=>e.key===t[n].key);a>-1&&t[n].origin===e[a].origin?(kn(t[n])&&(t[n].matchAllFilter=!0),r[a]=t[n]):"dashboard"===t[n].origin?(delete t[n].origin,delete t[n].restorable):-1===a&&"scope"===t[n].origin&&t[n].restorable&&r.push(t[n])}return r}([...this._variable.state.originFilters||[]],r);this._variable.setState({filters:r.filter(e=>!e.origin),originFilters:n})}}function Gr(e){var t;const r=[Na(e.key,e.keyLabel),e.operator];return Pn(e.operator)?e.values.forEach((t,n)=>{var a;r.push(Na(t,null==(a=e.valueLabels)?void 0:a[n]))}):r.push(Na(e.value,null==(t=e.valueLabels)?void 0:t[0])),r}function Hr(e){if("string"!=typeof e||0===e.length)return null;const[t,r,n]=e.split("#"),[a,o,i,s,...l]=t.split("|").reduce((e,t)=>{const[r,n]=t.split(",");return e.push(r,null!=n?n:r),e},[]).map(Ta);return{key:a,keyLabel:o,operator:i,value:l[0],values:Pn(i)?l.filter((e,t)=>t%2==0):void 0,valueLabels:l.filter((e,t)=>t%2==1),condition:"",...(u=r,("scope"===u||"dashboard"===u)&&{origin:r}),...!!n&&{restorable:!0}};var u}function qr(e){return null!==e&&"string"==typeof e.key&&"string"==typeof e.value}const $r=i.forwardRef(function({children:e,active:t,addGroupBottomBorder:r,isMultiValueEdit:n,checked:a,...o},s){const l=f.useStyles2(Kr),u=i.useId();return L.default.createElement("div",{ref:s,role:"option",id:u,"aria-selected":t,className:h.cx(l.option,t&&l.optionFocused,r&&l.groupBottomBorder),...o},L.default.createElement("div",{className:l.optionBody,"data-testid":`data-testid ad hoc filter option value ${e}`},L.default.createElement("span",null,n?L.default.createElement(f.Checkbox,{tabIndex:-1,checked:a,className:l.checkbox}):null,e)))}),Kr=e=>({option:h.css({label:"grafana-select-option",top:0,left:0,width:"100%",position:"absolute",padding:e.spacing(1),display:"flex",alignItems:"center",flexDirection:"row",flexShrink:0,whiteSpace:"nowrap",cursor:"pointer","&:hover":{background:e.colors.action.hover,"@media (forced-colors: active), (prefers-contrast: more)":{border:`1px solid ${e.colors.primary.border}`}}}),optionFocused:h.css({label:"grafana-select-option-focused",background:e.colors.action.focus,"@media (forced-colors: active), (prefers-contrast: more)":{border:`1px solid ${e.colors.primary.border}`}}),optionBody:h.css({label:"grafana-select-option-body",display:"flex",fontWeight:e.typography.fontWeightMedium,flexDirection:"column",flexGrow:1}),groupBottomBorder:h.css({borderBottom:`1px solid ${e.colors.border.weak}`}),checkbox:h.css({paddingRight:e.spacing(.5)}),multiValueApplyWrapper:h.css({position:"fixed",top:0,left:0,display:"flex",backgroundColor:e.colors.background.primary,color:e.colors.text.primary,boxShadow:e.shadows.z2,overflowY:"auto",zIndex:e.zIndex.dropdown,gap:e.spacing(1.5),padding:`${e.spacing(1.5)} ${e.spacing(1)}`})}),Qr=()=>L.default.createElement($r,{onClick:e=>e.stopPropagation()},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.loading-options-placeholder.loading-options"},"Loading options...")),Yr=()=>L.default.createElement($r,{onClick:e=>e.stopPropagation()},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.no-options-placeholder.no-options-found"},"No options found")),Zr=({handleFetchOptions:e})=>L.default.createElement($r,{onClick:e},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.options-error-placeholder.error-occurred-fetching-labels-click-retry"},"An error has occurred fetching labels. Click to retry")),Jr=({onApply:e,floatingElement:t,maxOptionWidth:r,menuHeight:n})=>{const a=f.useStyles2(Kr),o=null==t?void 0:t.getBoundingClientRect();return L.default.createElement("div",{className:a.multiValueApplyWrapper,style:{width:`${r}px`,transform:`translate(${null==o?void 0:o.left}px,${o?o.top+n:0}px)`}},L.default.createElement(f.Button,{onClick:e,size:"sm",tabIndex:-1},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.multi-value-apply-button.apply"},"Apply")))},Xr=e=>e.flatMap(e=>e.options?[e,...e.options]:[e]),en={key:"operator",operator:"value",value:"key"},tn=(e,t,r,n,a)=>rn(en[e],t,"value"===e?r:void 0,n,a),rn=(e,t,r,n,a)=>{t(e),null==r||r(void 0,a),setTimeout(()=>null==n?void 0:n.focus())},nn=({filterInputType:e,item:t,filter:r,setFilterMultiValues:n,onAddCustomValue:a})=>{var o,i,s,l,u;if("key"===e)return{key:t.value,keyLabel:t.label?t.label:t.value,meta:null==t?void 0:t.meta};if("value"===e)return t.isCustom&&a?a(t,r):{value:t.value,valueLabels:[t.label?t.label:t.value]};if("operator"===e){if(Pn(r.operator)&&!Pn(t.value))return n([]),{operator:t.value,valueLabels:[(null==(o=r.valueLabels)?void 0:o[0])||(null==(i=r.values)?void 0:i[0])||r.value],values:void 0};if(Pn(t.value)&&!Pn(r.operator)){const e=[(null==(s=r.valueLabels)?void 0:s[0])||(null==(l=r.values)?void 0:l[0])||r.value],a=[r.value];return a[0]&&n([{value:a[0],label:null!=(u=null==e?void 0:e[0])?u:a[0]}]),{operator:t.value,valueLabels:e,values:a}}}return{[e]:t.value}},an="Filter by label values",on=(e,t,r,n,a)=>{var o;return"key"===t?a||an:"value"===t?r?"Edit values":(null==(o=e.valueLabels)?void 0:o[0])||"":n&&"operator"===t?"":e[t]&&!n?`${e[t]}`:a||an},sn=({populateInputOnEdit:e,item:t,filterInputType:r,setInputValue:n,filter:a})=>{var o,i,s;e&&!Pn(t.value||"")&&"value"===en[r]?n(null!=(s=null!=(i=null==(o=null==a?void 0:a.valueLabels)?void 0:o[0])?i:null==a?void 0:a.value)?s:""):n("")},ln=({item:e,handleRemoveMultiValue:t,index:r,handleEditMultiValuePill:n})=>{var a,o;const s=f.useStyles2(un),l=i.useCallback(t=>{t.stopPropagation(),t.preventDefault(),n(e)},[n,e]),u=i.useCallback(e=>{"Enter"===e.key&&l(e)},[l]),c=i.useCallback(r=>{r.stopPropagation(),r.preventDefault(),t(e)},[t,e]),p=i.useCallback(e=>{"Enter"===e.key&&c(e)},[c]);return L.default.createElement("div",{className:h.cx(s.basePill,s.valuePill),onClick:l,onKeyDown:u,tabIndex:0,id:`${e.value}-${r}`},null!=(a=e.label)?a:e.value,L.default.createElement(f.Button,{onClick:c,onKeyDownCapture:p,fill:"text",size:"sm",variant:"secondary",className:s.removeButton,tooltip:d.t("grafana-scenes.components.adhoc-filters-combobox.remove-filter-value","Remove filter value - {{itemLabel}}",{itemLabel:null!=(o=e.label)?o:e.value})},L.default.createElement(f.Icon,{name:"times",size:"md",id:`${e.value}-${r}-close-icon`})))},un=e=>({basePill:h.css({display:"flex",alignItems:"center",background:e.colors.action.disabledBackground,border:`1px solid ${e.colors.border.weak}`,padding:e.spacing(.125,1,.125,1),color:e.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:e.spacing(2.75),...e.typography.bodySmall,cursor:"pointer"}),valuePill:h.css({background:e.colors.action.selected,padding:e.spacing(.125,0,.125,1)}),removeButton:h.css({marginInline:e.spacing(.5),height:"100%",padding:0,cursor:"pointer","&:hover":{color:e.colors.text.primary}})}),cn=i.forwardRef(function({filter:e,controller:t,isAlwaysWip:r,handleChangeViewMode:n,focusOnWipInputRef:a,populateInputOnEdit:o,onInputClick:s},l){var u,c,p;const[m,v]=i.useState(!1),[y,w]=i.useState([]),[S,_]=i.useState(!1),[x,O]=i.useState(!1),[A,R]=i.useState(""),[E,k]=i.useState(null),[C,I]=i.useState(r?"key":"value"),[P,M]=i.useState(!r&&"value"===C),T=f.useStyles2(dn),[N,D]=i.useState([]),[F,j]=i.useState({}),{allowCustomValue:V=!0,onAddCustomValue:z,filters:B,inputPlaceholder:U}=t.useState(),W=i.useRef(null),G=Pn((null==e?void 0:e.operator)||""),H=G&&"value"===C,q=i.useId(),$=i.useRef([]),K=i.useRef([]),Q=i.useRef(r?"key":"value"),Y=i.useMemo(()=>Fr(y),[y]),Z=i.useMemo(()=>!r&&B.at(-1)===e,[e,r,B]),J=i.useCallback(()=>{r&&(t.addWip(),I("key"),R(""))},[t,r]),X=i.useCallback((e,t,r,n)=>{var a;if(!r.length&&t.origin&&e.updateToMatchAll(t),r.length){const n=[],o=[];r.forEach(e=>{var t;n.push(null!=(t=e.label)?t:e.value),o.push(e.value)});let i=!0;Array.isArray(t.values)&&t.values.length===o.length&&(i=!t.values.every((e,t)=>e===o[t])),i&&(null==(a=e.startProfile)||a.call(e,Te)),e.updateFilter(t,{valueLabels:n,values:o,value:o[0]}),D([])}n||setTimeout(()=>{var e;return null==(e=ne.domReference.current)?void 0:e.focus()})},[]),ee=i.useCallback(e=>{D(t=>t.some(t=>t.value===e.value)?t.filter(t=>t.value!==e.value):[...t,e])},[]),te=i.useCallback((r,a,o)=>{v(r),o&&["outside-press","escape-key"].includes(o)&&(H?X(t,e,N):e&&e.origin&&""===A&&t.updateToMatchAll(e),J(),null==n||n())},[e,N,n,X,J,A,H,t]),re=i.useMemo(()=>[q,...N.reduce((e,t,r)=>[...e,`${t.value}-${r}`,`${t.value}-${r}-close-icon`],[])],[q,N]),{refs:ne,floatingStyles:ae,context:oe,getReferenceProps:ie,getFloatingProps:se,getItemProps:le}=(({open:e,onOpenChange:t,activeIndex:r,setActiveIndex:n,outsidePressIdsToIgnore:a,listRef:o,disabledIndicesRef:i})=>{const{refs:s,floatingStyles:l,context:u}=g.useFloating({whileElementsMounted:g.autoUpdate,open:e,onOpenChange:t,placement:"bottom-start",middleware:[g.offset(10),g.flip({padding:10}),g.size({apply({availableHeight:e,availableWidth:t,elements:r}){r.floating.style.maxHeight=`${Math.min(300,e)}px`,r.floating.style.maxWidth=`${t}px`},padding:10})],strategy:"fixed"}),c=g.useRole(u,{role:"listbox"}),d=g.useDismiss(u,{outsidePress:e=>{var t;if(e.currentTarget instanceof Element){const r=e.currentTarget;let n=r.id;if("path"===r.nodeName&&(n=(null==(t=r.parentElement)?void 0:t.id)||""),a.includes(n))return!1}return!0}}),f=g.useListNavigation(u,{listRef:o,activeIndex:r,onNavigate:n,virtual:!0,loop:!0,disabledIndices:i.current}),{getReferenceProps:p,getFloatingProps:h,getItemProps:m}=g.useInteractions([c,d,f]);return{refs:s,floatingStyles:l,context:u,getReferenceProps:p,getFloatingProps:h,getItemProps:m}})({open:m,onOpenChange:te,activeIndex:E,setActiveIndex:k,outsidePressIdsToIgnore:re,listRef:$,disabledIndicesRef:K});i.useImperativeHandle(l,()=>()=>{var e;return null==(e=ne.domReference.current)?void 0:e.focus()},[ne.domReference]);const ue=i.useCallback(e=>{D(t=>t.filter(t=>t.value!==e.value)),setTimeout(()=>{var e;return null==(e=ne.domReference.current)?void 0:e.focus()})},[ne.domReference]),ce=Xr(ja(Y(P?"":A))),de=i.useCallback(e=>{const t=e.findIndex(e=>!e.options);return t>=0?t:null},[]);if(V&&"operator"!==C&&A){const t=xn.find(t=>(null==e?void 0:e.operator)===t.value),r={value:A.trim(),label:A.trim(),isCustom:!0};(null==t?void 0:t.isRegex)?ce.unshift(r):ce.push(r)}const fe=((e,t,r)=>{var n,a,o,i;let s=182;const l=[],u=[];for(let t=0;t<e.length;t++){l.push(null),(null==(n=e[t])?void 0:n.options)&&u.push(t);let r=null!=(o=null!=(a=e[t].label)?a:e[t].value)?o:"",c=8;8*r.length<6*((null==(i=e[t].description)?void 0:i.length)||0)&&(r=e[t].description,c=6);const d=(e[t].isCustom?r.length+18:r.length)*c+16;d>s&&(s=d)}return t.current=[...l],r.current=[...u],s})(ce,$,K),pe=i.useCallback(async r=>{var n,a,o,i;const s="key"===r?"adhoc_keys_dropdown":"adhoc_values_dropdown";"operator"!==r&&(null==(n=t.startInteraction)||n.call(t,s)),O(!1),_(!0),w([]);let l=[];try{if("key"===r?l=await t.getKeys(null):"operator"===r?l=t.getOperators():"value"===r&&(l=await t.getValuesFor(e)),Q.current!==r)return void(null==(a=t.stopInteraction)||a.call(t));w(l),(null==(o=l[0])?void 0:o.group)?k(1):k(0)}catch(e){O(!0)}_(!1),null==(i=t.stopInteraction)||i.call(t)},[e,t]),he=b.useVirtualizer({count:ce.length,getScrollElement:()=>ne.floating.current,estimateSize:e=>ce[e].description?60:38,overscan:5}),me=i.useCallback((n,o)=>{var i;if("Backspace"===n.key&&!A){if("value"===C){if(o&&N.length)return void D(e=>{const t=[...e];return t.splice(-1,1),t});if(null==e?void 0:e.origin)return;return void I("operator")}if("operator"===C)return n.preventDefault(),R(""),e&&t.updateFilter(e,{key:"",keyLabel:"",operator:"",value:"",valueLabels:[],values:void 0}),void rn("key",I,void 0,ne.domReference.current);null==a||a(),Cn(e)&&(null==(i=t.startProfile)||i.call(t,Me)),v(!1),t.handleComboboxBackspace(e),r&&J()}},[A,C,a,e,t,r,N.length,ne.domReference,J]),ve=i.useCallback((r,a)=>{var o;"Tab"!==r.key||r.shiftKey||(a&&(r.preventDefault(),X(t,e,N),null==(o=ne.domReference.current)||o.focus()),null==n||n(),J())},[e,N,n,X,J,t,ne.domReference]),ge=i.useCallback((r,a)=>{"Tab"===r.key&&r.shiftKey&&(a&&(r.preventDefault(),X(t,e,N,!0)),null==n||n(),J())},[e,N,n,X,J,t]),be=i.useCallback((r,i)=>{var s;if("Enter"===r.key&&null!=E){if(!ce[E])return;const r=ce[E];if(i)ee(r),R("");else{const i=nn({filterInputType:C,item:r,filter:e,setFilterMultiValues:D,onAddCustomValue:z});"value"===C&&i.value!==(null==e?void 0:e.value)&&(null==(s=t.startProfile)||s.call(t,Te)),t.updateFilter(e,i),sn({populateInputOnEdit:o,item:r,filterInputType:C,setInputValue:R,filter:e}),tn(C,I,n,ne.domReference.current,!Z&&void 0),k(null),Z&&(null==a||a())}}},[E,ce,ee,t,e,C,o,n,ne.domReference,Z,a,z]),ye=i.useCallback(e=>{var t;const r=e.label||e.value;D(t=>t.filter(t=>t.value!==e.value)),M(!0),R(r),null==(t=ne.domReference.current)||t.focus(),setTimeout(()=>{var e;null==(e=ne.domReference.current)||e.select()})},[ne.domReference]);i.useEffect(()=>{m&&pe(C)},[m,C]),i.useEffect(()=>{var t,n,a,i;if(!r){if(G&&(null==(t=null==e?void 0:e.values)?void 0:t.length)){const t=e.values.reduce((t,r,n)=>{var a;return[...t,{label:(null==(a=e.valueLabels)?void 0:a[n])||r,value:r}]},[]);D(t)}!G&&o&&(R(null!=(a=null==(n=null==e?void 0:e.valueLabels)?void 0:n[0])?a:(null==e?void 0:e.value)||""),setTimeout(()=>{var e;null==(e=ne.domReference.current)||e.select()})),null==(i=ne.domReference.current)||i.focus()}},[]),i.useEffect(()=>{H&&N&&setTimeout(()=>j({}))},[N,H]),i.useLayoutEffect(()=>{Q.current&&(Q.current=C)},[C]),i.useLayoutEffect(()=>{var e,t;null!==E&&he.range&&(E>(null==(e=he.range)?void 0:e.endIndex)||E<(null==(t=he.range)?void 0:t.startIndex))&&he.scrollToIndex(E)},[E,he]);const we=null!=(u=null==e?void 0:e.keyLabel)?u:null==e?void 0:e.key;return L.default.createElement("div",{className:T.comboboxWrapper},e?L.default.createElement("div",{className:T.pillWrapper},(null==e?void 0:e.key)?L.default.createElement("div",{className:h.cx(T.basePill,T.keyPill)},we):null,(null==e?void 0:e.key)&&(null==e?void 0:e.operator)&&"operator"!==C?L.default.createElement("div",{id:q,className:h.cx(T.basePill,!e.origin&&T.operatorPill,e.origin&&T.keyPill,q),"aria-label":d.t("grafana-scenes.variables.ad-hoc-combobox.aria-label-edit-filter-operator","Edit filter operator"),tabIndex:e.origin?-1:0,onClick:t=>{e.origin?null==n||n():(t.stopPropagation(),R(""),rn("operator",I,void 0,ne.domReference.current))},onKeyDown:t=>{e.origin||(ge(t,G),"Enter"===t.key&&(R(""),rn("operator",I,void 0,ne.domReference.current)))},...!e.origin&&{role:"button"}},e.operator):null,L.default.createElement("div",{ref:W}),H?N.map((e,t)=>L.default.createElement(ln,{key:`${e.value}-${t}`,item:e,index:t,handleRemoveMultiValue:ue,handleEditMultiValuePill:ye})):null):null,L.default.createElement("input",{...ie({ref:ne.setReference,onChange:function(e){const t=e.target.value;R(t);const r=Xr(ja(Y(t)));!r.length&&V?k(0):k(de(r)),P&&M(!1)},value:A,placeholder:on(e,C,H,r,U),"aria-autocomplete":"list",onKeyDown(e){m?("operator"===C&&ge(e),me(e,H),ve(e,H),be(e,H)):v(!0)}}),className:h.cx(T.inputStyle,{[T.loadingInputPadding]:!S}),onClick:e=>{e.stopPropagation(),null==s||s(),v(!0)},onFocus:()=>{v(!0)}}),S?L.default.createElement(f.Spinner,{className:T.loadingIndicator,inline:!0}):null,L.default.createElement(g.FloatingPortal,null,m&&L.default.createElement(g.FloatingFocusManager,{context:oe,initialFocus:-1,visuallyHiddenDismiss:!0,modal:!0},L.default.createElement(L.default.Fragment,null,L.default.createElement("div",{style:{...ae,width:`${x?366:fe}px`,transform:H?`translate(${(null==(c=W.current)?void 0:c.getBoundingClientRect().left)||0}px, ${((null==(p=ne.domReference.current)?void 0:p.getBoundingClientRect().bottom)||0)+10}px )`:ae.transform},ref:ne.setFloating,className:T.dropdownWrapper,tabIndex:-1},L.default.createElement("div",{style:{height:`${he.getTotalSize()||38}px`},...se(),tabIndex:-1},S?L.default.createElement(Qr,null):x?L.default.createElement(Zr,{handleFetchOptions:()=>pe(C)}):ce.length||V&&"operator"!==C&&A?he.getVirtualItems().map(r=>{var a;const i=ce[r.index],s=r.index;if(i.options)return L.default.createElement("div",{key:`${i.label}+${s}`,className:h.cx(T.optionGroupLabel,T.groupTopBorder),style:{height:`${r.size}px`,transform:`translateY(${r.start}px)`}},L.default.createElement(f.Text,{weight:"bold",variant:"bodySmall",color:"secondary"},i.label));const l=ce[r.index+1],u=l&&!l.group&&!l.options&&i.group,c=null!=(a=i.label)?a:i.value;return L.default.createElement($r,{...le({key:`${i.value}-${s}`,ref(e){$.current[s]=e},onClick(r){var a,s;if("value"!==C&&r.stopPropagation(),H)r.preventDefault(),r.stopPropagation(),ee(i),R(""),null==(a=ne.domReference.current)||a.focus();else{const r=nn({filterInputType:C,item:i,filter:e,setFilterMultiValues:D,onAddCustomValue:z});"value"===C&&r.value!==(null==e?void 0:e.value)&&(null==(s=t.startProfile)||s.call(t,Te)),t.updateFilter(e,r),sn({populateInputOnEdit:o,item:i,filterInputType:C,setInputValue:R,filter:e}),tn(C,I,n,ne.domReference.current,!1)}}}),active:E===s,addGroupBottomBorder:u,style:{height:`${r.size}px`,transform:`translateY(${r.start}px)`},"aria-setsize":ce.length,"aria-posinset":r.index+1,isMultiValueEdit:H,checked:N.some(e=>e.value===i.value)},L.default.createElement("span",null,i.isCustom?d.t("grafana-scenes.components.adhoc-filters-combobox.use-custom-value","Use custom value: {{itemLabel}}",{itemLabel:c}):c),i.description?L.default.createElement("div",{className:T.descriptionText},i.description):null)}):L.default.createElement(Yr,null))),H&&!S&&!x&&ce.length?L.default.createElement(Jr,{onApply:()=>{X(t,e,N),J(),null==n||n(),v(!1)},floatingElement:ne.floating.current,maxOptionWidth:fe,menuHeight:Math.min(he.getTotalSize(),300)}):null))))}),dn=e=>({comboboxWrapper:h.css({display:"flex",flexWrap:"wrap"}),pillWrapper:h.css({display:"flex",alignItems:"center",flexWrap:"wrap"}),basePill:h.css({display:"flex",alignItems:"center",background:e.colors.action.disabledBackground,border:`1px solid ${e.colors.border.weak}`,padding:e.spacing(.125,1,.125,1),color:e.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:e.spacing(2.75),...e.typography.bodySmall,cursor:"pointer"}),keyPill:h.css({fontWeight:e.typography.fontWeightBold,cursor:"default"}),operatorPill:h.css({"&:hover":{background:e.colors.action.hover}}),dropdownWrapper:h.css({backgroundColor:e.colors.background.primary,color:e.colors.text.primary,boxShadow:e.shadows.z2,overflowY:"auto",zIndex:e.zIndex.portal}),inputStyle:h.css({paddingBlock:0,"&:focus":{outline:"none"}}),loadingIndicator:h.css({color:e.colors.text.secondary,marginLeft:e.spacing(.5)}),loadingInputPadding:h.css({paddingRight:e.spacing(2.5)}),optionGroupLabel:h.css({padding:e.spacing(1),position:"absolute",top:0,left:0,width:"100%"}),groupTopBorder:h.css({"&:not(:first-child)":{borderTop:`1px solid ${e.colors.border.weak}`}}),descriptionText:h.css({...e.typography.bodySmall,color:e.colors.text.secondary,paddingTop:e.spacing(.5)})});function fn({filter:e,controller:t,readOnly:r,focusOnWipInputRef:n}){var a,o,s,l;const u=f.useStyles2(pn),[c,p]=i.useState(!0),[m,v]=i.useState(!1),g=i.useRef(null),[b,y]=i.useState(!1),w=null!=(a=e.keyLabel)?a:e.key,S=(null==(o=e.valueLabels)?void 0:o.join(", "))||(null==(s=e.values)?void 0:s.join(", "))||e.value,_=i.useCallback((e,t)=>{null==e||e.stopPropagation(),r||(v(null!=t?t:!c),p(!c))},[r,c]);i.useEffect(()=>{var e;m&&(null==(e=g.current)||e.focus(),v(!1))},[m]),i.useEffect(()=>{e.forceEdit&&c&&(p(!1),t.updateFilter(e,{forceEdit:void 0}))},[e,t,c]),i.useEffect(()=>{c&&y(e=>!e&&e)},[c]),i.useEffect(()=>{!c||r||e.origin||e.key||e.operator||e.value||(t.removeFilter(e),setTimeout(()=>null==n?void 0:n()))},[t,e,n,r,c]);const x=e=>"dashboard"===e?{info:"Applied by default in this dashboard. If edited, it carries over to other dashboards.",restore:"Restore the value set by this dashboard."}:"scope"===e?{info:"Applied automatically from your selected scope.",restore:"Restore the value set by your selected scope."}:{info:`This is a ${e} injected filter.`,restore:"Restore filter to its original value."},O=!e.restorable&&!e.readOnly&&!e.nonApplicable;if(c){const a=`${w} ${e.operator} ${S}`,o=L.default.createElement("span",{className:h.cx(u.pillText,e.nonApplicable&&u.strikethrough)},a);return L.default.createElement("div",{className:h.cx(u.combinedFilterPill,r&&u.readOnlyCombinedFilter,(kn(e)||e.nonApplicable)&&u.disabledPill,e.readOnly&&u.filterReadOnly),onClick:e=>{e.stopPropagation(),y(!0),_()},onKeyDown:e=>{"Enter"===e.key&&(y(!0),_())},role:r?void 0:"button","aria-label":d.t("grafana-scenes.components.adhoc-filter-pill.edit-filter-with-key","Edit filter with key {{keyLabel}}",{keyLabel:w}),tabIndex:0,ref:g},a.length<20?o:L.default.createElement(f.Tooltip,{content:L.default.createElement("div",{className:u.tooltipText},a),placement:"top"},o),r||e.matchAllFilter||e.origin&&"dashboard"!==e.origin?null:L.default.createElement(f.IconButton,{onClick:r=>{r.stopPropagation(),e.origin&&"dashboard"===e.origin?t.updateToMatchAll(e):t.removeFilter(e),setTimeout(()=>null==n?void 0:n())},onKeyDownCapture:r=>{"Enter"===r.key&&(r.preventDefault(),r.stopPropagation(),e.origin&&"dashboard"===e.origin?t.updateToMatchAll(e):t.removeFilter(e),setTimeout(()=>null==n?void 0:n()))},name:"times",size:"md",className:h.cx(u.pillIcon,e.nonApplicable&&u.disabledPillIcon),tooltip:d.t("grafana-scenes.components.adhoc-filter-pill.remove-filter-with-key","Remove filter with key {{keyLabel}}",{keyLabel:w})}),e.origin&&e.readOnly&&L.default.createElement(f.Tooltip,{content:d.t("grafana-scenes.components.adhoc-filter-pill.managed-filter","{{origin}} managed filter",{origin:e.origin}),placement:"bottom"},L.default.createElement(f.Icon,{name:"lock",size:"md",className:u.readOnlyPillIcon})),e.origin&&O&&L.default.createElement(f.Tooltip,{content:x(e.origin).info,placement:"bottom"},L.default.createElement(f.Icon,{name:"info-circle",size:"md",className:u.infoPillIcon})),e.origin&&e.restorable&&!e.readOnly&&L.default.createElement(f.IconButton,{onClick:r=>{r.stopPropagation(),t.restoreOriginalFilter(e)},onKeyDownCapture:r=>{"Enter"===r.key&&(r.preventDefault(),r.stopPropagation(),t.restoreOriginalFilter(e))},name:"history",size:"md",className:kn(e)?u.matchAllPillIcon:u.pillIcon,tooltip:x(e.origin).restore}),e.nonApplicable&&L.default.createElement(f.Tooltip,{content:null!=(l=e.nonApplicableReason)?l:d.t("grafana-scenes.components.adhoc-filter-pill.non-applicable","Filter is not applicable"),placement:"bottom"},L.default.createElement(f.Icon,{name:"info-circle",size:"md",className:u.infoPillIcon})))}return L.default.createElement(cn,{filter:e,controller:t,handleChangeViewMode:_,focusOnWipInputRef:n,populateInputOnEdit:b})}const pn=e=>({combinedFilterPill:h.css({display:"flex",alignItems:"center",background:e.colors.action.selected,borderRadius:e.shape.radius.default,border:`1px solid ${e.colors.border.weak}`,padding:e.spacing(.125,0,.125,1),color:e.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:e.spacing(2.75),...e.typography.bodySmall,fontWeight:e.typography.fontWeightBold,cursor:"pointer","&:hover":{background:e.colors.action.hover}}),readOnlyCombinedFilter:h.css({paddingRight:e.spacing(1),cursor:"text","&:hover":{background:e.colors.action.selected}}),filterReadOnly:h.css({background:e.colors.background.canvas,cursor:"text","&:hover":{background:e.colors.background.canvas}}),pillIcon:h.css({marginInline:e.spacing(.5),cursor:"pointer","&:hover":{color:e.colors.text.primary}}),pillText:h.css({maxWidth:"200px",width:"100%",textOverflow:"ellipsis",overflow:"hidden"}),tooltipText:h.css({textAlign:"center"}),infoPillIcon:h.css({marginInline:e.spacing(.5),cursor:"pointer"}),readOnlyPillIcon:h.css({marginInline:e.spacing(.5)}),matchAllPillIcon:h.css({marginInline:e.spacing(.5),cursor:"pointer",color:e.colors.text.disabled}),disabledPillIcon:h.css({marginInline:e.spacing(.5),cursor:"pointer",color:e.colors.text.disabled,"&:hover":{color:e.colors.text.disabled}}),...La(e)}),hn=i.forwardRef(function({controller:e,onInputClick:t},r){const{wip:n}=e.useState();return i.useLayoutEffect(()=>{n||e.addWip()},[n]),L.default.createElement(cn,{controller:e,filter:n,isAlwaysWip:!0,ref:r,onInputClick:t})}),mn=i.memo(function({controller:e}){var t;const{originFilters:r,filters:n,readOnly:a,collapsible:o,valueRecommendations:s}=e.useState(),l=f.useStyles2(vn),u=f.useTheme2(),[c,p]=i.useState(!0),[m,{height:g}]=v.useMeasure(),b=i.useRef(),y=5*u.spacing.gridSize,w=o&&g>y,S=[...null!=(t=null==r?void 0:r.filter(e=>e.origin))?t:[],...n.filter(e=>!e.hidden)],_=S.length,x=o&&c&&_>0,O=x?S.slice(0,5):S;i.useEffect(()=>{o&&0===_&&c&&p(!1)},[o,_,c]);const A=o&&w&&!c;return L.default.createElement("div",{ref:m,className:h.cx(l.comboboxWrapper,{[l.comboboxFocusOutline]:!a,[l.collapsed]:x,[l.clickableCollapsed]:x}),onClick:()=>{var e,t;o?c?p(!1):null==(t=b.current)||t.call(b):null==(e=b.current)||e.call(b)}},L.default.createElement(f.Icon,{name:"filter",className:l.filterIcon,size:"lg"}),s&&L.default.createElement(s.Component,{model:s}),O.map((t,r)=>L.default.createElement(fn,{key:`${t.origin?"origin-":""}${r}-${t.key}`,filter:t,controller:e,readOnly:a||t.readOnly,focusOnWipInputRef:b.current})),a||x?null:L.default.createElement(hn,{controller:e,ref:b}),L.default.createElement("div",{className:l.rightControls},A&&L.default.createElement(f.Button,{className:l.collapseButton,fill:"text",onClick:e=>{e.stopPropagation(),o&&p(!0)},"aria-label":d.t("grafana-scenes.variables.adhoc-filters-combobox-renderer.collapse-filters","Collapse filters"),"aria-expanded":!c},d.t("grafana-scenes.variables.adhoc-filters-combobox-renderer.collapse","Collapse"),L.default.createElement(f.Icon,{name:"angle-up",size:"md"})),L.default.createElement("div",{className:l.clearAllButton},L.default.createElement(f.Icon,{name:"times",size:"md",onClick:()=>{var t;null==(t=e.clearAll)||t.call(e)}})),x&&L.default.createElement(L.default.Fragment,null,_>5&&L.default.createElement("span",{className:l.moreIndicator},"(+",_-5,")"),L.default.createElement(f.Icon,{name:"angle-down",className:l.dropdownIndicator}))))}),vn=e=>({comboboxWrapper:h.css({display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:e.spacing(1),rowGap:e.spacing(.5),minHeight:e.spacing(4),backgroundColor:e.components.input.background,border:`1px solid ${e.colors.border.strong}`,borderRadius:e.shape.radius.default,paddingInline:e.spacing(1),paddingBlock:e.spacing(.5),flexGrow:1,width:"100%"}),comboboxFocusOutline:h.css({"&:focus-within":{outline:"2px dotted transparent",outlineOffset:"2px",boxShadow:`0 0 0 2px ${e.colors.background.canvas}, 0 0 0px 4px ${e.colors.primary.main}`,transitionTimingFunction:"cubic-bezier(0.19, 1, 0.22, 1)",transitionDuration:"0.2s",transitionProperty:"outline, outline-offset, box-shadow",zIndex:2}}),filterIcon:h.css({color:e.colors.text.secondary,alignSelf:"center"}),collapsed:h.css({flexWrap:"nowrap",overflow:"hidden"}),clickableCollapsed:h.css({cursor:"pointer","&:hover":{borderColor:e.colors.border.medium}}),rightControls:h.css({display:"flex",alignItems:"center",marginLeft:"auto",flexShrink:0}),moreIndicator:h.css({color:e.colors.text.secondary,whiteSpace:"nowrap"}),dropdownIndicator:h.css({color:e.colors.text.secondary,flexShrink:0}),collapseButton:h.css({color:e.colors.text.secondary,padding:0,fontSize:e.typography.bodySmall.fontSize,border:"none","&:hover":{background:"transparent",color:e.colors.text.primary}}),clearAllButton:h.css({fontSize:e.typography.bodySmall.fontSize,cursor:"pointer",color:e.colors.text.secondary,"&:hover":{color:e.colors.text.primary}})}),gn=Object.fromEntries(Object.entries(a.scopeFilterOperatorMap).map(([e,t])=>[t,e]));function bn(e){return new Set(["equals","not-equals","one-of","not-one-of"]).has(e)}function yn(e){return new Set(["regex-match","regex-not-match"]).has(e)}function wn(e,t,r){var n,o;if(!r)return;const i=e.get(r.key);i&&function(e,t){const r=a.scopeFilterOperatorMap[e];if(!bn(r)||!bn(t))return!1;return Sn(r,t)}(i.operator,r.operator)?function(e,t){var r,n,a,o;const i=null!=(r=t.values)?r:[t.value];for(const t of i)(null==(n=e.values)?void 0:n.includes(t))||null==(a=e.values)||a.push(t);if(1===(null==(o=e.values)?void 0:o.length))return;"equals"===t.operator&&e.operator===gn.equals?e.operator=gn["one-of"]:"not-equals"===t.operator&&e.operator===gn["not-equals"]&&(e.operator=gn["not-one-of"])}(i,r):i&&function(e,t){const r=a.scopeFilterOperatorMap[e];if(!yn(r)||!yn(t))return!1;return Sn(r,t)}(i.operator,r.operator)?(i.value+=`|${r.value}`,i.values=[i.value]):i?t.push({key:r.key,operator:gn[r.operator],value:r.value,values:null!=(o=r.values)?o:[r.value],origin:"scope"}):e.set(r.key,{key:r.key,operator:gn[r.operator],value:r.value,values:null!=(n=r.values)?n:[r.value],origin:"scope"})}function Sn(e,t){return!(e.includes("not")&&!t.includes("not")||!e.includes("not")&&t.includes("not"))}class _n{constructor(e){this.model=e}useState(){const e=this.model.useState();return{filters:e.filters,originFilters:e.originFilters,readOnly:e.readOnly,allowCustomValue:e.allowCustomValue,supportsMultiValueOperators:e.supportsMultiValueOperators,onAddCustomValue:e.onAddCustomValue,wip:e._wip,collapsible:e.collapsible,valueRecommendations:this.model.getRecommendations(),drilldownRecommendationsEnabled:e.drilldownRecommendationsEnabled}}async getKeys(e){return this.model._getKeys(e)}async getValuesFor(e){return this.model._getValuesFor(e)}getOperators(){return this.model._getOperators()}updateFilter(e,t){this.model._updateFilter(e,t)}updateFilters(e,t){this.model.updateFilters(e,t)}updateToMatchAll(e){this.model.updateToMatchAll(e)}removeFilter(e){this.model._removeFilter(e)}removeLastFilter(){this.model._removeLastFilter()}handleComboboxBackspace(e){this.model._handleComboboxBackspace(e)}addWip(){this.model._addWip()}restoreOriginalFilter(e){this.model.restoreOriginalFilter(e)}clearAll(){this.model.clearAll()}startProfile(e){const t=Se(this.model);null==t||t.startProfile(e)}startInteraction(e){const t=Rr(this.model);null==t||t.startInteraction(e)}stopInteraction(){const e=Rr(this.model);null==e||e.stopInteraction()}}const xn=[{value:"=",description:"Equals"},{value:"!=",description:"Not equal"},{value:"=|",description:"One of. Use to filter on multiple values.",isMulti:!0},{value:"!=|",description:"Not one of. Use to exclude multiple values.",isMulti:!0},{value:"=~",description:"Matches regex",isRegex:!0},{value:"!~",description:"Does not match regex",isRegex:!0},{value:"<",description:"Less than"},{value:"<=",description:"Less than or equal to"},{value:">",description:"Greater than"},{value:">=",description:"Greater than or equal to"}];class On extends J{constructor(e){var t,r,n,a,i,s;const l=null!=(t=e.$behaviors)?t:[],c=e.drilldownRecommendationsEnabled?new Mn:void 0;c&&l.push(c),super({type:"adhoc",name:null!=(r=e.name)?r:"Filters",filters:[],datasource:null,applyMode:"auto",filterExpression:null!=(i=e.filterExpression)?i:An(e.expressionBuilder,[...null!=(n=e.originFilters)?n:[],...null!=(a=e.filters)?a:[]]),...e,$behaviors:l.length>0?l:void 0}),this._scopedVars={__sceneObject:Sr(this)},this._dataSourceSrv=o.getDataSourceSrv(),this._originalValues=new Map,this._prevScopes=[],this._variableDependency=new za(this,{dependsOnScopes:!0,onReferencedVariableValueChanged:()=>this._updateScopesFilters()}),this._urlSync=new Wr(this),this._debouncedVerifyApplicability=u.debounce(this._verifyApplicability,100),this._activationHandler=()=>(this._debouncedVerifyApplicability(),()=>{var e;null==(e=this.state.originFilters)||e.forEach(e=>{e.restorable&&this.restoreOriginalFilter(e)}),this.setState({applicabilityEnabled:!1})}),this._recommendations=c,"auto"===this.state.applyMode&&function(e){if(e.addActivationHandler(()=>(Mr.add(e),()=>Mr.delete(e))),Pr)return;const t=o.getTemplateSrv();(null==t?void 0:t.getAdhocFilters)&&(Pr=t.getAdhocFilters,t.getAdhocFilters=function(e){var r;if(0===Mr.size)return Pr.call(t,e);const n=o.getDataSourceSrv().getInstanceSettings(e);if(!n)return[];for(const e of Mr.values())if((null==(r=e.state.datasource)?void 0:r.uid)===n.uid)return e.state.filters;return[]}.bind(t))}(this),null==(s=this.state.originFilters)||s.forEach(e=>{var t;this._originalValues.set(`${e.key}-${e.origin}`,{operator:e.operator,value:null!=(t=e.values)?t:[e.value]})}),this.addActivationHandler(this._activationHandler)}getRecommendations(){return this._recommendations}_updateScopesFilters(){var e,t;const r=uo.getScopes(this);if(!r||!r.length)return void this.setState({originFilters:null==(e=this.state.originFilters)?void 0:e.filter(e=>"scope"!==e.origin)});const n=function(e){const t=new Map,r=[],n=e.flatMap(e=>e.spec.filters);for(const e of n)wn(t,r,e);return[...t.values(),...r]}(r);if(!n.length)return;let a=n;const o=[],i=[];if(a.forEach(e=>{var t;this._originalValues.set(`${e.key}-${e.origin}`,{value:null!=(t=e.values)?t:[e.value],operator:e.operator})}),null==(t=this.state.originFilters)||t.forEach(e=>{"scope"===e.origin?o.push(e):i.push(e)}),this._prevScopes.length)return this.setState({originFilters:[...a,...i]}),this._prevScopes=r,void this._debouncedVerifyApplicability();const s=o.filter(e=>e.restorable),l=s.map(e=>e.key),u=n.map(e=>e.key);a=[...s.filter(e=>u.includes(e.key)),...n.filter(e=>!l.includes(e.key))],this.setState({originFilters:[...a,...i]}),this._prevScopes=r,this._debouncedVerifyApplicability()}async verifyApplicabilityAndStoreRecentFilter(e){var t;await this._verifyApplicability(),null==(t=this._recommendations)||t.storeRecentFilter(e)}setState(e){var t,r;let n=!1;if((e.filters&&e.filters!==this.state.filters||e.originFilters&&e.originFilters!==this.state.originFilters)&&!e.filterExpression){const a=null!=(t=e.filters)?t:this.state.filters,o=null!=(r=e.originFilters)?r:this.state.originFilters;e.filterExpression=An(this.state.expressionBuilder,[...null!=o?o:[],...a]),n=e.filterExpression!==this.state.filterExpression}super.setState(e),n&&this.publishEvent(new Ue(this),!0)}updateFilters(e,t){var r;let n,a=!1;e&&e!==this.state.filters&&(n=An(this.state.expressionBuilder,[...null!=(r=this.state.originFilters)?r:[],...e]),a=n!==this.state.filterExpression),super.setState({filters:e,filterExpression:n}),(a&&!0!==(null==t?void 0:t.skipPublish)||(null==t?void 0:t.forcePublish))&&this.publishEvent(new Ue(this),!0)}restoreOriginalFilter(e){const t={matchAllFilter:!1,restorable:!1};if(e.restorable){const r=this._originalValues.get(`${e.key}-${e.origin}`);if(!r)return;t.value=null==r?void 0:r.value[0],t.values=null==r?void 0:r.value,t.valueLabels=null==r?void 0:r.value,t.operator=null==r?void 0:r.operator,t.nonApplicable=null==r?void 0:r.nonApplicable;const n=Se(this);null==n||n.startProfile("filter_restored"),this._updateFilter(e,t)}}clearAll(){var e;null==(e=this.state.originFilters)||e.forEach(e=>{e.restorable&&this.restoreOriginalFilter(e)}),this.setState({filters:[]})}getValue(e){if("originFilters"===e){const e=this.state.originFilters;return e&&0!==(null==e?void 0:e.length)?[...e.map(e=>Gr(e).map(Ma).join("|").concat(`#${e.origin}`))]:[]}return this.state.filterExpression}_updateFilter(e,t){var r,n;const{originFilters:a,filters:o,_wip:i}=this.state;if(e.origin){const n=this._originalValues.get(`${e.key}-${e.origin}`),o=t.values||(t.value?[t.value]:void 0);o&&!u.isEqual(o,null==n?void 0:n.value)||t.operator&&t.operator!==(null==n?void 0:n.operator)?t.restorable=!0:o&&u.isEqual(o,null==n?void 0:n.value)&&(t.restorable=!1);const i=null!=(r=null==a?void 0:a.map(r=>r===e?{...r,...t}:r))?r:[];return void this.setState({originFilters:i})}if(e===i)return void("value"in t&&""!==t.value?(this.setState({filters:[...o,{...i,...t}],_wip:void 0}),this.verifyApplicabilityAndStoreRecentFilter({...i,...t})):this.setState({_wip:{...e,...t}}));const s=this.state.filters.map(r=>r===e?{...r,...t}:r);this.setState({filters:s}),null==(n=this._recommendations)||n.storeRecentFilter({...e,...t})}updateToMatchAll(e){this._updateFilter(e,{operator:"=~",value:".*",values:[".*"],valueLabels:["All"],matchAllFilter:!0,nonApplicable:!1,restorable:!0})}_removeFilter(e){if(e===this.state._wip)return void this.setState({_wip:void 0});const t=Se(this);null==t||t.startProfile(Me),this.setState({filters:this.state.filters.filter(t=>t!==e)}),this._debouncedVerifyApplicability()}_removeLastFilter(){const e=this.state.filters.at(-1);e&&this._removeFilter(e)}_handleComboboxBackspace(e){var t;if(this.state.filters.length){let t=this.state.filters.length-1;e!==this.state._wip&&(t=-1),this.setState({filters:this.state.filters.reduce((r,n,a)=>a!==t||n.readOnly?n===e?r:[...r,n]:[...r,{...n,forceEdit:!0}],[])})}else if(null==(t=this.state.originFilters)?void 0:t.length){let t=this.state.originFilters.length-1;e!==this.state._wip&&(t=-1),this.setState({originFilters:this.state.originFilters.reduce((r,n,a)=>a!==t||n.readOnly?n===e?r:[...r,n]:[...r,{...n,forceEdit:!0}],[])})}}async getFiltersApplicabilityForQueries(e,t){const r=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!r||!r.getDrilldownsApplicability)return;const n=uo.getTimeRange(this).state.value;return await r.getDrilldownsApplicability({filters:e,queries:t,timeRange:n,scopes:uo.getScopes(this),...vr(this)})}async _verifyApplicability(){var e,t,r;const n=[...this.state.filters,...null!=(e=this.state.originFilters)?e:[]],a=this.state.useQueriesAsFilterForOptions?Ca(this):void 0,o=await this.getFiltersApplicabilityForQueries(n,null!=a?a:[]);if(!o)return;const i=new Map;o.forEach(e=>{i.set(`${e.key}${e.origin?`-${e.origin}`:""}`,e)});const s={applicabilityEnabled:!0,filters:[...this.state.filters],originFilters:[...null!=(t=this.state.originFilters)?t:[]]};s.filters.forEach(e=>{const t=i.get(e.key);t&&(e.nonApplicable=!t.applicable,e.nonApplicableReason=t.reason)}),null==(r=s.originFilters)||r.forEach(e=>{const t=i.get(`${e.key}-${e.origin}`);if(t){e.matchAllFilter||(e.nonApplicable=!t.applicable,e.nonApplicableReason=t.reason);const r=this._originalValues.get(`${e.key}-${e.origin}`);r&&(r.nonApplicable=!t.applicable,r.nonApplicableReason=null==t?void 0:t.reason)}}),this.setState(s)}async _getKeys(e){var t,r,n,a,o;const i=await(null==(r=(t=this.state).getTagKeysProvider)?void 0:r.call(t,this,e));if(i&&i.replace)return Da(i.values).map(En);if(this.state.defaultKeys)return this.state.defaultKeys.map(En);const s=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!s||!s.getTagKeys)return[];const l=null!=(a=null==(n=this.state.originFilters)?void 0:n.filter(e=>!e.nonApplicable))?a:[],u=this.state.filters.filter(t=>t.key!==e&&!t.nonApplicable).concat(null!=(o=this.state.baseFilters)?o:[]).concat(l),c=uo.getTimeRange(this).state.value,d=this.state.useQueriesAsFilterForOptions?Ca(this):void 0,f=await s.getTagKeys({filters:u,queries:d,timeRange:c,scopes:uo.getScopes(this),...vr(this)});Fa(f)&&this.setState({error:f.error.message});let p=Da(f);i&&(p=p.concat(Da(i.values)));const h=this.state.tagKeyRegexFilter;return h&&(p=p.filter(e=>e.text.match(h))),p.map(En)}async _getValuesFor(e){var t,r,n,a;const o=await(null==(r=(t=this.state).getTagValuesProvider)?void 0:r.call(t,this,e));if(o&&o.replace)return Da(o.values).map(En);const i=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!i||!i.getTagValues)return[];const s=null!=(a=null==(n=this.state.originFilters)?void 0:n.filter(t=>t.key!==e.key))?a:[],l=this.state.filters.filter(t=>t.key!==e.key).concat(s),u=uo.getTimeRange(this).state.value,c=this.state.useQueriesAsFilterForOptions?Ca(this):void 0;let d=uo.getScopes(this);"scope"===e.origin&&(d=null==d?void 0:d.map(t=>{var r;return{...t,spec:{...t.spec,filters:null==(r=t.spec.filters)?void 0:r.filter(t=>t.key!==e.key)}}}));const f=await i.getTagValues({key:e.key,filters:l,timeRange:u,queries:c,scopes:d,...vr(this)});Fa(f)&&this.setState({error:f.error.message});let p=Da(f);return o&&(p=p.concat(Da(o.values))),p.map(En)}_addWip(){this.setState({_wip:{key:"",value:"",operator:"=",condition:""}})}_getOperators(){const{supportsMultiValueOperators:e,allowCustomValue:t=!0}=this.state;return xn.filter(({isMulti:r,isRegex:n})=>!(!e&&r)&&!(!t&&n)).map(({value:e,description:t})=>({label:e,value:e,description:t}))}}function An(e,t){var r;return(null!=e?e:Aa)(null!=(r=null==t?void 0:t.filter(e=>In(e)))?r:[])}On.Component=function({model:e}){const{filters:t,readOnly:r,addFilterButtonText:n}=e.useState(),a=f.useStyles2(Rn),o=i.useMemo(()=>"combobox"===e.state.layout?new _n(e):void 0,[e]);if(o)return L.default.createElement(mn,{controller:o});return L.default.createElement("div",{className:a.wrapper},t.filter(e=>!e.hidden).map((t,r)=>L.default.createElement(L.default.Fragment,{key:r},L.default.createElement(Vr,{filter:t,model:e}))),!r&&L.default.createElement(Br,{model:e,key:"'builder",addFilterButtonText:n}))};const Rn=e=>({wrapper:h.css({display:"flex",flexWrap:"wrap",alignItems:"flex-end",columnGap:e.spacing(2),rowGap:e.spacing(1)})});function En(e){const{text:t,value:r}=e,n={label:String(t),value:String(null!=r?r:t)};return"group"in e&&(n.group=e.group),"meta"in e&&(n.meta=e.meta),n}function kn(e){return"=~"===e.operator&&".*"===e.value}function Cn(e){return""!==e.key&&""!==e.operator&&""!==e.value}function In(e){return!e.nonApplicable}function Pn(e){const t=xn.find(t=>t.value===e);return!!t&&Boolean(t.isMulti)}class Mn extends J{constructor(e={}){super(e),this._activationHandler=()=>{const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0?this._verifyRecentFiltersApplicability(t):this.setState({recentFilters:[]}),this._fetchRecommendedDrilldowns();const r=uo.lookupVariable(Xe,this._adHocFilter);let n,o;return r instanceof Cr&&this._subs.add(n=r.subscribeToState((e,t)=>{if(e.scopes!==t.scopes){const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0&&this._verifyRecentFiltersApplicability(t),this._fetchRecommendedDrilldowns()}})),this._subs.add(o=this._adHocFilter.subscribeToState((e,t)=>{if(e.filters!==t.filters){const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0&&this._verifyRecentFiltersApplicability(t),this._fetchRecommendedDrilldowns()}})),()=>{null==n||n.unsubscribe(),null==o||o.unsubscribe()}},this.addActivationHandler(this._activationHandler)}get _adHocFilter(){if(!(this.parent instanceof On))throw new Error("AdHocFiltersRecommendations must be a child of AdHocFiltersVariable");return this.parent}get _scopedVars(){return{__sceneObject:Sr(this._adHocFilter)}}_getStorageKey(){var e,t;return`grafana.filters.recent.${null!=(t=null==(e=this._adHocFilter.state.datasource)?void 0:e.uid)?t:"default"}`}async _fetchRecommendedDrilldowns(){var e;const t=this._adHocFilter,r=await Dt(t.state.datasource,this._scopedVars);if(!r||!r.getRecommendedDrilldowns)return;const n=t.state.useQueriesAsFilterForOptions?Ca(t):void 0,a=uo.getTimeRange(t).state.value,o=uo.getScopes(t),i=[...null!=(e=t.state.originFilters)?e:[],...t.state.filters],s=zt(t),l=null==s?void 0:s.dashboardUID;try{const e=await r.getRecommendedDrilldowns({timeRange:a,dashboardUid:l,queries:null!=n?n:[],filters:i,scopes:o});(null==e?void 0:e.filters)&&this.setState({recommendedFilters:e.filters})}catch(e){console.error("Failed to fetch recommended drilldowns:",e)}}async _verifyRecentFiltersApplicability(e){const t=this._adHocFilter,r=t.state.useQueriesAsFilterForOptions?Ca(t):void 0,n=await t.getFiltersApplicabilityForQueries(e,null!=r?r:[]);if(!n)return void this.setState({recentFilters:e.slice(-3)});const a=new Map;n.forEach(e=>{a.set(e.key,!1!==e.applicable)});const o=e.filter(e=>{const t=a.get(e.key);return void 0===t||!0===t}).slice(-3);this.setState({recentFilters:o})}storeRecentFilter(e){const t=this._getStorageKey(),r=a.store.get(t),n=[...r?JSON.parse(r):[],e].slice(-10);a.store.set(t,JSON.stringify(n));const o=this._adHocFilter.state.filters.find(t=>t.key===e.key&&!Boolean(t.nonApplicable));o&&!Boolean(o.nonApplicable)&&this.setState({recentFilters:n.slice(-3)})}addFilterToParent(e){this._adHocFilter.updateFilters([...this._adHocFilter.state.filters,e])}}Mn.Component=function({model:e}){const{recentFilters:t,recommendedFilters:r}=e.useState(),{filters:n}=e._adHocFilter.useState(),a=null==t?void 0:t.map(t=>({label:`${t.key} ${t.operator} ${t.value}`,onClick:()=>{n.some(e=>e.key===t.key&&e.value===t.value)||e.addFilterToParent(t)}})),o=null==r?void 0:r.map(t=>({label:`${t.key} ${t.operator} ${t.value}`,onClick:()=>{n.some(e=>e.key===t.key&&e.value===t.value)||e.addFilterToParent(t)}}));return L.default.createElement(Er,{recentDrilldowns:a,recommendedDrilldowns:o})};class Tn extends J{constructor(e={}){super(e),this._activationHandler=()=>{const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0?this._verifyRecentGroupingsApplicability(t):this.setState({recentGrouping:[]}),this._fetchRecommendedDrilldowns();const r=uo.lookupVariable(Xe,this._groupBy);let n,o;return r instanceof Cr&&this._subs.add(n=r.subscribeToState((e,t)=>{if(e.scopes!==t.scopes){const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0&&this._verifyRecentGroupingsApplicability(t),this._fetchRecommendedDrilldowns()}})),this._subs.add(o=this._groupBy.subscribeToState((e,t)=>{if(e.value!==t.value){const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0&&this._verifyRecentGroupingsApplicability(t),this._fetchRecommendedDrilldowns()}})),()=>{null==n||n.unsubscribe(),null==o||o.unsubscribe()}},this.addActivationHandler(this._activationHandler)}get _groupBy(){if(!(this.parent instanceof Nn))throw new Error("GroupByRecommendations must be a child of GroupByVariable");return this.parent}get _scopedVars(){return{__sceneObject:Sr(this._groupBy)}}_getStorageKey(){var e,t;return`grafana.grouping.recent.${null!=(t=null==(e=this._groupBy.state.datasource)?void 0:e.uid)?t:"default"}`}async _fetchRecommendedDrilldowns(){const e=await Dt(this._groupBy.state.datasource,this._scopedVars);if(!e||!e.getRecommendedDrilldowns)return;const t=Ca(this._groupBy),r=uo.getTimeRange(this._groupBy).state.value,n=uo.getScopes(this._groupBy),a=Array.isArray(this._groupBy.state.value)?this._groupBy.state.value.map(e=>String(e)):this._groupBy.state.value?[String(this._groupBy.state.value)]:[],o=zt(this._groupBy),i=null==o?void 0:o.dashboardUID;try{const o=await e.getRecommendedDrilldowns({timeRange:r,dashboardUid:i,queries:t,groupByKeys:a,scopes:n});(null==o?void 0:o.groupByKeys)&&this.setState({recommendedGrouping:o.groupByKeys.map(e=>({value:e,text:e}))})}catch(e){console.error("Failed to fetch recommended drilldowns:",e)}}async _verifyRecentGroupingsApplicability(e){const t=Ca(this._groupBy),r=e.map(e=>String(e.value)),n=await this._groupBy.getGroupByApplicabilityForQueries(r,t);if(!n)return void this.setState({recentGrouping:e.slice(-3)});const a=new Map;n.forEach(e=>{a.set(e.key,!1!==e.applicable)});const o=e.filter(e=>{const t=a.get(String(e.value));return void 0===t||!0===t}).slice(-3);this.setState({recentGrouping:o})}storeRecentGrouping(e){if(0===e.length)return;const t=this._getStorageKey(),r=a.store.get(t),n=[...(r?JSON.parse(r):[]).filter(t=>!e.includes(String(t.value))),...e.map(e=>({value:e,text:e}))].slice(-10);a.store.set(t,JSON.stringify(n)),this.setState({recentGrouping:n.slice(-3)})}addValueToParent(e,t){const r=u.isArray(this._groupBy.state.value)?this._groupBy.state.value:[this._groupBy.state.value],n=u.isArray(this._groupBy.state.text)?this._groupBy.state.text.map(String):[String(this._groupBy.state.text)];r.includes(e)||this._groupBy.changeValueTo([...r.filter(e=>""!==e),e],[...n.filter(e=>""!==e),null!=t?t:String(e)],!0)}}Tn.Component=function({model:e}){const{recentGrouping:t,recommendedGrouping:r}=e.useState(),n=null==t?void 0:t.map(t=>({label:`${t.value}`,onClick:()=>{var r;e.addValueToParent(t.value,null!=(r=t.text)?r:String(t.value))}})),a=null==r?void 0:r.map(t=>({label:`${t.value}`,onClick:()=>{var r;e.addValueToParent(t.value,null!=(r=t.text)?r:String(t.value))}}));return L.default.createElement(Er,{recentDrilldowns:n,recommendedDrilldowns:a})};class Nn extends vt{constructor(e){var t;const r=null!=(t=e.$behaviors)?t:[],n=e.drilldownRecommendationsEnabled?new Tn:void 0;n&&r.push(n),super({isMulti:!0,name:"",value:[],text:[],options:[],datasource:null,baseFilters:[],applyMode:"auto",layout:"horizontal",type:"groupby",...e,noValueOnClear:!0,$behaviors:r.length>0?r:void 0}),this.isLazy=!0,this._urlSync=new hr(this),this._scopedVars={__sceneObject:Sr(this)},this._activationHandler=()=>(this._verifyApplicability(),this.state.defaultValue&&this.checkIfRestorable(this.state.value)&&this.setState({restorable:!0}),()=>{this.state.defaultValue&&this.restoreDefaultValues(),this.setState({applicabilityEnabled:!1})}),this._getKeys=async e=>{var t,r,n;const a=await(null==(r=(t=this.state).getTagKeysProvider)?void 0:r.call(t,this,null));if(a&&a.replace)return a.values;if(this.state.defaultOptions)return this.state.defaultOptions.concat(Da(null!=(n=null==a?void 0:a.values)?n:[]));if(!e.getTagKeys)return[];const o=Ca(this),i=this.state.baseFilters||[],s=uo.getTimeRange(this).state.value,l=await e.getTagKeys({filters:i,queries:o,timeRange:s,scopes:uo.getScopes(this),...vr(this)});Fa(l)&&this.setState({error:l.error.message});let u=Da(l);a&&(u=u.concat(Da(a.values)));const c=this.state.tagKeyRegexFilter;return c&&(u=u.filter(e=>e.text.match(c))),u},this._recommendations=n,this.state.defaultValue&&this.changeValueTo(this.state.defaultValue.value,this.state.defaultValue.text,!1),"auto"===this.state.applyMode&&this.addActivationHandler(()=>(Bt.add(this),()=>Bt.delete(this))),this.addActivationHandler(this._activationHandler)}validateAndUpdate(){return this.getValueOptions({}).pipe(s.map(e=>(this._updateValueGivenNewOptions(e),{})))}_updateValueGivenNewOptions(e){const{value:t,text:r}=this.state,n={options:e,loading:!1,value:null!=t?t:[],text:null!=r?r:[]};this.setState(n)}getValueOptions(e){return this.state.defaultOptions?s.of(this.state.defaultOptions.map(e=>({label:e.text,value:String(e.value),group:e.group}))):(this.setState({loading:!0,error:null}),s.from(Dt(this.state.datasource,this._scopedVars)).pipe(s.mergeMap(e=>s.from(this._getKeys(e)).pipe(s.tap(e=>{Fa(e)&&this.setState({error:e.error.message})}),s.map(e=>Da(e)),s.take(1),s.mergeMap(e=>{const t=e.map(e=>({label:e.text,value:e.value?String(e.value):e.text,group:e.group}));return s.of(t)})))))}getRecommendations(){return this._recommendations}getApplicableKeys(){const{value:e,keysApplicability:t}=this.state,r=u.isArray(e)?e.map(String):e?[String(e)]:[];if(!t||0===t.length)return r;return r.filter(e=>{const r=t.find(t=>t.key===e);return!r||!1!==r.applicable})}async getGroupByApplicabilityForQueries(e,t){const r=await Dt(this.state.datasource,this._scopedVars);if(!r.getDrilldownsApplicability)return;const n=uo.getTimeRange(this).state.value;return await r.getDrilldownsApplicability({groupByKeys:Array.isArray(e)?e.map(e=>String(e)):e?[String(e)]:[],queries:t,timeRange:n,scopes:uo.getScopes(this),...vr(this)})}async _verifyApplicability(){const e=Ca(this),t=this.state.value,r=await this.getGroupByApplicabilityForQueries(t,e);r&&(u.isEqual(r,this.state.keysApplicability)?this.setState({applicabilityEnabled:!0}):(this.setState({keysApplicability:null!=r?r:void 0,applicabilityEnabled:!0}),this.publishEvent(new Ue(this),!0)))}checkIfRestorable(e){var t,r,n,a;const o=u.isArray(null==(t=this.state.defaultValue)?void 0:t.value)?null==(r=this.state.defaultValue)?void 0:r.value:(null==(n=this.state.defaultValue)?void 0:n.value)?[null==(a=this.state.defaultValue)?void 0:a.value]:[],i=u.isArray(e)?e:[e];return i.length!==o.length||!u.isEqual(i,o)}restoreDefaultValues(){this.setState({restorable:!1}),this.state.defaultValue&&this.changeValueTo(this.state.defaultValue.value,this.state.defaultValue.text,!0)}async _verifyApplicabilityAndStoreRecentGrouping(){if(await this._verifyApplicability(),!this._recommendations)return;const e=this.getApplicableKeys();0!==e.length&&this._recommendations.storeRecentGrouping(e)}getDefaultMultiState(e){return{value:[],text:[]}}}Nn.Component=function({model:e}){var t,r;const{value:n,text:a,key:o,isMulti:l=!0,maxVisibleValues:c,noValueOnClear:p,options:m,includeAll:v,allowCustomValue:g=!0,defaultValue:b,keysApplicability:y,drilldownRecommendationsEnabled:w}=e.useState(),S=e.getRecommendations(),_=f.useStyles2(Vn),x=i.useMemo(()=>{const e=u.isArray(n)?n:[n],t=u.isArray(a)?a:[a];return e.map((e,r)=>{var n;return{value:e,label:String(null!=(n=t[r])?n:e)}})},[n,a]),[O,A]=i.useState(!1),[R,E]=i.useState(!1),[k,C]=i.useState(""),[I,P]=i.useState(x),M=i.useMemo(()=>or(m,v),[m,v]),T=void 0!==b;i.useEffect(()=>{P(x)},[x]);const N=(t,{action:r})=>"input-change"===r?(C(t),e.onSearchChange&&e.onSearchChange(t),t):"input-blur"===r?(C(""),""):k,D=i.useMemo(()=>ja(M(k).map(Ln)),[M,k]),F=e=>L.default.createElement("div",{className:_.selectWrapper},e),j=l?L.default.createElement(Dn,{condition:null!=(t=e.state.wideInput)&&t,wrapper:F},L.default.createElement(f.MultiSelect,{"aria-label":d.t("grafana-scenes.variables.group-by-variable-renderer.aria-label-group-by-selector","Group by selector"),"data-testid":`GroupBySelect-${o}`,id:o,placeholder:d.t("grafana-scenes.variables.group-by-variable-renderer.placeholder-group-by-label","Group by label"),width:"auto",className:h.cx(w&&_.selectStylesInWrapper),allowCustomValue:g,inputValue:k,value:I,noMultiValueWrap:!0,maxVisibleValues:null!=c?c:5,tabSelectsValue:!1,virtualized:!0,options:D,filterOption:Fn,closeMenuOnSelect:!1,isOpen:R,isClearable:!0,hideSelectedOptions:!1,isLoading:O,components:{Option:dr,Menu:jn,...T?{IndicatorsContainer:()=>L.default.createElement(_r,{model:e})}:{},MultiValueContainer:({innerProps:e,children:t})=>L.default.createElement(Or,{innerProps:e,keysApplicability:y},t)},onInputChange:N,onBlur:()=>{e.changeValueTo(I.map(e=>e.value),I.map(e=>e.label),!0);const t=e.checkIfRestorable(I.map(e=>e.value));t!==e.state.restorable&&e.setState({restorable:t}),e._verifyApplicabilityAndStoreRecentGrouping()},onChange:(t,r)=>{"clear"===r.action&&p&&e.changeValueTo([],void 0,!0),P(t),C("")},onOpenMenu:async()=>{const t=Rr(e);null==t||t.startInteraction(De),A(!0),await s.lastValueFrom(e.validateAndUpdate()),A(!1),E(!0),null==t||t.stopInteraction()},onCloseMenu:()=>{E(!1)}})):L.default.createElement(Dn,{condition:null!=(r=e.state.wideInput)&&r,wrapper:F},L.default.createElement(f.Select,{"aria-label":d.t("grafana-scenes.variables.group-by-variable-renderer.aria-label-group-by-selector","Group by selector"),"data-testid":`GroupBySelect-${o}`,id:o,placeholder:d.t("grafana-scenes.variables.group-by-variable-renderer.placeholder-group-by-label","Group by label"),width:"auto",inputValue:k,value:I&&I.length>0?I:null,allowCustomValue:g,noMultiValueWrap:!0,maxVisibleValues:null!=c?c:5,tabSelectsValue:!1,virtualized:!0,options:D,filterOption:Fn,closeMenuOnSelect:!0,isOpen:R,isClearable:!0,hideSelectedOptions:!1,noValueOnClear:!0,isLoading:O,components:{Menu:jn},onInputChange:N,onChange:(t,r)=>{if("clear"===r.action)return P([]),void(p&&e.changeValueTo([]));(null==t?void 0:t.value)&&(P([t]),e.changeValueTo([t.value],t.label?[t.label]:void 0))},onOpenMenu:async()=>{const t=Rr(e);null==t||t.startInteraction(De),A(!0),await s.lastValueFrom(e.validateAndUpdate()),A(!1),E(!0),null==t||t.stopInteraction()},onCloseMenu:()=>{E(!1)}}));if(!S)return j;return L.default.createElement("div",{className:_.wrapper},L.default.createElement("div",{className:_.recommendations},L.default.createElement(S.Component,{model:S})),j)};const Dn=({condition:e,wrapper:t,children:r})=>e?t(r):L.default.createElement(L.default.Fragment,null,r),Fn=()=>!0;function jn(e){return L.default.createElement(er.Menu,{...e},L.default.createElement("div",{style:{minWidth:"220px"}},e.children))}function Ln(e){const{label:t,value:r,group:n}=e,a={label:t,value:r};return n&&(a.group=n),a}const Vn=e=>({selectWrapper:h.css({display:"flex",minWidth:0,width:"100%"}),fullWidthMultiSelect:h.css({width:"100%","& [data-testid]":{gridAutoColumns:"max-content",justifyItems:"start"}}),wrapper:h.css({display:"flex"}),selectStylesInWrapper:h.css({borderTopLeftRadius:0,borderBottomLeftRadius:0,border:`1px solid ${e.colors.border.strong}`,borderLeft:"none"}),recommendations:h.css({display:"flex",alignItems:"center",paddingInline:e.spacing(.5),borderTop:`1px solid ${e.colors.border.strong}`,borderBottom:`1px solid ${e.colors.border.strong}`,backgroundColor:e.components.input.background,"& button":{borderRadius:0,height:"100%",margin:0,paddingInline:e.spacing(.5)}})});function zn({data:e,showAll:t,seriesLimit:r,onShowAllSeries:n}){const a=f.useStyles2(Bn),o=null==e?void 0:e.series.length;if(void 0===o||o<r)return null;const i=t?"Restore limit":`Show all ${o}`;return L.default.createElement("div",{className:a.timeSeriesDisclaimer},!t&&L.default.createElement("span",{className:a.warningMessage},L.default.createElement(f.Icon,{title:d.t("grafana-scenes.components.viz-panel-series-limit.warning-message","Showing only {{seriesLimit}} series",{seriesLimit:r}),name:"exclamation-triangle","aria-hidden":"true"})),L.default.createElement(f.Tooltip,{content:d.t("grafana-scenes.components.viz-panel-series-limit.content-rendering-series-single-panel-impact-performance","Rendering too many series in a single panel may impact performance and make data harder to read.")},L.default.createElement(f.Button,{variant:"secondary",size:"sm",onClick:n},i)))}const Bn=e=>({timeSeriesDisclaimer:h.css({label:"time-series-disclaimer",display:"flex",alignItems:"center",gap:e.spacing(1)}),warningMessage:h.css({display:"flex",alignItems:"center",gap:e.spacing(.5),color:e.colors.warning.main,fontSize:e.typography.bodySmall.fontSize})});function Un(){const e=i.useRef(void 0);return null!=e.current||(e.current=u.uniqueId()),e.current}const Wn=L.default.forwardRef(({children:e,onLoad:t,onChange:r,className:n,...a},o)=>{const s=Un(),{hideEmpty:l}=f.useStyles2(Gn),[u,c]=i.useState(!1),[p,h]=i.useState(!1),m=i.useRef(null);return i.useImperativeHandle(o,()=>m.current),v.useEffectOnce(()=>{Wn.addCallback(s,e=>{!u&&e.isIntersecting&&(c(!0),null==t||t()),h(e.isIntersecting),null==r||r(e.isIntersecting)});const e=m.current;return e&&Wn.observer.observe(e),()=>{e&&Wn.observer.unobserve(e),delete Wn.callbacks[s],0===Object.keys(Wn.callbacks).length&&Wn.observer.disconnect()}}),L.default.createElement("div",{id:s,ref:m,className:`${l} ${n}`,...a},u?L.default.createElement(Hn.Provider,{value:p},e):d.t("grafana-scenes.components.lazy-loader.placeholder"," "))});function Gn(){return{hideEmpty:h.css({"&:empty":{display:"none"}})}}Wn.displayName="LazyLoader",Wn.callbacks={},Wn.addCallback=(e,t)=>Wn.callbacks[e]=t,Wn.observer=new IntersectionObserver(e=>{for(const t of e)"function"==typeof Wn.callbacks[t.target.id]&&Wn.callbacks[t.target.id](t)},{rootMargin:"100px"});const Hn=L.default.createContext(!0);function qn(e,t){if(t)return t;let r=e.error?e.error.message:void 0;return e.errors&&(r=e.errors.map(e=>e.message).join(", ")),r}const $n=h.css({position:"relative",width:"100%",height:"100%"}),Kn=h.css({position:"absolute",width:"100%",height:"100%"}),Qn=e=>({ok:h.css({color:e.colors.success.text}),pending:h.css({color:e.colors.warning.text}),alerting:h.css({color:e.colors.error.text})}),Yn="hideSeriesFrom",Zn=a.isSystemOverrideWithRef(Yn);function Jn(e,t=a.ByNamesMatcherMode.exclude,r){return r=null!=r?r:{id:"custom.hideFrom",value:{viz:!0,legend:!1,tooltip:!0}},{__systemRef:Yn,matcher:{id:a.FieldMatcherID.byNames,options:{mode:t,names:e,prefix:t===a.ByNamesMatcherMode.exclude?"All except:":void 0,readOnly:!0}},properties:[{...r,value:{viz:!0,legend:!1,tooltip:!0}}]}}const Xn=(e,t,r=a.ByNamesMatcherMode.exclude)=>{const n=e.properties.find(e=>"custom.hideFrom"===e.id),o=ea(e),i=o.findIndex(e=>e===t);return i<0?o.push(t):o.splice(i,1),Jn(o,r,n)},ea=e=>{var t;const r=null==(t=e.matcher.options)?void 0:t.names;return Array.isArray(r)?[...r]:[]},ta=(e,t)=>ea(e).length===ra(t).length,ra=(e,t)=>{const r=new Set;for(const n of e)for(const o of n.fields){if(o.type!==a.FieldType.number)continue;const i=a.getFieldDisplayName(o,n,e);i!==t&&r.add(i)}return Array.from(r)},na=(e,t)=>{var r;let n=[];for(const o of e){const e=o.properties.find(e=>"custom.hideFrom"===e.id);if(void 0!==e&&!0===(null==(r=e.value)?void 0:r.legend)){const e=a.fieldMatchers.get(o.matcher.id).get(o.matcher.options);for(const r of t)for(const o of r.fields){if(o.type!==a.FieldType.number)continue;const i=a.getFieldDisplayName(o,r,t);e(o,r,t)&&n.push(i)}}}return n},aa=(e,t)=>({matcher:{id:a.FieldMatcherID.byName,options:e},properties:[oa(t)]}),oa=e=>({id:"color",value:{mode:a.FieldColorModeId.Fixed,fixedColor:e}});class ia extends J{constructor(e){super({...e,sync:e.sync||c.DashboardCursorSync.Off}),this.getEventsBus=e=>{if(!this.parent)throw new Error("EnableCursorSync cannot be used as a standalone scene object");return new sa(this.parent,e)}}getEventsScope(){if(!this.parent)throw new Error("EnableCursorSync cannot be used as a standalone scene object");return this.state.key}}class sa{constructor(e,t){this._source=e,this._eventsOrigin=t}publish(e){e.origin=this,this._eventsOrigin.publishEvent(e,!0)}getStream(e){return new s.Observable(t=>{const r=this._source.subscribeToEvent(e,e=>{t.next(e)});return()=>r.unsubscribe()})}subscribe(e,t){return this.getStream(e).pipe().subscribe(t)}removeAllListeners(){}newScopedBus(e,t){throw new Error("For internal use only")}}const la=class e extends J{constructor({enabled:e=!1}){super({enabled:e}),this.timerId=void 0,this._activationHandler=()=>(this.state.enabled&&this.enable(),()=>{window.clearInterval(this.timerId),this.timerId=void 0}),this.addActivationHandler(this._activationHandler)}enable(){window.clearInterval(this.timerId),this.timerId=void 0,this.timerId=window.setInterval(()=>{const e=uo.findAllObjects(this.getRoot(),e=>e instanceof ma);for(const t of e)t.forceRender()},e.REFRESH_RATE),this.setState({enabled:!0})}disable(){window.clearInterval(this.timerId),this.timerId=void 0,this.setState({enabled:!1})}get isEnabled(){return this.state.enabled}};la.REFRESH_RATE=100;let ua=la;class ca extends J{constructor(e={}){super({...e}),this._isTracking=!1,this._activeQueries=new Map,this.addActivationHandler(()=>this._onActivate())}_onActivate(){var e,t;let r;try{r=uo.getAncestor(this,ma)}catch(e){return void pe(0,0)}if(!r)return void pe();if(!r.state.key)return void pe();this._panelKey=r.state.key,this._panelId=String(r.getLegacyPanelId()),this._pluginId=r.state.pluginId;const n=r.getPlugin();return this._pluginVersion=null==(t=null==(e=null==n?void 0:n.meta)?void 0:e.info)?void 0:t.version,this._subs.add(r.subscribeToState((e,t)=>{this._handlePanelStateChange(r,e,t)})),()=>{this._cleanup()}}_handlePanelStateChange(e,t,r){t.pluginId!==r.pluginId&&this._onPluginChange(e,t.pluginId)}onQueryStarted(e,t,r){if(!this._panelKey)return null;this._activeQueries.set(r,{entry:t,startTime:e});const n=Ct("query");return Mt().notifyPanelOperationStart({operationId:n,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,pluginVersion:this._pluginVersion,operation:"query",timestamp:e,metadata:{queryId:r,queryType:t.type}}),(e,a)=>{if(!this._panelKey)return;const o=this._activeQueries.get(r);if(!o)return;const i=e-o.startTime;this._activeQueries.delete(r),Mt().notifyPanelOperationComplete({operationId:n,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,pluginVersion:this._pluginVersion,operation:"query",timestamp:e,duration:i,metadata:{queryId:r,queryType:t.type},error:a?(null==a?void 0:a.message)||String(a)||"Unknown error":void 0})}}onPluginLoadStart(e){if(!this._panelKey){let t;try{t=uo.getAncestor(this,ma)}catch(e){return null}t&&!this._panelKey&&t.state.key&&(this._panelKey=t.state.key,this._panelId=String(t.getLegacyPanelId()),this._pluginId=e)}if(!this._panelKey)return null;this._isTracking||this._startTracking(),this._loadPluginStartTime=performance.now();const t=Ct("pluginLoad");return Mt().notifyPanelOperationStart({operationId:t,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"plugin-load",timestamp:this._loadPluginStartTime,metadata:{pluginId:e}}),(e,r=!1)=>{if(!this._panelKey||!this._loadPluginStartTime)return;const n=performance.now()-this._loadPluginStartTime;Mt().notifyPanelOperationComplete({operationId:t,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"plugin-load",timestamp:performance.now(),duration:n,metadata:{pluginId:this._pluginId,fromCache:r,pluginLoadTime:n}}),this._loadPluginStartTime=void 0}}onFieldConfigStart(e){if(!this._panelKey)return null;this._applyFieldConfigStartTime=e;const t=Ct("fieldConfig");return Mt().notifyPanelOperationStart({operationId:t,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"fieldConfig",timestamp:this._applyFieldConfigStartTime,metadata:{}}),(e,r,n)=>{if(!this._panelKey||!this._applyFieldConfigStartTime)return;const a=e-this._applyFieldConfigStartTime;Mt().notifyPanelOperationComplete({operationId:t,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"fieldConfig",timestamp:e,duration:a,metadata:{}}),this._applyFieldConfigStartTime=void 0}}_getPanelInfo(){let e;try{e=uo.getAncestor(this,ma)}catch(e){}let t=(null==e?void 0:e.state.title)||this._panelKey||"No-key panel";return t.length>30&&(t=t.substring(0,27)+"..."),`VizPanelRenderProfiler [${t}]`}onSimpleRenderStart(e){if(!this._panelKey)return;const t=Ct("render");return Mt().notifyPanelOperationStart({operationId:t,panelId:this._panelId||"unknown",panelKey:this._panelKey,pluginId:this._pluginId||"unknown",pluginVersion:this._pluginVersion,operation:"render",timestamp:e,metadata:{}}),(e,r)=>{this._panelKey&&Mt().notifyPanelOperationComplete({operationId:t,panelId:this._panelId||"unknown",panelKey:this._panelKey,pluginId:this._pluginId||"unknown",pluginVersion:this._pluginVersion,operation:"render",duration:r,timestamp:e,metadata:{}})}}_onPluginChange(e,t){var r,n;this._pluginId=t;const a=e.getPlugin();this._pluginVersion=null==(n=null==(r=null==a?void 0:a.meta)?void 0:r.info)?void 0:n.version,pe(this._getPanelInfo())}_startTracking(){this._panelKey&&this._pluginId&&!this._isTracking&&(this._isTracking=!0)}_cleanup(){this._activeQueries.clear(),this._isTracking=!1,pe(this._getPanelInfo())}onDataTransformStart(e,t,r){if(!this._panelKey)return null;const n=Ct("transform");return Mt().notifyPanelOperationStart({operationId:n,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"transform",timestamp:e,metadata:{transformationId:t,transformationCount:r.transformationCount,seriesTransformationCount:r.seriesTransformationCount,annotationTransformationCount:r.annotationTransformationCount}}),(e,a,o,i)=>{this._panelKey&&Mt().notifyPanelOperationComplete({operationId:n,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"transform",timestamp:e,duration:a,metadata:{transformationId:t,transformationCount:r.transformationCount,seriesTransformationCount:r.seriesTransformationCount,annotationTransformationCount:r.annotationTransformationCount,success:o,error:(null==i?void 0:i.error)||(o?void 0:"Transform operation failed")}})}}}class da{constructor(){this._resultsMap=new Map,this._prevLayers=[]}getMergedStream(e){(function(e,t){if(e.length!==t.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1})(e,this._prevLayers)&&(this._resultsMap=new Map,this._prevLayers=e);const t=e.map(e=>e.getResultsStream()),r=[];for(const t of e)r.push(t.activate());return s.merge(t).pipe(s.mergeAll(),s.filter(e=>this._resultsMap.get(e.origin.state.key)!==e),s.map(e=>(this._resultsMap.set(e.origin.state.key,e),this._resultsMap.values())),s.finalize(()=>{r.forEach(e=>e())}))}}class fa extends J{constructor(){super(...arguments),this.isDataLayer=!0,this._results=new s.ReplaySubject(1),this._dataLayersMerger=new da}subscribeToAllLayers(e){e.length>0?this.querySub=this._dataLayersMerger.getMergedStream(e).subscribe(this._onLayerUpdateReceived.bind(this)):(this._results.next({origin:this,data:xe}),this.setStateHelper({data:xe}))}_onLayerUpdateReceived(e){var t;let r=[];for(const n of e)(null==(t=n.data)?void 0:t.series)&&(r=r.concat(n.data.series));const n={...xe,series:r};this._results.next({origin:this,data:n}),this.setStateHelper({data:n})}getResultsStream(){return this._results}cancelQuery(){var e;null==(e=this.querySub)||e.unsubscribe()}setStateHelper(e){ft(this,e)}}class pa extends fa{constructor(e){var t,r;super({name:null!=(t=e.name)?t:"Data layers",layers:null!=(r=e.layers)?r:[]}),this.addActivationHandler(()=>this._onActivate())}_onActivate(){return this._subs.add(this.subscribeToState((e,t)=>{var r;e.layers!==t.layers&&(null==(r=this.querySub)||r.unsubscribe(),this.subscribeToAllLayers(e.layers))})),this.subscribeToAllLayers(this.state.layers),()=>{var e;null==(e=this.querySub)||e.unsubscribe()}}}pa.Component=({model:e})=>{const{layers:t}=e.useState();return L.default.createElement(L.default.Fragment,null,t.map(e=>L.default.createElement(e.Component,{model:e,key:e.state.key})))};class ha extends J{constructor(e){super(e),this._results=new s.ReplaySubject(1),this._variableDependency=new za(this,{statePaths:["transformations"],onReferencedVariableValueChanged:()=>this.reprocessTransformations()}),this.addActivationHandler(()=>this.activationHandler())}activationHandler(){const e=this.getSourceData();return this._subs.add(e.subscribeToState(e=>this.transform(e.data))),e.state.data&&this.transform(e.state.data),()=>{this._transformSub&&this._transformSub.unsubscribe()}}getSourceData(){if(this.state.$data){if(this.state.$data instanceof pa)throw new Error("SceneDataLayerSet can not be used as data provider for SceneDataTransformer.");return this.state.$data}if(!this.parent||!this.parent.parent)throw new Error("SceneDataTransformer must either have $data set on it or have a parent.parent with $data");return uo.getData(this.parent.parent)}setContainerWidth(e){this.state.$data&&this.state.$data.setContainerWidth&&this.state.$data.setContainerWidth(e)}isDataReadyToDisplay(){const e=this.getSourceData();return!e.isDataReadyToDisplay||e.isDataReadyToDisplay()}reprocessTransformations(){this.transform(this.getSourceData().state.data,!0)}_calculateTransformationMetrics(e,t){return{transformationCount:t.length,seriesTransformationCount:t.filter(e=>!("options"in e)&&!("topic"in e)||(null==e.topic||e.topic===a.DataTopic.Series)).length,annotationTransformationCount:t.filter(e=>("options"in e||"topic"in e)&&e.topic===a.DataTopic.Annotations).length}}cancelQuery(){var e,t;null==(t=(e=this.getSourceData()).cancelQuery)||t.call(e)}getResultsStream(){return this._results}clone(e){const t=super.clone(e);return this._prevDataFromSource&&(t._prevDataFromSource=this._prevDataFromSource),t}isInViewChanged(e){var t,r;null==(r=null==(t=this.state.$data)?void 0:t.isInViewChanged)||r.call(t,e)}bypassIsInViewChanged(e){var t,r;null==(r=null==(t=this.state.$data)?void 0:t.bypassIsInViewChanged)||r.call(t,e)}haveAlreadyTransformedData(e){if(!this._prevDataFromSource)return!1;if(e===this._prevDataFromSource)return!0;const{series:t,annotations:r}=this._prevDataFromSource;return e.series===t&&e.annotations===r&&(this.state.data&&e.state!==this.state.data.state&&this.setState({data:{...this.state.data,state:e.state}}),!0)}transform(e,t=!1){var r;const n=performance.now(),i=va(this),l=performance.now();let u,c=null;if(0===this.state.transformations.length||!e)return this._prevDataFromSource=e,this.setState({data:e}),void(e&&this._results.next({origin:this,data:e}));if(!t&&this.haveAlreadyTransformedData(e))return;if(i){const t=this.state.transformations.map(e=>"id"in e?e.id:"customTransformation").join("+");u=t||"no-transforms";const r=this._calculateTransformationMetrics(e,this.state.transformations);c=i.onDataTransformStart(n,u,r)}const d=this._interpolateVariablesInTransformationConfigs(e),f=this._filterAndPrepareTransformationsByTopic(d,e=>!("options"in e)&&!("topic"in e)||(null==e.topic||e.topic===a.DataTopic.Series)),p=this._filterAndPrepareTransformationsByTopic(d,e=>("options"in e||"topic"in e)&&e.topic===a.DataTopic.Annotations);this._transformSub&&this._transformSub.unsubscribe();const h={interpolate:(t,r)=>{var n;return uo.interpolate(this,t,{...null==(n=e.request)?void 0:n.scopedVars,...r})}},m=a.transformDataFrame(f,e.series,h),v=a.transformDataFrame(p,null!=(r=e.annotations)?r:[]);let g=[],b=[];this._transformSub=s.forkJoin([m,v]).pipe(s.map(t=>(t.forEach(e=>{var t;for(const r of e)(null==(t=r.meta)?void 0:t.dataTopic)===a.DataTopic.Annotations?b.push(r):g.push(r)}),{...e,series:g,annotations:b})),s.catchError(t=>{var r;const n=performance.now();c&&c(n,n-l,!1,{error:t.message||t}),console.error("Error transforming data: ",t);const i=(null==(r=this.getSourceData().state.data)?void 0:r.errors)||[],u=o.toDataQueryError(t);u.message=`Error transforming data: ${u.message}`;const d={...e,state:a.LoadingState.Error,errors:[...i,u]};return s.of(d)})).subscribe(t=>{var r;const n=performance.now();c&&c(n,n-l,!0,{outputSeriesCount:t.series.length,outputAnnotationsCount:(null==(r=t.annotations)?void 0:r.length)||0}),this.setState({data:t}),this._results.next({origin:this,data:t}),this._prevDataFromSource=e})}_interpolateVariablesInTransformationConfigs(e){var t;const r=this.state.transformations;if(0===this._variableDependency.getNames().size)return r;const n=r.every(e=>"object"==typeof e);return n?JSON.parse(uo.interpolate(this,JSON.stringify(r),null==(t=e.request)?void 0:t.scopedVars)):r.map(t=>{var r;return"object"==typeof t?JSON.parse(uo.interpolate(this,JSON.stringify(t),null==(r=e.request)?void 0:r.scopedVars)):t})}_filterAndPrepareTransformationsByTopic(e,t){return e.filter(t).map(e=>"operator"in e?e.operator:e)}}class ma extends J{constructor(e){var t;super({options:{},fieldConfig:{defaults:{},overrides:[]},title:d.t("grafana-scenes.components.viz-panel.title.title","Title"),pluginId:"timeseries",_renderCounter:0,...e}),this._variableDependency=new za(this,{statePaths:["title","options","fieldConfig"]}),this._structureRev=0,this.onTimeRangeChange=e=>{uo.getTimeRange(this).onTimeRangeChange({raw:{from:a.toUtc(e.from),to:a.toUtc(e.to)},from:a.toUtc(e.from),to:a.toUtc(e.to)})},this.getTimeRange=e=>{const t=uo.findObject(this,e=>e instanceof ua),r=uo.getTimeRange(this);if(t instanceof ua&&t.isEnabled)return ke(r.state.from,r.state.to,r.getTimeZone(),r.state.fiscalYearStartMonth,r.state.UNSAFE_nowDelay,r.state.weekStart);const n=this.getPlugin();return n&&!n.meta.skipDataQuery&&e&&e.timeRange?e.timeRange:r.state.value},this.onTitleChange=e=>{this.setState({title:e})},this.onDescriptionChange=e=>{this.setState({description:e})},this.onDisplayModeChange=e=>{this.setState({displayMode:e})},this.onToggleCollapse=e=>{this.setState({collapsed:e})},this.onOptionsChange=(e,t=!1,r=!1)=>{var n;const{fieldConfig:o,options:i}=this.state,s=t?e:u.mergeWith(u.cloneDeep(i),e,(e,t,r,n)=>{if(u.isArray(t))return t;e===t||void 0!==t||(n[r]=t)}),l=a.getPanelOptionsWithDefaults({plugin:this._plugin,currentOptions:s,currentFieldConfig:o,isAfterPluginChange:r});this.setState({options:l.options,_renderCounter:(null!=(n=this.state._renderCounter)?n:0)+1})},this.onFieldConfigChange=(e,t)=>{const{fieldConfig:r,options:n}=this.state,o=t?e:u.merge(u.cloneDeep(r),e),i=a.getPanelOptionsWithDefaults({plugin:this._plugin,currentOptions:n,currentFieldConfig:o,isAfterPluginChange:!1});this._dataWithFieldConfig=void 0,this.setState({fieldConfig:i.fieldConfig})},this.interpolate=(e,t,r)=>uo.interpolate(this,e,t,r),this.getDescription=()=>{this.publishEvent(new $({origin:this,interaction:"panel-description-shown"}),!0);const{description:e}=this.state;if(e){const t=this.interpolate(e);return a.renderMarkdown(t)}return""},this.onCancelQuery=()=>{var e;this.publishEvent(new $({origin:this,interaction:"panel-cancel-query-clicked"}),!0);const t=uo.getData(this);null==(e=t.cancelQuery)||e.call(t)},this.onStatusMessageClick=()=>{this.publishEvent(new $({origin:this,interaction:"panel-status-message-clicked"}),!0)},this._onSeriesColorChange=(e,t)=>{this.onFieldConfigChange(((e,t,r)=>{const{overrides:n}=r,o=r.overrides.findIndex(t=>t.matcher.id===a.FieldMatcherID.byName&&t.matcher.options===e);if(o<0)return{...r,overrides:[...r.overrides,aa(e,t)]};const i=Array.from(n),s=i[o],l=s.properties.findIndex(e=>"color"===e.id);if(l<0)return i[o]={...s,properties:[...s.properties,oa(t)]},{...r,overrides:i};const u=Array.from(s.properties);return u[l]=oa(t),i[o]={...s,properties:u},{...r,overrides:i}})(e,t,this.state.fieldConfig))},this._onSeriesVisibilityChange=(e,t)=>{this._dataWithFieldConfig&&this.onFieldConfigChange(function(e,t,r,n){const{overrides:a}=r,o=e,i=a.findIndex(Zn);if(i<0){if(t===f.SeriesVisibilityChangeMode.ToggleSelection){const e=Jn([o,...na(a,n)]);return{...r,overrides:[...r.overrides,e]}}const e=Jn(ra(n,o));return{...r,overrides:[...r.overrides,e]}}const s=Array.from(a),[l]=s.splice(i,1);if(t===f.SeriesVisibilityChangeMode.ToggleSelection){let e=ea(l);const t=na(s,n);if(t.length>0&&(e=e.filter(e=>t.indexOf(e)<0)),e[0]===o&&1===e.length)return{...r,overrides:s};const a=Jn([o,...t]);return{...r,overrides:[...s,a]}}const u=Xn(l,o);return ta(u,n)?{...r,overrides:s}:{...r,overrides:[...s,u]}}(e,t,this.state.fieldConfig,this._dataWithFieldConfig.series),!0)},this._onInstanceStateChange=e=>{this._panelContext&&(this._panelContext={...this._panelContext,instanceState:e}),this.setState({_pluginInstanceState:e})},this._onToggleLegendSort=e=>{const t=this.state.options.legend;if(!t)return;let r=t.sortDesc,n=t.sortBy;e!==n&&(r=void 0),!1===r?(n=void 0,r=void 0):(r=!r,n=e),this.onOptionsChange({...this.state.options,legend:{...t,sortBy:n,sortDesc:r}},!0)},this.addActivationHandler(()=>{this._onActivate()}),null==(t=e.menu)||t.addActivationHandler(()=>{this.publishEvent(new $({origin:this,interaction:"panel-menu-shown"}),!0)})}getProfiler(){if(this.state.$behaviors)for(const e of this.state.$behaviors)if(e instanceof ca)return e}_onActivate(){this._plugin||this._loadPlugin(this.state.pluginId)}forceRender(){var e;this.setState({_renderCounter:(null!=(e=this.state._renderCounter)?e:0)+1})}async _loadPlugin(e,t,r,n){const i=this.getProfiler(),s=function(e){var t;const{getPanelPluginFromCache:r}=o.getPluginImportUtils();return null!=(t=r(e))?t:W.get(e)}(e);if(s){const a=null==i?void 0:i.onPluginLoadStart(e);null==a||a(s,!0),this._pluginLoaded(s,t,r,n)}else{const{importPanelPlugin:s}=o.getPluginImportUtils();try{const a=null==i?void 0:i.onPluginLoadStart(e),o=s(e),l=uo.getQueryController(this);l&&l.state.enableProfiling&&Nt(o).pipe(Tt({type:`VizPanel/loadPlugin/${e}`,origin:this})).subscribe(()=>{});const u=await o;null==a||a(u,!1),this._pluginLoaded(u,t,r,n)}catch(t){this._pluginLoaded(function(e){const t=new a.PanelPlugin(()=>null);return t.meta={id:e,name:e,sort:100,type:a.PluginType.panel,module:"",baseUrl:"",info:{author:{name:""},description:"",links:[],logos:{large:"",small:"public/img/grafana_icon.svg"},screenshots:[],updated:"",version:""}},t}(e)),t instanceof Error&&this.setState({_pluginLoadError:t.message})}}}getLegacyPanelId(){var e,t;const r=null!=(t=null==(e=this.state.key)?void 0:e.split("/"))?t:[];if(0===r.length)return 0;const n=r[r.length-1],a=parseInt(n.replace("panel-",""),10);return isNaN(a)?0:a}getPathId(){return ho(this)}async _pluginLoaded(e,t,r,n){var o;const{options:i,fieldConfig:s,title:l,pluginVersion:u,_UNSAFE_customMigrationHandler:c}=this.state,d={title:l,options:i,fieldConfig:s,id:this.getLegacyPanelId(),type:e.meta.id,pluginVersion:u};t&&(d.options=t),r&&(d.fieldConfig=r);const f=this._getPluginVersion(e);null==c||c(d,e);const p=f!==u||(null==(o=e.shouldMigrate)?void 0:o.call(e,d));e.onPanelMigration&&p&&!n&&(d.options=await e.onPanelMigration(d));let h=this.state.$data;d.transformations&&h&&(h instanceof ha?h.setState({transformations:d.transformations}):h instanceof wa&&(h.clearParent(),h=new ha({transformations:d.transformations,$data:h})));const m=a.getPanelOptionsWithDefaults({plugin:e,currentOptions:d.options,currentFieldConfig:d.fieldConfig,isAfterPluginChange:null!=n&&n});if(this._plugin=e,this.setState({$data:h,options:m.options,fieldConfig:m.fieldConfig,pluginVersion:f,pluginId:e.meta.id}),e.meta.skipDataQuery){const e=uo.getTimeRange(this);this._subs.add(e.subscribeToState(()=>this.forceRender()))}}_getPluginVersion(e){return e&&e.meta.info.version?e.meta.info.version:o.config.buildInfo.version}getPlugin(){return this._plugin}getPanelContext(){return null!=this._panelContext||(this._panelContext=this.buildPanelContext()),this._panelContext}async changePluginType(e,t,r){var n,a;const{options:o,fieldConfig:i,pluginId:s}=this.state;this._dataWithFieldConfig=void 0;const l=this.state.pluginId!==e;await this._loadPlugin(e,null!=t?t:{},r,l);const c={title:this.state.title,options:this.state.options,fieldConfig:this.state.fieldConfig,id:1,type:e},d=null==(a=null==(n=this._plugin)?void 0:n.onPanelTypeChanged)?void 0:a.call(n,c,s,o,i);d&&!u.isEmpty(d)&&this.onOptionsChange(d,!0,!0)}clearFieldConfigCache(){this._dataWithFieldConfig=void 0}applyFieldConfig(e){var t,r,n,i;const s=performance.now(),l=this._plugin,u=this.getProfiler();if(!l||l.meta.skipDataQuery||!e)return xe;if(this._prevData===e&&this._dataWithFieldConfig)return this._dataWithFieldConfig;const c=null==u?void 0:u.onFieldConfigStart(s),d=l.dataSupport||{alertStates:!1,annotations:!1},f=l.fieldConfigRegistry,p=null!=(r=null==(t=this._dataWithFieldConfig)?void 0:t.series)?r:[],h=a.applyFieldOverrides({data:e.series,fieldConfig:this.state.fieldConfig,fieldConfigRegistry:f,replaceVariables:this.interpolate,theme:o.config.theme2,timeZone:null==(n=e.request)?void 0:n.timezone});return a.compareArrayValues(h,p,a.compareDataFrameStructures)||this._structureRev++,this._dataWithFieldConfig={...e,structureRev:this._structureRev,series:h},this._dataWithFieldConfig.annotations&&(this._dataWithFieldConfig.annotations=a.applyFieldOverrides({data:this._dataWithFieldConfig.annotations,fieldConfig:{defaults:{},overrides:[]},fieldConfigRegistry:f,replaceVariables:this.interpolate,theme:o.config.theme2,timeZone:null==(i=e.request)?void 0:i.timezone})),d.alertStates||(this._dataWithFieldConfig.alertState=void 0),d.annotations||(this._dataWithFieldConfig.annotations=void 0),this._prevData=e,u&&(null==c||c(performance.now())),this._dataWithFieldConfig}clone(e){return super.clone({_pluginInstanceState:void 0,_pluginLoadError:void 0,...e})}buildPanelContext(){const e=(t=this,uo.findObject(t,e=>e instanceof ia));var t;const r={eventsScope:e?e.getEventsScope():"__global_",eventBus:e?e.getEventsBus(this):o.getAppEvents(),app:a.CoreApp.Unknown,sync:()=>e?e.state.sync:a.DashboardCursorSync.Off,onSeriesColorChange:this._onSeriesColorChange,onToggleSeriesVisibility:this._onSeriesVisibilityChange,onToggleLegendSort:this._onToggleLegendSort,onInstanceStateChange:this._onInstanceStateChange};return this.state.extendPanelContext&&this.state.extendPanelContext(this,r),r}}function va(e){try{const t=uo.getAncestor(e,ma);if(t){return(t.state.$behaviors||[]).find(e=>e instanceof ca)}}catch(e){}}ma.Component=function({model:e}){var t;const{title:r,options:n,fieldConfig:s,_pluginLoadError:l,displayMode:c,hoverHeader:p,showMenuAlways:m,hoverHeaderOffset:g,menu:b,headerActions:y,subHeader:w,titleItems:S,seriesLimit:_,seriesLimitShowAll:x,description:O,collapsible:A,collapsed:R,_renderCounter:E=0}=e.useState(),[k,{width:C,height:I}]=v.useMeasure(),P=i.useMemo(()=>o.getAppEvents(),[]),M=i.useCallback(()=>{e.state.key&&P.publish(new a.SetPanelAttentionEvent({panelId:e.getPathId()}))},[e,P]),T=i.useMemo(()=>u.debounce(M,100,{leading:!0,trailing:!1}),[M]),N=i.useMemo(()=>e.getProfiler(),[e]),D=performance.now(),F=L.default.useRef(null);i.useLayoutEffect(()=>{if(N){const e=N.onSimpleRenderStart(D);F.current=e||null}}),i.useEffect(()=>{if(F.current){const e=performance.now(),t=e-D;F.current(e,t),F.current=null}});const j=e.getPlugin(),{dragClass:V,dragClassCancel:z}=function(e){var t,r;const n=uo.getLayout(e),a=null==n?void 0:n.isDraggable();if(!n||!a||function(e,t){let r=e;for(;r&&r!==t;){if("isDraggable"in r.state&&!1===r.state.isDraggable)return!0;if("repeatSourceKey"in r.state&&r.state.repeatSourceKey)return!0;r=r.parent}return!1}(e,n))return{dragClass:"",dragClassCancel:""};return{dragClass:null==(t=n.getDragClass)?void 0:t.call(n),dragClassCancel:null==(r=null==n?void 0:n.getDragClassCancel)?void 0:r.call(n)}}(e),B=function(e){var t,r;const n=uo.getLayout(e);return null!=(r=null==(t=null==n?void 0:n.getDragHooks)?void 0:t.call(n))?r:{}}(e),U=uo.getData(e),W=U.useState(),G=function(e,t,r){return i.useMemo(()=>(null==e?void 0:e.series)&&t&&!r?{...e,series:e.series.slice(0,t)}:e,[e,t,r])}(W.data,_,x),H=e.applyFieldConfig(G),q=uo.getTimeRange(e).getTimeZone(),$=e.getTimeRange(H),K=L.default.useContext(Hn);i.useEffect(()=>{U.isInViewChanged&&U.isInViewChanged(K)},[K,U]);const Q=e.interpolate(r,void 0,"text"),Y=f.useStyles2(Qn);if(!j)return L.default.createElement("div",null,L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.viz-panel-renderer.loading-plugin-panel"},"Loading plugin panel..."));if(!j.panel)return L.default.createElement("div",null,L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.viz-panel-renderer.panel-plugin-has-no-panel-component"},"Panel plugin has no panel component"));const Z=j.panel;U&&U.setContainerWidth&&U.setContainerWidth(Math.round(C));let J=[];w&&(Array.isArray(w)?J=J.concat(w.map(e=>L.default.createElement(e.Component,{model:e,key:`${e.state.key}`}))):At(w)?J.push(L.default.createElement(w.Component,{model:w,key:`${w.state.key}`})):J.push(w));let X,ee,te=[];S&&(Array.isArray(S)?te=te.concat(S.map(e=>L.default.createElement(e.Component,{model:e,key:`${e.state.key}`}))):At(S)?te.push(L.default.createElement(S.Component,{model:S})):te.push(S)),_&&te.push(L.default.createElement(zn,{key:"series-limit",data:W.data,seriesLimit:_,showAll:x,onShowAllSeries:()=>e.setState({seriesLimitShowAll:!x})})),e.state.$timeRange&&te.push(L.default.createElement(e.state.$timeRange.Component,{model:e.state.$timeRange,key:e.state.key})),H.alertState&&te.push(L.default.createElement(f.Tooltip,{content:null!=(t=H.alertState.state)?t:"unknown",key:`alert-states-icon-${e.state.key}`},L.default.createElement(f.PanelChrome.TitleItem,{className:h.cx({[Y.ok]:H.alertState.state===a.AlertState.OK,[Y.pending]:H.alertState.state===a.AlertState.Pending,[Y.alerting]:H.alertState.state===a.AlertState.Alerting})},L.default.createElement(f.Icon,{name:"alerting"===H.alertState.state?"heart-break":"heart",className:"panel-alert-icon",size:"md"})))),b&&(X=L.default.createElement(b.Component,{model:b})),y&&(ee=Array.isArray(y)?L.default.createElement(L.default.Fragment,null,y.map(e=>L.default.createElement(e.Component,{model:e,key:`${e.state.key}`}))):At(y)?L.default.createElement(y.Component,{model:y}):y);const re=H,ne=!U.isDataReadyToDisplay||U.isDataReadyToDisplay(),ae=e.getPanelContext(),oe=e.getLegacyPanelId();return L.default.createElement("div",{className:$n},L.default.createElement("div",{ref:k,className:Kn,"data-viz-panel-key":e.state.key},C>0&&I>0&&L.default.createElement(f.PanelChrome,{title:Q,description:(null==O?void 0:O.trim())?e.getDescription:void 0,loadingState:re.state,statusMessage:qn(re,l),statusMessageOnClick:e.onStatusMessageClick,width:C,height:I,selectionId:e.state.key,displayMode:c,titleItems:te.length>0?te:void 0,dragClass:V,actions:ee,dragClassCancel:z,padding:j.noPadding?"none":"md",menu:X,onCancelQuery:e.onCancelQuery,onFocus:M,onMouseEnter:M,onMouseMove:T,subHeaderContent:J.length?J:void 0,onDragStart:t=>{var r;null==(r=B.onDragStart)||r.call(B,t,e)},showMenuAlways:m,...A?{collapsible:Boolean(A),collapsed:R,onToggleCollapse:e.onToggleCollapse}:{hoverHeader:p,hoverHeaderOffset:g}},(t,o)=>L.default.createElement(L.default.Fragment,null,L.default.createElement(f.ErrorBoundaryAlert,{dependencies:[j,re]},L.default.createElement(a.PluginContextProvider,{meta:j.meta},L.default.createElement(f.PanelContextProvider,{value:ae},ne&&L.default.createElement(Z,{id:oe,data:re,title:r,timeRange:$,timeZone:q,options:n,fieldConfig:s,transparent:"transparent"===c,width:t,height:o,renderCounter:E,replaceVariables:e.interpolate,onOptionsChange:e.onOptionsChange,onFieldConfigChange:e.onFieldConfigChange,onChangeTimeRange:e.onTimeRangeChange,eventBus:ae.eventBus}))))))))};class ga{constructor(e){this._variableDependency=e}findAndSubscribeToDrilldowns(e){const t=function(e){var t;for(const r of Mr.values())if(oo(r,null==(t=r.state.datasource)?void 0:t.uid)===e)return r}(e),r=function(e){var t;for(const r of Bt.values())if(oo(r,null==(t=r.state.datasource)?void 0:t.uid)===e)return r}(e);let n=!1;this._adhocFiltersVar!==t&&(this._adhocFiltersVar=t,n=!0),this._groupByVar!==r&&(this._groupByVar=r,n=!0),n&&this._updateExplicitDrilldownVariableDependencies()}_updateExplicitDrilldownVariableDependencies(){const e=[];this._adhocFiltersVar&&e.push(this._adhocFiltersVar.state.name),this._groupByVar&&e.push(this._groupByVar.state.name),this._variableDependency.setVariableNames(e)}get adHocFiltersVar(){return this._adhocFiltersVar}get groupByVar(){return this._groupByVar}getFilters(){var e;return this._adhocFiltersVar?[...null!=(e=this._adhocFiltersVar.state.originFilters)?e:[],...this._adhocFiltersVar.state.filters].filter(e=>Cn(e)&&In(e)):void 0}getGroupByKeys(){return this._groupByVar?this._groupByVar.getApplicableKeys():void 0}cleanup(){this._adhocFiltersVar=void 0,this._groupByVar=void 0}}let ba=100;function ya(e="SQR"){return e+ba++}class wa extends J{constructor(e){super(e),this._dataLayersMerger=new da,this._variableValueRecorder=new Ft,this._results=new s.ReplaySubject(1),this._scopedVars={__sceneObject:Sr(this)},this._isInView=!0,this._bypassIsInView=!1,this._queryNotExecutedWhenOutOfView=!1,this._variableDependency=new za(this,{statePaths:["queries","datasource","minInterval"],onVariableUpdateCompleted:this.onVariableUpdatesCompleted.bind(this),onAnyVariableChanged:this.onAnyVariableChanged.bind(this),dependsOnScopes:!0}),this._drilldownDependenciesManager=new ga(this._variableDependency),this.onDataReceived=e=>{const t=a.preProcessPanelData(e,this.state.data);this._resultAnnotations=e.annotations;const r=this._combineDataLayers(t);let n=this.state._hasFetchedData;n||t.state===c.LoadingState.Loading||(n=!0),this.setState({data:r,_hasFetchedData:n}),this._results.next({origin:this,data:r})},this.addActivationHandler(()=>this._onActivate())}getResultsStream(){return this._results}_onActivate(){if(this.isQueryModeAuto()){const e=uo.getTimeRange(this),t=this.getClosestExtraQueryProviders();for(const e of t)this._subs.add(e.subscribeToState((t,r)=>{e.shouldRerun(r,t,this.state.queries)&&this.runQueries()}));this.subscribeToTimeRangeChanges(e),this.shouldRunQueriesOnActivate()&&this.runQueries()}return this._dataLayersSub||this._handleDataLayers(),()=>this._onDeactivate()}_handleDataLayers(){const e=uo.getDataLayers(this);0!==e.length&&(this._dataLayersSub=this._dataLayersMerger.getMergedStream(e).subscribe(this._onLayersReceived.bind(this)))}_onLayersReceived(e){var t,r,n,o,i;const s=uo.getTimeRange(this),{dataLayerFilter:l}=this.state;let c,d=[],f=[];for(const n of e)for(let e of n.data.series)(null==(t=e.meta)?void 0:t.dataTopic)===a.DataTopic.Annotations&&(d=d.concat(e)),(null==(r=e.meta)?void 0:r.dataTopic)===a.DataTopic.AlertStates&&(f=f.concat(e));if((null==l?void 0:l.panelId)&&(d.length>0&&(d=function(e,t){var r;if(!Array.isArray(e)||0===e.length)return e;const n=Array.from({length:e.length},()=>new Set);let a=0;for(const o of e){for(let e=0;e<o.length;e++){if(n[a].has(e))continue;let i=!0;const s=o.fields.find(e=>"panelId"===e.name),l=o.fields.find(e=>"source"===e.name);if(l){s&&"dashboard"===l.values[e].type&&(i=[t.panelId,Vt].includes(s.values[e]));const n=l.values[e].filter;if(n){const e=[...null!=(r=n.ids)?r:[],Vt].includes(t.panelId);n.exclude?e&&(i=!1):e||(i=!1)}}i&&n[a].add(e)}a++}const o=[];a=0;for(const t of e){const e=n[a].size,r=[];for(const e of t.fields){const o=[];for(let r=0;r<t.length;r++)n[a].has(r)&&o.push(e.values[r]);r.push({...e,values:o})}o.push({...t,fields:r,length:e}),a++}return o}(d,l)),f.length>0))for(const e of f){const t=new a.DataFrameView(e);for(const e of t)if(e.panelId===l.panelId){c=e;break}}if(_a(d)&&_a(this._layerAnnotations)&&u.isEqual(c,null==(n=this.state.data)?void 0:n.alertState))return;this._layerAnnotations=d;const p=this.state.data?this.state.data:{...xe,timeRange:s.state.value};this.setState({data:{...p,annotations:[...null!=(o=this._resultAnnotations)?o:[],...d],alertState:null!=c?c:null==(i=this.state.data)?void 0:i.alertState}})}onVariableUpdatesCompleted(){this.isQueryModeAuto()&&this.runQueries()}onAnyVariableChanged(e){this._drilldownDependenciesManager.adHocFiltersVar!==e&&this._drilldownDependenciesManager.groupByVar!==e&&this.isQueryModeAuto()&&(e instanceof On&&this._isRelevantAutoVariable(e)&&this.runQueries(),e instanceof Nn&&this._isRelevantAutoVariable(e)&&this.runQueries())}_isRelevantAutoVariable(e){var t,r;const n=null!=(t=this.state.datasource)?t:Sa(this.state.queries);return"auto"===e.state.applyMode&&(null==n?void 0:n.uid)===(null==(r=e.state.datasource)?void 0:r.uid)}shouldRunQueriesOnActivate(){return this._variableValueRecorder.hasDependenciesChanged(this)?(pe(),!0):!this.state.data||!!this._isDataTimeRangeStale(this.state.data)}_isDataTimeRangeStale(e){const t=uo.getTimeRange(this).state.value,r=e.timeRange;return(t.from.unix()!==r.from.unix()||t.to.unix()!==r.to.unix())&&(pe(),!0)}_onDeactivate(){var e;this._querySub&&(this._querySub.unsubscribe(),this._querySub=void 0),this._dataLayersSub&&(this._dataLayersSub.unsubscribe(),this._dataLayersSub=void 0),null==(e=this._timeSub)||e.unsubscribe(),this._timeSub=void 0,this._timeSubRange=void 0,this._drilldownDependenciesManager.cleanup()}setContainerWidth(e){!this._containerWidth&&e>0?(this._containerWidth=e,this.state.maxDataPointsFromWidth&&!this.state.maxDataPoints&&setTimeout(()=>{this.isActive&&!this.state._hasFetchedData&&this.runQueries()},0)):e>0&&(this._containerWidth=e)}isDataReadyToDisplay(){return Boolean(this.state._hasFetchedData)}subscribeToTimeRangeChanges(e){this._timeSubRange!==e&&(this._timeSub&&this._timeSub.unsubscribe(),this._timeSubRange=e,this._timeSub=e.subscribeToState(()=>{this.runWithTimeRange(e)}))}runQueries(){const e=uo.getTimeRange(this);this.isQueryModeAuto()&&this.subscribeToTimeRangeChanges(e),this.runWithTimeRange(e)}getMaxDataPoints(){var e;return this.state.maxDataPoints?this.state.maxDataPoints:this.state.maxDataPointsFromWidth&&null!=(e=this._containerWidth)?e:500}cancelQuery(){var e,t;null==(e=this._querySub)||e.unsubscribe(),this._dataLayersSub&&(this._dataLayersSub.unsubscribe(),this._dataLayersSub=void 0),this.setState({data:{...null!=(t=this.state.data)?t:xe,state:c.LoadingState.Done}})}async runWithTimeRange(e){var t,r,n;if(!this.state.maxDataPoints&&this.state.maxDataPointsFromWidth&&!this._containerWidth)return;if(this.isQueryModeAuto()&&!this._isInView&&!this._bypassIsInView)return void(this._queryNotExecutedWhenOutOfView=!0);if(this._queryNotExecutedWhenOutOfView=!1,this._dataLayersSub||this._handleDataLayers(),null==(t=this._querySub)||t.unsubscribe(),this._variableDependency.hasDependencyInLoadingState())return pe(),void this.setState({data:{...null!=(r=this.state.data)?r:xe,state:c.LoadingState.Loading}});this._variableValueRecorder.recordCurrentDependencyValuesForSceneObject(this);const{queries:a}=this.state;if(null==a?void 0:a.length)try{const t=null!=(n=this.state.datasource)?n:Sa(a),r=await Dt(t,this._scopedVars);this._drilldownDependenciesManager.findAndSubscribeToDrilldowns(r.uid);const i=o.getRunRequest(),{primary:l,secondaries:u,processors:c}=this.prepareRequests(e,r);pe(0,0,this.state.key);let d=i(r,l);if(u.length>0){const e=u.map(e=>i(r,e)),t=(e=>t=>t.pipe(s.mergeMap(([t,...r])=>{const n=r.flatMap(r=>{var n,a;return null!=(a=null==(n=e.get(r.request.requestId))?void 0:n(t,r))?a:s.of(r)});return s.forkJoin([s.of(t),...n])}),s.map(([e,...t])=>{var r;return{...e,series:[...e.series,...t.flatMap(e=>e.series)],annotations:[...null!=(r=e.annotations)?r:[],...t.flatMap(e=>{var t;return null!=(t=e.annotations)?t:[]})]}})))(c);d=s.forkJoin([d,...e]).pipe(t)}const f=va(this);d=d.pipe(Tt({type:"SceneQueryRunner/runQueries",request:l,origin:this,cancel:()=>this.cancelQuery()},f)),this._querySub=d.subscribe(this.onDataReceived)}catch(e){console.error("PanelQueryRunner Error",e),this.onDataReceived({...xe,...this.state.data,state:c.LoadingState.Error,errors:[o.toDataQueryError(e)]})}else this._setNoDataState()}clone(e){var t;const r=super.clone(e);return this._resultAnnotations&&(r._resultAnnotations=this._resultAnnotations.map(e=>({...e}))),this._layerAnnotations&&(r._layerAnnotations=this._layerAnnotations.map(e=>({...e}))),r._variableValueRecorder=this._variableValueRecorder.cloneAndRecordCurrentValuesForSceneObject(this),r._containerWidth=this._containerWidth,r._results.next({origin:this,data:null!=(t=this.state.data)?t:xe}),r}prepareRequests(e,t){var r;const{minInterval:n,queries:i,requestIdPrefix:s}=this.state;let l={app:"scenes",requestId:ya(s),timezone:e.getTimeZone(),range:e.state.value,interval:"1s",intervalMs:1e3,targets:u.cloneDeep(i),maxDataPoints:this.getMaxDataPoints(),scopedVars:this._scopedVars,startTime:Date.now(),liveStreaming:this.state.liveStreaming,rangeRaw:{from:e.state.from,to:e.state.to},cacheTimeout:this.state.cacheTimeout,queryCachingTTL:this.state.queryCachingTTL,scopes:uo.getScopes(this),...zt(this)};const c=this._drilldownDependenciesManager.getFilters(),d=this._drilldownDependenciesManager.getGroupByKeys();c&&(l.filters=c),d&&(l.groupByKeys=d),l.targets=l.targets.map(e=>{var r;return e.datasource&&(e.datasource.uid===t.uid||(null==(r=t.meta)?void 0:r.mixed)||!o.isExpressionReference||o.isExpressionReference(e.datasource))||(e.datasource=t.getRef()),e});const f=n?oo(this,n):t.interval,p=a.rangeUtil.calculateInterval(e.state.value,l.maxDataPoints,f);l.scopedVars=Object.assign({},l.scopedVars,{__interval:{text:p.interval,value:p.interval},__interval_ms:{text:p.intervalMs.toString(),value:p.intervalMs}}),l.interval=p.interval,l.intervalMs=p.intervalMs;const h=e.state.value;let m=[],v=new Map;for(const e of null!=(r=this.getClosestExtraQueryProviders())?r:[])for(const{req:t,processor:r}of e.getExtraQueries(l)){const e=ya(s);m.push({...t,requestId:e}),v.set(e,null!=r?r:Lt)}return l.range=h,{primary:l,secondaries:m,processors:v}}_combineDataLayers(e){return this._layerAnnotations&&this._layerAnnotations.length>0&&(e.annotations=(e.annotations||[]).concat(this._layerAnnotations)),this.state.data&&this.state.data.alertState&&(e.alertState=this.state.data.alertState),e}_setNoDataState(){this.state.data!==xe&&this.setState({data:xe})}getClosestExtraQueryProviders(){const e=new Map;return this.parent?(Ae(this.parent,t=>(jt(t)&&!e.has(t.constructor)&&e.set(t.constructor,t),t.forEachChild(t=>{jt(t)&&!e.has(t.constructor)&&e.set(t.constructor,t)}),null)),Array.from(e.values())):[]}isQueryModeAuto(){var e;return"auto"===(null!=(e=this.state.runQueriesMode)?e:"auto")}isInViewChanged(e){pe(0,0,this.state.key),this._isInView=e,e&&this._queryNotExecutedWhenOutOfView&&this.runQueries()}bypassIsInViewChanged(e){pe(0,0,this.state.key),this._bypassIsInView=e,e&&this._queryNotExecutedWhenOutOfView&&this.runQueries()}}function Sa(e){var t,r;return null!=(r=null==(t=e.find(e=>null!==e.datasource))?void 0:t.datasource)?r:void 0}function _a(e){if(!e)return!0;for(let t=0;t<e.length;t++)if(e[t].length>0)return!1;return!0}function xa(e,t){return e===t||u.isEqual(e,t)}function Oa(e){try{return JSON.stringify(e,(()=>{const e=new WeakSet;return(t,r)=>{if("object"==typeof r&&null!==r){if(e.has(r))return;e.add(r)}return r}})())}catch(e){console.error(e)}return""}function Aa(e){return e.map(e=>function(e){var t,r;let n="",a=e.operator;"=|"===a?(a="=~",n=null==(t=e.values)?void 0:t.map(Ea).join("|")):"!=|"===a?(a="!~",n=null==(r=e.values)?void 0:r.map(Ea).join("|")):n="=~"===a||"!~"===a?Ea(e.value):Ra(e.value);return`${e.key}${a}"${n}"`}(e)).join(",")}function Ra(e){return e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"')}function Ea(e){return Ra(e.replace(ka,"\\$&"))}const ka=/[*+?()|\\.\[\]{}^$]/g;function Ca(e){var t;const r=uo.findAllObjects(e.getRoot(),e=>e instanceof wa),n=uo.interpolate(e,null==(t=e.state.datasource)?void 0:t.uid),a=function(e){const t={};for(const r of e)r.state.key&&(r.state.key in t||(t[r.state.key]=[]),t[r.state.key].push(r));return Object.values(t).flatMap(e=>{const t=e.filter(e=>e.isActive);return 0===t.length&&1===e.length?e:t})}(r).filter(t=>{var r;return uo.interpolate(e,null==(r=t.state.datasource)?void 0:r.uid)===n});if(0===a.length)return[];const o=[];return a.forEach(t=>{o.push(...t.state.queries.filter(t=>{if(!t.datasource||!t.datasource.uid)return!0;return uo.interpolate(e,t.datasource.uid)===n}))}),o}function Ia(e){return null==e?"":/\|/g[Symbol.replace](e,"__gfp__")}function Pa(e){return null==e?"":/,/g[Symbol.replace](e,"__gfc__")}function Ma(e){return function(e){return null==e?"":/#/g[Symbol.replace](e,"__gfh__")}(Ia(e))}function Ta(e){return null==e?"":(e=/__gfp__/g[Symbol.replace](e,"|"),e=/__gfc__/g[Symbol.replace](e,","),e=/__gfh__/g[Symbol.replace](e,"#"))}function Na(e,t){return t&&e!==t?[e,t].map(Pa).join(","):Pa(e)}function Da(e){return Array.isArray(e)?e:e.data}function Fa(e){return!Array.isArray(e)&&Boolean(e.error)}function ja(e){const t=[],r=new Map;for(const n of e){const e=n.group;if(e){let a=r.get(e);a||(a=[],r.set(e,a),t.push({label:e,options:a})),a.push(n)}else t.push(n)}return t}function La(e){return{disabledPill:h.css({background:e.colors.action.selected,color:e.colors.text.disabled,border:0,"&:hover":{background:e.colors.action.selected}}),strikethrough:h.css({textDecoration:"line-through"})}}class Va extends J{constructor(e){super({type:"constant",value:"",name:"",...e,skipUrlSync:!0}),this._variableDependency=new za(this,{statePaths:["value"]}),this._prevValue=""}validateAndUpdate(){const e=this.getValue();return this._prevValue!==e&&(this._prevValue=e,this.publishEvent(new Ue(this),!0)),s.of({})}getValue(){return"string"==typeof this.state.value?uo.interpolate(this,this.state.value):this.state.value}}class za{constructor(e,t){this._sceneObject=e,this._options=t,this._dependencies=new Set,this._isWaitingForVariables=!1,this.scanCount=0,this._statePaths=t.statePaths,this._options.handleTimeMacros&&this.handleTimeMacros()}hasDependencyOn(e){return this.getNames().has(e)}variableUpdateCompleted(e,t){var r,n,o,i;const s=this.getNames(),l=(s.has(e.state.name)||s.has(a.DataLinkBuiltInVars.includeVars))&&t;pe(0,0,e.state.name,this._isWaitingForVariables),null==(n=(r=this._options).onAnyVariableChanged)||n.call(r,e),this._options.onVariableUpdateCompleted&&(this._isWaitingForVariables||l)&&this._options.onVariableUpdateCompleted(),l&&(null==(i=(o=this._options).onReferencedVariableValueChanged)||i.call(o,e),this._options.onReferencedVariableValueChanged||this._options.onVariableUpdateCompleted||this._sceneObject.forceRender())}hasDependencyInLoadingState(){return this._isWaitingForVariables=uo.hasVariableDependencyInLoadingState(this._sceneObject),this._isWaitingForVariables}getNames(){const e=this._state,t=this._state=this._sceneObject.state;return(!e||t!==e&&(!this._statePaths||this._statePaths.some(r=>"*"===r||t[r]!==e[r])))&&this.scanStateForDependencies(t),this._dependencies}setVariableNames(e){this._options.variableNames=e,this.scanStateForDependencies(this._state)}setPaths(e){this._statePaths=e}scanStateForDependencies(e){if(this._dependencies.clear(),this.scanCount++,this._options.variableNames)for(const e of this._options.variableNames)this._dependencies.add(e);if(this._options.dependsOnScopes&&this._dependencies.add(Xe),this._statePaths)for(const t of this._statePaths){if("*"===t){this.extractVariablesFrom(e);break}{const r=e[t];r&&this.extractVariablesFrom(r)}}}extractVariablesFrom(e){Ze.lastIndex=0;const t=("string"!=typeof e?Oa(e):e).matchAll(Ze);if(t)for(const e of t){const[,t,r,,n]=e,a=t||r||n;this._dependencies.add(a)}}handleTimeMacros(){this._sceneObject.addActivationHandler(()=>{const e=uo.getTimeRange(this._sceneObject).subscribeToState((e,t)=>{const r=this.getNames(),n=r.has("__from"),a=r.has("__to"),o=r.has("__timezone");if(e.value!==t.value)if(n){const t=new Va({name:"__from",value:e.from});this.variableUpdateCompleted(t,!0)}else if(a){const t=new Va({name:"__to",value:e.to});this.variableUpdateCompleted(t,!0)}if(e.timeZone!==t.timeZone&&o){const t=new Va({name:"__timezone",value:e.timeZone});this.variableUpdateCompleted(t,!0)}});return()=>e.unsubscribe()})}}const Ba=e=>Boolean(e.metricFindQuery)&&!Boolean(e.variables),Ua=e=>{if(!e.variables)return!1;if(e.variables.getType()!==a.VariableSupportType.Standard)return!1;const t=e.variables;return"toDataQuery"in t&&Boolean(t.toDataQuery)},Wa=e=>{if(!e.variables)return!1;if(e.variables.getType()!==a.VariableSupportType.Custom)return!1;const t=e.variables;return"query"in t&&"editor"in t&&Boolean(t.query)&&Boolean(t.editor)},Ga=e=>!!e.variables&&e.variables.getType()===a.VariableSupportType.Datasource;class Ha{constructor(e,t=o.getRunRequest()){this.datasource=e,this._runRequest=t}getTarget(e){if(Ua(this.datasource))return this.datasource.variables.toDataQuery(function(e){var t;const r=null!=(t=e.state.query)?t:"";if("string"==typeof r)return{query:r,refId:`variable-${e.state.name}`};if(null==r.refId)return{...r,refId:`variable-${e.state.name}`};return e.state.query}(e));throw new Error("Couldn't create a target with supplied arguments.")}runRequest(e,t){return Ua(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,t,this.datasource.variables.query.bind(this.datasource.variables)):this._runRequest(this.datasource,t):Qa()}}class qa{constructor(e){this.datasource=e}getTarget(e){if(Ba(this.datasource))return e.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest({variable:e,searchFilter:t},r){return Ba(this.datasource)?s.from(this.datasource.metricFindQuery(e.state.query,{...r,variable:{name:e.state.name,type:e.state.type},searchFilter:t})).pipe(s.mergeMap(e=>{if(!e||!e.length)return Qa();const t=e;return s.of({series:t,state:a.LoadingState.Done,timeRange:r.range})})):Qa()}}class $a{constructor(e,t=o.getRunRequest()){this.datasource=e,this._runRequest=t}getTarget(e){if(Wa(this.datasource))return e.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest(e,t){return Wa(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,t,this.datasource.variables.query.bind(this.datasource.variables)):this._runRequest(this.datasource,t):Qa()}}class Ka{constructor(e,t=o.getRunRequest()){this.datasource=e,this._runRequest=t}getTarget(e){var t;if(Ga(this.datasource))return"string"==typeof e.state.query?e.state.query:{...e.state.query,refId:null!=(t=e.state.query.refId)?t:"variable-query"};throw new Error("Couldn't create a target with supplied arguments.")}runRequest(e,t){return Ga(this.datasource)?this._runRequest(this.datasource,t):Qa()}}function Qa(){return s.of({state:a.LoadingState.Done,series:[],timeRange:a.getDefaultTimeRange()})}let Ya=function(e){if(Ua(e))return new Ha(e,o.getRunRequest());if(Ba(e))return new qa(e);if(Wa(e))return new $a(e);if(Ga(e))return new Ka(e);throw new Error(`Couldn't create a query runner for datasource ${e.type}`)};const Za=(e,t)=>{const r=[];let n=null;t.lastIndex=0;do{n=t.exec(e),n&&r.push(n)}while(t.global&&n&&""!==n[0]&&void 0!==n[0]);return r},Ja=(e,t)=>{if(t===a.VariableSort.disabled)return e;switch(t){case a.VariableSort.alphabeticalAsc:e=u.sortBy(e,"label");break;case a.VariableSort.alphabeticalDesc:e=u.sortBy(e,"label").reverse();break;case a.VariableSort.numericalAsc:e=u.sortBy(e,Xa);break;case a.VariableSort.numericalDesc:e=(e=u.sortBy(e,Xa)).reverse();break;case a.VariableSort.alphabeticalCaseInsensitiveAsc:e=u.sortBy(e,e=>u.toLower(e.label));break;case a.VariableSort.alphabeticalCaseInsensitiveDesc:e=(e=u.sortBy(e,e=>u.toLower(e.label))).reverse();break;case a.VariableSort.naturalAsc:e=to(e);break;case a.VariableSort.naturalDesc:e=(e=to(e)).reverse()}return e};function Xa(e){if(!e.label)return-1;const t=e.label.match(/.*?(\d+).*/);return!t||t.length<2?-1:parseInt(t[1],10)}const eo=new Intl.Collator(void 0,{sensitivity:"accent",numeric:!0});function to(e){return e.slice().sort((e,t)=>eo.compare(e.label,t.label))}function ro(e,t){return e=>e.pipe(s.map(e=>{const t=e.series;if(!t||!t.length)return[];if(function(e){if(!e)return!1;if(!e.length)return!0;const t=e[0];if(a.isDataFrame(t))return!1;for(const e in t){if(!t.hasOwnProperty(e))continue;const r=t[e];if(null!==r&&"string"!=typeof r&&"number"!=typeof r)continue;const n=e.toLowerCase();if("text"===n||"value"===n)return!0}return!1}(t))return t;if(0===t[0].fields.length)return[];const r=function(e){const t=-1===e.value&&-1===e.text;if(!e.properties.length)throw new Error("Couldn't find any field of type string or number in the results");t&&(e.value=e.properties[0].index,e.text=e.properties[0].index);-1===e.value&&-1!==e.text&&(e.value=e.text);-1===e.text&&-1!==e.value&&(e.text=e.value);return e}(function(e){const t={value:-1,text:-1,expandable:-1,properties:[]};for(const r of a.getProcessedDataFrames(e))for(let n=0;n<r.fields.length;n++){const o=r.fields[n],i=a.getFieldDisplayName(o,r,e).toLowerCase();o.type!==a.FieldType.string&&o.type!==a.FieldType.number||("value"===i&&-1===t.value&&(t.value=n),t.properties.push({name:i,index:n})),o.type!==a.FieldType.string?"expandable"!==i||o.type!==a.FieldType.boolean&&o.type!==a.FieldType.number||-1!==t.expandable||(t.expandable=n):("text"===i&&-1===t.text&&(t.text=n),t.properties.push({name:i,index:n}))}return t}(t)),n=[];for(const e of t)for(let t=0;t<e.length;t++){const a=r=>-1!==r?e.fields[r].values.get(t):void 0,o=a(r.value),i=a(r.text),s=a(r.expandable),l={};for(const e of r.properties)l[e.name]=a(e.index);const u={value:o,text:i,properties:l};void 0!==s&&(u.expandable=Boolean(s)),n.push(u)}return n}))}class no extends vt{constructor(e){super({type:"query",name:"",value:"",text:"",options:[],datasource:null,regex:"",query:"",regexApplyTo:"value",refresh:a.VariableRefresh.onDashboardLoad,sort:a.VariableSort.disabled,...e}),this._variableDependency=new za(this,{statePaths:["regex","regexApplyTo","query","datasource"]}),this.onSearchChange=e=>{Oa(this.state.query).indexOf(Je)>-1&&this._updateOptionsBasedOnSearchFilter(e)},this._updateOptionsBasedOnSearchFilter=u.debounce(async e=>{const t=await s.lastValueFrom(this.getValueOptions({searchFilter:e}));this.setState({options:t,loading:!1})},400)}getValueOptions(e){return this.state.query?(this.setState({loading:!0,error:null}),s.from(Dt(this.state.datasource,{__sceneObject:Sr(this)})).pipe(s.mergeMap(t=>{const r=Ya(t),n=r.getTarget(this),o=this.getRequest(n,e.searchFilter);return r.runRequest({variable:this,searchFilter:e.searchFilter},o).pipe(Tt({type:"QueryVariable/getValueOptions",request:o,origin:this}),s.filter(e=>e.state===a.LoadingState.Done||e.state===a.LoadingState.Error),s.take(1),s.mergeMap(e=>e.state===a.LoadingState.Error?s.throwError(()=>e.error):s.of(e)),ro(),s.mergeMap(e=>{let t="";this.state.regex&&(t=uo.interpolate(this,this.state.regex,void 0,"regex"));let r=function({variableRegEx:e,variableRegexApplyTo:t,sort:r,metricNames:n}){var o,i,s,l,c,d,f,p,h,m;let v,g=[];e&&(v=a.stringToJsRegex(e));for(let e=0;e<n.length;e++){const r=n[e];let a=null!=(i=null!=(o=r.text)?o:r.value)?i:"",b=null!=(l=null!=(s=r.value)?s:r.text)?l:"";if(u.isNumber(b)&&(b=b.toString()),u.isNumber(a)&&(a=a.toString()),v){const e=Za("text"===t?a:b,v);if(!e.length)continue;const r=e.find(e=>e.groups&&e.groups.value),n=e.find(e=>e.groups&&e.groups.text),o=e.find(e=>e.length>1),i=e.length>1&&o;if(r||n)b=null!=(f=null==(c=null==r?void 0:r.groups)?void 0:c.value)?f:null==(d=null==n?void 0:n.groups)?void 0:d.text,a=null!=(m=null==(p=null==n?void 0:n.groups)?void 0:p.text)?m:null==(h=null==r?void 0:r.groups)?void 0:h.value;else{if(i){for(let t=0;t<e.length;t++){const r=e[t];g.push({label:r[1],value:r[1]})}continue}o&&(a=o[1],b=o[1])}}g.push({label:a,value:b,properties:r.properties})}return g=u.uniqBy(g,"value"),Ja(g,r)}({variableRegEx:t,variableRegexApplyTo:this.state.regexApplyTo,sort:this.state.sort,metricNames:e});if(this.state.staticOptions){const e=this.state.staticOptions;r=r.filter(t=>!e.find(e=>e.value===t.value)),"after"===this.state.staticOptionsOrder?r.push(...e):"sorted"===this.state.staticOptionsOrder?r=Ja(r.concat(e),this.state.sort):r.unshift(...e)}return s.of(r)}),s.catchError(e=>e.cancelled?s.of([]):s.throwError(()=>e)))}))):s.of([])}getRequest(e,t){const r={__sceneObject:Sr(this)};t&&(r.__searchFilter={value:t,text:t});const n=uo.getTimeRange(this).state.value;return{app:a.CoreApp.Dashboard,requestId:l.v4(),timezone:"",range:n,interval:"",intervalMs:0,targets:[e],scopedVars:r,startTime:Date.now()}}}function ao(e){var t;return null!=(t=Ae(e,e=>e.state.$data))?t:Le}function oo(e,t,r,n,a){return""===t||null==t?"":Ot(e,t,r,n,a)}function io(e,t,r,n){if(t(e))return e;let a=null;return e.forEachChild(e=>{if(e===r)return;let n=io(e,t);return n?(a=n,!1):void 0}),a||(n&&e.parent?io(e.parent,t,e,!0):null)}function so(e,t){return io(e,t,void 0,!0)}function lo(e,t){const r=[];return e.forEachChild(e=>{t(e)&&r.push(e),r.push(...lo(e,t))}),r}no.Component=({model:e})=>L.default.createElement(pr,{model:e});const uo={getVariables:function(e){var t;return null!=(t=Ae(e,e=>e.state.$variables))?t:ze},getData:ao,getTimeRange:Be,getLayout:function(e){const t=Ae(e,e=>function(e){return"isDraggable"in e}(e)?e:void 0);return t||null},getDataLayers:function(e,t=!1){let r=e,n=[];for(;r;){const e=r.state.$data;if(e){if(kt(e)?n=n.concat(e):e.state.$data&&kt(e.state.$data)&&(n=n.concat(e.state.$data)),t&&n.length>0)break;r=r.parent}else r=r.parent}return n},interpolate:oo,lookupVariable:fe,hasVariableDependencyInLoadingState:function(e){if(!e.variableDependency)return!1;for(const t of e.variableDependency.getNames()){if(e instanceof no&&e.state.name===t){console.warn("Query variable is referencing itself");continue}const r=fe(t,e);if(!r)continue;if(r.parent.isVariableLoadingOrWaitingToUpdate(r))return!0}return!1},findByKey:function(e,t){const r=so(e,e=>e.state.key===t);if(!r)throw new Error("Unable to find scene with key "+t);return r},findByKeyAndType:function(e,t,r){const n=so(e,e=>e.state.key===t);if(!n)throw new Error("Unable to find scene with key "+t);if(!(n instanceof r))throw new Error(`Found scene object with key ${t} does not match type ${r.name}`);return n},findObject:so,findAllObjects:lo,getAncestor:function(e,t){let r=e;for(;r;){if(r instanceof t)return r;r=r.parent}if(!r)throw new Error("Unable to find parent of type "+t.name);return r},getQueryController:Se,findDescendents:function(e,t){function r(e){return e instanceof t}return lo(e,r).filter(r)},getScopes:function(e){const t=fe(Xe,e);if(t instanceof Cr)return t.state.scopes}},co=class e extends J{constructor(e){super({type:"system",value:"",text:"",name:"",...e,skipUrlSync:!0})}getValue(e){return null!=e&&this.state.properties?this.getFieldAccessor(e)(this.state.properties):this.state.value}getFieldAccessor(t){const r=e.fieldAccessorCache[t];return r||(e.fieldAccessorCache[t]=u.property(t))}getValueText(e){if(e&&this.state.properties){const t=this.getFieldAccessor(e)(this.state.properties);if(null!=t)return String(t)}return this.state.text.toString()}isAncestorLoading(){var e,t;const r=null==(t=null==(e=this.parent)?void 0:e.parent)?void 0:t.parent;if(!r)throw new Error("LocalValueVariable requires a parent SceneVariableSet that has an ancestor SceneVariableSet");const n=uo.getVariables(r),a=uo.lookupVariable(this.state.name,r);return!(!n||!a)&&n.isVariableLoadingOrWaitingToUpdate(a)}};co.fieldAccessorCache={};let fo=co;const po="$";function ho(e){let t,r=`panel-${e.getLegacyPanelId()}`,n=e;for(;n;){const e=n.state.$variables;e&&e.state.variables.forEach(e=>{e.state.name!==t&&e instanceof fo&&(r=`${e.state.value}${po}${r}`,t=e.state.name)}),n=n.parent}return r}var mo=Object.freeze({__proto__:null,ActWhenVariableChanged:class extends J{constructor(){super(...arguments),this._runningEffect=null,this._variableDependency=new za(this,{variableNames:[this.state.variableName],onReferencedVariableValueChanged:this._onVariableChanged.bind(this)})}_onVariableChanged(e){const t=this.state.onChange;this._runningEffect&&(this._runningEffect(),this._runningEffect=null);const r=t(e,this);r&&(this._runningEffect=r)}},CursorSync:ia,LiveNowTimer:ua,SceneInteractionTracker:class extends J{constructor(e={},t){super(e),this.renderProfiler=t,this.isInteractionTracker=!0,t&&(this.renderProfiler=t,this.renderProfiler.setInteractionCompleteHandler(e.onInteractionComplete))}startInteraction(e){var t;this.state.enableInteractionTracking&&(null==(t=this.renderProfiler)||t.startInteraction(e))}stopInteraction(){var e;null==(e=this.renderProfiler)||e.stopInteraction()}},SceneQueryController:class extends J{constructor(e={},t){super({...e,isRunning:!1}),this.profiler=t,this.isQueryController=!0,ye(this,he,new Set),ye(this,me,null),this.runningQueriesCount=()=>be(this,he).size,t&&(this.profiler=t,t.setQueryController(this)),this.addActivationHandler(()=>{var e;return null==(e=this.profiler)||e.setQueryController(this),()=>be(this,he).clear()})}startProfile(e){var t;this.state.enableProfiling&&(null==(t=this.profiler)||t.startProfile(e))}cancelProfile(){var e;null==(e=this.profiler)||e.cancelProfile()}queryStarted(e){be(this,he).add(e),this.changeRunningQueryCount(1,e),this.state.isRunning||this.setState({isRunning:!0})}queryCompleted(e){be(this,he).has(e)&&(be(this,he).delete(e),this.changeRunningQueryCount(-1),0===be(this,he).size&&this.setState({isRunning:!1}))}changeRunningQueryCount(e,t){var r,n,a,o,i,s,l;window.__grafanaRunningQueryCount=(null!=(r=window.__grafanaRunningQueryCount)?r:0)+e,1===e&&this.state.enableProfiling&&(t&&(null==(n=this.profiler)||n.addCrumb(`${t.type}`)),(null==(a=this.profiler)?void 0:a.isTailRecording())&&(pe(),null==(o=this.profiler)||o.cancelTailRecording())),this.state.enableProfiling&&(be(this,me)&&cancelAnimationFrame(be(this,me)),i=this,s=me,l=requestAnimationFrame(()=>{var e;null==(e=this.profiler)||e.tryCompletingProfile()}),ge(i,s,"write to private field"),s.set(i,l))}cancelAll(){var e;for(const t of be(this,he).values())null==(e=t.cancel)||e.call(t)}}});function vo(e,t,...r){let n=!1;"undefined"!=typeof window&&(n="true"===localStorage.getItem("grafana.debug.sceneProfiling"))}class go{constructor(e){this._config=e,this._subscriptions=[]}attachToScene(e){this._sceneObject=e;const t=e.subscribeToState((e,t)=>{this._config.watchStateKey?e[this._config.watchStateKey]!==t[this._config.watchStateKey]&&this._attachProfilersToPanels():this._attachProfilersToPanels()});this._subscriptions.push(t),this._attachProfilersToPanels()}attachProfilerToPanel(e){var t;if(null==(t=e.state.$behaviors)?void 0:t.find(e=>e instanceof ca))return;const r=new ca;e.setState({$behaviors:[...e.state.$behaviors||[],r]})}_attachProfilersToPanels(){if(!this._sceneObject)return;uo.findAllObjects(this._sceneObject,e=>e instanceof ma).forEach(e=>{this.attachProfilerToPanel(e)})}cleanup(){this._subscriptions.forEach(e=>e.unsubscribe()),this._subscriptions=[],this._sceneObject=void 0}}var bo,yo,wo,So,_o,xo=e=>{throw TypeError(e)},Oo=(e,t,r)=>t.has(e)||xo("Cannot "+r),Ao=(e,t,r)=>(Oo(e,t,"read from private field"),r?r.call(e):t.get(e)),Ro=(e,t,r)=>t.has(e)?xo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Eo=(e,t,r,n)=>(Oo(e,t,"write to private field"),t.set(e,r),r);class ko{constructor(){Ro(this,bo,!1),Ro(this,yo,null),Ro(this,wo,null),Ro(this,So,0),Ro(this,_o,null),this.measureFrames=()=>{if(!Ao(this,bo))return;const e=performance.now(),t=e-Ao(this,So);if(t>50){const r={duration:t,timestamp:e,method:"manual"};if(Ao(this,yo)&&Ao(this,yo).call(this,r),"undefined"!=typeof performance&&performance.mark&&performance.measure){const r=`long-frame-manual-${e.toFixed(0)}`,n=`${r}-start`,a=`${r}-end`,o=`Long Frame (Manual): ${t.toFixed(1)}ms`;try{performance.mark(n,{startTime:e-t}),performance.mark(a,{startTime:e}),performance.measure(o,n,a)}catch(e){performance.mark(o)}}vo()}Eo(this,So,e),Ao(this,bo)&&Eo(this,wo,requestAnimationFrame(this.measureFrames))}}isLoAFAvailable(){return"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}start(e){Ao(this,bo)&&(vo(),this.stop()),Eo(this,yo,e),Eo(this,bo,!0),this.isLoAFAvailable()?this.startLoAFTracking():this.startManualFrameTracking(),vo(0,this.isLoAFAvailable())}stop(){Ao(this,bo)&&(Eo(this,bo,!1),Eo(this,yo,null),this.stopLoAFTracking(),this.stopManualFrameTracking())}isTracking(){return Ao(this,bo)}startLoAFTracking(){if(!this.isLoAFAvailable())return vo(),void this.startManualFrameTracking();try{Eo(this,_o,new PerformanceObserver(e=>{for(const t of e.getEntries()){const e={duration:t.duration,timestamp:t.startTime,method:"loaf"};if(Ao(this,yo)&&Ao(this,yo).call(this,e),"undefined"!=typeof performance&&performance.mark&&performance.measure){const e=`long-frame-${t.startTime.toFixed(0)}`,r=`${e}-start`,n=`${e}-end`,a=`Long Frame (LoAF): ${t.duration.toFixed(1)}ms`;try{performance.mark(r,{startTime:t.startTime}),performance.mark(n,{startTime:t.startTime+t.duration}),performance.measure(a,r,n)}catch(e){performance.mark(a)}}vo(0,(t.duration,t.startTime))}})),Ao(this,_o).observe({type:"long-animation-frame",buffered:!1})}catch(e){vo(0,0),this.startManualFrameTracking()}}stopLoAFTracking(){Ao(this,_o)&&(Ao(this,_o).disconnect(),Eo(this,_o,null),vo())}startManualFrameTracking(){Eo(this,So,performance.now()),Eo(this,wo,requestAnimationFrame(()=>this.measureFrames()))}stopManualFrameTracking(){Ao(this,wo)&&(cancelAnimationFrame(Ao(this,wo)),Eo(this,wo,null),vo())}}bo=new WeakMap,yo=new WeakMap,wo=new WeakMap,So=new WeakMap,_o=new WeakMap;var Co,Io,Po,Mo,To,No,Do,Fo,jo,Lo,Vo,zo=e=>{throw TypeError(e)},Bo=(e,t,r)=>t.has(e)||zo("Cannot "+r),Uo=(e,t,r)=>(Bo(e,t,"read from private field"),r?r.call(e):t.get(e)),Wo=(e,t,r)=>t.has(e)?zo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Go=(e,t,r,n)=>(Bo(e,t,"write to private field"),t.set(e,r),r);function Ho(e,t){const r=performance.getEntriesByType("resource");performance.clearResourceTimings();const n=r.filter(r=>r.startTime>=e&&r.startTime<=t&&r.responseEnd>=e&&r.responseEnd<=t);for(const e of n)performance.measure("Network entry "+e.name,{start:e.startTime,end:e.responseEnd});return function(e){if(0===e.length)return 0;e.sort((e,t)=>e.startTime-t.startTime);let t=0,r=e[0].startTime,n=e[0].responseEnd;for(let a=1;a<e.length;a++)e[a].startTime<=n?n=Math.max(n,e[a].responseEnd):(t+=n-r,r=e[a].startTime,n=e[a].responseEnd);return t+=n-r,t}(n)}Co=new WeakMap,Io=new WeakMap,Po=new WeakMap,Mo=new WeakMap,To=new WeakMap,No=new WeakMap,Do=new WeakMap,Fo=new WeakMap,jo=new WeakMap,Lo=new WeakMap,Vo=new WeakMap;var qo=Object.freeze({__proto__:null,SceneRenderProfiler:class{constructor(e){Wo(this,Co,null),Wo(this,Io,null),Wo(this,Po,null),Wo(this,Mo,null),this.metadata={},Wo(this,To),Wo(this,No,[]),Wo(this,Do),Wo(this,Fo,0),Wo(this,jo,0),Wo(this,Lo,null),Wo(this,Vo,null),this.measureTrailingFrames=(e,t,r)=>{const n=performance.now(),a=n-t;if(Uo(this,No).push(a),n-e<2e3)Uo(this,Co)&&Go(this,Mo,requestAnimationFrame(()=>this.measureTrailingFrames(e,n,r)));else{const t=function(e){for(let t=e.length-1;t>=0;t--)if(e[t]>30)return e.slice(0,t+1);return[e[0]]}(Uo(this,No)),n=t.reduce((e,t)=>e+t,0);vo(0,0,Uo(this,Co)),Go(this,No,[]);const a=e-r;t.length>0?(n.toFixed(1),t.length):(n.toFixed(1),t.length),Uo(this,Fo)>0?(Uo(this,jo).toFixed(1),Uo(this,Fo)):(Uo(this,jo).toFixed(1),Uo(this,Fo));vo(0,(a+n).toFixed(1)),Uo(this,Do).stop(),Go(this,Mo,null);const o=r+a+n;if(!Uo(this,Co))return;const i=Ho(r,o);if(Uo(this,Co)){const e={operationId:Uo(this,To)||Ct("dashboard-fallback"),interactionType:Uo(this,Co).origin,timestamp:o,duration:a+n,networkDuration:i,longFramesCount:Uo(this,Fo),longFramesTotalTime:Uo(this,jo),metadata:this.metadata};Mt().notifyDashboardInteractionComplete(e),Go(this,Co,null),Go(this,Mo,null)}}},Go(this,Do,new ko),this.setupVisibilityChangeHandler(),Go(this,Io,null),e&&(this._panelProfilingManager=new go(e))}setMetadata(e){this.metadata={...e}}setQueryController(e){this.queryController=e}attachPanelProfiling(e){var t;null==(t=this._panelProfilingManager)||t.attachToScene(e)}attachProfilerToPanel(e){var t;vo(0,0,e.state.key),null==(t=this._panelProfilingManager)||t.attachProfilerToPanel(e)}setInteractionCompleteHandler(e){Go(this,Vo,null!=e?e:null)}setupVisibilityChangeHandler(){Uo(this,Lo)||(Go(this,Lo,()=>{document.hidden&&Uo(this,Co)&&(vo(),this.cancelProfile())}),"undefined"!=typeof document&&document.addEventListener("visibilitychange",Uo(this,Lo)))}cleanup(){var e;Uo(this,Lo)&&"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",Uo(this,Lo)),Go(this,Lo,null)),Uo(this,Do).stop(),this.cancelProfile(),null==(e=this._panelProfilingManager)||e.cleanup()}startProfile(e){document.hidden?vo(0,0):Uo(this,Co)?Uo(this,Mo)?(this.cancelProfile(),this._startNewProfile(e,!0)):this.addCrumb(e):this._startNewProfile(e)}startInteraction(e){Uo(this,Io)&&(vo(0,0,Uo(this,Io)),Go(this,Io,null)),Go(this,Io,{interaction:e,startTs:performance.now()}),vo(0,0)}stopInteraction(){if(!Uo(this,Io))return;const e=performance.now(),t=e-Uo(this,Io).startTs,r=Ho(Uo(this,Io).startTs,e);vo(0,(t.toFixed(1),r.toFixed(1))),Uo(this,Vo)&&Uo(this,Co)&&Uo(this,Vo).call(this,{origin:Uo(this,Io).interaction,duration:t,networkDuration:r,startTs:Uo(this,Io).startTs,endTs:e}),performance.mark(`${Uo(this,Io).interaction}_start`,{startTime:Uo(this,Io).startTs}),performance.mark(`${Uo(this,Io).interaction}_end`,{startTime:e}),performance.measure(`Interaction_${Uo(this,Io).interaction}`,`${Uo(this,Io).interaction}_start`,`${Uo(this,Io).interaction}_end`),Go(this,Io,null)}getCurrentInteraction(){var e,t;return null!=(t=null==(e=Uo(this,Io))?void 0:e.interaction)?t:null}_startNewProfile(e,t=!1){vo(),Go(this,Co,{origin:e,crumbs:[]}),Go(this,Po,performance.now()),Go(this,Fo,0),Go(this,jo,0),Go(this,To,Ct("dashboard")),Mt().notifyDashboardInteractionStart({operationId:Uo(this,To),interactionType:e,timestamp:Uo(this,Po),metadata:this.metadata}),Uo(this,Do).start(e=>{var t,r,n;Uo(this,Co)&&Uo(this,Po)&&(e.timestamp<Uo(this,Po)||((t=this,r=Fo,{set _(e){Go(t,r,e)},get _(){return Uo(t,r,n)}})._++,Go(this,jo,Uo(this,jo)+e.duration)))})}recordProfileTail(e,t){Go(this,Mo,requestAnimationFrame(()=>this.measureTrailingFrames(e,e,t)))}tryCompletingProfile(){var e;vo(0,0,Uo(this,Co)),0===(null==(e=this.queryController)?void 0:e.runningQueriesCount())&&Uo(this,Co)&&(vo(),this.recordProfileTail(performance.now(),Uo(this,Po)))}isTailRecording(){return Boolean(Uo(this,Mo))}cancelTailRecording(){Uo(this,Mo)&&(cancelAnimationFrame(Uo(this,Mo)),Go(this,Mo,null),vo())}cancelProfile(){Uo(this,Co)&&(vo(0,0,Uo(this,Co)),Go(this,Co,null),Uo(this,Mo)&&(cancelAnimationFrame(Uo(this,Mo)),Go(this,Mo,null)),Uo(this,Do).stop(),vo(),Go(this,No,[]),Go(this,Fo,0),Go(this,jo,0))}addCrumb(e){Uo(this,Co)&&(Mt().notifyDashboardInteractionMilestone({operationId:Ct("dashboard-milestone"),interactionType:Uo(this,Co).origin,timestamp:performance.now(),milestone:e,metadata:this.metadata}),Uo(this,Co).crumbs.push(e))}},getScenePerformanceTracker:Mt});function $o(e){if("string"==typeof e)return e;if(e){if(e instanceof Error)return e.message;if(o.isFetchError(e)){if(e.data&&e.data.message)return e.data.message;if(e.statusText)return e.statusText}else if(e.hasOwnProperty("message"))return e.message}return JSON.stringify(e)}class Ko extends J{constructor(e,t=[]){super({isEnabled:!0,...e}),this._results=new s.ReplaySubject(1),this.isDataLayer=!0,this._variableValueRecorder=new Ft,this._variableDependency=new za(this,{onVariableUpdateCompleted:this.onVariableUpdateCompleted.bind(this),dependsOnScopes:!0}),this._variableDependency.setPaths(t),this.addActivationHandler(()=>this.onActivate())}onActivate(){return this.state.isEnabled&&this.onEnable(),this.shouldRunLayerOnActivate()&&this.runLayer(),this.subscribeToState((e,t)=>{!e.isEnabled&&this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0,this.onDisable(),this._results.next({origin:this,data:xe}),this.setStateHelper({data:xe})),e.isEnabled&&!t.isEnabled&&(this.onEnable(),this.runLayer())}),()=>{this.onDeactivate()}}onDeactivate(){this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0),this.onDisable(),this._variableValueRecorder.recordCurrentDependencyValuesForSceneObject(this)}onVariableUpdateCompleted(){this.runLayer()}cancelQuery(){this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0,this.publishResults(xe))}publishResults(e){this.state.isEnabled&&(this._results.next({origin:this,data:e}),this.setStateHelper({data:e}))}getResultsStream(){return this._results}shouldRunLayerOnActivate(){return!!this.state.isEnabled&&(this._variableValueRecorder.hasDependenciesChanged(this)?(pe(),!0):!this.state.data)}setStateHelper(e){ft(this,e)}}const Qo={prepareAnnotation:e=>{if(u.isString(null==e?void 0:e.query)){const{query:t,...r}=e;return{...r,target:{refId:"annotation_query",query:t},mappings:{}}}return e},prepareQuery:e=>e.target,processEvents:(e,t)=>Jo(t,e.mappings)};const Yo=[{key:"time",field:e=>e.fields.find(e=>e.type===a.FieldType.time),placeholder:"time, or the first time field"},{key:"timeEnd",help:"When this field is defined, the annotation will be treated as a range"},{key:"title"},{key:"text",field:e=>e.fields.find(e=>e.type===a.FieldType.string),placeholder:"text, or the first text field"},{key:"tags",split:",",help:"The results will be split on comma (,)"},{key:"id"}],Zo=[...o.config.publicDashboardAccessToken?[{key:"color"},{key:"isRegion"},{key:"source"}]:[],...Yo,{key:"userId"},{key:"login"},{key:"email"},{key:"prevState"},{key:"newState"},{key:"data"},{key:"panelId"},{key:"alertId"},{key:"dashboardId"},{key:"dashboardUID"}];function Jo(e,t){return s.of(e).pipe(e=>e.pipe(w.mergeMap(e=>(null==e?void 0:e.length)?1===e.length?s.of(e[0]):s.of(e).pipe(a.standardTransformers.mergeTransformer.operator({},{interpolate:e=>e}),w.map(e=>e[0])):s.of(void 0))),w.map(e=>{if(!(null==e?void 0:e.length))return[];let r=!1,n=!1;const o={};for(const t of e.fields){o[a.getFieldDisplayName(t,e).toLowerCase()]=t}t||(t={});const i=[];for(const s of Zo){const l=t[s.key]||{};if(l.source===a.AnnotationEventFieldSource.Skip)continue;const u={key:s.key,split:s.split};if(l.source===a.AnnotationEventFieldSource.Text)u.text=l.value;else{const t=(l.value||s.key).toLowerCase();u.field=o[t],!u.field&&s.field&&(u.field=s.field(e))}(u.field||u.text)&&(i.push(u),"time"===u.key?r=!0:"text"===u.key&&(n=!0))}if(!r||!n)return console.error("Cannot process annotation fields. No time or text present."),[];const s=[];for(let t=0;t<e.length;t++){const e={type:"default",color:"red"};for(const r of i){let n;if(r.text)n=r.text;else if(r.field&&(n=r.field.values.get(t),void 0!==n&&r.regex)){const e=r.regex.exec(n);e&&(n=e[1]?e[1]:e[0])}null!=n&&(r.split&&"string"==typeof n&&(n=n.split(",")),e[r.key]=n)}s.push(e)}return s}))}const Xo=["prometheus","loki","elasticsearch","grafana-opensearch-datasource"];let ei=100;function ti(e,t,r,n,i,l){var u;if(e.annotationQuery&&function(e){const{type:t}=e;return!e.annotations||Xo.includes(t)}(e))return console.warn("Using deprecated annotationQuery method, please upgrade your datasource"),s.from(e.annotationQuery({range:t.state.value,rangeRaw:t.state.value.raw,annotation:r,dashboard:{getVariables:o.getTemplateSrv().getVariables}})).pipe(w.map(e=>({state:c.LoadingState.Done,events:e})));const d={...Qo,...e.annotations},f={...null==(u=d.getDefaultQuery)?void 0:u.call(d),...r},p=d.prepareAnnotation(f);if(!p)return s.of({state:c.LoadingState.Done,events:[]});const h=d.prepareQuery(p);if(!h)return s.of({state:c.LoadingState.Done,events:[]});const m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,v=a.rangeUtil.calculateInterval(t.state.value,m,e.interval),g={__interval:{text:v.interval,value:v.interval},__interval_ms:{text:v.intervalMs.toString(),value:v.intervalMs},__annotation:{text:p.name,value:p},__sceneObject:Sr(n)},b={startTime:Date.now(),requestId:"AQ"+ei++,range:t.state.value,maxDataPoints:m,scopedVars:g,...v,app:a.CoreApp.Dashboard,timezone:t.getTimeZone(),targets:[{...h,refId:"Anno"}],scopes:uo.getScopes(n),filters:i,groupByKeys:l,...zt(n)};return o.getRunRequest()(e,b).pipe(w.mergeMap(e=>{const t=(null==e?void 0:e.series.length)?e.series:e.annotations;return(null==t?void 0:t.length)?(t.forEach(e=>{var t;(null==(t=e.meta)?void 0:t.dataTopic)||(e.meta={...e.meta||{},dataTopic:a.DataTopic.Annotations})}),d.processEvents(p,t).pipe(w.map(t=>({state:e.state,events:t||[]})))):s.of({state:e.state,events:[]})}))}function ri(e){return"panel-alert"===e.eventType}class ni extends Ko{constructor(e){super({isEnabled:!0,...e},["query"]),this._scopedVars={__sceneObject:Sr(this)},this._drilldownDependenciesManager=new ga(this._variableDependency)}onEnable(){this.publishEvent(new o.RefreshEvent,!0);const e=uo.getTimeRange(this);this.setState({query:{...this.state.query,enable:!0}}),this._timeRangeSub=e.subscribeToState(()=>{this.runWithTimeRange(e)})}onDisable(){var e;this.publishEvent(new o.RefreshEvent,!0),this.setState({query:{...this.state.query,enable:!1}}),null==(e=this._timeRangeSub)||e.unsubscribe()}runLayer(){pe();const e=uo.getTimeRange(this);this.runWithTimeRange(e)}async runWithTimeRange(e){var t;const{query:r}=this.state;if(r.enable)if(this._drilldownDependenciesManager.findAndSubscribeToDrilldowns(null==(t=r.datasource)?void 0:t.uid),this.querySub&&this.querySub.unsubscribe(),this._variableDependency.hasDependencyInLoadingState())pe();else try{let t=ti(await this.resolveDataSource(r),e,r,this,this._drilldownDependenciesManager.getFilters(),this._drilldownDependenciesManager.getGroupByKeys()).pipe(Tt({type:"AnnotationsDataLayer/annotationsLoading",origin:this,cancel:()=>this.cancelQuery()}),s.map(e=>this.processEvents(r,e)));this.querySub=t.subscribe(e=>{this.publishResults(e)})}catch(e){this.publishResults({...xe,state:c.LoadingState.Error,errors:[{message:$o(e)}]}),console.error("AnnotationsDataLayer error",e)}}async resolveDataSource(e){return await Dt(e.datasource||void 0,this._scopedVars)}processEvents(e,t){let r=(n=e,i=t.events||[],n.snapshotData&&delete(n=u.cloneDeep(n)).snapshotData,i.map(e=>{var t;const r={...e};switch(r.source=n,r.color=o.config.theme2.visualization.getColorByName(n.iconColor),r.type=n.name,r.isRegion=Boolean(r.timeEnd&&r.time!==r.timeEnd),null==(t=r.newState)?void 0:t.toLowerCase()){case"pending":r.color="yellow";break;case"alerting":r.color="red";break;case"ok":case"normal":r.color="green";break;case"no_data":case"nodata":r.color="gray"}return r}));var n,i;r=function(e){let t=[];const r=u.partition(e,"id"),n=u.groupBy(r[0],"id");return t=u.map(n,e=>e.length>1&&!u.every(e,ri)?u.find(e,e=>"panel-alert"!==e.eventType):u.head(e)),t=u.concat(t,r[1]),t}(r);const s={...xe,state:t.state},l=a.arrayToDataFrame(r);return l.meta={...l.meta,dataTopic:a.DataTopic.Annotations},s.series=[l],s}}ni.Component=function({model:e}){const{isEnabled:t,isHidden:r}=e.useState(),n=`data-layer-${e.state.key}`;if(r)return null;return L.default.createElement(f.InlineSwitch,{className:ai,id:n,value:t,onChange:()=>e.setState({isEnabled:!t})})};const ai=h.css({borderBottomLeftRadius:0,borderTopLeftRadius:0});var oi=Object.freeze({__proto__:null,AnnotationsDataLayer:ni});class ii extends J{constructor(e){super(e),this._activationHandler=()=>{const e=this.getAncestorTimeRange();this.ancestorTimeRangeChanged(e.state),this._subs.add(e.subscribeToState(e=>this.ancestorTimeRangeChanged(e)))},this.addActivationHandler(this._activationHandler)}getAncestorTimeRange(){if(!this.parent||!this.parent.parent)throw new Error(typeof this+" must be used within $timeRange scope");return uo.getTimeRange(this.parent.parent)}getTimeZone(){return this.getAncestorTimeRange().getTimeZone()}onTimeRangeChange(e){this.getAncestorTimeRange().onTimeRangeChange(e)}onTimeZoneChange(e){this.getAncestorTimeRange().onTimeZoneChange(e)}onRefresh(){this.getAncestorTimeRange().onRefresh()}}class si extends J{constructor(){super({})}}function li({layer:e}){var t,r;const n=`data-layer-${e.state.key}`,{data:a,isHidden:o}=e.useState(),i=Boolean(a&&a.state===c.LoadingState.Loading);return o?null:L.default.createElement("div",{className:ui},L.default.createElement(Nr,{htmlFor:n,isLoading:i,onCancel:()=>{var t;return null==(t=e.cancelQuery)?void 0:t.call(e)},label:e.state.name,description:e.state.description,error:null==(r=null==(t=e.state.data)?void 0:t.errors)?void 0:r[0].message}),L.default.createElement(e.Component,{model:e}))}si.Component=function({model:e}){const t=uo.getDataLayers(e,!0);if(0===t.length)return null;return L.default.createElement(L.default.Fragment,null,t.map(e=>L.default.createElement(li,{layer:e,key:e.state.key})))};const ui=h.css({display:"flex"});class ci extends J{}function di({variable:e,layout:t,showAlways:r,hideLabel:n}){return X(e,{shouldActivateOrKeepAlive:!0}).hide!==a.VariableHide.hideVariable||r?"vertical"===t?L.default.createElement("div",{className:hi,"data-testid":p.selectors.pages.Dashboard.SubMenu.submenuItem},L.default.createElement(fi,{variable:e,layout:t,hideLabel:n}),L.default.createElement(e.Component,{model:e})):L.default.createElement("div",{className:pi,"data-testid":p.selectors.pages.Dashboard.SubMenu.submenuItem},L.default.createElement(fi,{variable:e,hideLabel:n}),L.default.createElement(e.Component,{model:e})):e.UNSAFE_renderAsHidden?L.default.createElement(e.Component,{model:e}):null}function fi({variable:e,layout:t,hideLabel:r}){var n;const{state:o}=e;if(e.state.hide===a.VariableHide.hideLabel||r)return null;const i=`var-${o.key}`,s=o.label||o.name;return L.default.createElement(Nr,{htmlFor:i,isLoading:o.loading,onCancel:()=>{var t;return null==(t=e.onCancel)?void 0:t.call(e)},label:s,error:o.error,layout:t,description:null!=(n=o.description)?n:void 0})}ci.Component=function({model:e}){const t=uo.getVariables(e).useState();return L.default.createElement(L.default.Fragment,null,t.variables.map(t=>L.default.createElement(di,{key:t.state.key,variable:t,layout:e.state.layout})))};const pi=h.css({display:"flex","> :nth-child(2)":h.css({borderTopLeftRadius:0,borderBottomLeftRadius:0})}),hi=h.css({display:"flex",flexDirection:"column"});class mi extends J{}mi.Component=function({model:e}){const t=uo.lookupVariable(e.state.variableName,e);if(!t)return null;return L.default.createElement(di,{key:t.state.key,variable:t,layout:e.state.layout,showAlways:!0})};class vi extends J{constructor(e){super(e),this._variablesToUpdate=new Set,this._updating=new Map,this._variableValueRecorder=new Ft,this._variableDependency=new bi(this._handleParentVariableUpdatesCompleted.bind(this)),this._onActivate=()=>{const e=uo.getTimeRange(this);this._subs.add(this.subscribeToEvent(Ue,e=>this._handleVariableValueChanged(e.payload))),this._subs.add(e.subscribeToState(()=>{this._refreshTimeRangeBasedVariables()})),this._subs.add(this.subscribeToState(this._onStateChanged)),this._checkForVariablesThatChangedWhileInactive();for(const e of this.state.variables)this._variableNeedsUpdate(e)&&this._variablesToUpdate.add(e);return this._updateNextBatch(),this._onDeactivate},this._onDeactivate=()=>{var e;for(const t of this._updating.values())null==(e=t.subscription)||e.unsubscribe();for(const e of this.state.variables)this._variablesToUpdate.has(e)||this._updating.has(e)||this._variableValueRecorder.recordCurrentValue(e);this._variablesToUpdate.clear(),this._updating.clear()},this._onStateChanged=(e,t)=>{const r=this._variablesToUpdate.size;for(const r of t.variables)if(!e.variables.includes(r)){const e=this._updating.get(r);(null==e?void 0:e.subscription)&&e.subscription.unsubscribe(),this._updating.delete(r),this._variablesToUpdate.delete(r)}for(const r of e.variables)t.variables.includes(r)||this._variableNeedsUpdate(r)&&this._variablesToUpdate.add(r);0===r&&this._variablesToUpdate.size>0&&this._updateNextBatch()},this.addActivationHandler(this._onActivate)}getByName(e){return this.state.variables.find(t=>t.state.name===e)}_refreshTimeRangeBasedVariables(){for(const e of this.state.variables)"refresh"in e.state&&e.state.refresh===a.VariableRefresh.onTimeRangeChanged&&this._variablesToUpdate.add(e);this._updateNextBatch()}_checkForVariablesThatChangedWhileInactive(){if(this._variableValueRecorder.hasValues())for(const e of this.state.variables)this._variableValueRecorder.hasValueChanged(e)&&(gi(e,"Changed while in-active"),this._addDependentVariablesToUpdateQueue(e))}_variableNeedsUpdate(e){return!e.isLazy&&(!!e.validateAndUpdate&&(!this._variableValueRecorder.hasRecordedValue(e)||(gi(e,"Skipping updateAndValidate current value valid"),!1)))}_updateNextBatch(){for(const e of this._variablesToUpdate){if(!e.validateAndUpdate){console.error("Variable added to variablesToUpdate but does not have validateAndUpdate");continue}if(this._updating.has(e))continue;if(uo.hasVariableDependencyInLoadingState(e))continue;const t={variable:e};this._updating.set(e,t),gi(e,"updateAndValidate started"),t.subscription=e.validateAndUpdate().subscribe({next:()=>this._validateAndUpdateCompleted(e),complete:()=>this._validateAndUpdateCompleted(e),error:t=>this._handleVariableError(e,t)})}}_validateAndUpdateCompleted(e){var t;if(!this._updating.has(e))return;const r=this._updating.get(e);null==(t=null==r?void 0:r.subscription)||t.unsubscribe(),this._updating.delete(e),this._variablesToUpdate.delete(e),gi(e,"updateAndValidate completed"),this._notifyDependentSceneObjects(e),this._updateNextBatch()}cancel(e){var t;const r=this._updating.get(e);null==(t=null==r?void 0:r.subscription)||t.unsubscribe(),this._updating.delete(e),this._variablesToUpdate.delete(e)}_handleVariableError(e,t){var r;const n=this._updating.get(e);null==(r=null==n?void 0:n.subscription)||r.unsubscribe(),this._updating.delete(e),this._variablesToUpdate.delete(e),e.setState({loading:!1,error:t.message}),console.error("SceneVariableSet updateAndValidate error",t),gi(e,"updateAndValidate error",t),this._notifyDependentSceneObjects(e),this._updateNextBatch()}_handleVariableValueChanged(e){this._addDependentVariablesToUpdateQueue(e),this._updating.has(e)||(this._updateNextBatch(),this._notifyDependentSceneObjects(e))}_handleParentVariableUpdatesCompleted(e,t){t&&this._addDependentVariablesToUpdateQueue(e),this._variablesToUpdate.size>0&&0===this._updating.size&&this._updateNextBatch()}_addDependentVariablesToUpdateQueue(e){for(const t of this.state.variables)t.variableDependency&&t.variableDependency.hasDependencyOn(e.state.name)&&(gi(t,"Added to update queue, dependant variable value changed"),this._updating.has(t)&&t.onCancel&&t.onCancel(),t.validateAndUpdate&&this._variablesToUpdate.add(t),t.variableDependency.variableUpdateCompleted(e,!0))}_notifyDependentSceneObjects(e){this.parent&&this._traverseSceneAndNotify(this.parent,e,!0)}_traverseSceneAndNotify(e,t,r){if(this!==e&&e.isActive){if(e.state.$variables&&e.state.$variables!==this){const r=e.state.$variables.getByName(t.state.name);if(null==r?void 0:r.isAncestorLoading)t=r;else if(r)return}e.variableDependency&&e.variableDependency.variableUpdateCompleted(t,r),e.forEachChild(e=>this._traverseSceneAndNotify(e,t,r))}}isVariableLoadingOrWaitingToUpdate(e){return!!e.state.loading||(!(!e.isAncestorLoading||!e.isAncestorLoading())||(!(!this._variablesToUpdate.has(e)&&!this._updating.has(e))||uo.hasVariableDependencyInLoadingState(e)))}}function gi(e,t,r){pe(0,e.state.name)}class bi{constructor(e){this._variableUpdatesCompleted=e,this._emptySet=new Set}getNames(){return this._emptySet}hasDependencyOn(e){return!1}variableUpdateCompleted(e,t){this._variableUpdatesCompleted(e,t)}}class yi extends vt{constructor(e){super({type:"custom",query:"",valuesFormat:"csv",value:"",text:"",options:[],name:"",...e}),this._variableDependency=new za(this,{statePaths:["query"]})}transformCsvStringToOptions(e,t=!0){var r;return(null!=(r=(e=t?uo.interpolate(this,e):e).match(/(?:\\,|[^,])+/g))?r:[]).map(e=>{var t;e=e.replace(/\\,/g,",");const r=null!=(t=/^\s*(.+)\s:\s(.+)$/g.exec(e))?t:[];if(3===r.length){const[,e,t]=r;return{label:e.trim(),value:t.trim()}}return{label:e.trim(),value:e.trim()}})}transformJsonToOptions(e){if(!e)return[];const t=JSON.parse(e);if(!Array.isArray(t)||t.some(e=>"object"!=typeof e||null===e))throw new Error("Query must be a JSON array of objects");const r="value";return t.map(e=>{var t;return{label:null==(t=String(e.text||e[r]))?void 0:t.trim(),value:String(e[r]).trim(),properties:e}})}getValueOptions(e){const t="json"===this.state.valuesFormat?this.transformJsonToOptions(this.state.query):this.transformCsvStringToOptions(this.state.query);return t.length||(this.skipNextValidation=!0),s.of(t)}}yi.Component=({model:e})=>L.default.createElement(pr,{model:e});class wi extends J{constructor(e){super({type:"switch",value:"false",enabledValue:"true",disabledValue:"false",name:"",...e}),this._prevValue="",this._urlSync=new Oe(this,{keys:()=>this.getKeys()})}validateAndUpdate(){const e=this.getValue();return this._prevValue!==e&&(this._prevValue=e,this.publishEvent(new Ue(this),!0)),s.of({})}setValue(e){this.getValue()!==e&&([this.state.enabledValue,this.state.disabledValue].includes(e)?(this.setState({value:e}),this.publishEvent(new Ue(this),!0)):console.error(`Invalid value for switch variable: "${e}". Valid values are: "${this.state.enabledValue}" and "${this.state.disabledValue}".`))}getValue(){return this.state.value}isEnabled(){return this.state.value===this.state.enabledValue}isDisabled(){return this.state.value===this.state.disabledValue}getKey(){return`var-${this.state.name}`}getKeys(){return this.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){return this.state.skipUrlSync?{}:{[this.getKey()]:this.state.value}}updateFromUrl(e){const t=e[this.getKey()];"string"==typeof t&&this.setValue(t)}}function Si(e){return{container:h.css({display:"flex",alignItems:"center",padding:e.spacing(0,1),height:e.spacing(e.components.height.md),borderRadius:e.shape.radius.default,border:`1px solid ${e.components.input.borderColor}`,background:e.colors.background.primary})}}wi.Component=function({model:e}){const t=e.useState(),r=f.useStyles2(Si);return L.default.createElement("div",{className:r.container},L.default.createElement(f.Switch,{id:`var-switch-${t.key}`,value:t.value===t.enabledValue,onChange:r=>{e.setValue(r.currentTarget.checked?t.enabledValue:t.disabledValue)}}))};class _i extends vt{constructor(e){super({type:"datasource",value:"",text:"",options:[],name:"",regex:"",pluginId:"",...e}),this._variableDependency=new za(this,{statePaths:["regex"]})}getValueOptions(e){if(!this.state.pluginId)return s.of([]);const t=o.getDataSourceSrv().getList({metrics:!0,variables:!1,pluginId:this.state.pluginId});let r;if(this.state.regex){const e=uo.interpolate(this,this.state.regex,void 0,"regex");r=a.stringToJsRegex(e)}const n=[];for(let e=0;e<t.length;e++){const a=t[e];xi(a,r)&&n.push({label:a.name,value:a.uid}),this.state.defaultOptionEnabled&&Oi(a,r)&&n.push({label:d.t("grafana-scenes.variables.data-source-variable.label.default","default"),value:"default"})}return 0===n.length?this.setState({error:"No data sources found"}):this.state.error&&this.setState({error:null}),s.of(n)}}function xi(e,t){return!t||t.exec(e.name)}function Oi(e,t){return!!e.isDefault&&(!t||t.exec("default"))}function Ai(e,t){const r=["A","B","C","D","E","F","G","H"],n=[];if(t>5)return[];for(const a of r){const r=`${e}${a}`;n.push({name:r,children:Ai(r,t+1)})}return n}function Ri(e,t,r){if(r>=t.length)return e;if("*"===t[r])return e;const n=t[r];let a=[],o=[n];n.startsWith("{")&&(o=n.replace(/\{|\}/g,"").split(","));for(const n of e)for(const e of o)if(-1!==e.indexOf("*")){const o=e.replace("*","");new RegExp(`^${o}.*`,"gi").test(n.name)&&(a=a.concat(Ri([n],t,r+1)))}else n.name===e&&(a=a.concat(Ri(n.children,t,r+1)));return a}function Ei(e){if(0===e.indexOf("value"))return[{name:e,children:[]}];return Ri(Ai("",0),e.split("."),0)}_i.Component=({model:e})=>L.default.createElement(pr,{model:e});class ki extends vt{constructor(e,t=!1){super({type:"custom",name:"Test",value:"Value",text:d.t("grafana-scenes.variables.test-variable.text.text","Text"),query:"Query",options:[],refresh:a.VariableRefresh.onDashboardLoad,updateOptions:!0,...e}),this.completeUpdate=new s.Subject,this.isGettingValues=!0,this.getValueOptionsCount=0,this.isLazy=!1,this._variableDependency=new za(this,{statePaths:["query"]}),this.isLazy=t}getValueOptions(e){const{delayMs:t}=this.state;this.getValueOptionsCount+=1;const r=uo.getQueryController(this);return new s.Observable(e=>{const n={type:"variable",origin:this,cancel:()=>e.complete()};if(r&&r.queryStarted(n),this.setState({loading:!0}),this.state.throwError)throw new Error(this.state.throwError);const a=uo.interpolate(this,this.state.query),o=this.getOptions(a),i=this.completeUpdate.subscribe({next:()=>{const t={issuedQuery:a,loading:!1};this.state.updateOptions&&(t.options=o),this.setState(t),e.next(o),e.complete()}});let s;return t?s=window.setTimeout(()=>this.signalUpdateCompleted(),t):0===t&&this.signalUpdateCompleted(),this.isGettingValues=!0,()=>{i.unsubscribe(),window.clearTimeout(s),this.isGettingValues=!1,this.state.loading&&this.setState({loading:!1}),r&&r.queryCompleted(n)}})}cancel(){const e=Ae(this,e=>e instanceof vi?e:void 0);null==e||e.cancel(this)}getOptions(e){return this.state.optionsToReturn?this.state.optionsToReturn:Ei(e).map(e=>({label:e.name,value:e.name}))}signalUpdateCompleted(){this.completeUpdate.next(1)}}function Ci({model:e}){const{value:t,key:r,loading:n}=e.useState(),a=i.useCallback(t=>{e.setValue(t.currentTarget.value)},[e]),o=i.useCallback(t=>{"Enter"===t.key&&e.setValue(t.currentTarget.value)},[e]);return L.default.createElement(f.AutoSizeInput,{id:r,placeholder:d.t("grafana-scenes.variables.variable-value-input.placeholder-enter-value","Enter value"),minWidth:15,maxWidth:30,value:t,loading:n,onBlur:a,onKeyDown:o})}ki.Component=({model:e})=>L.default.createElement(pr,{model:e});class Ii extends J{constructor(e){super({type:"textbox",value:"",name:"",...e}),this._urlSync=new Oe(this,{keys:()=>this.getKeys()})}getValue(){return this.state.value}setValue(e){e!==this.state.value&&(this.setState({value:e}),this.publishEvent(new Ue(this),!0))}getKey(){return`var-${this.state.name}`}getKeys(){return this.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){return this.state.skipUrlSync?{}:{[this.getKey()]:this.state.value}}updateFromUrl(e){const t=e[this.getKey()];"string"==typeof t&&this.setValue(t)}}Ii.Component=({model:e})=>L.default.createElement(Ci,{model:e});class Pi extends J{constructor(e){super({type:"interval",value:"",intervals:["1m","10m","30m","1h","6h","12h","1d","7d","14d","30d"],name:"",autoStepCount:30,autoMinInterval:"10s",autoEnabled:!1,refresh:c.VariableRefresh.onTimeRangeChanged,...e}),this._onChange=e=>{this.setState({value:e.value}),this.publishEvent(new Ue(this),!0)},this._urlSync=new Oe(this,{keys:()=>[this.getKey()]})}getKey(){return`var-${this.state.name}`}getUrlState(){return{[this.getKey()]:this.state.value}}updateFromUrl(e){const t={},r=e[this.getKey()];"string"==typeof r&&(r.startsWith("$__auto_interval_")?t.value=Ye:t.value=r),this.setState(t)}getOptionsForSelect(){const{value:e,intervals:t,autoEnabled:r}=this.state;let n=t.map(e=>({value:e,label:e}));return r&&(n=[{value:Ye,label:"Auto"},...n]),e&&!n.some(t=>t.value===e)&&n.push({value:e,label:e}),n}getValue(){const{value:e,autoStepCount:t,autoMinInterval:r}=this.state;return e===Ye?this.getAutoRefreshInteval(t,r):e}getAutoRefreshInteval(e,t){const r=uo.getTimeRange(this).state.value;return a.rangeUtil.calculateInterval(r,e,t).interval}validateAndUpdate(){const{value:e,intervals:t}=this.state;let r=!1;if(e===Ye)r=!0;else if(!e&&t.length>0){const e=t[0];this.setState({value:e}),r=!0}return r&&this.publishEvent(new Ue(this),!0),s.of({})}}Pi.Component=({model:e})=>{const{key:t,value:r}=e.useState();return L.default.createElement(f.Select,{id:t,placeholder:d.t("grafana-scenes.variables.interval-variable.placeholder-select-value","Select value"),width:"auto",value:r,tabSelectsValue:!1,options:e.getOptionsForSelect(),onChange:e._onChange})};var Mi,Ti,Ni=e=>{throw TypeError(e)},Di=(e,t,r)=>t.has(e)||Ni("Cannot "+r),Fi=(e,t,r)=>(Di(e,t,"read from private field"),r?r.call(e):t.get(e)),ji=(e,t,r)=>t.has(e)?Ni("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Li=(e,t,r,n)=>(Di(e,t,"write to private field"),t.set(e,r),r);class Vi extends a.BusEventWithPayload{}Vi.type="new-scene-object-added";class zi{constructor(e={},t=o.locationService){this._options=e,this._locationService=t,this._paramsCache=new Bi(t),this._urlKeyMapper=new ie({namespace:e.namespace,excludeFromNamespace:e.excludeFromNamespace})}initSync(e){var t;if(this._subs&&(pe(0,0,null==(t=this._sceneRoot)||t.state.key),this._subs.unsubscribe()),pe(0,0,e.state.key),this._sceneRoot=e,this._subs=new s.Subscription,this._subs.add(e.subscribeToEvent(q,e=>{this.handleSceneObjectStateChanged(e.payload.changedObject)})),this._subs.add(e.subscribeToEvent(Vi,e=>{this.handleNewObject(e.payload)})),this._urlKeyMapper.clear(),this._lastLocation=this._locationService.getLocation(),this.handleNewObject(this._sceneRoot),this._options.updateUrlOnInit){const t=le(e,this._urlKeyMapper.getOptions());(function(e,t){for(let r in e)if(!de(t.getAll(r),e[r]))return!0;return!1})(t,this._paramsCache.getParams())&&this._locationService.partial(t,!0)}}cleanUp(e){this._sceneRoot===e&&(pe(),this._subs&&(this._subs.unsubscribe(),this._subs=void 0,pe(0,0,(this._sceneRoot.state.key,e.state.key))),this._sceneRoot=void 0,this._lastLocation=void 0)}handleNewLocation(e){this._sceneRoot&&this._lastLocation!==e&&(pe(),this._lastLocation=e,ue(this._sceneRoot,this._paramsCache.getParams(),this._urlKeyMapper))}handleNewObject(e){this._sceneRoot&&ue(e,this._paramsCache.getParams(),this._urlKeyMapper)}handleSceneObjectStateChanged(e){var t,r;if(!e.urlSync)return;const n=e.urlSync.getUrlState(),a=this._locationService.getSearch(),o={};for(const[t,r]of Object.entries(n)){const n=this._urlKeyMapper.getUniqueKey(t,e);de(a.getAll(n),r)||(o[n]=r)}if(Object.keys(o).length>0){const a=!0!==(null==(r=(t=e.urlSync).shouldCreateHistoryStep)?void 0:r.call(t,n));pe(),this._locationService.partial(o,a),this._lastLocation=this._locationService.getLocation()}}getUrlState(e){return le(e,this._urlKeyMapper.getOptions())}}class Bi{constructor(e){this.locationService=e,ji(this,Mi),ji(this,Ti)}getParams(){const e=this.locationService.getLocation();return Fi(this,Ti)===e||(Li(this,Ti,e),Li(this,Mi,new URLSearchParams(e.search))),Fi(this,Mi)}}function Ui(e,t={}){const r=n.useLocation(),a=pt(),[o,s]=i.useState(!1),l=function(e,t){return i.useMemo(()=>new zi({updateUrlOnInit:e.updateUrlOnInit,createBrowserHistorySteps:e.createBrowserHistorySteps,namespace:e.namespace,excludeFromNamespace:e.excludeFromNamespace},t),[e.updateUrlOnInit,e.createBrowserHistorySteps,e.namespace,e.excludeFromNamespace,t])}(t,a);return i.useEffect(()=>(l.initSync(e),s(!0),()=>l.cleanUp(e)),[e,l]),i.useEffect(()=>{const e=a.getLocation(),t=e!==r?e:r;e!==r&&pe(),l.handleNewLocation(t)},[e,l,r,a]),o}Mi=new WeakMap,Ti=new WeakMap;class Wi extends J{constructor(e){super(e),this.addActivationHandler(()=>{const e=function(e){const t=window.__grafanaSceneContext;return pe(),window.__grafanaSceneContext=e,()=>{window.__grafanaSceneContext===e&&(pe(),window.__grafanaSceneContext=t)}}(this);return()=>{e()}})}}Wi.Component=function({model:e}){const{body:t,controls:r}=e.useState(),n=f.useStyles2(Gi);return L.default.createElement("div",{className:n.container},r&&L.default.createElement("div",{className:n.controls},r.map(e=>L.default.createElement(e.Component,{key:e.state.key,model:e}))),L.default.createElement("div",{className:n.body},L.default.createElement(t.Component,{model:t})))};const Gi=e=>({container:h.css({flexGrow:1,display:"flex",gap:e.spacing(2),minHeight:"100%",flexDirection:"column"}),body:h.css({flexGrow:1,display:"flex",gap:e.spacing(1)}),controls:h.css({display:"flex",gap:e.spacing(2),alignItems:"flex-end",flexWrap:"wrap"})});class Hi extends J{addItem(e){this.setState({items:this.state.items?[...this.state.items,e]:[e]})}setItems(e){this.setState({items:e})}}async function qi(e,t,r,n){var a,i,s,l;const u=null==(a=e.request)?void 0:a.targets;if(!u)return"";const{from:c,to:d}=r,f=null==(i=e.request)?void 0:i.filters,p={__sceneObject:Sr(t)},h=(await Promise.allSettled(u.map(async e=>{var t;const r=await o.getDataSourceSrv().get(e.datasource);return(null==(t=r.interpolateVariablesInQueries)?void 0:t.call(r,[e],null!=p?p:{},f)[0])||e}))).filter(e=>"fulfilled"===e.status).map(e=>e.value).map(e=>{var t;return null!=(t=null==n?void 0:n(e))?t:e}),m=null!=h?h:[];let v=new Set(m.map(e=>{var t;return null==(t=e.datasource)?void 0:t.uid})).size>1?"-- Mixed --":null==(l=null==(s=m.find(e=>{var t;return!!(null==(t=e.datasource)?void 0:t.uid)}))?void 0:s.datasource)?void 0:l.uid;if((null==m?void 0:m.length)&&v&&c&&d){return`/explore?left=${encodeURIComponent(JSON.stringify({datasource:v,queries:m,range:{from:c,to:d}}))}`}return""}Hi.Component=function({model:e}){const{items:t=[]}=e.useState(),r=L.default.useRef(null);i.useEffect(()=>{r.current&&r.current.focus()},[]);const n=e=>e.map(e=>{switch(e.type){case"divider":return L.default.createElement(f.Menu.Divider,{key:e.text});case"group":return L.default.createElement(f.Menu.Group,{key:e.text,label:e.text},e.subMenu?n(e.subMenu):void 0);default:return L.default.createElement(f.Menu.Item,{key:e.text,role:"menuitem",label:e.text,icon:e.iconClassName,childItems:e.subMenu?n(e.subMenu):void 0,url:e.href,onClick:e.onClick,shortcut:e.shortcut,target:e.target||void 0,testId:p.selectors.components.Panels.Panel.menuItems(e.text)})}});return L.default.createElement(f.Menu,{ref:r},n(t))};class $i extends J{constructor(e={}){super({options:e})}}$i.Component=function({model:e}){const{options:t}=e.useState(),{data:r}=uo.getData(e).useState(),{from:n,to:a}=uo.getTimeRange(e).useState(),{value:i}=v.useAsync(async()=>r?qi(r,e,{from:n,to:a},t.transform):"",[r,e,n,a]),s=o.useReturnToPrevious();if(i)return L.default.createElement(f.LinkButton,{key:"explore",icon:"compass",size:"sm",variant:"secondary",href:i,onClick:()=>{var e;t.returnToPrevious&&s(t.returnToPrevious.title,t.returnToPrevious.href),null==(e=t.onClick)||e.call(t)}},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.viz-panel-explore-button.explore"},"Explore"));return null};class Ki extends J{}function Qi(e){return e instanceof ss}Ki.Component=function({model:e}){const{body:t}=e.useState(),r=e.parent;if(r&&(n=r,!(n instanceof ns))&&!Qi(r))throw new Error("SceneGridItem must be a child of SceneGridLayout or SceneGridRow");var n;if(!t)return null;return L.default.createElement(t.Component,{model:t})};const Yi=h.css({flex:"1 1 auto",position:"relative",zIndex:1,width:"100%"}),Zi=L.default.forwardRef((e,t)=>{var r;const{grid:n,layoutItem:a,index:o,totalCount:i,isLazy:s,style:l,onLoad:u,onChange:c,children:d,...f}=e,p=n.getSceneLayoutChild(a.i),m=null==(r=p.getClassName)?void 0:r.call(p),v=L.default.createElement(p.Component,{model:p,key:p.state.key});return s?L.default.createElement(Wn,{...f,key:p.state.key,"data-griditem-key":p.state.key,className:h.cx(m,e.className),style:l,ref:t},v,d):L.default.createElement("div",{...f,ref:t,key:p.state.key,"data-griditem-key":p.state.key,className:h.cx(m,e.className),style:l},v,d)});function Ji(e,t,r){e.current?t?e.current.classList.add("react-grid-layout--enable-move-animations"):e.current.classList.remove("react-grid-layout--enable-move-animations"):r||setTimeout(()=>Ji(e,t,!0),50)}Zi.displayName="GridItemWrapper";const Xi=L.default.forwardRef(({handleAxis:e,...t},r)=>{const n=f.useStyles2(es);return L.default.createElement("div",{ref:r,...t,className:`${n} scene-resize-handle`},L.default.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L.default.createElement("path",{d:"M21 15L15 21M21 8L8 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))});function es(e){return h.css({position:"absolute",bottom:0,right:0,zIndex:999,padding:e.spacing(1.5,0,0,1.5),color:e.colors.border.strong,cursor:"se-resize","&:hover":{color:e.colors.text.link},svg:{display:"block"},".react-resizable-hide &":{display:"none"}})}Xi.displayName="ResizeHandle";class ts extends a.BusEventWithPayload{}ts.type="scene-grid-layout-drag-start";const rs=class e extends J{constructor(e){super({...e,children:os(e.children)}),this._skipOnLayoutChange=!1,this._oldLayout=[],this._loadOldLayout=!1,this.onLayoutChange=e=>{if(this._skipOnLayoutChange)this._skipOnLayoutChange=!1;else{this._loadOldLayout&&(e=[...this._oldLayout],this._loadOldLayout=!1);for(const t of e){const e=this.getSceneLayoutChild(t.i),r={x:t.x,y:t.y,width:t.w,height:t.h};as(e.state,r)||e.setState({...r})}this.setState({children:os(this.state.children)})}},this.onResizeStop=(e,t,r)=>{this.getSceneLayoutChild(r.i).setState({width:r.w,height:r.h})},this.onDragStart=e=>{this._oldLayout=[...e]},this.onDragStop=(e,t,r)=>{const n=this.getSceneLayoutChild(r.i),a=(e=is(e)).findIndex(e=>e.i===r.i);let o=this.findGridItemSceneParent(e,a-1),i=this.state.children;for(let t=0;t<e.length;t++){const r=e[t],n=this.getSceneLayoutChild(r.i),a=n.state;(null==a?void 0:a.x)===r.x&&(null==a?void 0:a.y)===r.y||n.setState({x:r.x,y:r.y})}o instanceof ss&&ht(o)&&(this._loadOldLayout=!0),n instanceof ss&&o instanceof ss&&(this.isRowDropValid(e,r,a)||(this._loadOldLayout=!0),o=this),o===n.parent||this._loadOldLayout||(i=this.moveChildTo(n,o)),this.setState({children:os(i)}),this._skipOnLayoutChange=!0}}isDraggable(){var e;return null!=(e=this.state.isDraggable)&&e}getDragClass(){return`grid-drag-handle-${this.state.key}`}getDragClassCancel(){return"grid-drag-cancel"}getDragHooks(){return{onDragStart:(e,t)=>{this.publishEvent(new ts({evt:e,panel:t}),!0)}}}adjustYPositions(e,t){for(const r of this.state.children)if(r.state.y>e&&r.setState({y:r.state.y+t}),r instanceof ss)for(const n of r.state.children)n.state.y>e&&n.setState({y:n.state.y+t})}toggleRow(e){var t,r;if(!e.state.isCollapsed)return e.setState({isCollapsed:!0}),void this.setState({});const n=e.state.children;if(0===n.length)return e.setState({isCollapsed:!1}),void this.setState({});const a=e.state.y,o=(null!=(t=n[0].state.y)?t:a)-(a+1);let i=a;for(const e of n){const t={...e.state};t.y=null!=(r=t.y)?r:a,t.y-=o,t.y!==e.state.y&&e.setState(t),i=Math.max(i,Number(t.y)+Number(t.height))}const s=i-a-1;for(const t of this.state.children)if(t.state.y>a&&this.pushChildDown(t,s),Qi(t)&&t!==e)for(const e of t.state.children)e.state.y>a&&this.pushChildDown(e,s);e.setState({isCollapsed:!1}),this.setState({})}ignoreLayoutChange(e){this._skipOnLayoutChange=e}getSceneLayoutChild(e){for(const t of this.state.children){if(t.state.key===e)return t;if(t instanceof ss)for(const r of t.state.children)if(r.state.key===e)return r}throw new Error("Scene layout child not found for GridItem")}pushChildDown(e,t){e.setState({y:e.state.y+t})}findGridItemSceneParent(e,t){for(let r=t;r>=0;r--){const t=e[r],n=this.getSceneLayoutChild(t.i);if(n instanceof ss)return n.state.isCollapsed?this:n}return this}isRowDropValid(t,r,n){if(t[t.length-1].i===r.i)return!0;const a=this.getSceneLayoutChild(t[n+1].i);return a instanceof ss||a.parent instanceof e}moveChildTo(t,r){const n=t.parent;let a=this.state.children;const o=t.clone({key:t.state.key});if(n instanceof ss){const e=n.clone();if(e.setState({children:e.state.children.filter(e=>e.state.key!==t.state.key)}),a=a.map(t=>t===n?e:t),r instanceof ss){const e=r.clone();e.setState({children:[...e.state.children,o]}),a=a.map(t=>t===r?e:t)}else a=[...a,o]}else if(!(r instanceof e)){a=a.filter(e=>e.state.key!==t.state.key);const e=r.clone();e.setState({children:[...e.state.children,o]}),a=a.map(t=>t===r?e:t)}return a}toGridCell(e){const t=e.state;let r=Number.isFinite(Number(t.x))?Number(t.x):0,n=Number.isFinite(Number(t.y))?Number(t.y):0;const a=Number.isFinite(Number(t.width))?Number(t.width):4,o=Number.isFinite(Number(t.height))?Number(t.height):4;let i=e.state.isDraggable,s=e.state.isResizable;return e instanceof ss&&(i=!!e.state.isCollapsed,s=!1),ht(e)&&(i=!1,s=!1),{i:e.state.key,x:r,y:n,h:o,w:a,isResizable:s,isDraggable:i}}buildGridLayout(e,t){let r=[];for(const e of this.state.children)if(r.push(this.toGridCell(e)),e instanceof ss&&!e.state.isCollapsed)for(const t of e.state.children)r.push(this.toGridCell(t));return r=is(r),this.state.UNSAFE_fitPanels&&(r=function(e,t){const r=t-32,n=Math.max(...e.map(e=>e.h+e.y))/Math.floor(r/38);return e.map(e=>({...e,y:Math.round(e.y/n)||0,h:Math.round(e.h/n)||1}))}(r,t)),e<768?(this._skipOnLayoutChange=!0,r.map(e=>({...e,w:24}))):(this._skipOnLayoutChange=!1,r)}};rs.Component=function({model:e}){const{children:t,isLazy:r,isDraggable:n,isResizable:a}=e.useState(),[o,{width:s,height:l}]=v.useMeasure(),u=i.useRef(null);return i.useEffect(()=>{Ji(u,!!n)},[n]),function(e){if(e.some(e=>void 0===e.state.height||void 0===e.state.width||void 0===e.state.x||void 0===e.state.y))throw new Error("All children must have a size specified")}(t),L.default.createElement("div",{ref:o,className:Yi},((t,o)=>{if(!t||!o)return null;const i=e.buildGridLayout(t,o);return L.default.createElement("div",{ref:u,style:{width:`${t}px`,height:"100%"},className:"react-grid-layout"},L.default.createElement(z.default,{width:t,isDraggable:n&&t>768,isResizable:null!=a&&a,containerPadding:[0,0],useCSSTransforms:!0,margin:[8,8],cols:24,rowHeight:30,draggableHandle:`.grid-drag-handle-${e.state.key}`,draggableCancel:".grid-drag-cancel",layout:i,onDragStart:e.onDragStart,onDragStop:e.onDragStop,onResizeStop:e.onResizeStop,onLayoutChange:e.onLayoutChange,isBounded:!1,resizeHandle:L.default.createElement(Xi,null)},i.map((t,n)=>L.default.createElement(Zi,{key:t.i,grid:e,layoutItem:t,index:n,isLazy:r,totalCount:i.length}))))})(s,l))};let ns=rs;function as(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function os(e){return e.forEach(e=>{e instanceof ss&&e.setState({children:os(e.state.children)})}),[...e].sort((e,t)=>e.state.y-t.state.y||e.state.x-t.state.x)}function is(e){return[...e].sort((e,t)=>e.y-t.y||e.x-t.x)}class ss extends J{constructor(e){super({children:e.children||[],isCollapsible:e.isCollapsible||!0,title:e.title||"",...e,x:0,height:1,width:24}),this._variableDependency=new za(this,{statePaths:["title"],handleTimeMacros:!0}),this.onCollapseToggle=()=>{this.state.isCollapsible&&this.getGridLayout().toggleRow(this)}}getGridLayout(){const e=this.parent;if(!(e&&e instanceof ns))throw new Error("SceneGridRow must be a child of SceneGridLayout");return e}getUrlState(){return{rowc:this.state.isCollapsed?"1":"0"}}updateFromUrl(e){null!=e.rowc&&e.rowc!==this.getUrlState().rowc&&this.onCollapseToggle()}getPanelCount(e){var t;let r=0;for(const n of e)r+=(null==(t=n.getChildCount)?void 0:t.call(n))||1;return r}}ss.Component=function({model:e}){const t=f.useStyles2(ls),{isCollapsible:r,isCollapsed:n,title:a,actions:o,children:i}=e.useState(),s=e.getGridLayout(),l=s.getDragClass(),u=s.isDraggable()&&!ht(e),c=e.getPanelCount(i),m=1===c?"panel":"panels";return L.default.createElement("div",{className:h.cx(t.row,n&&t.rowCollapsed)},L.default.createElement("div",{className:t.rowTitleAndActionsGroup},L.default.createElement("button",{onClick:e.onCollapseToggle,className:t.rowTitleButton,"aria-label":n?d.t("grafana-scenes.components.scene-grid-row.expand-row","Expand row"):d.t("grafana-scenes.components.scene-grid-row.collapse-row","Collapse row"),"data-testid":p.selectors.components.DashboardRow.title(uo.interpolate(e,a,void 0,"text"))},r&&L.default.createElement(f.Icon,{name:n?"angle-right":"angle-down"}),L.default.createElement("span",{className:t.rowTitle,role:"heading"},uo.interpolate(e,a,void 0,"text"))),L.default.createElement("span",{className:h.cx(t.panelCount,n&&t.panelCountCollapsed)},"(",c," ",m,")"),o&&L.default.createElement("div",{className:t.rowActions},L.default.createElement(o.Component,{model:o}))),u&&n&&L.default.createElement("div",{className:h.cx(t.dragHandle,l)},L.default.createElement(f.Icon,{name:"draggabledots"})))};const ls=e=>({row:h.css({width:"100%",height:"30px",display:"flex",justifyContent:"space-between",gap:e.spacing(1)}),rowTitleButton:h.css({display:"flex",alignItems:"center",cursor:"pointer",background:"transparent",border:"none",minWidth:0,gap:e.spacing(1)}),rowCollapsed:h.css({borderBottom:`1px solid ${e.colors.border.weak}`}),rowTitle:h.css({fontSize:e.typography.h5.fontSize,fontWeight:e.typography.fontWeightMedium,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",flexGrow:1,minWidth:0}),collapsedInfo:h.css({fontSize:e.typography.bodySmall.fontSize,color:e.colors.text.secondary,display:"flex",alignItems:"center",flexGrow:1}),rowTitleAndActionsGroup:h.css({display:"flex",minWidth:0,"&:hover, &:focus-within":{"& > div":{opacity:1}}}),rowActions:h.css({display:"flex",whiteSpace:"nowrap",opacity:0,transition:"200ms opacity ease-in 200ms","&:hover, &:focus-within":{opacity:1}}),dragHandle:h.css({display:"flex",padding:e.spacing(0,1),alignItems:"center",justifyContent:"flex-end",cursor:"move",color:e.colors.text.secondary,"&:hover":{color:e.colors.text.primary}}),panelCount:h.css({whiteSpace:"nowrap",paddingLeft:e.spacing(2),color:e.colors.text.secondary,fontStyle:"italic",fontSize:e.typography.size.sm,fontWeight:"normal",display:"none",lineHeight:"30px"}),panelCountCollapsed:h.css({display:"inline-block"})});class us extends J{constructor(){super(...arguments),this.onToggle=()=>{this.setState({isCollapsed:!this.state.isCollapsed})},this.onRemove=()=>{const e=this.parent;"body"in e.state&&e.setState({body:void 0})}}}us.Component=function({model:e}){const{title:t,isCollapsed:r,canCollapse:n,canRemove:a,body:o,controls:i}=e.useState(),s=f.useStyles2(ls),l=f.useStyles2(cs),u=(null!=i?i:[]).map(e=>L.default.createElement(e.Component,{key:e.state.key,model:e}));a&&u.push(L.default.createElement(f.ToolbarButton,{icon:"times",variant:"default",onClick:e.onRemove,key:"remove-button","aria-label":d.t("grafana-scenes.components.nested-scene-renderer.remove-button-label","Remove scene")}));return L.default.createElement("div",{className:l.wrapper},L.default.createElement("div",{className:h.cx(l.row,r&&l.rowCollapsed)},L.default.createElement("button",{onClick:e.onToggle,className:s.rowTitleButton,"aria-label":r?d.t("grafana-scenes.components.nested-scene-renderer.expand-button-label","Expand scene"):d.t("grafana-scenes.components.nested-scene-renderer.collapse-button-label","Collapse scene")},n&&L.default.createElement(f.Icon,{name:r?"angle-right":"angle-down"}),L.default.createElement("span",{className:s.rowTitle,role:"heading"},uo.interpolate(e,t,void 0,"text"))),L.default.createElement("div",{className:l.actions},u)),!r&&L.default.createElement(o.Component,{model:o}))};const cs=e=>({wrapper:h.css({display:"flex",flexDirection:"column",flexGrow:1,gap:e.spacing(1)}),row:h.css({width:"100%",display:"flex",justifyContent:"space-between",gap:e.spacing(1)}),rowCollapsed:h.css({borderBottom:`1px solid ${e.colors.border.weak}`,paddingBottom:e.spacing(1)}),actions:h.css({display:"flex",alignItems:"center",gap:e.spacing(1),justifyContent:"flex-end",flexGrow:1})});class ds extends J{constructor(){super(...arguments),this._variableDependency=new za(this,{statePaths:["text"]})}}ds.Component=function({model:e}){const{text:t,fontSize:r=20,align:n="left",key:a,spacing:o}=e.useState(),i=f.useTheme2(),s=h.css({fontSize:r,display:"flex",flexGrow:1,alignItems:"center",padding:o?i.spacing(o,0):void 0,justifyContent:n});return L.default.createElement("div",{className:s,"data-testid":a},uo.interpolate(e,t))};class fs extends J{}fs.Component=({model:e})=>{const t=e.useState();return L.default.createElement(f.ToolbarButton,{onClick:t.onClick,icon:t.icon})};class ps extends J{}ps.Component=({model:e})=>{const t=e.useState();return L.default.createElement("div",{style:{display:"flex"}},t.label&&L.default.createElement(Nr,{label:t.label}),L.default.createElement(f.Input,{defaultValue:t.value,width:8,onBlur:t=>{e.state.onChange(parseInt(t.currentTarget.value,10))}}))};class hs extends J{constructor(){super(...arguments),this.onZoom=()=>{const e=uo.getTimeRange(this),t=function(e,t){const r=e.to.valueOf()-e.from.valueOf(),n=e.to.valueOf()-r/2,o=0===r?3e4:r*t,i=n+o/2,s=n-o/2;return{from:a.toUtc(s),to:a.toUtc(i),raw:{from:a.toUtc(s),to:a.toUtc(i)}}}(e.state.value,2);e.onTimeRangeChange(t)},this.onChangeFiscalYearStartMonth=e=>{uo.getTimeRange(this).setState({fiscalYearStartMonth:e})},this.toAbsolute=()=>{const e=uo.getTimeRange(this),t=e.state.value,r=a.toUtc(t.from),n=a.toUtc(t.to);e.onTimeRangeChange({from:r,to:n,raw:{from:r,to:n}})},this.onMoveBackward=()=>{const e=uo.getTimeRange(this),{state:{value:t}}=e;e.onTimeRangeChange(ms(0,t))},this.onMoveForward=()=>{const e=uo.getTimeRange(this),{state:{value:t}}=e;e.onTimeRangeChange(ms(1,t,Date.now()))}}}function ms(e,t,r){const n=t.to.valueOf(),o=t.from.valueOf(),i=(n-o)/2;let s,l;0===e?(s=o-i,l=n-i):(s=o+i,l=n+i,void 0!==r&&l>r&&n<r&&(l=r,s=o));const u=a.toUtc(s),c=a.toUtc(l);return{from:u,to:c,raw:{from:u,to:c}}}hs.Component=function({model:e}){const{hidePicker:t,isOnCanvas:r,quickRanges:n,defaultQuickRanges:o}=e.useState(),i=uo.getTimeRange(e),s=i.getTimeZone(),l=i.useState(),[u,c]=v.useLocalStorage(vs,[],{raw:!1,serializer:bs,deserializer:gs});if(t)return null;const p=n||o,h=(l.value.to.valueOf()-l.value.from.valueOf())/2,m=a.intervalToAbbreviatedDurationString({start:new Date(l.value.from.valueOf()),end:new Date(l.value.from.valueOf()+h)}),g=l.value.to.valueOf()+h<=Date.now()?m:void 0;return L.default.createElement(f.TimeRangePicker,{isOnCanvas:null==r||r,value:l.value,onChange:e=>{var t;t=e,(a.isDateTime(t.raw.from)||a.isDateTime(t.raw.to))&&c([e,...null!=u?u:[]]),i.onTimeRangeChange(e)},timeZone:s,fiscalYearStartMonth:l.fiscalYearStartMonth,onMoveBackward:e.onMoveBackward,onMoveForward:e.onMoveForward,moveForwardTooltip:g?d.t("grafana-scenes.components.time-picker.move-forward-tooltip","Move {{moveForwardDuration}} forward",{moveForwardDuration:g}):void 0,moveBackwardTooltip:d.t("grafana-scenes.components.time-picker.move-backward-tooltip","Move {{moveBackwardDuration}} backward",{moveBackwardDuration:m}),onZoom:e.onZoom,onChangeTimeZone:i.onTimeZoneChange,onChangeFiscalYearStartMonth:e.onChangeFiscalYearStartMonth,weekStart:l.weekStart,history:u,quickRanges:p})};const vs="grafana.dashboard.timepicker.history";function gs(e){return JSON.parse(e).map(e=>a.rangeUtil.convertRawToRange(e,"utc",void 0,"YYYY-MM-DD HH:mm:ss"))}function bs(e){return JSON.stringify((t=e.map(e=>({from:"string"==typeof e.raw.from?e.raw.from:e.raw.from.toISOString(),to:"string"==typeof e.raw.to?e.raw.to:e.raw.to.toISOString()})),u.uniqBy(t,e=>e.from+e.to).slice(0,4)));var t}const ys=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"];class ws extends J{constructor(e){var t,r,n;super({refresh:"",...e,autoValue:void 0,autoEnabled:null==(t=e.autoEnabled)||t,autoMinInterval:null!=(r=e.autoMinInterval)?r:o.config.minRefreshInterval,intervals:(null!=(n=e.intervals)?n:ys).filter(t=>{var r;const n=null!=(r=e.minRefreshInterval)?r:o.config.minRefreshInterval;try{return!n||a.rangeUtil.intervalToMs(t)>=a.rangeUtil.intervalToMs(n)}catch(e){return!1}})}),this._urlSync=new Oe(this,{keys:["refresh"]}),this._autoRefreshBlocked=!1,this.onRefresh=()=>{const e=uo.getQueryController(this);if(null==e?void 0:e.state.isRunning)return e.cancelAll(),void e.cancelProfile();null==e||e.startProfile(Pe);const t=uo.getTimeRange(this);this._intervalTimer&&clearInterval(this._intervalTimer),t.onRefresh(),this.setupIntervalTimer()},this.onIntervalChanged=e=>{this.setState({refresh:e}),this.setupIntervalTimer()},this.setupAutoTimeRangeListener=()=>uo.getTimeRange(this).subscribeToState((e,t)=>{e.from===t.from&&e.to===t.to||this.setupIntervalTimer()}),this.calculateAutoRefreshInterval=()=>{var e;const t=uo.getTimeRange(this),r=null!=(e=null==window?void 0:window.innerWidth)?e:2e3;return a.rangeUtil.calculateInterval(t.state.value,r,this.state.autoMinInterval)},this.setupIntervalTimer=()=>{var e;const t=uo.getTimeRange(this),{refresh:r,intervals:n}=this.state;if((this._intervalTimer||""===r)&&clearInterval(this._intervalTimer),""===r)return;if(r!==f.RefreshPicker.autoOption.value&&n&&!n.includes(r))return;let o;if(null==(e=this._autoTimeRangeListener)||e.unsubscribe(),r===f.RefreshPicker.autoOption.value){const e=this.calculateAutoRefreshInterval();o=e.intervalMs,this._autoTimeRangeListener=this.setupAutoTimeRangeListener(),e.interval!==this.state.autoValue&&this.setState({autoValue:e.interval})}else o=a.rangeUtil.intervalToMs(r);this._intervalTimer=setInterval(()=>{if(this.isTabVisible()){const e=uo.getQueryController(this);(null==e?void 0:e.state.isRunning)&&e.cancelProfile(),null==e||e.startProfile(Pe),t.onRefresh()}else this._autoRefreshBlocked=!0},o)},this.addActivationHandler(()=>{this.setupIntervalTimer();const e=()=>{this._autoRefreshBlocked&&"visible"===document.visibilityState&&(this._autoRefreshBlocked=!1,this.onRefresh())};return document.addEventListener("visibilitychange",e),()=>{var t;this._intervalTimer&&clearInterval(this._intervalTimer),document.removeEventListener("visibilitychange",e),null==(t=this._autoTimeRangeListener)||t.unsubscribe()}})}getUrlState(){let e=this.state.refresh;return"string"==typeof e&&0!==e.length||(e=void 0),{refresh:e}}updateFromUrl(e){const{intervals:t}=this.state;let r=e.refresh;"string"==typeof r&&function(e){try{return a.rangeUtil.describeInterval(e).count>0}catch(e){return!1}}(r)&&((null==t?void 0:t.includes(r))?this.setState({refresh:r}):this.setState({refresh:t?Ss(r,t):void 0}))}isTabVisible(){return void 0===document.visibilityState||"visible"===document.visibilityState}}function Ss(e,t){if(0===t.length)return;const r=a.rangeUtil.intervalToMs(e);let n=t[0];for(let e=1;e<t.length;e++){if(a.rangeUtil.intervalToMs(t[e])>r)break;n=t[e]}return n}ws.Component=function({model:e}){var t;const{refresh:r,intervals:n,autoEnabled:a,autoValue:o,isOnCanvas:i,primary:s,withText:l}=e.useState(),u=function(e){const t=uo.getQueryController(e);if(!t)return!1;return t.useState().isRunning}(e);let c,p,h=r===(null==(t=f.RefreshPicker.autoOption)?void 0:t.value)?o:l?d.t("grafana-scenes.components.scene-refresh-picker.text-refresh","Refresh"):void 0;u&&(c=d.t("grafana-scenes.components.scene-refresh-picker.tooltip-cancel","Cancel all queries"),l&&(h=d.t("grafana-scenes.components.scene-refresh-picker.text-cancel","Cancel")));l&&(p="96px");return L.default.createElement(f.RefreshPicker,{showAutoInterval:a,value:r,intervals:n,tooltip:c,width:p,text:h,onRefresh:()=>{e.onRefresh()},primary:s,onIntervalChanged:e.onIntervalChanged,isLoading:u,isOnCanvas:null==i||i})};const _s=e=>`${e}-compare`,xs="__previousPeriod",Os="__noPeriod",As={label:"Previous period",value:xs},Rs={label:"None",value:Os},Es=[{label:"Day before",value:"24h"},{label:"Week before",value:"1w"},{label:"Month before",value:"1M"}];class ks extends J{constructor(e){super({compareOptions:Es,...e}),this._urlSync=new Oe(this,{keys:["compareWith"]}),this._onActivate=()=>{const e=uo.getTimeRange(this);this.setState({compareOptions:this.getCompareOptions(e.state.value)}),this._subs.add(e.subscribeToState(e=>{const t=this.getCompareOptions(e.value),r={compareOptions:t};Boolean(this.state.compareWith)&&!t.find(({value:e})=>e===this.state.compareWith)&&(r.compareWith=xs),this.setState(r)}))},this.getCompareOptions=e=>{const t=Math.ceil(e.to.diff(e.from)),r=Es.findIndex(({value:e})=>a.rangeUtil.intervalToMs(e)>=t);return[Rs,As,...Es.slice(r).map(({label:e,value:t})=>({label:e,value:t}))]},this.onCompareWithChanged=e=>{e===Os?this.onClearCompare():this.setState({compareWith:e})},this.onClearCompare=()=>{this.setState({compareWith:void 0})},this.addActivationHandler(this._onActivate)}getExtraQueries(e){const t=[],r=this.getCompareTimeRange(e.range);if(!r)return t;const n=e.targets.filter(e=>!1!==e.timeRangeCompare);return n.length&&t.push({req:{...e,targets:n,range:r},processor:Cs}),t}shouldRerun(e,t,r){return e.compareWith!==t.compareWith&&void 0!==r.find(e=>!1!==e.timeRangeCompare)}getCompareTimeRange(e){let t,r;if(this.state.compareWith){if(this.state.compareWith===xs){const n=e.to.diff(e.from);t=a.dateTime(e.from).subtract(n),r=a.dateTime(e.to).subtract(n)}else t=a.dateTime(e.from).subtract(a.rangeUtil.intervalToMs(this.state.compareWith)),r=a.dateTime(e.to).subtract(a.rangeUtil.intervalToMs(this.state.compareWith));return{from:t,to:r,raw:{from:t,to:r}}}}getUrlState(){return{compareWith:this.state.compareWith}}updateFromUrl(e){if(!e.compareWith)return;const t=Ee(e.compareWith);if(t){this.getCompareOptions(uo.getTimeRange(this).state.value).find(({value:e})=>e===t)?this.setState({compareWith:t}):this.setState({compareWith:"__previousPeriod"})}}}ks.Component=function({model:e}){var t;const r=f.useStyles2(Is),{compareWith:n,compareOptions:a,hideCheckbox:o}=e.useState(),[i,s]=L.default.useState(n),l=null!=(t=a.find(({value:e})=>e===i))?t:As,u=a.find(({value:e})=>e===n),c=Boolean(u),p=()=>{c?(s(n),e.onClearCompare()):c||e.onCompareWithChanged(l.value)},h=o&&!n?Rs:u,m=o||c,v=o&&h?{...h,label:`Comparison: ${h.label}`}:h;return L.default.createElement(f.ButtonGroup,null,!o&&L.default.createElement(f.ToolbarButton,{variant:"canvas",tooltip:d.t("grafana-scenes.components.scene-time-range-compare-renderer.button-tooltip","Enable time frame comparison"),onClick:e=>{e.stopPropagation(),e.preventDefault(),p()}},L.default.createElement(f.Checkbox,{label:" ",value:c,onClick:p}),L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.scene-time-range-compare-renderer.button-label"},"Comparison")),m?L.default.createElement(f.ButtonSelect,{variant:"canvas",value:v,options:a,onChange:t=>{e.onCompareWithChanged(t.value)}}):L.default.createElement(f.ToolbarButton,{className:r.previewButton,disabled:!0,variant:"canvas",isOpen:!1},l.label))};const Cs=(e,t)=>{const r=t.timeRange.from.diff(e.timeRange.from);return t.series.forEach(e=>{e.refId=_s(e.refId||""),e.meta={...e.meta,timeCompare:{diffMs:r,isTimeShiftQuery:!0}}}),s.of(t)};function Is(e){return{previewButton:h.css({"&:disabled":{border:`1px solid ${e.colors.secondary.border}`,color:e.colors.text.disabled,opacity:1}})}}class Ps extends J{constructor(e){super(e),this.addActivationHandler(()=>{const e=uo.getData(this);this._subs.add(e.subscribeToState(e=>{var t;(null==(t=e.data)?void 0:t.state)===a.LoadingState.Done&&this.performRepeat(e.data)})),e.state.data&&this.performRepeat(e.state.data)})}performRepeat(e){const t=[];for(let r=0;r<e.series.length;r++){const n=this.state.getLayoutChild(e,e.series[r],r);t.push(n)}this.state.body.setState({children:t})}}Ps.Component=({model:e})=>{const{body:t}=e.useState();return L.default.createElement(t.Component,{model:t})};class Ms extends J{constructor(e){super(e),this._variableDependency=new za(this,{variableNames:[this.state.variableName],onVariableUpdateCompleted:()=>this.performRepeat()}),this.addActivationHandler(()=>this.performRepeat())}performRepeat(){if(this._variableDependency.hasDependencyInLoadingState())return;const e=uo.lookupVariable(this.state.variableName,this);if(!(e instanceof vt))return void console.error("SceneByVariableRepeater: variable is not a MultiValueVariable");const t=function(e){const{value:t,text:r,options:n}=e.state;if(e.hasAllValue())return n;if(Array.isArray(t)&&Array.isArray(r))return t.map((e,t)=>({value:e,label:r[t]}));return[{value:t,label:r}]}(e),r=[];for(const e of t){const t=this.state.getLayoutChild(e);r.push(t)}this.state.body.setState({children:r})}}Ms.Component=({model:e})=>{const{body:t}=e.useState();return L.default.createElement(t.Component,{model:t})};class Ts extends J{constructor(){super({}),this._renderBeforeActivation=!0}}Ts.Component=e=>L.default.createElement("div",{style:{flexGrow:1}});class Ns extends J{toggleDirection(){this.setState({direction:"row"===this.state.direction?"column":"row"})}isDraggable(){return!1}}Ns.Component=function({model:e,parentState:t}){const{children:r,isHidden:n}=e.useState(),a=function(e,t){return i.useMemo(()=>{var r,n,a,i,s,l,u,c,d,f;const{direction:p="row",wrap:m}=e,v=o.config.theme2,g={};return t?Fs(g,e,t):(g.display="flex",g.flexGrow=1,g.minWidth=e.minWidth,g.minHeight=e.minHeight),g.flexDirection=p,g.gap="8px",g.flexWrap=m||"nowrap",g.alignContent="baseline",g.minWidth=g.minWidth||0,g.minHeight=g.minHeight||0,g[v.breakpoints.down("md")]={flexDirection:null!=(n=null==(r=e.md)?void 0:r.direction)?n:"column",maxWidth:null!=(i=null==(a=e.md)?void 0:a.maxWidth)?i:"unset",maxHeight:null!=(l=null==(s=e.md)?void 0:s.maxHeight)?l:"unset",height:null!=(c=null==(u=e.md)?void 0:u.height)?c:"unset",width:null!=(f=null==(d=e.md)?void 0:d.width)?f:"unset"},h.css(g)},[t,e])}(e.state,t);if(n)return null;return L.default.createElement("div",{className:a},r.map(t=>{const r=t.Component;return L.default.createElement(r,{key:t.state.key,model:t,parentState:e.state})}))};class Ds extends J{}function Fs(e,t,r){var n,a,o;const i=null!=(n=r.direction)?n:"row",{xSizing:s="fill",ySizing:l="fill"}=t;return e.display="flex",e.position="relative",e.flexDirection=i,"column"===i?(t.height?e.height=t.height:e.flexGrow="fill"===l?1:0,t.width?e.width=t.width:e.alignSelf="fill"===s?"stretch":"flex-start"):(t.height?e.height=t.height:e.alignSelf="fill"===l?"stretch":"flex-start",t.width?e.width=t.width:e.flexGrow="fill"===s?1:0,t.wrap&&(e.flexWrap=t.wrap,"nowrap"!==t.wrap&&("row"===i?e.rowGap="8px":e.columnGap="8px"))),e.minWidth=t.minWidth,e.maxWidth=t.maxWidth,e.maxHeight=t.maxHeight,e.minHeight=null!=(a=t.minHeight)?a:r.minHeight,e.height=null!=(o=t.height)?o:r.height,e}Ds.Component=function({model:e,parentState:t}){if(!t)throw new Error("SceneFlexItem must be a child of SceneFlexLayout");const{body:r,isHidden:n}=e.useState(),a=function(e,t){return i.useMemo(()=>{var r,n,a,i,s,l,u,c,d,f;const p=o.config.theme2,m=Fs({},e,t);return m[p.breakpoints.down("md")]={maxWidth:null!=(n=null==(r=e.md)?void 0:r.maxWidth)?n:"unset",maxHeight:null!=(i=null==(a=e.md)?void 0:a.maxHeight)?i:"unset",height:null!=(u=null==(s=e.md)?void 0:s.height)?u:null==(l=t.md)?void 0:l.height,width:null!=(f=null==(c=e.md)?void 0:c.width)?f:null==(d=t.md)?void 0:d.width},h.css(m)},[e,t])}(e.state,t);if(!r||n)return null;return L.default.createElement("div",{className:a},L.default.createElement(r.Component,{model:r}))};class js extends J{constructor(e){var t,r;super({rowGap:1,columnGap:1,templateColumns:"repeat(auto-fit, minmax(400px, 1fr))",autoRows:null!=(t=e.autoRows)?t:"320px",children:null!=(r=e.children)?r:[],...e})}isDraggable(){return!1}}js.Component=function({model:e}){const{children:t,isHidden:r,isLazy:n}=e.useState(),a=(s=e.state,i.useMemo(()=>{var e,t,r,n,a,i,l,u,c,d,f;const p={},m=o.config.theme2;return p.display="grid",p.gridTemplateColumns=s.templateColumns,p.gridTemplateRows=s.templateRows||"unset",p.gridAutoRows=s.autoRows||"unset",p.rowGap=m.spacing(null!=(e=s.rowGap)?e:1),p.columnGap=m.spacing(null!=(t=s.columnGap)?t:1),p.justifyItems=s.justifyItems||"unset",p.alignItems=s.alignItems||"unset",p.justifyContent=s.justifyContent||"unset",p.flexGrow=1,s.md&&(p[m.breakpoints.down("md")]={gridTemplateRows:null==(r=s.md)?void 0:r.templateRows,gridTemplateColumns:null==(n=s.md)?void 0:n.templateColumns,rowGap:s.md.rowGap?m.spacing(null!=(i=null==(a=s.md)?void 0:a.rowGap)?i:1):void 0,columnGap:s.md.columnGap?m.spacing(null!=(u=null==(l=s.md)?void 0:l.rowGap)?u:1):void 0,justifyItems:null==(c=s.md)?void 0:c.justifyItems,alignItems:null==(d=s.md)?void 0:d.alignItems,justifyContent:null==(f=s.md)?void 0:f.justifyContent}),h.css(p)},[s]));var s;if(r)return null;return L.default.createElement("div",{className:a},t.map(t=>{const r=t.Component;return n?L.default.createElement(Wn,{key:t.state.key,className:a},L.default.createElement(r,{key:t.state.key,model:t,parentState:e.state})):L.default.createElement(r,{key:t.state.key,model:t,parentState:e.state})}))};class Ls extends J{}Ls.Component=function({model:e,parentState:t}){if(!t)throw new Error("SceneCSSGridItem must be a child of SceneCSSGridLayout");const{body:r,isHidden:n}=e.useState(),a=(o=e.state,i.useMemo(()=>{const e={};return e.gridColumn=o.gridColumn||"unset",e.gridRow=o.gridRow||"unset",e.position="relative",h.css(e)},[o]));var o;if(!r||n)return null;return L.default.createElement("div",{className:a},L.default.createElement(r.Component,{model:r}))};const Vs=new Set(["ArrowUp","ArrowDown"]),zs=new Set(["ArrowLeft","ArrowRight"]),Bs={row:{dim:"width",axis:"clientX",min:"minWidth",max:"maxWidth"},column:{dim:"height",axis:"clientY",min:"minHeight",max:"maxHeight"}};function Us({direction:e="row",handleSize:t=32,initialSize:r="auto",primaryPaneStyles:n,secondaryPaneStyles:a,onDragFinished:o,children:s}){const l=L.default.Children.toArray(s),c=i.useRef(null),p=i.useRef(null),m=i.useRef(null),v=i.useRef(null),g=i.useRef(null),b=i.useRef("1fr"),y=i.useRef(void 0),w=i.useRef(void 0),S=Bs[e].dim,_=Bs[e].axis,x=Bs[e].min,O=Bs[e].max;!function(e,t,r=0,n){const a=u.throttle(t,r);i.useLayoutEffect(()=>{if(!e)return;const t=new ResizeObserver(a);return t.observe(e,{box:"device-pixel-content-box"}),()=>t.disconnect()},n)}(v.current,e=>{for(const t of e){if(!t.target.isSameNode(v.current))return;const e=p.current.getBoundingClientRect()[S],r=Gs(p.current);c.current.ariaValueNow=`${u.clamp((e-r[x])/(r[O]-r[x])*100,0,100)}`}},500,[O,x,e,S]);const A=i.useRef(null),R=i.useCallback(e=>{b.current=p.current.getBoundingClientRect()[S],g.current=v.current.getBoundingClientRect()[S],A.current=e[_],c.current.setPointerCapture(e.pointerId),y.current=Gs(p.current),w.current=void 0},[S,_]),E=i.useCallback(e=>{if(null!==A.current&&"1fr"!==b.current){const r=e[_]-A.current,n=y.current,a=u.clamp(b.current+r,n[x],n[O]),o=a/(g.current-t);p.current.style.flexGrow=`${o}`,m.current.style.flexGrow=""+(1-o);const i=u.clamp((a-n[x])/(n[O]-n[x])*100,0,100);c.current.ariaValueNow=`${i}`}},[t,_,x,O]),k=i.useCallback(e=>{e.preventDefault(),e.stopPropagation(),c.current.releasePointerCapture(e.pointerId),A.current=null,null==o||o(parseFloat(p.current.style.flexGrow))},[o]),C=i.useRef(new Set),I=i.useRef(null),P=i.useCallback(r=>{var n;if(0===C.current.size)return void(I.current=null);if("1fr"===b.current)return;const a=.3*(r-(null!=(n=I.current)?n:r));let o=0;"row"===e?(C.current.has("ArrowLeft")&&(o-=a),C.current.has("ArrowRight")&&(o+=a)):(C.current.has("ArrowUp")&&(o-=a),C.current.has("ArrowDown")&&(o+=a));const i=y.current,s=p.current.getBoundingClientRect()[S],l=u.clamp(s+o,i[x],i[O]),d=l/(g.current-t);p.current.style.flexGrow=`${d}`,m.current.style.flexGrow=""+(1-d);const f=(l-i[x])/(i[O]-i[x])*100;c.current.ariaValueNow=`${u.clamp(f,0,100)}`,I.current=r,window.requestAnimationFrame(P)},[e,t,x,O,S]),M=i.useCallback(r=>{if("Enter"===r.key)return void(void 0===w.current?(w.current=p.current.style.flexGrow,p.current.style.flexGrow="0",m.current.style.flexGrow="1"):(p.current.style.flexGrow=w.current,m.current.style.flexGrow=""+(1-parseFloat(w.current)),w.current=void 0));if("Home"===r.key){y.current=Gs(p.current),g.current=v.current.getBoundingClientRect()[S];const e=y.current[x]/(g.current-t);return p.current.style.flexGrow=`${e}`,m.current.style.flexGrow=""+(1-e),void(c.current.ariaValueNow="0")}if("End"===r.key){y.current=Gs(p.current),g.current=v.current.getBoundingClientRect()[S];const e=y.current[O]/(g.current-t);return p.current.style.flexGrow=`${e}`,m.current.style.flexGrow=""+(1-e),void(c.current.ariaValueNow="100")}if(!("column"===e&&Vs.has(r.key)||"row"===e&&zs.has(r.key))||C.current.has(r.key))return;w.current=void 0,r.preventDefault(),r.stopPropagation(),b.current=p.current.getBoundingClientRect()[S],g.current=v.current.getBoundingClientRect()[S],y.current=Gs(p.current);if(!C.current.has(r.key)){const e=0===C.current.size;C.current.add(r.key),e&&window.requestAnimationFrame(P)}},[e,P,t,O,S,x]),T=i.useCallback(t=>{"row"===e&&!zs.has(t.key)||"column"===e&&!Vs.has(t.key)||(C.current.delete(t.key),null==o||o(parseFloat(p.current.style.flexGrow)))},[e,o]),N=i.useCallback(()=>{p.current.style.flexGrow="0.5",m.current.style.flexGrow="0.5";const e=Gs(p.current);y.current=e,b.current=p.current.getBoundingClientRect()[S],c.current.ariaValueNow=""+(b.current-e[x])/(e[O]-e[x])*100},[O,S,x]),D=i.useCallback(()=>{C.current.size>0&&(C.current.clear(),A.current=null,null==o||o(parseFloat(p.current.style.flexGrow)))},[o]),F=f.useStyles2(Ws),j=Un(),V=2===l.length?"visible":"hidden";return L.default.createElement("div",{ref:v,className:F.container,style:{flexDirection:e}},L.default.createElement("div",{ref:p,className:F.panel,style:{flexGrow:"auto"===r?.5:u.clamp(r,0,1),[x]:"min-content",...n},id:`start-panel-${j}`},l[0]),l[1]&&L.default.createElement(L.default.Fragment,null,L.default.createElement("div",{ref:c,style:{[S]:`${t}px`},className:h.cx(F.handle,{[F.handleHorizontal]:"column"===e}),onPointerUp:k,onPointerDown:R,onPointerMove:E,onKeyDown:M,onKeyUp:T,onDoubleClick:N,onBlur:D,role:"separator","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":50,"aria-controls":`start-panel-${j}`,"aria-label":d.t("grafana-scenes.components.splitter.aria-label-pane-resize-widget","Pane resize widget"),tabIndex:0}),L.default.createElement("div",{ref:m,className:F.panel,style:{flexGrow:"auto"===r?.5:u.clamp(1-r,0,1),[x]:"min-content",visibility:`${V}`,...a},id:`end-panel-${j}`},l[1])))}function Ws(e){return{handle:h.css({cursor:"col-resize",position:"relative",flexShrink:0,userSelect:"none","&::before":{content:'""',position:"absolute",backgroundColor:e.colors.primary.main,left:"50%",transform:"translate(-50%)",top:0,height:"100%",width:"1px",opacity:0,transition:"opacity ease-in-out 0.2s"},"&::after":{content:'""',width:"4px",borderRadius:"4px",backgroundColor:e.colors.border.weak,transition:"background-color ease-in-out 0.2s",height:"50%",top:"calc(50% - (50%) / 2)",transform:"translateX(-50%)",position:"absolute",left:"50%"},"&:hover, &:focus-visible":{outline:"none","&::before":{opacity:1},"&::after":{backgroundColor:e.colors.primary.main}}}),handleHorizontal:h.css({cursor:"row-resize","&::before":{left:"inherit",transform:"translateY(-50%)",top:"50%",height:"1px",width:"100%"},"&::after":{width:"50%",height:"4px",top:"50%",transform:"translateY(-50%)",left:"calc(50% - (50%) / 2)"}}),container:h.css({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),panel:h.css({display:"flex",position:"relative",flexBasis:0})}}function Gs(e){if(null===e)return;const t=document.body.style.overflow,r=e.style.width,n=e.style.height,a=e.style.flexGrow;document.body.style.overflow="hidden",e.style.flexGrow="0";const{width:o,height:i}=e.getBoundingClientRect();e.style.flexGrow="100";const{width:s,height:l}=e.getBoundingClientRect();return document.body.style.overflow=t,e.style.width=r,e.style.height=n,e.style.flexGrow=a,{minWidth:o,maxWidth:s,minHeight:i,maxHeight:l}}class Hs extends J{toggleDirection(){this.setState({direction:"row"===this.state.direction?"column":"row"})}isDraggable(){return!1}}Hs.Component=function({model:e}){const{primary:t,secondary:r,direction:n,isHidden:a,initialSize:o,primaryPaneStyles:i,secondaryPaneStyles:s}=e.useState();if(a)return null;const l=t.Component,u=null==r?void 0:r.Component;let c=r?o:1;return L.default.createElement(Us,{direction:n,initialSize:null!=c?c:.5,primaryPaneStyles:i,secondaryPaneStyles:s},L.default.createElement(l,{key:t.state.key,model:t,parentState:e.state}),u&&r&&L.default.createElement(u,{key:r.state.key,model:r,parentState:e.state}))};class qs extends J{constructor(){super(...arguments),this._renderBeforeActivation=!0}enrichDataRequest(){return{app:this.state.name||"app"}}}qs.Component=({model:e})=>{const{pages:t}=e.useState();return L.default.createElement(L.default.Fragment,null,L.default.createElement($s.Provider,{value:e},L.default.createElement(n.Routes,null,t.map(e=>L.default.createElement(n.Route,{key:e.state.url,path:e.state.routePath,element:L.default.createElement(e.Component,{model:e})})))))};const $s=i.createContext(null),Ks=new Map;class Qs extends J{}function Ys({node:e}){const t=e.useState(),r=f.useStyles2(Zs);return L.default.createElement("div",{className:r.container},Object.keys(t).map(n=>L.default.createElement("div",{className:r.row,key:n},L.default.createElement("div",{className:r.keyName},n),L.default.createElement("div",{className:r.value},function(e,t,r){if(null===t)return"null";switch(typeof t){case"number":return L.default.createElement(f.Input,{type:"number",defaultValue:t,onBlur:t=>r.setState({[e]:t.currentTarget.valueAsNumber})});case"string":return L.default.createElement(f.Input,{type:"text",defaultValue:t,onBlur:t=>r.setState({[e]:t.currentTarget.value})});case"object":return At(t)?t.constructor.name:u.isPlainObject(t)||u.isArray(t)?L.default.createElement(f.JSONFormatter,{json:t,open:0}):String(t);default:return typeof t}}(n,t[n],e)))))}function Zs(e){return{container:h.css({flexGrow:1,display:"flex",gap:e.spacing(.5),flexDirection:"column"}),row:h.css({display:"flex",gap:e.spacing(2)}),keyName:h.css({display:"flex",flexGrow:"0",width:120,alignItems:"center",height:e.spacing(e.components.height.md)}),value:h.css({flexGrow:1,minHeight:e.spacing(e.components.height.md),display:"flex",alignItems:"center"})}}function Js({node:e,selectedObject:t,onSelect:r}){const n=f.useStyles2(Xs),a=[],o=e===t;return e.forEachChild(e=>{a.push(L.default.createElement(Js,{node:e,key:e.state.key,selectedObject:t,onSelect:r}))}),L.default.createElement("div",{className:n.container},L.default.createElement("div",{className:h.cx(n.name,o&&n.selected),onClick:()=>r(e)},e.constructor.name),L.default.createElement("div",{className:n.children},a))}function Xs(e){return{container:h.css({flexGrow:1,display:"flex",gap:e.spacing(.5),flexDirection:"column"}),name:h.css({flexGrow:1,display:"flex",gap:e.spacing(1),fontSize:e.typography.bodySmall.fontSize,cursor:"pointer",padding:e.spacing(0,1),borderRadius:e.shape.borderRadius(2),position:"relative","&:hover":{background:e.colors.background.secondary}}),selected:h.css({"&::before":{display:"block",content:"' '",position:"absolute",left:0,width:4,bottom:2,top:2,borderRadius:e.shape.radius.default,backgroundImage:e.colors.gradients.brandVertical}}),children:h.css({flexGrow:1,display:"flex",flexDirection:"column",paddingLeft:e.spacing(1)})}}function el({scene:e}){const t=f.useStyles2(tl),[r,n]=i.useState(!1),[a,o]=i.useState();return L.default.createElement(L.default.Fragment,null,L.default.createElement(f.ToolbarButton,{variant:"canvas",icon:"bug",onClick:()=>n(!0)}),r&&L.default.createElement(f.Drawer,{title:d.t("grafana-scenes.components.scene-debugger.title-scene-debugger","Scene debugger"),onClose:()=>n(!1),size:"lg"},L.default.createElement("div",{className:t.panes},L.default.createElement("div",{className:t.pane1},L.default.createElement("div",{className:t.paneHeading},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.scene-debugger.scene-graph"},"Scene graph")),L.default.createElement(f.CustomScrollbar,{autoHeightMin:"100%"},L.default.createElement("div",{className:t.treeWrapper},L.default.createElement(Js,{node:e,selectedObject:a,onSelect:o})))),L.default.createElement("div",{className:t.pane2},L.default.createElement("div",{className:t.paneHeading},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.scene-debugger.object-details"},"Object details")),a&&L.default.createElement(Ys,{node:a})))))}function tl(e){return{panes:h.css({flexGrow:1,display:"flex",height:"100%",flexDirection:"row",marginTop:e.spacing(-2)}),pane1:h.css({flexGrow:0,display:"flex",height:"100%",flexDirection:"column",borderRight:`1px solid ${e.colors.border.weak}`}),pane2:h.css({flexGrow:1,display:"flex",minHeight:"100%",flexDirection:"column",paddingLeft:e.spacing(2)}),treeWrapper:h.css({paddingRight:e.spacing(2),height:"100%",marginLeft:e.spacing(-1)}),paneHeading:h.css({padding:e.spacing(1,0),fontWeight:e.typography.fontWeightMedium})}}function rl({page:e}){const t=U(e.state.url),r=function(e){if(e.parent instanceof ol)return e.parent;return e}(e),a=r.useState(),s=function(){const e=n.useLocation();return o.locationSearchToObject(e.search||"")}(),l=e.getScene(t),u=i.useContext($s),c=a.initializedScene===l,{layout:d}=e.state,f=pt();i.useLayoutEffect(()=>{c||r.initializeScene(l)},[l,r,c]),i.useEffect(()=>()=>r.setState({initializedScene:void 0}),[r]);const p=Ui(r,null==u?void 0:u.state.urlSyncOptions);if(!c&&!p)return null;const h={text:a.title,img:a.titleImg,icon:a.titleIcon,url:B(a.url,f.getSearchObject(),a.preserveUrlKeys),hideFromBreadcrumbs:a.hideFromBreadcrumbs,parentItem:nl(a.getParentPage?a.getParentPage():r.parent,s,f.getSearchObject())};a.tabs&&(h.children=a.tabs.map(t=>({text:t.state.title,icon:t.state.titleIcon,tabSuffix:t.state.tabSuffix,active:e===t,url:B(t.state.url,f.getSearchObject(),t.state.preserveUrlKeys),parentItem:h})));let m=[];return a.controls&&(m=a.controls.map(e=>L.default.createElement(e.Component,{model:e,key:e.state.key}))),s["scene-debugger"]&&m.push(L.default.createElement(el,{scene:r,key:"scene-debugger"})),L.default.createElement(o.PluginPage,{layout:d,pageNav:h,actions:m,renderTitle:a.renderTitle,subTitle:a.subTitle},L.default.createElement(l.Component,{model:l}))}function nl(e,t,r){if(e instanceof ol)return{text:e.state.title,url:B(e.state.url,r,e.state.preserveUrlKeys),hideFromBreadcrumbs:e.state.hideFromBreadcrumbs,parentItem:nl(e.state.getParentPage?e.state.getParentPage():e.parent,t,r)}}function al({drilldown:e,parent:t}){const r=U(e.routePath),n=t.getDrilldownPage(e,r);return L.default.createElement(n.Component,{model:n})}Qs.Component=({model:e})=>{const{component:t,props:r,reactNode:n}=e.useState();return t?L.default.createElement(t,{...r}):n||null};class ol extends J{constructor(){super(...arguments),this._sceneCache=new Map,this._drilldownCache=new Map}initializeScene(e){this.setState({initializedScene:e})}getScene(e){let t=this._sceneCache.get(e.url);if(t)return t;if(!this.state.getScene)throw new Error("Missing getScene on SceneAppPage "+this.state.title);return t=this.state.getScene(e),this._sceneCache.set(e.url,t),t}getDrilldownPage(e,t){let r=this._drilldownCache.get(t.url);return r||(r=e.getPage(t,this),this._drilldownCache.set(t.url,r),r)}enrichDataRequest(e){if(this.state.getParentPage)return this.state.getParentPage().enrichDataRequest(e);if(!this.parent)return null;const t=this.getRoot();return Rt(t)?t.enrichDataRequest(e):null}}ol.Component=function({model:e}){const{tabs:t,drilldowns:r}=e.useState(),a=[];if(a.push(function(e){var t,r,a;return L.default.createElement(n.Route,{key:"fallback route",path:"*",element:L.default.createElement(rl,{page:null!=(a=null==(r=(t=e.state).getFallbackPage)?void 0:r.call(t))?a:new ol({url:"",title:d.t("grafana-scenes.components.fallback-page.title","Not found"),subTitle:d.t("grafana-scenes.components.fallback-page.subTitle","The url did not match any page"),routePath:"*",getScene:()=>new Wi({body:new Ns({direction:"column",children:[new Ds({body:new Qs({component:()=>L.default.createElement("div",{"data-testid":"default-fallback-content"},L.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.fallback-page.content"},"If you found your way here using a link then there might be a bug in this application."))})})]})})})})})}(e)),t&&t.length>0)for(let r=0;r<t.length;r++){const o=t[r];if(0===r&&a.push(L.default.createElement(n.Route,{key:e.state.routePath,path:"",element:L.default.createElement(o.Component,{model:o})})),a.push(L.default.createElement(n.Route,{key:o.state.url,path:o.state.routePath,element:L.default.createElement(o.Component,{model:o})})),o.state.drilldowns)for(const e of o.state.drilldowns)a.push(L.default.createElement(n.Route,{key:e.routePath,path:e.routePath,element:L.default.createElement(al,{drilldown:e,parent:o})}))}if(r)for(const t of r)a.push(L.default.createElement(n.Route,{key:t.routePath,path:t.routePath,Component:()=>L.default.createElement(al,{drilldown:t,parent:e})}));t||a.push(L.default.createElement(n.Route,{key:"home route",path:"/",element:L.default.createElement(rl,{page:e})}));return L.default.createElement(n.Routes,null,a)};class il{constructor(){this._overrides=[]}overrideColor(e){return this._overrides[this._overrides.length-1].properties.push({id:"color",value:e}),this}overrideDecimals(e){return this._overrides[this._overrides.length-1].properties.push({id:"decimals",value:e}),this}overrideDisplayName(e){return this._overrides[this._overrides.length-1].properties.push({id:"displayName",value:e}),this}overrideFilterable(e){return this._overrides[this._overrides.length-1].properties.push({id:"filterable",value:e}),this}overrideLinks(e){return this._overrides[this._overrides.length-1].properties.push({id:"links",value:e}),this}overrideMappings(e){return this._overrides[this._overrides.length-1].properties.push({id:"mappings",value:e}),this}overrideMax(e){return this._overrides[this._overrides.length-1].properties.push({id:"max",value:e}),this}overrideMin(e){return this._overrides[this._overrides.length-1].properties.push({id:"min",value:e}),this}overrideNoValue(e){return this._overrides[this._overrides.length-1].properties.push({id:"noValue",value:e}),this}overrideThresholds(e){return this._overrides[this._overrides.length-1].properties.push({id:"thresholds",value:e}),this}overrideUnit(e){return this._overrides[this._overrides.length-1].properties.push({id:"unit",value:e}),this}}class sl extends il{match(e){return this._overrides.push({matcher:e,properties:[]}),this}matchFieldsWithName(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byName,options:e},properties:[]}),this}matchFieldsWithNameByRegex(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byRegexp,options:e},properties:[]}),this}matchFieldsByType(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byType,options:e},properties:[]}),this}matchFieldsByQuery(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byFrameRefID,options:e},properties:[]}),this}matchFieldsByValue(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byValue,options:e},properties:[]}),this}matchComparisonQuery(e){return this.matchFieldsByQuery(_s(e))}overrideCustomFieldConfig(e,t){const r=`custom.${String(e)}`;return this._overrides[this._overrides.length-1].properties.push({id:r,value:t}),this}build(){return this._overrides}}class ll{constructor(e){this.defaultFieldConfig=e,this._fieldConfig={defaults:{},overrides:[]},this._overridesBuilder=new sl,this.setDefaults()}setDefaults(){const e={defaults:{custom:this.defaultFieldConfig?u.cloneDeep(this.defaultFieldConfig()):{}},overrides:[]};this._fieldConfig=e}setColor(e){return this.setFieldConfigDefaults("color",e)}setDecimals(e){return this.setFieldConfigDefaults("decimals",e)}setDisplayName(e){return this.setFieldConfigDefaults("displayName",e)}setFilterable(e){return this.setFieldConfigDefaults("filterable",e)}setLinks(e){return this.setFieldConfigDefaults("links",e)}setMappings(e){return this.setFieldConfigDefaults("mappings",e)}setMax(e){return this.setFieldConfigDefaults("max",e)}setMin(e){return this.setFieldConfigDefaults("min",e)}setNoValue(e){return this.setFieldConfigDefaults("noValue",e)}setThresholds(e){return this.setFieldConfigDefaults("thresholds",e)}setUnit(e){return this.setFieldConfigDefaults("unit",e)}setCustomFieldConfig(e,t){return this._fieldConfig.defaults={...this._fieldConfig.defaults,custom:u.merge(this._fieldConfig.defaults.custom,{[e]:t})},this}setOverrides(e){return e(this._overridesBuilder),this}setFieldConfigDefaults(e,t){return this._fieldConfig.defaults={...this._fieldConfig.defaults,[e]:t},this}build(){return{defaults:this._fieldConfig.defaults,overrides:this._overridesBuilder.build()}}}class ul{constructor(e){this.defaultOptions=e,this._options={},this.setDefaults()}setDefaults(){this._options=this.defaultOptions?u.cloneDeep(this.defaultOptions()):{}}setOption(e,t){return this._options=u.merge(this._options,{[e]:t}),this}build(){return this._options}}class cl{constructor(e,t,r,n){this._state={},this._state.title="",this._state.description="",this._state.displayMode="default",this._state.hoverHeader=!1,this._state.pluginId=e,this._state.pluginVersion=t,this._fieldConfigBuilder=new ll(n),this._panelOptionsBuilder=new ul(r)}setTitle(e){return this._state.title=e,this}setDescription(e){return this._state.description=e,this}setDisplayMode(e){return this._state.displayMode=e,this}setHoverHeader(e){return this._state.hoverHeader=e,this}setShowMenuAlways(e){return this._state.showMenuAlways=e,this}setMenu(e){return this._state.menu=e,this}setHeaderActions(e){return this._state.headerActions=e,this}setCollapsible(e){return this._state.collapsible=e,this}setCollapsed(e){return this._state.collapsed=e,this}setColor(e){return this._fieldConfigBuilder.setColor(e),this}setDecimals(e){return this._fieldConfigBuilder.setDecimals(e),this}setDisplayName(e){return this._fieldConfigBuilder.setDisplayName(e),this}setFilterable(e){return this._fieldConfigBuilder.setFilterable(e),this}setLinks(e){return this._fieldConfigBuilder.setLinks(e),this}setMappings(e){return this._fieldConfigBuilder.setMappings(e),this}setMax(e){return this._fieldConfigBuilder.setMax(e),this}setMin(e){return this._fieldConfigBuilder.setMin(e),this}setNoValue(e){return this._fieldConfigBuilder.setNoValue(e),this}setThresholds(e){return this._fieldConfigBuilder.setThresholds(e),this}setUnit(e){return this._fieldConfigBuilder.setUnit(e),this}setCustomFieldConfig(e,t){return this._fieldConfigBuilder.setCustomFieldConfig(e,t),this}setOverrides(e){return this._fieldConfigBuilder.setOverrides(e),this}setOption(e,t){return this._panelOptionsBuilder.setOption(e,t),this}setData(e){return this._state.$data=e,this}setTimeRange(e){return this._state.$timeRange=e,this}setVariables(e){return this._state.$variables=e,this}setBehaviors(e){return this._state.$behaviors=e,this}setSeriesLimit(e){return this._state.seriesLimit=e,this}applyMixin(e){return e(this),this}build(){return new ma({...this._state,options:this._panelOptionsBuilder.build(),fieldConfig:this._fieldConfigBuilder.build()})}}const dl={barchart:()=>new ul(()=>_.defaultOptions),bargauge:()=>new ul(()=>x.defaultOptions),datagrid:()=>new ul(()=>O.defaultOptions),flamegraph:()=>new ul,gauge:()=>new ul(()=>A.defaultOptions),geomap:()=>new ul(()=>R.defaultOptions),heatmap:()=>new ul(()=>E.defaultOptions),histogram:()=>new ul(()=>k.defaultOptions),logs:()=>new ul,news:()=>new ul(()=>C.defaultOptions),nodegraph:()=>new ul,piechart:()=>new ul(()=>I.defaultOptions),stat:()=>new ul(()=>P.defaultOptions),statetimeline:()=>new ul(()=>M.defaultOptions),statushistory:()=>new ul(()=>T.defaultOptions),table:()=>new ul(()=>N.defaultOptions),text:()=>new ul(()=>D.defaultOptions),timeseries:()=>new ul,trend:()=>new ul,traces:()=>new ul,xychart:()=>new ul(()=>F.defaultOptions)},fl={barchart:()=>new ll(()=>_.defaultFieldConfig),bargauge:()=>new ll,datagrid:()=>new ll,flamegraph:()=>new ll,gauge:()=>new ll,geomap:()=>new ll,heatmap:()=>new ll,histogram:()=>new ll(()=>k.defaultFieldConfig),logs:()=>new ll,news:()=>new ll,nodegraph:()=>new ll,piechart:()=>new ll,stat:()=>new ll,statetimeline:()=>new ll(()=>M.defaultFieldConfig),statushistory:()=>new ll(()=>T.defaultFieldConfig),table:()=>new ll,text:()=>new ll,timeseries:()=>new ll,trend:()=>new ll,traces:()=>new ll,xychart:()=>new ll(()=>F.defaultFieldConfig)},pl={barchart:()=>new cl("barchart","10.0.0",()=>_.defaultOptions,()=>_.defaultFieldConfig),bargauge:()=>new cl("bargauge","10.0.0",()=>x.defaultOptions),datagrid:()=>new cl("datagrid","10.0.0",()=>O.defaultOptions),flamegraph:()=>new cl("flamegraph","10.0.0"),gauge:()=>new cl("gauge","10.0.0",()=>A.defaultOptions),geomap:()=>new cl("geomap","10.0.0",()=>R.defaultOptions),heatmap:()=>new cl("heatmap","10.0.0",()=>E.defaultOptions),histogram:()=>new cl("histogram","10.0.0",()=>k.defaultOptions,()=>k.defaultFieldConfig),logs:()=>new cl("logs","10.0.0"),news:()=>new cl("news","10.0.0",()=>C.defaultOptions),nodegraph:()=>new cl("nodeGraph","10.0.0"),piechart:()=>new cl("piechart","10.0.0",()=>I.defaultOptions),stat:()=>new cl("stat","10.0.0",()=>P.defaultOptions),statetimeline:()=>new cl("state-timeline","10.0.0",()=>M.defaultOptions,()=>M.defaultFieldConfig),statushistory:()=>new cl("status-history","10.0.0",()=>T.defaultOptions,()=>T.defaultFieldConfig),table:()=>new cl("table","10.0.0",()=>N.defaultOptions),text:()=>new cl("text","10.0.0",()=>D.defaultOptions),timeseries:()=>new cl("timeseries","10.0.0"),trend:()=>new cl("trend","10.0.0"),traces:()=>new cl("traces","10.0.0"),xychart:()=>new cl("xychart","10.0.0",()=>F.defaultOptions,()=>F.defaultFieldConfig)};class hl{constructor(e,t,r,n){this._pluginId=e,this._pluginVersion=t,this._fieldConfigBuilder=new ll(n),this._panelOptionsBuilder=new ul(r)}setColor(e){return this._fieldConfigBuilder.setColor(e),this}setDecimals(e){return this._fieldConfigBuilder.setDecimals(e),this}setDisplayName(e){return this._fieldConfigBuilder.setDisplayName(e),this}setFilterable(e){return this._fieldConfigBuilder.setFilterable(e),this}setLinks(e){return this._fieldConfigBuilder.setLinks(e),this}setMappings(e){return this._fieldConfigBuilder.setMappings(e),this}setMax(e){return this._fieldConfigBuilder.setMax(e),this}setMin(e){return this._fieldConfigBuilder.setMin(e),this}setNoValue(e){return this._fieldConfigBuilder.setNoValue(e),this}setThresholds(e){return this._fieldConfigBuilder.setThresholds(e),this}setUnit(e){return this._fieldConfigBuilder.setUnit(e),this}setCustomFieldConfig(e,t){return this._fieldConfigBuilder.setCustomFieldConfig(e,t),this}setOverrides(e){return this._fieldConfigBuilder.setOverrides(e),this}setOption(e,t){return this._panelOptionsBuilder.setOption(e,t),this}build(){return{pluginId:this._pluginId,pluginVersion:this._pluginVersion,options:this._panelOptionsBuilder.build(),fieldConfig:this._fieldConfigBuilder.build()}}}const ml={barchart:()=>new hl("barchart","10.0.0",()=>_.defaultOptions,()=>_.defaultFieldConfig),bargauge:()=>new hl("bargauge","10.0.0",()=>x.defaultOptions),datagrid:()=>new hl("datagrid","10.0.0",()=>O.defaultOptions),flamegraph:()=>new hl("flamegraph","10.0.0"),gauge:()=>new hl("gauge","10.0.0",()=>A.defaultOptions),geomap:()=>new hl("geomap","10.0.0",()=>R.defaultOptions),heatmap:()=>new hl("heatmap","10.0.0",()=>E.defaultOptions),histogram:()=>new hl("histogram","10.0.0",()=>k.defaultOptions,()=>k.defaultFieldConfig),logs:()=>new hl("logs","10.0.0"),news:()=>new hl("news","10.0.0",()=>C.defaultOptions),nodegraph:()=>new hl("nodeGraph","10.0.0"),piechart:()=>new hl("piechart","10.0.0",()=>I.defaultOptions),stat:()=>new hl("stat","10.0.0",()=>P.defaultOptions),statetimeline:()=>new hl("state-timeline","10.0.0",()=>M.defaultOptions,()=>M.defaultFieldConfig),statushistory:()=>new hl("status-history","10.0.0",()=>T.defaultOptions,()=>T.defaultFieldConfig),table:()=>new hl("table","10.0.0",()=>N.defaultOptions),text:()=>new hl("text","10.0.0",()=>D.defaultOptions),timeseries:()=>new hl("timeseries","10.0.0"),trend:()=>new hl("trend","10.0.0"),traces:()=>new hl("traces","10.0.0"),xychart:()=>new hl("xychart","10.0.0",()=>F.defaultOptions,()=>F.defaultFieldConfig)};const vl=d.LANGUAGES.reduce((e,t)=>(e[t.code]=async()=>await function(e){switch(e){case"../locales/cs-CZ/grafana-scenes.json":return Promise.resolve().then(function(){return r(3014)});case"../locales/de-DE/grafana-scenes.json":return Promise.resolve().then(function(){return r(73313)});case"../locales/en-US/grafana-scenes.json":return Promise.resolve().then(function(){return r(63578)});case"../locales/es-ES/grafana-scenes.json":return Promise.resolve().then(function(){return r(56137)});case"../locales/fr-FR/grafana-scenes.json":return Promise.resolve().then(function(){return r(57186)});case"../locales/hu-HU/grafana-scenes.json":return Promise.resolve().then(function(){return r(65685)});case"../locales/id-ID/grafana-scenes.json":return Promise.resolve().then(function(){return r(39366)});case"../locales/it-IT/grafana-scenes.json":return Promise.resolve().then(function(){return r(31961)});case"../locales/ja-JP/grafana-scenes.json":return Promise.resolve().then(function(){return r(69031)});case"../locales/ko-KR/grafana-scenes.json":return Promise.resolve().then(function(){return r(75937)});case"../locales/nl-NL/grafana-scenes.json":return Promise.resolve().then(function(){return r(61395)});case"../locales/pl-PL/grafana-scenes.json":return Promise.resolve().then(function(){return r(62587)});case"../locales/pt-BR/grafana-scenes.json":return Promise.resolve().then(function(){return r(78444)});case"../locales/pt-PT/grafana-scenes.json":return Promise.resolve().then(function(){return r(53343)});case"../locales/ru-RU/grafana-scenes.json":return Promise.resolve().then(function(){return r(5481)});case"../locales/sv-SE/grafana-scenes.json":return Promise.resolve().then(function(){return r(88667)});case"../locales/tr-TR/grafana-scenes.json":return Promise.resolve().then(function(){return r(51399)});case"../locales/zh-Hans/grafana-scenes.json":return Promise.resolve().then(function(){return r(67779)});case"../locales/zh-Hant/grafana-scenes.json":return Promise.resolve().then(function(){return r(11965)});default:return new Promise(function(t,r){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}(`../locales/${t.code}/grafana-scenes.json`),e),{}),gl={getUrlWithAppState:B,registerRuntimePanelPlugin:function({pluginId:e,plugin:t}){if(W.has(e))throw new Error(`A runtime panel plugin with id ${e} has already been registered`);t.meta={...t.meta,id:e,name:e,module:"runtime plugin",baseUrl:"runtime plugin",info:{author:{name:"Runtime plugin "+e},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""}},W.set(e,t)},registerRuntimeDataSource:ae,registerVariableMacro:function(e,t,r=!1){if(!r&&xt.get(e))throw new Error(`Macro already registered ${e}`);return xt.set(e,t),()=>{if(r)throw new Error("Replaced macros can not be unregistered. They need to be restored manually.");xt.delete(e)}},cloneSceneObjectState:te,syncStateFromSearchParams:function(e,t,r){ue(e,t,new ie(r))},getUrlState:le,renderPrometheusLabelFilters:Aa,escapeLabelValueInRegexSelector:Ea,escapeLabelValueInExactSelector:Ra,escapeURLDelimiters:function(e){return Pa(Ia(e))},isAdHocVariable:function(e){return"adhoc"===e.state.type},isConstantVariable:function(e){return"constant"===e.state.type},isCustomVariable:function(e){return"custom"===e.state.type},isDataSourceVariable:function(e){return"datasource"===e.state.type},isIntervalVariable:function(e){return"interval"===e.state.type},isQueryVariable:function(e){return"query"===e.state.type},isTextBoxVariable:function(e){return"textbox"===e.state.type},isGroupByVariable:function(e){return"groupby"===e.state.type},isSwitchVariable:function(e){return"switch"===e.state.type},isRepeatCloneOrChildOf:ht,buildPathIdFor:ho};t.AdHocFiltersComboboxRenderer=mn,t.AdHocFiltersVariable=On,t.AdHocFiltersVariableController=_n,t.ConstantVariable=Va,t.ControlsLabel=Nr,t.CustomVariable=yi,t.DataProviderProxy=class extends J{constructor(e){super({source:e.source,data:e.source.resolve().state.data}),this.addActivationHandler(()=>{this._subs.add(this.state.source.resolve().subscribeToState((e,t)=>{e.data!==t.data&&this.setState({data:e.data})}))})}setContainerWidth(e){var t,r;null==(r=(t=this.state.source.resolve()).setContainerWidth)||r.call(t,e)}isDataReadyToDisplay(){var e,t,r;return null==(r=null==(t=(e=this.state.source.resolve()).isDataReadyToDisplay)?void 0:t.call(e))||r}cancelQuery(){var e,t;null==(t=(e=this.state.source.resolve()).cancelQuery)||t.call(e)}getResultsStream(){return this.state.source.resolve().getResultsStream()}},t.DataSourceVariable=_i,t.EmbeddedScene=Wi,t.FieldConfigBuilder=ll,t.FieldConfigBuilders=fl,t.FieldConfigOverridesBuilder=sl,t.GroupByVariable=Nn,t.IntervalVariable=Pi,t.LazyLoader=Wn,t.LocalValueVariable=fo,t.MultiOrSingleValueSelect=pr,t.MultiValueVariable=vt,t.NestedScene=us,t.NewSceneObjectAddedEvent=Vi,t.PATH_ID_SEPARATOR=po,t.PanelBuilders=pl,t.PanelOptionsBuilders=dl,t.QueryVariable=no,t.RuntimeDataSource=re,t.SafeSerializableSceneObject=wr,t.SceneApp=qs,t.SceneAppPage=ol,t.SceneByFrameRepeater=Ps,t.SceneByVariableRepeater=Ms,t.SceneCSSGridItem=Ls,t.SceneCSSGridLayout=js,t.SceneCanvasText=ds,t.SceneControlsSpacer=Ts,t.SceneDataLayerBase=Ko,t.SceneDataLayerControls=si,t.SceneDataLayerSet=pa,t.SceneDataLayerSetBase=fa,t.SceneDataNode=_e,t.SceneDataTransformer=ha,t.SceneDebugger=el,t.SceneFlexItem=Ds,t.SceneFlexLayout=Ns,t.SceneGridItem=Ki,t.SceneGridLayout=ns,t.SceneGridLayoutDragStartEvent=ts,t.SceneGridRow=ss,t.SceneObjectBase=J,t.SceneObjectRef=Z,t.SceneObjectStateChangedEvent=q,t.SceneObjectUrlSyncConfig=Oe,t.SceneQueryRunner=wa,t.SceneReactObject=Qs,t.SceneRefreshPicker=ws,t.SceneTimePicker=hs,t.SceneTimeRange=Fe,t.SceneTimeRangeCompare=ks,t.SceneTimeRangeTransformerBase=ii,t.SceneTimeZoneOverride=class extends ii{constructor(e){super({...e,timeZone:e.timeZone,from:"now-6h",to:"now",value:a.getDefaultTimeRange()})}ancestorTimeRangeChanged(e){this.setState({...e,timeZone:this.state.timeZone,value:ke(e.from,e.to,this.state.timeZone,e.fiscalYearStartMonth,e.UNSAFE_nowDelay,e.weekStart)})}getTimeZone(){return this.state.timeZone}onTimeZoneChange(e){const t=this.getAncestorTimeRange();this.setState({timeZone:e,value:ke(t.state.from,t.state.to,e,t.state.fiscalYearStartMonth,t.state.UNSAFE_nowDelay,t.state.weekStart)})}},t.SceneToolbarButton=fs,t.SceneToolbarInput=ps,t.SceneVariableSet=vi,t.SceneVariableValueChangedEvent=Ue,t.ScopesVariable=Cr,t.SplitLayout=Hs,t.SwitchVariable=wi,t.TestVariable=ki,t.TextBoxVariable=Ii,t.UrlSyncContextProvider=function({children:e,scene:t,updateUrlOnInit:r,createBrowserHistorySteps:n,namespace:a,excludeFromNamespace:o}){return Ui(t,{updateUrlOnInit:r,createBrowserHistorySteps:n,namespace:a,excludeFromNamespace:o})?e:null},t.UrlSyncManager=zi,t.UserActionEvent=$,t.VariableDependencyConfig=za,t.VariableValueControl=mi,t.VariableValueSelectWrapper=di,t.VariableValueSelectors=ci,t.VizConfigBuilder=hl,t.VizConfigBuilders=ml,t.VizPanel=ma,t.VizPanelBuilder=cl,t.VizPanelExploreButton=$i,t.VizPanelMenu=Hi,t.behaviors=mo,t.dataLayers=oi,t.escapeUrlPipeDelimiters=Ia,t.formatRegistry=et,t.getExploreURL=qi,t.getQueriesForVariables=Ca,t.isCustomVariableValue=We,t.isDataLayer=kt,t.isDataRequestEnricher=Rt,t.isFiltersRequestEnricher=Et,t.isSceneObject=At,t.loadResources=async e=>(await vl[e]()).default,t.performanceUtils=qo,t.registerQueryWithController=Tt,t.registerRuntimeDataSource=ae,t.sceneGraph=uo,t.sceneUtils=gl,t.useSceneApp=function(e){const t=Ks.get(e);if(t)return t;const r=e();return Ks.set(e,r),r},t.useSceneObjectState=X,t.useUrlSync=Ui,t.writePerformanceLog=vo},28925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var n=r(93639),a=r(34230),o=r(82792),i=r(44757);t.tap=function(e,t,r){var s=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return s?a.operate(function(e,t){var r;null===(r=s.subscribe)||void 0===r||r.call(s);var n=!0;e.subscribe(o.createOperatorSubscriber(t,function(e){var r;null===(r=s.next)||void 0===r||r.call(s,e),t.next(e)},function(){var e;n=!1,null===(e=s.complete)||void 0===e||e.call(s),t.complete()},function(e){var r;n=!1,null===(r=s.error)||void 0===r||r.call(s,e),t.error(e)},function(){var e,t;n&&(null===(e=s.unsubscribe)||void 0===e||e.call(s)),null===(t=s.finalize)||void 0===t||t.call(s)}))}):i.identity}},29232:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce(function(e,r,n){return e[r]=t[n],e},{})}},29268:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var n=r(20851),a=r(21826),o=r(93639);t.publishReplay=function(e,t,r,i){r&&!o.isFunction(r)&&(i=r);var s=o.isFunction(r)?r:void 0;return function(r){return a.multicast(new n.ReplaySubject(e,t,i),s)(r)}}},29477:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFieldConfig:()=>i,defaultOptions:()=>o,pluginVersion:()=>a});var n=r(33300);const a="12.3.1",o={colWidth:.9,perPage:20,rowHeight:.9,showValue:n.V.Auto},i={fillOpacity:70,lineWidth:1}},29538:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.approxEqual=(e,t)=>Math.abs(e-t)<1.01,t.debounce=(e,t,r)=>{let n;return function(...a){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,a),r)}},t.memo=function(e,t,r){let n,a=r.initialDeps??[],o=!0;function i(){var i,s,l;let u;r.key&&(null==(i=r.debug)?void 0:i.call(r))&&(u=Date.now());const c=e();if(!(c.length!==a.length||c.some((e,t)=>a[t]!==e)))return n;let d;if(a=c,r.key&&(null==(s=r.debug)?void 0:s.call(r))&&(d=Date.now()),n=t(...c),r.key&&(null==(l=r.debug)?void 0:l.call(r))){Math.round(100*(Date.now()-u)),Math.round(100*(Date.now()-d))}return!(null==r?void 0:r.onChange)||o&&r.skipInitialOnChange||r.onChange(n),o=!1,n}return i.updateDeps=e=>{a=e},i},t.notUndefined=function(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}},30642:(e,t,r)=>{"use strict";t.__esModule=!0,t.resizableProps=void 0;var n,a=(n=r(23108))&&n.__esModule?n:{default:n};r(57831);t.resizableProps={axis:a.default.oneOf(["both","x","y","none"]),className:a.default.string,children:a.default.element.isRequired,draggableOpts:a.default.shape({allowAnyClick:a.default.bool,cancel:a.default.string,children:a.default.node,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:"undefined"!=typeof Element?a.default.instanceOf(Element):a.default.any,grid:a.default.arrayOf(a.default.number),handle:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[n]=t;return"both"===n.axis||"y"===n.axis?a.default.number.isRequired(...t):a.default.number(...t)},handle:a.default.oneOfType([a.default.node,a.default.func]),handleSize:a.default.arrayOf(a.default.number),lockAspectRatio:a.default.bool,maxConstraints:a.default.arrayOf(a.default.number),minConstraints:a.default.arrayOf(a.default.number),onResizeStop:a.default.func,onResizeStart:a.default.func,onResize:a.default.func,resizeHandles:a.default.arrayOf(a.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:a.default.number,width:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[n]=t;return"both"===n.axis||"x"===n.axis?a.default.number.isRequired(...t):a.default.number(...t)}}},31070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var n=r(86322),a=r(34230),o=r(82792),i=r(87023),s=r(83598);t.window=function(e){return a.operate(function(t,r){var a=new n.Subject;r.next(a.asObservable());var l=function(e){a.error(e),r.error(e)};return t.subscribe(o.createOperatorSubscriber(r,function(e){return null==a?void 0:a.next(e)},function(){a.complete(),r.complete()},l)),s.innerFrom(e).subscribe(o.createOperatorSubscriber(r,function(){a.complete(),r.next(a=new n.Subject)},i.noop,l)),function(){null==a||a.unsubscribe(),a=null}})}},31114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var n=r(36333);t.SequenceError=n.createErrorClass(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}})},31380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var n=r(83598),a=r(58013),o=r(68505);t.schedulePromise=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),a.observeOn(t))}},31961:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Modifica filtro con chiave {{keyLabel}}","managed-filter":"filtro gestito da {{origin}}","non-applicable":"","remove-filter-with-key":"Rimuovi filtro con chiave {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Rimuovi valore filtro - {{itemLabel}}","use-custom-value":"Usa il valore personalizzato: {{itemLabel}}"},"fallback-page":{content:"Se un link ti ha portato qui, potrebbe esserci un bug in questa applicazione.",subTitle:"L'URL non corrispondeva a nessuna pagina",title:"Non trovato"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Riduci scena","expand-button-label":"Espandi scena","remove-button-label":"Rimuovi scena"},"scene-debugger":{"object-details":"Dettagli dell’oggetto","scene-graph":"Grafico della scena","title-scene-debugger":"Debugger della scena"},"scene-grid-row":{"collapse-row":"Riduci riga","expand-row":"Espandi riga"},"scene-refresh-picker":{"text-cancel":"Annulla","text-refresh":"Aggiorna","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Confronto","button-tooltip":"Abilita confronto intervallo di tempo"},splitter:{"aria-label-pane-resize-widget":"Widget di ridimensionamento del pannello"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Titolo"}},"viz-panel-explore-button":{explore:"Esplora"},"viz-panel-renderer":{"loading-plugin-panel":"Caricamento del pannello dei componenti aggiuntivi in corso...","panel-plugin-has-no-panel-component":"Il plug-in del pannello non ha alcun componente del pannello"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Il rendering di troppe serie in un singolo pannello può influire sulle prestazioni e rendere più difficile la lettura dei dati.","warning-message":"Mostra solo {{seriesLimit}} serie"}},utils:{"controls-label":{"tooltip-remove":"Rimuovi"},"loading-indicator":{"content-cancel-query":"Annulla query"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Modifica operatore del filtro"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Aggiungi filtro","title-add-filter":"Aggiungi filtro"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Rimuovi filtro","key-select":{"placeholder-select-label":"Seleziona etichetta"},"label-select-label":"Seleziona etichetta","title-remove-filter":"Rimuovi filtro","value-select":{"placeholder-select-value":"Seleziona valore"}},"data-source-variable":{label:{default:"predefinito"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"cancella",tooltip:"Applicato per impostazione predefinita in questa dashboard. Se modificato, viene trasferito ad altre dashboard.","tooltip-restore-groupby-set-by-this-dashboard":"Ripristina il raggruppamento impostato da questa dashboard."},"format-registry":{formats:{description:{"commaseparated-values":"Valori separati da virgola","double-quoted-values":"Valori tra virgolette doppie","format-date-in-different-ways":"Formatta la data in diversi modi","format-multivalued-variables-using-syntax-example":"Formatta le variabili a più valori utilizzando la sintassi glob, esempio {value1,value2}","html-escaping-of-values":"Escaping HTML dei valori","join-values-with-a-comma":"","json-stringify-value":"Valore JSON stringify","keep-value-as-is":"Mantieni il valore così com'è","multiple-values-are-formatted-like-variablevalue":"I valori multipli sono formattati come variabile=valore","single-quoted-values":"Valori tra virgolette singole","useful-escaping-values-taking-syntax-characters":"Utile per i valori di escape degli URL, tenendo conto dei caratteri di sintassi URI","useful-for-url-escaping-values":"Utile per i valori di escape degli URL","values-are-separated-by-character":"I valori sono separati dal carattere |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Raggruppa per selettore","placeholder-group-by-label":"Raggruppa per etichetta"},"interval-variable":{"placeholder-select-value":"Seleziona valore"},"loading-options-placeholder":{"loading-options":"Caricamento opzioni in corso..."},"multi-value-apply-button":{apply:"Applica"},"no-options-placeholder":{"no-options-found":"Nessuna opzione trovata"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Si è verificato un errore durante il recupero delle etichette. Clicca per riprovare"},"test-object-with-variable-dependency":{title:{hello:"Ciao"}},"test-variable":{text:{text:"Testo"}},"variable-value-input":{"placeholder-enter-value":"Inserisci valore"},"variable-value-select":{"placeholder-select-value":"Seleziona valore"}}}}},32159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var n=r(75734),a=r(93639);t.isInteropObservable=function(e){return a.isFunction(e[n.observable])}},32403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var n=r(51623),a=r(41897),o=r(62954),i=r(93639);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(t.NotificationKind||(t.NotificationKind={}));var s=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return l(this,e)},e.prototype.do=function(e,t,r){var n=this,a=n.kind,o=n.value,i=n.error;return"N"===a?null==e?void 0:e(o):"E"===a?null==t?void 0:t(i):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return i.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,i=e.error,s="N"===t?a.of(r):"E"===t?o.throwError(function(){return i}):"C"===t?n.EMPTY:0;if(!s)throw new TypeError("Unexpected notification kind "+t);return s},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function l(e,t){var r,n,a,o=e,i=o.kind,s=o.value,l=o.error;if("string"!=typeof i)throw new TypeError('Invalid notification, missing "kind"');"N"===i?null===(r=t.next)||void 0===r||r.call(t,s):"E"===i?null===(n=t.error)||void 0===n||n.call(t,l):null===(a=t.complete)||void 0===a||a.call(t)}t.Notification=s,t.observeNotification=l},32522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var n=r(34230),a=r(82792);t.refCount=function(){return n.operate(function(e,t){var r=null;e._refCount++;var n=a.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,a=r;r=null,!n||a&&n!==a||n.unsubscribe(),t.unsubscribe()}});e.subscribe(n),n.closed||(r=e.connect())})}},32900:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=f(r(85959)),o=f(r(23108)),i=r(57831),s=r(7003),l=r(39726),u=r(75642),c=r(14534),d=f(r(82767));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,a=y(e);if(t){var o=y(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}(this,r)}}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(c,e);var t,r,n,o=g(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(b(e=o.call.apply(o,[this].concat(r))),"state",{resizing:null,dragging:null,className:""}),w(b(e),"elementRef",a.default.createRef()),w(b(e),"onDragStart",function(t,r){var n=r.node,a=e.props,o=a.onDragStart,i=a.transformScale;if(o){var s={top:0,left:0},l=n.offsetParent;if(l){var c=l.getBoundingClientRect(),d=n.getBoundingClientRect(),f=d.left/i,p=c.left/i,h=d.top/i,m=c.top/i;s.left=f-p+l.scrollLeft,s.top=h-m+l.scrollTop,e.setState({dragging:s});var v=(0,u.calcXY)(e.getPositionParams(),s.top,s.left,e.props.w,e.props.h),g=v.x,y=v.y;return o.call(b(e),e.props.i,g,y,{e:t,node:n,newPosition:s})}}}),w(b(e),"onDrag",function(t,r){var n=r.node,a=r.deltaX,o=r.deltaY,i=e.props.onDrag;if(i){if(!e.state.dragging)throw new Error("onDrag called before onDragStart.");var s=e.state.dragging.top+o,l=e.state.dragging.left+a,c=e.props,d=c.isBounded,f=c.i,p=c.w,h=c.h,m=c.containerWidth,v=e.getPositionParams();if(d){var g=n.offsetParent;if(g){var y=e.props,w=y.margin,S=y.rowHeight,_=g.clientHeight-(0,u.calcGridItemWHPx)(h,S,w[1]);s=(0,u.clamp)(s,0,_);var x=(0,u.calcGridColWidth)(v),O=m-(0,u.calcGridItemWHPx)(p,x,w[0]);l=(0,u.clamp)(l,0,O)}}var A={top:s,left:l};e.setState({dragging:A});var R=(0,u.calcXY)(v,s,l,p,h),E=R.x,k=R.y;return i.call(b(e),f,E,k,{e:t,node:n,newPosition:A})}}),w(b(e),"onDragStop",function(t,r){var n=r.node,a=e.props.onDragStop;if(a){if(!e.state.dragging)throw new Error("onDragEnd called before onDragStart.");var o=e.props,i=o.w,s=o.h,l=o.i,c=e.state.dragging,d=c.left,f=c.top,p={top:f,left:d};e.setState({dragging:null});var h=(0,u.calcXY)(e.getPositionParams(),f,d,i,s),m=h.x,v=h.y;return a.call(b(e),l,m,v,{e:t,node:n,newPosition:p})}}),w(b(e),"onResizeStop",function(t,r){e.onResizeHandler(t,r,"onResizeStop")}),w(b(e),"onResizeStart",function(t,r){e.onResizeHandler(t,r,"onResizeStart")}),w(b(e),"onResize",function(t,r){e.onResizeHandler(t,r,"onResize")}),e}return t=c,r=[{key:"shouldComponentUpdate",value:function(e,t){if(this.props.children!==e.children)return!0;if(this.props.droppingPosition!==e.droppingPosition)return!0;var r=(0,u.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),n=(0,u.calcGridItemPosition)(this.getPositionParams(e),e.x,e.y,e.w,e.h,t);return!(0,l.fastPositionEqual)(r,n)||this.props.useCSSTransforms!==e.useCSSTransforms}},{key:"componentDidMount",value:function(){this.moveDroppingItem({})}},{key:"componentDidUpdate",value:function(e){this.moveDroppingItem(e)}},{key:"moveDroppingItem",value:function(e){var t=this.props.droppingPosition;if(t){var r=this.elementRef.current;if(r){var n=e.droppingPosition||{left:0,top:0},a=this.state.dragging,o=a&&t.left!==n.left||t.top!==n.top;if(a){if(o){var i=t.left-a.left,s=t.top-a.top;this.onDrag(t.e,{node:r,deltaX:i,deltaY:s})}}else this.onDragStart(t.e,{node:r,deltaX:t.left,deltaY:t.top})}}}},{key:"getPositionParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxRows,rowHeight:e.rowHeight}}},{key:"createStyle",value:function(e){var t,r=this.props,n=r.usePercentages,a=r.containerWidth;return r.useCSSTransforms?t=(0,l.setTransform)(e):(t=(0,l.setTopLeft)(e),n&&(t.left=(0,l.perc)(e.left/a),t.width=(0,l.perc)(e.width/a))),t}},{key:"mixinDraggable",value:function(e,t){return a.default.createElement(i.DraggableCore,{disabled:!t,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},e)}},{key:"mixinResizable",value:function(e,t,r){var n=this.props,o=n.cols,i=n.x,l=n.minW,c=n.minH,d=n.maxW,f=n.maxH,p=n.transformScale,h=n.resizeHandles,m=n.resizeHandle,v=this.getPositionParams(),g=(0,u.calcGridItemPosition)(v,0,0,o-i,0).width,b=(0,u.calcGridItemPosition)(v,0,0,l,c),y=(0,u.calcGridItemPosition)(v,0,0,d,f),w=[b.width,b.height],S=[Math.min(y.width,g),Math.min(y.height,1/0)];return a.default.createElement(s.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:t.width,height:t.height,minConstraints:w,maxConstraints:S,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:p,resizeHandles:h,handle:m},e)}},{key:"onResizeHandler",value:function(e,t,r){var n=t.node,a=t.size,o=this.props[r];if(o){var i=this.props,s=i.cols,l=i.x,c=i.y,d=i.i,f=i.maxH,p=i.minH,h=this.props,m=h.minW,v=h.maxW,g=(0,u.calcWH)(this.getPositionParams(),a.width,a.height,l,c),b=g.w,y=g.h;m=Math.max(m,1),v=Math.min(v,s-l),b=(0,u.clamp)(b,m,v),y=(0,u.clamp)(y,p,f),this.setState({resizing:"onResizeStop"===r?null:a}),o.call(this,d,b,y,{e,node:n,size:a})}}},{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,n=e.w,o=e.h,i=e.isDraggable,s=e.isResizable,l=e.droppingPosition,c=e.useCSSTransforms,f=(0,u.calcGridItemPosition)(this.getPositionParams(),t,r,n,o,this.state),p=a.default.Children.only(this.props.children),m=a.default.cloneElement(p,{ref:this.elementRef,className:(0,d.default)("react-grid-item",p.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":i,"react-draggable-dragging":Boolean(this.state.dragging),dropping:Boolean(l),cssTransforms:c}),style:h(h(h({},this.props.style),p.props.style),this.createStyle(f))});return m=this.mixinResizable(m,f,s),m=this.mixinDraggable(m,i)}}],r&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(a.default.Component);t.default=S,w(S,"propTypes",{children:o.default.element,cols:o.default.number.isRequired,containerWidth:o.default.number.isRequired,rowHeight:o.default.number.isRequired,margin:o.default.array.isRequired,maxRows:o.default.number.isRequired,containerPadding:o.default.array.isRequired,x:o.default.number.isRequired,y:o.default.number.isRequired,w:o.default.number.isRequired,h:o.default.number.isRequired,minW:function(e,t){var r=e[t];return"number"!=typeof r?new Error("minWidth not Number"):r>e.w||r>e.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){var r=e[t];return"number"!=typeof r?new Error("maxWidth not Number"):r<e.w||r<e.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(e,t){var r=e[t];return"number"!=typeof r?new Error("minHeight not Number"):r>e.h||r>e.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){var r=e[t];return"number"!=typeof r?new Error("maxHeight not Number"):r<e.h||r<e.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:o.default.string.isRequired,resizeHandles:c.resizeHandleAxesType,resizeHandle:c.resizeHandleType,onDragStop:o.default.func,onDragStart:o.default.func,onDrag:o.default.func,onResizeStop:o.default.func,onResizeStart:o.default.func,onResize:o.default.func,isDraggable:o.default.bool.isRequired,isResizable:o.default.bool.isRequired,isBounded:o.default.bool.isRequired,static:o.default.bool,useCSSTransforms:o.default.bool.isRequired,transformScale:o.default.number,className:o.default.string,handle:o.default.string,cancel:o.default.string,droppingPosition:o.default.shape({e:o.default.object.isRequired,left:o.default.number.isRequired,top:o.default.number.isRequired})}),w(S,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1})},33300:(e,t,r)=>{"use strict";r.d(t,{B:()=>c,G:()=>a,P:()=>d,S:()=>o,T:()=>b,V:()=>n,a:()=>u,b:()=>l,c:()=>s,d:()=>f,e:()=>v,f:()=>h,g:()=>m,h:()=>p,i:()=>i});var n=(e=>(e.Always="always",e.Auto="auto",e.Never="never",e))(n||{}),a=(e=>(e.Hue="hue",e.None="none",e.Opacity="opacity",e.Scheme="scheme",e))(a||{}),o=(e=>(e.None="none",e.Normal="normal",e.Percent="percent",e))(o||{});var i=(e=>(e.Auto="auto",e.Horizontal="horizontal",e.Vertical="vertical",e))(i||{});var s=(e=>(e.Background="background",e.BackgroundSolid="background_solid",e.None="none",e.Value="value",e))(s||{}),l=(e=>(e.Area="area",e.Line="line",e.None="none",e))(l||{}),u=(e=>(e.Auto="auto",e.Center="center",e))(u||{}),c=(e=>(e.Auto="auto",e.Name="name",e.None="none",e.Value="value",e.ValueAndName="value_and_name",e))(c||{}),d=(e=>(e.Inverted="inverted",e.SameAsValue="same_as_value",e.Standard="standard",e))(d||{}),f=(e=>(e.Multi="multi",e.None="none",e.Single="single",e))(f||{});var p=(e=>(e.Basic="basic",e.Gradient="gradient",e.Lcd="lcd",e))(p||{}),h=(e=>(e.Color="color",e.Hidden="hidden",e.Text="text",e))(h||{}),m=(e=>(e.Auto="auto",e.Hidden="hidden",e.Left="left",e.Top="top",e))(m||{}),v=(e=>(e.Auto="auto",e.Manual="manual",e))(v||{}),g=(e=>(e.Actions="actions",e.Auto="auto",e.BasicGauge="basic",e.ColorBackground="color-background",e.ColorBackgroundSolid="color-background-solid",e.ColorText="color-text",e.Custom="custom",e.DataLinks="data-links",e.Gauge="gauge",e.Geo="geo",e.GradientGauge="gradient-gauge",e.Image="image",e.JSONView="json-view",e.LcdGauge="lcd-gauge",e.Markdown="markdown",e.Pill="pill",e.Sparkline="sparkline",e))(g||{}),b=(e=>(e.Auto="auto",e.Lg="lg",e.Md="md",e.Sm="sm",e))(b||{});g.Auto},33625:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(29538),a=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},o=e=>e,i=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let e=t;e<=r;e++)n.push(e);return n},s={passive:!0},l="undefined"==typeof window||"onscrollend"in window,u=(e,t,r)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[r.options.horizontal?"inlineSize":"blockSize"])}}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]};const c=(e,t,r,n)=>{for(;e<=t;){const a=(e+t)/2|0,o=r(a);if(o<n)e=a+1;else{if(!(o>n))return a;t=a-1}}return e>0?e-1:0};t.approxEqual=n.approxEqual,t.debounce=n.debounce,t.memo=n.memo,t.notUndefined=n.notUndefined,t.Virtualizer=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var r;null==(r=t())||r.disconnect(),e=null},observe:e=>{var r;return null==(r=t())?void 0:r.observe(e,{box:"border-box"})},unobserve:e=>{var r;return null==(r=t())?void 0:r.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,r])=>{void 0===r&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:o,rangeExtractor:i,onChange:()=>{},measureElement:u,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,r;null==(r=(t=this.options).onChange)||r.call(t,this,e)},this.maybeNotify=n.memo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const r=new Map,n=new Map;for(let a=t-1;a>=0;a--){const t=e[a];if(r.has(t.lane))continue;const o=n.get(t.lane);if(null==o||t.end>o.end?n.set(t.lane,t):t.end<o.end&&r.set(t.lane,!0),r.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=n.memo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,r,n,a,o)=>(void 0!==this.prevLanes&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:a,lanes:o}),{key:!1}),this.getMeasurements=n.memo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:a,lanes:o},i)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const l=this.measurementsCache.slice(0,s),u=new Array(o).fill(void 0);for(let e=0;e<s;e++){const t=l[e];t&&(u[t.lane]=e)}for(let a=s;a<e;a++){const e=n(a),o=this.laneAssignments.get(a);let s,c;if(void 0!==o&&this.options.lanes>1){s=o;const e=u[s],n=void 0!==e?l[e]:void 0;c=n?n.end+this.options.gap:t+r}else{const e=1===this.options.lanes?l[a-1]:this.getFurthestMeasurement(l,a);c=e?e.end+this.options.gap:t+r,s=e?e.lane:a%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(a,s)}const d=i.get(e),f="number"==typeof d?d:this.options.estimateSize(a),p=c+f;l[a]={index:a,start:c,size:f,end:p,key:e,lane:s},u[s]=a}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=n.memo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,r,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:r,lanes:n}){const a=e.length-1,o=t=>e[t].start;if(e.length<=n)return{startIndex:0,endIndex:a};let i=c(0,a,o,r),s=i;if(1===n)for(;s<a&&e[s].end<r+t;)s++;else if(n>1){const o=Array(n).fill(0);for(;s<a&&o.some(e=>e<r+t);){const t=e[s];o[t.lane]=t.end,s++}const l=Array(n).fill(r+t);for(;i>=0&&l.some(e=>e>=r);){const t=e[i];l[t.lane]=t.start,i--}i=Math.max(0,i-i%n),s=Math.min(a,s+(n-1-s%n))}return{startIndex:i,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:r,lanes:n}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=n.memo(()=>{let e=null,t=null;const r=this.calculateRange();return r&&(e=r.startIndex,t=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,r,n,a)=>null===n||null===a?[]:e({startIndex:n,endIndex:a,overscan:t,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,r=e.getAttribute(t);return r?parseInt(r,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const r=this.indexFromElement(e),n=this.measurementsCache[r];if(!n)return;const a=n.key,o=this.elementsCache.get(a);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(a,e)),e.isConnected&&this.resizeItem(r,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const r=this.measurementsCache[e];if(!r)return;const n=t-(this.itemSizeCache.get(r.key)??r.size);0!==n&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,n,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=n.memo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const r=[];for(let n=0,a=e.length;n<a;n++){const a=t[e[n]];r.push(a)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return n.notUndefined(t[c(0,t.length-1,e=>n.notUndefined(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,r=0)=>{if(!this.scrollElement)return 0;const n=this.getSize(),a=this.getScrollOffset();"auto"===t&&(t=e>=a+n?"end":"start"),"center"===t?e+=(r-n)/2:"end"===t&&(e-=n);const o=this.getMaxScrollOffset();return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.measurementsCache[e];if(!r)return;const n=this.getSize(),a=this.getScrollOffset();if("auto"===t)if(r.end>=a+n-this.options.scrollPaddingEnd)t="end";else{if(!(r.start<=a+this.options.scrollPaddingStart))return[a,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const o="end"===t?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,r.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:r}={})=>{"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:r})},this.scrollToIndex=(e,{align:t="auto",behavior:r}={})=>{"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let a=0;const o=t=>{if(!this.targetWindow)return;const a=this.getOffsetForIndex(e,t);if(!a)return void console.warn("Failed to get offset for index:",e);const[o,s]=a;this._scrollToOffset(o,{adjustments:void 0,behavior:r}),this.targetWindow.requestAnimationFrame(()=>{const t=()=>{if(this.currentScrollToIndex!==e)return;const t=this.getScrollOffset(),r=this.getOffsetForIndex(e,s);r?n.approxEqual(r[0],t)||i(s):console.warn("Failed to get offset for index:",e)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},i=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(a++,a<10?this.targetWindow.requestAnimationFrame(()=>o(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};o(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let r;if(0===t.length)r=this.options.paddingStart;else if(1===this.options.lanes)r=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let n=t.length-1;for(;n>=0&&e.some(e=>null===e);){const r=t[n];null===e[r.lane]&&(e[r.lane]=r.end),n--}r=Math.max(...e.filter(e=>null!==e))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:r})=>{this.options.scrollToFn(e,{behavior:r,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}},t.defaultKeyExtractor=o,t.defaultRangeExtractor=i,t.elementScroll=(e,{adjustments:t=0,behavior:r},n)=>{var a,o;const i=e+t;null==(o=null==(a=n.scrollElement)?void 0:a.scrollTo)||o.call(a,{[n.options.horizontal?"left":"top"]:i,behavior:r})},t.measureElement=u,t.observeElementOffset=(e,t)=>{const r=e.scrollElement;if(!r)return;const a=e.targetWindow;if(!a)return;let o=0;const i=e.options.useScrollendEvent&&l?()=>{}:n.debounce(a,()=>{t(o,!1)},e.options.isScrollingResetDelay),u=n=>()=>{const{horizontal:a,isRtl:s}=e.options;o=a?r.scrollLeft*(s?-1:1):r.scrollTop,i(),t(o,n)},c=u(!0),d=u(!1);r.addEventListener("scroll",c,s);const f=e.options.useScrollendEvent&&l;return f&&r.addEventListener("scrollend",d,s),()=>{r.removeEventListener("scroll",c),f&&r.removeEventListener("scrollend",d)}},t.observeElementRect=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=e=>{const{width:r,height:n}=e;t({width:Math.round(r),height:Math.round(n)})};if(o(a(r)),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(t=>{const n=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(a(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},t.observeWindowOffset=(e,t)=>{const r=e.scrollElement;if(!r)return;const a=e.targetWindow;if(!a)return;let o=0;const i=e.options.useScrollendEvent&&l?()=>{}:n.debounce(a,()=>{t(o,!1)},e.options.isScrollingResetDelay),u=n=>()=>{o=r[e.options.horizontal?"scrollX":"scrollY"],i(),t(o,n)},c=u(!0),d=u(!1);r.addEventListener("scroll",c,s);const f=e.options.useScrollendEvent&&l;return f&&r.addEventListener("scrollend",d,s),()=>{r.removeEventListener("scroll",c),f&&r.removeEventListener("scrollend",d)}},t.observeWindowRect=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=()=>{t({width:r.innerWidth,height:r.innerHeight})};return n(),r.addEventListener("resize",n,s),()=>{r.removeEventListener("resize",n)}},t.windowScroll=(e,{adjustments:t=0,behavior:r},n)=>{var a,o;const i=e+t;null==(o=null==(a=n.scrollElement)?void 0:a.scrollTo)||o.call(a,{[n.options.horizontal?"left":"top"]:i,behavior:r})}},34156:(e,t,r)=>{"use strict";t.default=void 0;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(a=t?n:r){if(a.has(e))return a.get(e);a.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?a(i,t,o):i[t]=e[t]);return i}(e,t)}(r(85959)),a=l(r(23108)),o=l(r(89637)),i=r(30642);const s=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(null,arguments)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class p extends n.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(e,t)=>{const{size:r}=t;this.props.onResize?(e.persist?.(),this.setState(r,()=>this.props.onResize&&this.props.onResize(e,t))):this.setState(r)}}static getDerivedStateFromProps(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){const e=this.props,{handle:t,handleSize:r,onResize:a,onResizeStart:i,onResizeStop:l,draggableOpts:c,minConstraints:f,maxConstraints:p,lockAspectRatio:h,axis:m,width:v,height:g,resizeHandles:b,style:y,transformScale:w}=e,S=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,s);return n.createElement(o.default,{axis:m,draggableOpts:c,handle:t,handleSize:r,height:this.state.height,lockAspectRatio:h,maxConstraints:p,minConstraints:f,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:b,transformScale:w,width:this.state.width},n.createElement("div",u({},S,{style:d(d({},y),{},{width:this.state.width+"px",height:this.state.height+"px"})})))}}t.default=p,p.propTypes=d(d({},i.resizableProps),{},{children:a.default.element})},34230:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var n=r(93639);function a(e){return n.isFunction(null==e?void 0:e.lift)}t.hasLift=a,t.operate=function(e){return function(t){if(a(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}},34443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},34661:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var o=r(93697),i=r(83598),s=r(3526),l=r(51623),u=r(82792),c=r(11998);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popResultSelector(e),d=s.argsOrArgArray(e);return d.length?new o.Observable(function(e){var t=d.map(function(){return[]}),o=d.map(function(){return!1});e.add(function(){t=o=null});for(var s=function(s){i.innerFrom(d[s]).subscribe(u.createOperatorSubscriber(e,function(i){if(t[s].push(i),t.every(function(e){return e.length})){var l=t.map(function(e){return e.shift()});e.next(r?r.apply(void 0,a([],n(l))):l),t.some(function(e,t){return!e.length&&o[t]})&&e.complete()}},function(){o[s]=!0,!t[s].length&&e.complete()}))},l=0;!e.closed&&l<d.length;l++)s(l);return function(){t=o=null}}):l.EMPTY}},34950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(28236);function a(e,t){const r={};for(const[n,l]of Object.entries(e))o(l)?r[n]=a(l,t):(s(l,n),r[n]=i(l,t));return r}function o(e){if("object"==typeof e){const[t]=Object.keys(e);return!n.valid(t)}return!1}function i(e,t){let r,a=Object.keys(e).sort(n.compare);if("latest"===t)return e[a[a.length-1]];for(const e of a)n.gte(t,e)&&(r=e);return r||(r=a[a.length-1]),e[r]}function s(e,t){if(!Object.keys(e).every(e=>n.valid(e)))throw new Error(`Invalid semver version: '${t}'`)}t.resolveSelectors=function(e,t="latest"){return a(e,t.replace(/\-.*/,""))}},35102:(e,t)=>{t.J=function e(t,r,n,a){var o,i,s={},l=!1;for(o in r)"object"!=typeof(i=r[o])&&(l=!0,s[o]=i);for(o in l&&(t[a]||(t[a]={}),t[a][n]=s),r)if("object"==typeof(i=r[o]))if("@"===o[0])e(t,i,n,o);else{var u=o.indexOf("&")>-1,c=n.split(",");if(u)for(var d=0;d<c.length;d++)c[d]=o.replace(/&/g,c[d]);else for(d=0;d<c.length;d++)c[d]=c[d]+" "+o;e(t,i,c.join(","),a)}}},35444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var n=r(93697);t.scheduleArray=function(e,t){return new n.Observable(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}},35450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.divWrapper=void 0;var n=r(56636),a=n.__importStar(r(85959)),o=n.__importDefault(r(28707)),i=a.createElement,s=function(e,t,r,a){var o;return i(e,t?n.__assign(((o={})[t]=a,o),r):n.__assign(n.__assign({},a),r))};t.divWrapper=function(e,t,r,n){return i("div",null,s(e,t,r,n))};t.default=function(e,t,r){void 0===r&&(r=s);var n=function(a,s,l){void 0===s&&(s=t),void 0===l&&(l=null);var u="string"==typeof a;if(u)return function(e){return n(e,a||t,s)};var c=function(t){return i(e,l,function(e){return r(a,s,t,e)})};return u?o.default(c):c};return n}},36333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},36618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var n=r(52476),a=r(93639);t.max=function(e){return n.reduce(a.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}},36692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=t.merge=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.concat=t.combineLatestWith=t.combineLatest=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=void 0,t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.race=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.partition=t.pairwise=t.onErrorResumeNext=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=void 0,t.zipWith=t.zipAll=t.zip=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=void 0;var n=r(50191);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return n.audit}});var a=r(85802);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return a.auditTime}});var o=r(20456);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return o.buffer}});var i=r(66973);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return i.bufferCount}});var s=r(63653);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return s.bufferTime}});var l=r(20468);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return l.bufferToggle}});var u=r(37172);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return u.bufferWhen}});var c=r(82589);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return c.catchError}});var d=r(54082);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return d.combineAll}});var f=r(23231);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return f.combineLatestAll}});var p=r(18346);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return p.combineLatest}});var h=r(52742);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return h.combineLatestWith}});var m=r(81358);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return m.concat}});var v=r(14123);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return v.concatAll}});var g=r(23538);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return g.concatMap}});var b=r(20919);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return b.concatMapTo}});var y=r(9034);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return y.concatWith}});var w=r(99210);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return w.connect}});var S=r(95435);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return S.count}});var _=r(51629);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return _.debounce}});var x=r(51160);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return x.debounceTime}});var O=r(55117);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return O.defaultIfEmpty}});var A=r(79615);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return A.delay}});var R=r(70719);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return R.delayWhen}});var E=r(14820);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return E.dematerialize}});var k=r(23222);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return k.distinct}});var C=r(19854);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return C.distinctUntilChanged}});var I=r(81509);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return I.distinctUntilKeyChanged}});var P=r(85941);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return P.elementAt}});var M=r(94073);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return M.endWith}});var T=r(15171);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return T.every}});var N=r(93902);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return N.exhaust}});var D=r(75403);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return D.exhaustAll}});var F=r(89042);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return F.exhaustMap}});var j=r(11162);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return j.expand}});var L=r(39708);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return L.filter}});var V=r(51540);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return V.finalize}});var z=r(91501);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return z.find}});var B=r(68201);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return B.findIndex}});var U=r(95594);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return U.first}});var W=r(79194);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return W.groupBy}});var G=r(42949);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return G.ignoreElements}});var H=r(47217);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return H.isEmpty}});var q=r(28602);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return q.last}});var $=r(52850);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return $.map}});var K=r(73751);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return K.mapTo}});var Q=r(26637);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return Q.materialize}});var Y=r(36618);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return Y.max}});var Z=r(43460);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return Z.merge}});var J=r(72301);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return J.mergeAll}});var X=r(7115);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return X.flatMap}});var ee=r(76628);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var te=r(4181);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}});var re=r(76817);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return re.mergeScan}});var ne=r(44428);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ne.mergeWith}});var ae=r(80196);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ae.min}});var oe=r(21826);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return oe.multicast}});var ie=r(58013);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ie.observeOn}});var se=r(40035);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return se.onErrorResumeNext}});var le=r(96554);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return le.pairwise}});var ue=r(72578);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ue.partition}});var ce=r(67885);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return ce.pluck}});var de=r(55079);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return de.publish}});var fe=r(55821);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return fe.publishBehavior}});var pe=r(81863);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return pe.publishLast}});var he=r(29268);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return he.publishReplay}});var me=r(73287);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return me.race}});var ve=r(11199);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return ve.raceWith}});var ge=r(52476);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ge.reduce}});var be=r(82061);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return be.repeat}});var ye=r(66557);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return ye.repeatWhen}});var we=r(97058);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return we.retry}});var Se=r(2894);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Se.retryWhen}});var _e=r(32522);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return _e.refCount}});var xe=r(1172);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return xe.sample}});var Oe=r(75545);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Oe.sampleTime}});var Ae=r(70071);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Ae.scan}});var Re=r(83375);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Re.sequenceEqual}});var Ee=r(43679);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Ee.share}});var ke=r(57836);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return ke.shareReplay}});var Ce=r(22026);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Ce.single}});var Ie=r(43949);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Ie.skip}});var Pe=r(70121);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Pe.skipLast}});var Me=r(25117);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Me.skipUntil}});var Te=r(68604);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Te.skipWhile}});var Ne=r(16820);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Ne.startWith}});var De=r(68505);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return De.subscribeOn}});var Fe=r(231);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Fe.switchAll}});var je=r(262);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return je.switchMap}});var Le=r(21723);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Le.switchMapTo}});var Ve=r(70451);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Ve.switchScan}});var ze=r(13769);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return ze.take}});var Be=r(28885);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return Be.takeLast}});var Ue=r(57857);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Ue.takeUntil}});var We=r(25960);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return We.takeWhile}});var Ge=r(28925);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Ge.tap}});var He=r(24182);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return He.throttle}});var qe=r(21539);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return qe.throttleTime}});var $e=r(48926);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return $e.throwIfEmpty}});var Ke=r(43614);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Ke.timeInterval}});var Qe=r(96471);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Qe.timeout}});var Ye=r(57231);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Ye.timeoutWith}});var Ze=r(70320);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Ze.timestamp}});var Je=r(82370);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Je.toArray}});var Xe=r(31070);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Xe.window}});var et=r(4283);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}});var tt=r(28075);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}});var rt=r(71870);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return rt.windowToggle}});var nt=r(69698);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return nt.windowWhen}});var at=r(62617);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return at.withLatestFrom}});var ot=r(28619);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return ot.zip}});var it=r(17124);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return it.zipAll}});var st=r(12227);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return st.zipWith}})},36701:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},37079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34950),a=r(69081),o=r(18839);const i=n.resolveSelectors(o.versionedPages),s=n.resolveSelectors(a.versionedComponents),l={pages:i,components:s};t.resolveSelectors=n.resolveSelectors,t.versionedComponents=a.versionedComponents,t.versionedPages=o.versionedPages,t.Components=s,t.Pages=i,t.selectors=l},37172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var n=r(34230),a=r(87023),o=r(82792),i=r(83598);t.bufferWhen=function(e){return n.operate(function(t,r){var n=null,s=null,l=function(){null==s||s.unsubscribe();var t=n;n=[],t&&r.next(t),i.innerFrom(e()).subscribe(s=o.createOperatorSubscriber(r,l,a.noop))};l(),t.subscribe(o.createOperatorSubscriber(r,function(e){return null==n?void 0:n.push(e)},function(){n&&r.next(n),r.complete()},void 0,function(){return n=s=null}))})}},37716:(e,t,r)=>{e.exports=r(46058).default,e.exports.utils=r(39726),e.exports.Responsive=r(61180).default,e.exports.Responsive.utils=r(65792),e.exports.WidthProvider=r(54165).default},38135:(e,t)=>{"use strict";t.v=function(e){e.client&&(document.head.appendChild(e.msh=document.createElement("style")),e.createRule=function(t,r){var n=t+"{}";r&&(n=r+"{"+n+"}");var a=r?e.msh.sheet:e.sh.sheet,o=a.insertRule(n,a.cssRules.length),i=(a.cssRules||a.rules)[o];if(i.index=o,r){var s=(i.cssRules||i.rules)[0];i.style=s.style,i.styleMap=s.styleMap}return i})}},39053:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var n=r(93697),a=r(3526),o=r(82792),i=r(87023),s=r(83598);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.argsOrArgArray(e);return new n.Observable(function(e){var t=0,n=function(){if(t<r.length){var a=void 0;try{a=s.innerFrom(r[t++])}catch(e){return void n()}var l=new o.OperatorSubscriber(e,void 0,i.noop,i.noop);a.subscribe(l),l.add(n)}else e.complete()};n()})}},39366:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Edit filter dengan kunci {{keyLabel}}","managed-filter":"Filter {{origin}} yang dikelola","non-applicable":"","remove-filter-with-key":"Hapus filter dengan kunci {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Hapus nilai filter - {{itemLabel}}","use-custom-value":"Gunakan nilai kustom: {{itemLabel}}"},"fallback-page":{content:"Jika Anda diarahkan ke sini menggunakan tautan, mungkin ada bug dalam aplikasi ini.",subTitle:"URL tidak cocok dengan halaman mana pun",title:"Tidak ditemukan"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Ciutkan tampilan","expand-button-label":"Perluas tampilan","remove-button-label":"Hapus tampilan"},"scene-debugger":{"object-details":"Detail objek","scene-graph":"Grafik tampilan","title-scene-debugger":"Debugger tampilan"},"scene-grid-row":{"collapse-row":"Ciutkan baris","expand-row":"Perbesar baris"},"scene-refresh-picker":{"text-cancel":"Batalkan","text-refresh":"Muat ulang","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Perbandingan","button-tooltip":"Aktifkan perbandingan kerangka waktu"},splitter:{"aria-label-pane-resize-widget":"Widget pengubah ukuran panel"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Judul"}},"viz-panel-explore-button":{explore:"Jelajahi"},"viz-panel-renderer":{"loading-plugin-panel":"Memuat panel plugin...","panel-plugin-has-no-panel-component":"Plugin panel tidak memiliki komponen panel"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Menampilkan terlalu banyak seri data dalam satu panel dapat memengaruhi kinerja dan membuat data lebih sulit dibaca.","warning-message":"Menampilkan {{seriesLimit}} seri data saja"}},utils:{"controls-label":{"tooltip-remove":"Hapus"},"loading-indicator":{"content-cancel-query":"Batalkan kueri"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Edit operator filter"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Tambahkan filter","title-add-filter":"Tambahkan filter"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Hapus filter","key-select":{"placeholder-select-label":"Pilih label"},"label-select-label":"Pilih label","title-remove-filter":"Hapus filter","value-select":{"placeholder-select-value":"Pilih nilai"}},"data-source-variable":{label:{default:"default"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"hapus",tooltip:"Diterapkan secara default di dasbor ini. Jika diedit, ini akan diteruskan ke dasbor lain.","tooltip-restore-groupby-set-by-this-dashboard":"Pulihkan 'kelompokkan berdasarkan' yang ditetapkan oleh dasbor ini."},"format-registry":{formats:{description:{"commaseparated-values":"Nilai yang dipisahkan koma","double-quoted-values":"Nilai dalam tanda kutip ganda","format-date-in-different-ways":"Format tanggal dengan berbagai cara yang berbeda","format-multivalued-variables-using-syntax-example":"Format variabel multi-nilai menggunakan sintaks glob, contoh {value1, value2}","html-escaping-of-values":"Nilai HTML escaping","join-values-with-a-comma":"","json-stringify-value":"Nilai stringify JSON","keep-value-as-is":"Pertahankan nilai apa adanya","multiple-values-are-formatted-like-variablevalue":"Beberapa nilai diformat seperti variabel=nilai","single-quoted-values":"Nilai dalam tanda kutip tunggal","useful-escaping-values-taking-syntax-characters":"Berguna untuk nilai escaping URL, memperhitungkan karakter sintaks URI","useful-for-url-escaping-values":"Berguna untuk nilai URL escaping","values-are-separated-by-character":"Nilai dipisahkan oleh karakter |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Kelompokkan berdasarkan selektor","placeholder-group-by-label":"Kelompokkan berdasarkan label"},"interval-variable":{"placeholder-select-value":"Pilih nilai"},"loading-options-placeholder":{"loading-options":"Memuat opsi..."},"multi-value-apply-button":{apply:"Terapkan"},"no-options-placeholder":{"no-options-found":"Opsi tidak ditemukan"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Terjadi kesalahan saat mengambil label. Klik untuk mencoba lagi"},"test-object-with-variable-dependency":{title:{hello:"Halo"}},"test-variable":{text:{text:"Teks"}},"variable-value-input":{"placeholder-enter-value":"Masukkan nilai"},"variable-value-select":{"placeholder-select-value":"Pilih nilai"}}}}},39708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var n=r(34230),a=r(82792);t.filter=function(e,t){return n.operate(function(r,n){var o=0;r.subscribe(a.createOperatorSubscriber(n,function(r){return e.call(t,r,o++)&&n.next(r)}))})}},39726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bottom=d,t.childrenEqual=function(e,t){return(0,n.default)(a.default.Children.map(e,function(e){return null==e?void 0:e.key}),a.default.Children.map(t,function(e){return null==e?void 0:e.key}))},t.cloneLayout=f,t.cloneLayoutItem=h,t.collides=v,t.compact=g,t.compactItem=w,t.compactType=function(e){var t=e||{},r=t.verticalCompact,n=t.compactType;return!1===r?null:n},t.correctBounds=S,t.fastPositionEqual=function(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height},t.fastRGLPropsEqual=void 0,t.getAllCollisions=O,t.getFirstCollision=x,t.getLayoutItem=_,t.getStatics=A,t.modifyLayout=p,t.moveElement=R,t.moveElementAwayFromCollision=E,t.noop=void 0,t.perc=function(e){return 100*e+"%"},t.setTopLeft=function(e){var t=e.top,r=e.left,n=e.width,a=e.height;return{top:"".concat(t,"px"),left:"".concat(r,"px"),width:"".concat(n,"px"),height:"".concat(a,"px"),position:"absolute"}},t.setTransform=function(e){var t=e.top,r=e.left,n=e.width,a=e.height,o="translate(".concat(r,"px,").concat(t,"px)");return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:"".concat(n,"px"),height:"".concat(a,"px"),position:"absolute"}},t.sortLayoutItems=k,t.sortLayoutItemsByColRow=I,t.sortLayoutItemsByRowCol=C,t.synchronizeLayoutWithChildren=function(e,t,r,n,o){e=e||[];var i=[];a.default.Children.forEach(t,function(t){if(null!=(null==t?void 0:t.key)){var r=_(e,String(t.key));if(r)i.push(h(r));else{!u&&t.props._grid&&console.warn("`_grid` properties on children have been deprecated as of React 15.2. Please use `data-grid` or add your properties directly to the `layout`.");var n=t.props["data-grid"]||t.props._grid;n?(u||P([n],"ReactGridLayout.children"),i.push(h(s(s({},n),{},{i:t.key})))):i.push(h({w:1,h:1,x:0,y:d(i),i:String(t.key)}))}}});var l=S(i,{cols:r});return o?l:g(l,n,r)},t.validateLayout=P,t.withLayoutItem=function(e,t,r){var n=_(e,t);return n?(n=r(h(n)),[e=p(e,n),n]):[e,null]};var n=o(r(83718)),a=o(r(85959));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=!0,c=!1;function d(e){for(var t,r=0,n=0,a=e.length;n<a;n++)(t=e[n].y+e[n].h)>r&&(r=t);return r}function f(e){for(var t=Array(e.length),r=0,n=e.length;r<n;r++)t[r]=h(e[r]);return t}function p(e,t){for(var r=Array(e.length),n=0,a=e.length;n<a;n++)t.i===e[n].i?r[n]=t:r[n]=e[n];return r}function h(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:Boolean(e.moved),static:Boolean(e.static),isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}var m=r(12010);function v(e,t){return e.i!==t.i&&(!(e.x+e.w<=t.x)&&(!(e.x>=t.x+t.w)&&(!(e.y+e.h<=t.y)&&!(e.y>=t.y+t.h))))}function g(e,t,r){for(var n=A(e),a=k(e,t),o=Array(e.length),i=0,s=a.length;i<s;i++){var l=h(a[i]);l.static||(l=w(n,l,t,r,a),n.push(l)),o[e.indexOf(a[i])]=l,l.moved=!1}return o}t.fastRGLPropsEqual=m;var b={x:"w",y:"h"};function y(e,t,r,n){var a=b[n];t[n]+=1;for(var o=e.map(function(e){return e.i}).indexOf(t.i)+1;o<e.length;o++){var i=e[o];if(!i.static){if(i.y>t.y+t.h)break;v(t,i)&&y(e,i,r+t[a],n)}}t[n]=r}function w(e,t,r,n,a){var o,i="horizontal"===r;if("vertical"===r)for(t.y=Math.min(d(e),t.y);t.y>0&&!x(e,t);)t.y--;else if(i)for(;t.x>0&&!x(e,t);)t.x--;for(;o=x(e,t);)i?y(a,t,o.x+o.w,"x"):y(a,t,o.y+o.h,"y"),i&&t.x+t.w>n&&(t.x=n-t.w,t.y++);return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function S(e,t){for(var r=A(e),n=0,a=e.length;n<a;n++){var o=e[n];if(o.x+o.w>t.cols&&(o.x=t.cols-o.w),o.x<0&&(o.x=0,o.w=t.cols),o.static)for(;x(r,o);)o.y++;else r.push(o)}return e}function _(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r].i===t)return e[r]}function x(e,t){for(var r=0,n=e.length;r<n;r++)if(v(e[r],t))return e[r]}function O(e,t){return e.filter(function(e){return v(e,t)})}function A(e){return e.filter(function(e){return e.static})}function R(e,t,r,n,a,o,i,s,l){if(t.static&&!0!==t.isDraggable)return e;if(t.y===n&&t.x===r)return e;M("Moving element ".concat(t.i," to [").concat(String(r),",").concat(String(n),"] from [").concat(t.x,",").concat(t.y,"]"));var u=t.x,c=t.y;"number"==typeof r&&(t.x=r),"number"==typeof n&&(t.y=n),t.moved=!0;var d=k(e,i);("vertical"===i&&"number"==typeof n?c>=n:"horizontal"===i&&"number"==typeof r&&u>=r)&&(d=d.reverse());var p=O(d,t),h=p.length>0;if(h&&l)return f(e);if(h&&o)return M("Collision prevented on ".concat(t.i,", reverting.")),t.x=u,t.y=c,t.moved=!1,e;for(var m=0,v=p.length;m<v;m++){var g=p[m];M("Resolving collision between ".concat(t.i," at [").concat(t.x,",").concat(t.y,"] and ").concat(g.i," at [").concat(g.x,",").concat(g.y,"]")),g.moved||(e=g.static?E(e,g,t,a,i,s):E(e,t,g,a,i,s))}return e}function E(e,t,r,n,a,o){var i="horizontal"===a,s="horizontal"!==a,l=t.static;if(n){n=!1;var u={x:i?Math.max(t.x-r.w,0):r.x,y:s?Math.max(t.y-r.h,0):r.y,w:r.w,h:r.h,i:"-1"};if(!x(e,u))return M("Doing reverse collision on ".concat(r.i," up to [").concat(u.x,",").concat(u.y,"].")),R(e,r,i?u.x:void 0,s?u.y:void 0,n,l,a,o)}return R(e,r,i?r.x+1:void 0,s?r.y+1:void 0,n,l,a,o)}function k(e,t){return"horizontal"===t?I(e):"vertical"===t?C(e):e}function C(e){return e.slice(0).sort(function(e,t){return e.y>t.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1})}function I(e){return e.slice(0).sort(function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1})}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",r=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var n=0,a=e.length;n<a;n++)for(var o=e[n],i=0;i<r.length;i++)if("number"!=typeof o[r[i]])throw new Error("ReactGridLayout: "+t+"["+n+"]."+r[i]+" must be a number!")}function M(){var e;c&&(e=console).log.apply(e,arguments)}t.noop=function(){}},40035:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var o=r(3526),i=r(39053);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.argsOrArgArray(e);return function(e){return i.onErrorResumeNext.apply(void 0,a([e],n(r)))}}t.onErrorResumeNextWith=s,t.onErrorResumeNext=s},40354:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),t.default=void 0;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(a=t?n:r){if(a.has(e))return a.get(e);a.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?a(i,t,o):i[t]=e[t]);return i}(e,t)}(r(85959)),a=f(r(23108)),o=f(r(48398)),i=r(91014),s=r(47762),l=r(19631),u=r(45025),c=f(r(56965)),d=f(r(2013));function f(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(null,arguments)}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class m extends n.Component{static getDerivedStateFromProps(e,t){let{position:r}=e,{prevPropsPosition:n}=t;return!r||n&&r.x===n.x&&r.y===n.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:{...r}})}constructor(e){super(e),h(this,"onDragStart",(e,t)=>{(0,d.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);const r=(0,l.createDraggableData)(this,t),n={x:r.x,y:r.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=n;n.x+=this.state.slackX,n.y+=this.state.slackY;const[a,o]=(0,l.getBoundPosition)(this,n.x,n.y);n.x=a,n.y=o,n.slackX=this.state.slackX+(e-n.x),n.slackY=this.state.slackY+(t-n.y),r.x=n.x,r.y=n.y,r.deltaX=n.x-this.state.x,r.deltaY=n.y-this.state.y}if(!1===this.props.onDrag(e,r))return!1;this.setState(n)}),h(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);const r={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;r.x=e,r.y=t}this.setState(r)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:r,defaultPosition:a,defaultClassName:o,defaultClassNameDragging:u,defaultClassNameDragged:d,position:f,positionOffset:h,scale:m,...v}=this.props;let g={},b=null;const y=!Boolean(f)||this.state.dragging,w=f||a,S={x:(0,l.canDragX)(this)&&y?this.state.x:w.x,y:(0,l.canDragY)(this)&&y?this.state.y:w.y};this.state.isElementSVG?b=(0,s.createSVGTransform)(S,h):g=(0,s.createCSSTransform)(S,h);const _=(0,i.clsx)(r.props.className||"",o,{[u]:this.state.dragging,[d]:this.state.dragged});return n.createElement(c.default,p({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(r),{className:_,style:{...r.props.style,...g},transform:b}))}}t.default=m,h(m,"displayName","Draggable"),h(m,"propTypes",{...c.default.propTypes,axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),h(m,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},41897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var n=r(11998),a=r(11420);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.popScheduler(e);return a.from(e,r)}},42949:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var n=r(34230),a=r(82792),o=r(87023);t.ignoreElements=function(){return n.operate(function(e,t){e.subscribe(a.createOperatorSubscriber(t,o.noop))})}},43308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37079);r(61562);var a=r(34950),o=r(69081),i=r(18839);t.Components=n.Components,t.Pages=n.Pages,t.selectors=n.selectors,t.resolveSelectors=a.resolveSelectors,t.versionedComponents=o.versionedComponents,t.versionedPages=i.versionedPages},43460:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var o=r(34230),i=r(72301),s=r(11998),l=r(11420);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popScheduler(e),u=s.popNumber(e,1/0);return o.operate(function(t,o){i.mergeAll(u)(l.from(a([t],n(e)),r)).subscribe(o)})}},43614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var n=r(21492),a=r(34230),o=r(82792);t.timeInterval=function(e){return void 0===e&&(e=n.asyncScheduler),a.operate(function(t,r){var n=e.now();t.subscribe(o.createOperatorSubscriber(r,function(t){var a=e.now(),o=a-n;n=a,r.next(new i(t,o))}))})};var i=function(e,t){this.value=e,this.interval=t};t.TimeInterval=i},43679:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var o=r(83598),i=r(86322),s=r(6278),l=r(34230);function u(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(!0!==t){if(!1!==t){var l=new s.SafeSubscriber({next:function(){l.unsubscribe(),e()}});return o.innerFrom(t.apply(void 0,a([],n(r)))).subscribe(l)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new i.Subject}:t,n=e.resetOnError,a=void 0===n||n,c=e.resetOnComplete,d=void 0===c||c,f=e.resetOnRefCountZero,p=void 0===f||f;return function(e){var t,n,i,c=0,f=!1,h=!1,m=function(){null==n||n.unsubscribe(),n=void 0},v=function(){m(),t=i=void 0,f=h=!1},g=function(){var e=t;v(),null==e||e.unsubscribe()};return l.operate(function(e,l){c++,h||f||m();var b=i=null!=i?i:r();l.add(function(){0!==--c||h||f||(n=u(g,p))}),b.subscribe(l),!t&&c>0&&(t=new s.SafeSubscriber({next:function(e){return b.next(e)},error:function(e){h=!0,m(),n=u(v,a,e),b.error(e)},complete:function(){f=!0,m(),n=u(v,d),b.complete()}}),o.innerFrom(e).subscribe(t))})(e)}}},43949:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var n=r(39708);t.skip=function(e){return n.filter(function(t,r){return e<=r})}},44003:function(e){e.exports=function(){"use strict";var e={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},t=Array.prototype.slice;function r(e){var r=e.length;return r?1===r?[e[0]]:2===r?[e[0],e[1]]:3===r?[e[0],e[1],e[2]]:t.call(e,0):[]}function n(t){var r={};for(var n in t)e[n]||(r[n]=t[n]);return r}function a(e){return"function"==typeof e&&e.isMemoized}function o(e,t){return e===t||e!=e&&t!=t}function i(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r}var s=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:r(this.keys),size:this.size,values:r(this.values)}},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,a=this.keys,o=a.length;if(!o)return-1;if(r(a[0],e))return 0;if(n>1)for(var i=1;i<o;i++)if(r(a[i],e))return i;return-1},e.prototype._getKeyIndexForMany=function(e){var t=this.options.isEqual,r=this.keys,n=r.length;if(!n)return-1;if(1===n)return this._getKeyIndexForSingle(e);var a,o,i=e.length;if(i>1){for(var s=0;s<n;s++)if((a=r[s]).length===i){for(o=0;o<i&&t(a[o],e[o]);o++);if(o===i)return s}}else for(s=0;s<n;s++)if((a=r[s]).length===i&&t(a[0],e[0]))return s;return-1},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var a=this.options.isEqual;if(n>1){for(var o=0;o<n;o++)if(!a(r[o],e[o]))return-1;return 0}return a(r[0],e[0])?0:-1},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,a=this.values,o=n.length,i=r;i--;)n[i+1]=n[i],a[i+1]=a[i];n[0]=e,a[0]=t;var s=this.options.maxSize;o===s&&r===o?(n.pop(),a.pop()):r>=s&&(n.length=a.length=s)},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,a=r.onCacheHit,o=this.keys[0],i=this.values[0];this.values[0]=i.then(function(r){return t.shouldUpdateOnHit&&a(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e})},e}();function l(e,t){if(void 0===t&&(t={}),a(e))return l(e.fn,i(e.options,t));if("function"!=typeof e)throw new TypeError("You must pass a function to `memoize`.");var u=t.isEqual,c=void 0===u?o:u,d=t.isMatchingKey,f=t.isPromise,p=void 0!==f&&f,h=t.maxSize,m=void 0===h?1:h,v=t.onCacheAdd,g=t.onCacheChange,b=t.onCacheHit,y=t.transformKey,w=i({isEqual:c,isMatchingKey:d,isPromise:p,maxSize:m,onCacheAdd:v,onCacheChange:g,onCacheHit:b,transformKey:y},n(t)),S=new s(w),_=S.keys,x=S.values,O=S.canTransformKey,A=S.shouldCloneArguments,R=S.shouldUpdateOnAdd,E=S.shouldUpdateOnChange,k=S.shouldUpdateOnHit,C=function(){var t=A?r(arguments):arguments;O&&(t=y(t));var n=_.length?S.getKeyIndex(t):-1;if(-1!==n)k&&b(S,w,C),n&&(S.orderByLru(_[n],x[n],n),E&&g(S,w,C));else{var a=e.apply(this,arguments),o=A?t:r(arguments);S.orderByLru(o,a,_.length),p&&S.updateAsyncCache(C),R&&v(S,w,C),E&&g(S,w,C)}return x[0]};return C.cache=S,C.fn=e,C.isMemoized=!0,C.options=w,C}return l}()},44428:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var o=r(43460);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.merge.apply(void 0,a([],n(e)))}},44757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},45025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,r){if(e[t])return new Error(`Invalid prop ${t} passed to ${r} - do not set this, set it on the child.`)},t.findInArray=function(e,t){for(let r=0,n=e.length;r<n;r++)if(t.apply(t,[e[r],r,e]))return e[r]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},45094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var n=r(85362),a=r(8630);t.reportUnhandledError=function(e){a.timeoutProvider.setTimeout(function(){var t=n.config.onUnhandledError;if(!t)throw e;t(e)})}},46058:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(a,i,s):a[i]=e[i]}a.default=e,r&&r.set(e,a);return a}(r(85959)),o=d(r(83718)),i=d(r(82767)),s=r(39726),l=r(75642),u=d(r(32900)),c=d(r(14534));function d(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function p(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}(e,t)||g(e,t)||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.")}()}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,a=x(e);if(t){var o=x(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}(this,r)}}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A="react-grid-layout",R=!1;try{R=/firefox/i.test(navigator.userAgent)}catch(e){}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(d,e);var t,r,n,c=S(d);function d(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O(_(e=c.call.apply(c,[this].concat(r))),"state",{activeDrag:null,layout:(0,s.synchronizeLayoutWithChildren)(e.props.layout,e.props.children,e.props.cols,(0,s.compactType)(e.props),e.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,droppingDOMNode:null,children:[]}),O(_(e),"dragEnterCounter",0),O(_(e),"onDragStart",function(t,r,n,a){var o=a.e,i=a.node,l=e.state.layout,u=(0,s.getLayoutItem)(l,t);if(u)return e.setState({oldDragItem:(0,s.cloneLayoutItem)(u),oldLayout:l}),e.props.onDragStart(l,u,u,null,o,i)}),O(_(e),"onDrag",function(t,r,n,a){var o=a.e,i=a.node,l=e.state.oldDragItem,u=e.state.layout,c=e.props,d=c.cols,f=c.allowOverlap,p=c.preventCollision,h=(0,s.getLayoutItem)(u,t);if(h){var m={w:h.w,h:h.h,x:h.x,y:h.y,placeholder:!0,i:t};u=(0,s.moveElement)(u,h,r,n,!0,p,(0,s.compactType)(e.props),d,f),e.props.onDrag(u,l,h,m,o,i),e.setState({layout:f?u:(0,s.compact)(u,(0,s.compactType)(e.props),d),activeDrag:m})}}),O(_(e),"onDragStop",function(t,r,n,a){var o=a.e,i=a.node;if(e.state.activeDrag){var l=e.state.oldDragItem,u=e.state.layout,c=e.props,d=c.cols,f=c.preventCollision,p=c.allowOverlap,h=(0,s.getLayoutItem)(u,t);if(h){u=(0,s.moveElement)(u,h,r,n,!0,f,(0,s.compactType)(e.props),d,p),e.props.onDragStop(u,l,h,null,o,i);var m=p?u:(0,s.compact)(u,(0,s.compactType)(e.props),d),v=e.state.oldLayout;e.setState({activeDrag:null,layout:m,oldDragItem:null,oldLayout:null}),e.onLayoutMaybeChanged(m,v)}}}),O(_(e),"onResizeStart",function(t,r,n,a){var o=a.e,i=a.node,l=e.state.layout,u=(0,s.getLayoutItem)(l,t);u&&(e.setState({oldResizeItem:(0,s.cloneLayoutItem)(u),oldLayout:e.state.layout}),e.props.onResizeStart(l,u,u,null,o,i))}),O(_(e),"onResize",function(t,r,n,a){var o=a.e,i=a.node,l=e.state,u=l.layout,c=l.oldResizeItem,d=e.props,f=d.cols,p=d.preventCollision,h=d.allowOverlap,g=(0,s.withLayoutItem)(u,t,function(e){var t;if(p&&!h){var a=(0,s.getAllCollisions)(u,m(m({},e),{},{w:r,h:n})).filter(function(t){return t.i!==e.i});if(t=a.length>0){var o=1/0,i=1/0;a.forEach(function(t){t.x>e.x&&(o=Math.min(o,t.x)),t.y>e.y&&(i=Math.min(i,t.y))}),Number.isFinite(o)&&(e.w=o-e.x),Number.isFinite(i)&&(e.h=i-e.y)}}return t||(e.w=r,e.h=n),e}),b=v(g,2),y=b[0],w=b[1];if(w){var S={w:w.w,h:w.h,x:w.x,y:w.y,static:!0,i:t};e.props.onResize(y,c,w,S,o,i),e.setState({layout:h?y:(0,s.compact)(y,(0,s.compactType)(e.props),f),activeDrag:S})}}),O(_(e),"onResizeStop",function(t,r,n,a){var o=a.e,i=a.node,l=e.state,u=l.layout,c=l.oldResizeItem,d=e.props,f=d.cols,p=d.allowOverlap,h=(0,s.getLayoutItem)(u,t);e.props.onResizeStop(u,c,h,null,o,i);var m=p?u:(0,s.compact)(u,(0,s.compactType)(e.props),f),v=e.state.oldLayout;e.setState({activeDrag:null,layout:m,oldResizeItem:null,oldLayout:null}),e.onLayoutMaybeChanged(m,v)}),O(_(e),"onDragOver",function(t){var r;if(t.preventDefault(),t.stopPropagation(),R&&(null===(r=t.nativeEvent.target)||void 0===r||!r.classList.contains(A)))return!1;var n=e.props,o=n.droppingItem,i=n.onDropDragOver,s=n.margin,u=n.cols,c=n.rowHeight,d=n.maxRows,f=n.width,h=n.containerPadding,v=n.transformScale,g=null==i?void 0:i(t);if(!1===g)return e.state.droppingDOMNode&&e.removeDroppingPlaceholder(),!1;var b=m(m({},o),g),y=e.state.layout,w=t.nativeEvent,S=w.layerX,_=w.layerY,x={left:S/v,top:_/v,e:t};if(e.state.droppingDOMNode){if(e.state.droppingPosition){var O=e.state.droppingPosition,E=O.left,k=O.top;(E!=S||k!=_)&&e.setState({droppingPosition:x})}}else{var C={cols:u,margin:s,maxRows:d,rowHeight:c,containerWidth:f,containerPadding:h||s},I=(0,l.calcXY)(C,_,S,b.w,b.h);e.setState({droppingDOMNode:a.createElement("div",{key:b.i}),droppingPosition:x,layout:[].concat(p(y),[m(m({},b),{},{x:I.x,y:I.y,static:!1,isDraggable:!0})])})}}),O(_(e),"removeDroppingPlaceholder",function(){var t=e.props,r=t.droppingItem,n=t.cols,a=e.state.layout,o=(0,s.compact)(a.filter(function(e){return e.i!==r.i}),(0,s.compactType)(e.props),n);e.setState({layout:o,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),O(_(e),"onDragLeave",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter--,0===e.dragEnterCounter&&e.removeDroppingPlaceholder()}),O(_(e),"onDragEnter",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter++}),O(_(e),"onDrop",function(t){t.preventDefault(),t.stopPropagation();var r=e.props.droppingItem,n=e.state.layout,a=n.find(function(e){return e.i===r.i});e.dragEnterCounter=0,e.removeDroppingPlaceholder(),e.props.onDrop(n,a,t)}),e}return t=d,n=[{key:"getDerivedStateFromProps",value:function(e,t){var r;return t.activeDrag?null:((0,o.default)(e.layout,t.propsLayout)&&e.compactType===t.compactType?(0,s.childrenEqual)(e.children,t.children)||(r=t.layout):r=e.layout,r?{layout:(0,s.synchronizeLayoutWithChildren)(r,e.children,e.cols,(0,s.compactType)(e),e.allowOverlap),compactType:e.compactType,children:e.children,propsLayout:e.layout}:null)}}],(r=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.children!==e.children||!(0,s.fastRGLPropsEqual)(this.props,e,o.default)||this.state.activeDrag!==t.activeDrag||this.state.mounted!==t.mounted||this.state.droppingPosition!==t.droppingPosition}},{key:"componentDidUpdate",value:function(e,t){if(!this.state.activeDrag){var r=this.state.layout,n=t.layout;this.onLayoutMaybeChanged(r,n)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var e=(0,s.bottom)(this.state.layout),t=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return e*this.props.rowHeight+(e-1)*this.props.margin[1]+2*t+"px"}}},{key:"onLayoutMaybeChanged",value:function(e,t){t||(t=this.state.layout),(0,o.default)(t,e)||this.props.onLayoutChange(e)}},{key:"placeholder",value:function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,r=t.width,n=t.cols,o=t.margin,i=t.containerPadding,s=t.rowHeight,l=t.maxRows,c=t.useCSSTransforms,d=t.transformScale;return a.createElement(u.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:r,cols:n,margin:o,containerPadding:i||o,maxRows:l,rowHeight:s,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:c,transformScale:d},a.createElement("div",null))}},{key:"processGridItem",value:function(e,t){if(e&&e.key){var r=(0,s.getLayoutItem)(this.state.layout,String(e.key));if(!r)return null;var n=this.props,o=n.width,i=n.cols,l=n.margin,c=n.containerPadding,d=n.rowHeight,f=n.maxRows,p=n.isDraggable,h=n.isResizable,m=n.isBounded,v=n.useCSSTransforms,g=n.transformScale,b=n.draggableCancel,y=n.draggableHandle,w=n.resizeHandles,S=n.resizeHandle,_=this.state,x=_.mounted,O=_.droppingPosition,A="boolean"==typeof r.isDraggable?r.isDraggable:!r.static&&p,R="boolean"==typeof r.isResizable?r.isResizable:!r.static&&h,E=r.resizeHandles||w,k=A&&m&&!1!==r.isBounded;return a.createElement(u.default,{containerWidth:o,cols:i,margin:l,containerPadding:c||l,maxRows:f,rowHeight:d,cancel:b,handle:y,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:A,isResizable:R,isBounded:k,useCSSTransforms:v&&x,usePercentages:!x,transformScale:g,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:t?O:void 0,resizeHandles:E,resizeHandle:S},e)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.className,n=t.style,o=t.isDroppable,l=t.innerRef,u=(0,i.default)(A,r),c=m({height:this.containerHeight()},n);return a.createElement("div",{ref:l,className:u,style:c,onDrop:o?this.onDrop:s.noop,onDragLeave:o?this.onDragLeave:s.noop,onDragEnter:o?this.onDragEnter:s.noop,onDragOver:o?this.onDragOver:s.noop},a.Children.map(this.props.children,function(t){return e.processGridItem(t)}),o&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(a.Component);t.default=E,O(E,"displayName","ReactGridLayout"),O(E,"propTypes",c.default),O(E,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:s.noop,onDragStart:s.noop,onDrag:s.noop,onDragStop:s.noop,onResizeStart:s.noop,onResize:s.noop,onResizeStop:s.noop,onDrop:s.noop,onDropDragOver:s.noop})},46410:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(e=>(e.AlertStates="alertStates",e.Annotations="annotations",e.Series="series",e))(r||{}),n=(e=>(e.Linear="linear",e.Quad="quad",e))(n||{}),a=(e=>(e.Clamped="clamped",e.Mod="mod",e))(a||{}),o=(e=>(e.Field="field",e.Fixed="fixed",e.Template="template",e))(o||{}),i=(e=>(e.Field="field",e.Fixed="fixed",e.Mapping="mapping",e))(i||{}),s=(e=>(e.Both="both",e.Forward="forward",e.None="none",e.Reverse="reverse",e))(s||{}),l=(e=>(e.Field="field",e.Fixed="fixed",e))(l||{}),u=(e=>(e.Auto="auto",e.Coords="coords",e.Geohash="geohash",e.Lookup="lookup",e))(u||{}),c=(e=>(e.Count="count",e.Size="size",e))(c||{}),d=(e=>(e.auto="auto",e.ge="ge",e.le="le",e.unknown="unknown",e))(d||{}),f=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(f||{}),p=(e=>(e.Auto="auto",e.Bottom="bottom",e.Hidden="hidden",e.Left="left",e.Right="right",e.Top="top",e))(p||{}),h=(e=>(e.Series="series",e.Text="text",e))(h||{}),m=(e=>(e.Always="always",e.Auto="auto",e.Never="never",e))(m||{}),v=(e=>(e.Bars="bars",e.Line="line",e.Points="points",e))(v||{}),g=(e=>(e.Constant="constant",e.NegativeY="negative-Y",e))(g||{}),b=(e=>(e.Linear="linear",e.Smooth="smooth",e.StepAfter="stepAfter",e.StepBefore="stepBefore",e))(b||{}),y=(e=>(e.Linear="linear",e.Log="log",e.Ordinal="ordinal",e.Symlog="symlog",e))(y||{}),w=(e=>(e.Hue="hue",e.None="none",e.Opacity="opacity",e.Scheme="scheme",e))(w||{}),S=(e=>(e.None="none",e.Normal="normal",e.Percent="percent",e))(S||{}),_=(e=>(e[e.After=1]="After",e[e.Before=-1]="Before",e[e.Center=0]="Center",e))(_||{}),x=(e=>(e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical",e))(x||{}),O=(e=>(e[e.Down=-1]="Down",e[e.Left=-1]="Left",e[e.Right=1]="Right",e[e.Up=1]="Up",e))(O||{});var A=(e=>(e.Area="area",e.Dashed="dashed",e.DashedAndArea="dashed+area",e.Line="line",e.LineAndArea="line+area",e.Off="off",e.Series="series",e))(A||{}),R=(e=>(e.Hidden="hidden",e.List="list",e.Table="table",e))(R||{});var E=(e=>(e.Auto="auto",e.Horizontal="horizontal",e.Vertical="vertical",e))(E||{});var k=(e=>(e.Background="background",e.BackgroundSolid="background_solid",e.None="none",e.Value="value",e))(k||{}),C=(e=>(e.Area="area",e.Line="line",e.None="none",e))(C||{}),I=(e=>(e.Auto="auto",e.Center="center",e))(I||{}),P=(e=>(e.Auto="auto",e.Name="name",e.None="none",e.Value="value",e.ValueAndName="value_and_name",e))(P||{}),M=(e=>(e.Inverted="inverted",e.SameAsValue="same_as_value",e.Standard="standard",e))(M||{}),T=(e=>(e.Multi="multi",e.None="none",e.Single="single",e))(T||{}),N=(e=>(e.Ascending="asc",e.Descending="desc",e.None="none",e))(N||{});var D=(e=>(e.Basic="basic",e.Gradient="gradient",e.Lcd="lcd",e))(D||{}),F=(e=>(e.Color="color",e.Hidden="hidden",e.Text="text",e))(F||{}),j=(e=>(e.Auto="auto",e.Hidden="hidden",e.Left="left",e.Top="top",e))(j||{}),L=(e=>(e.Auto="auto",e.Manual="manual",e))(L||{}),V=(e=>(e.Actions="actions",e.Auto="auto",e.BasicGauge="basic",e.ColorBackground="color-background",e.ColorBackgroundSolid="color-background-solid",e.ColorText="color-text",e.Custom="custom",e.DataLinks="data-links",e.Gauge="gauge",e.Geo="geo",e.GradientGauge="gradient-gauge",e.Image="image",e.JSONView="json-view",e.LcdGauge="lcd-gauge",e.Markdown="markdown",e.Pill="pill",e.Sparkline="sparkline",e))(V||{}),z=(e=>(e.Basic="basic",e.Gradient="gradient",e))(z||{}),B=(e=>(e.CSV="csv",e.CustomQueryParam="customqueryparam",e.Date="date",e.Distributed="distributed",e.DoubleQuote="doublequote",e.Glob="glob",e.HTML="html",e.JSON="json",e.Join="join",e.Lucene="lucene",e.PercentEncode="percentencode",e.Pipe="pipe",e.QueryParam="queryparam",e.Raw="raw",e.Regex="regex",e.SQLString="sqlstring",e.SingleQuote="singlequote",e.Text="text",e.UriEncode="uriencode",e))(B||{}),U=(e=>(e.exact="exact",e.none="none",e.numbers="numbers",e.signature="signature",e))(U||{}),W=(e=>(e.EQ="eq",e.GT="gt",e.GTE="gte",e.LT="lt",e.LTE="lte",e.NEQ="neq",e))(W||{}),G=(e=>(e.Auto="auto",e.Lg="lg",e.Md="md",e.Sm="sm",e))(G||{}),H=(e=>(e.Auto="auto",e.Bottom="bottom",e.Left="left",e.Right="right",e.Top="top",e))(H||{});const q={align:"auto",inspect:!1,wrapHeaderText:!1,cellOptions:{type:V.Auto}};var $=(e=>(e.NotStarted="NotStarted",e.Loading="Loading",e.Streaming="Streaming",e.Done="Done",e.Error="Error",e))($||{});var K=(e=>(e[e.never=0]="never",e[e.onDashboardLoad=1]="onDashboardLoad",e[e.onTimeRangeChanged=2]="onTimeRangeChanged",e))(K||{}),Q=(e=>(e[e.alphabeticalAsc=1]="alphabeticalAsc",e[e.alphabeticalCaseInsensitiveAsc=5]="alphabeticalCaseInsensitiveAsc",e[e.alphabeticalCaseInsensitiveDesc=6]="alphabeticalCaseInsensitiveDesc",e[e.alphabeticalDesc=2]="alphabeticalDesc",e[e.disabled=0]="disabled",e[e.naturalAsc=7]="naturalAsc",e[e.naturalDesc=8]="naturalDesc",e[e.numericalAsc=3]="numericalAsc",e[e.numericalDesc=4]="numericalDesc",e))(Q||{});var Y=(e=>(e.ContinuousBlPu="continuous-BlPu",e.ContinuousBlYlRd="continuous-BlYlRd",e.ContinuousBlues="continuous-blues",e.ContinuousGrYlRd="continuous-GrYlRd",e.ContinuousGreens="continuous-greens",e.ContinuousPurples="continuous-purples",e.ContinuousRdYlGr="continuous-RdYlGr",e.ContinuousReds="continuous-reds",e.ContinuousYlBl="continuous-YlBl",e.ContinuousYlRd="continuous-YlRd",e.Fixed="fixed",e.PaletteClassic="palette-classic",e.PaletteClassicByName="palette-classic-by-name",e.Shades="shades",e.Thresholds="thresholds",e))(Y||{});var Z=(e=>(e.Absolute="absolute",e.Percentage="percentage",e))(Z||{});var J=(e=>(e.RangeToText="range",e.RegexToText="regex",e.SpecialValue="special",e.ValueToText="value",e))(J||{}),X=(e=>(e.Empty="empty",e.False="false",e.NaN="nan",e.Null="null",e.NullAndNan="null+nan",e.True="true",e))(X||{});var ee=(e=>(e[e.Crosshair=1]="Crosshair",e[e.Off=0]="Off",e[e.Tooltip=2]="Tooltip",e))(ee||{});var te=(e=>(e[e.dontHide=0]="dontHide",e[e.hideLabel=1]="hideLabel",e[e.hideVariable=2]="hideVariable",e[e.inControlsMenu=3]="inControlsMenu",e))(te||{});const re={editable:!0,fiscalYearStartMonth:0,graphTooltip:0,links:[],panels:[],schemaVersion:42,tags:[],timezone:"browser"},ne={allowCustomValue:!0,includeAll:!1,multi:!1,options:[],skipUrlSync:!1,staticOptions:[]},ae={hidden:!1,quick_ranges:[],refresh_intervals:["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]},oe={links:[],repeatDirection:"h",targets:[],transformations:[],transparent:!1},ie={collapsed:!1,panels:[]},se={actions:[],links:[],mappings:[]},le={overrides:[]},ue={id:""},ce={builtIn:0,enable:!0,hide:!1},de={list:[]};t.AxisColorMode=h,t.AxisPlacement=p,t.BarAlignment=_,t.BarGaugeDisplayMode=D,t.BarGaugeNamePlacement=j,t.BarGaugeSizing=L,t.BarGaugeValueMode=F,t.BigValueColorMode=k,t.BigValueGraphMode=C,t.BigValueJustifyMode=I,t.BigValueTextMode=P,t.ComparisonOperation=W,t.ConnectionDirection=s,t.DashboardCursorSync=ee,t.DataTopic=r,t.DirectionDimensionMode=l,t.FieldColorModeId=Y,t.FrameGeometrySourceMode=u,t.GraphDrawStyle=v,t.GraphGradientMode=w,t.GraphThresholdsStyleMode=A,t.GraphTransform=g,t.HeatmapCalculationMode=c,t.HeatmapCellLayout=d,t.LegendDisplayMode=R,t.LineInterpolation=b,t.LoadingState=$,t.LogsDedupStrategy=U,t.LogsSortOrder=f,t.MappingType=J,t.PercentChangeColorMode=M,t.ResourceDimensionMode=i,t.ScalarDimensionMode=a,t.ScaleDimensionMode=n,t.ScaleDirection=O,t.ScaleDistribution=y,t.ScaleOrientation=x,t.SortOrder=N,t.SpecialValueMatch=X,t.StackingMode=S,t.TableCellBackgroundDisplayMode=z,t.TableCellDisplayMode=V,t.TableCellHeight=G,t.TableCellTooltipPlacement=H,t.TextDimensionMode=o,t.ThresholdsMode=Z,t.TooltipDisplayMode=T,t.VariableFormatID=B,t.VariableHide=te,t.VariableRefresh=K,t.VariableSort=Q,t.VisibilityMode=m,t.VizOrientation=E,t.defaultAction={variables:[]},t.defaultAnnotationContainer=de,t.defaultAnnotationPanelFilter={exclude:!1,ids:[]},t.defaultAnnotationQuery=ce,t.defaultAnnotationTarget={tags:[]},t.defaultDashboard=re,t.defaultDashboardCursorSync=0,t.defaultDashboardLink={asDropdown:!1,includeVars:!1,keepTime:!1,tags:[],targetBlank:!1},t.defaultFetchOptions={headers:[],queryParams:[]},t.defaultFieldConfig=se,t.defaultFieldConfigSource=le,t.defaultGridPos={h:9,w:12,x:0,y:0},t.defaultInfinityOptions={headers:[],queryParams:[]},t.defaultLineStyle={dash:[]},t.defaultMatcherConfig=ue,t.defaultOptionsWithTimezones={timezone:[]},t.defaultPanel=oe,t.defaultReduceDataOptions={calcs:[]},t.defaultRowPanel=ie,t.defaultTableFieldOptions=q,t.defaultTableFooterOptions={reducers:[]},t.defaultThresholdsConfig={steps:[]},t.defaultTimePickerConfig=ae,t.defaultTimeZone="browser",t.defaultVariableModel=ne,t.defaultVizLegendOptions={calcs:[]}},46914:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var o=r(52850),i=Array.isArray;t.mapOneOrManyArgs=function(e){return o.map(function(t){return function(e,t){return i(t)?e.apply(void 0,a([],n(t))):e(t)}(e,t)})}},47217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var n=r(34230),a=r(82792);t.isEmpty=function(){return n.operate(function(e,t){e.subscribe(a.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}},47372:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},47762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=u,t.addEvent=function(e,t,r,n){if(!e)return;const a={capture:!0,...n};e.addEventListener?e.addEventListener(t,r,a):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&u(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const r=s(e,t,"px");return{[(0,a.browserPrefixToKey)("transform",a.default)]:r}},t.createSVGTransform=function(e,t){return s(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,n.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,n.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=s,t.innerHeight=function(e){let t=e.clientHeight;const r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,n.int)(r.paddingTop),t-=(0,n.int)(r.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,n.int)(r.paddingLeft),t-=(0,n.int)(r.paddingRight),t},t.matchesSelector=i,t.matchesSelectorAndParentsTo=function(e,t,r){let n=e;do{if(i(n,t))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1},t.offsetXYFromParent=function(e,t,r){const n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),a=(e.clientX+t.scrollLeft-n.left)/r,o=(e.clientY+t.scrollTop-n.top)/r;return{x:a,y:o}},t.outerHeight=function(e){let t=e.clientHeight;const r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,n.int)(r.borderTopWidth),t+=(0,n.int)(r.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,n.int)(r.borderLeftWidth),t+=(0,n.int)(r.borderRightWidth),t},t.removeClassName=c,t.removeEvent=function(e,t,r,n){if(!e)return;const a={capture:!0,...n};e.removeEventListener?e.removeEventListener(t,r,a):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null},t.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{l(e)}):l(e)};var n=r(45025),a=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(a=t?n:r){if(a.has(e))return a.get(e);a.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?a(i,t,o):i[t]=e[t]);return i}(e,t)}(r(28639));let o="";function i(e,t){return o||(o=(0,n.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,n.isFunction)(e[t])})),!!(0,n.isFunction)(e[o])&&e[o](t)}function s(e,t,r){let{x:n,y:a}=e,o=`translate(${n}${r},${a}${r})`;if(t){o=`translate(${`${"string"==typeof t.x?t.x:t.x+r}`}, ${`${"string"==typeof t.y?t.y:t.y+r}`})`+o}return o}function l(e){if(e)try{if(e.body&&c(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function u(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function c(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}},48844:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var o=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return a(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(86322).Subject);t.BehaviorSubject=o},48896:(e,t,r)=>{"use strict";var n=r(56636);n.__importDefault(r(14782)).default,n.__importDefault(r(35450)).default,n.__importDefault(r(68577)).default},48926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var n=r(17046),a=r(34230),o=r(82792);function i(){return new n.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=i),a.operate(function(t,r){var n=!1;t.subscribe(o.createOperatorSubscriber(r,function(e){n=!0,r.next(e)},function(){return n?r.complete():r.error(e())}))})}},49925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var n=r(92329),a=r(93639);t.isIterable=function(e){return a.isFunction(null==e?void 0:e[n.iterator])}},50191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var n=r(34230),a=r(83598),o=r(82792);t.audit=function(e){return n.operate(function(t,r){var n=!1,i=null,s=null,l=!1,u=function(){if(null==s||s.unsubscribe(),s=null,n){n=!1;var e=i;i=null,r.next(e)}l&&r.complete()},c=function(){s=null,l&&r.complete()};t.subscribe(o.createOperatorSubscriber(r,function(t){n=!0,i=t,s||a.innerFrom(e(t)).subscribe(s=o.createOperatorSubscriber(r,u,c))},function(){l=!0,(!n||!s||s.closed)&&r.complete()}))})}},51160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var n=r(21492),a=r(34230),o=r(82792);t.debounceTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),a.operate(function(r,n){var a=null,i=null,s=null,l=function(){if(a){a.unsubscribe(),a=null;var e=i;i=null,n.next(e)}};function u(){var r=s+e,o=t.now();if(o<r)return a=this.schedule(void 0,r-o),void n.add(a);l()}r.subscribe(o.createOperatorSubscriber(n,function(r){i=r,s=t.now(),a||(a=t.schedule(u,e),n.add(a))},function(){l(),n.complete()},void 0,function(){i=a=null}))})}},51399:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Filtreyi {{keyLabel}} anahtarıyla düzenle","managed-filter":"{{origin}} yönetimli filtre","non-applicable":"","remove-filter-with-key":"Filtreyi {{keyLabel}} anahtarıyla kaldır"},"adhoc-filters-combobox":{"remove-filter-value":"Filtre değerini kaldır - {{itemLabel}}","use-custom-value":"Özel değer kullan: {{itemLabel}}"},"fallback-page":{content:"Buraya bir bağlantı aracılığıyla ulaştıysanız uygulamada bir hata olabilir.",subTitle:"URL hiçbir sayfayla eşleşmedi.",title:"Bulunamadı"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Sahneyi daralt","expand-button-label":"Sahneyi genişlet","remove-button-label":"Sahneyi kaldır"},"scene-debugger":{"object-details":"Nesne ayrıntıları","scene-graph":"Sahne grafiği","title-scene-debugger":"Sahne hata ayıklayıcı"},"scene-grid-row":{"collapse-row":"Satırı daralt","expand-row":"Satırı genişlet"},"scene-refresh-picker":{"text-cancel":"İptal","text-refresh":"Yenile","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Karşılaştırma","button-tooltip":"Zaman dilimi karşılaştırmasını etkinleştir"},splitter:{"aria-label-pane-resize-widget":"Bölme yeniden boyutlandırma widget'ı"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Başlık"}},"viz-panel-explore-button":{explore:"Keşfet"},"viz-panel-renderer":{"loading-plugin-panel":"Eklenti paneli yükleniyor...","panel-plugin-has-no-panel-component":"Panel eklentisinde panel bileşeni yok"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Tek bir panelde çok fazla seri işlenmesi, performansı etkileyebilir ve verilerin okunmasını zorlaştırabilir.","warning-message":"Sadece {{seriesLimit}} serileri gösteriliyor"}},utils:{"controls-label":{"tooltip-remove":"Kaldır"},"loading-indicator":{"content-cancel-query":"Sorguyu iptal et"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Filtre işlecini düzenle"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Filtre ekle","title-add-filter":"Filtre ekle"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Filtreyi kaldır","key-select":{"placeholder-select-label":"Etiket seçin"},"label-select-label":"Etiket seçin","title-remove-filter":"Filtreyi kaldır","value-select":{"placeholder-select-value":"Değer seçin"}},"data-source-variable":{label:{default:"varsayılan"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"temizle",tooltip:"Bu panoda varsayılan olarak uygulanır. Düzenlenirse diğer panolara taşınır.","tooltip-restore-groupby-set-by-this-dashboard":"Bu pano tarafından ayarlanmış groupby kümesini geri yükleyin."},"format-registry":{formats:{description:{"commaseparated-values":"Virgülle ayrılmış değerler","double-quoted-values":"Çift tırnak içindeki değerler","format-date-in-different-ways":"Tarihi farklı şekillerde biçimlendirin","format-multivalued-variables-using-syntax-example":"Çok değerli değişkenleri glob söz dizimi kullanarak biçimlendirin (örneğin {value1,value2}).","html-escaping-of-values":"Değerlerin HTML kaçış karakteriyle yazılması gerekir","join-values-with-a-comma":"","json-stringify-value":"JSON stringify değeri","keep-value-as-is":"Değeri olduğu gibi tut","multiple-values-are-formatted-like-variablevalue":"Birden fazla değer, değişken=değer biçiminde biçimlendirilir","single-quoted-values":"Tek tırnak içindeki değerler","useful-escaping-values-taking-syntax-characters":"URL'ye uygun hâle getirmek için değerlerin kaçış karakteriyle yazılmasında kullanılır; URI söz dizimindeki karakterleri dikkate alır","useful-for-url-escaping-values":"URL'ye uygun hâle getirmek için değerlerin kaçış karakteriyle yazılmasında kullanılır","values-are-separated-by-character":'Değerler "|" karakteriyle ayrılır'}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Seçiciye göre grupla","placeholder-group-by-label":"Etikete göre grupla"},"interval-variable":{"placeholder-select-value":"Değer seçin"},"loading-options-placeholder":{"loading-options":"Seçenekler yükleniyor..."},"multi-value-apply-button":{apply:"Uygula"},"no-options-placeholder":{"no-options-found":"Seçenek bulunamadı"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Etiketler alınırken bir hata oluştu. Yeniden denemek için tıklayın"},"test-object-with-variable-dependency":{title:{hello:"Merhaba"}},"test-variable":{text:{text:"Metin"}},"variable-value-input":{"placeholder-enter-value":"Değer girin"},"variable-value-select":{"placeholder-select-value":"Değer seçin"}}}}},51540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var n=r(34230);t.finalize=function(e){return n.operate(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}},51623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var n=r(93697);t.EMPTY=new n.Observable(function(e){return e.complete()}),t.empty=function(e){return e?function(e){return new n.Observable(function(t){return e.schedule(function(){return t.complete()})})}(e):t.EMPTY}},51629:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var n=r(34230),a=r(87023),o=r(82792),i=r(83598);t.debounce=function(e){return n.operate(function(t,r){var n=!1,s=null,l=null,u=function(){if(null==l||l.unsubscribe(),l=null,n){n=!1;var e=s;s=null,r.next(e)}};t.subscribe(o.createOperatorSubscriber(r,function(t){null==l||l.unsubscribe(),n=!0,s=t,l=o.createOperatorSubscriber(r,u,a.noop),i.innerFrom(e(t)).subscribe(l)},function(){u(),r.complete()},void 0,function(){s=l=null}))})}},51970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var n=r(93639);t.isPromise=function(e){return n.isFunction(null==e?void 0:e.then)}},52476:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var n=r(20073),a=r(34230);t.reduce=function(e,t){return a.operate(n.scanInternals(e,t,arguments.length>=2,!1,!0))}},52628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var n=r(83598),a=r(8889),o=r(82792);t.mergeInternals=function(e,t,r,i,s,l,u,c){var d=[],f=0,p=0,h=!1,m=function(){!h||d.length||f||t.complete()},v=function(e){return f<i?g(e):d.push(e)},g=function(e){l&&t.next(e),f++;var c=!1;n.innerFrom(r(e,p++)).subscribe(o.createOperatorSubscriber(t,function(e){null==s||s(e),l?v(e):t.next(e)},function(){c=!0},void 0,function(){if(c)try{f--;for(var e=function(){var e=d.shift();u?a.executeSchedule(t,u,function(){return g(e)}):g(e)};d.length&&f<i;)e();m()}catch(e){t.error(e)}}))};return e.subscribe(o.createOperatorSubscriber(t,v,function(){h=!0,m()})),function(){null==c||c()}}},52742:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var o=r(18346);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.combineLatest.apply(void 0,a([],n(e)))}},52850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var n=r(34230),a=r(82792);t.map=function(e,t){return n.operate(function(r,n){var o=0;r.subscribe(a.createOperatorSubscriber(n,function(r){n.next(e.call(t,r,o++))}))})}},52868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var n=f(r(13563)),a=f(r(12157)),o=f(r(81416)),i=f(r(92735)),s=f(r(56535)),l=f(r(73592)),u=f(r(59396)),c=f(r(80009)),d=f(r(27847));function f(e){return e&&e.__esModule?e:{default:e}}},52964:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return a(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,a=t._value,o=t.thrownError,i=t.isStopped,s=t._isComplete;r?e.error(o):(i||s)&&(n&&e.next(a),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(r(86322).Subject);t.AsyncSubject=o},53113:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFieldConfig:()=>i,defaultOptions:()=>o,pluginVersion:()=>a});var n=r(33300);const a="12.3.1",o={bucketCount:30,bucketOffset:0},i={fillOpacity:80,gradientMode:n.G.None,lineWidth:1}},53201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var n=r(98156),a=r(31380),o=r(35444),i=r(76719),s=r(25755),l=r(32159),u=r(51970),c=r(63425),d=r(49925),f=r(89585),p=r(24431),h=r(91468),m=r(82690);t.scheduled=function(e,t){if(null!=e){if(l.isInteropObservable(e))return n.scheduleObservable(e,t);if(c.isArrayLike(e))return o.scheduleArray(e,t);if(u.isPromise(e))return a.schedulePromise(e,t);if(f.isAsyncIterable(e))return s.scheduleAsyncIterable(e,t);if(d.isIterable(e))return i.scheduleIterable(e,t);if(h.isReadableStreamLike(e))return m.scheduleReadableStreamLike(e,t)}throw p.createInvalidObservableTypeError(e)}},53343:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Editar filtro com a chave {{keyLabel}}","managed-filter":"Filtro gerido de {{origin}}","non-applicable":"","remove-filter-with-key":"Remover filtro com a chave {{keyLabel}} "},"adhoc-filters-combobox":{"remove-filter-value":"Remover o valor do filtro - {{itemLabel}} ","use-custom-value":"Utilizar valor personalizado: {{itemLabel}}"},"fallback-page":{content:"Se chegou aqui através de um link, pode existir um erro nesta aplicação.",subTitle:"O URL não corresponde a nenhuma página",title:"Não encontrado"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Recolher cena","expand-button-label":"Expandir cena","remove-button-label":"Remover cena"},"scene-debugger":{"object-details":"Detalhes do objeto","scene-graph":"Gráfico de cena","title-scene-debugger":"Depurador de cena"},"scene-grid-row":{"collapse-row":"Recolher linha","expand-row":"Expandir linha"},"scene-refresh-picker":{"text-cancel":"Cancelar","text-refresh":"Atualizar","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Comparação","button-tooltip":"Ativar a comparação de intervalos de tempo"},splitter:{"aria-label-pane-resize-widget":"Widget de redimensionamento de painel"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Título"}},"viz-panel-explore-button":{explore:"Explorar"},"viz-panel-renderer":{"loading-plugin-panel":"A carregar o painel de plugins...","panel-plugin-has-no-panel-component":"O plugin do painel não tem componente de painel"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"A renderização de demasiadas séries num único painel pode afetar o desempenho e dificultar a leitura dos dados. ","warning-message":"A mostrar apenas {{seriesLimit}} séries"}},utils:{"controls-label":{"tooltip-remove":"Remover"},"loading-indicator":{"content-cancel-query":"Cancelar consulta"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Editar operador de filtro"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Adicionar filtro","title-add-filter":"Adicionar filtro"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Remover filtro","key-select":{"placeholder-select-label":"Selecione etiqueta"},"label-select-label":"Selecione etiqueta","title-remove-filter":"Remover filtro","value-select":{"placeholder-select-value":"Selecionar valor"}},"data-source-variable":{label:{default:"padrão"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"limpar",tooltip:"Aplicado por predefinição neste painel de controlo. Em caso de edição, é transferido para outros painéis de controlo.","tooltip-restore-groupby-set-by-this-dashboard":"Restaurar grupo definido por este painel de controlo."},"format-registry":{formats:{description:{"commaseparated-values":"Valores separados por vírgulas","double-quoted-values":"Valores entre aspas duplas","format-date-in-different-ways":"Formatar a data de diferentes formas","format-multivalued-variables-using-syntax-example":"Formatar variáveis de valores múltiplos com a sintaxe glob, exemplo {value1,value2}","html-escaping-of-values":"Escape de valores HTML","join-values-with-a-comma":"","json-stringify-value":"Valor no formato JSON (stringify)","keep-value-as-is":"Manter o valor como está","multiple-values-are-formatted-like-variablevalue":"Os valores múltiplos são formatados como variável=valor","single-quoted-values":"Valores entre aspas simples","useful-escaping-values-taking-syntax-characters":"Útil para valores de escape de URL, tendo em conta carateres de sintaxe URI","useful-for-url-escaping-values":"Útil para valores de escape de URL","values-are-separated-by-character":"Os valores são separados pelo caráter |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Agrupar por seletor","placeholder-group-by-label":"Agrupar por etiqueta"},"interval-variable":{"placeholder-select-value":"Selecionar valor"},"loading-options-placeholder":{"loading-options":"A carregar opções..."},"multi-value-apply-button":{apply:"Aplicar"},"no-options-placeholder":{"no-options-found":"Nenhuma opção encontrada"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Ocorreu um erro ao obter as etiquetas. Clique para tentar novamente"},"test-object-with-variable-dependency":{title:{hello:"Olá"}},"test-variable":{text:{text:"Texto"}},"variable-value-input":{"placeholder-enter-value":"Introduza o valor"},"variable-value-select":{"placeholder-select-value":"Selecionar valor"}}}}},54082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var n=r(23231);t.combineAll=n.combineLatestAll},54165:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.default=function(e){var t;return t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,t);var r,o,l=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(o){var a=h(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,e)});function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(p(e=l.call.apply(l,[this].concat(r))),"state",{width:1280}),m(p(e),"elementRef",a.createRef()),m(p(e),"mounted",!1),m(p(e),"onWindowResize",function(){if(e.mounted){var t=e.elementRef.current;t instanceof HTMLElement&&t.offsetWidth&&e.setState({width:t.offsetWidth})}}),e}return function(e,t,r){t&&d(e.prototype,t);r&&d(e,r);Object.defineProperty(e,"prototype",{writable:!1})}(u,[{key:"componentDidMount",value:function(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),this.onWindowResize()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize)}},{key:"render",value:function(){var t=this.props,r=t.measureBeforeMount,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(t,s);return r&&!this.mounted?a.createElement("div",{className:(0,i.default)(this.props.className,v),style:this.props.style,ref:this.elementRef}):a.createElement(e,c({innerRef:this.elementRef},n,this.state))}}]),u}(a.Component),m(t,"defaultProps",{measureBeforeMount:!1}),m(t,"propTypes",{measureBeforeMount:o.default.bool}),t};var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(a,i,s):a[i]=e[i]}a.default=e,r&&r.set(e,a);return a}(r(85959)),o=l(r(23108)),i=l(r(82767)),s=["measureBeforeMount"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v="react-grid-layout"},55079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var n=r(86322),a=r(21826),o=r(99210);t.publish=function(e){return e?function(t){return o.connect(e)(t)}:function(e){return a.multicast(new n.Subject)(e)}}},55117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var n=r(34230),a=r(82792);t.defaultIfEmpty=function(e){return n.operate(function(t,r){var n=!1;t.subscribe(a.createOperatorSubscriber(r,function(e){n=!0,r.next(e)},function(){n||r.next(e),r.complete()}))})}},55821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var n=r(48844),a=r(59025);t.publishBehavior=function(e){return function(t){var r=new n.BehaviorSubject(e);return new a.ConnectableObservable(t,function(){return r})}}},55955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var n=r(44757);function a(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e)},t.pipeFromArray=a},56137:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Editar filtro con la clave {{keyLabel}}","managed-filter":"Filtro gestionado de {{origin}}","non-applicable":"","remove-filter-with-key":"Eliminar filtro con la clave {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Eliminar valor del filtro: {{itemLabel}}","use-custom-value":"Usar valor personalizado: {{itemLabel}}"},"fallback-page":{content:"Si ha llegado hasta aquí mediante un enlace, es posible que haya un error en esta aplicación.",subTitle:"La URL no coincide con ninguna página",title:"No se ha encontrado"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Contraer escena","expand-button-label":"Expandir escena","remove-button-label":"Eliminar escena"},"scene-debugger":{"object-details":"Detalles del objeto","scene-graph":"Gráfico de la escena","title-scene-debugger":"Depurador de escenas"},"scene-grid-row":{"collapse-row":"Contraer fila","expand-row":"Expandir fila"},"scene-refresh-picker":{"text-cancel":"Cancelar","text-refresh":"Actualizar","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Comparación","button-tooltip":"Habilitar comparación de intervalos de tiempo"},splitter:{"aria-label-pane-resize-widget":"Widget de cambio de tamaño del panel"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Título"}},"viz-panel-explore-button":{explore:"Explorar"},"viz-panel-renderer":{"loading-plugin-panel":"Cargando panel de plugins...","panel-plugin-has-no-panel-component":"El plugin del panel no tiene ningún componente de panel"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Representar demasiadas series en un solo panel puede afectar al rendimiento y dificultar la lectura de los datos.","warning-message":"Mostrando solo {{seriesLimit}} serie(s)"}},utils:{"controls-label":{"tooltip-remove":"Eliminar"},"loading-indicator":{"content-cancel-query":"Cancelar consulta"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Editar operador de filtro"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Añadir filtro","title-add-filter":"Añadir filtro"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Eliminar filtro","key-select":{"placeholder-select-label":"Seleccionar etiqueta"},"label-select-label":"Seleccionar etiqueta","title-remove-filter":"Eliminar filtro","value-select":{"placeholder-select-value":"Seleccionar valor"}},"data-source-variable":{label:{default:"predeterminada"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"borrar",tooltip:"Aplicado de forma predeterminada en este dashboard. Si se edita, se transfiere a otros dashboards.","tooltip-restore-groupby-set-by-this-dashboard":"Restaura la función groupby definida por este dashboard."},"format-registry":{formats:{description:{"commaseparated-values":"Valores separados por comas","double-quoted-values":"Valores entre comillas dobles","format-date-in-different-ways":"Dar formato a la fecha de diferentes maneras","format-multivalued-variables-using-syntax-example":"Dar formato a las variables de múltiples valores con la sintaxis glob, por ejemplo, {value1,value2}","html-escaping-of-values":"Escape HTML de valores","join-values-with-a-comma":"","json-stringify-value":"Valor de JSON stringify","keep-value-as-is":"Mantener el valor tal cual","multiple-values-are-formatted-like-variablevalue":"Los valores múltiples tienen el formato variable=valor","single-quoted-values":"Valores entre comillas simples","useful-escaping-values-taking-syntax-characters":"Útil para valores de escape URL, utilizando caracteres de sintaxis URI","useful-for-url-escaping-values":"Útil para valores de escape URL","values-are-separated-by-character":"Los valores están separados por el carácter |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Agrupar por selector","placeholder-group-by-label":"Agrupar por etiqueta"},"interval-variable":{"placeholder-select-value":"Seleccionar valor"},"loading-options-placeholder":{"loading-options":"Cargando opciones..."},"multi-value-apply-button":{apply:"Aplicar"},"no-options-placeholder":{"no-options-found":"No se han encontrado opciones"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Se ha producido un error al recuperar las etiquetas. Haga clic para volver a intentarlo"},"test-object-with-variable-dependency":{title:{hello:"Hola"}},"test-variable":{text:{text:"Texto"}},"variable-value-input":{"placeholder-enter-value":"Introducir valor"},"variable-value-select":{"placeholder-select-value":"Seleccionar valor"}}}}},56465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=r},56535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="00000000-0000-0000-0000-000000000000"},56636:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>D,__assign:()=>o,__asyncDelegator:()=>A,__asyncGenerator:()=>O,__asyncValues:()=>R,__await:()=>x,__awaiter:()=>h,__classPrivateFieldGet:()=>M,__classPrivateFieldIn:()=>N,__classPrivateFieldSet:()=>T,__createBinding:()=>v,__decorate:()=>s,__disposeResources:()=>j,__esDecorate:()=>u,__exportStar:()=>g,__extends:()=>a,__generator:()=>m,__importDefault:()=>P,__importStar:()=>I,__makeTemplateObject:()=>E,__metadata:()=>p,__param:()=>l,__propKey:()=>d,__read:()=>y,__rest:()=>i,__rewriteRelativeImportExtension:()=>L,__runInitializers:()=>c,__setFunctionName:()=>f,__spread:()=>w,__spreadArray:()=>_,__spreadArrays:()=>S,__values:()=>b,default:()=>V});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function s(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,a,o){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var h={};for(var m in n)h[m]="access"===m?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(i(e||null))};var v=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[u],h);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(s=i(v.get))&&(d.get=s),(s=i(v.set))&&(d.set=s),(s=i(v.init))&&a.unshift(s)}else(s=i(v))&&("field"===l?a.unshift(s):d[u]=s)}c&&Object.defineProperty(c,n.name,d),f=!0}function c(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,r,n){return new(r||(r=Promise))(function(a,o){function i(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,s)}l((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var v=Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function S(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var o=arguments[t],i=0,s=o.length;i<s;i++,a++)n[a]=o[i];return n}function _(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function O(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,a=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),i("next"),i("throw"),i("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function i(e,t){a[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=a[e](t)).value instanceof x?Promise.resolve(r.value.v).then(l,u):c(o[0][2],r)}catch(e){c(o[0][3],e)}var r}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function A(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:!1}:a?a(t):t}:a}}function R(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,a){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,a,(t=e[r](t)).done,t.value)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},C=function(e){return C=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},C(e)};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=C(e),n=0;n<r.length;n++)"default"!==r[n]&&v(t,e,r[n]);return k(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function M(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,a;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(a=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");a&&(n=function(){try{a.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function j(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function a(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(a);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(a,function(e){return t(e),a()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function L(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,a,o){return r?t?".jsx":".js":!n||a&&o?n+a+"."+o.toLowerCase()+"js":e}):e}const V={__extends:a,__assign:o,__rest:i,__decorate:s,__param:l,__esDecorate:u,__runInitializers:c,__propKey:d,__setFunctionName:f,__metadata:p,__awaiter:h,__generator:m,__createBinding:v,__exportStar:g,__values:b,__read:y,__spread:w,__spreadArrays:S,__spreadArray:_,__await:x,__asyncGenerator:O,__asyncDelegator:A,__asyncValues:R,__makeTemplateObject:E,__importStar:I,__importDefault:P,__classPrivateFieldGet:M,__classPrivateFieldSet:T,__classPrivateFieldIn:N,__addDisposableResource:D,__disposeResources:j,__rewriteRelativeImportExtension:L}},56965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(a=t?n:r){if(a.has(e))return a.get(e);a.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?a(i,t,o):i[t]=e[t]);return i}(e,t)}(r(85959)),a=c(r(23108)),o=c(r(48398)),i=r(47762),s=r(19631),l=r(45025),u=c(r(2013));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let h=p;class m extends n.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const n=(0,i.getTouchIdentifier)(e);this.touchIdentifier=n;const a=(0,s.getControlPosition)(e,n,this);if(null==a)return;const{x:o,y:l}=a,c=(0,s.createCoreData)(this,o,l);(0,u.default)("DraggableCore: handleDragStart: %j",c),(0,u.default)("calling",this.props.onStart);!1!==this.props.onStart(e,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=l,(0,i.addEvent)(r,h.move,this.handleDrag),(0,i.addEvent)(r,h.stop,this.handleDragStop))}),d(this,"handleDrag",e=>{const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:r,y:n}=t;if(Array.isArray(this.props.grid)){let e=r-this.lastX,t=n-this.lastY;if([e,t]=(0,s.snapToGrid)(this.props.grid,e,t),!e&&!t)return;r=this.lastX+e,n=this.lastY+t}const a=(0,s.createCoreData)(this,r,n);(0,u.default)("DraggableCore: handleDrag: %j",a);if(!1!==this.props.onDrag(e,a)&&!1!==this.mounted)this.lastX=r,this.lastY=n;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),d(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:r,y:n}=t;if(Array.isArray(this.props.grid)){let e=r-this.lastX||0,t=n-this.lastY||0;[e,t]=(0,s.snapToGrid)(this.props.grid,e,t),r=this.lastX+e,n=this.lastY+t}const a=(0,s.createCoreData)(this,r,n);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const o=this.findDOMNode();o&&this.props.enableUserSelectHack&&(0,i.scheduleRemoveUserSelectStyles)(o.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,o&&((0,u.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(o.ownerDocument,h.move,this.handleDrag),(0,i.removeEvent)(o.ownerDocument,h.stop,this.handleDragStop))}),d(this,"onMouseDown",e=>(h=p,this.handleDragStart(e))),d(this,"onMouseUp",e=>(h=p,this.handleDragStop(e))),d(this,"onTouchStart",e=>(h=f,this.handleDragStart(e))),d(this,"onTouchEnd",e=>(h=f,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,i.addEvent)(e,f.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,i.removeEvent)(t,p.move,this.handleDrag),(0,i.removeEvent)(t,f.move,this.handleDrag),(0,i.removeEvent)(t,p.stop,this.handleDragStop),(0,i.removeEvent)(t,f.stop,this.handleDragStop),(0,i.removeEvent)(e,f.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:o.default.findDOMNode(this)}render(){return n.cloneElement(n.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=m,d(m,"displayName","DraggableCore"),d(m,"propTypes",{allowAnyClick:a.default.bool,allowMobileScroll:a.default.bool,children:a.default.node.isRequired,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.default.arrayOf(a.default.number),handle:a.default.string,cancel:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),d(m,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},57177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var n=r(93697),a=r(83598),o=r(3526),i=r(82792);function s(e){return function(t){for(var r=[],n=function(n){r.push(a.innerFrom(e[n]).subscribe(i.createOperatorSubscriber(t,function(e){if(r){for(var a=0;a<r.length;a++)a!==n&&r[a].unsubscribe();r=null}t.next(e)})))},o=0;r&&!t.closed&&o<e.length;o++)n(o)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=o.argsOrArgArray(e)).length?a.innerFrom(e[0]):new n.Observable(s(e))},t.raceInit=s},57186:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Modifier le filtre ayant pour clé {{keyLabel}}","managed-filter":"Filtre géré {{origin}}","non-applicable":"","remove-filter-with-key":"Supprimer le filtre ayant pour clé {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Supprimer la valeur du filtre – {{itemLabel}}","use-custom-value":"Utiliser une valeur personnalisée : {{itemLabel}}"},"fallback-page":{content:"Si vous êtes arrivé ici via un lien, il se peut qu’il y ait un bug dans l’application.",subTitle:"L’URL ne correspond à aucune page",title:"Page introuvable"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Réduire la scène","expand-button-label":"Développer la scène","remove-button-label":"Supprimer la scène"},"scene-debugger":{"object-details":"Détails de l’objet","scene-graph":"Graphique de la scène","title-scene-debugger":"Débogueur de scène"},"scene-grid-row":{"collapse-row":"Réduire la ligne","expand-row":"Développer la ligne"},"scene-refresh-picker":{"text-cancel":"Annuler","text-refresh":"Actualiser","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Comparaison","button-tooltip":"Activer la comparaison d’intervalles"},splitter:{"aria-label-pane-resize-widget":"Widget de redimensionnement du panneau"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Titre"}},"viz-panel-explore-button":{explore:"Explorer"},"viz-panel-renderer":{"loading-plugin-panel":"Chargement du panneau du plugin…","panel-plugin-has-no-panel-component":"Le plugin de panneau ne contient aucun composant de panneau"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Le rendu d’un trop grand nombre de séries dans un seul panneau peut nuire aux performances et rendre les données plus difficiles à lire.","warning-message":"Affichage limité à {{seriesLimit}} séries"}},utils:{"controls-label":{"tooltip-remove":"Supprimer"},"loading-indicator":{"content-cancel-query":"Annuler la requête"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Modifier l’opérateur du filtre"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Ajouter un filtre","title-add-filter":"Ajouter un filtre"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Supprimer le filtre","key-select":{"placeholder-select-label":"Sélectionner une étiquette"},"label-select-label":"Sélectionner une étiquette","title-remove-filter":"Supprimer le filtre","value-select":{"placeholder-select-value":"Sélectionner une valeur"}},"data-source-variable":{label:{default:"par défaut"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"effacer",tooltip:"Appliqué par défaut dans ce tableau de bord. En cas de modification, il s’applique aussi aux autres tableaux de bord.","tooltip-restore-groupby-set-by-this-dashboard":"Restaurer le groupage défini par ce tableau de bord."},"format-registry":{formats:{description:{"commaseparated-values":"Valeurs séparées par des virgules","double-quoted-values":"Valeurs entre guillemets doubles","format-date-in-different-ways":"Formater la date de différentes façons","format-multivalued-variables-using-syntax-example":"Formater les variables à valeurs multiples avec la syntaxe glob : exemple {value1,value2}","html-escaping-of-values":"Échappement HTML des valeurs","join-values-with-a-comma":"","json-stringify-value":"Valeur au format JSON (stringify)","keep-value-as-is":"Conserver la valeur telle quelle","multiple-values-are-formatted-like-variablevalue":"Plusieurs valeurs sont formatées ainsi : variable=valeur","single-quoted-values":"Valeurs entre guillemets simples","useful-escaping-values-taking-syntax-characters":"Utile pour l’échappement des valeurs dans les URL en tenant compte des caractères de syntaxe URI","useful-for-url-escaping-values":"Utile pour l’échappement des valeurs dans les URL","values-are-separated-by-character":"Les valeurs sont séparées par le caractère « | »"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Sélecteur de regroupement","placeholder-group-by-label":"Regrouper par étiquette"},"interval-variable":{"placeholder-select-value":"Sélectionner une valeur"},"loading-options-placeholder":{"loading-options":"Chargement des options..."},"multi-value-apply-button":{apply:"Appliquer"},"no-options-placeholder":{"no-options-found":"Aucune option trouvée"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Une erreur est survenue lors de la récupération des étiquettes. Cliquez pour réessayer"},"test-object-with-variable-dependency":{title:{hello:"Bonjour"}},"test-variable":{text:{text:"Texte"}},"variable-value-input":{"placeholder-enter-value":"Saisir une valeur"},"variable-value-select":{"placeholder-select-value":"Sélectionner une valeur"}}}}},57231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var n=r(21492),a=r(99939),o=r(96471);t.timeoutWith=function(e,t,r){var i,s,l;if(r=null!=r?r:n.async,a.isValidDate(e)?i=e:"number"==typeof e&&(s=e),!t)throw new TypeError("No observable provided to switch to");if(l=function(){return t},null==i&&null==s)throw new TypeError("No timeout provided.");return o.timeout({first:i,each:s,scheduler:r,with:l})}},57351:(e,t,r)=>{"use strict";r.r(t),r.d(t,{PointShape:()=>a,SeriesMapping:()=>o,XYShowMode:()=>i,defaultFieldConfig:()=>l,defaultMatcherConfig:()=>s,defaultOptions:()=>u,pluginVersion:()=>n});const n="12.3.1";var a=(e=>(e.Circle="circle",e.Square="square",e))(a||{}),o=(e=>(e.Auto="auto",e.Manual="manual",e))(o||{}),i=(e=>(e.Lines="lines",e.Points="points",e.PointsAndLines="points+lines",e))(i||{});const s={id:""},l={fillOpacity:50,show:"points"},u={series:[]}},57831:(e,t,r)=>{"use strict";const{default:n,DraggableCore:a}=r(40354);e.exports=n,e.exports.default=n,e.exports.DraggableCore=a},57836:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var n=r(20851),a=r(43679);t.shareReplay=function(e,t,r){var o,i,s,l,u=!1;return e&&"object"==typeof e?(o=e.bufferSize,l=void 0===o?1/0:o,i=e.windowTime,t=void 0===i?1/0:i,u=void 0!==(s=e.refCount)&&s,r=e.scheduler):l=null!=e?e:1/0,a.share({connector:function(){return new n.ReplaySubject(l,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},57857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var n=r(34230),a=r(82792),o=r(83598),i=r(87023);t.takeUntil=function(e){return n.operate(function(t,r){o.innerFrom(e).subscribe(a.createOperatorSubscriber(r,function(){return r.complete()},i.noop)),!r.closed&&t.subscribe(r)})}},58007:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CodeLanguage:()=>o,TextMode:()=>a,defaultCodeLanguage:()=>i,defaultCodeOptions:()=>s,defaultOptions:()=>l,pluginVersion:()=>n});const n="12.3.1";var a=(e=>(e.Code="code",e.HTML="html",e.Markdown="markdown",e))(a||{}),o=(e=>(e.Go="go",e.Html="html",e.Json="json",e.Markdown="markdown",e.Plaintext="plaintext",e.Sql="sql",e.Typescript="typescript",e.Xml="xml",e.Yaml="yaml",e))(o||{});const i="plaintext",s={language:"plaintext",showLineNumbers:!1,showMiniMap:!1},l={content:"# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)",mode:"markdown"}},58013:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var n=r(8889),a=r(34230),o=r(82792);t.observeOn=function(e,t){return void 0===t&&(t=0),a.operate(function(r,a){r.subscribe(o.createOperatorSubscriber(a,function(r){return n.executeSchedule(a,e,function(){return a.next(r)},t)},function(){return n.executeSchedule(a,e,function(){return a.complete()},t)},function(r){return n.executeSchedule(a,e,function(){return a.error(r)},t)}))})}},58484:(e,t,r)=>{var n,a;!function(o){if(void 0===(a="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=a),e.exports=o(),!!0){var i=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=i,s}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function a(){}function o(t,r,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},a.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var i=JSON.stringify(r);/^[\{\[]/.test(i)&&(r=i)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+r+s}}function i(e,r){if("undefined"!=typeof document){for(var a={},o=document.cookie?document.cookie.split("; "):[],i=0;i<o.length;i++){var s=o[i].split("="),l=s.slice(1).join("=");r||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=t(s[0]);if(l=(n.read||n)(l,u)||t(l),r)try{l=JSON.parse(l)}catch(e){}if(a[u]=l,e===u)break}catch(e){}}return e?a[e]:a}}return a.set=o,a.get=function(e){return i(e,!1)},a.getJSON=function(e){return i(e,!0)},a.remove=function(t,r){o(t,"",e(r,{expires:-1}))},a.defaults={},a.withConverter=r,a}(function(){})})},58931:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>a,pluginVersion:()=>n});const n="12.3.1",a={selectedSeries:0}},59025:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var o=r(93697),i=r(59705),s=r(32522),l=r(82792),u=r(34230),c=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,u.hasLift(t)&&(n.lift=t.lift),n}return a(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new i.Subscription;var r=this.getSubject();t.add(this.source.subscribe(l.createOperatorSubscriber(r,void 0,function(){e._teardown(),r.complete()},function(t){e._teardown(),r.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=i.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return s.refCount()(this)},t}(o.Observable);t.ConnectableObservable=c},59396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(34443))&&n.__esModule?n:{default:n};var o=function(e){return"string"==typeof e&&a.default.test(e)};t.default=o},59408:e=>{!function(){"use strict";var t="undefined"!=typeof window&&void 0!==window.document?window.document:{},r=e.exports,n=function(){for(var e,r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,a=r.length,o={};n<a;n++)if((e=r[n])&&e[1]in t){for(n=0;n<e.length;n++)o[r[0][n]]=e[n];return o}return!1}(),a={change:n.fullscreenchange,error:n.fullscreenerror},o={request:function(e,r){return new Promise(function(a,o){var i=function(){this.off("change",i),a()}.bind(this);this.on("change",i);var s=(e=e||t.documentElement)[n.requestFullscreen](r);s instanceof Promise&&s.then(i).catch(o)}.bind(this))},exit:function(){return new Promise(function(e,r){if(this.isFullscreen){var a=function(){this.off("change",a),e()}.bind(this);this.on("change",a);var o=t[n.exitFullscreen]();o instanceof Promise&&o.then(a).catch(r)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,r){var n=a[e];n&&t.addEventListener(n,r,!1)},off:function(e,r){var n=a[e];n&&t.removeEventListener(n,r,!1)},raw:n};n?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(t[n.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[n.fullscreenEnabled])}}}),r?e.exports=o:window.screenfull=o):r?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()},59705:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var i=r(93639),s=r(14895),l=r(72420),u=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,l,u;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var f=n(d),p=f.next();!p.done;p=f.next()){p.value.remove(this)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}else d.remove(this);var h=this.initialTeardown;if(i.isFunction(h))try{h()}catch(e){u=e instanceof s.UnsubscriptionError?e.errors:[e]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var v=n(m),g=v.next();!g.done;g=v.next()){var b=g.value;try{c(b)}catch(e){u=null!=u?u:[],e instanceof s.UnsubscriptionError?u=o(o([],a(u)),a(e.errors)):u.push(e)}}}catch(e){r={error:e}}finally{try{g&&!g.done&&(l=v.return)&&l.call(v)}finally{if(r)throw r.error}}}if(u)throw new s.UnsubscriptionError(u)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)c(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&l.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&l.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function c(e){i.isFunction(e)?e():e.unsubscribe()}t.Subscription=u,t.EMPTY_SUBSCRIPTION=u.EMPTY,t.isSubscription=function(e){return e instanceof u||e&&"closed"in e&&i.isFunction(e.remove)&&i.isFunction(e.add)&&i.isFunction(e.unsubscribe)}},61180:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(a,i,s):a[i]=e[i]}a.default=e,r&&r.set(e,a);return a}(r(85959)),o=d(r(23108)),i=d(r(83718)),s=r(39726),l=r(65792),u=d(r(46058)),c=["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,a=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}(this,r)}}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x=function(e){return Object.prototype.toString.call(e)};function O(e,t){return null==e?null:Array.isArray(e)?e:e[t]}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(d,e);var t,r,n,o=y(d);function d(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(w(e=o.call.apply(o,[this].concat(r))),"state",e.generateInitialState()),_(w(e),"onLayoutChange",function(t){e.props.onLayoutChange(t,v(v({},e.props.layouts),{},_({},e.state.breakpoint,t)))}),e}return t=d,n=[{key:"getDerivedStateFromProps",value:function(e,t){if(!(0,i.default)(e.layouts,t.layouts)){var r=t.breakpoint,n=t.cols;return{layout:(0,l.findOrGenerateResponsiveLayout)(e.layouts,e.breakpoints,r,r,n,e.compactType),layouts:e.layouts}}return null}}],(r=[{key:"generateInitialState",value:function(){var e=this.props,t=e.width,r=e.breakpoints,n=e.layouts,a=e.cols,o=(0,l.getBreakpointFromWidth)(r,t),i=(0,l.getColsFromBreakpoint)(o,a),s=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:(0,l.findOrGenerateResponsiveLayout)(n,r,o,o,i,s),breakpoint:o,cols:i}}},{key:"componentDidUpdate",value:function(e){this.props.width==e.width&&this.props.breakpoint===e.breakpoint&&(0,i.default)(this.props.breakpoints,e.breakpoints)&&(0,i.default)(this.props.cols,e.cols)||this.onWidthChange(e)}},{key:"onWidthChange",value:function(e){var t=this.props,r=t.breakpoints,n=t.cols,a=t.layouts,o=t.compactType,i=this.props.breakpoint||(0,l.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),u=this.state.breakpoint,c=(0,l.getColsFromBreakpoint)(i,n),d=v({},a);if(u!==i||e.breakpoints!==r||e.cols!==n){u in d||(d[u]=(0,s.cloneLayout)(this.state.layout));var f=(0,l.findOrGenerateResponsiveLayout)(d,r,i,u,c,o);f=(0,s.synchronizeLayoutWithChildren)(f,this.props.children,c,o,this.props.allowOverlap),d[i]=f,this.props.onLayoutChange(f,d),this.props.onBreakpointChange(i,c),this.setState({breakpoint:i,layout:f,cols:c})}var p=O(this.props.margin,i),h=O(this.props.containerPadding,i);this.props.onWidthChange(this.props.width,p,c,h)}},{key:"render",value:function(){var e=this.props,t=(e.breakpoint,e.breakpoints,e.cols,e.layouts,e.margin),r=e.containerPadding,n=(e.onBreakpointChange,e.onLayoutChange,e.onWidthChange,h(e,c));return a.createElement(u.default,p({},n,{margin:O(t,this.state.breakpoint),containerPadding:O(r,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}])&&g(t.prototype,r),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(a.Component);t.default=A,_(A,"propTypes",{breakpoint:o.default.string,breakpoints:o.default.object,allowOverlap:o.default.bool,cols:o.default.object,margin:o.default.oneOfType([o.default.array,o.default.object]),containerPadding:o.default.oneOfType([o.default.array,o.default.object]),layouts:function(e,t){if("[object Object]"!==x(e[t]))throw new Error("Layout property must be an object. Received: "+x(e[t]));Object.keys(e[t]).forEach(function(t){if(!(t in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,s.validateLayout)(e.layouts[t],"layouts."+t)})},width:o.default.number.isRequired,onBreakpointChange:o.default.func,onLayoutChange:o.default.func,onWidthChange:o.default.func}),_(A,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:s.noop,onLayoutChange:s.noop,onWidthChange:s.noop})},61395:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Filter bewerken met sleutel {{keyLabel}}","managed-filter":"{{origin}} beheerde filter","non-applicable":"","remove-filter-with-key":"Filter verwijderen met sleutel {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Filterwaarde verwijderen - {{itemLabel}}","use-custom-value":"Aangepaste waarde gebruiken: {{itemLabel}}"},"fallback-page":{content:"Als je hier bent gekomen via een link, dan kan er een bug in deze applicatie zijn.",subTitle:"De URL kwam met geen enkele pagina overeen",title:"Niet gevonden"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Scène samenvouwen","expand-button-label":"Scène uitvouwen","remove-button-label":"Scène verwijderen"},"scene-debugger":{"object-details":"Objectdetails","scene-graph":"Scènegrafiek","title-scene-debugger":"Scène-debugger"},"scene-grid-row":{"collapse-row":"Rij samenvouwen","expand-row":"Rij uitvouwen"},"scene-refresh-picker":{"text-cancel":"Annuleren","text-refresh":"Vernieuwen","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Vergelijking","button-tooltip":"Tijdsbestekvergelijking inschakelen"},splitter:{"aria-label-pane-resize-widget":"Grootte widget wijzigen"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Titel"}},"viz-panel-explore-button":{explore:"Verkennen"},"viz-panel-renderer":{"loading-plugin-panel":"Plug-inpaneel laden...","panel-plugin-has-no-panel-component":"Paneelplug-in heeft geen paneelcomponent"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Het renderen van te veel reeksen in één paneel kan de prestaties beïnvloeden en de leesbaarheid van de gegevens verminderen. ","warning-message":"Alleen {{seriesLimit}}-series weergeven"}},utils:{"controls-label":{"tooltip-remove":"Verwijderen"},"loading-indicator":{"content-cancel-query":"Query annuleren"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Filteroperator bewerken"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Filter toevoegen","title-add-filter":"Filter toevoegen"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Filter verwijderen","key-select":{"placeholder-select-label":"Selecteer label"},"label-select-label":"Selecteer label","title-remove-filter":"Filter verwijderen","value-select":{"placeholder-select-value":"Waarde selecteren"}},"data-source-variable":{label:{default:"standaard"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"wissen",tooltip:"Standaard toegepast in dit dashboard. Als het wordt bewerkt, wordt het overgenomen naar andere dashboards.","tooltip-restore-groupby-set-by-this-dashboard":"Herstel groupby ingesteld door dit dashboard."},"format-registry":{formats:{description:{"commaseparated-values":"Kommagescheiden waarden","double-quoted-values":"Dubbel geciteerde waarden","format-date-in-different-ways":"Datum op verschillende manieren opmaken","format-multivalued-variables-using-syntax-example":"Formatteer variabelen met meerdere waarden met behulp van glob-syntaxis, bijvoorbeeld {value1,value2}","html-escaping-of-values":"HTML-escaping van waarden","join-values-with-a-comma":"","json-stringify-value":"JSON-stringify-waarde","keep-value-as-is":"Huidige waarde behouden","multiple-values-are-formatted-like-variablevalue":"Meerdere waarden zijn opgemaakt als variabele=waarde","single-quoted-values":"Enkel geciteerde waarden","useful-escaping-values-taking-syntax-characters":"Handig voor URL-escapingwaarden, rekening houdend met URI-syntaxis tekens","useful-for-url-escaping-values":"Handig voor URL-escaping-waarden","values-are-separated-by-character":"Waarden worden gescheiden door | teken"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Groeperen op kiezer","placeholder-group-by-label":"Groeperen op label"},"interval-variable":{"placeholder-select-value":"Waarde selecteren"},"loading-options-placeholder":{"loading-options":"Opties laden…"},"multi-value-apply-button":{apply:"Toepassen"},"no-options-placeholder":{"no-options-found":"Geen opties gevonden"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Er is een fout opgetreden bij het ophalen van labels. Klik om opnieuw te proberen"},"test-object-with-variable-dependency":{title:{hello:"Hallo"}},"test-variable":{text:{text:"Tekst"}},"variable-value-input":{"placeholder-enter-value":"Voer waarde in"},"variable-value-select":{"placeholder-select-value":"Waarde selecteren"}}}}},61562:(e,t,r)=>{"use strict";r(75860)},62587:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Edytuj filtr z kluczem {{keyLabel}}","managed-filter":"Filtr zarządzany ({{origin}})","non-applicable":"","remove-filter-with-key":"Usuń filtr z kluczem {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Usuń wartość filtra – {{itemLabel}}","use-custom-value":"Użyj wartości niestandardowej: {{itemLabel}}"},"fallback-page":{content:"Jeśli doprowadził Cię tutaj link, może to oznaczać błąd w aplikacji.",subTitle:"Adres URL nie pasuje do żadnej strony",title:"Nie znaleziono"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Zwiń scenę","expand-button-label":"Rozwiń scenę","remove-button-label":"Usuń scenę"},"scene-debugger":{"object-details":"Szczegóły obiektu","scene-graph":"Wykres sceny","title-scene-debugger":"Debuger sceny"},"scene-grid-row":{"collapse-row":"Zwiń wiersz","expand-row":"Rozwiń wiersz"},"scene-refresh-picker":{"text-cancel":"Anuluj","text-refresh":"Odśwież","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Porównanie","button-tooltip":"Włącz porównanie ram czasowych"},splitter:{"aria-label-pane-resize-widget":"Widżet zmiany rozmiaru okienka"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Tytuł"}},"viz-panel-explore-button":{explore:"Eksploruj"},"viz-panel-renderer":{"loading-plugin-panel":"Ładowanie panelu wtyczki…","panel-plugin-has-no-panel-component":"Wtyczka panelu nie zawiera komponentu panelu"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Renderowanie zbyt wielu szeregów w jednym panelu może wpłynąć na wydajność i utrudnić odczyt danych.","warning-message":"Wyświetlanie tylko {{seriesLimit}} szeregów"}},utils:{"controls-label":{"tooltip-remove":"Usuń"},"loading-indicator":{"content-cancel-query":"Anuluj zapytanie"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Edytuj operator filtra"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Dodaj filtr","title-add-filter":"Dodaj filtr"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Usuń filtr","key-select":{"placeholder-select-label":"Wybierz etykietę"},"label-select-label":"Wybierz etykietę","title-remove-filter":"Usuń filtr","value-select":{"placeholder-select-value":"Wybierz wartość"}},"data-source-variable":{label:{default:"domyślne"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"wyczyść",tooltip:"Zastosowano domyślnie do tego pulpitu. W przypadku edycji zmiana zostanie uwzględniona na innych pulpitach.","tooltip-restore-groupby-set-by-this-dashboard":"Przywróć grupowanie ustawione przez ten pulpit."},"format-registry":{formats:{description:{"commaseparated-values":"Wartości rozdzielone przecinkami","double-quoted-values":"Wartości w podwójnym cudzysłowie","format-date-in-different-ways":"Formatowanie daty na różne sposoby","format-multivalued-variables-using-syntax-example":"Formatowanie zmiennych wielowartościowych za pomocą składni glob, np. {value1,value2}","html-escaping-of-values":"Modyfikowanie wartości w kodzie HTML","join-values-with-a-comma":"","json-stringify-value":"Wartość konwersji na ciąg JSON","keep-value-as-is":"Zachowaj wartość w obecnej postaci","multiple-values-are-formatted-like-variablevalue":"Wiele wartości jest sformatowanych w postaci zmienna=wartość","single-quoted-values":"Wartości w pojedynczym cudzysłowie","useful-escaping-values-taking-syntax-characters":"Przydatne w przypadku wartości unikowych w adresach URL z uwzględnieniem znaków składni identyfikatora URI","useful-for-url-escaping-values":"Przydatne w przypadku wartości znaków unikowych w adresach URL","values-are-separated-by-character":"Wartości są rozdzielone znakiem |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Grupuj według selektora","placeholder-group-by-label":"Grupuj według etykiety"},"interval-variable":{"placeholder-select-value":"Wybierz wartość"},"loading-options-placeholder":{"loading-options":"Ładowanie opcji…"},"multi-value-apply-button":{apply:"Zastosuj"},"no-options-placeholder":{"no-options-found":"Nie znaleziono opcji"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Podczas pobierania etykiet wystąpił błąd. Kliknij, aby spróbować ponownie"},"test-object-with-variable-dependency":{title:{hello:"Cześć!"}},"test-variable":{text:{text:"Tekst"}},"variable-value-input":{"placeholder-enter-value":"Wprowadź wartość"},"variable-value-select":{"placeholder-select-value":"Wybierz wartość"}}}}},62617:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var o=r(34230),i=r(82792),s=r(83598),l=r(44757),u=r(87023),c=r(11998);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popResultSelector(e);return o.operate(function(t,o){for(var c=e.length,d=new Array(c),f=e.map(function(){return!1}),p=!1,h=function(t){s.innerFrom(e[t]).subscribe(i.createOperatorSubscriber(o,function(e){d[t]=e,p||f[t]||(f[t]=!0,(p=f.every(l.identity))&&(f=null))},u.noop))},m=0;m<c;m++)h(m);t.subscribe(i.createOperatorSubscriber(o,function(e){if(p){var t=a([e],n(d));o.next(r?r.apply(void 0,a([],n(t))):t)}}))})}},62899:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var o=r(98543),i=function(e){function t(t,r){void 0===r&&(r=o.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return a(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(o.Scheduler);t.AsyncScheduler=i},62954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var n=r(93697),a=r(93639);t.throwError=function(e,t){var r=a.isFunction(e)?e:function(){return e},o=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(o,0,e)}:o)}},63425:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},63578:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Edit filter with key {{keyLabel}}","managed-filter":"{{origin}} managed filter","non-applicable":"Filter is not applicable","remove-filter-with-key":"Remove filter with key {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Remove filter value - {{itemLabel}}","use-custom-value":"Use custom value: {{itemLabel}}"},"drilldown-recommendations":{recent:"Recent","recent-empty":"No recent values",recommended:"Recommended","recommended-empty":"No recommended values",tooltip:"Show recommendations"},"fallback-page":{content:"If you found your way here using a link then there might be a bug in this application.",subTitle:"The url did not match any page",title:"Not found"},"lazy-loader":{placeholder:" "},"nested-scene-renderer":{"collapse-button-label":"Collapse scene","expand-button-label":"Expand scene","remove-button-label":"Remove scene"},"scene-debugger":{"object-details":"Object details","scene-graph":"Scene graph","title-scene-debugger":"Scene debugger"},"scene-grid-row":{"collapse-row":"Collapse row","expand-row":"Expand row"},"scene-refresh-picker":{"text-cancel":"Cancel","text-refresh":"Refresh","tooltip-cancel":"Cancel all queries"},"scene-time-range-compare-renderer":{"button-label":"Comparison","button-tooltip":"Enable time frame comparison"},splitter:{"aria-label-pane-resize-widget":"Pane resize widget"},"time-picker":{"move-backward-tooltip":"Move {{moveBackwardDuration}} backward","move-forward-tooltip":"Move {{moveForwardDuration}} forward"},"viz-panel":{title:{title:"Title"}},"viz-panel-explore-button":{explore:"Explore"},"viz-panel-renderer":{"loading-plugin-panel":"Loading plugin panel...","panel-plugin-has-no-panel-component":"Panel plugin has no panel component"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Rendering too many series in a single panel may impact performance and make data harder to read.","warning-message":"Showing only {{seriesLimit}} series"}},utils:{"controls-label":{"tooltip-remove":"Remove"},"loading-indicator":{"content-cancel-query":"Cancel query"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Edit filter operator"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Add filter","title-add-filter":"Add filter"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Remove filter","key-select":{"placeholder-select-label":"Select label"},"label-select-label":"Select label","title-remove-filter":"Remove filter","value-select":{"placeholder-select-value":"Select value"}},"adhoc-filters-combobox-renderer":{collapse:"Collapse","collapse-filters":"Collapse filters"},"data-source-variable":{label:{default:"default"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"clear",tooltip:"Applied by default in this dashboard. If edited, it carries over to other dashboards.","tooltip-restore-groupby-set-by-this-dashboard":"Restore groupby set by this dashboard."},"format-registry":{formats:{description:{"commaseparated-values":"Comma-separated values","double-quoted-values":"Double quoted values","format-date-in-different-ways":"Format date in different ways","format-multivalued-variables-using-syntax-example":"Format multi-valued variables using glob syntax, example {value1,value2}","html-escaping-of-values":"HTML escaping of values","join-values-with-a-comma":"Join values with a comma","json-stringify-value":"JSON stringify value","keep-value-as-is":"Keep value as is","multiple-values-are-formatted-like-variablevalue":"Multiple values are formatted like variable=value","single-quoted-values":"Single quoted values","useful-escaping-values-taking-syntax-characters":"Useful for URL escaping values, taking into URI syntax characters","useful-for-url-escaping-values":"Useful for URL escaping values","values-are-separated-by-character":"Values are separated by | character"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Group by selector","placeholder-group-by-label":"Group by label"},"interval-variable":{"placeholder-select-value":"Select value"},"loading-options-placeholder":{"loading-options":"Loading options..."},"multi-value-apply-button":{apply:"Apply"},"no-options-placeholder":{"no-options-found":"No options found"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"An error has occurred fetching labels. Click to retry"},"test-object-with-variable-dependency":{title:{hello:"Hello"}},"test-variable":{text:{text:"Text"}},"variable-value-input":{"placeholder-enter-value":"Enter value"},"variable-value-select":{"placeholder-select-value":"Select value"}}}}},63653:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var a=r(59705),o=r(34230),i=r(82792),s=r(72420),l=r(21492),u=r(11998),c=r(8889);t.bufferTime=function(e){for(var t,r,d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];var p=null!==(t=u.popScheduler(d))&&void 0!==t?t:l.asyncScheduler,h=null!==(r=d[0])&&void 0!==r?r:null,m=d[1]||1/0;return o.operate(function(t,r){var o=[],l=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),s.arrRemove(o,e),r.next(t),l&&d()},d=function(){if(o){var t=new a.Subscription;r.add(t);var n={buffer:[],subs:t};o.push(n),c.executeSchedule(t,p,function(){return u(n)},e)}};null!==h&&h>=0?c.executeSchedule(r,p,d,h,!0):l=!0,d();var f=i.createOperatorSubscriber(r,function(e){var t,r,a=o.slice();try{for(var i=n(a),s=i.next();!s.done;s=i.next()){var l=s.value,c=l.buffer;c.push(e),m<=c.length&&u(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},function(){for(;null==o?void 0:o.length;)r.next(o.shift().buffer);null==f||f.unsubscribe(),r.complete(),r.unsubscribe()},void 0,function(){return o=null});t.subscribe(f)})}},63713:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},64881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var n=r(44757),a=r(46914),o=r(55955),i=r(76628),s=r(82370);t.joinAllInternals=function(e,t){return o.pipe(s.toArray(),i.mergeMap(function(t){return e(t)}),t?a.mapOneOrManyArgs(t):n.identity)}},65685:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"{{keyLabel}} kulcsos szűrő szerkesztése","managed-filter":"{{origin}} által kezelt szűrő","non-applicable":"","remove-filter-with-key":"{{keyLabel}} kulcsos szűrő eltávolítása"},"adhoc-filters-combobox":{"remove-filter-value":"Szűrőérték eltávolítása – {{itemLabel}}","use-custom-value":"Egyéni érték használata: {{itemLabel}}"},"fallback-page":{content:"Ha egy hivatkozáson keresztül lépett ide, akkor lehet, hogy hiba van ebben az alkalmazásban.",subTitle:"Az URL-cím nem egyezett egyetlen oldallal sem",title:"Nem található"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Jelenet összecsukása","expand-button-label":"Jelenet kibontása","remove-button-label":"Jelenet eltávolítása"},"scene-debugger":{"object-details":"Az objektum részletei","scene-graph":"Jelenetdiagram","title-scene-debugger":"Jelenet-hibakereső"},"scene-grid-row":{"collapse-row":"Sor összecsukása","expand-row":"Sor kibontása"},"scene-refresh-picker":{"text-cancel":"Mégse","text-refresh":"Frissítés","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Összehasonlítás","button-tooltip":"Időkeret-összehasonlítás engedélyezése"},splitter:{"aria-label-pane-resize-widget":"Ablaktábla-átméretezési widget"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Cím"}},"viz-panel-explore-button":{explore:"Explore"},"viz-panel-renderer":{"loading-plugin-panel":"Bővítménypanel betöltése…","panel-plugin-has-no-panel-component":"A panelbővítménynek nincs panelösszetevője"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Ha túl sok sorozatot jelenít meg egyetlen panelen, az hatással lehet a teljesítményre, és megnehezítheti az adatok olvasását.","warning-message":"Csak {{seriesLimit}} sorozat megjelenítése"}},utils:{"controls-label":{"tooltip-remove":"Eltávolítás"},"loading-indicator":{"content-cancel-query":"A lekérdezés megszakítása"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Szűrőoperátor szerkesztése"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Szűrő hozzáadása","title-add-filter":"Szűrő hozzáadása"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Szűrő eltávolítása","key-select":{"placeholder-select-label":"Címke kiválasztása"},"label-select-label":"Címke kiválasztása","title-remove-filter":"Szűrő eltávolítása","value-select":{"placeholder-select-value":"Érték kiválasztása"}},"data-source-variable":{label:{default:"alapértelmezés"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"törlés",tooltip:"Alapértelmezés szerint alkalmazva ezen az irányítópulton. A szerkesztést átviszi más irányítópultokra.","tooltip-restore-groupby-set-by-this-dashboard":"A jelen irányítópult által beállított csoportosítási szempont visszaállítása."},"format-registry":{formats:{description:{"commaseparated-values":"Vesszővel elválasztott értékek","double-quoted-values":"Dupla idézőjeles értékek","format-date-in-different-ways":"Dátum formázása különböző módokon","format-multivalued-variables-using-syntax-example":"Többértékű változók formázása glob szintaxissal, például: {érték1,érték2}","html-escaping-of-values":"Értékek módosított HTML-értelmezése","join-values-with-a-comma":"","json-stringify-value":"A JSON stringify értéke","keep-value-as-is":"Érték megtartása adott állapotban","multiple-values-are-formatted-like-variablevalue":"Több érték formázása változó=érték formátumban","single-quoted-values":"Egyszeres idézőjeles értékek","useful-escaping-values-taking-syntax-characters":"Hasznos az értékek módosított URL-értelmezéséhez, az URI-szintaktikai karakterek figyelembevételével","useful-for-url-escaping-values":"Hasznos az értékek módosított URL-értelmezéséhez","values-are-separated-by-character":"Az értékeket | karakter választja el"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Csoportosításiszempont-választó","placeholder-group-by-label":"Csoportosítási szempont címkéje"},"interval-variable":{"placeholder-select-value":"Érték kiválasztása"},"loading-options-placeholder":{"loading-options":"Beállítások betöltése…"},"multi-value-apply-button":{apply:"Alkalmaz"},"no-options-placeholder":{"no-options-found":"Nem található beállítás"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Hiba történt a címkék lekérése során. Kattintson az újrapróbálkozáshoz"},"test-object-with-variable-dependency":{title:{hello:"Üdv"}},"test-variable":{text:{text:"Szöveg"}},"variable-value-input":{"placeholder-enter-value":"Érték megadása"},"variable-value-select":{"placeholder-select-value":"Érték kiválasztása"}}}}},65792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findOrGenerateResponsiveLayout=function(e,t,r,o,i,s){if(e[r])return(0,n.cloneLayout)(e[r]);for(var l=e[o],u=a(t),c=u.slice(u.indexOf(r)),d=0,f=c.length;d<f;d++){var p=c[d];if(e[p]){l=e[p];break}}return l=(0,n.cloneLayout)(l||[]),(0,n.compact)((0,n.correctBounds)(l,{cols:i}),s,i)},t.getBreakpointFromWidth=function(e,t){for(var r=a(e),n=r[0],o=1,i=r.length;o<i;o++){var s=r[o];t>e[s]&&(n=s)}return n},t.getColsFromBreakpoint=function(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},t.sortBreakpoints=a;var n=r(39726);function a(e){return Object.keys(e).sort(function(t,r){return e[t]-e[r]})}},66557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var n=r(83598),a=r(86322),o=r(34230),i=r(82792);t.repeatWhen=function(e){return o.operate(function(t,r){var o,s,l=!1,u=!1,c=!1,d=function(){return c&&u&&(r.complete(),!0)},f=function(){c=!1,o=t.subscribe(i.createOperatorSubscriber(r,void 0,function(){c=!0,!d()&&(s||(s=new a.Subject,n.innerFrom(e(s)).subscribe(i.createOperatorSubscriber(r,function(){o?f():l=!0},function(){u=!0,d()}))),s).next()})),l&&(o.unsubscribe(),o=null,l=!1,f())};f()})}},66973:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var a=r(34230),o=r(82792),i=r(72420);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,a.operate(function(r,a){var s=[],l=0;r.subscribe(o.createOperatorSubscriber(a,function(r){var o,u,c,d,f=null;l++%t===0&&s.push([]);try{for(var p=n(s),h=p.next();!h.done;h=p.next()){(g=h.value).push(r),e<=g.length&&(f=null!=f?f:[]).push(g)}}catch(e){o={error:e}}finally{try{h&&!h.done&&(u=p.return)&&u.call(p)}finally{if(o)throw o.error}}if(f)try{for(var m=n(f),v=m.next();!v.done;v=m.next()){var g=v.value;i.arrRemove(s,g),a.next(g)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(c)throw c.error}}},function(){var e,t;try{for(var r=n(s),o=r.next();!o.done;o=r.next()){var i=o.value;a.next(i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}a.complete()},void 0,function(){s=null}))})}},67779:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"使用键 {{keyLabel}} 编辑筛选器","managed-filter":"{{origin}} 托管筛选器","non-applicable":"","remove-filter-with-key":"使用键 {{keyLabel}} 移除筛选器"},"adhoc-filters-combobox":{"remove-filter-value":"移除筛选器值 - {{itemLabel}}","use-custom-value":"使用自定义值:{{itemLabel}}"},"fallback-page":{content:"如果您使用链接找到了此处的路径,则此应用程序中可能存在错误。",subTitle:"URL 与任何页面都不匹配",title:"未找到"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"折叠场景","expand-button-label":"展开场景","remove-button-label":"移除场景"},"scene-debugger":{"object-details":"对象详情","scene-graph":"场景图","title-scene-debugger":"场景调试器"},"scene-grid-row":{"collapse-row":"折叠行","expand-row":"展开行"},"scene-refresh-picker":{"text-cancel":"取消","text-refresh":"刷新","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"比较","button-tooltip":"启用时间范围比较"},splitter:{"aria-label-pane-resize-widget":"窗格大小调整小部件"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"标题"}},"viz-panel-explore-button":{explore:"探索"},"viz-panel-renderer":{"loading-plugin-panel":"正在加载插件面板…","panel-plugin-has-no-panel-component":"面板插件没有面板组件"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"在单个面板中呈现太多系列可能会影响性能,并使数据难以阅读。","warning-message":"仅显示 {{seriesLimit}} 系列"}},utils:{"controls-label":{"tooltip-remove":"移除"},"loading-indicator":{"content-cancel-query":"取消查询"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"编辑筛选器运算符"},"ad-hoc-filter-builder":{"aria-label-add-filter":"添加筛选条件","title-add-filter":"添加筛选条件"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"移除筛选条件","key-select":{"placeholder-select-label":"选择标签"},"label-select-label":"选择标签","title-remove-filter":"移除筛选条件","value-select":{"placeholder-select-value":"选择值"}},"data-source-variable":{label:{default:"默认"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"清除",tooltip:"在此数据面板中默认应用。如果编辑,它将转移到其他数据面板。","tooltip-restore-groupby-set-by-this-dashboard":"还原此数据面板设置的分组。"},"format-registry":{formats:{description:{"commaseparated-values":"逗号分隔值","double-quoted-values":"双引号值","format-date-in-different-ways":"以不同方式格式化日期","format-multivalued-variables-using-syntax-example":"使用 glob 语法格式化多值变量,例如 {value1,value2}","html-escaping-of-values":"值的 HTML 转义","join-values-with-a-comma":"","json-stringify-value":"JSON 字符串化值","keep-value-as-is":"保持值不变","multiple-values-are-formatted-like-variablevalue":"多个值的格式为 variable=value","single-quoted-values":"单引号值","useful-escaping-values-taking-syntax-characters":"用于 URL 转义值,采用 URI 语法字符","useful-for-url-escaping-values":"适用于 URL 转义值","values-are-separated-by-character":"值由 | 字符分隔"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"按选择器分组","placeholder-group-by-label":"按标签分组"},"interval-variable":{"placeholder-select-value":"选择值"},"loading-options-placeholder":{"loading-options":"正在加载选项…"},"multi-value-apply-button":{apply:"应用"},"no-options-placeholder":{"no-options-found":"未找到选项"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"获取标签时发生错误。单击重试"},"test-object-with-variable-dependency":{title:{hello:"您好"}},"test-variable":{text:{text:"文本"}},"variable-value-input":{"placeholder-enter-value":"输入数值"},"variable-value-select":{"placeholder-select-value":"选择值"}}}}},67885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var n=r(52850);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return n.map(function(t){for(var n=t,a=0;a<r;a++){var o=null==n?void 0:n[e[a]];if(void 0===o)return;n=o}return n})}},68201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var n=r(34230),a=r(91501);t.findIndex=function(e,t){return n.operate(a.createFind(e,t,"index"))}},68505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var n=r(34230);t.subscribeOn=function(e,t){return void 0===t&&(t=0),n.operate(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}},68577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(56636).__importDefault(r(14782)),a=function(e){return[e]};t.default=function(e,t){return void 0===t&&(t=a),function(r){return n.default(r,e.apply(void 0,t(r)))}}},68604:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var n=r(34230),a=r(82792);t.skipWhile=function(e){return n.operate(function(t,r){var n=!1,o=0;t.subscribe(a.createOperatorSubscriber(r,function(t){return(n||(n=!e(t,o++)))&&r.next(t)}))})}},69031:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"{{keyLabel}}キーでフィルターを編集 ","managed-filter":"{{origin}}管理フィルター","non-applicable":"","remove-filter-with-key":"{{keyLabel}}キーでフィルターを削除 "},"adhoc-filters-combobox":{"remove-filter-value":"フィルター値を削除 - {{itemLabel}}","use-custom-value":"カスタム値を使用:{{itemLabel}} "},"fallback-page":{content:"リンクからこのページにアクセスした場合、アプリケーションにバグがある可能性があります。",subTitle:"URLがどのページにも一致しません",title:"見つかりません"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"シーンを折りたたむ","expand-button-label":"シーンを展開","remove-button-label":"シーンを削除"},"scene-debugger":{"object-details":"オブジェクトの詳細","scene-graph":"シーングラフ","title-scene-debugger":"シーンデバッガー"},"scene-grid-row":{"collapse-row":"行を折りたたむ","expand-row":"行を展開"},"scene-refresh-picker":{"text-cancel":"キャンセル","text-refresh":"更新","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"比較","button-tooltip":"時間枠比較を有効にする"},splitter:{"aria-label-pane-resize-widget":"ペインリサイズウィジェット"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"タイトル"}},"viz-panel-explore-button":{explore:"探検"},"viz-panel-renderer":{"loading-plugin-panel":"プラグインパネルを読み込み中...","panel-plugin-has-no-panel-component":"パネルプラグインにパネルコンポーネントがありません"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"単一パネルで多数の系列を表示すると、パフォーマンスに影響し、データが読みにくくなる場合があります。","warning-message":"{{seriesLimit}}系列のみ表示"}},utils:{"controls-label":{"tooltip-remove":"削除"},"loading-indicator":{"content-cancel-query":"クエリをキャンセル"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"フィルター演算子を編集"},"ad-hoc-filter-builder":{"aria-label-add-filter":"フィルターを追加","title-add-filter":"フィルターを追加"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"フィルターを削除","key-select":{"placeholder-select-label":"ラベルを選択"},"label-select-label":"ラベルを選択","title-remove-filter":"フィルターを削除","value-select":{"placeholder-select-value":"値を選択"}},"data-source-variable":{label:{default:"デフォルト"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"クリア",tooltip:"このダッシュボードでデフォルトで適用されます。編集した場合、他のダッシュボードに引き継がれます。","tooltip-restore-groupby-set-by-this-dashboard":"このダッシュボードで設定されたgroupbyを復元します。"},"format-registry":{formats:{description:{"commaseparated-values":"カンマ区切り値","double-quoted-values":"二重引用符で囲まれた値","format-date-in-different-ways":"日付を様々な形式でフォーマット","format-multivalued-variables-using-syntax-example":"glob構文を使用して複数値変数をフォーマット(例: {value1,value2})","html-escaping-of-values":"値のHTMLエスケープ","join-values-with-a-comma":"","json-stringify-value":"JSON文字列化値","keep-value-as-is":"値をそのまま保持","multiple-values-are-formatted-like-variablevalue":"複数の値は変数=値の形式でフォーマットされます","single-quoted-values":"一重引用符で囲まれた値","useful-escaping-values-taking-syntax-characters":"URI構文文字を考慮したURLエスケープ値に便利","useful-for-url-escaping-values":"URLエスケープ値に便利","values-are-separated-by-character":"値は|文字で区切られます"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"セレクターでグループ化","placeholder-group-by-label":"ラベルでグループ化"},"interval-variable":{"placeholder-select-value":"値を選択"},"loading-options-placeholder":{"loading-options":"オプションを読み込み中..."},"multi-value-apply-button":{apply:"適用"},"no-options-placeholder":{"no-options-found":"オプションが見つかりません"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"ラベルの取得中にエラーが発生しました。クリックして再試行"},"test-object-with-variable-dependency":{title:{hello:"こんにちは"}},"test-variable":{text:{text:"テキスト"}},"variable-value-input":{"placeholder-enter-value":"値を入力"},"variable-value-select":{"placeholder-select-value":"値を選択"}}}}},69081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6832);const a={RadioButton:{container:{"10.2.3":"data-testid radio-button"}},Breadcrumbs:{breadcrumb:{"9.4.0":e=>`data-testid ${e} breadcrumb`}},CanvasGridAddActions:{addPanel:{"12.1.0":"data-testid CanvasGridAddActions add-panel"},groupPanels:{"12.1.0":"data-testid CanvasGridAddActions group-panels"},ungroup:{"12.1.0":"data-testid CanvasGridAddActions ungroup"},ungroupRows:{"12.1.0":"data-testid CanvasGridAddActions ungroup-rows"},addRow:{"12.1.0":"data-testid CanvasGridAddActions add-row"},pasteRow:{"12.1.0":"data-testid CanvasGridAddActions paste-row"},addTab:{"12.1.0":"data-testid CanvasGridAddActions add-tab"},pasteTab:{"12.1.0":"data-testid CanvasGridAddActions paste-tab"},pastePanel:{"12.1.0":"data-testid CanvasGridAddActions paste-panel"}},DashboardEditPaneSplitter:{primaryBody:{"12.1.0":"data-testid DashboardEditPaneSplitter primary body"}},Sidebar:{closePane:{"12.4.0":"data-testid Sidebar close pane"},dockToggle:{"12.4.0":"data-testid sidebar-dock-toggle"},newPanelButton:{"12.4.0":"data-testid sidebar add new panel"}},EditPaneHeader:{deleteButton:{"12.1.0":"data-testid EditPaneHeader delete panel"},copyDropdown:{"12.1.0":"data-testid EditPaneHeader copy dropdown"},copy:{"12.1.0":"data-testid EditPaneHeader copy"},duplicate:{"12.1.0":"data-testid EditPaneHeader duplicate"}},LayoutContainer:{"12.4.0":e=>`data-testid Layout container ${e}`},TimePicker:{openButton:{[n.MIN_GRAFANA_VERSION]:"data-testid TimePicker Open Button"},overlayContent:{"10.2.3":"data-testid TimePicker Overlay Content"},fromField:{"10.2.3":"data-testid Time Range from field",[n.MIN_GRAFANA_VERSION]:"Time Range from field"},toField:{"10.2.3":"data-testid Time Range to field",[n.MIN_GRAFANA_VERSION]:"Time Range to field"},applyTimeRange:{[n.MIN_GRAFANA_VERSION]:"data-testid TimePicker submit button"},copyTimeRange:{"10.4.0":"data-testid TimePicker copy button"},pasteTimeRange:{"10.4.0":"data-testid TimePicker paste button"},calendar:{label:{"10.2.3":"data-testid Time Range calendar",[n.MIN_GRAFANA_VERSION]:"Time Range calendar"},openButton:{"10.2.3":"data-testid Open time range calendar",[n.MIN_GRAFANA_VERSION]:"Open time range calendar"},closeButton:{"10.2.3":"data-testid Close time range Calendar",[n.MIN_GRAFANA_VERSION]:"Close time range Calendar"}},absoluteTimeRangeTitle:{[n.MIN_GRAFANA_VERSION]:"data-testid-absolute-time-range-narrow"}},DataSourcePermissions:{form:{"9.5.0":()=>'form[name="addPermission"]'},roleType:{"9.5.0":"Role to add new permission to"},rolePicker:{"9.5.0":"Built-in role picker"},permissionLevel:{"12.0.0":"Permission level","9.5.0":"Permission Level"}},DateTimePicker:{input:{"10.2.3":"data-testid date-time-input"}},DataSource:{TestData:{QueryTab:{scenarioSelectContainer:{[n.MIN_GRAFANA_VERSION]:"Test Data Query scenario select container"},scenarioSelect:{[n.MIN_GRAFANA_VERSION]:"Test Data Query scenario select"},max:{[n.MIN_GRAFANA_VERSION]:"TestData max"},min:{[n.MIN_GRAFANA_VERSION]:"TestData min"},noise:{[n.MIN_GRAFANA_VERSION]:"TestData noise"},seriesCount:{[n.MIN_GRAFANA_VERSION]:"TestData series count"},spread:{[n.MIN_GRAFANA_VERSION]:"TestData spread"},startValue:{[n.MIN_GRAFANA_VERSION]:"TestData start value"},drop:{[n.MIN_GRAFANA_VERSION]:"TestData drop values"}}},DataSourceHttpSettings:{urlInput:{"10.4.0":"data-testid Datasource HTTP settings url",[n.MIN_GRAFANA_VERSION]:"Datasource HTTP settings url"}},Jaeger:{traceIDInput:{[n.MIN_GRAFANA_VERSION]:"Trace ID"}},Prometheus:{configPage:{connectionSettings:{[n.MIN_GRAFANA_VERSION]:"Data source connection URL"},manageAlerts:{"10.4.0":"prometheus-alerts-manager"},allowAsRecordingRulesTarget:{"12.1.0":"prometheus-recording-rules-target"},scrapeInterval:{"10.4.0":"data-testid scrape interval"},queryTimeout:{"10.4.0":"data-testid query timeout"},defaultEditor:{"10.4.0":"data-testid default editor"},disableMetricLookup:{"10.4.0":"disable-metric-lookup"},prometheusType:{"10.4.0":"data-testid prometheus type"},prometheusVersion:{"10.4.0":"data-testid prometheus version"},cacheLevel:{"10.4.0":"data-testid cache level"},incrementalQuerying:{"10.4.0":"prometheus-incremental-querying"},queryOverlapWindow:{"10.4.0":"data-testid query overlap window"},disableRecordingRules:{"10.4.0":"disable-recording-rules"},customQueryParameters:{"10.4.0":"data-testid custom query parameters"},httpMethod:{"10.4.0":"data-testid http method"},exemplarsAddButton:{"10.3.0":"data-testid Add exemplar config button",[n.MIN_GRAFANA_VERSION]:"Add exemplar config button"},internalLinkSwitch:{"10.3.0":"data-testid Internal link switch",[n.MIN_GRAFANA_VERSION]:"Internal link switch"},codeModeMetricNamesSuggestionLimit:{"11.1.0":"data-testid code mode metric names suggestion limit"},seriesLimit:{"12.0.2":"data-testid maximum series limit"}},queryEditor:{explain:{"10.4.0":"data-testid prometheus explain switch wrapper"},editorToggle:{"10.4.0":"data-testid QueryEditorModeToggle"},options:{"10.4.0":"data-testid prometheus options"},legend:{"10.4.0":"data-testid prometheus legend wrapper"},format:{"10.4.0":"data-testid prometheus format"},step:{"10.4.0":"data-testid prometheus-step"},type:{"10.4.0":"data-testid prometheus type"},exemplars:{"10.4.0":"data-testid prometheus-exemplars"},builder:{metricSelect:{"10.4.0":"data-testid metric select"},hints:{"10.4.0":"data-testid prometheus hints"},metricsExplorer:{"10.4.0":"data-testid metrics explorer"},queryAdvisor:{"10.4.0":"data-testid query advisor"}},code:{queryField:{"10.4.0":"data-testid prometheus query field"},metricsCountInfo:{"11.1.0":"data-testid metrics count disclaimer"},metricsBrowser:{openButton:{"10.4.0":"data-testid open metrics browser"},selectMetric:{"10.4.0":"data-testid select a metric"},seriesLimit:{"10.3.1":"data-testid series limit"},metricList:{"10.4.0":"data-testid metric list"},labelNamesFilter:{"10.4.0":"data-testid label names filter"},labelValuesFilter:{"10.4.0":"data-testid label values filter"},useQuery:{"10.4.0":"data-testid use query"},useAsRateQuery:{"10.4.0":"data-testid use as rate query"},validateSelector:{"10.4.0":"data-testid validate selector"},clear:{"10.4.0":"data-testid clear"}}}},exemplarMarker:{"10.3.0":"data-testid Exemplar marker",[n.MIN_GRAFANA_VERSION]:"Exemplar marker"},variableQueryEditor:{queryType:{"10.4.0":"data-testid query type"},labelnames:{metricRegex:{"10.4.0":"data-testid label names metric regex"}},labelValues:{labelSelect:{"10.4.0":"data-testid label values label select"}},metricNames:{metricRegex:{"10.4.0":"data-testid metric names metric regex"}},varQueryResult:{"10.4.0":"data-testid variable query result"},seriesQuery:{"10.4.0":"data-testid prometheus series query"},classicQuery:{"10.4.0":"data-testid prometheus classic query"}},annotations:{minStep:{"10.4.0":"data-testid prometheus-annotation-min-step"},title:{"10.4.0":"data-testid prometheus annotation title"},tags:{"10.4.0":"data-testid prometheus annotation tags"},text:{"10.4.0":"data-testid prometheus annotation text"},seriesValueAsTimestamp:{"10.4.0":"data-testid prometheus annotation series value as timestamp"}}}},Menu:{MenuComponent:{[n.MIN_GRAFANA_VERSION]:e=>`${e} menu`},MenuGroup:{[n.MIN_GRAFANA_VERSION]:e=>`${e} menu group`},MenuItem:{[n.MIN_GRAFANA_VERSION]:e=>`${e} menu item`},SubMenu:{container:{"10.3.0":"data-testid SubMenu container",[n.MIN_GRAFANA_VERSION]:"SubMenu container"},icon:{"10.3.0":"data-testid SubMenu icon",[n.MIN_GRAFANA_VERSION]:"SubMenu icon"}}},Panels:{Panel:{title:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Panel header ${e}`},content:{"11.1.0":"data-testid panel content"},headerContainer:{"9.5.0":"data-testid header-container"},headerItems:{"10.2.0":e=>`data-testid Panel header item ${e}`},menuItems:{"9.5.0":e=>`data-testid Panel menu item ${e}`},menu:{"9.5.0":e=>`data-testid Panel menu ${e}`},containerByTitle:{[n.MIN_GRAFANA_VERSION]:e=>`${e} panel`},headerCornerInfo:{[n.MIN_GRAFANA_VERSION]:e=>`Panel header ${e}`},status:{"10.2.0":e=>`data-testid Panel status ${e}`,[n.MIN_GRAFANA_VERSION]:e=>"Panel status"},loadingBar:{"10.0.0":()=>"Panel loading bar"},PanelNonApplicableDrilldownsSubHeader:{"12.4.0":"Panel non-applicable drilldowns subheader"},HoverWidget:{container:{"10.1.0":"data-testid hover-header-container",[n.MIN_GRAFANA_VERSION]:"hover-header-container"},dragIcon:{"10.0.0":"data-testid drag-icon"}},PanelDataErrorMessage:{"10.4.0":"data-testid Panel data error message"},PanelGroupByHeaderAction:{"12.4.0":"data-testid Panel group by header action"}},Visualization:{Graph:{container:{"9.5.0":"Graph container"},VisualizationTab:{legendSection:{[n.MIN_GRAFANA_VERSION]:"Legend section"}},Legend:{legendItemAlias:{[n.MIN_GRAFANA_VERSION]:e=>`gpl alias ${e}`},showLegendSwitch:{[n.MIN_GRAFANA_VERSION]:"gpl show legend"}},xAxis:{labels:{[n.MIN_GRAFANA_VERSION]:()=>"div.flot-x-axis > div.flot-tick-label"}}},BarGauge:{valueV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Bar gauge value"}},PieChart:{svgSlice:{"10.3.0":"data testid Pie Chart Slice"}},Text:{container:{[n.MIN_GRAFANA_VERSION]:()=>".markdown-html"}},Table:{header:{[n.MIN_GRAFANA_VERSION]:"table header"},footer:{[n.MIN_GRAFANA_VERSION]:"table-footer"},body:{"10.2.0":"data-testid table body"}},TableNG:{RowExpander:{"12.4.0":"data-testid tableng row expander"},Filters:{HeaderButton:{"12.1.0":"data-testid tableng header filter"},Container:{"12.1.0":"data-testid tablenf filter container"},SelectAll:{"12.1.0":"data-testid tableng filter select-all"}},Tooltip:{Wrapper:{"12.2.0":"data-testid tableng tooltip wrapper"},Caret:{"12.2.0":"data-testid tableng tooltip caret"}},Footer:{ReducerLabel:{"12.2.0":"data-testid tableng footer reducer-label"},Value:{"12.2.0":"data-testid tableng footer value"}}},Tooltip:{Wrapper:{"12.3.0":"data-testid viz-tooltip-wrapper"}},Gauge:{Container:{"12.4.0":"data-testid gauge container"}}}},VizLegend:{seriesName:{"10.3.0":e=>`data-testid VizLegend series ${e}`}},Drawer:{General:{title:{[n.MIN_GRAFANA_VERSION]:e=>`Drawer title ${e}`},expand:{[n.MIN_GRAFANA_VERSION]:"Drawer expand"},contract:{[n.MIN_GRAFANA_VERSION]:"Drawer contract"},close:{"10.3.0":"data-testid Drawer close",[n.MIN_GRAFANA_VERSION]:"Drawer close"},rcContentWrapper:{"9.4.0":()=>".rc-drawer-content-wrapper"},subtitle:{"10.4.0":"data-testid drawer subtitle"}},DashboardSaveDrawer:{saveButton:{"11.1.0":"data-testid Save dashboard drawer button"},saveAsButton:{"11.1.0":"data-testid Save as dashboard drawer button"},saveAsTitleInput:{"11.1.0":"Save dashboard title field"}}},PanelEditor:{General:{content:{"11.1.0":"data-testid Panel editor content","8.0.0":"Panel editor content"}},OptionsPane:{content:{"11.1.0":"data-testid Panel editor option pane content",[n.MIN_GRAFANA_VERSION]:"Panel editor option pane content"},header:{"12.4.0":"data-testid Panel editor OptionsPane header"},select:{[n.MIN_GRAFANA_VERSION]:"Panel editor option pane select"},fieldLabel:{[n.MIN_GRAFANA_VERSION]:e=>`${e} field property editor`},fieldInput:{"11.0.0":e=>`data-testid Panel editor option pane field input ${e}`}},DataPane:{content:{"11.1.0":"data-testid Panel editor data pane content",[n.MIN_GRAFANA_VERSION]:"Panel editor data pane content"}},applyButton:{"9.2.0":"data-testid Apply changes and go back to dashboard","9.1.0":"Apply changes and go back to dashboard","8.0.0":"panel editor apply"},toggleVizPicker:{"10.0.0":"data-testid toggle-viz-picker","8.0.0":"toggle-viz-picker"},toggleVizOptions:{"10.1.0":"data-testid toggle-viz-options",[n.MIN_GRAFANA_VERSION]:"toggle-viz-options"},toggleTableView:{"11.1.0":"data-testid toggle-table-view",[n.MIN_GRAFANA_VERSION]:"toggle-table-view"},showZoomField:{"10.2.0":"Map controls Show zoom control field property editor"},showAttributionField:{"10.2.0":"Map controls Show attribution field property editor"},showScaleField:{"10.2.0":"Map controls Show scale field property editor"},showMeasureField:{"10.2.0":"Map controls Show measure tools field property editor"},showDebugField:{"10.2.0":"Map controls Show debug field property editor"},measureButton:{"12.1.0":"data-testid panel-editor-measure-button","9.2.0":"show measure tools"},Outline:{section:{"12.0.0":"data-testid Outline section"},node:{"12.0.0":e=>`data-testid outline node ${e}`},item:{"12.0.0":e=>`data-testid outline item ${e}`}},ElementEditPane:{variableType:{"12.0.0":e=>`data-testid variable type ${e}`},addVariableButton:{"12.0.0":"data-testid add variable button"},variableNameInput:{"12.0.0":"data-testid variable name input"},variableLabelInput:{"12.0.0":"data-testid variable label input"},AutoGridLayout:{minColumnWidth:{"12.1.0":"data-testid min column width selector"},customMinColumnWidth:{"12.1.0":"data-testid custom min column width input"},clearCustomMinColumnWidth:{"12.1.0":"data-testid clear custom min column width input"},maxColumns:{"12.1.0":"data-testid max columns selector"},rowHeight:{"12.1.0":"data-testid row height selector"},customRowHeight:{"12.1.0":"data-testid custom row height input"},clearCustomRowHeight:{"12.1.0":"data-testid clear custom row height input"},fillScreen:{"12.1.0":"data-testid fill screen switch"}},TabsLayout:{titleInput:{"12.2.0":"data-testid tab title input"}},RowsLayout:{titleInput:{"12.3.0":"data-testid row title input"}}}},PanelInspector:{Data:{content:{[n.MIN_GRAFANA_VERSION]:"Panel inspector Data content"}},Stats:{content:{[n.MIN_GRAFANA_VERSION]:"Panel inspector Stats content"}},Json:{content:{"11.1.0":"data-testid Panel inspector Json content",[n.MIN_GRAFANA_VERSION]:"Panel inspector Json content"}},Query:{content:{[n.MIN_GRAFANA_VERSION]:"Panel inspector Query content"},refreshButton:{[n.MIN_GRAFANA_VERSION]:"Panel inspector Query refresh button"},jsonObjectKeys:{[n.MIN_GRAFANA_VERSION]:()=>".json-formatter-key"}}},Tab:{title:{"11.2.0":e=>`data-testid Tab ${e}`},active:{[n.MIN_GRAFANA_VERSION]:()=>'[class*="-activeTabStyle"]'}},RefreshPicker:{runButtonV2:{[n.MIN_GRAFANA_VERSION]:"data-testid RefreshPicker run button"},intervalButtonV2:{[n.MIN_GRAFANA_VERSION]:"data-testid RefreshPicker interval button"}},QueryTab:{content:{[n.MIN_GRAFANA_VERSION]:"Query editor tab content"},queryInspectorButton:{[n.MIN_GRAFANA_VERSION]:"Query inspector button"},queryHistoryButton:{"10.2.0":"data-testid query-history-button",[n.MIN_GRAFANA_VERSION]:"query-history-button"},addQuery:{"10.2.0":"data-testid query-tab-add-query",[n.MIN_GRAFANA_VERSION]:"Query editor add query button"},addQueryFromLibrary:{"11.5.0":"data-testid query-tab-add-query-from-library"},queryGroupTopSection:{"11.2.0":"data-testid query group top section"},addExpression:{"11.2.0":"data-testid query-tab-add-expression"}},QueryHistory:{queryText:{"9.0.0":"Query text"}},QueryEditorRows:{rows:{[n.MIN_GRAFANA_VERSION]:"Query editor row"}},QueryEditorRow:{actionButton:{"10.4.0":e=>`data-testid ${e}`},title:{[n.MIN_GRAFANA_VERSION]:e=>`Query editor row title ${e}`},container:{[n.MIN_GRAFANA_VERSION]:e=>`Query editor row ${e}`}},AlertTab:{content:{"10.2.3":"data-testid Alert editor tab content",[n.MIN_GRAFANA_VERSION]:"Alert editor tab content"}},AlertRules:{groupToggle:{"11.0.0":"data-testid group-collapse-toggle"},toggle:{"11.0.0":"data-testid collapse-toggle"},expandedContent:{"11.0.0":"data-testid expanded-content"},previewButton:{"11.1.0":"data-testid alert-rule preview-button"},ruleNameField:{"11.1.0":"data-testid alert-rule name-field"},newFolderButton:{"11.1.0":"data-testid alert-rule new-folder-button"},newFolderNameField:{"11.1.0":"data-testid alert-rule name-folder-name-field"},newFolderNameCreateButton:{"11.1.0":"data-testid alert-rule name-folder-name-create-button"},newEvaluationGroupButton:{"11.1.0":"data-testid alert-rule new-evaluation-group-button"},newEvaluationGroupName:{"11.1.0":"data-testid alert-rule new-evaluation-group-name"},newEvaluationGroupInterval:{"11.1.0":"data-testid alert-rule new-evaluation-group-interval"},newEvaluationGroupCreate:{"11.1.0":"data-testid alert-rule new-evaluation-group-create-button"},step:{"11.5.0":e=>`data-testid alert-rule step-${e}`},stepAdvancedModeSwitch:{"11.5.0":e=>`data-testid advanced-mode-switch step-${e}`}},Alert:{alertV2:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Alert ${e}`}},TransformTab:{content:{"10.1.0":"data-testid Transform editor tab content",[n.MIN_GRAFANA_VERSION]:"Transform editor tab content"},newTransform:{"10.1.0":e=>`data-testid New transform ${e}`},transformationEditor:{"10.1.0":e=>`data-testid Transformation editor ${e}`},transformationEditorDebugger:{"10.1.0":e=>`data-testid Transformation editor debugger ${e}`}},Transforms:{card:{"10.1.0":e=>`data-testid New transform ${e}`},disableTransformationButton:{"10.4.0":"data-testid Disable transformation button"},Reduce:{modeLabel:{"10.2.3":"data-testid Transform mode label",[n.MIN_GRAFANA_VERSION]:"Transform mode label"},calculationsLabel:{"10.2.3":"data-testid Transform calculations label",[n.MIN_GRAFANA_VERSION]:"Transform calculations label"}},SpatialOperations:{actionLabel:{"9.1.2":"root Action field property editor"},locationLabel:{"10.2.0":"root Location Mode field property editor"},location:{autoOption:{"9.1.2":"Auto location option"},coords:{option:{"9.1.2":"Coords location option"},latitudeFieldLabel:{"9.1.2":"root Latitude field field property editor"},longitudeFieldLabel:{"9.1.2":"root Longitude field field property editor"}},geohash:{option:{"9.1.2":"Geohash location option"},geohashFieldLabel:{"9.1.2":"root Geohash field field property editor"}},lookup:{option:{"9.1.2":"Lookup location option"},lookupFieldLabel:{"9.1.2":"root Lookup field field property editor"},gazetteerFieldLabel:{"9.1.2":"root Gazetteer field property editor"}}}},searchInput:{"10.2.3":"data-testid search transformations",[n.MIN_GRAFANA_VERSION]:"search transformations"},noTransformationsMessage:{"10.2.3":"data-testid no transformations message"},addTransformationButton:{"10.1.0":"data-testid add transformation button",[n.MIN_GRAFANA_VERSION]:"add transformation button"},goToQueriesButton:{"10.4.0":"data-testid go to queries button",[n.MIN_GRAFANA_VERSION]:"go to queries button"},removeAllTransformationsButton:{"10.4.0":"data-testid remove all transformations button"}},NavBar:{Configuration:{button:{"9.5.0":"Configuration"}},Toggle:{button:{"10.2.3":"data-testid Toggle menu",[n.MIN_GRAFANA_VERSION]:"Toggle menu"}},Reporting:{button:{"9.5.0":"Reporting"}}},NavMenu:{Menu:{"10.2.3":"data-testid navigation mega-menu"},item:{"9.5.0":"data-testid Nav menu item"}},NavToolbar:{container:{"9.4.0":"data-testid Nav toolbar"},commandPaletteTrigger:{"11.5.0":"data-testid Command palette trigger"},shareDashboard:{"11.1.0":"data-testid Share dashboard"},markAsFavorite:{"11.1.0":"data-testid Mark as favorite"},editDashboard:{editButton:{"11.1.0":"data-testid Edit dashboard button"},saveButton:{"11.1.0":"data-testid Save dashboard button"},exitButton:{"11.1.0":"data-testid Exit edit mode button"},settingsButton:{"11.1.0":"data-testid Dashboard settings"},addRowButton:{"11.1.0":"data-testid Add row button"},addLibraryPanelButton:{"11.1.0":"data-testid Add a panel from the panel library button"},addVisualizationButton:{"11.1.0":"data-testid Add new visualization menu item"},pastePanelButton:{"11.1.0":"data-testid Paste panel button"},discardChangesButton:{"11.1.0":"data-testid Discard changes button"},discardLibraryPanelButton:{"11.1.0":"data-testid Discard library panel button"},unlinkLibraryPanelButton:{"11.1.0":"data-testid Unlink library panel button"},saveLibraryPanelButton:{"11.1.0":"data-testid Save library panel button"},backToDashboardButton:{"11.1.0":"data-testid Back to dashboard button"}}},PageToolbar:{container:{[n.MIN_GRAFANA_VERSION]:()=>".page-toolbar"},item:{[n.MIN_GRAFANA_VERSION]:e=>`${e}`},itemButton:{"9.5.0":e=>`data-testid ${e}`}},QueryEditorToolbarItem:{button:{[n.MIN_GRAFANA_VERSION]:e=>`QueryEditor toolbar item button ${e}`}},BackButton:{backArrow:{"10.3.0":"data-testid Go Back",[n.MIN_GRAFANA_VERSION]:"Go Back"}},OptionsGroup:{group:{"11.1.0":e=>e?`data-testid Options group ${e}`:"data-testid Options group",[n.MIN_GRAFANA_VERSION]:e=>e?`Options group ${e}`:"Options group"},toggle:{"11.1.0":e=>e?`data-testid Options group ${e} toggle`:"data-testid Options group toggle",[n.MIN_GRAFANA_VERSION]:e=>e?`Options group ${e} toggle`:"Options group toggle"}},PluginVisualization:{item:{"12.4.0":e=>`data-testid Plugin visualization item ${e}`,[n.MIN_GRAFANA_VERSION]:e=>`Plugin visualization item ${e}`},current:{[n.MIN_GRAFANA_VERSION]:()=>'[class*="-currentVisualizationItem"]'}},Select:{menu:{"11.5.0":"data-testid Select menu",[n.MIN_GRAFANA_VERSION]:"Select options menu"},option:{"11.1.0":"data-testid Select option",[n.MIN_GRAFANA_VERSION]:"Select option"},toggleAllOptions:{"11.3.0":"data-testid toggle all options"},input:{[n.MIN_GRAFANA_VERSION]:()=>'input[id*="time-options-input"]'},singleValue:{[n.MIN_GRAFANA_VERSION]:()=>'div[class*="-singleValue"]'}},FieldConfigEditor:{content:{[n.MIN_GRAFANA_VERSION]:"Field config editor content"}},OverridesConfigEditor:{content:{[n.MIN_GRAFANA_VERSION]:"Field overrides editor content"}},FolderPicker:{containerV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Folder picker select container"},input:{"10.4.0":"data-testid folder-picker-input"}},ReadonlyFolderPicker:{container:{[n.MIN_GRAFANA_VERSION]:"data-testid Readonly folder picker select container"}},DataSourcePicker:{container:{"10.0.0":"data-testid Data source picker select container","8.0.0":"Data source picker select container"},inputV2:{"10.1.0":"data-testid Select a data source",[n.MIN_GRAFANA_VERSION]:"Select a data source"},dataSourceList:{"10.4.0":"data-testid Data source list dropdown"},advancedModal:{dataSourceList:{"10.4.0":"data-testid Data source list"},builtInDataSourceList:{"10.4.0":"data-testid Built in data source list"}}},TimeZonePicker:{containerV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Time zone picker select container"},changeTimeSettingsButton:{"11.0.0":"data-testid Time zone picker Change time settings button"}},WeekStartPicker:{containerV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Choose starting day of the week"},placeholder:{[n.MIN_GRAFANA_VERSION]:"Choose starting day of the week"}},TraceViewer:{spanBar:{"9.0.0":"data-testid SpanBar--wrapper"}},QueryField:{container:{"10.3.0":"data-testid Query field",[n.MIN_GRAFANA_VERSION]:"Query field"}},QueryBuilder:{queryPatterns:{"10.3.0":"data-testid Query patterns",[n.MIN_GRAFANA_VERSION]:"Query patterns"},labelSelect:{"10.3.0":"data-testid Select label",[n.MIN_GRAFANA_VERSION]:"Select label"},inputSelect:{"11.1.0":"data-testid Select label-input"},valueSelect:{"10.3.0":"data-testid Select value",[n.MIN_GRAFANA_VERSION]:"Select value"},matchOperatorSelect:{"10.3.0":"data-testid Select match operator",[n.MIN_GRAFANA_VERSION]:"Select match operator"}},ValuePicker:{button:{"10.3.0":e=>`data-testid Value picker button ${e}`},select:{"10.3.0":e=>`data-testid Value picker select ${e}`}},Search:{sectionV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Search section"},itemsV2:{[n.MIN_GRAFANA_VERSION]:"data-testid Search items"},cards:{[n.MIN_GRAFANA_VERSION]:"data-testid Search cards"},collapseFolder:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Collapse folder ${e}`},expandFolder:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Expand folder ${e}`},dashboardItem:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Dashboard search item ${e}`},dashboardCard:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Search card ${e}`},folderHeader:{"9.3.0":e=>`data-testid Folder header ${e}`},folderContent:{"9.3.0":e=>`data-testid Folder content ${e}`},dashboardItems:{[n.MIN_GRAFANA_VERSION]:"data-testid Dashboard search item"}},DashboardLinks:{container:{[n.MIN_GRAFANA_VERSION]:"data-testid Dashboard link container"},dropDown:{[n.MIN_GRAFANA_VERSION]:"data-testid Dashboard link dropdown"},link:{[n.MIN_GRAFANA_VERSION]:"data-testid Dashboard link"}},LoadingIndicator:{icon:{"10.4.0":"data-testid Loading indicator",[n.MIN_GRAFANA_VERSION]:"Loading indicator"}},CallToActionCard:{buttonV2:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid Call to action button ${e}`}},DataLinksContextMenu:{singleLink:{"10.3.0":"data-testid Data link",[n.MIN_GRAFANA_VERSION]:"Data link"}},DataLinksActionsTooltip:{tooltipWrapper:{"12.1.0":"data-testid Data links actions tooltip wrapper"}},CodeEditor:{container:{"10.2.3":"data-testid Code editor container",[n.MIN_GRAFANA_VERSION]:"Code editor container"}},ReactMonacoEditor:{editorLazy:{"11.1.0":"data-testid ReactMonacoEditor editorLazy"}},DashboardImportPage:{textarea:{[n.MIN_GRAFANA_VERSION]:"data-testid-import-dashboard-textarea"},submit:{[n.MIN_GRAFANA_VERSION]:"data-testid-load-dashboard"}},ImportDashboardForm:{name:{[n.MIN_GRAFANA_VERSION]:"data-testid-import-dashboard-title"},submit:{[n.MIN_GRAFANA_VERSION]:"data-testid-import-dashboard-submit"}},PanelAlertTabContent:{content:{"10.2.3":"data-testid Unified alert editor tab content",[n.MIN_GRAFANA_VERSION]:"Unified alert editor tab content"}},VisualizationPreview:{card:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid suggestion-${e}`},confirm:{"12.4.0":e=>`data-testid suggestion-${e} confirm button`}},ColorSwatch:{name:{[n.MIN_GRAFANA_VERSION]:"data-testid-colorswatch"}},DashboardRow:{title:{[n.MIN_GRAFANA_VERSION]:e=>`data-testid dashboard-row-title-${e}`},wrapper:{"12.1.0":e=>`data-testid dashboard-row-wrapper-for-${e}`}},UserProfile:{profileSaveButton:{[n.MIN_GRAFANA_VERSION]:"data-testid-user-profile-save"},preferencesSaveButton:{[n.MIN_GRAFANA_VERSION]:"data-testid-shared-prefs-save"},orgsTable:{[n.MIN_GRAFANA_VERSION]:"data-testid-user-orgs-table"},sessionsTable:{[n.MIN_GRAFANA_VERSION]:"data-testid-user-sessions-table"},extensionPointTabs:{"10.2.3":"data-testid-extension-point-tabs"},extensionPointTab:{"10.2.3":e=>`data-testid-extension-point-tab-${e}`}},FileUpload:{inputField:{"9.0.0":"data-testid-file-upload-input-field"},fileNameSpan:{"9.0.0":"data-testid-file-upload-file-name"}},DebugOverlay:{wrapper:{"12.3.0":"data-testid debug-overlay-wrapper","9.2.0":"debug-overlay"}},OrgRolePicker:{input:{"9.5.0":"Role"}},AnalyticsToolbarButton:{button:{"9.5.0":"Dashboard insights"}},Variables:{variableOption:{"9.5.0":"data-testid variable-option"},variableLinkWrapper:{"11.1.1":"data-testid variable-link-wrapper"}},Annotations:{annotationsTypeInput:{"11.1.0":"data-testid annotations-type-input",[n.MIN_GRAFANA_VERSION]:"annotations-type-input"},annotationsChoosePanelInput:{"11.1.0":"data-testid choose-panels-input",[n.MIN_GRAFANA_VERSION]:"choose-panels-input"},editor:{testButton:{"11.0.0":"data-testid annotations-test-button"},resultContainer:{"11.0.0":"data-testid annotations-query-result-container"}}},Tooltip:{container:{"10.2.0":"data-testid tooltip"}},ReturnToPrevious:{buttonGroup:{"11.0.0":"data-testid dismissable button group"},backButton:{"11.0.0":"data-testid back"},dismissButton:{"11.0.0":"data-testid dismiss"}},SQLQueryEditor:{selectColumn:{"11.0.0":"data-testid select-column"},selectColumnInput:{"11.0.0":"data-testid select-column-input"},selectFunctionParameter:{"11.0.0":e=>`data-testid select-function-parameter-${e}`},selectAggregation:{"11.0.0":"data-testid select-aggregation"},selectAggregationInput:{"11.0.0":"data-testid select-aggregation-input"},selectAlias:{"11.0.0":"data-testid select-alias"},selectAliasInput:{"11.0.0":"data-testid select-alias-input"},selectInputParameter:{"11.0.0":"data-testid select-input-parameter"},filterConjunction:{"11.0.0":"data-testid filter-conjunction"},filterField:{"11.0.0":"data-testid filter-field"},filterOperator:{"11.0.0":"data-testid filter-operator"},headerTableSelector:{"11.0.0":"data-testid header-table-selector"},headerFilterSwitch:{"11.0.0":"data-testid header-filter-switch"},headerGroupSwitch:{"11.0.0":"data-testid header-group-switch"},headerOrderSwitch:{"11.0.0":"data-testid header-order-switch"},headerPreviewSwitch:{"11.0.0":"data-testid header-preview-switch"}},EntityNotFound:{container:{"11.2.0":"data-testid entity-not-found"}},Portal:{container:{"11.5.0":"data-testid portal-container"}},ExportImage:{formatOptions:{container:{"12.1.0":"data-testid export-image-format-options"},png:{"12.1.0":"data-testid export-image-format-png"},jpg:{"12.1.0":"data-testid export-image-format-jpg"}},rendererAlert:{container:{"12.1.0":"data-testid export-image-renderer-alert"},title:{"12.1.0":"data-testid export-image-renderer-alert-title"},description:{"12.1.0":"data-testid export-image-renderer-alert-description"}},buttons:{generate:{"12.1.0":"data-testid export-image-generate-button"},download:{"12.1.0":"data-testid export-image-download-button"},cancel:{"12.1.0":"data-testid export-image-cancel-button"}},preview:{container:{"12.1.0":"data-testid export-image-preview-container"},loading:{"12.1.0":"data-testid export-image-preview-loading"},image:{"12.1.0":"data-testid export-image-preview"},error:{container:{"12.1.0":"data-testid export-image-error"},title:{"12.1.0":"data-testid export-image-error-title"},message:{"12.1.0":"data-testid export-image-error-message"}}}},VizTooltipFooter:{buttons:{apply:{"12.1.0":"data-testid viz-tooltip-footer-apply-filters-button"},applyInverse:{"12.1.0":"data-testid viz-tooltip-footer-apply-inverse-filters-button"}}}};t.versionedComponents=a},69698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var n=r(86322),a=r(34230),o=r(82792),i=r(83598);t.windowWhen=function(e){return a.operate(function(t,r){var a,s,l=function(e){a.error(e),r.error(e)},u=function(){var t;null==s||s.unsubscribe(),null==a||a.complete(),a=new n.Subject,r.next(a.asObservable());try{t=i.innerFrom(e())}catch(e){return void l(e)}t.subscribe(s=o.createOperatorSubscriber(r,u,u,l))};u(),t.subscribe(o.createOperatorSubscriber(r,function(e){return a.next(e)},function(){a.complete(),r.complete()},l,function(){null==s||s.unsubscribe(),a=null}))})}},70071:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var n=r(34230),a=r(20073);t.scan=function(e,t){return n.operate(a.scanInternals(e,t,arguments.length>=2,!0))}},70121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var n=r(44757),a=r(34230),o=r(82792);t.skipLast=function(e){return e<=0?n.identity:a.operate(function(t,r){var n=new Array(e),a=0;return t.subscribe(o.createOperatorSubscriber(r,function(t){var o=a++;if(o<e)n[o]=t;else{var i=o%e,s=n[i];n[i]=t,r.next(s)}})),function(){n=null}})}},70320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var n=r(63713),a=r(52850);t.timestamp=function(e){return void 0===e&&(e=n.dateTimestampProvider),a.map(function(t){return{value:t,timestamp:e.now()}})}},70451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var n=r(262),a=r(34230);t.switchScan=function(e,t){return a.operate(function(r,a){var o=t;return n.switchMap(function(t,r){return e(o,t,r)},function(e,t){return o=t,t})(r).subscribe(a),function(){o=null}})}},70719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var n=r(74560),a=r(13769),o=r(42949),i=r(73751),s=r(76628),l=r(83598);t.delayWhen=function e(t,r){return r?function(i){return n.concat(r.pipe(a.take(1),o.ignoreElements()),i.pipe(e(t)))}:s.mergeMap(function(e,r){return l.innerFrom(t(e,r)).pipe(a.take(1),i.mapTo(e))})}},70829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var n=r(36333);t.ObjectUnsubscribedError=n.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},71870:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var a=r(86322),o=r(59705),i=r(34230),s=r(83598),l=r(82792),u=r(87023),c=r(72420);t.windowToggle=function(e,t){return i.operate(function(r,i){var d=[],f=function(e){for(;0<d.length;)d.shift().error(e);i.error(e)};s.innerFrom(e).subscribe(l.createOperatorSubscriber(i,function(e){var r=new a.Subject;d.push(r);var n,p=new o.Subscription;try{n=s.innerFrom(t(e))}catch(e){return void f(e)}i.next(r.asObservable()),p.add(n.subscribe(l.createOperatorSubscriber(i,function(){c.arrRemove(d,r),r.complete(),p.unsubscribe()},u.noop,f)))},u.noop)),r.subscribe(l.createOperatorSubscriber(i,function(e){var t,r,a=d.slice();try{for(var o=n(a),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},function(){for(;0<d.length;)d.shift().complete();i.complete()},f,function(){for(;0<d.length;)d.shift().unsubscribe()}))})}},72247:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFieldConfig:()=>i,defaultOptions:()=>o,pluginVersion:()=>a});var n=r(33300);const a="12.3.1",o={barRadius:0,barWidth:.97,fullHighlight:!1,groupWidth:.7,orientation:n.i.Auto,showValue:n.V.Auto,stacking:n.S.None,xTickLabelRotation:0,xTickLabelSpacing:0},i={fillOpacity:80,gradientMode:n.G.None,lineWidth:1}},72301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var n=r(76628),a=r(44757);t.mergeAll=function(e){return void 0===e&&(e=1/0),n.mergeMap(a.identity,e)}},72420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},72578:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var n=r(97698),a=r(39708);t.partition=function(e,t){return function(r){return[a.filter(e,t)(r),a.filter(n.not(e,t))(r)]}}},73100:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var o=function(e){function t(t,r){return e.call(this)||this}return a(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(59705).Subscription);t.Action=o},73287:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.race=void 0;var o=r(3526),i=r(11199);t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.raceWith.apply(void 0,a([],n(o.argsOrArgArray(e))))}},73313:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Filter mit Schlüssel {{keyLabel}} bearbeiten","managed-filter":"{{origin}} verwalteter Filter","non-applicable":"","remove-filter-with-key":"Filter mit Schlüssel {{keyLabel}} entfernen"},"adhoc-filters-combobox":{"remove-filter-value":"Filterwert entfernen – {{itemLabel}}","use-custom-value":"Benutzerdefinierten Wert verwenden: {{itemLabel}}"},"fallback-page":{content:"Wenn Sie über einen Link hierher gekommen sind, enthält diese Anwendung möglicherweise einen Fehler.",subTitle:"Die URL stimmt mit keiner Seite überein",title:"Nicht gefunden"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Szene ausblenden","expand-button-label":"Szene einblenden","remove-button-label":"Szene entfernen"},"scene-debugger":{"object-details":"Objektdetails","scene-graph":"Szenengraph","title-scene-debugger":"Szenen-Debugger"},"scene-grid-row":{"collapse-row":"Zeile ausblenden","expand-row":"Zeile einblenden"},"scene-refresh-picker":{"text-cancel":"Abbrechen","text-refresh":"Aktualisieren","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Vergleich","button-tooltip":"Zeitrahmenvergleich aktivieren"},splitter:{"aria-label-pane-resize-widget":"Widget zur Größenänderung des Bereichs"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Titel"}},"viz-panel-explore-button":{explore:"Entdecken"},"viz-panel-renderer":{"loading-plugin-panel":"Plugin-Panel wird geladen …","panel-plugin-has-no-panel-component":"Das Panel-Plugin hat keine Panel-Komponente"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Das Rendern von zu vielen Reihen in einem einzigen Panel kann die Leistung beeinträchtigen und das Lesen der Daten erschweren.","warning-message":"Es werden nur {{seriesLimit}} Reihen angezeigt"}},utils:{"controls-label":{"tooltip-remove":"Entfernen"},"loading-indicator":{"content-cancel-query":"Abfrage abbrechen"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Filteroperator bearbeiten"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Filter hinzufügen","title-add-filter":"Filter hinzufügen"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Filter entfernen","key-select":{"placeholder-select-label":"Label auswählen"},"label-select-label":"Label auswählen","title-remove-filter":"Filter entfernen","value-select":{"placeholder-select-value":"Wert auswählen"}},"data-source-variable":{label:{default:"Standard"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"löschen",tooltip:"Wird in diesem Dashboard standardmäßig angewendet. Wenn es bearbeitet wird, wird es auf andere Dashboards übertragen.","tooltip-restore-groupby-set-by-this-dashboard":"Die Einstellung „Gruppieren nach“ von diesem Dashboard wiederherstellen."},"format-registry":{formats:{description:{"commaseparated-values":"Kommagetrennte Werte","double-quoted-values":"Doppelt angegebene Werte","format-date-in-different-ways":"Datum auf verschiedene Arten formatieren","format-multivalued-variables-using-syntax-example":"Formatieren Sie mehrwertige Variablen mit der glob-Syntax, Beispiel {value1,value2}","html-escaping-of-values":"HTML-Escaping von Werten","join-values-with-a-comma":"","json-stringify-value":"JSON-Stringify-Wert","keep-value-as-is":"Wert unverändert lassen","multiple-values-are-formatted-like-variablevalue":"Mehrere Werte werden als variable=value formatiert","single-quoted-values":"Einfach angegebene Werte","useful-escaping-values-taking-syntax-characters":"Nützlich für URL-Escaping-Werte, die URI-Syntaxzeichen nutzen","useful-for-url-escaping-values":"Nützlich für URL-Escaping-Werte","values-are-separated-by-character":"Werte werden durch das Zeichen | getrennt"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Nach Selektor gruppieren","placeholder-group-by-label":"Nach Label gruppieren"},"interval-variable":{"placeholder-select-value":"Wert auswählen"},"loading-options-placeholder":{"loading-options":"Optionen werden geladen …"},"multi-value-apply-button":{apply:"Anwenden"},"no-options-placeholder":{"no-options-found":"Keine Optionen gefunden"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Beim Abrufen der Label ist ein Fehler aufgetreten. Klicken Sie zum Wiederholen"},"test-object-with-variable-dependency":{title:{hello:"Hallo"}},"test-variable":{text:{text:"Text"}},"variable-value-input":{"placeholder-enter-value":"Wert eingeben"},"variable-value-select":{"placeholder-select-value":"Wert auswählen"}}}}},73592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(59396))&&n.__esModule?n:{default:n};var o=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o},73751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var n=r(52850);t.mapTo=function(e){return n.map(function(){return e})}},74006:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Composite:()=>mr,CompositeItem:()=>vr,FloatingArrow:()=>_r,FloatingDelayGroup:()=>Vr,FloatingFocusManager:()=>Sn,FloatingList:()=>lr,FloatingNode:()=>Cr,FloatingOverlay:()=>On,FloatingPortal:()=>fn,FloatingTree:()=>Ir,arrow:()=>zt,autoPlacement:()=>jt,autoUpdate:()=>ht,computePosition:()=>At,detectOverflow:()=>mt,flip:()=>Dt,getOverflowAncestors:()=>C,hide:()=>Lt,inline:()=>Vt,inner:()=>ta,limitShift:()=>Nt,offset:()=>Mt,platform:()=>ft,safePolygon:()=>aa,shift:()=>Tt,size:()=>Ft,useClick:()=>En,useClientPoint:()=>Cn,useDelayGroup:()=>zr,useDelayGroupContext:()=>Lr,useDismiss:()=>Tn,useFloating:()=>Dn,useFloatingNodeId:()=>kr,useFloatingParentNodeId:()=>Rr,useFloatingPortalNode:()=>dn,useFloatingRootContext:()=>Nn,useFloatingTree:()=>Er,useFocus:()=>Fn,useHover:()=>Dr,useId:()=>Sr,useInnerOffset:()=>ra,useInteractions:()=>zn,useListItem:()=>ur,useListNavigation:()=>qn,useMergeRefs:()=>Bt,useRole:()=>Kn,useTransitionStatus:()=>Zn,useTransitionStyles:()=>Jn,useTypeahead:()=>Xn});var n=r(85959);function a(){return"undefined"!=typeof window}function o(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!a()&&(e instanceof Node||e instanceof i(e).Node)}function u(e){return!!a()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!a()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function d(e){return!(!a()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}const f=new Set(["inline","contents"]);function p(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=A(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!f.has(a)}const h=new Set(["table","td","th"]);function m(e){return h.has(o(e))}const v=[":popover-open",":modal"];function g(e){return v.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const b=["transform","translate","scale","rotate","perspective"],y=["transform","translate","scale","rotate","perspective","filter"],w=["paint","layout","strict","content"];function S(e){const t=_(),r=u(e)?A(e):e;return b.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||y.some(e=>(r.willChange||"").includes(e))||w.some(e=>(r.contain||"").includes(e))}function _(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const x=new Set(["html","body","#document"]);function O(e){return x.has(o(e))}function A(e){return i(e).getComputedStyle(e)}function R(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function E(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function k(e){const t=E(e);return O(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&p(t)?t:k(t)}function C(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const a=k(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),s=i(a);if(o){const e=I(s);return t.concat(s,s.visualViewport||[],p(a)?a:[],e&&r?C(e):[])}return t.concat(a,C(a,[],r))}function I(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function P(e){let t=e.activeElement;for(;null!=(null==(r=t)||null==(r=r.shadowRoot)?void 0:r.activeElement);){var r;t=t.shadowRoot.activeElement}return t}function M(e,t){if(!e||!t)return!1;const r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&d(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function T(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function N(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}function D(e){return!(0!==e.mozInputSource||!e.isTrusted)||(L()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function F(e){return!N().includes("jsdom/")&&(!L()&&0===e.width&&0===e.height||L()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function j(){return/apple/i.test(navigator.vendor)}function L(){const e=/android/i;return e.test(T())||e.test(N())}function V(){return T().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function z(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function B(e){return(null==e?void 0:e.ownerDocument)||document}function U(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return null!=r.target&&t.contains(r.target)}function W(e){return"composedPath"in e?e.composedPath()[0]:e.target}const G="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function H(e){return c(e)&&e.matches(G)}function q(e){e.preventDefault(),e.stopPropagation()}function $(e){return!!e&&("combobox"===e.getAttribute("role")&&H(e))}const K=["top","right","bottom","left"],Q=["start","end"],Y=K.reduce((e,t)=>e.concat(t,t+"-"+Q[0],t+"-"+Q[1]),[]),Z=Math.min,J=Math.max,X=Math.round,ee=Math.floor,te=e=>({x:e,y:e}),re={left:"right",right:"left",bottom:"top",top:"bottom"},ne={start:"end",end:"start"};function ae(e,t,r){return J(e,Z(t,r))}function oe(e,t){return"function"==typeof e?e(t):e}function ie(e){return e.split("-")[0]}function se(e){return e.split("-")[1]}function le(e){return"x"===e?"y":"x"}function ue(e){return"y"===e?"height":"width"}const ce=new Set(["top","bottom"]);function de(e){return ce.has(ie(e))?"y":"x"}function fe(e){return le(de(e))}function pe(e,t,r){void 0===r&&(r=!1);const n=se(e),a=fe(e),o=ue(a);let i="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=we(i)),[i,we(i)]}function he(e){return e.replace(/start|end/g,e=>ne[e])}const me=["left","right"],ve=["right","left"],ge=["top","bottom"],be=["bottom","top"];function ye(e,t,r,n){const a=se(e);let o=function(e,t,r){switch(e){case"top":case"bottom":return r?t?ve:me:t?me:ve;case"left":case"right":return t?ge:be;default:return[]}}(ie(e),"start"===r,n);return a&&(o=o.map(e=>e+"-"+a),t&&(o=o.concat(o.map(he)))),o}function we(e){return e.replace(/left|right|bottom|top/g,e=>re[e])}function Se(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function _e(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}var xe=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Oe=xe.join(","),Ae="undefined"==typeof Element,Re=Ae?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ee=!Ae&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},ke=function(e,t){var r;void 0===t&&(t=!0);var n=null==e||null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===n||"true"===n||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):ke(e.parentNode))},Ce=function(e,t,r){if(ke(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Oe));return t&&Re.call(e,Oe)&&n.unshift(e),n=n.filter(r)},Ie=function(e,t,r){for(var n=[],a=Array.from(e);a.length;){var o=a.shift();if(!ke(o,!1))if("SLOT"===o.tagName){var i=o.assignedElements(),s=i.length?i:o.children,l=Ie(s,!0,r);r.flatten?n.push.apply(n,l):n.push({scopeParent:o,candidates:l})}else{Re.call(o,Oe)&&r.filter(o)&&(t||!e.includes(o))&&n.push(o);var u=o.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(o),c=!ke(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&c){var d=Ie(!0===u?o.children:u.children,!0,r);r.flatten?n.push.apply(n,d):n.push({scopeParent:o,candidates:d})}else a.unshift.apply(a,o.children)}}return n},Pe=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Me=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,r=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r}(e))&&!Pe(e)?0:e.tabIndex},Te=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ne=function(e){return"INPUT"===e.tagName},De=function(e){return function(e){return Ne(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,r=e.form||Ee(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var a=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]}(t,e.form);return!a||a===e}(e)},Fe=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},je=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("full-native"===r&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var a=Re.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Re.call(a,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"full-native"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return Fe(e)}else{if("function"==typeof n){for(var o=e;e;){var i=e.parentElement,s=Ee(e);if(i&&!i.shadowRoot&&!0===n(i))return Fe(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=o}if(function(e){var t,r,n,a,o=e&&Ee(e),i=null===(t=o)||void 0===t?void 0:t.host,s=!1;if(o&&o!==e)for(s=!!(null!==(r=i)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(i)||null!=e&&null!==(a=e.ownerDocument)&&void 0!==a&&a.contains(e));!s&&i;){var l,u,c;s=!(null===(u=i=null===(l=o=Ee(i))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},Le=function(e,t){return!(t.disabled||function(e){return Ne(e)&&"hidden"===e.type}(t)||je(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!Re.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ve=function(e,t){return!(De(t)||Me(t)<0||!Le(e,t))},ze=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Be=function(e){var t=[],r=[];return e.forEach(function(e,n){var a=!!e.scopeParent,o=a?e.scopeParent:e,i=function(e,t){var r=Me(e);return r<0&&t&&!Pe(e)?0:r}(o,a),s=a?Be(e.candidates):o;0===i?a?t.push.apply(t,s):t.push(o):r.push({documentOrder:n,tabIndex:i,item:e,isScope:a,content:s})}),r.sort(Te).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Ue=function(e,t){var r;return r=(t=t||{}).getShadowRoot?Ie([e],t.includeContainer,{filter:Ve.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ze}):Ce(e,t.includeContainer,Ve.bind(null,t)),Be(r)},We=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Re.call(e,Oe)&&Ve(t,e)},Ge=r(48398);function He(e,t,r){let{reference:n,floating:a}=e;const o=de(t),i=fe(t),s=ue(i),l=ie(t),u="y"===o,c=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,f=n[s]/2-a[s]/2;let p;switch(l){case"top":p={x:c,y:n.y-a.height};break;case"bottom":p={x:c,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-a.width,y:d};break;default:p={x:n.x,y:n.y}}switch(se(t)){case"start":p[i]-=f*(r&&u?-1:1);break;case"end":p[i]+=f*(r&&u?-1:1)}return p}async function qe(e,t){var r;void 0===t&&(t={});const{x:n,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=oe(t,e),h=Se(p),m=s[f?"floating"===d?"reference":"floating":d],v=_e(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{x:n,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=_e(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:b,strategy:l}):g);return{top:(v.top-w.top+h.top)/y.y,bottom:(w.bottom-v.bottom+h.bottom)/y.y,left:(v.left-w.left+h.left)/y.x,right:(w.right-v.right+h.right)/y.x}}function $e(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ke(e){return K.some(t=>e[t]>=0)}function Qe(e){const t=Z(...e.map(e=>e.left)),r=Z(...e.map(e=>e.top));return{x:t,y:r,width:J(...e.map(e=>e.right))-t,height:J(...e.map(e=>e.bottom))-r}}const Ye=new Set(["left","top"]);function Ze(e){const t=A(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=c(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,s=X(r)!==o||X(n)!==i;return s&&(r=o,n=i),{width:r,height:n,$:s}}function Je(e){return u(e)?e:e.contextElement}function Xe(e){const t=Je(e);if(!c(t))return te(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=Ze(t);let i=(o?X(r.width):r.width)/n,s=(o?X(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const et=te(0);function tt(e){const t=i(e);return _()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:et}function rt(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),o=Je(e);let s=te(1);t&&(n?u(n)&&(s=Xe(n)):s=Xe(e));const l=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==i(e))&&t}(o,r,n)?tt(o):te(0);let c=(a.left+l.x)/s.x,d=(a.top+l.y)/s.y,f=a.width/s.x,p=a.height/s.y;if(o){const e=i(o),t=n&&u(n)?i(n):n;let r=e,a=I(r);for(;a&&n&&t!==r;){const e=Xe(a),t=a.getBoundingClientRect(),n=A(a),o=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=o,d+=s,r=i(a),a=I(r)}}return _e({width:f,height:p,x:c,y:d})}function nt(e,t){const r=R(e).scrollLeft;return t?t.left+r:rt(s(e)).left+r}function at(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-nt(e,r),y:r.top+t.scrollTop}}const ot=new Set(["absolute","fixed"]);function it(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=i(e),n=s(e),a=r.visualViewport;let o=n.clientWidth,l=n.clientHeight,u=0,c=0;if(a){o=a.width,l=a.height;const e=_();(!e||e&&"fixed"===t)&&(u=a.offsetLeft,c=a.offsetTop)}const d=nt(n);if(d<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-a);i<=25&&(o-=i)}else d<=25&&(o+=d);return{width:o,height:l,x:u,y:c}}(e,r);else if("document"===t)n=function(e){const t=s(e),r=R(e),n=e.ownerDocument.body,a=J(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=J(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+nt(e);const l=-r.scrollTop;return"rtl"===A(n).direction&&(i+=J(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:i,y:l}}(s(e));else if(u(t))n=function(e,t){const r=rt(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=c(e)?Xe(e):te(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:n*o.y}}(t,r);else{const r=tt(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return _e(n)}function st(e,t){const r=E(e);return!(r===t||!u(r)||O(r))&&("fixed"===A(r).position||st(r,t))}function lt(e,t,r){const n=c(t),a=s(t),i="fixed"===r,l=rt(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const d=te(0);function f(){d.x=nt(a)}if(n||!n&&!i)if(("body"!==o(t)||p(a))&&(u=R(t)),n){const e=rt(t,!0,i,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else a&&f();i&&!n&&a&&f();const h=!a||n||i?te(0):at(a,u);return{x:l.left+u.scrollLeft-d.x-h.x,y:l.top+u.scrollTop-d.y-h.y,width:l.width,height:l.height}}function ut(e){return"static"===A(e).position}function ct(e,t){if(!c(e)||"fixed"===A(e).position)return null;if(t)return t(e);let r=e.offsetParent;return s(e)===r&&(r=r.ownerDocument.body),r}function dt(e,t){const r=i(e);if(g(e))return r;if(!c(e)){let t=E(e);for(;t&&!O(t);){if(u(t)&&!ut(t))return t;t=E(t)}return r}let n=ct(e,t);for(;n&&m(n)&&ut(n);)n=ct(n,t);return n&&O(n)&&ut(n)&&!S(n)?r:n||function(e){let t=E(e);for(;c(t)&&!O(t);){if(S(t))return t;if(g(t))return null;t=E(t)}return null}(e)||r}const ft={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i="fixed"===a,l=s(n),u=!!t&&g(t.floating);if(n===l||u&&i)return r;let d={scrollLeft:0,scrollTop:0},f=te(1);const h=te(0),m=c(n);if((m||!m&&!i)&&(("body"!==o(n)||p(l))&&(d=R(n)),c(n))){const e=rt(n);f=Xe(n),h.x=e.x+n.clientLeft,h.y=e.y+n.clientTop}const v=!l||m||i?te(0):at(l,d);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-d.scrollLeft*f.x+h.x+v.x,y:r.y*f.y-d.scrollTop*f.y+h.y+v.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const i=[..."clippingAncestors"===r?g(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=C(e,[],!1).filter(e=>u(e)&&"body"!==o(e)),a=null;const i="fixed"===A(e).position;let s=i?E(e):e;for(;u(s)&&!O(s);){const t=A(s),r=S(s);r||"fixed"!==t.position||(a=null),(i?!r&&!a:!r&&"static"===t.position&&a&&ot.has(a.position)||p(s)&&!r&&st(e,s))?n=n.filter(e=>e!==s):a=t,s=E(s)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=i[0],l=i.reduce((e,r)=>{const n=it(t,r,a);return e.top=J(n.top,e.top),e.right=Z(n.right,e.right),e.bottom=Z(n.bottom,e.bottom),e.left=J(n.left,e.left),e},it(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:dt,getElementRects:async function(e){const t=this.getOffsetParent||dt,r=this.getDimensions,n=await r(e.floating);return{reference:lt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Ze(e);return{width:t,height:r}},getScale:Xe,isElement:u,isRTL:function(e){return"rtl"===A(e).direction}};function pt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ht(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=Je(e),d=a||o?[...c?C(c):[],...C(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)});const f=c&&l?function(e,t){let r,n=null;const a=s(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;const h={rootMargin:-ee(d)+"px "+-ee(a.clientWidth-(c+f))+"px "+-ee(a.clientHeight-(d+p))+"px "+-ee(c)+"px",threshold:J(0,Z(1,l))||1};let m=!0;function v(t){const n=t[0].intersectionRatio;if(n!==l){if(!m)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||pt(u,e.getBoundingClientRect())||i(),m=!1}try{n=new IntersectionObserver(v,{...h,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(v,h)}n.observe(e)}(!0),o}(c,r):null;let p,h=-1,m=null;i&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!u&&m.observe(c),m.observe(t));let v=u?rt(e):null;return u&&function t(){const n=rt(e);v&&!pt(v,n)&&r();v=n,p=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(p)}}const mt=qe,vt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:a}=e,o=await(null==n.isRTL?void 0:n.isRTL(a.floating)),i=ie(r),s=se(r),l="y"===de(r),u=Ye.has(i)?-1:1,c=o&&l?-1:1,d=oe(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return i===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},gt=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,a;const{rects:o,middlewareData:i,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:f=Y,autoAlignment:p=!0,...h}=oe(e,t),m=void 0!==d||f===Y?function(e,t,r){return(e?[...r.filter(t=>se(t)===e),...r.filter(t=>se(t)!==e)]:r.filter(e=>ie(e)===e)).filter(r=>!e||se(r)===e||!!t&&he(r)!==r)}(d||null,p,f):f,v=await l.detectOverflow(t,h),g=(null==(r=i.autoPlacement)?void 0:r.index)||0,b=m[g];if(null==b)return{};const y=pe(b,o,await(null==l.isRTL?void 0:l.isRTL(u.floating)));if(s!==b)return{reset:{placement:m[0]}};const w=[v[ie(b)],v[y[0]],v[y[1]]],S=[...(null==(n=i.autoPlacement)?void 0:n.overflows)||[],{placement:b,overflows:w}],_=m[g+1];if(_)return{data:{index:g+1,overflows:S},reset:{placement:_}};const x=S.map(e=>{const t=se(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),O=(null==(a=x.filter(e=>e[2].slice(0,se(e[0])?2:3).every(e=>e<=0))[0])?void 0:a[0])||x[0][0];return O!==s?{data:{index:g+1,overflows:S},reset:{placement:O}}:{}}}},bt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=oe(e,t),c={x:r,y:n},d=await o.detectOverflow(t,u),f=de(ie(a)),p=le(f);let h=c[p],m=c[f];if(i){const e="y"===p?"bottom":"right";h=ae(h+d["y"===p?"top":"left"],h,h-d[e])}if(s){const e="y"===f?"bottom":"right";m=ae(m+d["y"===f?"top":"left"],m,m-d[e])}const v=l.fn({...t,[p]:h,[f]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:i,[f]:s}}}}}},yt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=oe(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const g=ie(a),b=de(s),y=ie(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),S=f||(y||!m?[we(s)]:function(e){const t=we(e);return[he(e),t,he(t)]}(s)),_="none"!==h;!f&&_&&S.push(...ye(s,m,h,w));const x=[s,...S],O=await l.detectOverflow(t,v),A=[];let R=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&A.push(O[g]),d){const e=pe(a,i,w);A.push(O[e[0]],O[e[1]])}if(R=[...R,{placement:a,overflows:A}],!A.every(e=>e<=0)){var E,k;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=x[e];if(t){if(!("alignment"===d&&b!==de(t))||R.every(e=>de(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:R},reset:{placement:t}}}let r=null==(k=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:k.placement;if(!r)switch(p){case"bestFit":{var C;const e=null==(C=R.filter(e=>{if(_){const t=de(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:C[0];e&&(r=e);break}case"initialPlacement":r=s}if(a!==r)return{reset:{placement:r}}}return{}}}},wt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...u}=oe(e,t),c=await i.detectOverflow(t,u),d=ie(a),f=se(a),p="y"===de(a),{width:h,height:m}=o.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const b=m-c.top-c.bottom,y=h-c.left-c.right,w=Z(m-c[v],b),S=Z(h-c[g],y),_=!t.middlewareData.shift;let x=w,O=S;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(O=y),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(x=b),_&&!f){const e=J(c.left,0),t=J(c.right,0),r=J(c.top,0),n=J(c.bottom,0);p?O=h-2*(0!==e||0!==t?e+t:J(c.left,c.right)):x=m-2*(0!==r||0!==n?r+n:J(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:x});const A=await i.getDimensions(s.floating);return h!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}},St=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:a="referenceHidden",...o}=oe(e,t);switch(a){case"referenceHidden":{const e=$e(await n.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ke(e)}}}case"escaped":{const e=$e(await n.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Ke(e)}}}default:return{}}}}},_t=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=oe(e,t)||{};if(null==u)return{};const d=Se(c),f={x:r,y:n},p=fe(a),h=ue(p),m=await i.getDimensions(u),v="y"===p,g=v?"top":"left",b=v?"bottom":"right",y=v?"clientHeight":"clientWidth",w=o.reference[h]+o.reference[p]-f[p]-o.floating[h],S=f[p]-o.reference[p],_=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let x=_?_[y]:0;x&&await(null==i.isElement?void 0:i.isElement(_))||(x=s.floating[y]||o.floating[h]);const O=w/2-S/2,A=x/2-m[h]/2-1,R=Z(d[g],A),E=Z(d[b],A),k=R,C=x-m[h]-E,I=x/2-m[h]/2+O,P=ae(k,I,C),M=!l.arrow&&null!=se(a)&&I!==P&&o.reference[h]/2-(I<k?R:E)-m[h]/2<0,T=M?I<k?I-k:I-C:0;return{[p]:f[p]+T,data:{[p]:P,centerOffset:I-P-T,...M&&{alignmentOffset:T}},reset:M}}}),xt=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:a,platform:o,strategy:i}=t,{padding:s=2,x:l,y:u}=oe(e,t),c=Array.from(await(null==o.getClientRects?void 0:o.getClientRects(n.reference))||[]),d=function(e){const t=e.slice().sort((e,t)=>e.y-t.y),r=[];let n=null;for(let e=0;e<t.length;e++){const a=t[e];!n||a.y-n.y>n.height/2?r.push([a]):r[r.length-1].push(a),n=a}return r.map(e=>_e(Qe(e)))}(c),f=_e(Qe(c)),p=Se(s);const h=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=u)return d.find(e=>l>e.left-p.left&&l<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)||f;if(d.length>=2){if("y"===de(r)){const e=d[0],t=d[d.length-1],n="top"===ie(r),a=e.top,o=t.bottom,i=n?e.left:t.left,s=n?e.right:t.right;return{top:a,bottom:o,left:i,right:s,width:s-i,height:o-a,x:i,y:a}}const e="left"===ie(r),t=J(...d.map(e=>e.right)),n=Z(...d.map(e=>e.left)),a=d.filter(r=>e?r.left===n:r.right===t),o=a[0].top,i=a[a.length-1].bottom;return{top:o,bottom:i,left:n,right:t,width:t-n,height:i-o,x:n,y:o}}return f}},floating:n.floating,strategy:i});return a.reference.x!==h.reference.x||a.reference.y!==h.reference.y||a.reference.width!==h.reference.width||a.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Ot=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=oe(e,t),c={x:r,y:n},d=de(a),f=le(d);let p=c[f],h=c[d];const m=oe(s,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+v.mainAxis,r=o.reference[f]+o.reference[e]-v.mainAxis;p<t?p=t:p>r&&(p=r)}if(u){var g,b;const e="y"===f?"width":"height",t=Ye.has(ie(a)),r=o.reference[d]-o.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),n=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?v.crossAxis:0);h<r?h=r:h>n&&(h=n)}return{[f]:p,[d]:h}}}},At=(e,t,r)=>{const n=new Map,a={platform:ft,...r},o={...a.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=He(u,n,l),f=n,p={},h=0;for(let r=0;r<s.length;r++){var m;const{name:o,fn:v}=s[r],{x:g,y:b,data:y,reset:w}=await v({x:c,y:d,initialPlacement:n,placement:f,strategy:a,middlewareData:p,rects:u,platform:{...i,detectOverflow:null!=(m=i.detectOverflow)?m:qe},elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=b?b:d,p={...p,[o]:{...p[o],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):w.rects),({x:c,y:d}=He(u,f,l))),r=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:p}})(e,t,{...a,platform:o})};var Rt="undefined"!=typeof document?n.useLayoutEffect:function(){};function Et(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Et(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!==n--;){const r=a[n];if(("_owner"!==r||!e.$$typeof)&&!Et(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function kt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ct(e,t){const r=kt(e);return Math.round(t*r)/r}function It(e){const t=n.useRef(e);return Rt(()=>{t.current=e}),t}const Pt=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(a=r,{}.hasOwnProperty.call(a,"current"))?null!=r.current?_t({element:r.current,padding:n}).fn(t):{}:r?_t({element:r,padding:n}).fn(t):{};var a}}),Mt=(e,t)=>({...vt(e),options:[e,t]}),Tt=(e,t)=>({...bt(e),options:[e,t]}),Nt=(e,t)=>({...Ot(e),options:[e,t]}),Dt=(e,t)=>({...yt(e),options:[e,t]}),Ft=(e,t)=>({...wt(e),options:[e,t]}),jt=(e,t)=>({...gt(e),options:[e,t]}),Lt=(e,t)=>({...St(e),options:[e,t]}),Vt=(e,t)=>({...xt(e),options:[e,t]}),zt=(e,t)=>({...Pt(e),options:[e,t]});function Bt(e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}const Ut={...n},Wt=Ut.useInsertionEffect||(e=>e());function Gt(e){const t=n.useRef(()=>{0});return Wt(()=>{t.current=e}),n.useCallback(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}const Ht="ArrowUp",qt="ArrowDown",$t="ArrowLeft",Kt="ArrowRight";function Qt(e,t,r){return Math.floor(e/t)!==r}function Yt(e,t){return t<0||t>=e.current.length}function Zt(e,t){return Xt(e,{disabledIndices:t})}function Jt(e,t){return Xt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Xt(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:a,amount:o=1}=void 0===t?{}:t;const i=e.current;let s=r;do{s+=n?-o:o}while(s>=0&&s<=i.length-1&&ar(i,s,a));return s}function er(e,t){let{event:r,orientation:n,loop:a,rtl:o,cols:i,disabledIndices:s,minIndex:l,maxIndex:u,prevIndex:c,stopEvent:d=!1}=t,f=c;if(r.key===Ht){if(d&&q(r),-1===c)f=u;else if(f=Xt(e,{startingIndex:f,amount:i,decrement:!0,disabledIndices:s}),a&&(c-i<l||f<0)){const e=c%i,t=u%i,r=u-(t-e);f=t===e?u:t>e?r:r-i}Yt(e,f)&&(f=c)}if(r.key===qt&&(d&&q(r),-1===c?f=l:(f=Xt(e,{startingIndex:c,amount:i,disabledIndices:s}),a&&c+i>u&&(f=Xt(e,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),Yt(e,f)&&(f=c)),"both"===n){const t=ee(c/i);r.key===(o?$t:Kt)&&(d&&q(r),c%i!==i-1?(f=Xt(e,{startingIndex:c,disabledIndices:s}),a&&Qt(f,i,t)&&(f=Xt(e,{startingIndex:c-c%i-1,disabledIndices:s}))):a&&(f=Xt(e,{startingIndex:c-c%i-1,disabledIndices:s})),Qt(f,i,t)&&(f=c)),r.key===(o?Kt:$t)&&(d&&q(r),c%i!==0?(f=Xt(e,{startingIndex:c,decrement:!0,disabledIndices:s}),a&&Qt(f,i,t)&&(f=Xt(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):a&&(f=Xt(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),Qt(f,i,t)&&(f=c));const n=ee(u/i)===t;Yt(e,f)&&(f=a&&n?r.key===(o?Kt:$t)?u:Xt(e,{startingIndex:c-c%i-1,disabledIndices:s}):c)}return f}function tr(e,t,r){const n=[];let a=0;return e.forEach((e,o)=>{let{width:i,height:s}=e,l=!1;for(r&&(a=0);!l;){const e=[];for(let r=0;r<i;r++)for(let n=0;n<s;n++)e.push(a+r+n*t);a%t+i<=t&&e.every(e=>null==n[e])?(e.forEach(e=>{n[e]=o}),l=!0):a++}}),[...n]}function rr(e,t,r,n,a){if(-1===e)return-1;const o=r.indexOf(e),i=t[e];switch(a){case"tl":return o;case"tr":return i?o+i.width-1:o;case"bl":return i?o+(i.height-1)*n:o;case"br":return r.lastIndexOf(e)}}function nr(e,t){return t.flatMap((t,r)=>e.includes(t)?[r]:[])}function ar(e,t,r){if(r)return r.includes(t);const n=e[t];return null==n||n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")}var or="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function ir(e,t){const r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}const sr=n.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function lr(e){const{children:t,elementsRef:r,labelsRef:a}=e,[o,i]=n.useState(()=>new Map),s=n.useCallback(e=>{i(t=>new Map(t).set(e,null))},[]),l=n.useCallback(e=>{i(t=>{const r=new Map(t);return r.delete(e),r})},[]);return or(()=>{const e=new Map(o);Array.from(e.keys()).sort(ir).forEach((t,r)=>{e.set(t,r)}),function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e.entries())if(n!==t.get(r))return!1;return!0}(o,e)||i(e)},[o]),n.createElement(sr.Provider,{value:n.useMemo(()=>({register:s,unregister:l,map:o,elementsRef:r,labelsRef:a}),[s,l,o,r,a])},t)}function ur(e){void 0===e&&(e={});const{label:t}=e,{register:r,unregister:a,map:o,elementsRef:i,labelsRef:s}=n.useContext(sr),[l,u]=n.useState(null),c=n.useRef(null),d=n.useCallback(e=>{if(c.current=e,null!==l&&(i.current[l]=e,s)){var r;const n=void 0!==t;s.current[l]=n?t:null!=(r=null==e?void 0:e.textContent)?r:null}},[l,i,s,t]);return or(()=>{const e=c.current;if(e)return r(e),()=>{a(e)}},[r,a]),or(()=>{const e=c.current?o.get(c.current):null;null!=e&&u(e)},[o]),n.useMemo(()=>({ref:d,index:null==l?-1:l}),[l,d])}function cr(e,t){return"function"==typeof e?e(t):e?n.cloneElement(e,t):n.createElement("div",t)}const dr=n.createContext({activeIndex:0,onNavigate:()=>{}}),fr=[$t,Kt],pr=[Ht,qt],hr=[...fr,...pr],mr=n.forwardRef(function(e,t){const{render:r,orientation:a="both",loop:o=!0,rtl:i=!1,cols:s=1,disabledIndices:l,activeIndex:u,onNavigate:c,itemSizes:d,dense:f=!1,...p}=e,[h,m]=n.useState(0),v=null!=u?u:h,g=Gt(null!=c?c:m),b=n.useRef([]),y=r&&"function"!=typeof r?r.props:{},w=n.useMemo(()=>({activeIndex:v,onNavigate:g}),[v,g]),S=s>1;const _={...p,...y,ref:t,"aria-orientation":"both"===a?void 0:a,onKeyDown(e){null==p.onKeyDown||p.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!hr.includes(e.key))return;let t=v;const r=Zt(b,l),n=Jt(b,l),u=i?$t:Kt,c=i?Kt:$t;if(S){const c=d||Array.from({length:b.current.length},()=>({width:1,height:1})),p=tr(c,s,f),h=p.findIndex(e=>null!=e&&!ar(b.current,e,l)),m=p.reduce((e,t,r)=>null==t||ar(b.current,t,l)?e:r,-1),g=p[er({current:p.map(e=>e?b.current[e]:null)},{event:e,orientation:a,loop:o,rtl:i,cols:s,disabledIndices:nr([...l||b.current.map((e,t)=>ar(b.current,t)?t:void 0),void 0],p),minIndex:h,maxIndex:m,prevIndex:rr(v>n?r:v,c,p,s,e.key===qt?"bl":e.key===u?"tr":"tl")})];null!=g&&(t=g)}const p={horizontal:[u],vertical:[qt],both:[u,qt]}[a],h={horizontal:[c],vertical:[Ht],both:[c,Ht]}[a],m=S?hr:{horizontal:fr,vertical:pr,both:hr}[a];var y;t===v&&[...p,...h].includes(e.key)&&(t=o&&t===n&&p.includes(e.key)?r:o&&t===r&&h.includes(e.key)?n:Xt(b,{startingIndex:t,decrement:h.includes(e.key),disabledIndices:l})),t===v||Yt(b,t)||(e.stopPropagation(),m.includes(e.key)&&e.preventDefault(),g(t),null==(y=b.current[t])||y.focus())}(e)}};return n.createElement(dr.Provider,{value:w},n.createElement(lr,{elementsRef:b},cr(r,_)))}),vr=n.forwardRef(function(e,t){const{render:r,...a}=e,o=r&&"function"!=typeof r?r.props:{},{activeIndex:i,onNavigate:s}=n.useContext(dr),{ref:l,index:u}=ur(),c=Bt([l,t,o.ref]),d=i===u;return cr(r,{...a,...o,ref:c,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==a.onFocus||a.onFocus(e),null==o.onFocus||o.onFocus(e),s(u)}})});function gr(){return gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gr.apply(this,arguments)}let br=!1,yr=0;const wr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+yr++;const Sr=Ut.useId||function(){const[e,t]=n.useState(()=>br?wr():void 0);return or(()=>{null==e&&t(wr())},[]),n.useEffect(()=>{br=!0},[]),e};const _r=n.forwardRef(function(e,t){const{context:{placement:r,elements:{floating:a},middlewareData:{arrow:o,shift:i}},width:s=14,height:l=7,tipRadius:u=0,strokeWidth:c=0,staticOffset:d,stroke:f,d:p,style:{transform:h,...m}={},...v}=e;const g=Sr(),[b,y]=n.useState(!1);if(or(()=>{if(!a)return;"rtl"===A(a).direction&&y(!0)},[a]),!a)return null;const[w,S]=r.split("-"),_="top"===w||"bottom"===w;let x=d;(_&&null!=i&&i.x||!_&&null!=i&&i.y)&&(x=null);const O=2*c,R=O/2,E=s/2*(u/-8+1),k=l/2*u/4,C=!!p,I=x&&"end"===S?"bottom":"top";let P=x&&"end"===S?"right":"left";x&&b&&(P="end"===S?"left":"right");const M=null!=(null==o?void 0:o.x)?x||o.x:"",T=null!=(null==o?void 0:o.y)?x||o.y:"",N=p||"M0,0 H"+s+" L"+(s-E)+","+(l-k)+" Q"+s/2+","+l+" "+E+","+(l-k)+" Z",D={top:C?"rotate(180deg)":"",left:C?"rotate(90deg)":"rotate(-90deg)",bottom:C?"":"rotate(180deg)",right:C?"rotate(-90deg)":"rotate(90deg)"}[w];return n.createElement("svg",gr({},v,{"aria-hidden":!0,ref:t,width:C?s:s+O,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:M,[I]:T,[w]:_||C?"100%":"calc(100% - "+O/2+"px)",transform:[D,h].filter(e=>!!e).join(" "),...m}}),O>0&&n.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:f,strokeWidth:O+(p?0:1),d:N}),n.createElement("path",{stroke:O&&!p?v.fill:"none",d:N}),n.createElement("clipPath",{id:g},n.createElement("rect",{x:-R,y:R*(C?-1:1),width:s+O,height:s})))});function xr(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}}const Or=n.createContext(null),Ar=n.createContext(null),Rr=()=>{var e;return(null==(e=n.useContext(Or))?void 0:e.id)||null},Er=()=>n.useContext(Ar);function kr(e){const t=Sr(),r=Er(),n=Rr(),a=e||n;return or(()=>{const e={id:t,parentId:a};return null==r||r.addNode(e),()=>{null==r||r.removeNode(e)}},[r,t,a]),t}function Cr(e){const{children:t,id:r}=e,a=Rr();return n.createElement(Or.Provider,{value:n.useMemo(()=>({id:r,parentId:a}),[r,a])},t)}function Ir(e){const{children:t}=e,r=n.useRef([]),a=n.useCallback(e=>{r.current=[...r.current,e]},[]),o=n.useCallback(e=>{r.current=r.current.filter(t=>t!==e)},[]),i=n.useState(()=>xr())[0];return n.createElement(Ar.Provider,{value:n.useMemo(()=>({nodesRef:r,addNode:a,removeNode:o,events:i}),[a,o,i])},t)}function Pr(e){return"data-floating-ui-"+e}function Mr(e){const t=(0,n.useRef)(e);return or(()=>{t.current=e}),t}const Tr=Pr("safe-polygon");function Nr(e,t,r){return r&&!z(r)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Dr(e,t){void 0===t&&(t={});const{open:r,onOpenChange:a,dataRef:o,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:h=!0}=t,m=Er(),v=Rr(),g=Mr(d),b=Mr(c),y=Mr(r),w=n.useRef(),S=n.useRef(-1),_=n.useRef(),x=n.useRef(-1),O=n.useRef(!0),A=n.useRef(!1),R=n.useRef(()=>{}),E=n.useRef(!1),k=n.useCallback(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[o]);n.useEffect(()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(S.current),clearTimeout(x.current),O.current=!0,E.current=!1)}},[l,i]),n.useEffect(()=>{if(!l)return;if(!g.current)return;if(!r)return;function e(e){k()&&a(!1,e,"hover")}const t=B(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,r,a,l,g,k]);const C=n.useCallback(function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r="hover");const n=Nr(b.current,"close",w.current);n&&!_.current?(clearTimeout(S.current),S.current=window.setTimeout(()=>a(!1,e,r),n)):t&&(clearTimeout(S.current),a(!1,e,r))},[b,a]),I=Gt(()=>{R.current(),_.current=void 0}),P=Gt(()=>{if(A.current){const e=B(s.floating).body;e.style.pointerEvents="",e.removeAttribute(Tr),A.current=!1}}),T=Gt(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));n.useEffect(()=>{if(l&&u(s.domReference)){var e;const a=s.domReference;return r&&a.addEventListener("mouseleave",i),null==(e=s.floating)||e.addEventListener("mouseleave",i),h&&a.addEventListener("mousemove",t,{once:!0}),a.addEventListener("mouseenter",t),a.addEventListener("mouseleave",n),()=>{var e;r&&a.removeEventListener("mouseleave",i),null==(e=s.floating)||e.removeEventListener("mouseleave",i),h&&a.removeEventListener("mousemove",t),a.removeEventListener("mouseenter",t),a.removeEventListener("mouseleave",n)}}function t(e){if(clearTimeout(S.current),O.current=!1,f&&!z(w.current)||p>0&&!Nr(b.current,"open"))return;const t=Nr(b.current,"open",w.current);t?S.current=window.setTimeout(()=>{y.current||a(!0,e,"hover")},t):r||a(!0,e,"hover")}function n(e){if(T())return;R.current();const t=B(s.floating);if(clearTimeout(x.current),E.current=!1,g.current&&o.current.floatingContext){r||clearTimeout(S.current),_.current=g.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){P(),I(),T()||C(e,!0,"safe-polygon")}});const n=_.current;return t.addEventListener("mousemove",n),void(R.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==w.current||!M(s.floating,e.relatedTarget))&&C(e)}function i(e){T()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){P(),I(),T()||C(e)}})(e))}},[s,l,e,f,p,h,C,I,P,a,r,y,m,b,g,o,T]),or(()=>{var e;if(l&&r&&null!=(e=g.current)&&e.__options.blockPointerEvents&&k()){A.current=!0;const e=s.floating;if(u(s.domReference)&&e){var t;const r=B(s.floating).body;r.setAttribute(Tr,"");const n=s.domReference,a=null==m||null==(t=m.nodesRef.current.find(e=>e.id===v))||null==(t=t.context)?void 0:t.elements.floating;return a&&(a.style.pointerEvents=""),r.style.pointerEvents="none",n.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{r.style.pointerEvents="",n.style.pointerEvents="",e.style.pointerEvents=""}}}},[l,r,v,s,m,g,k]),or(()=>{r||(w.current=void 0,E.current=!1,I(),P())},[r,I,P]),n.useEffect(()=>()=>{I(),clearTimeout(S.current),clearTimeout(x.current),P()},[l,s.domReference,I,P]);const N=n.useMemo(()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function n(){O.current||y.current||a(!0,t,"hover")}f&&!z(w.current)||r||0===p||E.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===w.current?n():(E.current=!0,x.current=window.setTimeout(n,p)))}}},[f,a,r,y,p]),D=n.useMemo(()=>({onMouseEnter(){clearTimeout(S.current)},onMouseLeave(e){T()||C(e.nativeEvent,!1)}}),[C,T]);return n.useMemo(()=>l?{reference:N,floating:D}:{},[l,N,D])}const Fr=()=>{},jr=n.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Fr,setState:Fr,isInstantPhase:!1}),Lr=()=>n.useContext(jr);function Vr(e){const{children:t,delay:r,timeoutMs:a=0}=e,[o,i]=n.useReducer((e,t)=>({...e,...t}),{delay:r,timeoutMs:a,initialDelay:r,currentId:null,isInstantPhase:!1}),s=n.useRef(null),l=n.useCallback(e=>{i({currentId:e})},[]);return or(()=>{o.currentId?null===s.current?s.current=o.currentId:o.isInstantPhase||i({isInstantPhase:!0}):(o.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[o.currentId,o.isInstantPhase]),n.createElement(jr.Provider,{value:n.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,l])},t)}function zr(e,t){void 0===t&&(t={});const{open:r,onOpenChange:n,floatingId:a}=e,{id:o,enabled:i=!0}=t,s=null!=o?o:a,l=Lr(),{currentId:u,setCurrentId:c,initialDelay:d,setState:f,timeoutMs:p}=l;return or(()=>{i&&u&&(f({delay:{open:1,close:Nr(d,"close")}}),u!==s&&n(!1))},[i,s,n,f,u,d]),or(()=>{function e(){n(!1),f({delay:d,currentId:null})}if(i&&u&&!r&&u===s){if(p){const t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[i,r,f,u,s,n,d,p]),or(()=>{i&&c!==Fr&&r&&c(s)},[i,r,c,s]),l}let Br=0;function Ur(e,t){void 0===t&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:a=!1}=t;n&&cancelAnimationFrame(Br);const o=()=>null==e?void 0:e.focus({preventScroll:r});a?o():Br=requestAnimationFrame(o)}function Wr(e,t){let r=e.filter(e=>{var r;return e.parentId===t&&(null==(r=e.context)?void 0:r.open)}),n=r;for(;n.length;)n=e.filter(e=>{var t;return null==(t=n)?void 0:t.some(t=>{var r;return e.parentId===t.id&&(null==(r=e.context)?void 0:r.open)})}),r=r.concat(n);return r}let Gr=new WeakMap,Hr=new WeakSet,qr={},$r=0;const Kr=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,Qr=e=>e&&(e.host||Qr(e.parentNode)),Yr=(e,t)=>t.map(t=>{if(e.contains(t))return t;const r=Qr(t);return e.contains(r)?r:null}).filter(e=>null!=e);function Zr(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=B(e[0]).body;return function(e,t,r,n){const a="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=Yr(t,e),l=new Set,u=new Set(s),c=[];qr[a]||(qr[a]=new WeakMap);const d=qr[a];return s.forEach(function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!u.has(t)&&[].forEach.call(t.children,t=>{if("script"!==o(t))if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,r=null!==e&&"false"!==e,n=(Gr.get(t)||0)+1,o=(d.get(t)||0)+1;Gr.set(t,n),d.set(t,o),c.push(t),1===n&&r&&Hr.add(t),1===o&&t.setAttribute(a,""),!r&&i&&t.setAttribute(i,"true")}})}(t),l.clear(),$r++,()=>{c.forEach(e=>{const t=(Gr.get(e)||0)-1,r=(d.get(e)||0)-1;Gr.set(e,t),d.set(e,r),t||(!Hr.has(e)&&i&&e.removeAttribute(i),Hr.delete(e)),r||e.removeAttribute(a)}),$r--,$r||(Gr=new WeakMap,Gr=new WeakMap,Hr=new WeakSet,qr={})}}(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}const Jr=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Xr(e,t){const r=Ue(e,Jr());"prev"===t&&r.reverse();const n=r.indexOf(P(B(e)));return r.slice(n+1)[0]}function en(){return Xr(document.body,"next")}function tn(){return Xr(document.body,"prev")}function rn(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!M(r,n)}function nn(e){Ue(e,Jr()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function an(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const on={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function sn(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const ln=n.forwardRef(function(e,t){const[r,a]=n.useState();or(()=>(j()&&a("button"),document.addEventListener("keydown",sn),()=>{document.removeEventListener("keydown",sn)}),[]);const o={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Pr("focus-guard")]:"",style:on};return n.createElement("span",gr({},e,o))}),un=n.createContext(null),cn=Pr("portal");function dn(e){void 0===e&&(e={});const{id:t,root:r}=e,a=Sr(),o=pn(),[i,s]=n.useState(null),l=n.useRef(null);return or(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{l.current=null})},[i]),or(()=>{if(!a)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const r=document.createElement("div");r.id=a,r.setAttribute(cn,""),e.appendChild(r),l.current=r,s(r)},[t,a]),or(()=>{if(null===r)return;if(!a)return;if(l.current)return;let e=r||(null==o?void 0:o.portalNode);e&&!u(e)&&(e=e.current),e=e||document.body;let n=null;t&&(n=document.createElement("div"),n.id=t,e.appendChild(n));const i=document.createElement("div");i.id=a,i.setAttribute(cn,""),e=n||e,e.appendChild(i),l.current=i,s(i)},[t,r,a,o]),i}function fn(e){const{children:t,id:r,root:a,preserveTabOrder:o=!0}=e,i=dn({id:r,root:a}),[s,l]=n.useState(null),u=n.useRef(null),c=n.useRef(null),d=n.useRef(null),f=n.useRef(null),p=null==s?void 0:s.modal,h=null==s?void 0:s.open,m=!!s&&!s.modal&&s.open&&o&&!(!a&&!i);return n.useEffect(()=>{if(i&&o&&!p)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&rn(e)){("focusin"===e.type?an:nn)(i)}}},[i,o,p]),n.useEffect(()=>{i&&(h||an(i))},[h,i]),n.createElement(un.Provider,{value:n.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:f,portalNode:i,setFocusManagerState:l}),[o,i])},m&&i&&n.createElement(ln,{"data-type":"outside",ref:u,onFocus:e=>{if(rn(e,i)){var t;null==(t=d.current)||t.focus()}else{const e=tn()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),m&&i&&n.createElement("span",{"aria-owns":i.id,style:on}),i&&Ge.createPortal(t,i),m&&i&&n.createElement(ln,{"data-type":"outside",ref:c,onFocus:e=>{if(rn(e,i)){var t;null==(t=f.current)||t.focus()}else{const t=en()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const pn=()=>n.useContext(un),hn="data-floating-ui-focusable";function mn(e){return e?e.hasAttribute(hn)?e:e.querySelector("["+hn+"]")||e:null}const vn=20;let gn=[];function bn(e){gn=gn.filter(e=>e.isConnected);let t=e;if(t&&"body"!==o(t)){if(!We(t,Jr())){const e=Ue(t,Jr())[0];e&&(t=e)}gn.push(t),gn.length>vn&&(gn=gn.slice(-vn))}}function yn(){return gn.slice().reverse().find(e=>e.isConnected)}const wn=n.forwardRef(function(e,t){return n.createElement("button",gr({},e,{type:"button",ref:t,tabIndex:-1,style:on}))});function Sn(e){const{context:t,children:r,disabled:a=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:l=!0,restoreFocus:u=!1,modal:d=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:p=!0}=e,{open:h,refs:m,nodeId:v,onOpenChange:g,events:b,dataRef:y,floatingId:w,elements:{domReference:S,floating:_}}=t,x="number"==typeof s&&s<0,O=$(S)&&x,A=!Kr()||i,R=Mr(o),E=Mr(s),k=Mr(l),C=Er(),I=pn(),T=n.useRef(null),N=n.useRef(null),j=n.useRef(!1),L=n.useRef(!1),V=n.useRef(-1),z=null!=I,U=mn(_),G=Gt(function(e){return void 0===e&&(e=U),e?Ue(e,Jr()):[]}),H=Gt(e=>{const t=G(e);return R.current.map(e=>S&&"reference"===e?S:U&&"floating"===e?U:t).filter(Boolean).flat()});function K(e){return!a&&f&&d?n.createElement(wn,{ref:"start"===e?T:N,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof f?f:"Dismiss"):null}n.useEffect(()=>{if(a)return;if(!d)return;function e(e){if("Tab"===e.key){M(U,P(B(U)))&&0===G().length&&!O&&q(e);const t=H(),r=W(e);"reference"===R.current[0]&&r===S&&(q(e),e.shiftKey?Ur(t[t.length-1]):Ur(t[1])),"floating"===R.current[1]&&r===U&&e.shiftKey&&(q(e),Ur(t[0]))}}const t=B(U);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[a,S,U,d,R,O,G,H]),n.useEffect(()=>{if(!a&&_)return _.addEventListener("focusin",e),()=>{_.removeEventListener("focusin",e)};function e(e){const t=W(e),r=G().indexOf(t);-1!==r&&(V.current=r)}},[a,_,G]),n.useEffect(()=>{if(!a&&p)return _&&c(S)?(S.addEventListener("focusout",t),S.addEventListener("pointerdown",e),_.addEventListener("focusout",t),()=>{S.removeEventListener("focusout",t),S.removeEventListener("pointerdown",e),_.removeEventListener("focusout",t)}):void 0;function e(){L.current=!0,setTimeout(()=>{L.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const r=!(M(S,t)||M(_,t)||M(t,_)||M(null==I?void 0:I.portalNode,t)||null!=t&&t.hasAttribute(Pr("focus-guard"))||C&&(Wr(C.nodesRef.current,v).find(e=>{var r,n;return M(null==(r=e.context)?void 0:r.elements.floating,t)||M(null==(n=e.context)?void 0:n.elements.domReference,t)})||function(e,t){var r;let n=[],a=null==(r=e.find(e=>e.id===t))?void 0:r.parentId;for(;a;){const t=e.find(e=>e.id===a);a=null==t?void 0:t.parentId,t&&(n=n.concat(t))}return n}(C.nodesRef.current,v).find(e=>{var r,n;return(null==(r=e.context)?void 0:r.elements.floating)===t||(null==(n=e.context)?void 0:n.elements.domReference)===t})));if(u&&r&&P(B(U))===B(U).body){c(U)&&U.focus();const e=V.current,t=G(),r=t[e]||t[t.length-1]||U;c(r)&&r.focus()}!O&&d||!t||!r||L.current||t===yn()||(j.current=!0,g(!1,e,"focus-out"))})}},[a,S,_,U,d,v,C,I,g,p,u,G,O]),n.useEffect(()=>{var e;if(a)return;const t=Array.from((null==I||null==(e=I.portalNode)?void 0:e.querySelectorAll("["+Pr("portal")+"]"))||[]);if(_){const e=[_,...t,T.current,N.current,R.current.includes("reference")||O?S:null].filter(e=>null!=e),r=d||O?Zr(e,A,!A):Zr(e);return()=>{r()}}},[a,S,_,d,R,I,O,A]),or(()=>{if(a||!c(U))return;const e=P(B(U));queueMicrotask(()=>{const t=H(U),r=E.current,n=("number"==typeof r?t[r]:r.current)||U,a=M(U,e);x||a||!h||Ur(n,{preventScroll:n===U})})},[a,h,U,x,H,E]),or(()=>{if(a||!U)return;let e=!1;const t=B(U),r=P(t);let n=y.current.openEvent;function o(t){let{open:r,reason:a,event:o,nested:i}=t;r&&(n=o),"escape-key"===a&&m.domReference.current&&bn(m.domReference.current),"hover"===a&&"mouseleave"===o.type&&(j.current=!0),"outside-press"===a&&(i?(j.current=!1,e=!0):j.current=!(D(o)||F(o)))}bn(r),b.on("openchange",o);const i=t.createElement("span");return i.setAttribute("tabindex","-1"),i.setAttribute("aria-hidden","true"),Object.assign(i.style,on),z&&S&&S.insertAdjacentElement("afterend",i),()=>{b.off("openchange",o);const r=P(t),a=M(_,r)||C&&Wr(C.nodesRef.current,v).some(e=>{var t;return M(null==(t=e.context)?void 0:t.elements.floating,r)});(a||n&&["click","mousedown"].includes(n.type))&&m.domReference.current&&bn(m.domReference.current);const s="boolean"==typeof k.current?yn()||i:k.current.current||i;queueMicrotask(()=>{k.current&&!j.current&&c(s)&&(s===r||r===t.body||a)&&s.focus({preventScroll:e}),i.remove()})}},[a,_,U,k,y,m,b,C,v,z,S]),n.useEffect(()=>{queueMicrotask(()=>{j.current=!1})},[a]),or(()=>{if(!a&&I)return I.setFocusManagerState({modal:d,closeOnFocusOut:p,open:h,onOpenChange:g,refs:m}),()=>{I.setFocusManagerState(null)}},[a,I,d,h,g,m,p]),or(()=>{if(a)return;if(!U)return;if("function"!=typeof MutationObserver)return;if(x)return;const e=()=>{const e=U.getAttribute("tabindex"),t=G(),r=P(B(_)),n=t.indexOf(r);-1!==n&&(V.current=n),R.current.includes("floating")||r!==m.domReference.current&&0===t.length?"0"!==e&&U.setAttribute("tabindex","0"):"-1"!==e&&U.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(U,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[a,_,U,m,R,G,x]);const Q=!a&&A&&(!d||!O)&&(z||d);return n.createElement(n.Fragment,null,Q&&n.createElement(ln,{"data-type":"inside",ref:null==I?void 0:I.beforeInsideRef,onFocus:e=>{if(d){const e=H();Ur("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(j.current=!1,rn(e,I.portalNode)){const e=en()||S;null==e||e.focus()}else{var t;null==(t=I.beforeOutsideRef.current)||t.focus()}}}),!O&&K("start"),r,K("end"),Q&&n.createElement(ln,{"data-type":"inside",ref:null==I?void 0:I.afterInsideRef,onFocus:e=>{if(d)Ur(H()[0]);else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(p&&(j.current=!0),rn(e,I.portalNode)){const e=tn()||S;null==e||e.focus()}else{var t;null==(t=I.afterOutsideRef.current)||t.focus()}}}))}let _n=0;let xn=()=>{};const On=n.forwardRef(function(e,t){const{lockScroll:r=!1,...a}=e;return or(()=>{if(r)return _n++,1===_n&&(xn=function(){const e=/iP(hone|ad|od)|iOS/.test(T()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",n=window.innerWidth-document.documentElement.clientWidth,a=t.left?parseFloat(t.left):window.scrollX,o=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",n&&(t[r]=n+"px"),e){var i,s;const e=(null==(i=window.visualViewport)?void 0:i.offsetLeft)||0,r=(null==(s=window.visualViewport)?void 0:s.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(o-Math.floor(r))+"px",left:-(a-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(a,o))}}()),()=>{_n--,0===_n&&xn()}},[r]),n.createElement("div",gr({ref:t},a,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}}))});function An(e){return c(e.target)&&"BUTTON"===e.target.tagName}function Rn(e){return H(e)}function En(e,t){void 0===t&&(t={});const{open:r,onOpenChange:a,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:l="click",toggle:u=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0,stickIfOpen:f=!0}=t,p=n.useRef(),h=n.useRef(!1),m=n.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==l&&(z(t,!0)&&c||(!r||!u||o.current.openEvent&&f&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),a(!0,e.nativeEvent,"click")):a(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===l&&p.current?p.current=void 0:z(t,!0)&&c||(!r||!u||o.current.openEvent&&f&&"click"!==o.current.openEvent.type?a(!0,e.nativeEvent,"click"):a(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||An(e)||(" "!==e.key||Rn(i)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&a(!r||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||An(e)||Rn(i)||" "===e.key&&h.current&&(h.current=!1,a(!r||!u,e.nativeEvent,"click"))}}),[o,i,l,c,d,a,r,f,u]);return n.useMemo(()=>s?{reference:m}:{},[s,m])}function kn(e){return null!=e&&null!=e.clientX}function Cn(e,t){void 0===t&&(t={});const{open:r,dataRef:a,elements:{floating:o,domReference:s},refs:l}=e,{enabled:u=!0,axis:c="both",x:d=null,y:f=null}=t,p=n.useRef(!1),h=n.useRef(null),[m,v]=n.useState(),[g,b]=n.useState([]),y=Gt((e,t)=>{p.current||a.current.openEvent&&!kn(a.current.openEvent)||l.setPositionReference(function(e,t){let r=null,n=null,a=!1;return{contextElement:e||void 0,getBoundingClientRect(){var o;const i=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,l="y"===t.axis||"both"===t.axis,u=["mouseenter","mousemove"].includes((null==(o=t.dataRef.current.openEvent)?void 0:o.type)||"")&&"touch"!==t.pointerType;let c=i.width,d=i.height,f=i.x,p=i.y;return null==r&&t.x&&s&&(r=i.x-t.x),null==n&&t.y&&l&&(n=i.y-t.y),f-=r||0,p-=n||0,c=0,d=0,!a||u?(c="y"===t.axis?i.width:0,d="x"===t.axis?i.height:0,f=s&&null!=t.x?t.x:f,p=l&&null!=t.y?t.y:p):a&&!u&&(d="x"===t.axis?i.height:d,c="y"===t.axis?i.width:c),a=!0,{width:c,height:d,x:f,y:p,top:p,right:f+c,bottom:p+d,left:f}}}}(s,{x:e,y:t,axis:c,dataRef:a,pointerType:m}))}),w=Gt(e=>{null==d&&null==f&&(r?h.current||b([]):y(e.clientX,e.clientY))}),S=z(m)?o:r,_=n.useCallback(()=>{if(!S||!u||null!=d||null!=f)return;const e=i(o);function t(r){const n=W(r);M(o,n)?(e.removeEventListener("mousemove",t),h.current=null):y(r.clientX,r.clientY)}if(!a.current.openEvent||kn(a.current.openEvent)){e.addEventListener("mousemove",t);const r=()=>{e.removeEventListener("mousemove",t),h.current=null};return h.current=r,r}l.setPositionReference(s)},[S,u,d,f,o,a,l,s,y]);n.useEffect(()=>_(),[_,g]),n.useEffect(()=>{u&&!o&&(p.current=!1)},[u,o]),n.useEffect(()=>{!u&&r&&(p.current=!0)},[u,r]),or(()=>{!u||null==d&&null==f||(p.current=!1,y(d,f))},[u,d,f,y]);const x=n.useMemo(()=>{function e(e){let{pointerType:t}=e;v(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}},[w]);return n.useMemo(()=>u?{reference:x}:{},[u,x])}const In={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Pn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Mn=e=>{var t,r;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(r=null==e?void 0:e.outsidePress)||r}};function Tn(e,t){void 0===t&&(t={});const{open:r,onOpenChange:a,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:m=!1,bubbles:v,capture:g}=t,b=Er(),y=Gt("function"==typeof d?d:()=>!1),w="function"==typeof d?y:d,S=n.useRef(!1),x=n.useRef(!1),{escapeKey:R,outsidePress:k}=Mn(v),{escapeKey:I,outsidePress:P}=Mn(g),T=n.useRef(!1),N=Gt(e=>{var t;if(!r||!s||!l||"Escape"!==e.key)return;if(T.current)return;const n=null==(t=i.current.floatingContext)?void 0:t.nodeId,o=b?Wr(b.nodesRef.current,n):[];if(!R&&(e.stopPropagation(),o.length>0)){let e=!0;if(o.forEach(t=>{var r;null==(r=t.context)||!r.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}a(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),D=Gt(e=>{var t;const r=()=>{var t;N(e),null==(t=W(e))||t.removeEventListener("keydown",r)};null==(t=W(e))||t.addEventListener("keydown",r)}),F=Gt(e=>{var t;const r=S.current;S.current=!1;const n=x.current;if(x.current=!1,"click"===f&&n)return;if(r)return;if("function"==typeof w&&!w(e))return;const s=W(e),l="["+Pr("inert")+"]",d=B(o.floating).querySelectorAll(l);let p=u(s)?s:null;for(;p&&!O(p);){const e=E(p);if(O(e)||!u(e))break;p=e}if(d.length&&u(s)&&!s.matches("html,body")&&!M(s,o.floating)&&Array.from(d).every(e=>!M(p,e)))return;if(c(s)&&V){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,r=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let n=r&&e.offsetX>s.clientWidth;if(r){"rtl"===A(s).direction&&(n=e.offsetX<=s.offsetWidth-s.clientWidth)}if(n||t&&e.offsetY>s.clientHeight)return}const h=null==(t=i.current.floatingContext)?void 0:t.nodeId,m=b&&Wr(b.nodesRef.current,h).some(t=>{var r;return U(e,null==(r=t.context)?void 0:r.elements.floating)});if(U(e,o.floating)||U(e,o.domReference)||m)return;const v=b?Wr(b.nodesRef.current,h):[];if(v.length>0){let e=!0;if(v.forEach(t=>{var r;null==(r=t.context)||!r.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}a(!1,e,"outside-press")}),j=Gt(e=>{var t;const r=()=>{var t;F(e),null==(t=W(e))||t.removeEventListener(f,r)};null==(t=W(e))||t.addEventListener(f,r)});n.useEffect(()=>{if(!r||!s)return;i.current.__escapeKeyBubbles=R,i.current.__outsidePressBubbles=k;let e=-1;function t(e){a(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),T.current=!0}function c(){e=window.setTimeout(()=>{T.current=!1},_()?5:0)}const d=B(o.floating);l&&(d.addEventListener("keydown",I?D:N,I),d.addEventListener("compositionstart",n),d.addEventListener("compositionend",c)),w&&d.addEventListener(f,P?j:F,P);let p=[];return m&&(u(o.domReference)&&(p=C(o.domReference)),u(o.floating)&&(p=p.concat(C(o.floating))),!u(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(C(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{l&&(d.removeEventListener("keydown",I?D:N,I),d.removeEventListener("compositionstart",n),d.removeEventListener("compositionend",c)),w&&d.removeEventListener(f,P?j:F,P),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,l,w,f,r,a,m,s,R,k,N,I,D,F,P,j]),n.useEffect(()=>{S.current=!1},[w,f]);const L=n.useMemo(()=>({onKeyDown:N,[In[h]]:e=>{p&&a(!1,e.nativeEvent,"reference-press")}}),[N,a,p,h]),V=n.useMemo(()=>({onKeyDown:N,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Pn[f]]:()=>{S.current=!0}}),[N,f]);return n.useMemo(()=>s?{reference:L,floating:V}:{},[s,L,V])}function Nn(e){const{open:t=!1,onOpenChange:r,elements:a}=e,o=Sr(),i=n.useRef({}),[s]=n.useState(()=>xr()),l=null!=Rr();const[u,c]=n.useState(a.reference),d=Gt((e,t,n)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)}),f=n.useMemo(()=>({setPositionReference:c}),[]),p=n.useMemo(()=>({reference:u||a.reference||null,floating:a.floating||null,domReference:a.reference}),[u,a.reference,a.floating]);return n.useMemo(()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:f}),[t,d,p,s,o,f])}function Dn(e){void 0===e&&(e={});const{nodeId:t}=e,r=Nn({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||r,o=a.elements,[i,s]=n.useState(null),[l,c]=n.useState(null),d=(null==o?void 0:o.domReference)||i,f=n.useRef(null),p=Er();or(()=>{d&&(f.current=d)},[d]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=n.useState(a);Et(p,a)||h(a);const[m,v]=n.useState(null),[g,b]=n.useState(null),y=n.useCallback(e=>{e!==x.current&&(x.current=e,v(e))},[]),w=n.useCallback(e=>{e!==O.current&&(O.current=e,b(e))},[]),S=i||m,_=s||g,x=n.useRef(null),O=n.useRef(null),A=n.useRef(d),R=null!=u,E=It(u),k=It(o),C=It(c),I=n.useCallback(()=>{if(!x.current||!O.current)return;const e={placement:t,strategy:r,middleware:p};k.current&&(e.platform=k.current),At(x.current,O.current,e).then(e=>{const t={...e,isPositioned:!1!==C.current};P.current&&!Et(A.current,t)&&(A.current=t,Ge.flushSync(()=>{f(t)}))})},[p,t,r,k,C]);Rt(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);const P=n.useRef(!1);Rt(()=>(P.current=!0,()=>{P.current=!1}),[]),Rt(()=>{if(S&&(x.current=S),_&&(O.current=_),S&&_){if(E.current)return E.current(S,_,I);I()}},[S,_,I,E,R]);const M=n.useMemo(()=>({reference:x,floating:O,setReference:y,setFloating:w}),[y,w]),T=n.useMemo(()=>({reference:S,floating:_}),[S,_]),N=n.useMemo(()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=Ct(T.floating,d.x),n=Ct(T.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...kt(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,T.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:I,refs:M,elements:T,floatingStyles:N}),[d,I,M,T,N])}({...e,elements:{...o,...l&&{reference:l}}}),m=n.useCallback(e=>{const t=u(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),h.refs.setReference(t)},[h.refs]),v=n.useCallback(e=>{(u(e)||null===e)&&(f.current=e,s(e)),(u(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!u(e))&&h.refs.setReference(e)},[h.refs]),g=n.useMemo(()=>({...h.refs,setReference:v,setPositionReference:m,domReference:f}),[h.refs,v,m]),b=n.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),y=n.useMemo(()=>({...h,...a,refs:g,elements:b,nodeId:t}),[h,g,b,t,a]);return or(()=>{a.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),n.useMemo(()=>({...h,context:y,refs:g,elements:b}),[h,g,b,y])}function Fn(e,t){void 0===t&&(t={});const{open:r,onOpenChange:a,events:o,dataRef:s,elements:l}=e,{enabled:d=!0,visibleOnly:f=!0}=t,p=n.useRef(!1),h=n.useRef(),m=n.useRef(!0);n.useEffect(()=>{if(!d)return;const e=i(l.domReference);function t(){!r&&c(l.domReference)&&l.domReference===P(B(l.domReference))&&(p.current=!0)}function n(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}},[l.domReference,r,d]),n.useEffect(()=>{if(d)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(p.current=!0)}},[o,d]),n.useEffect(()=>()=>{clearTimeout(h.current)},[]);const v=n.useMemo(()=>({onPointerDown(e){F(e.nativeEvent)||(m.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=W(e.nativeEvent);if(f&&u(t))try{if(j()&&V())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!H(t))return}a(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,r=e.nativeEvent,n=u(t)&&t.hasAttribute(Pr("focus-guard"))&&"outside"===t.getAttribute("data-type");h.current=window.setTimeout(()=>{var e;const o=P(l.domReference?l.domReference.ownerDocument:document);(t||o!==l.domReference)&&(M(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,o)||M(l.domReference,o)||n||a(!1,r,"focus"))})}}),[s,l.domReference,a,f]);return n.useMemo(()=>d?{reference:v}:{},[d,v])}const jn="active",Ln="selected";function Vn(e,t,r){const n=new Map,a="item"===r;let o=e;if(a&&e){const{[jn]:t,[Ln]:r,...n}=e;o=n}return{..."floating"===r&&{tabIndex:-1,[hn]:""},...o,...t.map(t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[r,o]=t;var i;a&&[jn,Ln].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof o&&(null==(i=n.get(r))||i.push(o),e[r]=function(){for(var e,t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return null==(e=n.get(r))?void 0:e.map(e=>e(...a)).find(e=>void 0!==e)})):e[r]=o)}),e):e,{})}}function zn(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),r=e.map(e=>null==e?void 0:e.floating),a=e.map(e=>null==e?void 0:e.item),o=n.useCallback(t=>Vn(t,e,"reference"),t),i=n.useCallback(t=>Vn(t,e,"floating"),r),s=n.useCallback(t=>Vn(t,e,"item"),a);return n.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}let Bn=!1;function Un(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function Wn(e,t){return Un(t,e===Ht||e===qt,e===$t||e===Kt)}function Gn(e,t,r){return Un(t,e===qt,r?e===$t:e===Kt)||"Enter"===e||" "===e||""===e}function Hn(e,t,r){return Un(t,r?e===Kt:e===$t,e===Ht)}function qn(e,t){const{open:r,onOpenChange:a,elements:o}=e,{listRef:i,activeIndex:s,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loop:p=!1,nested:h=!1,rtl:m=!1,virtual:v=!1,focusItemOnOpen:g="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:y=!0,disabledIndices:w,orientation:S="vertical",cols:_=1,scrollItemIntoView:x=!0,virtualItemRef:O,itemSizes:A,dense:R=!1}=t;const E=Mr(mn(o.floating)),k=Rr(),C=Er(),I=Gt(l),T=$(o.domReference),N=n.useRef(g),L=n.useRef(null!=d?d:-1),z=n.useRef(null),U=n.useRef(!0),W=n.useRef(I),G=n.useRef(!!o.floating),H=n.useRef(r),K=n.useRef(!1),Q=n.useRef(!1),Y=Mr(w),Z=Mr(r),J=Mr(x),X=Mr(d),[ee,te]=n.useState(),[re,ne]=n.useState(),ae=Gt(function(e,t,r){function n(e){v?(te(e.id),null==C||C.events.emit("virtualfocus",e),O&&(O.current=e)):Ur(e,{preventScroll:!0,sync:!(!V()||!j())&&(Bn||K.current)})}void 0===r&&(r=!1);const a=e.current[t.current];a&&n(a),requestAnimationFrame(()=>{const o=e.current[t.current]||a;if(!o)return;a||n(o);const i=J.current;i&&ie&&(r||!U.current)&&(null==o.scrollIntoView||o.scrollIntoView("boolean"==typeof i?{block:"nearest",inline:"nearest"}:i))})});or(()=>{document.createElement("div").focus({get preventScroll(){return Bn=!0,!1}})},[]),or(()=>{u&&(r&&o.floating?N.current&&null!=d&&(Q.current=!0,L.current=d,I(d)):G.current&&(L.current=-1,W.current(null)))},[u,r,o.floating,d,I]),or(()=>{if(u&&r&&o.floating)if(null==s){if(K.current=!1,null!=X.current)return;if(G.current&&(L.current=-1,ae(i,L)),(!H.current||!G.current)&&N.current&&(null!=z.current||!0===N.current&&null==z.current)){let e=0;const t=()=>{if(null==i.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else L.current=null==z.current||Gn(z.current,S,m)||h?Zt(i,Y.current):Jt(i,Y.current),z.current=null,I(L.current)};t()}}else Yt(i,s)||(L.current=s,ae(i,L,Q.current),Q.current=!1)},[u,r,o.floating,s,X,h,i,S,m,I,ae,Y]),or(()=>{var e;if(!u||o.floating||!C||v||!G.current)return;const t=C.nodesRef.current,r=null==(e=t.find(e=>e.id===k))||null==(e=e.context)?void 0:e.elements.floating,n=P(B(o.floating)),a=t.some(e=>e.context&&M(e.context.elements.floating,n));r&&!a&&U.current&&r.focus({preventScroll:!0})},[u,o.floating,C,k,v]),or(()=>{if(u&&C&&v&&!k)return C.events.on("virtualfocus",e),()=>{C.events.off("virtualfocus",e)};function e(e){ne(e.id),O&&(O.current=e)}},[u,C,v,k,O]),or(()=>{W.current=I,G.current=!!o.floating}),or(()=>{r||(z.current=null)},[r]),or(()=>{H.current=r},[r]);const oe=null!=s,ie=n.useMemo(()=>{function e(e){if(!r)return;const t=i.current.indexOf(e);-1!==t&&I(t)}return{onFocus(t){let{currentTarget:r}=t;e(r)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...b&&{onMouseMove(t){let{currentTarget:r}=t;e(r)},onPointerLeave(e){let{pointerType:t}=e;U.current&&"touch"!==t&&(L.current=-1,ae(i,L),I(null),v||Ur(E.current,{preventScroll:!0}))}}}},[r,E,ae,b,i,I,v]),se=Gt(e=>{if(U.current=!1,K.current=!0,229===e.which)return;if(!Z.current&&e.currentTarget===E.current)return;if(h&&Hn(e.key,S,m))return q(e),a(!1,e.nativeEvent,"list-navigation"),void(c(o.domReference)&&(v?null==C||C.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=L.current,n=Zt(i,w),s=Jt(i,w);if(T||("Home"===e.key&&(q(e),L.current=n,I(L.current)),"End"===e.key&&(q(e),L.current=s,I(L.current))),_>1){const t=A||Array.from({length:i.current.length},()=>({width:1,height:1})),r=tr(t,_,R),a=r.findIndex(e=>null!=e&&!ar(i.current,e,w)),o=r.reduce((e,t,r)=>null==t||ar(i.current,t,w)?e:r,-1),l=r[er({current:r.map(e=>null!=e?i.current[e]:null)},{event:e,orientation:S,loop:p,rtl:m,cols:_,disabledIndices:nr([...w||i.current.map((e,t)=>ar(i.current,t)?t:void 0),void 0],r),minIndex:a,maxIndex:o,prevIndex:rr(L.current>s?n:L.current,t,r,_,e.key===qt?"bl":e.key===(m?$t:Kt)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(L.current=l,I(L.current)),"both"===S)return}if(Wn(e.key,S)){if(q(e),r&&!v&&P(e.currentTarget.ownerDocument)===e.currentTarget)return L.current=Gn(e.key,S,m)?n:s,void I(L.current);Gn(e.key,S,m)?L.current=p?t>=s?f&&t!==i.current.length?-1:n:Xt(i,{startingIndex:t,disabledIndices:w}):Math.min(s,Xt(i,{startingIndex:t,disabledIndices:w})):L.current=p?t<=n?f&&-1!==t?i.current.length:s:Xt(i,{startingIndex:t,decrement:!0,disabledIndices:w}):Math.max(n,Xt(i,{startingIndex:t,decrement:!0,disabledIndices:w})),Yt(i,L.current)?I(null):I(L.current)}}),le=n.useMemo(()=>v&&r&&oe&&{"aria-activedescendant":re||ee},[v,r,oe,re,ee]),ue=n.useMemo(()=>({"aria-orientation":"both"===S?void 0:S,...!$(o.domReference)&&le,onKeyDown:se,onPointerMove(){U.current=!0}}),[le,se,o.domReference,S]),ce=n.useMemo(()=>{function e(e){"auto"===g&&D(e.nativeEvent)&&(N.current=!0)}return{...le,onKeyDown(e){U.current=!1;const t=e.key.startsWith("Arrow"),n=["Home","End"].includes(e.key),o=t||n,s=function(e,t,r){return Un(t,r?e===$t:e===Kt,e===qt)}(e.key,S,m),l=Hn(e.key,S,m),u=Wn(e.key,S),c=(h?s:u)||"Enter"===e.key||""===e.key.trim();if(v&&r){const t=null==C?void 0:C.nodesRef.current.find(e=>null==e.parentId),r=C&&t?function(e,t){let r,n=-1;return function t(a,o){o>n&&(r=a,n=o),Wr(e,a).forEach(e=>{t(e.id,o+1)})}(t,0),e.find(e=>e.id===r)}(C.nodesRef.current,t.id):null;if(o&&r&&O){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||l){var f,p;const n=(null==(f=r.context)?void 0:f.elements.domReference)===e.currentTarget,a=l&&!n?null==(p=r.context)?void 0:p.elements.domReference:s?i.current.find(e=>(null==e?void 0:e.id)===ee):null;a&&(q(e),a.dispatchEvent(t),ne(void 0))}var g;if((u||n)&&r.context)if(r.context.open&&r.parentId&&e.currentTarget!==r.context.elements.domReference)return q(e),void(null==(g=r.context.elements.domReference)||g.dispatchEvent(t))}return se(e)}(r||y||!t)&&(c&&(z.current=h&&u?null:e.key),h?s&&(q(e),r?(L.current=Zt(i,Y.current),I(L.current)):a(!0,e.nativeEvent,"list-navigation")):u&&(null!=d&&(L.current=d),q(e),!r&&y?a(!0,e.nativeEvent,"list-navigation"):se(e),r&&I(L.current)))},onFocus(){r&&!v&&I(null)},onPointerDown:function(e){N.current=g,"auto"===g&&F(e.nativeEvent)&&(N.current=!0)},onMouseDown:e,onClick:e}},[ee,le,se,Y,g,i,h,I,a,r,y,S,m,d,C,v,O]);return n.useMemo(()=>u?{reference:ce,floating:ue,item:ie}:{},[u,ce,ue,ie])}const $n=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Kn(e,t){var r;void 0===t&&(t={});const{open:a,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,l=null!=(r=$n.get(s))?r:s,u=Sr(),c=null!=Rr(),d=n.useMemo(()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:a?o:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":a?o:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:u},..."menu"===l&&c&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[l,o,c,a,u,s]),f=n.useMemo(()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":u}}},[l,o,u,s]),p=n.useCallback(e=>{let{active:t,selected:r}=e;const n={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...n,"aria-selected":t&&r};case"combobox":return{...n,...t&&{"aria-selected":!0}}}return{}},[o,s]);return n.useMemo(()=>i?{reference:d,floating:f,item:p}:{},[i,d,f,p])}const Qn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Yn(e,t){return"function"==typeof e?e(t):e}function Zn(e,t){void 0===t&&(t={});const{open:r,elements:{floating:a}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[s,l]=n.useState("unmounted"),u=function(e,t){const[r,a]=n.useState(e);return e&&!r&&a(!0),n.useEffect(()=>{if(!e&&r){const e=setTimeout(()=>a(!1),t);return()=>clearTimeout(e)}},[e,r,t]),r}(r,i);return u||"close"!==s||l("unmounted"),or(()=>{if(a){if(r){l("initial");const e=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(e)}}l("close")}},[r,a]),{isMounted:u,status:s}}function Jn(e,t){void 0===t&&(t={});const{initial:r={opacity:0},open:a,close:o,common:i,duration:s=250}=t,l=e.placement,u=l.split("-")[0],c=n.useMemo(()=>({side:u,placement:l}),[u,l]),d="number"==typeof s,f=(d?s:s.open)||0,p=(d?s:s.close)||0,[h,m]=n.useState(()=>({...Yn(i,c),...Yn(r,c)})),{isMounted:v,status:g}=Zn(e,{duration:s}),b=Mr(r),y=Mr(a),w=Mr(o),S=Mr(i);return or(()=>{const e=Yn(b.current,c),t=Yn(w.current,c),r=Yn(S.current,c),n=Yn(y.current,c)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&m(t=>({transitionProperty:t.transitionProperty,...r,...e})),"open"===g&&m({transitionProperty:Object.keys(n).map(Qn).join(","),transitionDuration:f+"ms",...r,...n}),"close"===g){const n=t||e;m({transitionProperty:Object.keys(n).map(Qn).join(","),transitionDuration:p+"ms",...r,...n})}},[p,w,b,y,S,f,g,c]),{isMounted:v,styles:h}}function Xn(e,t){var r;const{open:a,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:l,onTypingChange:u,enabled:c=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=[],selectedIndex:h=null}=t,m=n.useRef(),v=n.useRef(""),g=n.useRef(null!=(r=null!=h?h:s)?r:-1),b=n.useRef(null),y=Gt(l),w=Gt(u),S=Mr(d),_=Mr(p);or(()=>{a&&(clearTimeout(m.current),b.current=null,v.current="")},[a]),or(()=>{var e;a&&""===v.current&&(g.current=null!=(e=null!=h?h:s)?e:-1)},[a,h,s]);const x=Gt(e=>{e?o.current.typing||(o.current.typing=e,w(e)):o.current.typing&&(o.current.typing=e,w(e))}),O=Gt(e=>{function t(e,t,r){const n=S.current?S.current(t,r):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())));return n?e.indexOf(n):-1}const r=i.current;if(v.current.length>0&&" "!==v.current[0]&&(-1===t(r,r,v.current)?x(!1):" "===e.key&&q(e)),null==r||_.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;a&&" "!==e.key&&(q(e),x(!0));r.every(e=>{var t,r;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(r=e[1])?void 0:r.toLocaleLowerCase())})&&v.current===e.key&&(v.current="",g.current=b.current),v.current+=e.key,clearTimeout(m.current),m.current=setTimeout(()=>{v.current="",g.current=b.current,x(!1)},f);const n=g.current,o=t(r,[...r.slice((n||0)+1),...r.slice(0,(n||0)+1)],v.current);-1!==o?(y(o),b.current=o):" "!==e.key&&(v.current="",x(!1))}),A=n.useMemo(()=>({onKeyDown:O}),[O]),R=n.useMemo(()=>({onKeyDown:O,onKeyUp(e){" "===e.key&&x(!1)}}),[O,x]);return n.useMemo(()=>c?{reference:A,floating:R}:{},[c,A,R])}function ea(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const ta=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:a,offset:o=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:u,...c}=oe(e,t),{rects:d,elements:{floating:f}}=t,p=r.current[i],h=(null==u?void 0:u.current)||f,m=f.clientTop||h.clientTop,v=0!==f.clientTop,g=0!==h.clientTop,b=f===h;if(!p)return{};const y={...t,...await Mt(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-o).fn(t)},w=await mt(ea(y,h.scrollHeight+m+f.clientTop),c),S=await mt(y,{...c,elementContext:"reference"}),_=J(0,w.top),x=y.y+_,O=(h.scrollHeight>h.clientHeight?e=>e:X)(J(0,h.scrollHeight+(v&&b||g?2*m:0)-_-J(0,w.bottom)));if(h.style.maxHeight=O+"px",h.scrollTop=_,a){const e=h.offsetHeight<p.offsetHeight*Z(s,r.current.length)-1||S.top>=-l||S.bottom>=-l;Ge.flushSync(()=>a(e))}return n&&(n.current=await mt(ea({...y,y:x},h.offsetHeight+m+f.clientTop),c)),{y:x}}});function ra(e,t){const{open:r,elements:a}=e,{enabled:o=!0,overflowRef:i,scrollRef:s,onChange:l}=t,u=Gt(l),c=n.useRef(!1),d=n.useRef(null),f=n.useRef(null);n.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const r=e.deltaY,n=i.current.top>=-.5,a=i.current.bottom>=-.5,o=t.scrollHeight-t.clientHeight,s=r<0?-1:1,l=r<0?"max":"min";t.scrollHeight<=t.clientHeight||(!n&&r>0||!a&&r<0?(e.preventDefault(),Ge.flushSync(()=>{u(e=>e+Math[l](r,o*s))})):/firefox/i.test(N())&&(t.scrollTop+=r))}const t=(null==s?void 0:s.current)||a.floating;return r&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{d.current=t.scrollTop,null!=i.current&&(f.current={...i.current})}),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0},[o,r,a.floating,i,s,u]);const p=n.useMemo(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==s?void 0:s.current)||a.floating;if(i.current&&e&&c.current){if(null!==d.current){const t=e.scrollTop-d.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&Ge.flushSync(()=>u(e=>e+t))}requestAnimationFrame(()=>{d.current=e.scrollTop})}}}),[a.floating,u,i,s]);return n.useMemo(()=>o?{floating:p}:{},[o,p])}function na(e,t){const[r,n]=e;let a=!1;const o=t.length;for(let e=0,i=o-1;e<o;i=e++){const[o,s]=t[e]||[0,0],[l,u]=t[i]||[0,0];s>=n!=u>=n&&r<=(l-o)*(n-s)/(u-s)+o&&(a=!a)}return a}function aa(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=e;let a,o=!1,i=null,s=null,l=performance.now();const c=e=>{let{x:r,y:c,placement:d,elements:f,onClose:p,nodeId:h,tree:m}=e;return function(e){function v(){clearTimeout(a),p()}if(clearTimeout(a),!f.domReference||!f.floating||null==d||null==r||null==c)return;const{clientX:g,clientY:b}=e,y=[g,b],w=W(e),S="mouseleave"===e.type,_=M(f.floating,w),x=M(f.domReference,w),O=f.domReference.getBoundingClientRect(),A=f.floating.getBoundingClientRect(),R=d.split("-")[0],E=r>A.right-A.width/2,k=c>A.bottom-A.height/2,C=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,O),I=A.width>O.width,P=A.height>O.height,T=(I?O:A).left,N=(I?O:A).right,D=(P?O:A).top,F=(P?O:A).bottom;if(_&&(o=!0,!S))return;if(x&&(o=!1),x&&!S)return void(o=!0);if(S&&u(e.relatedTarget)&&M(f.floating,e.relatedTarget))return;if(m&&Wr(m.nodesRef.current,h).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===R&&c>=O.bottom-1||"bottom"===R&&c<=O.top+1||"left"===R&&r>=O.right-1||"right"===R&&r<=O.left+1)return v();let j=[];switch(R){case"top":j=[[T,O.top+1],[T,A.bottom-1],[N,A.bottom-1],[N,O.top+1]];break;case"bottom":j=[[T,A.top+1],[T,O.bottom-1],[N,O.bottom-1],[N,A.top+1]];break;case"left":j=[[A.right-1,F],[A.right-1,D],[O.left+1,D],[O.left+1,F]];break;case"right":j=[[O.right-1,F],[O.right-1,D],[A.left+1,D],[A.left+1,F]]}if(!na([g,b],j)){if(o&&!C)return v();if(!S&&n){const t=function(e,t){const r=performance.now(),n=r-l;if(null===i||null===s||0===n)return i=e,s=t,l=r,null;const a=e-i,o=t-s,u=Math.sqrt(a*a+o*o);return i=e,s=t,l=r,u/n}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}na([g,b],function(e){let[r,n]=e;switch(R){case"top":return[[I?r+t/2:E?r+4*t:r-4*t,n+t+1],[I?r-t/2:E?r+4*t:r-4*t,n+t+1],...[[A.left,E||I?A.bottom-t:A.top],[A.right,E?I?A.bottom-t:A.top:A.bottom-t]]];case"bottom":return[[I?r+t/2:E?r+4*t:r-4*t,n-t],[I?r-t/2:E?r+4*t:r-4*t,n-t],...[[A.left,E||I?A.top+t:A.bottom],[A.right,E?I?A.top+t:A.bottom:A.top+t]]];case"left":{const e=[r+t+1,P?n+t/2:k?n+4*t:n-4*t],a=[r+t+1,P?n-t/2:k?n+4*t:n-4*t];return[...[[k||P?A.right-t:A.left,A.top],[k?P?A.right-t:A.left:A.right-t,A.bottom]],e,a]}case"right":return[[r-t,P?n+t/2:k?n+4*t:n-4*t],[r-t,P?n-t/2:k?n+4*t:n-4*t],...[[k||P?A.left+t:A.right,A.top],[k?P?A.left+t:A.right:A.left+t,A.bottom]]]}}([r,c]))?!o&&n&&(a=window.setTimeout(v,40)):v()}}};return c.__options={blockPointerEvents:r},c}},74560:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var n=r(14123),a=r(11998),o=r(11420);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.concatAll()(o.from(e,a.popScheduler(e)))}},75403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var n=r(89042),a=r(44757);t.exhaustAll=function(){return n.exhaustMap(a.identity)}},75437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var n=r(21492),a=r(16351);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=n.asyncScheduler),e<0&&(e=0),a.timer(e,e,t)}},75489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var r=Array.isArray,n=Object.getPrototypeOf,a=Object.prototype,o=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(r(t))return{args:t,keys:null};if((s=t)&&"object"==typeof s&&n(s)===a){var i=o(t);return{args:i.map(function(e){return t[e]}),keys:i}}}var s;return{args:e,keys:null}}},75545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var n=r(21492),a=r(1172),o=r(75437);t.sampleTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),a.sample(o.interval(e,t))}},75642:(e,t)=>{"use strict";function r(e){var t=e.margin,r=e.containerPadding,n=e.containerWidth,a=e.cols;return(n-t[0]*(a-1)-2*r[0])/a}function n(e,t,r){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*r):e}function a(e,t,r){return Math.max(Math.min(e,r),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.calcGridColWidth=r,t.calcGridItemPosition=function(e,t,a,o,i,s){var l=e.margin,u=e.containerPadding,c=e.rowHeight,d=r(e),f={};s&&s.resizing?(f.width=Math.round(s.resizing.width),f.height=Math.round(s.resizing.height)):(f.width=n(o,d,l[0]),f.height=n(i,c,l[1]));s&&s.dragging?(f.top=Math.round(s.dragging.top),f.left=Math.round(s.dragging.left)):(f.top=Math.round((c+l[1])*a+u[1]),f.left=Math.round((d+l[0])*t+u[0]));return f},t.calcGridItemWHPx=n,t.calcWH=function(e,t,n,o,i){var s=e.margin,l=e.maxRows,u=e.cols,c=e.rowHeight,d=r(e),f=Math.round((t+s[0])/(d+s[0])),p=Math.round((n+s[1])/(c+s[1]));return f=a(f,0,u-o),p=a(p,0,l-i),{w:f,h:p}},t.calcXY=function(e,t,n,o,i){var s=e.margin,l=e.cols,u=e.rowHeight,c=e.maxRows,d=r(e),f=Math.round((n-s[0])/(d+s[0])),p=Math.round((t-s[1])/(u+s[1]));return f=a(f,0,l-o),p=a(p,0,c-i),{x:f,y:p}},t.clamp=a},75706:(e,t)=>{var r=Object.keys;t.L=function(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;for(var n=r(e),a=n.length,o=0;o<a;o++)if(!(n[o]in t))return!1;for(o=0;o<a;o++)if(e[n[o]]!==t[n[o]])return!1;return a===r(t).length}},75734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},75860:()=>{},75937:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"{{keyLabel}} 키로 필터 편집","managed-filter":"{{origin}} 관리 필터","non-applicable":"","remove-filter-with-key":"{{keyLabel}} 키로 필터 제거"},"adhoc-filters-combobox":{"remove-filter-value":"필터 값 제거 - {{itemLabel}}","use-custom-value":"사용자 지정 값 사용: {{itemLabel}}"},"fallback-page":{content:"링크를 사용하여 여기로 이동한 경우 이 애플리케이션에 버그가 있을 수 있습니다.",subTitle:"URL이 어떤 페이지와도 일치하지 않습니다.",title:"찾을 수 없음"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"장면 접기","expand-button-label":"장면 펼치기","remove-button-label":"장면 제거"},"scene-debugger":{"object-details":"객체 상세 정보","scene-graph":"장면 그래프","title-scene-debugger":"장면 디버거"},"scene-grid-row":{"collapse-row":"행 접기","expand-row":"행 펼치기"},"scene-refresh-picker":{"text-cancel":"취소","text-refresh":"새로 고침","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"비교","button-tooltip":"시간 범위 비교 활성화"},splitter:{"aria-label-pane-resize-widget":"창 크기 조정 위젯"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"제목"}},"viz-panel-explore-button":{explore:"탐색"},"viz-panel-renderer":{"loading-plugin-panel":"플러그인 패널 로딩 중...","panel-plugin-has-no-panel-component":"패널 플러그인에 패널 구성 요소가 없습니다."},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"하나의 패널에 너무 많은 시리즈를 렌더링하면 성능에 영향을 주고 데이터가 읽기 어려워질 수 있습니다. ","warning-message":"{{seriesLimit}}개 시계열만 표시 중"}},utils:{"controls-label":{"tooltip-remove":"제거"},"loading-indicator":{"content-cancel-query":"쿼리 취소"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"필터 연산자 편집"},"ad-hoc-filter-builder":{"aria-label-add-filter":"필터 추가","title-add-filter":"필터 추가"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"필터 제거","key-select":{"placeholder-select-label":"레이블 선택"},"label-select-label":"레이블 선택","title-remove-filter":"필터 제거","value-select":{"placeholder-select-value":"값 선택"}},"data-source-variable":{label:{default:"기본값"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"지우기",tooltip:"이 대시보드에서 기본적으로 적용됩니다. 편집하면 다른 대시보드로 이전됩니다.","tooltip-restore-groupby-set-by-this-dashboard":"이 대시보드에서 설정한 '그룹별'을 복원합니다."},"format-registry":{formats:{description:{"commaseparated-values":"쉼표로 구분된 값","double-quoted-values":"큰 따옴표로 묶인 값","format-date-in-different-ways":"다양한 방식으로 날짜 형식 지정","format-multivalued-variables-using-syntax-example":"glob 구문을 사용하여 다중 값 변수 형식 지정, 예: {value1,value2}","html-escaping-of-values":"값의 HTML 이스케이프","join-values-with-a-comma":"","json-stringify-value":"JSON 문자열화 값","keep-value-as-is":"값을 그대로 유지","multiple-values-are-formatted-like-variablevalue":"여러 값은 variable=value와 같은 형식으로 지정됩니다.","single-quoted-values":"작은 따옴표로 묶인 값","useful-escaping-values-taking-syntax-characters":"URI 구문 문자를 고려한 URL 이스케이프 값에 유용","useful-for-url-escaping-values":"URL 이스케이프 값에 유용","values-are-separated-by-character":"값은 | 문자로 구분됩니다"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"선택기를 기준으로 그룹화","placeholder-group-by-label":"레이블을 기준으로 그룹화"},"interval-variable":{"placeholder-select-value":"값 선택"},"loading-options-placeholder":{"loading-options":"옵션 로딩 중..."},"multi-value-apply-button":{apply:"적용"},"no-options-placeholder":{"no-options-found":"찾은 옵션 없음"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"라벨을 가져오는 동안 오류가 발생했습니다. 클릭하여 다시 시도"},"test-object-with-variable-dependency":{title:{hello:"안녕하세요"}},"test-variable":{text:{text:"텍스트"}},"variable-value-input":{"placeholder-enter-value":"값 입력"},"variable-value-select":{"placeholder-select-value":"값 선택"}}}}},76628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var n=r(52850),a=r(83598),o=r(34230),i=r(52628),s=r(93639);t.mergeMap=function e(t,r,l){return void 0===l&&(l=1/0),s.isFunction(r)?e(function(e,o){return n.map(function(t,n){return r(e,t,o,n)})(a.innerFrom(t(e,o)))},l):("number"==typeof r&&(l=r),o.operate(function(e,r){return i.mergeInternals(e,r,t,l)}))}},76719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var n=r(93697),a=r(92329),o=r(93639),i=r(8889);t.scheduleIterable=function(e,t){return new n.Observable(function(r){var n;return i.executeSchedule(r,t,function(){n=e[a.iterator](),i.executeSchedule(r,t,function(){var e,t,a;try{t=(e=n.next()).value,a=e.done}catch(e){return void r.error(e)}a?r.complete():r.next(t)},0,!0)}),function(){return o.isFunction(null==n?void 0:n.return)&&n.return()}})}},76790:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e,a){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var s=t.intervalProvider.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,n([e,a],r(o))):setInterval.apply(void 0,n([e,a],r(o)))},clearInterval:function(e){var r=t.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0}},76817:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var n=r(34230),a=r(52628);t.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),n.operate(function(n,o){var i=t;return a.mergeInternals(n,o,function(t,r){return e(i,t,r)},r,function(e){i=e},!1,void 0,function(){return i=null})})}},76823:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>a,pluginVersion:()=>n});const n="12.3.1",a={showImage:!0}},78444:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Editar filtro com chave {{keyLabel}}","managed-filter":"Filtro gerenciado de {{origin}}","non-applicable":"","remove-filter-with-key":"Remover filtro com chave {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Remover valor do filtro: {{itemLabel}}","use-custom-value":"Usar valor personalizado: {{itemLabel}}"},"fallback-page":{content:"Se você chegou aqui usando um link, pode haver um bug neste aplicativo.",subTitle:"O URL não corresponde a nenhuma página",title:"Não encontrado"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Recolher cena","expand-button-label":"Expandir cena","remove-button-label":"Remover cena"},"scene-debugger":{"object-details":"Detalhes do objeto","scene-graph":"Gráfico de cena","title-scene-debugger":"Depurador de cena"},"scene-grid-row":{"collapse-row":"Recolher linha","expand-row":"Expandir linha"},"scene-refresh-picker":{"text-cancel":"Cancelar","text-refresh":"Atualizar","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Comparação","button-tooltip":"Ativar comparação de intervalo de tempo"},splitter:{"aria-label-pane-resize-widget":"Widget de redimensionamento do painel"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Título"}},"viz-panel-explore-button":{explore:"Explorar"},"viz-panel-renderer":{"loading-plugin-panel":"Carregando painel do plug-in…","panel-plugin-has-no-panel-component":"O plug-in do painel não possui componente de painel"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Renderizar muitas séries em um único painel pode afetar o desempenho e dificultar a leitura dos dados.","warning-message":"Mostrando apenas {{seriesLimit}} série(s)"}},utils:{"controls-label":{"tooltip-remove":"Remover"},"loading-indicator":{"content-cancel-query":"Cancelar consulta"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Editar operador de filtro"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Adicionar filtro","title-add-filter":"Adicionar filtro"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Remover filtro","key-select":{"placeholder-select-label":"Selecionar rótulo"},"label-select-label":"Selecionar rótulo","title-remove-filter":"Remover filtro","value-select":{"placeholder-select-value":"Selecionar valor"}},"data-source-variable":{label:{default:"padrão"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"limpar",tooltip:"Aplicado por padrão neste painel. Se editado, ele é transferido para outros painéis.","tooltip-restore-groupby-set-by-this-dashboard":"Restaura a função groupby definida por este painel."},"format-registry":{formats:{description:{"commaseparated-values":"Valores separados por vírgula","double-quoted-values":"Valores entre aspas duplas","format-date-in-different-ways":"Formatar data de diferentes maneiras","format-multivalued-variables-using-syntax-example":"Formatar variáveis de múltiplos valores usando a sintaxe glob. Por exemplo: {value1,value2}","html-escaping-of-values":"Escape HTML de valores","join-values-with-a-comma":"","json-stringify-value":"Valor convertido em string JSON","keep-value-as-is":"Manter o valor como está","multiple-values-are-formatted-like-variablevalue":"Vários valores são formatados como variável=valor","single-quoted-values":"Valores entre aspas simples","useful-escaping-values-taking-syntax-characters":"Útil para valores de escape de URL, levando em consideração caracteres de sintaxe URI","useful-for-url-escaping-values":"Útil para valores de escape de URL","values-are-separated-by-character":'Os valores são separados pelo caractere "|"'}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Agrupar por seletor","placeholder-group-by-label":"Agrupar por rótulo"},"interval-variable":{"placeholder-select-value":"Selecionar valor"},"loading-options-placeholder":{"loading-options":"Carregando opções…"},"multi-value-apply-button":{apply:"Aplicar"},"no-options-placeholder":{"no-options-found":"Nenhuma opção encontrada"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Ocorreu um erro ao buscar rótulos. Clique para tentar novamente"},"test-object-with-variable-dependency":{title:{hello:"Olá"}},"test-variable":{text:{text:"Texto"}},"variable-value-input":{"placeholder-enter-value":"Digite um valor"},"variable-value-select":{"placeholder-select-value":"Selecionar valor"}}}}},79158:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(85959),a=r(48398),o=r(33625);function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const s=i(n),l="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function u({useFlushSync:e=!0,...t}){const r=s.useReducer(()=>({}),{})[1],n={...t,onChange:(n,o)=>{var i;e&&o?a.flushSync(r):r(),null==(i=t.onChange)||i.call(t,n,o)}},[i]=s.useState(()=>new o.Virtualizer(n));return i.setOptions(n),l(()=>i._didMount(),[]),l(()=>i._willUpdate()),i}t.useVirtualizer=function(e){return u({observeElementRect:o.observeElementRect,observeElementOffset:o.observeElementOffset,scrollToFn:o.elementScroll,...e})},t.useWindowVirtualizer=function(e){return u({getScrollElement:()=>"undefined"!=typeof document?window:null,observeElementRect:o.observeWindowRect,observeElementOffset:o.observeWindowOffset,scrollToFn:o.windowScroll,initialOffset:()=>"undefined"!=typeof document?window.scrollY:0,...e})},Object.keys(o).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:()=>o[e]})})},79194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var n=r(93697),a=r(83598),o=r(86322),i=r(34230),s=r(82792);t.groupBy=function(e,t,r,l){return i.operate(function(i,u){var c;t&&"function"!=typeof t?(r=t.duration,c=t.element,l=t.connector):c=t;var d=new Map,f=function(e){d.forEach(e),e(u)},p=function(e){return f(function(t){return t.error(e)})},h=0,m=!1,v=new s.OperatorSubscriber(u,function(t){try{var i=e(t),f=d.get(i);if(!f){d.set(i,f=l?l():new o.Subject);var g=(y=i,w=f,(S=new n.Observable(function(e){h++;var t=w.subscribe(e);return function(){t.unsubscribe(),0===--h&&m&&v.unsubscribe()}})).key=y,S);if(u.next(g),r){var b=s.createOperatorSubscriber(f,function(){f.complete(),null==b||b.unsubscribe()},void 0,void 0,function(){return d.delete(i)});v.add(a.innerFrom(r(g)).subscribe(b))}}f.next(c?c(t):t)}catch(e){p(e)}var y,w,S},function(){return f(function(e){return e.complete()})},p,function(){return d.clear()},function(){return m=!0,0===h});i.subscribe(v)})}},79615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var n=r(21492),a=r(70719),o=r(16351);t.delay=function(e,t){void 0===t&&(t=n.asyncScheduler);var r=o.timer(e,t);return a.delayWhen(function(){return r})}},80009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=i;var n,a=(n=r(59396))&&n.__esModule?n:{default:n};const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function i(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}var s=function(e,t=0){const r=i(e,t);if(!(0,a.default)(r))throw TypeError("Stringified UUID is invalid");return r};t.default=s},80196:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var n=r(52476),a=r(93639);t.min=function(e){return n.reduce(a.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}},80857:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};const n=new Uint8Array(16)},81038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,i,s){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,o.default)(n)),16!==(null===(l=n)||void 0===l?void 0:l.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+e.length);if(u.set(n),u.set(e,n.length),u=r(u),u[6]=15&u[6]|t,u[8]=63&u[8]|128,i){s=s||0;for(let e=0;e<16;++e)i[s+e]=u[e];return i}return(0,a.unsafeStringify)(u)}try{n.name=e}catch(e){}return n.DNS=i,n.URL=s,n};var n,a=r(80009),o=(n=r(27847))&&n.__esModule?n:{default:n};const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=i;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},81358:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var o=r(34230),i=r(14123),s=r(11998),l=r(11420);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popScheduler(e);return o.operate(function(t,o){i.concatAll()(l.from(a([t],n(e)),r)).subscribe(o)})}},81416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(56465)),a=i(r(80857)),o=r(80009);function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();const i=(e=e||{}).random||(e.rng||a.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return(0,o.unsafeStringify)(i)};t.default=s},81509:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var n=r(19854);t.distinctUntilKeyChanged=function(e,t){return n.distinctUntilChanged(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}},81863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var n=r(52964),a=r(59025);t.publishLast=function(){return function(e){var t=new n.AsyncSubject;return new a.ConnectableObservable(e,function(){return t})}}},82061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var n=r(51623),a=r(34230),o=r(82792),i=r(83598),s=r(16351);t.repeat=function(e){var t,r,l=1/0;return null!=e&&("object"==typeof e?(t=e.count,l=void 0===t?1/0:t,r=e.delay):l=e),l<=0?function(){return n.EMPTY}:a.operate(function(e,t){var n,a=0,u=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?s.timer(r):i.innerFrom(r(a)),l=o.createOperatorSubscriber(t,function(){l.unsubscribe(),c()});e.subscribe(l)}else c()},c=function(){var r=!1;n=e.subscribe(o.createOperatorSubscriber(t,void 0,function(){++a<l?n?u():r=!0:t.complete()})),r&&u()};c()})}},82370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var n=r(52476),a=r(34230),o=function(e,t){return e.push(t),e};t.toArray=function(){return a.operate(function(e,t){n.reduce(o,[])(e).subscribe(t)})}},82589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var n=r(83598),a=r(82792),o=r(34230);t.catchError=function e(t){return o.operate(function(r,o){var i,s=null,l=!1;s=r.subscribe(a.createOperatorSubscriber(o,void 0,void 0,function(a){i=n.innerFrom(t(a,e(t)(r))),s?(s.unsubscribe(),s=null,i.subscribe(o)):l=!0})),l&&(s.unsubscribe(),s=null,i.subscribe(o))})}},82690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var n=r(25755),a=r(91468);t.scheduleReadableStreamLike=function(e,t){return n.scheduleAsyncIterable(a.readableStreamLikeToAsyncGenerator(e),t)}},82767:(e,t,r)=>{"use strict";function n(e){var t,r,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(a&&(a+=" "),a+=r);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function a(){for(var e,t,r=0,a="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(a&&(a+=" "),a+=t);return a}r.r(t),r.d(t,{clsx:()=>a,default:()=>o});const o=a},82792:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var o=r(6278);t.createOperatorSubscriber=function(e,t,r,n,a){return new i(e,t,r,n,a)};var i=function(e){function t(t,r,n,a,o,i){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=i,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=a?function(e){try{a(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return a(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(o.Subscriber);t.OperatorSubscriber=i},83023:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,pluginVersion:()=>a});var n=r(33300);const a="12.3.1",o={colorMode:n.c.Value,graphMode:n.b.Area,justifyMode:n.a.Auto,percentChangeColorMode:n.P.Standard,showPercentChange:!1,textMode:n.B.Auto,wideLayout:!0}},83375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var n=r(34230),a=r(82792),o=r(83598);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),n.operate(function(r,n){var i={buffer:[],complete:!1},s={buffer:[],complete:!1},l=function(e){n.next(e),n.complete()},u=function(e,r){var o=a.createOperatorSubscriber(n,function(n){var a=r.buffer,o=r.complete;0===a.length?o?l(!1):e.buffer.push(n):!t(n,a.shift())&&l(!1)},function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&l(0===n.length),null==o||o.unsubscribe()});return o};r.subscribe(u(i,s)),o.innerFrom(e).subscribe(u(s,i))})}},83598:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(a,o){function i(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,s)}l((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof i?i(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,a){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,a,(t=e[r](t)).done,t.value)})}}},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var s=r(63425),l=r(51970),u=r(93697),c=r(32159),d=r(89585),f=r(24431),p=r(49925),h=r(91468),m=r(93639),v=r(45094),g=r(75734);function b(e){return new u.Observable(function(t){var r=e[g.observable]();if(m.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function y(e){return new u.Observable(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function w(e){return new u.Observable(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,v.reportUnhandledError)})}function S(e){return new u.Observable(function(t){var r,n;try{for(var a=i(e),o=a.next();!o.done;o=a.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}t.complete()})}function _(e){return new u.Observable(function(t){(function(e,t){var r,i,s,l;return n(this,void 0,void 0,function(){var n,u;return a(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),r=o(e),a.label=1;case 1:return[4,r.next()];case 2:if((i=a.sent()).done)return[3,4];if(n=i.value,t.next(n),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=a.sent(),s={error:u},[3,11];case 6:return a.trys.push([6,,9,10]),i&&!i.done&&(l=r.return)?[4,l.call(r)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function x(e){return _(h.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof u.Observable)return e;if(null!=e){if(c.isInteropObservable(e))return b(e);if(s.isArrayLike(e))return y(e);if(l.isPromise(e))return w(e);if(d.isAsyncIterable(e))return _(e);if(p.isIterable(e))return S(e);if(h.isReadableStreamLike(e))return x(e)}throw f.createInvalidObservableTypeError(e)},t.fromInteropObservable=b,t.fromArrayLike=y,t.fromPromise=w,t.fromIterable=S,t.fromAsyncIterable=_,t.fromReadableStreamLike=x},83718:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",m="[object RegExp]",v="[object Set]",g="[object String]",b="[object Symbol]",y="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",_=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[o]=O[i]=O[w]=O[s]=O[S]=O[l]=O[u]=O[c]=O[d]=O[f]=O[p]=O[m]=O[v]=O[g]=O[y]=!1;var A="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,R="object"==typeof self&&self&&self.Object===Object&&self,E=A||R||Function("return this")(),k=t&&!t.nodeType&&t,C=k&&e&&!e.nodeType&&e,I=C&&C.exports===k,P=I&&A.process,M=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),T=M&&M.isTypedArray;function N(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function D(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function F(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var j,L,V,z=Array.prototype,B=Function.prototype,U=Object.prototype,W=E["__core-js_shared__"],G=B.toString,H=U.hasOwnProperty,q=(j=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",$=U.toString,K=RegExp("^"+G.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=I?E.Buffer:void 0,Y=E.Symbol,Z=E.Uint8Array,J=U.propertyIsEnumerable,X=z.splice,ee=Y?Y.toStringTag:void 0,te=Object.getOwnPropertySymbols,re=Q?Q.isBuffer:void 0,ne=(L=Object.keys,V=Object,function(e){return L(V(e))}),ae=Me(E,"DataView"),oe=Me(E,"Map"),ie=Me(E,"Promise"),se=Me(E,"Set"),le=Me(E,"WeakMap"),ue=Me(Object,"create"),ce=Fe(ae),de=Fe(oe),fe=Fe(ie),pe=Fe(se),he=Fe(le),me=Y?Y.prototype:void 0,ve=me?me.valueOf:void 0;function ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ye(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function we(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ye;++t<r;)this.add(e[t])}function Se(e){var t=this.__data__=new be(e);this.size=t.size}function _e(e,t){var r=Ve(e),n=!r&&Le(e),a=!r&&!n&&ze(e),o=!r&&!n&&!a&&He(e),i=r||n||a||o,s=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var u in e)!t&&!H.call(e,u)||i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||De(u,l))||s.push(u);return s}function xe(e,t){for(var r=e.length;r--;)if(je(e[r][0],t))return r;return-1}function Oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=H.call(e,ee),r=e[ee];try{e[ee]=void 0;var n=!0}catch(e){}var a=$.call(e);n&&(t?e[ee]=r:delete e[ee]);return a}(e):function(e){return $.call(e)}(e)}function Ae(e){return Ge(e)&&Oe(e)==o}function Re(e,t,r,n,a){return e===t||(null==e||null==t||!Ge(e)&&!Ge(t)?e!=e&&t!=t:function(e,t,r,n,a,c){var h=Ve(e),y=Ve(t),_=h?i:Ne(e),x=y?i:Ne(t),O=(_=_==o?p:_)==p,A=(x=x==o?p:x)==p,R=_==x;if(R&&ze(e)){if(!ze(t))return!1;h=!0,O=!1}if(R&&!O)return c||(c=new Se),h||He(e)?Ce(e,t,r,n,a,c):function(e,t,r,n,a,o,i){switch(r){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!o(new Z(e),new Z(t)));case s:case l:case f:return je(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case d:var c=D;case v:var p=1&n;if(c||(c=F),e.size!=t.size&&!p)return!1;var h=i.get(e);if(h)return h==t;n|=2,i.set(e,t);var y=Ce(c(e),c(t),n,a,o,i);return i.delete(e),y;case b:if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,_,r,n,a,c);if(!(1&r)){var E=O&&H.call(e,"__wrapped__"),k=A&&H.call(t,"__wrapped__");if(E||k){var C=E?e.value():e,I=k?t.value():t;return c||(c=new Se),a(C,I,r,n,c)}}if(!R)return!1;return c||(c=new Se),function(e,t,r,n,a,o){var i=1&r,s=Ie(e),l=s.length,u=Ie(t),c=u.length;if(l!=c&&!i)return!1;var d=l;for(;d--;){var f=s[d];if(!(i?f in t:H.call(t,f)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var h=!0;o.set(e,t),o.set(t,e);var m=i;for(;++d<l;){var v=e[f=s[d]],g=t[f];if(n)var b=i?n(g,v,f,t,e,o):n(v,g,f,e,t,o);if(!(void 0===b?v===g||a(v,g,r,n,o):b)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,r,n,a,c)}(e,t,r,n,Re,a))}function Ee(e){return!(!We(e)||function(e){return!!q&&q in e}(e))&&(Be(e)?K:_).test(Fe(e))}function ke(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||U,t!==n)return ne(e);var t,r,n,a=[];for(var o in Object(e))H.call(e,o)&&"constructor"!=o&&a.push(o);return a}function Ce(e,t,r,n,a,o){var i=1&r,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,f=2&r?new we:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var p=e[c],h=t[c];if(n)var m=i?n(h,p,c,t,e,o):n(p,h,c,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!N(t,function(e,t){if(i=t,!f.has(i)&&(p===e||a(p,e,r,n,o)))return f.push(t);var i})){d=!1;break}}else if(p!==h&&!a(p,h,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ie(e){return function(e,t,r){var n=t(e);return Ve(e)?n:function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}(n,r(e))}(e,qe,Te)}function Pe(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function Me(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Ee(r)?r:void 0}ge.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(ue){var r=t[e];return r===n?void 0:r}return H.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:H.call(t,e)},ge.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ue&&void 0===t?n:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,r=xe(t,e);return!(r<0)&&(r==t.length-1?t.pop():X.call(t,r,1),--this.size,!0)},be.prototype.get=function(e){var t=this.__data__,r=xe(t,e);return r<0?void 0:t[r][1]},be.prototype.has=function(e){return xe(this.__data__,e)>-1},be.prototype.set=function(e,t){var r=this.__data__,n=xe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(oe||be),string:new ge}},ye.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Pe(this,e).get(e)},ye.prototype.has=function(e){return Pe(this,e).has(e)},ye.prototype.set=function(e,t){var r=Pe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},we.prototype.add=we.prototype.push=function(e){return this.__data__.set(e,n),this},we.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new be,this.size=0},Se.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var r=this.__data__;if(r instanceof be){var n=r.__data__;if(!oe||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ye(n)}return r.set(e,t),this.size=r.size,this};var Te=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}(te(e),function(t){return J.call(e,t)}))}:function(){return[]},Ne=Oe;function De(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(ae&&Ne(new ae(new ArrayBuffer(1)))!=S||oe&&Ne(new oe)!=d||ie&&Ne(ie.resolve())!=h||se&&Ne(new se)!=v||le&&Ne(new le)!=y)&&(Ne=function(e){var t=Oe(e),r=t==p?e.constructor:void 0,n=r?Fe(r):"";if(n)switch(n){case ce:return S;case de:return d;case fe:return h;case pe:return v;case he:return y}return t});var Le=Ae(function(){return arguments}())?Ae:function(e){return Ge(e)&&H.call(e,"callee")&&!J.call(e,"callee")},Ve=Array.isArray;var ze=re||function(){return!1};function Be(e){if(!We(e))return!1;var t=Oe(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ue(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function We(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ge(e){return null!=e&&"object"==typeof e}var He=T?function(e){return function(t){return e(t)}}(T):function(e){return Ge(e)&&Ue(e.length)&&!!O[Oe(e)]};function qe(e){return null!=(t=e)&&Ue(t.length)&&!Be(t)?_e(e):ke(e);var t}e.exports=function(e,t){return Re(e,t)}},83990:(e,t,r)=>{"use strict";var n=r(47372),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,o,i,s,l,u,c=!1;t||(t={}),r=t.debug||!1;try{if(i=n(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=a[t.format]||a.default;window.clipboardData.setData(o,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),i()}return c}},85362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},85583:(e,t)=>{"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){const t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const o=e.length/4+2,i=Math.ceil(o/16),s=new Array(i);for(let t=0;t<i;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];s[t]=r}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<i;++e){const o=new Uint32Array(80);for(let t=0;t<16;++t)o[t]=s[e][t];for(let e=16;e<80;++e)o[e]=n(o[e-3]^o[e-8]^o[e-14]^o[e-16],1);let i=a[0],l=a[1],u=a[2],c=a[3],d=a[4];for(let e=0;e<80;++e){const a=Math.floor(e/20),s=n(i,5)+r(a,l,u,c)+d+t[a]+o[e]>>>0;d=c,c=u,u=n(l,30)>>>0,l=i,i=s}a[0]=a[0]+i>>>0,a[1]=a[1]+l>>>0,a[2]=a[2]+u>>>0,a[3]=a[3]+c>>>0,a[4]=a[4]+d>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]};t.default=a},85802:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var n=r(21492),a=r(50191),o=r(16351);t.auditTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),a.audit(function(){return o.timer(e,t)})}},85941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var n=r(98206),a=r(39708),o=r(48926),i=r(55117),s=r(13769);t.elementAt=function(e,t){if(e<0)throw new n.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(l){return l.pipe(a.filter(function(t,r){return r===e}),s.take(1),r?i.defaultIfEmpty(t):o.throwIfEmpty(function(){return new n.ArgumentOutOfRangeError}))}}},86276:(e,t)=>{t.t=function(e){var t=e.index,r=e.parentStyleSheet,n=r.cssRules||r.rules;for(t=Math.max(t,n.length-1);t>=0;){if(n[t]===e){r.deleteRule(t);break}t--}}},86322:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var i=r(93697),s=r(59705),l=r(70829),u=r(72420),c=r(91722),d=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return a(t,e),t.prototype.lift=function(e){var t=new f(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new l.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;c.errorContext(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var a=o(t.currentObservers),i=a.next();!i.done;i=a.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;c.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;c.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,a=r.isStopped,o=r.observers;return n||a?s.EMPTY_SUBSCRIPTION:(this.currentObservers=null,o.push(e),new s.Subscription(function(){t.currentObservers=null,u.arrRemove(o,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,a=t.isStopped;r?e.error(n):a&&e.complete()},t.prototype.asObservable=function(){var e=new i.Observable;return e.source=this,e},t.create=function(e,t){return new f(e,t)},t}(i.Observable);t.Subject=d;var f=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return a(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:s.EMPTY_SUBSCRIPTION},t}(d);t.AnonymousSubject=f},86870:(e,t,r)=>{"use strict";var n=r(36701);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},87023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},88667:(e,t)=>{"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Redigera filter med nyckeln {{keyLabel}}","managed-filter":"Filter som hanteras av {{origin}}","non-applicable":"","remove-filter-with-key":"Ta bort filter med nyckeln {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Ta bort filtervärde – {{itemLabel}}","use-custom-value":"Använd anpassat värde: {{itemLabel}}"},"fallback-page":{content:"Om du kom hit via en länk kan det finnas en bugg i den här applikationen.",subTitle:"Webbadressen matchade ingen sida",title:"Hittades inte"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Dölj scen","expand-button-label":"Visa scen","remove-button-label":"Ta bort scen"},"scene-debugger":{"object-details":"Information om objekt","scene-graph":"Scengraf","title-scene-debugger":"Scenfelsökare"},"scene-grid-row":{"collapse-row":"Dölj rad","expand-row":"Expandera rad"},"scene-refresh-picker":{"text-cancel":"Avbryt","text-refresh":"Uppdatera","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Jämförelse","button-tooltip":"Aktivera jämförelse av tidsram"},splitter:{"aria-label-pane-resize-widget":"Widget för storleksändring av ruta"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Titel"}},"viz-panel-explore-button":{explore:"Utforska"},"viz-panel-renderer":{"loading-plugin-panel":"Läser in tilläggspanel …","panel-plugin-has-no-panel-component":"Paneltillägg har ingen panelkomponent"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Att återge för många serier i en enda panel kan påverka prestandan och göra data svårare att läsa. ","warning-message":"Visar endast {{seriesLimit}} serier"}},utils:{"controls-label":{"tooltip-remove":"Ta bort"},"loading-indicator":{"content-cancel-query":"Avbryt fråga"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Redigera filteroperator"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Lägg till filter","title-add-filter":"Lägg till filter"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Ta bort filter","key-select":{"placeholder-select-label":"Välj etikett"},"label-select-label":"Välj etikett","title-remove-filter":"Ta bort filter","value-select":{"placeholder-select-value":"Välj värde"}},"data-source-variable":{label:{default:"standard"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"radera",tooltip:"Tillämpas som standard i denna instrumentpanel. Om den redigeras överförs det till andra instrumentpaneler.","tooltip-restore-groupby-set-by-this-dashboard":"Återställ gruppering som inställts av denna panel."},"format-registry":{formats:{description:{"commaseparated-values":"Kommaavgränsade värden","double-quoted-values":"Dubbelciterade värden","format-date-in-different-ways":"Formatera datum på olika sätt","format-multivalued-variables-using-syntax-example":"Formatera flervärdesvariabler med globsyntax, till exempel {value1,value2}","html-escaping-of-values":"HTML-undantagstecken för värden","join-values-with-a-comma":"","json-stringify-value":"JSON stringify-värde","keep-value-as-is":"Behåll värdet som det är","multiple-values-are-formatted-like-variablevalue":"Flera värden formateras som variabel=värde","single-quoted-values":"Enkla citerade värden","useful-escaping-values-taking-syntax-characters":"Användbart för URL-undantagna värden, med hänsyn till URI-syntaxtecken","useful-for-url-escaping-values":"Användbart för URL-undantagning av värden","values-are-separated-by-character":"Värdena är åtskilda med tecknet |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Gruppera efter väljare","placeholder-group-by-label":"Gruppera efter etikett"},"interval-variable":{"placeholder-select-value":"Välj värde"},"loading-options-placeholder":{"loading-options":"Laddar alternativ …"},"multi-value-apply-button":{apply:"Tillämpa"},"no-options-placeholder":{"no-options-found":"Inga alternativ hittades"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Ett fel uppstod vid hämtning av etiketter. Klicka för att försöka igen"},"test-object-with-variable-dependency":{title:{hello:"Hej"}},"test-variable":{text:{text:"Text"}},"variable-value-input":{"placeholder-enter-value":"Ange ett värde"},"variable-value-select":{"placeholder-select-value":"Välj värde"}}}}},89042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var n=r(52850),a=r(83598),o=r(34230),i=r(82792);t.exhaustMap=function e(t,r){return r?function(o){return o.pipe(e(function(e,o){return a.innerFrom(t(e,o)).pipe(n.map(function(t,n){return r(e,t,o,n)}))}))}:o.operate(function(e,r){var n=0,o=null,s=!1;e.subscribe(i.createOperatorSubscriber(r,function(e){o||(o=i.createOperatorSubscriber(r,void 0,function(){o=null,s&&r.complete()}),a.innerFrom(t(e,n++)).subscribe(o))},function(){s=!0,!o&&r.complete()}))})}},89467:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!==a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!==a--;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=n;0!==a--;){var i=o[a];if(("_owner"!==i||!t.$$typeof)&&!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},89585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var n=r(93639);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&n.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},89637:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(a=t?n:r){if(a.has(e))return a.get(e);a.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?a(i,t,o):i[t]=e[t]);return i}(e,t)}(r(85959)),a=r(57831),o=r(22841),i=r(30642);const s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(null,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class f extends n.Component{constructor(){super(...arguments),this.handleRefs={},this.lastHandleRect=null,this.slack=null,this.lastSize=null}componentWillUnmount(){this.resetData()}resetData(){this.lastHandleRect=this.slack=this.lastSize=null}runConstraints(e,t){const{minConstraints:r,maxConstraints:n,lockAspectRatio:a}=this.props;if(!r&&!n&&!a)return[e,t];if(a){const r=this.props.width/this.props.height,n=e-this.props.width,a=t-this.props.height;Math.abs(n)>Math.abs(a*r)?t=e/r:e=t*r}const[o,i]=[e,t];let[s,l]=this.slack||[0,0];return e+=s,t+=l,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),n&&(e=Math.min(n[0],e),t=Math.min(n[1],t)),this.slack=[s+(o-e),l+(i-t)],[e,t]}resizeHandler(e,t){return(r,n)=>{let{node:a,deltaX:o,deltaY:i}=n;"onResizeStart"===e&&this.resetData();const s=("both"===this.props.axis||"x"===this.props.axis)&&"n"!==t&&"s"!==t,l=("both"===this.props.axis||"y"===this.props.axis)&&"e"!==t&&"w"!==t;if(!s&&!l)return;const u=t[0],c=t[t.length-1],d=a.getBoundingClientRect();if(null!=this.lastHandleRect){if("w"===c){o+=d.left-this.lastHandleRect.left}if("n"===u){i+=d.top-this.lastHandleRect.top}}this.lastHandleRect=d,"w"===c&&(o=-o),"n"===u&&(i=-i);let f=this.props.width+(s?o/this.props.transformScale:0),p=this.props.height+(l?i/this.props.transformScale:0);[f,p]=this.runConstraints(f,p),"onResizeStop"===e&&this.lastSize&&({width:f,height:p}=this.lastSize);const h=f!==this.props.width||p!==this.props.height;"onResizeStop"!==e&&(this.lastSize={width:f,height:p});const m="function"==typeof this.props[e]?this.props[e]:null;m&&!("onResize"===e&&!h)&&(r.persist?.(),m(r,{node:a,size:{width:f,height:p},handle:t})),"onResizeStop"===e&&this.resetData()}}renderResizeHandle(e,t){const{handle:r}=this.props;if(!r)return n.createElement("span",{className:`react-resizable-handle react-resizable-handle-${e}`,ref:t});if("function"==typeof r)return r(e,t);const a=c({ref:t},"string"==typeof r.type?{}:{handleAxis:e});return n.cloneElement(r,a)}render(){const e=this.props,{children:t,className:r,draggableOpts:i,width:u,height:d,handle:f,handleSize:p,lockAspectRatio:h,axis:m,minConstraints:v,maxConstraints:g,onResize:b,onResizeStop:y,onResizeStart:w,resizeHandles:S,transformScale:_}=e,x=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,s);return(0,o.cloneElement)(t,c(c({},x),{},{className:(r?`${r} `:"")+"react-resizable",children:[...n.Children.toArray(t.props.children),...S.map(e=>{const t=this.handleRefs[e]??(this.handleRefs[e]=n.createRef());return n.createElement(a.DraggableCore,l({},i,{nodeRef:t,key:`resizableHandle-${e}`,onStop:this.resizeHandler("onResizeStop",e),onStart:this.resizeHandler("onResizeStart",e),onDrag:this.resizeHandler("onResize",e)}),this.renderResizeHandle(e,t))})]}))}}t.default=f,f.propTypes=i.resizableProps,f.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},91014:e=>{function t(e){var r,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(n=t(e[r]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function r(){for(var e,r,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(r=t(e))&&(a&&(a+=" "),a+=r);return a}e.exports=r,e.exports.clsx=r},91103:(e,t,r)=>{"use strict";r.r(t),r.d(t,{MapCenterID:()=>s,TooltipMode:()=>i,defaultMapViewConfig:()=>o,defaultOptions:()=>a,pluginVersion:()=>n});const n="12.3.1",a={layers:[]},o={allLayers:!0,id:"zero",lat:0,lon:0,noRepeat:!1,zoom:1};var i=(e=>(e.Details="details",e.None="none",e))(i||{}),s=(e=>(e.Coords="coords",e.Fit="fit",e.Zero="zero",e))(s||{})},91468:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__await||function(e){return this instanceof a?(this.v=e,this):new a(e)},o=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||l(e,t)})})}function l(e,t){try{(r=o[e](t)).value instanceof a?Promise.resolve(r.value.v).then(u,c):d(i[0][2],r)}catch(e){d(i[0][3],e)}var r}function u(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var i=r(93639);t.readableStreamLikeToAsyncGenerator=function(e){return o(this,arguments,function(){var t,r,o;return n(this,function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,a(t.read())];case 3:return r=n.sent(),o=r.value,r.done?[4,a(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,a(o)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})},t.isReadableStreamLike=function(e){return i.isFunction(null==e?void 0:e.getReader)}},91501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var n=r(34230),a=r(82792);function o(e,t,r){var n="index"===r;return function(r,o){var i=0;r.subscribe(a.createOperatorSubscriber(o,function(a){var s=i++;e.call(t,a,s,r)&&(o.next(n?s:a),o.complete())},function(){o.next(n?-1:void 0),o.complete()}))}}t.find=function(e,t){return n.operate(o(e,t,"value"))},t.createFind=o},91722:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var n=r(85362),a=null;t.errorContext=function(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!a;if(t&&(a={errorThrown:!1,error:null}),e(),t){var r=a,o=r.errorThrown,i=r.error;if(a=null,o)throw i}}else e()},t.captureError=function(e){n.config.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=e)}},91805:(e,t)=>{"use strict";var r=/[A-Z]/g;t.v=function(e){var t=(e=e||{}).assign||Object.assign;var n=t({raw:"",pfx:"_",client:"object"==typeof window,assign:t,stringify:JSON.stringify,kebab:function(e){return e.replace(r,"-$&").toLowerCase()},decl:function(e,t){return(e=n.kebab(e))+":"+t+";"},hash:function(e){return function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return"_"+(t>>>0).toString(36)}(n.stringify(e))},selector:function(e,t){return e+(":"===t[0]?"":" ")+t},putRaw:function(e){n.raw+=e}},e);return n.client&&(n.sh||document.head.appendChild(n.sh=document.createElement("style")),n.putRaw=function(e){var t=n.sh.sheet;try{t.insertRule(e,t.cssRules.length)}catch(e){}}),n.put=function(e,t,r){var a,o,i="",s=[];for(a in t)(o=t[a])instanceof Object&&!(o instanceof Array)?s.push(a):i+=n.decl(a,o,e,r);i&&(i=e+"{"+i+"}",n.putRaw(r?r+"{"+i+"}":i));for(var l=0;l<s.length;l++)"@"===(a=s[l])[0]&&"@font-face"!==a?n.putAt(e,t[a],a):n.put(n.selector(e,a),t[a],r)},n.putAt=n.put,n}},92329:(e,t)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=r,t.iterator=r()},92735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(81038)),a=o(r(85583));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,n.default)("v5",80,a.default);t.default=i},93639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},93697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var n=r(6278),a=r(59705),o=r(75734),i=r(55955),s=r(85362),l=r(93639),u=r(91722),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,i=this,s=(o=e)&&o instanceof n.Subscriber||function(e){return e&&l.isFunction(e.next)&&l.isFunction(e.error)&&l.isFunction(e.complete)}(o)&&a.isSubscription(o)?e:new n.SafeSubscriber(e,t,r);return u.errorContext(function(){var e=i,t=e.operator,r=e.source;s.add(t?t.call(s,r):r?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=d(t))(function(t,a){var o=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){a(e),o.unsubscribe()}},error:a,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!==(t=null!=e?e:s.config.Promise)&&void 0!==t?t:Promise}t.Observable=c},93859:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,pluginVersion:()=>a});var n=r(33300);const a="12.3.1",o={displayMode:n.h.Gradient,maxVizHeight:300,minVizHeight:16,minVizWidth:8,namePlacement:n.g.Auto,showUnfilled:!0,sizing:n.e.Auto,valueMode:n.f.Color}},93902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var n=r(75403);t.exhaust=n.exhaustAll},94073:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var o=r(74560),i=r(41897);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return o.concat(t,i.of.apply(void 0,a([],n(e))))}}},95435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var n=r(52476);t.count=function(e){return n.reduce(function(t,r,n){return!e||e(r,n)?t+1:t},0)}},95594:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var n=r(17046),a=r(39708),o=r(13769),i=r(55117),s=r(48926),l=r(44757);t.first=function(e,t){var r=arguments.length>=2;return function(u){return u.pipe(e?a.filter(function(t,r){return e(t,r,u)}):l.identity,o.take(1),r?i.defaultIfEmpty(t):s.throwIfEmpty(function(){return new n.EmptyError}))}}},96471:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var n=r(21492),a=r(99939),o=r(34230),i=r(83598),s=r(36333),l=r(82792),u=r(8889);function c(e){throw new t.TimeoutError(e)}t.TimeoutError=s.createErrorClass(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}),t.timeout=function(e,t){var r=a.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,s=r.first,d=r.each,f=r.with,p=void 0===f?c:f,h=r.scheduler,m=void 0===h?null!=t?t:n.asyncScheduler:h,v=r.meta,g=void 0===v?null:v;if(null==s&&null==d)throw new TypeError("No timeout provided.");return o.operate(function(e,t){var r,n,a=null,o=0,c=function(e){n=u.executeSchedule(t,m,function(){try{r.unsubscribe(),i.innerFrom(p({meta:g,lastValue:a,seen:o})).subscribe(t)}catch(e){t.error(e)}},e)};r=e.subscribe(l.createOperatorSubscriber(t,function(e){null==n||n.unsubscribe(),o++,t.next(a=e),d>0&&c(d)},void 0,void 0,function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),a=null})),!o&&c(null!=s?"number"==typeof s?s:+s-m.now():d)})}},96554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var n=r(34230),a=r(82792);t.pairwise=function(){return n.operate(function(e,t){var r,n=!1;e.subscribe(a.createOperatorSubscriber(t,function(e){var a=r;r=e,n&&t.next([a,e]),n=!0}))})}},97058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var n=r(34230),a=r(82792),o=r(44757),i=r(16351),s=r(83598);t.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,l=void 0===r?1/0:r,u=t.delay,c=t.resetOnSuccess,d=void 0!==c&&c;return l<=0?o.identity:n.operate(function(e,t){var r,n=0,o=function(){var c=!1;r=e.subscribe(a.createOperatorSubscriber(t,function(e){d&&(n=0),t.next(e)},void 0,function(e){if(n++<l){var d=function(){r?(r.unsubscribe(),r=null,o()):c=!0};if(null!=u){var f="number"==typeof u?i.timer(u):s.innerFrom(u(e,n)),p=a.createOperatorSubscriber(t,function(){p.unsubscribe(),d()},function(){t.complete()});f.subscribe(p)}else d()}else t.error(e)})),c&&(r.unsubscribe(),r=null,o())};o()})}},97243:(e,t,r)=>{"use strict";var n=r(86276).t;t.v=function(e){if(e.client){0;var t=e.kebab;r.prototype.diff=function(e){var r,n=this.decl,a=this.rule.style;for(r in n)void 0===e[r]&&a.removeProperty(r);for(r in e)e[r]!==n[r]&&a.setProperty(t(r),e[r]);this.decl=e},r.prototype.del=function(){n(this.rule)},a.prototype.diff=function(e){var t=this.tree;for(var n in t)if(void 0===e[n]){var a=t[n];for(var o in a)a[o].del()}for(var n in e)if(void 0===t[n])for(var o in e[n]){(l=new r(o,n)).diff(e[n][o]),e[n][o]=l}else{var i=t[n],s=e[n];for(var o in i)s[o]||i[o].del();for(var o in s){var l;(l=i[o])?(l.diff(s[o]),s[o]=l):((l=new r(o,n)).diff(s[o]),s[o]=l)}}this.tree=e},e.VRule=r,e.VSheet=a}function r(t,r){this.rule=e.createRule(t,r),this.decl={}}function a(){this.tree={}}}},97698:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(r,n){return!e.call(t,r,n)}}},98005:(e,t)=>{"use strict";function r(e,t,r){return{kind:e,value:t,error:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=r("C",void 0,void 0),t.errorNotification=function(e){return r("E",void 0,e)},t.nextNotification=function(e){return r("N",e,void 0)},t.createNotification=r},98156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var n=r(83598),a=r(58013),o=r(68505);t.scheduleObservable=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),a.observeOn(t))}},98206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var n=r(36333);t.ArgumentOutOfRangeError=n.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},98543:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var n=r(63713),a=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=n.dateTimestampProvider.now,e}();t.Scheduler=a},99210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var n=r(86322),a=r(83598),o=r(34230),i=r(15261),s={connector:function(){return new n.Subject}};t.connect=function(e,t){void 0===t&&(t=s);var r=t.connector;return o.operate(function(t,n){var o=r();a.innerFrom(e(i.fromSubscribable(o))).subscribe(n),n.add(t.subscribe(o))})}},99939:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}}}]);
|
||
//# sourceMappingURL=904.js.map?_cache=aa60b9b7f4f280cb17bb
|