Files
2026-03-06 14:37:04 +00:00

3 lines
1.0 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see 812.js.LICENSE.txt */
(self.webpackChunkgrafana_lokiexplore_app=self.webpackChunkgrafana_lokiexplore_app||[]).push([[812],{90219:(e,t,r)=>{(()=>{"use strict";var t={n:e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};function a(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return(t>>>0).toString(16)}t.r(n),t.d(n,{AITextArea:()=>qt,AITextInput:()=>Ht,ASSISTANT_PLUGIN_ID:()=>Y,ASSISTANT_PLUGIN_TITLE:()=>Q,CALLBACK_EXTENSION_POINT:()=>W,ComponentNodeData:()=>_,DashboardNodeData:()=>R,DatasourceNodeData:()=>T,EntityNodeData:()=>A,FolderNodeData:()=>C,InvestigationCreatedEvent:()=>U,LIMITS_UPDATED_EVENT:()=>er,LabelNameNodeData:()=>P,LabelValueNodeData:()=>I,OpenAssistantButton:()=>Ct,OpenAssistantSplitButton:()=>Pt,PlaybookNodeData:()=>j,StructuredNodeData:()=>i,TERMS_AND_CONDITIONS_REFRESH_EVENT:()=>Yt,checkLimits:()=>rr,checkTerms:()=>Xt,closeAssistant:()=>oe,createAssistantContextItem:()=>M,createTool:()=>Zt,emitInvestigationCreated:()=>B,ensureInlineAssistantInitialized:()=>zt,getExposeAssistantFunctionsConfig:()=>G,getInlineAssistantFactory:()=>$t,isAssistantAvailable:()=>ee,newFunctionNamespace:()=>q,onInvestigationCreated:()=>H,openAssistant:()=>ae,provideComponents:()=>k,providePageContext:()=>b,provideQuestions:()=>N,setInlineAssistantFactory:()=>Nt,setInlineAssistantInitializer:()=>Ft,toggleAssistant:()=>ie,useAssistant:()=>se,useInlineAssistant:()=>Vt,useLimits:()=>nr,usePageComponents:()=>O,usePageContext:()=>S,useProvidePageContext:()=>w,useProvideQuestions:()=>F,useQuestions:()=>z,useTerms:()=>Jt});class o{constructor(e){this.params=e,this.text="",this.id=a(e.id),this.type=e.type}formatForLLM(e){var t,r;return{type:this.type,codeElementIds:e,data:{name:null!==(t=this.params.text)&&void 0!==t?t:"",text:null!==(r=this.params.text)&&void 0!==r?r:""}}}equals(e){return e instanceof o&&this.id===e.id&&this.type===e.type}}class i extends o{constructor(e){super({...e,id:a(JSON.stringify(e.data)),type:"structured"}),this.data=e.data}formatForLLM(e){return{type:this.type,codeElementIds:e,data:this.data}}}const s=r(18531),l=r(85959);var u=t.n(l);const c="__grafanaAssistantPageContextRegistry__",d="grafana-assistant:page-context-registry-changed",f="grafana-assistant:page-context-update",p="grafana-assistant:page-context-remove",h="grafana-assistant:page-context-sync";function m(){return window[c]}function v(e,t=!1){window[c]=e,window.dispatchEvent(new CustomEvent(d)),t||window.dispatchEvent(new CustomEvent(h,{detail:{registry:e}}))}window[c]||(window[c]=[]);let g=!1;function b(e,t){var r;(r=e)instanceof RegExp?r.source:"string"!=typeof r||r&&""!==r.trim()||console.warn("useProvidePageContext: Empty string passed as urlPattern. This will cause the context to not match any pages.");const n={id:x(),urlPattern:e,context:[...t]};v([...m(),n]),window.dispatchEvent(new CustomEvent(f,{detail:n}));const a=e=>{const t=m(),r=t.findIndex(e=>e.id===n.id);if(-1!==r){const n=[...t];n[r]={...n[r],context:[...e]},v(n),window.dispatchEvent(new CustomEvent(f,{detail:n[r]}))}};return a.unregister=()=>{const e=m(),t=e.findIndex(e=>e.id===n.id);-1!==t&&(v(e.filter((e,r)=>r!==t)),window.dispatchEvent(new CustomEvent(p,{detail:{id:n.id}})))},a}g||(g=!0,window.addEventListener(f,e=>{const t=e.detail;if(!t||!t.id)return;const r=m(),n=r.findIndex(e=>e.id===t.id);if(-1!==n){const e=[...r];e[n]=t,v(e,!0)}else v([...r,t],!0)}),window.addEventListener(p,e=>{var t;const r=null===(t=e.detail)||void 0===t?void 0:t.id;if(!r)return;const n=m(),a=n.findIndex(e=>e.id===r);-1!==a&&v(n.filter((e,t)=>t!==a),!0)}),window.addEventListener(h,e=>{var t;const r=null===(t=e.detail)||void 0===t?void 0:t.registry;if(!Array.isArray(r))return;const n=m(),a=new Set(n.map(e=>e.id)),o=r.filter(e=>!a.has(e.id));o.length>0&&v([...n,...o],!0)}));const y=[];function w(e,t=y){const r=(0,l.useRef)(void 0),n=(0,l.useRef)(void 0),a=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{a.current=!1;const o=void 0!==n.current?n.current:t;return r.current=b(e,o),void 0!==n.current&&(n.current=void 0),()=>{var e;null===(e=r.current)||void 0===e||e.unregister(),r.current=void 0}},[e]),(0,l.useEffect)(()=>{!a.current&&r.current&&r.current(t)},[t]),(0,l.useCallback)(e=>{a.current=!0,r.current?r.current(e):n.current=e},[])}function S(e={allowQuestions:!1,allowComponents:!1}){const[t,r]=(0,l.useState)([]),n=(0,s.useLocationService)(),a=(0,l.useRef)("");(0,l.useEffect)(()=>{const e=()=>{const e=function(e){if(!e)return[];const t=[],r=m();for(const n of r)E(e,n.urlPattern)&&t.push(...n.context);return t}(n.getLocation().pathname);r(e)},t=()=>{e()},o=n.getLocationObservable().subscribe(t=>{const r=t.pathname;r!==a.current&&(a.current=r,e())});return window.addEventListener(d,t),window.addEventListener(f,t),window.addEventListener(p,t),window.addEventListener(h,t),e(),()=>{o.unsubscribe(),window.removeEventListener(d,t),window.removeEventListener(f,t),window.removeEventListener(p,t),window.removeEventListener(h,t)}},[n]);let o=t;return e.allowQuestions||(o=o.filter(e=>{var t;return"question"!==(null===(t=e.node.data)||void 0===t?void 0:t.type)})),e.allowComponents||(o=o.filter(e=>{var t;return"component"!==(null===(t=e.node.data)||void 0===t?void 0:t.type)})),o}function x(e="page-context"){return`${e}-${Date.now()}-${Math.random().toString(36).slice(2,11)}`}function E(e,t){if(t instanceof RegExp)return t.test(e);if("string"==typeof t){if(!t||""===t.trim())return!1;const r=t.replace(/\*\*/g,"\0DOUBLE_STAR\0").replace(/\*/g,"[^/]*").replace(/\u0000DOUBLE_STAR\u0000/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(e)}return!1}class _ extends o{constructor(e){const t=e.namespace||"components";super({...e,id:`${t}-${Object.keys(e.components).join("-")}`,type:"component"}),this.components=e.components,this.prompt=e.prompt,this.namespace=t}formatForLLM(e){return{type:this.type,codeElementIds:e,data:{name:`${this.namespace} components`,prompt:this.prompt,namespace:this.namespace}}}}function O(){const e=S({allowComponents:!0,allowQuestions:!1});return(0,l.useMemo)(()=>{const t={};return e.filter(e=>{var t;return null===(t=e.node.data)||void 0===t?void 0:t.components}).forEach(e=>{const r=e.node.data;if((null==r?void 0:r.components)&&Object.keys(r.components).length>0){const e=r.namespace||r.name||"components";Object.entries(r.components).forEach(([r,n])=>{t[`${e}_${r}`]=n})}}),t},[e])}function k(e,t,r,n=/.*/){if((a=n)instanceof RegExp?".*"===a.source&&""===a.flags:".*"===a||"/.*/"===a){const n=b(/.*/,[M("component",{components:r,prompt:e,namespace:t})]),a=(e,r)=>{n([M("component",{components:e,prompt:r,namespace:t})])};return a.unregister=n.unregister,a}var a;const o=b(/.*/,[M("component",{components:r,prompt:"",namespace:t})]),i=b(n,[M("component",{components:{},prompt:e,namespace:t})]),s=(e,r)=>{o([M("component",{components:e,prompt:"",namespace:t})]),i([M("component",{components:{},prompt:r,namespace:t})])};return s.unregister=()=>{o.unregister(),i.unregister()},s}class R extends o{constructor(e){super({...e,id:e.dashboardUid,type:"dashboard"}),this.dashboardUid=e.dashboardUid,this.dashboardTitle=e.dashboardTitle,this.folderUid=e.folderUid,this.folderTitle=e.folderTitle,this.text=e.dashboardTitle}formatForLLM(e){return{type:this.type,codeElementIds:e,data:{name:this.dashboardTitle,dashboardUid:this.dashboardUid,dashboardTitle:this.dashboardTitle,folderUid:this.folderUid,folderTitle:this.folderTitle,text:this.text}}}}class C extends o{constructor(e){super({...e,id:e.folderUid,type:"dashboard_folder"}),this.text="",this.folderUid=e.folderUid,this.folderTitle=e.folderTitle,this.text=e.folderTitle}formatForLLM(e){return{type:this.type,codeElementIds:e,data:{name:this.folderTitle,folderUid:this.folderUid,folderTitle:this.folderTitle,text:this.text}}}}class T extends o{constructor(e){super({...e,id:e.datasourceUid,type:"datasource"}),this.datasourceUid=e.datasourceUid,this.datasourceType=e.datasourceType,this.datasourceName=e.datasourceName,this.img=e.img,this.text=e.datasourceName}formatForLLM(e){return{type:this.type,codeElementIds:e,data:{name:this.datasourceName,uid:this.datasourceUid,type:this.datasourceType,text:this.text}}}}class A extends o{constructor(e){var t,r,n;super({id:`${e.type}-${e.name}-${[null===(t=e.scope)||void 0===t?void 0:t.env,null===(r=e.scope)||void 0===r?void 0:r.site,null===(n=e.scope)||void 0===n?void 0:n.namespace].filter(Boolean).join("-")}`,type:"entity",title:e.title,hidden:e.hidden,img:e.img,icon:e.icon,text:e.name}),this.entityType=e.type,this.name=e.name,this.scope=e.scope,this.properties=e.properties,this.text=e.name}formatForLLM(e){return{type:"entity",codeElementIds:e,data:{name:this.name,text:this.text,type:this.entityType,scope:this.scope,properties:this.properties}}}}class P extends o{constructor(e){super({...e,id:`${e.datasourceUid}-${e.labelName}`,type:"label_name"}),this.datasourceUid=e.datasourceUid,this.datasourceType=e.datasourceType,this.datasourceName=e.datasourceName,this.labelName=e.labelName,this.text=e.labelName,this.img=e.img}formatForLLM(e){return{type:this.type,codeElementIds:e,data:{name:this.labelName,datasourceUid:this.datasourceUid,datasourceType:this.datasourceType,datasourceName:this.datasourceName,labelName:this.labelName,text:this.text}}}}class I extends o{constructor(e){super({...e,id:`${e.datasourceUid}-${e.labelName}-${e.labelValue}-${e.operator||"="}`,type:"label_value"}),this.datasourceUid=e.datasourceUid,this.datasourceType=e.datasourceType,this.datasourceName=e.datasourceName,this.labelName=e.labelName,this.labelValue=e.labelValue,this.text=e.labelValue,this.img=e.img,this.operator=e.operator||"="}formatForLLM(e){return{type:this.type,codeElementIds:e,data:{name:this.labelValue,datasourceUid:this.datasourceUid,datasourceType:this.datasourceType,datasourceName:this.datasourceName,labelName:this.labelName,labelValue:this.labelValue,text:this.text,operator:this.operator}}}}function D(e){var t,r,n,a,o;const i=(0,s.getDataSourceSrv)().getInstanceSettings(e);return{datasourceType:null!==(t=null==i?void 0:i.type)&&void 0!==t?t:"unknown",datasourceName:null!==(r=null==i?void 0:i.name)&&void 0!==r?r:e,img:null===(o=null===(a=null===(n=null==i?void 0:i.meta)||void 0===n?void 0:n.info)||void 0===a?void 0:a.logos)||void 0===o?void 0:o.small}}const L={datasource:"database",label_name:"database",label_value:"database",dashboard:"dashboard",dashboard_folder:"folder",unknown:"circle-mono",structured:"gf-grid",component:"gf-grid",entity:"asserts",playbook:"play"};function M(e,t){var r,n,a;const s=function(e,t){switch(e){case"datasource":return new T({...t,...D(t.datasourceUid)});case"label_name":return new P({...t,...D(t.datasourceUid)});case"label_value":return new I({...t,...D(t.datasourceUid)});case"dashboard":return new R(t);case"dashboard_folder":return new C(t);case"structured":return new i(t);case"component":return new _({...t,hidden:!0});case"entity":return new A(t);case"unknown":return new o(t);default:return console.error(`Unknown context type: ${e}`),new o(t)}}(e,t),l=null!==(r=t.title)&&void 0!==r?r:function(e){var t;return e instanceof i?e.formatForLLM().data.name:null!==(t=e.text)&&void 0!==t?t:"Given Context"}(s),u=null!==(n=t.img)&&void 0!==n?n:function(e){if("img"in e)return e.img}(s);return{node:{id:s.id,name:l,img:u,icon:null!==(a=t.icon)&&void 0!==a?a:L[e],navigable:!1,selectable:!0,data:s},occurrences:[]}}class j extends o{constructor(e){super({...e,id:e.playbookId,type:"playbook",text:e.playbookName}),this.playbookId=e.playbookId,this.playbookName=e.playbookName,this.text=e.playbookName}formatForLLM(e){return{type:this.type,codeElementIds:e,data:{name:this.playbookName,playbookId:this.playbookId,playbookName:this.playbookName,text:this.text}}}}function N(e,t){const r=x("question"),n=e=>e.map((e,t)=>({node:{id:`question-${r}-${t}`,name:e.title||e.prompt,navigable:!1,selectable:!0,icon:"question-circle",data:{type:"question",prompt:e.prompt,title:e.title,context:e.context||[]}},occurrences:[]})),a=b(e,n(t)),o=e=>{a(n(e))};return o.unregister=a.unregister,o}function F(e,t=[]){const r=(0,l.useMemo)(()=>x("question"),[]),n=e=>e.map((e,t)=>{var n;return{node:{id:`question-${r}-${t}`,name:null!==(n=e.title)&&void 0!==n?n:e.prompt,navigable:!1,selectable:!0,icon:"question-circle",data:{type:"question",prompt:e.prompt,title:e.title,context:e.context||[]}},occurrences:[]}}),a=w(e,n(t));return e=>{a(n(e))}}function z(){const e=S({allowQuestions:!0,allowComponents:!1});return $(e)}const $=e=>e.filter(e=>{var t;return"question"===(null===(t=e.node.data)||void 0===t?void 0:t.type)}).map(e=>{var t,r,n;return{prompt:(null===(t=e.node.data)||void 0===t?void 0:t.prompt)||e.node.name,title:null===(r=e.node.data)||void 0===r?void 0:r.title,context:(null===(n=e.node.data)||void 0===n?void 0:n.context)||[]}}),V=r(87781);class U extends V.BusEventWithPayload{}function B(e){const t=new U({investigationId:e});(0,s.getAppEvents)().publish(t)}function H(e){const t=(0,s.getAppEvents)().subscribe(U,t=>{e(t.payload)});return()=>t.unsubscribe()}U.type="grafana-assistant:investigation-created";const W="grafana-assistant-app/callback/v0-alpha";function q(e,t){return{namespace:e,functions:t}}function G(e){return{title:"callback",targets:[W],fn:()=>e.map(e=>({namespace:e.namespace,functions:e.functions}))}}const K=r(31269),Y="grafana-assistant-app",Q="Grafana Assistant",X=10,J=100,Z=5e3;function ee(){return s.getObservablePluginLinks?(0,K.defer)(()=>{try{return(0,s.getObservablePluginLinks)({extensionPointId:"grafana/extension-sidebar/v0-alpha"}).pipe((0,K.map)(e=>e.some(e=>e.pluginId===Y&&e.title===Q)))}catch(e){return(0,K.throwError)(()=>e)}}).pipe((0,K.retry)({count:X,delay:(e,t)=>{var r;const n=(null===(r=null==e?void 0:e.message)||void 0===r?void 0:r.toLowerCase())||"";if(!(n.includes("can only be used after")||n.includes("grafana instance has started")||n.includes("not started")))throw e;const a=Math.min(J*Math.pow(2,t-1),Z);return(0,K.timer)(a)}}),(0,K.catchError)(()=>(0,K.of)(!1))):(0,K.of)(!1)}class te extends V.BusEventWithPayload{}te.type="open-extension-sidebar";class re extends V.BusEventBase{}re.type="close-extension-sidebar";class ne extends V.BusEventWithPayload{}function ae(e){var t,r;(0,s.reportInteraction)("grafana_assistant_app_opened_sidebar",{from:e.origin,prompt:null!==(t=e.prompt)&&void 0!==t?t:""}),function(e,t,r){const n=new te({pluginId:e,componentTitle:t,props:r});(0,s.getAppEvents)().publish(n)}(Y,Q,{initialPrompt:e.prompt,initialContext:e.context,initialAutoSend:null===(r=e.autoSend)||void 0===r||r,origin:e.origin,initialMode:e.mode})}function oe(){!function(){const e=new re;(0,s.getAppEvents)().publish(e)}()}function ie(e){var t,r;(0,s.reportInteraction)("grafana_assistant_app_toggled_sidebar",{from:e.origin,prompt:null!==(t=e.prompt)&&void 0!==t?t:""}),function(e,t,r){const n=new ne({pluginId:e,componentTitle:t,props:r});(0,s.getAppEvents)().publish(n)}(Y,Q,{initialPrompt:e.prompt,initialContext:e.context,initialAutoSend:null===(r=e.autoSend)||void 0===r||r,origin:e.origin,initialMode:e.mode})}function se(){const[e,t]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{const e=ee().subscribe(e=>t(e));return()=>{e.unsubscribe()}},[]),{isAvailable:e,openAssistant:e?ae:void 0,closeAssistant:e?oe:void 0,toggleAssistant:e?ie:void 0}}ne.type="toggle-extension-sidebar";const le=r(82007);var ue=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),ce=Math.abs,de=String.fromCharCode,fe=Object.assign;function pe(e){return e.trim()}function he(e,t,r){return e.replace(t,r)}function me(e,t){return e.indexOf(t)}function ve(e,t){return 0|e.charCodeAt(t)}function ge(e,t,r){return e.slice(t,r)}function be(e){return e.length}function ye(e){return e.length}function we(e,t){return t.push(e),e}var Se=1,xe=1,Ee=0,_e=0,Oe=0,ke="";function Re(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Se,column:xe,length:i,return:""}}function Ce(e,t){return fe(Re("",null,null,"",null,null,0),e,{length:-e.length},t)}function Te(){return Oe=_e>0?ve(ke,--_e):0,xe--,10===Oe&&(xe=1,Se--),Oe}function Ae(){return Oe=_e<Ee?ve(ke,_e++):0,xe++,10===Oe&&(xe=1,Se++),Oe}function Pe(){return ve(ke,_e)}function Ie(){return _e}function De(e,t){return ge(ke,e,t)}function Le(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Me(e){return Se=xe=1,Ee=be(ke=e),_e=0,[]}function je(e){return ke="",e}function Ne(e){return pe(De(_e-1,$e(91===e?e+2:40===e?e+1:e)))}function Fe(e){for(;(Oe=Pe())&&Oe<33;)Ae();return Le(e)>2||Le(Oe)>3?"":" "}function ze(e,t){for(;--t&&Ae()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return De(e,Ie()+(t<6&&32==Pe()&&32==Ae()))}function $e(e){for(;Ae();)switch(Oe){case e:return _e;case 34:case 39:34!==e&&39!==e&&$e(Oe);break;case 40:41===e&&$e(e);break;case 92:Ae()}return _e}function Ve(e,t){for(;Ae()&&e+Oe!==57&&(e+Oe!==84||47!==Pe()););return"/*"+De(t,_e-1)+"*"+de(47===e?e:Ae())}function Ue(e){for(;!Le(Pe());)Ae();return De(e,_e)}var Be="-ms-",He="-moz-",We="-webkit-",qe="comm",Ge="rule",Ke="decl",Ye="@keyframes";function Qe(e,t){for(var r="",n=ye(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Xe(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ke:return e.return=e.return||e.value;case qe:return"";case Ye:return e.return=e.value+"{"+Qe(e.children,n)+"}";case Ge:e.value=e.props.join(",")}return be(r=Qe(e.children,n))?e.return=e.value+"{"+r+"}":""}function Je(e){return je(Ze("",null,null,null,[""],e=Me(e),0,[0],e))}function Ze(e,t,r,n,a,o,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,v=1,g=1,b=0,y="",w=a,S=o,x=n,E=y;v;)switch(h=b,b=Ae()){case 40:if(108!=h&&58==ve(E,d-1)){-1!=me(E+=he(Ne(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:E+=Ne(b);break;case 9:case 10:case 13:case 32:E+=Fe(h);break;case 92:E+=ze(Ie()-1,7);continue;case 47:switch(Pe()){case 42:case 47:we(tt(Ve(Ae(),Ie()),t,r),l);break;default:E+="/"}break;case 123*m:s[u++]=be(E)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:-1==g&&(E=he(E,/\f/g,"")),p>0&&be(E)-d&&we(p>32?rt(E+";",n,r,d-1):rt(he(E," ","")+";",n,r,d-2),l);break;case 59:E+=";";default:if(we(x=et(E,t,r,u,c,a,s,y,w=[],S=[],d),o),123===b)if(0===c)Ze(E,t,x,x,w,o,d,s,S);else switch(99===f&&110===ve(E,3)?100:f){case 100:case 108:case 109:case 115:Ze(e,x,x,n&&we(et(e,x,x,0,0,a,s,y,a,w=[],d),S),a,S,d,s,n?w:S);break;default:Ze(E,x,x,x,[""],S,0,s,S)}}u=c=p=0,m=g=1,y=E="",d=i;break;case 58:d=1+be(E),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Te())continue;switch(E+=de(b),b*m){case 38:g=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(be(E)-1)*g,g=1;break;case 64:45===Pe()&&(E+=Ne(Ae())),f=Pe(),c=d=be(y=E+=Ue(Ie())),b++;break;case 45:45===h&&2==be(E)&&(m=0)}}return o}function et(e,t,r,n,a,o,i,s,l,u,c){for(var d=a-1,f=0===a?o:[""],p=ye(f),h=0,m=0,v=0;h<n;++h)for(var g=0,b=ge(e,d+1,d=ce(m=i[h])),y=e;g<p;++g)(y=pe(m>0?f[g]+" "+b:he(b,/&\f/g,f[g])))&&(l[v++]=y);return Re(e,t,r,0===a?Ge:s,l,u,c)}function tt(e,t,r){return Re(e,t,r,qe,de(Oe),ge(e,2,-2),0)}function rt(e,t,r,n){return Re(e,t,r,Ke,ge(e,0,n),ge(e,n+1,-1),n)}var nt=function(e,t,r){for(var n=0,a=0;n=a,a=Pe(),38===n&&12===a&&(t[r]=1),!Le(a);)Ae();return De(e,_e)},at=new WeakMap,ot=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||at.get(r))&&!n){at.set(e,!0);for(var a=[],o=function(e,t){return je(function(e,t){var r=-1,n=44;do{switch(Le(n)){case 0:38===n&&12===Pe()&&(t[r]=1),e[r]+=nt(_e-1,t,r);break;case 2:e[r]+=Ne(n);break;case 4:if(44===n){e[++r]=58===Pe()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=de(n)}}while(n=Ae());return e}(Me(e),t))}(t,a),i=r.props,s=0,l=0;s<o.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[u]):i[u]+" "+o[s]}}},it=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function st(e,t){switch(function(e,t){return 45^ve(e,0)?(((t<<2^ve(e,0))<<2^ve(e,1))<<2^ve(e,2))<<2^ve(e,3):0}(e,t)){case 5103:return We+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+He+e+Be+e+e;case 6828:case 4268:return We+e+Be+e+e;case 6165:return We+e+Be+"flex-"+e+e;case 5187:return We+e+he(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return We+e+Be+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return We+e+Be+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+Be+he(e,"shrink","negative")+e;case 5292:return We+e+Be+he(e,"basis","preferred-size")+e;case 6060:return We+"box-"+he(e,"-grow","")+We+e+Be+he(e,"grow","positive")+e;case 4554:return We+he(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,We+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(be(e)-1-t>6)switch(ve(e,t+1)){case 109:if(45!==ve(e,t+4))break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+He+(108==ve(e,t+3)?"$3":"$2-$3"))+e;case 115:return~me(e,"stretch")?st(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ve(e,t+1))break;case 6444:switch(ve(e,be(e)-3-(~me(e,"!important")&&10))){case 107:return he(e,":",":"+We)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(45===ve(e,14)?"inline-":"")+"box$3$1"+We+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(ve(e,t+11)){case 114:return We+e+Be+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+Be+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+Be+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+Be+e+e}return e}var lt=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ke:e.return=st(e.value,e.length);break;case Ye:return Qe([Ce(e,{value:he(e.value,"@","@"+We)})],n);case Ge:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Qe([Ce(e,{props:[he(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Qe([Ce(e,{props:[he(t,/:(plac\w+)/,":"+We+"input-$1")]}),Ce(e,{props:[he(t,/:(plac\w+)/,":-moz-$1")]}),Ce(e,{props:[he(t,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}}],ut={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ct=/[A-Z]|^ms/g,dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ft=function(e){return 45===e.charCodeAt(1)},pt=function(e){return null!=e&&"boolean"!=typeof e},ht=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){return ft(e)?e:e.replace(ct,"-$&").toLowerCase()}),mt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dt,function(e,t,r){return gt={name:t,styles:r,next:gt},t})}return 1===ut[e]||ft(e)||"number"!=typeof t||0===t?t:t+"px"};function vt(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var a=r;if(1===a.anim)return gt={name:a.name,styles:a.styles,next:gt},a.name;var o=r;if(void 0!==o.styles){var i=o.next;if(void 0!==i)for(;void 0!==i;)gt={name:i.name,styles:i.styles,next:gt},i=i.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=vt(e,t,r[a])+";";else for(var o in r){var i=r[o];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":pt(s)&&(n+=ht(o)+":"+mt(o,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=vt(e,t,i);switch(o){case"animation":case"animationName":n+=ht(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}else for(var u=0;u<i.length;u++)pt(i[u])&&(n+=ht(o)+":"+mt(o,i[u])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=gt,l=r(e);return gt=s,vt(e,t,l)}}var u=r;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var gt,bt=/label:\s*([^\s;{]+)\s*(;|$)/g;function yt(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";gt=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,a+=vt(r,t,o)):a+=o[0];for(var i=1;i<e.length;i++)a+=vt(r,t,e[i]),n&&(a+=o[i]);bt.lastIndex=0;for(var s,l="";null!==(s=bt.exec(a));)l+="-"+s[1];var u=function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(a)+l;return{name:u,styles:a,next:gt}}function wt(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}function St(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function xt(e,t,r){var n=[],a=wt(e,n,r);return n.length<2?r:a+t(n)}var Et=function e(t){for(var r="",n=0;n<t.length;n++){var a=t[n];if(null!=a){var o=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))o=e(a);else for(var i in o="",a)a[i]&&i&&(o&&(o+=" "),o+=i);break;default:o=a}o&&(r&&(r+=" "),r+=o)}}return r},_t=function(){var e=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,a,o=e.stylisPlugins||lt,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)});var l,u,c,d,f=[Xe,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[ot,it].concat(o,f),c=ye(u),function(e,t,r,n){for(var a="",o=0;o<c;o++)a+=u[o](e,t,r,n)||"";return a});a=function(e,t,r,n){l=r,Qe(Je(e?e+"{"+t.styles+"}":t.styles),p),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ue({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(s),h}({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=yt(r,e.registered,void 0);return function(e,t){!function(e,t){var r=e.key+"-"+t.name;void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,a),e.key+"-"+a.name};return{css:t,cx:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return xt(e.registered,t,Et(n))},injectGlobal:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=yt(r,e.registered);St(e,a)},keyframes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=yt(r,e.registered),o="animation-"+a.name;return St(e,{name:a.name,styles:"@keyframes "+o+"{"+a.styles+"}"}),o},hydrate:function(t){t.forEach(function(t){e.inserted[t]=!0})},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:wt.bind(null,e.registered),merge:xt.bind(null,e.registered,t)}}(),Ot=(_t.flush,_t.hydrate,_t.cx),kt=(_t.merge,_t.getRegisteredStyles,_t.injectGlobal,_t.keyframes),Rt=_t.css;function Ct(e){const{isAvailable:t,openAssistant:r}=se();return t&&r?u().createElement(Tt,{...e,openAssistant:r}):null}function Tt({prompt:e,origin:t,context:r,autoSend:n=!0,title:a="Analyze with Assistant",size:o="sm",iconOnlyButton:i=!1,openAssistant:c,onClick:d}){const f=(0,le.useStyles2)(At);return(0,l.useEffect)(()=>{(0,s.reportInteraction)("grafana_assistant_app_open_sidebar_button_displayed",{from:t})},[t]),u().createElement(u().Fragment,null,i?u().createElement(le.IconButton,{name:"ai-sparkle",onClick:()=>{null==d||d(),c({prompt:e,context:r,autoSend:n,origin:t})},variant:"secondary",size:o,"aria-label":a,className:f.icon,tooltip:a,"data-testid":"assistant-icon-button"}):u().createElement(le.Button,{icon:"ai-sparkle",onClick:()=>{null==d||d(),c({prompt:e,context:r,autoSend:n,origin:t})},variant:"secondary",fill:"solid",size:o,title:a,"aria-label":a,className:f.button,"data-testid":"assistant-button"},a))}_t.sheet,_t.cache;const At=e=>{const t=e.colors.secondary.main,r=e.colors.emphasize(t,.05),n=e.colors.background.canvas,a=e.shape.radius.default,o=`max(calc(${a} - 1px), 1px)`,i={content:'""',position:"absolute",inset:0,borderRadius:a,cornerShape:"squircle",background:"linear-gradient(90deg, rgb(168, 85, 247), rgb(249, 115, 22))",zIndex:-2,pointerEvents:"none"},s=e=>({content:'""',position:"absolute",inset:"1px",borderRadius:o,cornerShape:"squircle",background:`linear-gradient(${e}, ${e}), ${n}`,zIndex:-1,transition:"none",pointerEvents:"none"});return{button:Rt({label:"assistant-button",position:"relative",isolation:"isolate",border:"none",transition:"none !important","&::before":i,"&::after":{...s(t),transition:"none"},"&:hover":{transition:"none !important"},"&:hover::after":{background:`linear-gradient(${r}, ${r}), ${n}`}}),icon:Rt({label:"assistant-icon",position:"relative",isolation:"isolate",border:"none",background:"none",padding:e.spacing(.5),"&::before":{...i,transition:"background 0.1s ease"},"&:hover::after":{...s(t),background:`linear-gradient(${r}, ${r}), ${n}`}})}};function Pt(e){const{isAvailable:t,openAssistant:r}=se();return t&&r?u().createElement(It,{...e,openAssistant:r}):null}function It({prompt:e,origin:t,context:r,autoSend:n=!0,title:a="Chat with Assistant",size:o="sm",onClick:i,menuItems:c,tooltip:d,openAssistant:f}){const p=(0,le.useStyles2)(Dt);(0,l.useEffect)(()=>{(0,s.reportInteraction)("grafana_assistant_app_open_sidebar_split_button_displayed",{from:t})},[t]);const h=u().createElement("div",{className:p.wrapper},u().createElement(le.ButtonGroup,{className:p.buttonGroup},u().createElement(le.Button,{icon:"ai-sparkle",onClick:()=>{null==i||i(),f({prompt:e,context:r,autoSend:n,origin:t})},variant:"secondary",fill:"solid",size:o,"aria-label":a,"data-testid":"assistant-split-button-main"},a),c&&u().createElement(le.Dropdown,{overlay:c},u().createElement(le.Button,{variant:"secondary",icon:"angle-down",size:o,"aria-label":"More AI actions",className:p.dropdownButton,"data-testid":"assistant-split-button-dropdown"}))));return d?u().createElement(le.Tooltip,{content:d},h):h}const Dt=e=>{const t=e.colors.secondary.main,r=e.colors.emphasize(t,.05),n=e.colors.background.canvas,a=e.shape.radius.default;return{wrapper:Rt({label:"assistant-split-button-wrapper",position:"relative",isolation:"isolate",display:"inline-block","&::before":{content:'""',position:"absolute",inset:0,borderRadius:a,cornerShape:"squircle",background:"linear-gradient(90deg, rgb(168, 85, 247), rgb(249, 115, 22))",zIndex:-1,pointerEvents:"none"},"&::after":{content:'""',position:"absolute",inset:"1px",borderRadius:`max(calc(${a} - 1px), 1px)`,cornerShape:"squircle",background:`linear-gradient(${t}, ${t}), ${n}`,zIndex:-1,pointerEvents:"none"},"&:hover::after":{background:`linear-gradient(${r}, ${r}), ${n}`}}),buttonGroup:Rt({label:"assistant-split-button-group",gap:0,position:"relative",zIndex:1,"& button":{border:"none",background:"transparent !important","&:hover":{background:"transparent !important"}}}),dropdownButton:Rt({padding:"0 6px"})}},Lt="__grafanaAssistantInlineFactory__",Mt="__grafanaAssistantInlineInitializer__",jt="__grafanaAssistantInlineInitPromise__";function Nt(e){const t=window[Lt];t&&t!==e?console.warn("InlineAssistant factory already set; ignoring subsequent setInlineAssistantFactory call"):t||(window[Lt]=e)}function Ft(e){const t=window[Mt];t&&t!==e?console.warn("InlineAssistant initializer already set; ignoring subsequent setInlineAssistantInitializer call"):t||(window[Mt]=e)}async function zt(){if(window[Lt])return;const e=window[Mt];if(!e)throw new Error("InlineAssistant not initialized. Make sure the Grafana Assistant plugin is loaded and initialized.");const t=window[jt];if(t)return t;const r=(async()=>{try{await e()}catch(e){throw window[jt]=null,e}})();return window[jt]=r,r}function $t(){const e=window[Lt];if(!e)throw new Error("InlineAssistant factory not initialized. Make sure the Grafana Assistant plugin is loaded.");return e}function Vt(){const[e,t]=(0,l.useState)(!1),[r,n]=(0,l.useState)(""),[a,o]=(0,l.useState)(null),i=(0,l.useRef)(null),s=(0,l.useCallback)(()=>{o(null),n("")},[]),u=(0,l.useCallback)(()=>{i.current&&i.current.cancel(),t(!1)},[]),c=(0,l.useCallback)(async e=>{var r;o(null),n(""),t(!0);try{await zt();const r=$t();i.current||(i.current=await r(e.origin)),await i.current.sendPrompt({prompt:e.prompt,systemPrompt:e.systemPrompt,tools:e.tools,onStart:()=>{t(!0)},onDelta:t=>{var r;n(e=>e+t),null===(r=e.onDelta)||void 0===r||r.call(e,t)},onComplete:r=>{var a;n(r),t(!1),null===(a=e.onComplete)||void 0===a||a.call(e,r)},onError:r=>{var n;o(r),t(!1),null===(n=e.onError)||void 0===n||n.call(e,r)}})}catch(n){const a=n instanceof Error?n:new Error(String(n));o(a),t(!1),null===(r=e.onError)||void 0===r||r.call(e,a)}},[]);return(0,l.useEffect)(()=>()=>{i.current&&(i.current.cancel(),i.current.dispose(),i.current=null)},[]),{generate:c,isGenerating:e,content:r,error:a,cancel:u,reset:s}}const Ut=e=>{const t=["rgb(168, 85, 247)","rgb(249, 115, 22)"];if("dark"===e.name.toLowerCase()||"light"===e.name.toLowerCase())return t;const r=e.colors.gradients.brandHorizontal.match(/#[0-9A-Fa-f]{6}/g);return!r||r.length<2?t:[r[0],r[1]]},Bt=(e,t,r,n)=>{const a=Array.from({length:101},(e,t)=>t),o={},[i,s]=Ut(e),l=null!=r?r:i,u=null!=n?n:s;return a.forEach(e=>{o[`${e}%`]={backgroundImage:`\n linear-gradient(${t}, ${t}),\n conic-gradient(from ${3.6*e}deg, transparent 60%, ${l} 80%, ${u} 100%, transparent 15%)\n `}}),o};function Ht({value:e,onChange:t,placeholder:r,origin:n,systemPrompt:a,onComplete:o,onError:i,onDelta:s,disabled:l=!1,className:c,"data-testid":d}){const{generate:f,isGenerating:p,error:h,reset:m}=Vt(),v=!e.trim()||l||p,g=(0,le.useStyles2)(Wt),b=async()=>{if(v)return;const t=e.trim();m(),await f({prompt:t,origin:n,systemPrompt:a,onComplete:e=>{null==o||o(e)},onError:e=>{null==i||i(e)},onDelta:e=>{null==s||s(e)}})},y=u().createElement(le.IconButton,{name:"ai-sparkle",onClick:b,disabled:v,tooltip:v?"Enter text to generate":"Generate with AI","data-testid":d?`${d}-send`:void 0});return u().createElement("div",{className:Ot(g.wrapper,{[g.animatedWrapper]:p},c),"data-testid":d},u().createElement(le.Input,{value:e,onKeyDown:e=>{"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())},onChange:e=>t(e.currentTarget.value),placeholder:null!=r?r:"Ask AI to generate...",disabled:l||p,suffix:y,invalid:!!h,"data-testid":d?`${d}-input`:void 0}))}const Wt=e=>{const t=e.colors.background.primary,r=kt({label:"ai-input-border-animation",...Bt(e,t)}),[n,a]=Ut(e);return{wrapper:Rt({label:"ai-text-input-wrapper",position:"relative",borderRadius:e.shape.radius.default,cornerShape:"squircle"}),animatedWrapper:Rt({label:"ai-text-input-animated",border:"1px solid transparent",backgroundImage:`\n linear-gradient(${t}, ${t}),\n conic-gradient(from 0deg, transparent 60%, ${n} 80%, ${a} 100%, transparent 15%)\n `,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",animation:`${r} 2s linear infinite`,"& input":{border:"none !important"}})}};function qt({value:e,onChange:t,placeholder:r,origin:n,systemPrompt:a,onComplete:o,onError:i,onDelta:s,disabled:l=!1,rows:c=4,className:d,"data-testid":f}){const{generate:p,isGenerating:h,error:m,reset:v}=Vt(),g=!e.trim()||l||h,b=(0,le.useStyles2)(Gt),y=async()=>{if(g)return;const t=e.trim();v(),await p({prompt:t,origin:n,systemPrompt:a,onComplete:e=>{null==o||o(e)},onError:e=>{null==i||i(e)},onDelta:e=>{null==s||s(e)}})};return u().createElement("div",{className:Ot(b.textareaWrapper,{[b.animatedWrapper]:h},d),"data-testid":f},u().createElement(le.TextArea,{value:e,onKeyDown:e=>{"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())},onChange:e=>t(e.currentTarget.value),placeholder:null!=r?r:"Ask AI to generate... (Cmd/Ctrl+Enter to send)",disabled:l||h,rows:c,className:b.textarea,invalid:!!m,"data-testid":f?`${f}-textarea`:void 0}),u().createElement(le.IconButton,{name:"ai-sparkle",onClick:y,disabled:g,className:b.sendButton,"aria-label":"Generate with AI",tooltip:g?"Enter text to generate":"Generate with AI (Cmd/Ctrl+Enter)","data-testid":f?`${f}-send`:void 0}))}const Gt=e=>{const t=e.colors.background.primary,r=kt({label:"ai-textarea-border-animation",...Bt(e,t)}),[n,a]=Ut(e);return{textareaWrapper:Rt({label:"ai-textarea-wrapper",position:"relative",borderRadius:e.shape.radius.default,cornerShape:"squircle"}),animatedWrapper:Rt({label:"ai-textarea-animated",border:"1px solid transparent",backgroundImage:`\n linear-gradient(${t}, ${t}),\n conic-gradient(from 0deg, transparent 60%, ${n} 80%, ${a} 100%, transparent 15%)\n `,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",animation:`${r} 2s linear infinite`,"& textarea":{border:"none !important"}}),textarea:Rt({label:"ai-textarea",paddingRight:e.spacing(4),scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),sendButton:Rt({label:"ai-textarea-send",position:"absolute",right:e.spacing(1),top:e.spacing(1)})}};function Kt(e){const t=e.split("+")[0].split("-"),r=t[0],n=t.length>1?t.slice(1).join("-"):void 0,a=r.split(".").map(Number);return 3!==a.length||a.some(isNaN)?null:{major:a[0],minor:a[1],patch:a[2],prerelease:n}}const Yt="grafana-assistant-terms-and-conditions-refresh";async function Qt(){var e,t;const r=(0,s.getBackendSrv)(),n=`${null!==(e=null===s.config||void 0===s.config?void 0:s.config.appSubUrl)&&void 0!==e?e:""}/api/plugins/${Y}/resources/api/v1/settings/terms`,a=(await(0,K.lastValueFrom)(r.fetch({url:n,method:"GET",showErrorAlert:!1}))).data.data,o=null!==(t=a.acceptedTermsAndConditions)&&void 0!==t&&t,i=a.acceptedVersion,l=a.version,u=a.termsType;if("msa"===u)return{accepted:o,termsType:u};if(!o||!i||!l)return{accepted:!1,termsType:u};const c=1===function(e,t){const r=Kt(e),n=Kt(t);return r&&n?r.major!==n.major?r.major>n.major?1:-1:r.minor!==n.minor?r.minor>n.minor?1:-1:r.patch!==n.patch?r.patch>n.patch?1:-1:r.prerelease&&n.prerelease?r.prerelease===n.prerelease?0:r.prerelease>n.prerelease?1:-1:r.prerelease&&!n.prerelease?-1:!r.prerelease&&n.prerelease?1:0:null}(l,i);return{accepted:o&&!c,termsType:u}}async function Xt(){try{return(await Qt()).accepted}catch(e){throw new Error(`Failed to check terms requirements: ${e instanceof Error?e.message:String(e)}`)}}function Jt(){const[e,t]=(0,l.useState)(!1),[r,n]=(0,l.useState)(null),[a,o]=(0,l.useState)(!0),[i,s]=(0,l.useState)(null);return(0,l.useEffect)(()=>{async function e(){try{o(!0),s(null);const e=await Qt();t(e.accepted),n(e.termsType)}catch(e){const r=e instanceof Error?e.message:"Failed to check terms";s(r),t(!1),n(null)}finally{o(!1)}}e();const r=()=>{e()};return document.addEventListener(Yt,r),()=>{document.removeEventListener(Yt,r)}},[]),{accepted:e,termsType:r,loading:a,error:i}}function Zt(e,t){var r;const{explainer:n,...a}=null!==(r=t.metadata)&&void 0!==r?r:{},o={name:t.name,description:t.description,inputSchema:t.inputSchema,metadata:n?{...a,explainer:e=>n(e)}:a,responseFormat:t.responseFormat,verboseParsingErrors:t.verboseParsingErrors,async invoke(r,n){var a;try{if(null===(a=n.signal)||void 0===a?void 0:a.aborted)throw new Error(`Tool ${t.name} execution was aborted`);const o=t.validate(r),i=[e(o,n)];return n.signal&&i.push(new Promise((e,r)=>{var a;null===(a=n.signal)||void 0===a||a.addEventListener("abort",()=>{r(new Error(`Tool ${t.name} execution was aborted`))},{once:!0})})),n.timeout&&n.timeout>0&&i.push(new Promise((e,r)=>{setTimeout(()=>{r(new Error(`Tool ${t.name} execution timed out after ${n.timeout}ms`))},n.timeout)})),Promise.race(i)}catch(e){throw t.verboseParsingErrors&&console.error(`Error invoking tool ${t.name}:`,e,r),e}}};return o}const er="grafana-assistant-limits-updated";async function tr(){var e,t,r,n;const a=(0,s.getBackendSrv)(),o=`${null!==(e=null===s.config||void 0===s.config?void 0:s.config.appSubUrl)&&void 0!==e?e:""}/api/plugins/${Y}/resources/api/v1/usage/limits/prompt`,i=(await(0,K.lastValueFrom)(a.fetch({url:o,method:"GET",showErrorAlert:!1}))).data.data,l=null!==(t=i.total)&&void 0!==t?t:0,u=null!==(r=i.limit)&&void 0!==r?r:0;return{count:l,limit:u,month:null!==(n=i.month)&&void 0!==n?n:"",isLimitReached:u>0&&l>=u}}async function rr(){try{return await tr()}catch(e){throw new Error(`Failed to check limits: ${e instanceof Error?e.message:String(e)}`)}}function nr(){const[e,t]=(0,l.useState)(0),[r,n]=(0,l.useState)(0),[a,o]=(0,l.useState)(""),[i,s]=(0,l.useState)(!0),[u,c]=(0,l.useState)(null),d=(0,l.useCallback)(async()=>{try{s(!0),c(null);const e=await tr();t(e.count),n(e.limit),o(e.month)}catch(e){const r=e instanceof Error?e.message:"Failed to fetch limits";c(r),t(0),n(0),o("")}finally{s(!1)}},[]);return(0,l.useEffect)(()=>{d()},[d]),(0,l.useEffect)(()=>{const e=e=>{const r=e;r.detail&&(t(r.detail.count),n(r.detail.limit),c(null))};return window.addEventListener(er,e),()=>{window.removeEventListener(er,e)}},[]),{count:e,limit:r,month:a,isLimitReached:r>0&&e>=r,loading:i,error:u,refetch:d}}e.exports=n})()},11106:(e,t,r)=>{"use strict";const n=Symbol("SemVer ANY");class a{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(!(t=o(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=a;const o=r(78029),{safeRe:i,t:s}=r(2728),l=r(17685),u=r(75906),c=r(39534),d=r(66293)},66293:(e,t,r)=>{"use strict";const n=/\s+/g;class a{constructor(e,t){if(t=i(t),e instanceof a)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new a(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&b(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=o.get(t);if(r)return r;const n=this.options.loose,a=n?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];e=e.replace(a,A(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(c[d.COMPARATORTRIM],f),l("comparator trim",e),e=e.replace(c[d.TILDETRIM],p),l("tilde trim",e),e=e.replace(c[d.CARETTRIM],h),l("caret trim",e);let i=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>T(e,this.options));n&&(i=i.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",i);const u=new Map,b=i.map(e=>new s(e,this.options));for(const e of b){if(g(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const y=[...u.values()];return o.set(t,y),y}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}e.exports=a;const o=new(r(4940)),i=r(78029),s=r(11106),l=r(75906),u=r(39534),{safeRe:c,t:d,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:h}=r(2728),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:v}=r(86484),g=e=>"<0.0.0-0"===e.value,b=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let a=n.pop();for(;r&&n.length;)r=n.every(e=>a.intersects(e,t)),a=n.pop();return r},w=(e,t)=>(e=e.replace(c[d.BUILD],""),l("comp",e,t),e=_(e,t),l("caret",e),e=x(e,t),l("tildes",e),e=k(e,t),l("xrange",e),e=C(e,t),l("stars",e),e),S=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(" "),E=(e,t)=>{const r=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(r,(t,r,n,a,o)=>{let i;return l("tilde",e,t,r,n,a,o),S(r)?i="":S(n)?i=`>=${r}.0.0 <${+r+1}.0.0-0`:S(a)?i=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(l("replaceTilde pr",o),i=`>=${r}.${n}.${a}-${o} <${r}.${+n+1}.0-0`):i=`>=${r}.${n}.${a} <${r}.${+n+1}.0-0`,l("tilde return",i),i})},_=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(" "),O=(e,t)=>{l("caret",e,t);const r=t.loose?c[d.CARETLOOSE]:c[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,a,o,i)=>{let s;return l("caret",e,t,r,a,o,i),S(r)?s="":S(a)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:S(o)?s="0"===r?`>=${r}.${a}.0${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.0${n} <${+r+1}.0.0-0`:i?(l("replaceCaret pr",i),s="0"===r?"0"===a?`>=${r}.${a}.${o}-${i} <${r}.${a}.${+o+1}-0`:`>=${r}.${a}.${o}-${i} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${o}-${i} <${+r+1}.0.0-0`):(l("no pr"),s="0"===r?"0"===a?`>=${r}.${a}.${o}${n} <${r}.${a}.${+o+1}-0`:`>=${r}.${a}.${o}${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${o} <${+r+1}.0.0-0`),l("caret return",s),s})},k=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>R(e,t)).join(" ")),R=(e,t)=>{e=e.trim();const r=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(r,(r,n,a,o,i,s)=>{l("xRange",e,r,n,a,o,i,s);const u=S(a),c=u||S(o),d=c||S(i),f=d;return"="===n&&f&&(n=""),s=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(c&&(o=0),i=0,">"===n?(n=">=",c?(a=+a+1,o=0,i=0):(o=+o+1,i=0)):"<="===n&&(n="<",c?a=+a+1:o=+o+1),"<"===n&&(s="-0"),r=`${n+a}.${o}.${i}${s}`):c?r=`>=${a}.0.0${s} <${+a+1}.0.0-0`:d&&(r=`>=${a}.${o}.0${s} <${a}.${+o+1}.0-0`),l("xRange return",r),r})},C=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),T=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),A=e=>(t,r,n,a,o,i,s,l,u,c,d,f)=>`${r=S(n)?"":S(a)?`>=${n}.0.0${e?"-0":""}`:S(o)?`>=${n}.${a}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=S(u)?"":S(c)?`<${+u+1}.0.0-0`:S(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`}`.trim(),P=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(l(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},39534:(e,t,r)=>{"use strict";const n=r(75906),{MAX_LENGTH:a,MAX_SAFE_INTEGER:o}=r(86484),{safeRe:i,t:s}=r(2728),l=r(78029),{compareIdentifiers:u}=r(48029);class c{constructor(e,t){if(t=l(t),e instanceof c){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],a=e.prerelease[t];if(n("prerelease compare",t,r,a),void 0===r&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===r)return-1;if(r!==a)return u(r,a)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{const r=this.build[t],a=e.build[t];if(n("build compare",t,r,a),void 0===r&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===r)return-1;if(r!==a)return u(r,a)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[s.PRERELEASELOOSE]:i[s.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},38968:(e,t,r)=>{"use strict";const n=r(9618);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},17685:(e,t,r)=>{"use strict";const n=r(96175),a=r(6877),o=r(47574),i=r(73039),s=r(5161),l=r(1178);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return a(e,r,u);case">":return o(e,r,u);case">=":return i(e,r,u);case"<":return s(e,r,u);case"<=":return l(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},77192:(e,t,r)=>{"use strict";const n=r(39534),a=r(9618),{safeRe:o,t:i}=r(2728);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let a;for(;(a=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&a.index+a[0].length===r.index+r[0].length||(r=a),n.lastIndex=a.index+a[1].length+a[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);if(null===r)return null;const s=r[2],l=r[3]||"0",u=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return a(`${s}.${l}.${u}${c}${d}`,t)}},56879:(e,t,r)=>{"use strict";const n=r(39534);e.exports=(e,t,r)=>{const a=new n(e,r),o=new n(t,r);return a.compare(o)||a.compareBuild(o)}},4693:(e,t,r)=>{"use strict";const n=r(5566);e.exports=(e,t)=>n(e,t,!0)},5566:(e,t,r)=>{"use strict";const n=r(39534);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},97278:(e,t,r)=>{"use strict";const n=r(9618);e.exports=(e,t)=>{const r=n(e,null,!0),a=n(t,null,!0),o=r.compare(a);if(0===o)return null;const i=o>0,s=i?r:a,l=i?a:r,u=!!s.prerelease.length;if(!!l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}const c=u?"pre":"";return r.major!==a.major?c+"major":r.minor!==a.minor?c+"minor":r.patch!==a.patch?c+"patch":"prerelease"}},96175:(e,t,r)=>{"use strict";const n=r(5566);e.exports=(e,t,r)=>0===n(e,t,r)},47574:(e,t,r)=>{"use strict";const n=r(5566);e.exports=(e,t,r)=>n(e,t,r)>0},73039:(e,t,r)=>{"use strict";const n=r(5566);e.exports=(e,t,r)=>n(e,t,r)>=0},82969:(e,t,r)=>{"use strict";const n=r(39534);e.exports=(e,t,r,a,o)=>{"string"==typeof r&&(o=a,a=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,a,o).version}catch(e){return null}}},5161:(e,t,r)=>{"use strict";const n=r(5566);e.exports=(e,t,r)=>n(e,t,r)<0},1178:(e,t,r)=>{"use strict";const n=r(5566);e.exports=(e,t,r)=>n(e,t,r)<=0},78992:(e,t,r)=>{"use strict";const n=r(39534);e.exports=(e,t)=>new n(e,t).major},91180:(e,t,r)=>{"use strict";const n=r(39534);e.exports=(e,t)=>new n(e,t).minor},6877:(e,t,r)=>{"use strict";const n=r(5566);e.exports=(e,t,r)=>0!==n(e,t,r)},9618:(e,t,r)=>{"use strict";const n=r(39534);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},6339:(e,t,r)=>{"use strict";const n=r(39534);e.exports=(e,t)=>new n(e,t).patch},3731:(e,t,r)=>{"use strict";const n=r(9618);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},36264:(e,t,r)=>{"use strict";const n=r(5566);e.exports=(e,t,r)=>n(t,e,r)},40959:(e,t,r)=>{"use strict";const n=r(56879);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},64120:(e,t,r)=>{"use strict";const n=r(66293);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},36657:(e,t,r)=>{"use strict";const n=r(56879);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},95991:(e,t,r)=>{"use strict";const n=r(9618);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},21559:(e,t,r)=>{"use strict";const n=r(2728),a=r(86484),o=r(39534),i=r(48029),s=r(9618),l=r(95991),u=r(38968),c=r(82969),d=r(97278),f=r(78992),p=r(91180),h=r(6339),m=r(3731),v=r(5566),g=r(36264),b=r(4693),y=r(56879),w=r(36657),S=r(40959),x=r(47574),E=r(5161),_=r(96175),O=r(6877),k=r(73039),R=r(1178),C=r(17685),T=r(77192),A=r(11106),P=r(66293),I=r(64120),D=r(61173),L=r(4922),M=r(18752),j=r(93931),N=r(81772),F=r(34473),z=r(24129),$=r(76184),V=r(85362),U=r(47287),B=r(53910);e.exports={parse:s,valid:l,clean:u,inc:c,diff:d,major:f,minor:p,patch:h,prerelease:m,compare:v,rcompare:g,compareLoose:b,compareBuild:y,sort:w,rsort:S,gt:x,lt:E,eq:_,neq:O,gte:k,lte:R,cmp:C,coerce:T,Comparator:A,Range:P,satisfies:I,toComparators:D,maxSatisfying:L,minSatisfying:M,minVersion:j,validRange:N,outside:F,gtr:z,ltr:$,intersects:V,simplifyRange:U,subset:B,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},86484:e=>{"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},75906:e=>{"use strict";const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},48029:e=>{"use strict";const t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;const n=t.test(e),a=t.test(r);return n&&a&&(e=+e,r=+r),e===r?0:n&&!a?-1:a&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},4940:e=>{"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},78029:e=>{"use strict";const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},2728:(e,t,r)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:o}=r(86484),i=r(75906),s=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],d=t.t={};let f=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[p,a]],m=(e,t,r)=>{const n=(e=>{for(const[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),a=f++;i(e,a,t),d[e]=a,u[a]=t,c[a]=n,s[a]=new RegExp(t,r?"g":void 0),l[a]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),m("FULL",`^${u[d.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),m("LOOSE",`^${u[d.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),m("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?`+`(?:${u[d.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",u[d.COERCE],!0),m("COERCERTLFULL",u[d.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},24129:(e,t,r)=>{"use strict";const n=r(34473);e.exports=(e,t,r)=>n(e,t,">",r)},85362:(e,t,r)=>{"use strict";const n=r(66293);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},76184:(e,t,r)=>{"use strict";const n=r(34473);e.exports=(e,t,r)=>n(e,t,"<",r)},4922:(e,t,r)=>{"use strict";const n=r(39534),a=r(66293);e.exports=(e,t,r)=>{let o=null,i=null,s=null;try{s=new a(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new n(o,r)))}),o}},18752:(e,t,r)=>{"use strict";const n=r(39534),a=r(66293);e.exports=(e,t,r)=>{let o=null,i=null,s=null;try{s=new a(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new n(o,r)))}),o}},93931:(e,t,r)=>{"use strict";const n=r(39534),a=r(66293),o=r(47574);e.exports=(e,t)=>{e=new a(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const a=e.set[t];let i=null;a.forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!o(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!i||r&&!o(r,i)||(r=i)}return r&&e.test(r)?r:null}},34473:(e,t,r)=>{"use strict";const n=r(39534),a=r(11106),{ANY:o}=a,i=r(66293),s=r(64120),l=r(47574),u=r(5161),c=r(1178),d=r(73039);e.exports=(e,t,r,f)=>{let p,h,m,v,g;switch(e=new n(e,f),t=new i(t,f),r){case">":p=l,h=c,m=u,v=">",g=">=";break;case"<":p=u,h=d,m=l,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,s=null;if(n.forEach(e=>{e.semver===o&&(e=new a(">=0.0.0")),i=i||e,s=s||e,p(e.semver,i.semver,f)?i=e:m(e.semver,s.semver,f)&&(s=e)}),i.operator===v||i.operator===g)return!1;if((!s.operator||s.operator===v)&&h(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}},47287:(e,t,r)=>{"use strict";const n=r(64120),a=r(5566);e.exports=(e,t,r)=>{const o=[];let i=null,s=null;const l=e.sort((e,t)=>a(e,t,r));for(const e of l){n(e,t,r)?(s=e,i||(i=e)):(s&&o.push([i,s]),s=null,i=null)}i&&o.push([i,null]);const u=[];for(const[e,t]of o)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const c=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return c.length<d.length?c:t}},53910:(e,t,r)=>{"use strict";const n=r(66293),a=r(11106),{ANY:o}=a,i=r(64120),s=r(5566),l=[new a(">=0.0.0-0")],u=[new a(">=0.0.0")],c=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?l:u}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=u}const n=new Set;let a,c,p,h,m,v,g;for(const t of e)">"===t.operator||">="===t.operator?a=d(a,t,r):"<"===t.operator||"<="===t.operator?c=f(c,t,r):n.add(t.semver);if(n.size>1)return null;if(a&&c){if(p=s(a.semver,c.semver,r),p>0)return null;if(0===p&&(">="!==a.operator||"<="!==c.operator))return null}for(const e of n){if(a&&!i(e,String(a),r))return null;if(c&&!i(e,String(c),r))return null;for(const n of t)if(!i(e,String(n),r))return!1;return!0}let b=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver,y=!(!a||r.includePrerelease||!a.semver.prerelease.length)&&a.semver;b&&1===b.prerelease.length&&"<"===c.operator&&0===b.prerelease[0]&&(b=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,a)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=d(a,e,r),h===e&&h!==a)return!1}else if(">="===a.operator&&!i(a.semver,String(e),r))return!1;if(c)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),"<"===e.operator||"<="===e.operator){if(m=f(c,e,r),m===e&&m!==c)return!1}else if("<="===c.operator&&!i(c.semver,String(e),r))return!1;if(!e.operator&&(c||a)&&0!==p)return!1}return!(a&&v&&!c&&0!==p)&&(!(c&&g&&!a&&0!==p)&&(!y&&!b))},d=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},f=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let a=!1;e:for(const n of e.set){for(const e of t.set){const t=c(n,e,r);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},61173:(e,t,r)=>{"use strict";const n=r(66293);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},81772:(e,t,r)=>{"use strict";const n=r(66293);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},79849:(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"}}}}},67195:(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"}}}}},17625:(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":"값 선택"}}}}},21971:(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"}}}}},25217:(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 delloggetto","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"}}}}},54351:(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":"値を選択"}}}}},47953:(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":"Выбрать значение"}}}}},42874:(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 quil y ait un bug dans lapplication.",subTitle:"LURL 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 lobjet","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 dintervalles"},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 dun 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 lopé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 sapplique 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"}}}}},7871:(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"}}}}},23956:(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"}}}}},919:(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"}}}}},45925:(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":"選擇值"}}}}},30161:(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"}}}}},4382:(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"}}}}},78477:(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"}}}}},11566:(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"}}}}},2802:(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"}}}}},36147:(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ść"}}}}},50971:(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":"选择值"}}}}},15056:(e,t,r)=>{"use strict";var n=r(49348),a=r(87781),o=r(18531),i=r(85959),s=r(31269),l=r(36651),u=r(93241),c=r(79151),d=r(45503),f=r(82007),p=r(45415),h=r(46089),m=r(87993),v=r(79171),g=r(60745),b=r(74650),y=r(79089);r(48398);var w=r(46022),S=r(12548),x=r(26972),E=r(42392),_=r(14200),O=r(36748),k=r(48364),R=r(65938),C=r(97190),T=r(21724),A=r(94116),P=r(84268),I=r(91918),D=r(85366),L=r(14594),M=r(86828),j=r(2736);function N(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var F=N(i),z=N(m),$=N(S);function V(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 B=new Map;const H=F.default.memo(function({model:e,...t}){var r;const n=null!=(r=e.constructor.Component)?r:W,[a,o]=i.useState(0);return i.useEffect(()=>{const t=e.activate();return o(e=>e+1),t},[e]),e.isActive||e.renderBeforeActivation?F.default.createElement(n,{...t,model:e}):null});function W(e){return null}class q extends a.BusEventWithPayload{}q.type="scene-object-state-change";class G extends a.BusEventWithPayload{}G.type="scene-object-user-action";var K,Y=e=>{throw TypeError(e)},Q=(e,t,r)=>t.has(e)||Y("Cannot "+r);class X{constructor(e){var t,r,n;t=this,(r=K).has(t)?Y("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),((e,t,r)=>{Q(e,t,"write to private field"),t.set(e,r)})(this,K,e)}resolve(){return Q(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 H}_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 Z(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 X(this)),this._ref}toJSON(){return{type:Object.getPrototypeOf(this).constructor.name,isActive:this.isActive,state:this.state}}}function Z(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 X)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 xe extends J{constructor(e){super({data:Ee,...e})}getResultsStream(){const e={origin:this,data:this.state.data};return s.of(e)}}const Ee={state:c.LoadingState.Done,series:[],timeRange:a.getDefaultTimeRange()};class _e{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 Oe(e,t){let r,n=e;for(;n&&!r;)r=t(n),n=n.parent;return r}const ke=/^\d+[yYmMsSwWhHdD]$/;function Re(e){if("string"!=typeof e)return null;if(-1!==e.indexOf("now"))return e;if(ke.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 Ce(e,t,r,n,o,i){const s=o&&"now"===t,l=Date.now();i&&function(e){e!==Te&&(Te=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 Te;function Ae(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",Ie="filter_removed",De="filter_changed",Le="variable_value_changed",Me="groupby_dimensions";class je extends J{constructor(e={}){var t;const r=e.from&&Ae(e.from)?e.from:"now-6h",n=e.to&&Ae(e.to)?e.to:"now",i=Ne(e.timeZone);super({from:r,to:n,timeZone:i,value:Ce(r,n,i||a.getTimeZone(),e.fiscalYearStartMonth,e.UNSAFE_nowDelay,e.weekStart),refreshOnActivate:null!=(t=e.refreshOnActivate)?t:{percent:10},...e}),this._urlSync=new _e(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=Ce(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=Ne(e))?t:c.defaultTimeZone,n=Ce(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=Oe(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=Ce(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&&Ne(this.state.timeZone))return this.state.timeZone;const e=this.getTimeZoneSource();return e!==this&&Ne(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=Re(e.from),s=Re(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&&Ae(t.from)&&(i=t.from),t.to&&Ae(t.to)&&(s=t.to)}if(i&&Ae(i)&&(o.from=i),s&&Ae(s)&&(o.to=s),"string"==typeof e.timezone&&(o.timeZone=""!==e.timezone?e.timezone:void 0),0!==Object.keys(o).length)return o.value=Ce(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 Ne(e){if(void 0!==e)return u.isEmpty(e)?o.config.bootData.user.timezone:e===c.defaultTimeZone||a.getZone(e)?e:void pe()}const Fe=new xe,ze=new je;const $e=new class extends J{constructor(){super({variables:[]})}getByName(e){}isVariableLoadingOrWaitingToUpdate(e){return!1}};function Ve(e){var t;return null!=(t=Oe(e,e=>e.state.$timeRange))?t:ze}class Ue extends a.BusEventWithPayload{}function Be(e){return"object"==typeof e&&"formatter"in e}Ue.type="scene-variable-changed-value";let He,We={};function qe(e){const t=We[e];return t||(We[e]=u.property(e))}class Ge{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",Ye="$__all",Qe="$__auto",Xe=/\$(\w+)|\[\[(\w+?)(?::(\w+))?\]\]|\${(\w+)(?:\.([^:^\}]+))?(?::([^\}]+))?}/g,Je="__searchFilter",Ze="__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=Ve(this._sceneObject);return"__from"===this.state.name?e.state.value.from.valueOf():e.state.value.to.valueOf()}getValueText(){const e=Ve(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=Ye,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===Ye&&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===Ye||Array.isArray(e)&&e[0]===Ye}getDefaultMultiState(e){return this.state.defaultToAll?{value:[Ye],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:Ye,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]===Ye?(e=[Ye],t=[Ke]):e[0]===Ye&&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(Le),null==(a=(n=this._urlSync).performBrowserHistoryAction)||a.call(n,o)}else o();this.publishEvent(new Ue(this),!0)}findLabelTextForValue(e){if(e===Ye)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:Ye,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[Ye];if(e===Ke)return Ye;return e}(t)),this._sceneObject.state.allValue&&this._sceneObject.state.allValue===t&&(t=Ye),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 xt{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 Et=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(Ye,[],a));continue}const o=a.getValue();o&&(Be(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=Ve(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 xt(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=Ve(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 _t(e,t,r,n,a){return t&&"string"==typeof t?(Xe.lastIndex=0,t.replace(Xe,(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 He?(He.state.name=e,He.state.value=t):He=new Ge(e,t),He}(e,t)}const a=fe(e,n);if(a)return a;const o=Et.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(Be(r))return _t(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 Ot(e){return void 0!==e.useState}function kt(e){return"enrichDataRequest"in e}function Rt(e){return"enrichFiltersRequest"in e}function Ct(e){return"isDataLayer"in e}function Tt(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 At=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")}};At.instance=null;let Pt=At;function It(){return Pt.getInstance()}function Dt(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=Tt("query");It().notifyQueryStart({operationId:t,queryId:i,queryType:e.type,origin:e.origin.constructor.name,timestamp:s}),l=(r,n)=>{It().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 Lt(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 Mt(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&&Lt(n).pipe(Dt({type:`getDataSource/${null!=(r=null==e?void 0:e.type)?r:"unknown"}`,origin:t.__sceneObject.value.valueOf()})).subscribe(()=>{})}return await n}class jt{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 jt;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(!Ea(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(!Ea(this._values.get(n),r.getValue()))return!0}}return!1}}function Nt(e){return"object"==typeof e&&"getExtraQueries"in e}const Ft=(e,t)=>s.of(t),zt=0;function $t(e){const t=e.getRoot();return kt(t)?t.enrichDataRequest(e):null}const Vt=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 Bt(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 Ht(e,t,r){return(t=Bt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wt(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 Gt=function(){},Kt={get passive(){return!0}},Yt="undefined"!=typeof window?window:{};Yt.addEventListener&&Yt.removeEventListener&&(Yt.addEventListener("p",Gt,Kt),Yt.removeEventListener("p",Gt,!1));var Qt,Xt,Jt,Zt=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(Qt||(Xt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Jt||(Jt=Xt.slice(0)),Qt=Object.freeze(Object.defineProperties(Xt,{raw:{value:Object.freeze(Jt)}}))));(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach(function(t){Ht(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(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:Zt};const tr=/[^ -~]/m,rr=/^[\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]+$/m,nr=new z.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:Ye,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 F.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(Le),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 F.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 F.default.createElement("div",{ref:n,className:h.cx(v.option,a&&v.optionFocused),...d,"data-testid":"data-testid Select option",title:t.title},F.default.createElement("div",{className:g.checkbox},F.default.createElement(f.Checkbox,{indeterminate:i,value:o})),F.default.createElement("div",{className:v.optionBody,"data-testid":p.selectors.pages.Dashboard.SubMenu.submenuItemValueDropDownOptionTexts(null!=(l=t.label)?l:String(t.value))},F.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?F.default.createElement(cr,{model:e,state:t}):F.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(Da(r)),e.texts.push(Da(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),La(e,n)})}function vr(e){const t=e.getRoot();return Rt(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 xr(e){const{model:t}=e,r=f.useTheme2(),n=Er(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(F.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(F.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(F.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"},F.default.createElement(f.Icon,{name:"info-circle",size:"md"}))),F.default.createElement("div",{onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},className:h.cx(a.suffix,h.css({position:"relative"}))},i)}gr=new WeakMap;const Er=e=>({clearIcon:h.css({color:e.colors.action.disabledText,cursor:"pointer","&:hover:before":{backgroundColor:"transparent"},"&:hover":{color:e.colors.text.primary}})}),_r=({keysApplicability:e,children:t})=>{var r,n;const a=f.useTheme2(),o=f.getSelectStyles(a),{disabledPill:i,strikethrough:s}=Fa(a),l=F.default.Children.toArray(t)[0];let u=!0;if(F.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 F.default.createElement("div",{className:h.cx(o.multiValueContainer,!u&&h.cx(i,s))},t)};function Or(e){return"isInteractionTracker"in e}function kr(e){let t=e;for(;t;){if(t.state.$behaviors)for(const e of t.state.$behaviors)if(Or(e))return e;t=t.parent}}function Rr({recentDrilldowns:e,recommendedDrilldowns:t}){const r=f.useStyles2(Cr),[n,a]=i.useState(!1),o=i.useRef(null),s=e=>{e(),a(!1)},l=F.default.createElement(f.ClickOutsideWrapper,{onClick:()=>a(!1),useCapture:!0},F.default.createElement("div",{className:r.menuContainer,onClick:e=>e.stopPropagation()},F.default.createElement(f.Stack,{direction:"column"},F.default.createElement(f.Text,{weight:"bold",variant:"bodySmall",color:"secondary"},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recent"},"Recent")),e&&e.length>0?e.map(e=>F.default.createElement("div",{key:e.label,className:h.cx(r.combinedFilterPill),onClick:()=>s(e.onClick)},e.label)):F.default.createElement("div",{className:r.emptyMessage},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recent-empty"},"No recent values")),F.default.createElement(f.Text,{weight:"bold",variant:"bodySmall",color:"secondary"},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recommended"},"Recommended")),t&&t.length>0?t.map(e=>F.default.createElement("div",{key:e.label,className:h.cx(r.combinedFilterPill),onClick:()=>s(e.onClick)},e.label)):F.default.createElement("div",{className:r.emptyMessage},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recommended-empty"},"No recommended values")))));return F.default.createElement(F.default.Fragment,null,F.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&&F.default.createElement(f.Popover,{content:l,onKeyDown:e=>{" "===e.key&&e.stopPropagation()},placement:"bottom-start",referenceElement:o.current,show:!0}))}const Cr=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 Tr extends J{constructor(e){super({skipUrlSync:!0,loading:!0,scopes:[],...e,type:"system",name:Ze,hide:c.VariableHide.hideVariable}),this._renderBeforeActivation=!0,this.UNSAFE_renderAsHidden=!0}getValue(){var e;const t=null!=(e=this.state.scopes)?e:[];return new Ar(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)}}}Tr.Component=function({model:e}){const t=i.useContext(o.ScopesContext);return i.useEffect(()=>e.setContext(t),[t,e]),null};class Ar{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 Ir=new Set;function Dr(e){return F.default.createElement(f.Tooltip,{content:d.t("grafana-scenes.utils.loading-indicator.content-cancel-query","Cancel query")},F.default.createElement(f.Icon,{className:"spin-clockwise",name:"sync",size:"xs",role:"button",onMouseDown:t=>{e.onCancel(t)}}))}function Lr(e){const t=f.useStyles2(Mr),r=f.useTheme2(),n="vertical"===e.layout,a=Boolean(e.isLoading)?F.default.createElement("div",{style:{marginLeft:r.spacing(1),marginTop:"-1px"},"aria-label":p.selectors.components.LoadingIndicator.icon},F.default.createElement(Dr,{onCancel:t=>{var r;t.preventDefault(),t.stopPropagation(),null==(r=e.onCancel)||r.call(e)}})):null;let o=null;e.error&&(o=F.default.createElement(f.Tooltip,{content:e.error,placement:"bottom"},F.default.createElement(f.Icon,{className:t.errorIcon,name:"exclamation-triangle"})));let i=null;e.description&&(i=F.default.createElement(f.Tooltip,{content:e.description,placement:n?"top":"bottom"},F.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?F.default.createElement("label",{className:h.cx(t.verticalLabel,e.className),"data-testid":s,htmlFor:e.htmlFor},e.prefix,e.label,i,o,e.icon&&F.default.createElement(f.Icon,{name:e.icon,className:t.normalIcon}),a,e.onRemove&&F.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):F.default.createElement("label",{className:h.cx(t.horizontalLabel,e.className),"data-testid":s,htmlFor:e.htmlFor},e.prefix,o,e.icon&&F.default.createElement(f.Icon,{name:e.icon,className:t.normalIcon}),e.label,i,a,e.suffix),l}const Mr=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 jr(e){const t=e.map(e=>{var t;return null!=(t=e.label)?t:String(e.value)});return r=>ar(e,t,r)}function Nr(e,t){return""!==e?{value:e,label:t||e}:null}const Fr=()=>!0;function zr({filter:e,model:t}){var r,n,a,o,s;const l=f.useStyles2($r),[u,c]=i.useState([]),[p,m]=i.useState([]),[v,g]=i.useState(!1),[b,y]=i.useState(!1),[w,S]=i.useState(!1),[x,E]=i.useState(!1),[_,O]=i.useState(!1),[k,R]=i.useState(""),[C,T]=i.useState(!1),[A,P]=i.useState(e.values?e.values.map((t,r)=>{var n;return Nr(t,null==(n=e.valueLabels)?void 0:n[r])}):[]),I=Pn(e.operator),D=Nr(e.key,e.keyLabel),L=Nr(e.value,null==(r=e.valueLabels)?void 0:r[0]),M=i.useMemo(()=>jr(p),[p]),j=t.state.onAddCustomValue,N=i.useMemo(()=>Na(M(k)),[M,k]),z={isMulti:!0,value:A,components:{Option:dr},hideSelectedOptions:!1,closeMenuOnSelect:!1,openMenuOnFocus:!1,onChange:e=>{P(e),e.some(e=>e.__isNew__)&&R("")},onBlur:()=>{var r,n;t._updateFilter(e,{value:null!=(n=null==(r=A[0])?void 0:r.value)?n:"",values:A.map(e=>e.value),valueLabels:A.map(e=>e.label)})}},$=En.find(t=>e.operator===t.value),V=F.default.createElement(f.Select,{virtualized:!0,allowCustomValue:null==(n=t.state.allowCustomValue)||n,createOptionPosition:(null==$?void 0:$.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,x?l.widthWhenOpen:void 0),width:"auto",value:L,filterOption:Fr,placeholder:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.value-select.placeholder-select-value","Select value"),options:N,inputValue:k,onInputChange:(e,{action:t})=>("input-change"===t&&R(e),e),onChange:r=>{j&&r.__isNew__?t._updateFilter(e,j(r,e)):t._updateFilter(e,{value:r.value,valueLabels:r.label?[r.label]:[r.value]}),C!==r.__isNew__&&T(r.__isNew__)},isOpen:x&&!b,isLoading:b,openMenuOnFocus:!0,onOpenMenu:async()=>{var r;y(!0),E(!0);const n=await t._getValuesFor(e);y(!1),m(n),C&&R(null!=(r=null==L?void 0:L.label)?r:"")},onCloseMenu:()=>{E(!1),R("")},...I&&z}),U=F.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==$?void 0:$.isRegex)?"first":"last",value:D,placeholder:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.key-select.placeholder-select-label","Select label"),options:Na(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}),B=F.default.createElement(f.Select,{className:h.cx(l.operator,{[l.widthWhenOpen]:_}),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:()=>{O(!0)},onCloseMenu:()=>{O(!1)}});if("vertical"===t.state.layout){if(e.key){const r=F.default.createElement(Lr,{layout:"vertical",label:null!=(o=e.key)?o:"",onRemove:()=>t._removeFilter(e)});return F.default.createElement(f.Field,{label:r,"data-testid":`AdHocFilter-${e.key}`,className:l.field},F.default.createElement("div",{className:l.wrapper},B,V))}return F.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 F.default.createElement("div",{className:l.wrapper,"data-testid":`AdHocFilter-${e.key}`},U,B,V,F.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 $r=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 Vr({model:e,addFilterButtonText:t}){const{_wip:r}=e.useState(),n=f.useStyles2(Ur);return r?F.default.createElement(zr,{filter:r,model:e}):F.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 Br{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(Tn).filter(e=>!e.hidden).map(e=>Hr(e).map(Ia).join("|"))),(null==t?void 0:t.length)&&r.push(...null==t?void 0:t.filter(Tn).filter(e=>!e.hidden&&e.origin&&e.restorable).map(e=>Hr(e).map(Ia).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(Wr).filter(qr)}const t=Wr(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?(Cn(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 Hr(e){var t;const r=[La(e.key,e.keyLabel),e.operator];return Pn(e.operator)?e.values.forEach((t,n)=>{var a;r.push(La(t,null==(a=e.valueLabels)?void 0:a[n]))}):r.push(La(e.value,null==(t=e.valueLabels)?void 0:t[0])),r}function Wr(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(Da);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 Gr=i.forwardRef(function({children:e,active:t,addGroupBottomBorder:r,isMultiValueEdit:n,checked:a,...o},s){const l=f.useStyles2(Kr),u=i.useId();return F.default.createElement("div",{ref:s,role:"option",id:u,"aria-selected":t,className:h.cx(l.option,t&&l.optionFocused,r&&l.groupBottomBorder),...o},F.default.createElement("div",{className:l.optionBody,"data-testid":`data-testid ad hoc filter option value ${e}`},F.default.createElement("span",null,n?F.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)}`})}),Yr=()=>F.default.createElement(Gr,{onClick:e=>e.stopPropagation()},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.loading-options-placeholder.loading-options"},"Loading options...")),Qr=()=>F.default.createElement(Gr,{onClick:e=>e.stopPropagation()},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.no-options-placeholder.no-options-found"},"No options found")),Xr=({handleFetchOptions:e})=>F.default.createElement(Gr,{onClick:e},F.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 F.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)`}},F.default.createElement(f.Button,{onClick:e,size:"sm",tabIndex:-1},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.multi-value-apply-button.apply"},"Apply")))},Zr=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 F.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,F.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})},F.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,x]=i.useState(!1),[E,_]=i.useState(!1),[O,k]=i.useState(""),[R,C]=i.useState(null),[T,A]=i.useState(r?"key":"value"),[P,I]=i.useState(!r&&"value"===T),D=f.useStyles2(dn),[L,M]=i.useState([]),[j,N]=i.useState({}),{allowCustomValue:z=!0,onAddCustomValue:$,filters:V,inputPlaceholder:U}=t.useState(),B=i.useRef(null),H=Pn((null==e?void 0:e.operator)||""),W=H&&"value"===T,q=i.useId(),G=i.useRef([]),K=i.useRef([]),Y=i.useRef(r?"key":"value"),Q=i.useMemo(()=>jr(y),[y]),X=i.useMemo(()=>!r&&V.at(-1)===e,[e,r,V]),J=i.useCallback(()=>{r&&(t.addWip(),A("key"),k(""))},[t,r]),Z=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,De)),e.updateFilter(t,{valueLabels:n,values:o,value:o[0]}),M([])}n||setTimeout(()=>{var e;return null==(e=ne.domReference.current)?void 0:e.focus()})},[]),ee=i.useCallback(e=>{M(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)&&(W?Z(t,e,L):e&&e.origin&&""===O&&t.updateToMatchAll(e),J(),null==n||n())},[e,L,n,Z,J,O,W,t]),re=i.useMemo(()=>[q,...L.reduce((e,t,r)=>[...e,`${t.value}-${r}`,`${t.value}-${r}-close-icon`],[])],[q,L]),{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:R,setActiveIndex:C,outsidePressIdsToIgnore:re,listRef:G,disabledIndicesRef:K});i.useImperativeHandle(l,()=>()=>{var e;return null==(e=ne.domReference.current)?void 0:e.focus()},[ne.domReference]);const ue=i.useCallback(e=>{M(t=>t.filter(t=>t.value!==e.value)),setTimeout(()=>{var e;return null==(e=ne.domReference.current)?void 0:e.focus()})},[ne.domReference]),ce=Zr(Na(Q(P?"":O))),de=i.useCallback(e=>{const t=e.findIndex(e=>!e.options);return t>=0?t:null},[]);if(z&&"operator"!==T&&O){const t=En.find(t=>(null==e?void 0:e.operator)===t.value),r={value:O.trim(),label:O.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,G,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)),_(!1),x(!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)),Y.current!==r)return void(null==(a=t.stopInteraction)||a.call(t));w(l),(null==(o=l[0])?void 0:o.group)?C(1):C(0)}catch(e){_(!0)}x(!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&&!O){if("value"===T){if(o&&L.length)return void M(e=>{const t=[...e];return t.splice(-1,1),t});if(null==e?void 0:e.origin)return;return void A("operator")}if("operator"===T)return n.preventDefault(),k(""),e&&t.updateFilter(e,{key:"",keyLabel:"",operator:"",value:"",valueLabels:[],values:void 0}),void rn("key",A,void 0,ne.domReference.current);null==a||a(),Tn(e)&&(null==(i=t.startProfile)||i.call(t,Ie)),v(!1),t.handleComboboxBackspace(e),r&&J()}},[O,T,a,e,t,r,L.length,ne.domReference,J]),ve=i.useCallback((r,a)=>{var o;"Tab"!==r.key||r.shiftKey||(a&&(r.preventDefault(),Z(t,e,L),null==(o=ne.domReference.current)||o.focus()),null==n||n(),J())},[e,L,n,Z,J,t,ne.domReference]),ge=i.useCallback((r,a)=>{"Tab"===r.key&&r.shiftKey&&(a&&(r.preventDefault(),Z(t,e,L,!0)),null==n||n(),J())},[e,L,n,Z,J,t]),be=i.useCallback((r,i)=>{var s;if("Enter"===r.key&&null!=R){if(!ce[R])return;const r=ce[R];if(i)ee(r),k("");else{const i=nn({filterInputType:T,item:r,filter:e,setFilterMultiValues:M,onAddCustomValue:$});"value"===T&&i.value!==(null==e?void 0:e.value)&&(null==(s=t.startProfile)||s.call(t,De)),t.updateFilter(e,i),sn({populateInputOnEdit:o,item:r,filterInputType:T,setInputValue:k,filter:e}),tn(T,A,n,ne.domReference.current,!X&&void 0),C(null),X&&(null==a||a())}}},[R,ce,ee,t,e,T,o,n,ne.domReference,X,a,$]),ye=i.useCallback(e=>{var t;const r=e.label||e.value;M(t=>t.filter(t=>t.value!==e.value)),I(!0),k(r),null==(t=ne.domReference.current)||t.focus(),setTimeout(()=>{var e;null==(e=ne.domReference.current)||e.select()})},[ne.domReference]);i.useEffect(()=>{m&&pe(T)},[m,T]),i.useEffect(()=>{var t,n,a,i;if(!r){if(H&&(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}]},[]);M(t)}!H&&o&&(k(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(()=>{W&&L&&setTimeout(()=>N({}))},[L,W]),i.useLayoutEffect(()=>{Y.current&&(Y.current=T)},[T]),i.useLayoutEffect(()=>{var e,t;null!==R&&he.range&&(R>(null==(e=he.range)?void 0:e.endIndex)||R<(null==(t=he.range)?void 0:t.startIndex))&&he.scrollToIndex(R)},[R,he]);const we=null!=(u=null==e?void 0:e.keyLabel)?u:null==e?void 0:e.key;return F.default.createElement("div",{className:D.comboboxWrapper},e?F.default.createElement("div",{className:D.pillWrapper},(null==e?void 0:e.key)?F.default.createElement("div",{className:h.cx(D.basePill,D.keyPill)},we):null,(null==e?void 0:e.key)&&(null==e?void 0:e.operator)&&"operator"!==T?F.default.createElement("div",{id:q,className:h.cx(D.basePill,!e.origin&&D.operatorPill,e.origin&&D.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(),k(""),rn("operator",A,void 0,ne.domReference.current))},onKeyDown:t=>{e.origin||(ge(t,H),"Enter"===t.key&&(k(""),rn("operator",A,void 0,ne.domReference.current)))},...!e.origin&&{role:"button"}},e.operator):null,F.default.createElement("div",{ref:B}),W?L.map((e,t)=>F.default.createElement(ln,{key:`${e.value}-${t}`,item:e,index:t,handleRemoveMultiValue:ue,handleEditMultiValuePill:ye})):null):null,F.default.createElement("input",{...ie({ref:ne.setReference,onChange:function(e){const t=e.target.value;k(t);const r=Zr(Na(Q(t)));!r.length&&z?C(0):C(de(r)),P&&I(!1)},value:O,placeholder:on(e,T,W,r,U),"aria-autocomplete":"list",onKeyDown(e){m?("operator"===T&&ge(e),me(e,W),ve(e,W),be(e,W)):v(!0)}}),className:h.cx(D.inputStyle,{[D.loadingInputPadding]:!S}),onClick:e=>{e.stopPropagation(),null==s||s(),v(!0)},onFocus:()=>{v(!0)}}),S?F.default.createElement(f.Spinner,{className:D.loadingIndicator,inline:!0}):null,F.default.createElement(g.FloatingPortal,null,m&&F.default.createElement(g.FloatingFocusManager,{context:oe,initialFocus:-1,visuallyHiddenDismiss:!0,modal:!0},F.default.createElement(F.default.Fragment,null,F.default.createElement("div",{style:{...ae,width:`${E?366:fe}px`,transform:W?`translate(${(null==(c=B.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:D.dropdownWrapper,tabIndex:-1},F.default.createElement("div",{style:{height:`${he.getTotalSize()||38}px`},...se(),tabIndex:-1},S?F.default.createElement(Yr,null):E?F.default.createElement(Xr,{handleFetchOptions:()=>pe(T)}):ce.length||z&&"operator"!==T&&O?he.getVirtualItems().map(r=>{var a;const i=ce[r.index],s=r.index;if(i.options)return F.default.createElement("div",{key:`${i.label}+${s}`,className:h.cx(D.optionGroupLabel,D.groupTopBorder),style:{height:`${r.size}px`,transform:`translateY(${r.start}px)`}},F.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 F.default.createElement(Gr,{...le({key:`${i.value}-${s}`,ref(e){G.current[s]=e},onClick(r){var a,s;if("value"!==T&&r.stopPropagation(),W)r.preventDefault(),r.stopPropagation(),ee(i),k(""),null==(a=ne.domReference.current)||a.focus();else{const r=nn({filterInputType:T,item:i,filter:e,setFilterMultiValues:M,onAddCustomValue:$});"value"===T&&r.value!==(null==e?void 0:e.value)&&(null==(s=t.startProfile)||s.call(t,De)),t.updateFilter(e,r),sn({populateInputOnEdit:o,item:i,filterInputType:T,setInputValue:k,filter:e}),tn(T,A,n,ne.domReference.current,!1)}}}),active:R===s,addGroupBottomBorder:u,style:{height:`${r.size}px`,transform:`translateY(${r.start}px)`},"aria-setsize":ce.length,"aria-posinset":r.index+1,isMultiValueEdit:W,checked:L.some(e=>e.value===i.value)},F.default.createElement("span",null,i.isCustom?d.t("grafana-scenes.components.adhoc-filters-combobox.use-custom-value","Use custom value: {{itemLabel}}",{itemLabel:c,interpolation:{escapeValue:!1}}):c),i.description?F.default.createElement("div",{className:D.descriptionText},i.description):null)}):F.default.createElement(Qr,null))),W&&!S&&!E&&ce.length?F.default.createElement(Jr,{onApply:()=>{Z(t,e,L),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,x=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 E=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."},_=!e.restorable&&!e.readOnly&&!e.nonApplicable;if(c){const a=`${w} ${e.operator} ${S}`,o=F.default.createElement("span",{className:h.cx(u.pillText,e.nonApplicable&&u.strikethrough)},a);return F.default.createElement("div",{className:h.cx(u.combinedFilterPill,r&&u.readOnlyCombinedFilter,(Cn(e)||e.nonApplicable)&&u.disabledPill,e.readOnly&&u.filterReadOnly),onClick:e=>{e.stopPropagation(),y(!0),x()},onKeyDown:e=>{"Enter"===e.key&&(y(!0),x())},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:F.default.createElement(f.Tooltip,{content:F.default.createElement("div",{className:u.tooltipText},a),placement:"top"},o),r||e.matchAllFilter||e.origin&&"dashboard"!==e.origin?null:F.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&&F.default.createElement(f.Tooltip,{content:d.t("grafana-scenes.components.adhoc-filter-pill.managed-filter","{{origin}} managed filter",{origin:e.origin}),placement:"bottom"},F.default.createElement(f.Icon,{name:"lock",size:"md",className:u.readOnlyPillIcon})),e.origin&&_&&F.default.createElement(f.Tooltip,{content:E(e.origin).info,placement:"bottom"},F.default.createElement(f.Icon,{name:"info-circle",size:"md",className:u.infoPillIcon})),e.origin&&e.restorable&&!e.readOnly&&F.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:Cn(e)?u.matchAllPillIcon:u.pillIcon,tooltip:E(e.origin).restore}),e.nonApplicable&&F.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"},F.default.createElement(f.Icon,{name:"info-circle",size:"md",className:u.infoPillIcon})))}return F.default.createElement(cn,{filter:e,controller:t,handleChangeViewMode:x,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}}),...Fa(e)}),hn=i.forwardRef(function({controller:e,onInputClick:t},r){const{wip:n}=e.useState();return i.useLayoutEffect(()=>{n||e.addWip()},[n]),F.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)],x=S.length,E=o&&c&&x>0,_=E?S.slice(0,5):S;i.useEffect(()=>{o&&0===x&&c&&p(!1)},[o,x,c]);const O=o&&w&&!c;return F.default.createElement("div",{ref:m,className:h.cx(l.comboboxWrapper,{[l.comboboxFocusOutline]:!a,[l.collapsed]:E,[l.clickableCollapsed]:E}),onClick:()=>{var e,t;o?c?p(!1):null==(t=b.current)||t.call(b):null==(e=b.current)||e.call(b)}},F.default.createElement(f.Icon,{name:"filter",className:l.filterIcon,size:"lg"}),s&&F.default.createElement(s.Component,{model:s}),_.map((t,r)=>F.default.createElement(fn,{key:`${t.origin?"origin-":""}${r}-${t.key}`,filter:t,controller:e,readOnly:a||t.readOnly,focusOnWipInputRef:b.current})),a||E?null:F.default.createElement(hn,{controller:e,ref:b}),F.default.createElement("div",{className:l.rightControls},O&&F.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"),F.default.createElement(f.Icon,{name:"angle-up",size:"md"})),F.default.createElement("div",{className:l.clearAllButton},F.default.createElement(f.Icon,{name:"times",size:"md",onClick:()=>{var t;null==(t=e.clearAll)||t.call(e)}})),E&&F.default.createElement(F.default.Fragment,null,x>5&&F.default.createElement("span",{className:l.moreIndicator},"(+",x-5,")"),F.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 xn{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=kr(this.model);null==t||t.startInteraction(e)}stopInteraction(){const e=kr(this.model);null==e||e.stopInteraction()}}const En=[{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 _n extends J{constructor(e){var t,r,n,a,i,s;const l=null!=(t=e.$behaviors)?t:[],c=e.drilldownRecommendationsEnabled?new In: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:On(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 $a(this,{dependsOnScopes:!0,onReferencedVariableValueChanged:()=>this._updateScopesFilters()}),this._urlSync=new Br(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(()=>(Ir.add(e),()=>Ir.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===Ir.size)return Pr.call(t,e);const n=o.getDataSourceSrv().getInstanceSettings(e);if(!n)return[];for(const e of Ir.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=On(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=On(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=>Hr(e).map(Ia).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(Ie),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?Ta(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 Ma(i.values).map(Rn);if(this.state.defaultKeys)return this.state.defaultKeys.map(Rn);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?Ta(this):void 0,f=await s.getTagKeys({filters:u,queries:d,timeRange:c,scopes:uo.getScopes(this),...vr(this)});ja(f)&&this.setState({error:f.error.message});let p=Ma(f);i&&(p=p.concat(Ma(i.values)));const h=this.state.tagKeyRegexFilter;return h&&(p=p.filter(e=>e.text.match(h))),p.map(Rn)}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 Ma(o.values).map(Rn);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?Ta(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)});ja(f)&&this.setState({error:f.error.message});let p=Ma(f);return o&&(p=p.concat(Ma(o.values))),p.map(Rn)}_addWip(){this.setState({_wip:{key:"",value:"",operator:"=",condition:""}})}_getOperators(){const{supportsMultiValueOperators:e,allowCustomValue:t=!0}=this.state;return En.filter(({isMulti:r,isRegex:n})=>!(!e&&r)&&!(!t&&n)).map(({value:e,description:t})=>({label:e,value:e,description:t}))}}function On(e,t){var r;return(null!=e?e:Oa)(null!=(r=null==t?void 0:t.filter(e=>An(e)))?r:[])}_n.Component=function({model:e}){const{filters:t,readOnly:r,addFilterButtonText:n}=e.useState(),a=f.useStyles2(kn),o=i.useMemo(()=>"combobox"===e.state.layout?new xn(e):void 0,[e]);if(o)return F.default.createElement(mn,{controller:o});return F.default.createElement("div",{className:a.wrapper},t.filter(e=>!e.hidden).map((t,r)=>F.default.createElement(F.default.Fragment,{key:r},F.default.createElement(zr,{filter:t,model:e}))),!r&&F.default.createElement(Vr,{model:e,key:"'builder",addFilterButtonText:n}))};const kn=e=>({wrapper:h.css({display:"flex",flexWrap:"wrap",alignItems:"flex-end",columnGap:e.spacing(2),rowGap:e.spacing(1)})});function Rn(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 Cn(e){return"=~"===e.operator&&".*"===e.value}function Tn(e){return""!==e.key&&""!==e.operator&&""!==e.value}function An(e){return!e.nonApplicable}function Pn(e){const t=En.find(t=>t.value===e);return!!t&&Boolean(t.isMulti)}class In 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(Ze,this._adHocFilter);let n,o;return r instanceof Tr&&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 _n))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 Mt(t.state.datasource,this._scopedVars);if(!r||!r.getRecommendedDrilldowns)return;const n=t.state.useQueriesAsFilterForOptions?Ta(t):void 0,a=uo.getTimeRange(t).state.value,o=uo.getScopes(t),i=[...null!=(e=t.state.originFilters)?e:[],...t.state.filters],s=$t(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?Ta(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])}}In.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 F.default.createElement(Rr,{recentDrilldowns:a,recommendedDrilldowns:o})};class Dn 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(Ze,this._groupBy);let n,o;return r instanceof Tr&&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 Ln))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 Mt(this._groupBy.state.datasource,this._scopedVars);if(!e||!e.getRecommendedDrilldowns)return;const t=Ta(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=$t(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=Ta(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)}}Dn.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 F.default.createElement(Rr,{recentDrilldowns:n,recommendedDrilldowns:a})};class Ln extends vt{constructor(e){var t;const r=null!=(t=e.$behaviors)?t:[],n=e.drilldownRecommendationsEnabled?new Dn: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(Ma(null!=(n=null==a?void 0:a.values)?n:[]));if(!e.getTagKeys)return[];const o=Ta(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)});ja(l)&&this.setState({error:l.error.message});let u=Ma(l);a&&(u=u.concat(Ma(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(()=>(Vt.add(this),()=>Vt.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(Mt(this.state.datasource,this._scopedVars)).pipe(s.mergeMap(e=>s.from(this._getKeys(e)).pipe(s.tap(e=>{ja(e)&&this.setState({error:e.error.message})}),s.map(e=>Ma(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 Mt(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=Ta(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:[]}}}Ln.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(),x=f.useStyles2(zn),E=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]=i.useState(!1),[k,R]=i.useState(!1),[C,T]=i.useState(""),[A,P]=i.useState(E),I=i.useMemo(()=>or(m,v),[m,v]),D=void 0!==b;i.useEffect(()=>{P(E)},[E]);const L=(t,{action:r})=>"input-change"===r?(T(t),e.onSearchChange&&e.onSearchChange(t),t):"input-blur"===r?(T(""),""):C,M=i.useMemo(()=>Na(I(C).map(Fn)),[I,C]),j=e=>F.default.createElement("div",{className:x.selectWrapper},e),N=l?F.default.createElement(Mn,{condition:null!=(t=e.state.wideInput)&&t,wrapper:j},F.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&&x.selectStylesInWrapper),allowCustomValue:g,inputValue:C,value:A,noMultiValueWrap:!0,maxVisibleValues:null!=c?c:5,tabSelectsValue:!1,virtualized:!0,options:M,filterOption:jn,closeMenuOnSelect:!1,isOpen:k,isClearable:!0,hideSelectedOptions:!1,isLoading:_,components:{Option:dr,Menu:Nn,...D?{IndicatorsContainer:()=>F.default.createElement(xr,{model:e})}:{},MultiValueContainer:({innerProps:e,children:t})=>F.default.createElement(_r,{innerProps:e,keysApplicability:y},t)},onInputChange:L,onBlur:()=>{e.changeValueTo(A.map(e=>e.value),A.map(e=>e.label),!0);const t=e.checkIfRestorable(A.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),T("")},onOpenMenu:async()=>{const t=kr(e);null==t||t.startInteraction(Me),O(!0),await s.lastValueFrom(e.validateAndUpdate()),O(!1),R(!0),null==t||t.stopInteraction()},onCloseMenu:()=>{R(!1)}})):F.default.createElement(Mn,{condition:null!=(r=e.state.wideInput)&&r,wrapper:j},F.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:C,value:A&&A.length>0?A:null,allowCustomValue:g,noMultiValueWrap:!0,maxVisibleValues:null!=c?c:5,tabSelectsValue:!1,virtualized:!0,options:M,filterOption:jn,closeMenuOnSelect:!0,isOpen:k,isClearable:!0,hideSelectedOptions:!1,noValueOnClear:!0,isLoading:_,components:{Menu:Nn},onInputChange:L,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=kr(e);null==t||t.startInteraction(Me),O(!0),await s.lastValueFrom(e.validateAndUpdate()),O(!1),R(!0),null==t||t.stopInteraction()},onCloseMenu:()=>{R(!1)}}));if(!S)return N;return F.default.createElement("div",{className:x.wrapper},F.default.createElement("div",{className:x.recommendations},F.default.createElement(S.Component,{model:S})),N)};const Mn=({condition:e,wrapper:t,children:r})=>e?t(r):F.default.createElement(F.default.Fragment,null,r),jn=()=>!0;function Nn(e){return F.default.createElement(er.Menu,{...e},F.default.createElement("div",{style:{minWidth:"220px"}},e.children))}function Fn(e){const{label:t,value:r,group:n}=e,a={label:t,value:r};return n&&(a.group=n),a}const zn=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 $n({data:e,showAll:t,seriesLimit:r,onShowAllSeries:n}){const a=f.useStyles2(Vn),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 F.default.createElement("div",{className:a.timeSeriesDisclaimer},!t&&F.default.createElement("span",{className:a.warningMessage},F.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"})),F.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.")},F.default.createElement(f.Button,{variant:"secondary",size:"sm",onClick:n},i)))}const Vn=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 Bn=F.default.forwardRef(({children:e,onLoad:t,onChange:r,className:n,...a},o)=>{const s=Un(),{hideEmpty:l}=f.useStyles2(Hn),[u,c]=i.useState(!1),[p,h]=i.useState(!1),m=i.useRef(null);return i.useImperativeHandle(o,()=>m.current),v.useEffectOnce(()=>{Bn.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&&Bn.observer.observe(e),()=>{e&&Bn.observer.unobserve(e),delete Bn.callbacks[s],0===Object.keys(Bn.callbacks).length&&Bn.observer.disconnect()}}),F.default.createElement("div",{id:s,ref:m,className:`${l} ${n}`,...a},u?F.default.createElement(Wn.Provider,{value:p},e):d.t("grafana-scenes.components.lazy-loader.placeholder"," "))});function Hn(){return{hideEmpty:h.css({"&:empty":{display:"none"}})}}Bn.displayName="LazyLoader",Bn.callbacks={},Bn.addCallback=(e,t)=>Bn.callbacks[e]=t,Bn.observer=new IntersectionObserver(e=>{for(const t of e)"function"==typeof Bn.callbacks[t.target.id]&&Bn.callbacks[t.target.id](t)},{rootMargin:"100px"});const Wn=F.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 Gn=h.css({position:"relative",width:"100%",height:"100%"}),Kn=h.css({position:"absolute",width:"100%",height:"100%"}),Yn=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})}),Qn="hideSeriesFrom",Xn=a.isSystemOverrideWithRef(Qn);function Jn(e,t=a.ByNamesMatcherMode.exclude,r){return r=null!=r?r:{id:"custom.hideFrom",value:{viz:!0,legend:!1,tooltip:!0}},{__systemRef:Qn,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 Zn=(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=Tt("query");return It().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),It().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=Tt("pluginLoad");return It().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;It().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=Tt("fieldConfig");return It().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;It().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=Tt("render");return It().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&&It().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=Tt("transform");return It().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&&It().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:Ee}),this.setStateHelper({data:Ee}))}_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={...Ee,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 F.default.createElement(F.default.Fragment,null,t.map(e=>F.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 $a(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 $a(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 Ce(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 G({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 G({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 G({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(Xn);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=Zn(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 G({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:B.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&&Lt(o).pipe(Dt({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 Ee;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:x,seriesLimitShowAll:E,description:_,collapsible:O,collapsed:k,_renderCounter:R=0}=e.useState(),[C,{width:T,height:A}]=v.useMeasure(),P=i.useMemo(()=>o.getAppEvents(),[]),I=i.useCallback(()=>{e.state.key&&P.publish(new a.SetPanelAttentionEvent({panelId:e.getPathId()}))},[e,P]),D=i.useMemo(()=>u.debounce(I,100,{leading:!0,trailing:!1}),[I]),L=i.useMemo(()=>e.getProfiler(),[e]),M=performance.now(),j=F.default.useRef(null);i.useLayoutEffect(()=>{if(L){const e=L.onSimpleRenderStart(M);j.current=e||null}}),i.useEffect(()=>{if(j.current){const e=performance.now(),t=e-M;j.current(e,t),j.current=null}});const N=e.getPlugin(),{dragClass:z,dragClassCancel:$}=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),V=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),B=U.useState(),H=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])}(B.data,x,E),W=e.applyFieldConfig(H),q=uo.getTimeRange(e).getTimeZone(),G=e.getTimeRange(W),K=F.default.useContext(Wn);i.useEffect(()=>{U.isInViewChanged&&U.isInViewChanged(K)},[K,U]);const Y=e.interpolate(r,void 0,"text"),Q=f.useStyles2(Yn);if(!N)return F.default.createElement("div",null,F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.viz-panel-renderer.loading-plugin-panel"},"Loading plugin panel..."));if(!N.panel)return F.default.createElement("div",null,F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.viz-panel-renderer.panel-plugin-has-no-panel-component"},"Panel plugin has no panel component"));const X=N.panel;U&&U.setContainerWidth&&U.setContainerWidth(Math.round(T));let J=[];w&&(Array.isArray(w)?J=J.concat(w.map(e=>F.default.createElement(e.Component,{model:e,key:`${e.state.key}`}))):Ot(w)?J.push(F.default.createElement(w.Component,{model:w,key:`${w.state.key}`})):J.push(w));let Z,ee,te=[];S&&(Array.isArray(S)?te=te.concat(S.map(e=>F.default.createElement(e.Component,{model:e,key:`${e.state.key}`}))):Ot(S)?te.push(F.default.createElement(S.Component,{model:S})):te.push(S)),x&&te.push(F.default.createElement($n,{key:"series-limit",data:B.data,seriesLimit:x,showAll:E,onShowAllSeries:()=>e.setState({seriesLimitShowAll:!E})})),e.state.$timeRange&&te.push(F.default.createElement(e.state.$timeRange.Component,{model:e.state.$timeRange,key:e.state.key})),W.alertState&&te.push(F.default.createElement(f.Tooltip,{content:null!=(t=W.alertState.state)?t:"unknown",key:`alert-states-icon-${e.state.key}`},F.default.createElement(f.PanelChrome.TitleItem,{className:h.cx({[Q.ok]:W.alertState.state===a.AlertState.OK,[Q.pending]:W.alertState.state===a.AlertState.Pending,[Q.alerting]:W.alertState.state===a.AlertState.Alerting})},F.default.createElement(f.Icon,{name:"alerting"===W.alertState.state?"heart-break":"heart",className:"panel-alert-icon",size:"md"})))),b&&(Z=F.default.createElement(b.Component,{model:b})),y&&(ee=Array.isArray(y)?F.default.createElement(F.default.Fragment,null,y.map(e=>F.default.createElement(e.Component,{model:e,key:`${e.state.key}`}))):Ot(y)?F.default.createElement(y.Component,{model:y}):y);const re=W,ne=!U.isDataReadyToDisplay||U.isDataReadyToDisplay(),ae=e.getPanelContext(),oe=e.getLegacyPanelId();return F.default.createElement("div",{className:Gn},F.default.createElement("div",{ref:C,className:Kn,"data-viz-panel-key":e.state.key},T>0&&A>0&&F.default.createElement(f.PanelChrome,{title:Y,description:(null==_?void 0:_.trim())?e.getDescription:void 0,loadingState:re.state,statusMessage:qn(re,l),statusMessageOnClick:e.onStatusMessageClick,width:T,height:A,selectionId:e.state.key,displayMode:c,titleItems:te.length>0?te:void 0,dragClass:z,actions:ee,dragClassCancel:$,padding:N.noPadding?"none":"md",menu:Z,onCancelQuery:e.onCancelQuery,onFocus:I,onMouseEnter:I,onMouseMove:D,subHeaderContent:J.length?J:void 0,onDragStart:t=>{var r;null==(r=V.onDragStart)||r.call(V,t,e)},showMenuAlways:m,...O?{collapsible:Boolean(O),collapsed:k,onToggleCollapse:e.onToggleCollapse}:{hoverHeader:p,hoverHeaderOffset:g}},(t,o)=>F.default.createElement(F.default.Fragment,null,F.default.createElement(f.ErrorBoundaryAlert,{dependencies:[N,re]},F.default.createElement(a.PluginContextProvider,{meta:N.meta},F.default.createElement(f.PanelContextProvider,{value:ae},ne&&F.default.createElement(X,{id:oe,data:re,title:r,timeRange:G,timeZone:q,options:n,fieldConfig:s,transparent:"transparent"===c,width:t,height:o,renderCounter:R,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 Ir.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 Vt.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=>Tn(e)&&An(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 jt,this._results=new s.ReplaySubject(1),this._scopedVars={__sceneObject:Sr(this)},this._isInView=!0,this._bypassIsInView=!1,this._queryNotExecutedWhenOutOfView=!1,this._variableDependency=new $a(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,zt].includes(s.values[e]));const n=l.values[e].filter;if(n){const e=[...null!=(r=n.ids)?r:[],zt].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(xa(d)&&xa(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:{...Ee,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 _n&&this._isRelevantAutoVariable(e)&&this.runQueries(),e instanceof Ln&&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:Ee,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:Ee,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 Mt(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(Dt({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({...Ee,...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:Ee}),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),...$t(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:Ft)}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!==Ee&&this.setState({data:Ee})}getClosestExtraQueryProviders(){const e=new Map;return this.parent?(Oe(this.parent,t=>(Nt(t)&&!e.has(t.constructor)&&e.set(t.constructor,t),t.forEachChild(t=>{Nt(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 xa(e){if(!e)return!0;for(let t=0;t<e.length;t++)if(e[t].length>0)return!1;return!0}function Ea(e,t){return e===t||u.isEqual(e,t)}function _a(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 Oa(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(Ra).join("|")):"!=|"===a?(a="!~",n=null==(r=e.values)?void 0:r.map(Ra).join("|")):n="=~"===a||"!~"===a?Ra(e.value):ka(e.value);return`${e.key}${a}"${n}"`}(e)).join(",")}function ka(e){return e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"')}function Ra(e){return ka(e.replace(Ca,"\\$&"))}const Ca=/[*+?()|\\.\[\]{}^$]/g;function Ta(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 Aa(e){return null==e?"":/\|/g[Symbol.replace](e,"__gfp__")}function Pa(e){return null==e?"":/,/g[Symbol.replace](e,"__gfc__")}function Ia(e){return function(e){return null==e?"":/#/g[Symbol.replace](e,"__gfh__")}(Aa(e))}function Da(e){return null==e?"":(e=/__gfp__/g[Symbol.replace](e,"|"),e=/__gfc__/g[Symbol.replace](e,","),e=/__gfh__/g[Symbol.replace](e,"#"))}function La(e,t){return t&&e!==t?[e,t].map(Pa).join(","):Pa(e)}function Ma(e){return Array.isArray(e)?e:e.data}function ja(e){return!Array.isArray(e)&&Boolean(e.error)}function Na(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 Fa(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 za extends J{constructor(e){super({type:"constant",value:"",name:"",...e,skipUrlSync:!0}),this._variableDependency=new $a(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 $a{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(Ze),this._statePaths)for(const t of this._statePaths){if("*"===t){this.extractVariablesFrom(e);break}{const r=e[t];r&&this.extractVariablesFrom(r)}}}extractVariablesFrom(e){Xe.lastIndex=0;const t=("string"!=typeof e?_a(e):e).matchAll(Xe);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 za({name:"__from",value:e.from});this.variableUpdateCompleted(t,!0)}else if(a){const t=new za({name:"__to",value:e.to});this.variableUpdateCompleted(t,!0)}if(e.timeZone!==t.timeZone&&o){const t=new za({name:"__timezone",value:e.timeZone});this.variableUpdateCompleted(t,!0)}});return()=>e.unsubscribe()})}}const Va=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)},Ba=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)},Ha=e=>!!e.variables&&e.variables.getType()===a.VariableSupportType.Datasource;class Wa{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):Ya()}}class qa{constructor(e){this.datasource=e}getTarget(e){if(Va(this.datasource))return e.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest({variable:e,searchFilter:t},r){return Va(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 Ya();const t=e;return s.of({series:t,state:a.LoadingState.Done,timeRange:r.range})})):Ya()}}class Ga{constructor(e,t=o.getRunRequest()){this.datasource=e,this._runRequest=t}getTarget(e){if(Ba(this.datasource))return e.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest(e,t){return Ba(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,t,this.datasource.variables.query.bind(this.datasource.variables)):this._runRequest(this.datasource,t):Ya()}}class Ka{constructor(e,t=o.getRunRequest()){this.datasource=e,this._runRequest=t}getTarget(e){var t;if(Ha(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 Ha(this.datasource)?this._runRequest(this.datasource,t):Ya()}}function Ya(){return s.of({state:a.LoadingState.Done,series:[],timeRange:a.getDefaultTimeRange()})}let Qa=function(e){if(Ua(e))return new Wa(e,o.getRunRequest());if(Va(e))return new qa(e);if(Ba(e))return new Ga(e);if(Ha(e))return new Ka(e);throw new Error(`Couldn't create a query runner for datasource ${e.type}`)};const Xa=(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,Za);break;case a.VariableSort.numericalDesc:e=(e=u.sortBy(e,Za)).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 Za(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 $a(this,{statePaths:["regex","regexApplyTo","query","datasource"]}),this.onSearchChange=e=>{_a(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(Mt(this.state.datasource,{__sceneObject:Sr(this)})).pipe(s.mergeMap(t=>{const r=Qa(t),n=r.getTarget(this),o=this.getRequest(n,e.searchFilter);return r.runRequest({variable:this,searchFilter:e.searchFilter},o).pipe(Dt({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=Xa("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=Oe(e,e=>e.state.$data))?t:Fe}function oo(e,t,r,n,a){return""===t||null==t?"":_t(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})=>F.default.createElement(pr,{model:e});const uo={getVariables:function(e){var t;return null!=(t=Oe(e,e=>e.state.$variables))?t:$e},getData:ao,getTimeRange:Ve,getLayout:function(e){const t=Oe(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(Ct(e)?n=n.concat(e):e.state.$data&&Ct(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(Ze,e);if(t instanceof Tr)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 $a(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,xo,Eo=e=>{throw TypeError(e)},_o=(e,t,r)=>t.has(e)||Eo("Cannot "+r),Oo=(e,t,r)=>(_o(e,t,"read from private field"),r?r.call(e):t.get(e)),ko=(e,t,r)=>t.has(e)?Eo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ro=(e,t,r,n)=>(_o(e,t,"write to private field"),t.set(e,r),r);class Co{constructor(){ko(this,bo,!1),ko(this,yo,null),ko(this,wo,null),ko(this,So,0),ko(this,xo,null),this.measureFrames=()=>{if(!Oo(this,bo))return;const e=performance.now(),t=e-Oo(this,So);if(t>50){const r={duration:t,timestamp:e,method:"manual"};if(Oo(this,yo)&&Oo(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()}Ro(this,So,e),Oo(this,bo)&&Ro(this,wo,requestAnimationFrame(this.measureFrames))}}isLoAFAvailable(){return"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}start(e){Oo(this,bo)&&(vo(),this.stop()),Ro(this,yo,e),Ro(this,bo,!0),this.isLoAFAvailable()?this.startLoAFTracking():this.startManualFrameTracking(),vo(0,this.isLoAFAvailable())}stop(){Oo(this,bo)&&(Ro(this,bo,!1),Ro(this,yo,null),this.stopLoAFTracking(),this.stopManualFrameTracking())}isTracking(){return Oo(this,bo)}startLoAFTracking(){if(!this.isLoAFAvailable())return vo(),void this.startManualFrameTracking();try{Ro(this,xo,new PerformanceObserver(e=>{for(const t of e.getEntries()){const e={duration:t.duration,timestamp:t.startTime,method:"loaf"};if(Oo(this,yo)&&Oo(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))}})),Oo(this,xo).observe({type:"long-animation-frame",buffered:!1})}catch(e){vo(0,0),this.startManualFrameTracking()}}stopLoAFTracking(){Oo(this,xo)&&(Oo(this,xo).disconnect(),Ro(this,xo,null),vo())}startManualFrameTracking(){Ro(this,So,performance.now()),Ro(this,wo,requestAnimationFrame(()=>this.measureFrames()))}stopManualFrameTracking(){Oo(this,wo)&&(cancelAnimationFrame(Oo(this,wo)),Ro(this,wo,null),vo())}}bo=new WeakMap,yo=new WeakMap,wo=new WeakMap,So=new WeakMap,xo=new WeakMap;var To,Ao,Po,Io,Do,Lo,Mo,jo,No,Fo,zo,$o=e=>{throw TypeError(e)},Vo=(e,t,r)=>t.has(e)||$o("Cannot "+r),Uo=(e,t,r)=>(Vo(e,t,"read from private field"),r?r.call(e):t.get(e)),Bo=(e,t,r)=>t.has(e)?$o("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ho=(e,t,r,n)=>(Vo(e,t,"write to private field"),t.set(e,r),r);function Wo(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)}To=new WeakMap,Ao=new WeakMap,Po=new WeakMap,Io=new WeakMap,Do=new WeakMap,Lo=new WeakMap,Mo=new WeakMap,jo=new WeakMap,No=new WeakMap,Fo=new WeakMap,zo=new WeakMap;var qo=Object.freeze({__proto__:null,SceneRenderProfiler:class{constructor(e){Bo(this,To,null),Bo(this,Ao,null),Bo(this,Po,null),Bo(this,Io,null),this.metadata={},Bo(this,Do),Bo(this,Lo,[]),Bo(this,Mo),Bo(this,jo,0),Bo(this,No,0),Bo(this,Fo,null),Bo(this,zo,null),this.measureTrailingFrames=(e,t,r)=>{const n=performance.now(),a=n-t;if(Uo(this,Lo).push(a),n-e<2e3)Uo(this,To)&&Ho(this,Io,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,Lo)),n=t.reduce((e,t)=>e+t,0);vo(0,0,Uo(this,To)),Ho(this,Lo,[]);const a=e-r;t.length>0?(n.toFixed(1),t.length):(n.toFixed(1),t.length),Uo(this,jo)>0?(Uo(this,No).toFixed(1),Uo(this,jo)):(Uo(this,No).toFixed(1),Uo(this,jo));vo(0,(a+n).toFixed(1)),Uo(this,Mo).stop(),Ho(this,Io,null);const o=r+a+n;if(!Uo(this,To))return;const i=Wo(r,o);if(Uo(this,To)){const e={operationId:Uo(this,Do)||Tt("dashboard-fallback"),interactionType:Uo(this,To).origin,timestamp:o,duration:a+n,networkDuration:i,longFramesCount:Uo(this,jo),longFramesTotalTime:Uo(this,No),metadata:this.metadata};It().notifyDashboardInteractionComplete(e),Ho(this,To,null),Ho(this,Io,null)}}},Ho(this,Mo,new Co),this.setupVisibilityChangeHandler(),Ho(this,Ao,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){Ho(this,zo,null!=e?e:null)}setupVisibilityChangeHandler(){Uo(this,Fo)||(Ho(this,Fo,()=>{document.hidden&&Uo(this,To)&&(vo(),this.cancelProfile())}),"undefined"!=typeof document&&document.addEventListener("visibilitychange",Uo(this,Fo)))}cleanup(){var e;Uo(this,Fo)&&"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",Uo(this,Fo)),Ho(this,Fo,null)),Uo(this,Mo).stop(),this.cancelProfile(),null==(e=this._panelProfilingManager)||e.cleanup()}startProfile(e){document.hidden?vo(0,0):Uo(this,To)?Uo(this,Io)?(this.cancelProfile(),this._startNewProfile(e,!0)):this.addCrumb(e):this._startNewProfile(e)}startInteraction(e){Uo(this,Ao)&&(vo(0,0,Uo(this,Ao)),Ho(this,Ao,null)),Ho(this,Ao,{interaction:e,startTs:performance.now()}),vo(0,0)}stopInteraction(){if(!Uo(this,Ao))return;const e=performance.now(),t=e-Uo(this,Ao).startTs,r=Wo(Uo(this,Ao).startTs,e);vo(0,(t.toFixed(1),r.toFixed(1))),Uo(this,zo)&&Uo(this,To)&&Uo(this,zo).call(this,{origin:Uo(this,Ao).interaction,duration:t,networkDuration:r,startTs:Uo(this,Ao).startTs,endTs:e}),performance.mark(`${Uo(this,Ao).interaction}_start`,{startTime:Uo(this,Ao).startTs}),performance.mark(`${Uo(this,Ao).interaction}_end`,{startTime:e}),performance.measure(`Interaction_${Uo(this,Ao).interaction}`,`${Uo(this,Ao).interaction}_start`,`${Uo(this,Ao).interaction}_end`),Ho(this,Ao,null)}getCurrentInteraction(){var e,t;return null!=(t=null==(e=Uo(this,Ao))?void 0:e.interaction)?t:null}_startNewProfile(e,t=!1){vo(),Ho(this,To,{origin:e,crumbs:[]}),Ho(this,Po,performance.now()),Ho(this,jo,0),Ho(this,No,0),Ho(this,Do,Tt("dashboard")),It().notifyDashboardInteractionStart({operationId:Uo(this,Do),interactionType:e,timestamp:Uo(this,Po),metadata:this.metadata}),Uo(this,Mo).start(e=>{var t,r,n;Uo(this,To)&&Uo(this,Po)&&(e.timestamp<Uo(this,Po)||((t=this,r=jo,{set _(e){Ho(t,r,e)},get _(){return Uo(t,r,n)}})._++,Ho(this,No,Uo(this,No)+e.duration)))})}recordProfileTail(e,t){Ho(this,Io,requestAnimationFrame(()=>this.measureTrailingFrames(e,e,t)))}tryCompletingProfile(){var e;vo(0,0,Uo(this,To)),0===(null==(e=this.queryController)?void 0:e.runningQueriesCount())&&Uo(this,To)&&(vo(),this.recordProfileTail(performance.now(),Uo(this,Po)))}isTailRecording(){return Boolean(Uo(this,Io))}cancelTailRecording(){Uo(this,Io)&&(cancelAnimationFrame(Uo(this,Io)),Ho(this,Io,null),vo())}cancelProfile(){Uo(this,To)&&(vo(0,0,Uo(this,To)),Ho(this,To,null),Uo(this,Io)&&(cancelAnimationFrame(Uo(this,Io)),Ho(this,Io,null)),Uo(this,Mo).stop(),vo(),Ho(this,Lo,[]),Ho(this,jo,0),Ho(this,No,0))}addCrumb(e){Uo(this,To)&&(It().notifyDashboardInteractionMilestone({operationId:Tt("dashboard-milestone"),interactionType:Uo(this,To).origin,timestamp:performance.now(),milestone:e,metadata:this.metadata}),Uo(this,To).crumbs.push(e))}},getScenePerformanceTracker:It});function Go(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 jt,this._variableDependency=new $a(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:Ee}),this.setStateHelper({data:Ee})),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(Ee))}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 Yo={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 Qo=[{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"}],Xo=[...o.config.publicDashboardAccessToken?[{key:"color"},{key:"isRegion"},{key:"source"}]:[],...Qo,{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 Xo){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 Zo=["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||Zo.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={...Yo,...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,...$t(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(Dt({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({...Ee,state:c.LoadingState.Error,errors:[{message:Go(e)}]}),console.error("AnnotationsDataLayer error",e)}}async resolveDataSource(e){return await Mt(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={...Ee,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 F.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:F.default.createElement("div",{className:ui},F.default.createElement(Lr,{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}),F.default.createElement(e.Component,{model:e}))}si.Component=function({model:e}){const t=uo.getDataLayers(e,!0);if(0===t.length)return null;return F.default.createElement(F.default.Fragment,null,t.map(e=>F.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 Z(e,{shouldActivateOrKeepAlive:!0}).hide!==a.VariableHide.hideVariable||r?"vertical"===t?F.default.createElement("div",{className:hi,"data-testid":p.selectors.pages.Dashboard.SubMenu.submenuItem},F.default.createElement(fi,{variable:e,layout:t,hideLabel:n}),F.default.createElement(e.Component,{model:e})):F.default.createElement("div",{className:pi,"data-testid":p.selectors.pages.Dashboard.SubMenu.submenuItem},F.default.createElement(fi,{variable:e,hideLabel:n}),F.default.createElement(e.Component,{model:e})):e.UNSAFE_renderAsHidden?F.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 F.default.createElement(Lr,{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 F.default.createElement(F.default.Fragment,null,t.variables.map(t=>F.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 F.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 jt,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 $a(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})=>F.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 _e(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 F.default.createElement("div",{className:r.container},F.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 xi extends vt{constructor(e){super({type:"datasource",value:"",text:"",options:[],name:"",regex:"",pluginId:"",...e}),this._variableDependency=new $a(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];Ei(a,r)&&n.push({label:a.name,value:a.uid}),this.state.defaultOptionEnabled&&_i(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 Ei(e,t){return!t||t.exec(e.name)}function _i(e,t){return!!e.isDefault&&(!t||t.exec("default"))}function Oi(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:Oi(r,t+1)})}return n}function ki(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(ki([n],t,r+1)))}else n.name===e&&(a=a.concat(ki(n.children,t,r+1)));return a}function Ri(e){if(0===e.indexOf("value"))return[{name:e,children:[]}];return ki(Oi("",0),e.split("."),0)}xi.Component=({model:e})=>F.default.createElement(pr,{model:e});class Ci 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 $a(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=Oe(this,e=>e instanceof vi?e:void 0);null==e||e.cancel(this)}getOptions(e){return this.state.optionsToReturn?this.state.optionsToReturn:Ri(e).map(e=>({label:e.name,value:e.name}))}signalUpdateCompleted(){this.completeUpdate.next(1)}}function Ti({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 F.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})}Ci.Component=({model:e})=>F.default.createElement(pr,{model:e});class Ai extends J{constructor(e){super({type:"textbox",value:"",name:"",...e}),this._urlSync=new _e(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)}}Ai.Component=({model:e})=>F.default.createElement(Ti,{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 _e(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=Qe: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:Qe,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===Qe?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===Qe)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 F.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 Ii,Di,Li=e=>{throw TypeError(e)},Mi=(e,t,r)=>t.has(e)||Li("Cannot "+r),ji=(e,t,r)=>(Mi(e,t,"read from private field"),r?r.call(e):t.get(e)),Ni=(e,t,r)=>t.has(e)?Li("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Fi=(e,t,r,n)=>(Mi(e,t,"write to private field"),t.set(e,r),r);class zi extends a.BusEventWithPayload{}zi.type="new-scene-object-added";class $i{constructor(e={},t=o.locationService){this._options=e,this._locationService=t,this._paramsCache=new Vi(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(zi,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 Vi{constructor(e){this.locationService=e,Ni(this,Ii),Ni(this,Di)}getParams(){const e=this.locationService.getLocation();return ji(this,Di)===e||(Fi(this,Di,e),Fi(this,Ii,new URLSearchParams(e.search))),ji(this,Ii)}}function Ui(e,t={}){const r=n.useLocation(),a=pt(),[o,s]=i.useState(!1),l=function(e,t){return i.useMemo(()=>new $i({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}Ii=new WeakMap,Di=new WeakMap;class Bi 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()}})}}Bi.Component=function({model:e}){const{body:t,controls:r}=e.useState(),n=f.useStyles2(Hi);return F.default.createElement("div",{className:n.container},r&&F.default.createElement("div",{className:n.controls},r.map(e=>F.default.createElement(e.Component,{key:e.state.key,model:e}))),F.default.createElement("div",{className:n.body},F.default.createElement(t.Component,{model:t})))};const Hi=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 Wi 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""}Wi.Component=function({model:e}){const{items:t=[]}=e.useState(),r=F.default.useRef(null);i.useEffect(()=>{r.current&&r.current.focus()},[]);const n=e=>e.map(e=>{switch(e.type){case"divider":return F.default.createElement(f.Menu.Divider,{key:e.text});case"group":return F.default.createElement(f.Menu.Group,{key:e.text,label:e.text},e.subMenu?n(e.subMenu):void 0);default:return F.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 F.default.createElement(f.Menu,{ref:r},n(t))};class Gi extends J{constructor(e={}){super({options:e})}}Gi.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 F.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)}},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.viz-panel-explore-button.explore"},"Explore"));return null};class Ki extends J{}function Yi(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))&&!Yi(r))throw new Error("SceneGridItem must be a child of SceneGridLayout or SceneGridRow");var n;if(!t)return null;return F.default.createElement(t.Component,{model:t})};const Qi=h.css({flex:"1 1 auto",position:"relative",zIndex:1,width:"100%"}),Xi=F.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=F.default.createElement(p.Component,{model:p,key:p.state.key});return s?F.default.createElement(Bn,{...f,key:p.state.key,"data-griditem-key":p.state.key,className:h.cx(m,e.className),style:l,ref:t},v,d):F.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)}Xi.displayName="GridItemWrapper";const Zi=F.default.forwardRef(({handleAxis:e,...t},r)=>{const n=f.useStyles2(es);return F.default.createElement("div",{ref:r,...t,className:`${n} scene-resize-handle`},F.default.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F.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"}})}Zi.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),Yi(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),F.default.createElement("div",{ref:o,className:Qi},((t,o)=>{if(!t||!o)return null;const i=e.buildGridLayout(t,o);return F.default.createElement("div",{ref:u,style:{width:`${t}px`,height:i.length>0?"100%":"0"},className:"react-grid-layout"},F.default.createElement($.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:F.default.createElement(Zi,null)},i.map((t,n)=>F.default.createElement(Xi,{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 $a(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 F.default.createElement("div",{className:h.cx(t.row,n&&t.rowCollapsed)},F.default.createElement("div",{className:t.rowTitleAndActionsGroup},F.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&&F.default.createElement(f.Icon,{name:n?"angle-right":"angle-down"}),F.default.createElement("span",{className:t.rowTitle,role:"heading"},uo.interpolate(e,a,void 0,"text"))),F.default.createElement("span",{className:h.cx(t.panelCount,n&&t.panelCountCollapsed)},"(",c," ",m,")"),o&&F.default.createElement("div",{className:t.rowActions},F.default.createElement(o.Component,{model:o}))),u&&n&&F.default.createElement("div",{className:h.cx(t.dragHandle,l)},F.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=>F.default.createElement(e.Component,{key:e.state.key,model:e}));a&&u.push(F.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 F.default.createElement("div",{className:l.wrapper},F.default.createElement("div",{className:h.cx(l.row,r&&l.rowCollapsed)},F.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&&F.default.createElement(f.Icon,{name:r?"angle-right":"angle-down"}),F.default.createElement("span",{className:s.rowTitle,role:"heading"},uo.interpolate(e,t,void 0,"text"))),F.default.createElement("div",{className:l.actions},u)),!r&&F.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 $a(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 F.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 F.default.createElement(f.ToolbarButton,{onClick:t.onClick,icon:t.icon})};class ps extends J{}ps.Component=({model:e})=>{const t=e.useState();return F.default.createElement("div",{style:{display:"flex"}},t.label&&F.default.createElement(Lr,{label:t.label}),F.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 F.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 _e(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 F.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 xs=e=>`${e}-compare`,Es="__previousPeriod",_s="__noPeriod",Os={label:"Previous period",value:Es},ks={label:"None",value:_s},Rs=[{label:"Day before",value:"24h"},{label:"Week before",value:"1w"},{label:"Month before",value:"1M"}];class Cs extends J{constructor(e){super({compareOptions:Rs,...e}),this._urlSync=new _e(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=Es),this.setState(r)}))},this.getCompareOptions=e=>{const t=Math.ceil(e.to.diff(e.from)),r=Rs.findIndex(({value:e})=>a.rangeUtil.intervalToMs(e)>=t);return[ks,Os,...Rs.slice(r).map(({label:e,value:t})=>({label:e,value:t}))]},this.onCompareWithChanged=e=>{e===_s?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:Ts}),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===Es){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=Re(e.compareWith);if(t){this.getCompareOptions(uo.getTimeRange(this).state.value).find(({value:e})=>e===t)?this.setState({compareWith:t}):this.setState({compareWith:"__previousPeriod"})}}}Cs.Component=function({model:e}){var t;const r=f.useStyles2(As),{compareWith:n,compareOptions:a,hideCheckbox:o}=e.useState(),[i,s]=F.default.useState(n),l=null!=(t=a.find(({value:e})=>e===i))?t:Os,u=a.find(({value:e})=>e===n),c=Boolean(u),p=()=>{c?(s(n),e.onClearCompare()):c||e.onCompareWithChanged(l.value)},h=o&&!n?ks:u,m=o||c,v=o&&h?{...h,label:`Comparison: ${h.label}`}:h;return F.default.createElement(f.ButtonGroup,null,!o&&F.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()}},F.default.createElement(f.Checkbox,{label:" ",value:c,onClick:p}),F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.scene-time-range-compare-renderer.button-label"},"Comparison")),m?F.default.createElement(f.ButtonSelect,{variant:"canvas",value:v,options:a,onChange:t=>{e.onCompareWithChanged(t.value)}}):F.default.createElement(f.ToolbarButton,{className:r.previewButton,disabled:!0,variant:"canvas",isOpen:!1},l.label))};const Ts=(e,t)=>{const r=t.timeRange.from.diff(e.timeRange.from);return t.series.forEach(e=>{e.refId=xs(e.refId||""),e.meta={...e.meta,timeCompare:{diffMs:r,isTimeShiftQuery:!0}}}),s.of(t)};function As(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 F.default.createElement(t.Component,{model:t})};class Is extends J{constructor(e){super(e),this._variableDependency=new $a(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})}}Is.Component=({model:e})=>{const{body:t}=e.useState();return F.default.createElement(t.Component,{model:t})};class Ds extends J{constructor(){super({}),this._renderBeforeActivation=!0}}Ds.Component=e=>F.default.createElement("div",{style:{flexGrow:1}});class Ls extends J{toggleDirection(){this.setState({direction:"row"===this.state.direction?"column":"row"})}isDraggable(){return!1}}Ls.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?js(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 F.default.createElement("div",{className:a},r.map(t=>{const r=t.Component;return F.default.createElement(r,{key:t.state.key,model:t,parentState:e.state})}))};class Ms extends J{}function js(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}Ms.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=js({},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 F.default.createElement("div",{className:a},F.default.createElement(r.Component,{model:r}))};class Ns 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}}Ns.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 F.default.createElement("div",{className:a},t.map(t=>{const r=t.Component;return n?F.default.createElement(Bn,{key:t.state.key,className:a},F.default.createElement(r,{key:t.state.key,model:t,parentState:e.state})):F.default.createElement(r,{key:t.state.key,model:t,parentState:e.state})}))};class Fs extends J{}Fs.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 F.default.createElement("div",{className:a},F.default.createElement(r.Component,{model:r}))};const zs=new Set(["ArrowUp","ArrowDown"]),$s=new Set(["ArrowLeft","ArrowRight"]),Vs={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=F.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=Vs[e].dim,x=Vs[e].axis,E=Vs[e].min,_=Vs[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=Hs(p.current);c.current.ariaValueNow=`${u.clamp((e-r[E])/(r[_]-r[E])*100,0,100)}`}},500,[_,E,e,S]);const O=i.useRef(null),k=i.useCallback(e=>{b.current=p.current.getBoundingClientRect()[S],g.current=v.current.getBoundingClientRect()[S],O.current=e[x],c.current.setPointerCapture(e.pointerId),y.current=Hs(p.current),w.current=void 0},[S,x]),R=i.useCallback(e=>{if(null!==O.current&&"1fr"!==b.current){const r=e[x]-O.current,n=y.current,a=u.clamp(b.current+r,n[E],n[_]),o=a/(g.current-t);p.current.style.flexGrow=`${o}`,m.current.style.flexGrow=""+(1-o);const i=u.clamp((a-n[E])/(n[_]-n[E])*100,0,100);c.current.ariaValueNow=`${i}`}},[t,x,E,_]),C=i.useCallback(e=>{e.preventDefault(),e.stopPropagation(),c.current.releasePointerCapture(e.pointerId),O.current=null,null==o||o(parseFloat(p.current.style.flexGrow))},[o]),T=i.useRef(new Set),A=i.useRef(null),P=i.useCallback(r=>{var n;if(0===T.current.size)return void(A.current=null);if("1fr"===b.current)return;const a=.3*(r-(null!=(n=A.current)?n:r));let o=0;"row"===e?(T.current.has("ArrowLeft")&&(o-=a),T.current.has("ArrowRight")&&(o+=a)):(T.current.has("ArrowUp")&&(o-=a),T.current.has("ArrowDown")&&(o+=a));const i=y.current,s=p.current.getBoundingClientRect()[S],l=u.clamp(s+o,i[E],i[_]),d=l/(g.current-t);p.current.style.flexGrow=`${d}`,m.current.style.flexGrow=""+(1-d);const f=(l-i[E])/(i[_]-i[E])*100;c.current.ariaValueNow=`${u.clamp(f,0,100)}`,A.current=r,window.requestAnimationFrame(P)},[e,t,E,_,S]),I=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=Hs(p.current),g.current=v.current.getBoundingClientRect()[S];const e=y.current[E]/(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=Hs(p.current),g.current=v.current.getBoundingClientRect()[S];const e=y.current[_]/(g.current-t);return p.current.style.flexGrow=`${e}`,m.current.style.flexGrow=""+(1-e),void(c.current.ariaValueNow="100")}if(!("column"===e&&zs.has(r.key)||"row"===e&&$s.has(r.key))||T.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=Hs(p.current);if(!T.current.has(r.key)){const e=0===T.current.size;T.current.add(r.key),e&&window.requestAnimationFrame(P)}},[e,P,t,_,S,E]),D=i.useCallback(t=>{"row"===e&&!$s.has(t.key)||"column"===e&&!zs.has(t.key)||(T.current.delete(t.key),null==o||o(parseFloat(p.current.style.flexGrow)))},[e,o]),L=i.useCallback(()=>{p.current.style.flexGrow="0.5",m.current.style.flexGrow="0.5";const e=Hs(p.current);y.current=e,b.current=p.current.getBoundingClientRect()[S],c.current.ariaValueNow=""+(b.current-e[E])/(e[_]-e[E])*100},[_,S,E]),M=i.useCallback(()=>{T.current.size>0&&(T.current.clear(),O.current=null,null==o||o(parseFloat(p.current.style.flexGrow)))},[o]),j=f.useStyles2(Bs),N=Un(),z=2===l.length?"visible":"hidden";return F.default.createElement("div",{ref:v,className:j.container,style:{flexDirection:e}},F.default.createElement("div",{ref:p,className:j.panel,style:{flexGrow:"auto"===r?.5:u.clamp(r,0,1),[E]:"min-content",...n},id:`start-panel-${N}`},l[0]),l[1]&&F.default.createElement(F.default.Fragment,null,F.default.createElement("div",{ref:c,style:{[S]:`${t}px`},className:h.cx(j.handle,{[j.handleHorizontal]:"column"===e}),onPointerUp:C,onPointerDown:k,onPointerMove:R,onKeyDown:I,onKeyUp:D,onDoubleClick:L,onBlur:M,role:"separator","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":50,"aria-controls":`start-panel-${N}`,"aria-label":d.t("grafana-scenes.components.splitter.aria-label-pane-resize-widget","Pane resize widget"),tabIndex:0}),F.default.createElement("div",{ref:m,className:j.panel,style:{flexGrow:"auto"===r?.5:u.clamp(1-r,0,1),[E]:"min-content",visibility:`${z}`,...a},id:`end-panel-${N}`},l[1])))}function Bs(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 Hs(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 Ws extends J{toggleDirection(){this.setState({direction:"row"===this.state.direction?"column":"row"})}isDraggable(){return!1}}Ws.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 F.default.createElement(Us,{direction:n,initialSize:null!=c?c:.5,primaryPaneStyles:i,secondaryPaneStyles:s},F.default.createElement(l,{key:t.state.key,model:t,parentState:e.state}),u&&r&&F.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 F.default.createElement(F.default.Fragment,null,F.default.createElement(Gs.Provider,{value:e},F.default.createElement(n.Routes,null,t.map(e=>F.default.createElement(n.Route,{key:e.state.url,path:e.state.routePath,element:F.default.createElement(e.Component,{model:e})})))))};const Gs=i.createContext(null),Ks=new Map;class Ys extends J{}function Qs({node:e}){const t=e.useState(),r=f.useStyles2(Xs);return F.default.createElement("div",{className:r.container},Object.keys(t).map(n=>F.default.createElement("div",{className:r.row,key:n},F.default.createElement("div",{className:r.keyName},n),F.default.createElement("div",{className:r.value},function(e,t,r){if(null===t)return"null";switch(typeof t){case"number":return F.default.createElement(f.Input,{type:"number",defaultValue:t,onBlur:t=>r.setState({[e]:t.currentTarget.valueAsNumber})});case"string":return F.default.createElement(f.Input,{type:"text",defaultValue:t,onBlur:t=>r.setState({[e]:t.currentTarget.value})});case"object":return Ot(t)?t.constructor.name:u.isPlainObject(t)||u.isArray(t)?F.default.createElement(f.JSONFormatter,{json:t,open:0}):String(t);default:return typeof t}}(n,t[n],e)))))}function Xs(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(Zs),a=[],o=e===t;return e.forEachChild(e=>{a.push(F.default.createElement(Js,{node:e,key:e.state.key,selectedObject:t,onSelect:r}))}),F.default.createElement("div",{className:n.container},F.default.createElement("div",{className:h.cx(n.name,o&&n.selected),onClick:()=>r(e)},e.constructor.name),F.default.createElement("div",{className:n.children},a))}function Zs(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 F.default.createElement(F.default.Fragment,null,F.default.createElement(f.ToolbarButton,{variant:"canvas",icon:"bug",onClick:()=>n(!0)}),r&&F.default.createElement(f.Drawer,{title:d.t("grafana-scenes.components.scene-debugger.title-scene-debugger","Scene debugger"),onClose:()=>n(!1),size:"lg"},F.default.createElement("div",{className:t.panes},F.default.createElement("div",{className:t.pane1},F.default.createElement("div",{className:t.paneHeading},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.scene-debugger.scene-graph"},"Scene graph")),F.default.createElement(f.CustomScrollbar,{autoHeightMin:"100%"},F.default.createElement("div",{className:t.treeWrapper},F.default.createElement(Js,{node:e,selectedObject:a,onSelect:o})))),F.default.createElement("div",{className:t.pane2},F.default.createElement("div",{className:t.paneHeading},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.scene-debugger.object-details"},"Object details")),a&&F.default.createElement(Qs,{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(Gs),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:V(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:V(t.state.url,f.getSearchObject(),t.state.preserveUrlKeys),parentItem:h})));let m=[];return a.controls&&(m=a.controls.map(e=>F.default.createElement(e.Component,{model:e,key:e.state.key}))),s["scene-debugger"]&&m.push(F.default.createElement(el,{scene:r,key:"scene-debugger"})),F.default.createElement(o.PluginPage,{layout:d,pageNav:h,actions:m,renderTitle:a.renderTitle,subTitle:a.subTitle},F.default.createElement(l.Component,{model:l}))}function nl(e,t,r){if(e instanceof ol)return{text:e.state.title,url:V(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 F.default.createElement(n.Component,{model:n})}Ys.Component=({model:e})=>{const{component:t,props:r,reactNode:n}=e.useState();return t?F.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 kt(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 F.default.createElement(n.Route,{key:"fallback route",path:"*",element:F.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 Bi({body:new Ls({direction:"column",children:[new Ms({body:new Ys({component:()=>F.default.createElement("div",{"data-testid":"default-fallback-content"},F.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(F.default.createElement(n.Route,{key:e.state.routePath,path:"",element:F.default.createElement(o.Component,{model:o})})),a.push(F.default.createElement(n.Route,{key:o.state.url,path:o.state.routePath,element:F.default.createElement(o.Component,{model:o})})),o.state.drilldowns)for(const e of o.state.drilldowns)a.push(F.default.createElement(n.Route,{key:e.routePath,path:e.routePath,element:F.default.createElement(al,{drilldown:e,parent:o})}))}if(r)for(const t of r)a.push(F.default.createElement(n.Route,{key:t.routePath,path:t.routePath,Component:()=>F.default.createElement(al,{drilldown:t,parent:e})}));t||a.push(F.default.createElement(n.Route,{key:"home route",path:"/",element:F.default.createElement(rl,{page:e})}));return F.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(xs(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(()=>x.defaultOptions),bargauge:()=>new ul(()=>E.defaultOptions),datagrid:()=>new ul(()=>_.defaultOptions),flamegraph:()=>new ul,gauge:()=>new ul(()=>O.defaultOptions),geomap:()=>new ul(()=>k.defaultOptions),heatmap:()=>new ul(()=>R.defaultOptions),histogram:()=>new ul(()=>C.defaultOptions),logs:()=>new ul,news:()=>new ul(()=>T.defaultOptions),nodegraph:()=>new ul,piechart:()=>new ul(()=>A.defaultOptions),stat:()=>new ul(()=>P.defaultOptions),statetimeline:()=>new ul(()=>I.defaultOptions),statushistory:()=>new ul(()=>D.defaultOptions),table:()=>new ul(()=>L.defaultOptions),text:()=>new ul(()=>M.defaultOptions),timeseries:()=>new ul,trend:()=>new ul,traces:()=>new ul,xychart:()=>new ul(()=>j.defaultOptions)},fl={barchart:()=>new ll(()=>x.defaultFieldConfig),bargauge:()=>new ll,datagrid:()=>new ll,flamegraph:()=>new ll,gauge:()=>new ll,geomap:()=>new ll,heatmap:()=>new ll,histogram:()=>new ll(()=>C.defaultFieldConfig),logs:()=>new ll,news:()=>new ll,nodegraph:()=>new ll,piechart:()=>new ll,stat:()=>new ll,statetimeline:()=>new ll(()=>I.defaultFieldConfig),statushistory:()=>new ll(()=>D.defaultFieldConfig),table:()=>new ll,text:()=>new ll,timeseries:()=>new ll,trend:()=>new ll,traces:()=>new ll,xychart:()=>new ll(()=>j.defaultFieldConfig)},pl={barchart:()=>new cl("barchart","10.0.0",()=>x.defaultOptions,()=>x.defaultFieldConfig),bargauge:()=>new cl("bargauge","10.0.0",()=>E.defaultOptions),datagrid:()=>new cl("datagrid","10.0.0",()=>_.defaultOptions),flamegraph:()=>new cl("flamegraph","10.0.0"),gauge:()=>new cl("gauge","10.0.0",()=>O.defaultOptions),geomap:()=>new cl("geomap","10.0.0",()=>k.defaultOptions),heatmap:()=>new cl("heatmap","10.0.0",()=>R.defaultOptions),histogram:()=>new cl("histogram","10.0.0",()=>C.defaultOptions,()=>C.defaultFieldConfig),logs:()=>new cl("logs","10.0.0"),news:()=>new cl("news","10.0.0",()=>T.defaultOptions),nodegraph:()=>new cl("nodeGraph","10.0.0"),piechart:()=>new cl("piechart","10.0.0",()=>A.defaultOptions),stat:()=>new cl("stat","10.0.0",()=>P.defaultOptions),statetimeline:()=>new cl("state-timeline","10.0.0",()=>I.defaultOptions,()=>I.defaultFieldConfig),statushistory:()=>new cl("status-history","10.0.0",()=>D.defaultOptions,()=>D.defaultFieldConfig),table:()=>new cl("table","10.0.0",()=>L.defaultOptions),text:()=>new cl("text","10.0.0",()=>M.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",()=>j.defaultOptions,()=>j.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",()=>x.defaultOptions,()=>x.defaultFieldConfig),bargauge:()=>new hl("bargauge","10.0.0",()=>E.defaultOptions),datagrid:()=>new hl("datagrid","10.0.0",()=>_.defaultOptions),flamegraph:()=>new hl("flamegraph","10.0.0"),gauge:()=>new hl("gauge","10.0.0",()=>O.defaultOptions),geomap:()=>new hl("geomap","10.0.0",()=>k.defaultOptions),heatmap:()=>new hl("heatmap","10.0.0",()=>R.defaultOptions),histogram:()=>new hl("histogram","10.0.0",()=>C.defaultOptions,()=>C.defaultFieldConfig),logs:()=>new hl("logs","10.0.0"),news:()=>new hl("news","10.0.0",()=>T.defaultOptions),nodegraph:()=>new hl("nodeGraph","10.0.0"),piechart:()=>new hl("piechart","10.0.0",()=>A.defaultOptions),stat:()=>new hl("stat","10.0.0",()=>P.defaultOptions),statetimeline:()=>new hl("state-timeline","10.0.0",()=>I.defaultOptions,()=>I.defaultFieldConfig),statushistory:()=>new hl("status-history","10.0.0",()=>D.defaultOptions,()=>D.defaultFieldConfig),table:()=>new hl("table","10.0.0",()=>L.defaultOptions),text:()=>new hl("text","10.0.0",()=>M.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",()=>j.defaultOptions,()=>j.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(11566)});case"../locales/de-DE/grafana-scenes.json":return Promise.resolve().then(function(){return r(79849)});case"../locales/en-US/grafana-scenes.json":return Promise.resolve().then(function(){return r(2802)});case"../locales/es-ES/grafana-scenes.json":return Promise.resolve().then(function(){return r(30161)});case"../locales/fr-FR/grafana-scenes.json":return Promise.resolve().then(function(){return r(42874)});case"../locales/hu-HU/grafana-scenes.json":return Promise.resolve().then(function(){return r(78477)});case"../locales/id-ID/grafana-scenes.json":return Promise.resolve().then(function(){return r(4382)});case"../locales/it-IT/grafana-scenes.json":return Promise.resolve().then(function(){return r(25217)});case"../locales/ja-JP/grafana-scenes.json":return Promise.resolve().then(function(){return r(54351)});case"../locales/ko-KR/grafana-scenes.json":return Promise.resolve().then(function(){return r(17625)});case"../locales/nl-NL/grafana-scenes.json":return Promise.resolve().then(function(){return r(67195)});case"../locales/pl-PL/grafana-scenes.json":return Promise.resolve().then(function(){return r(36147)});case"../locales/pt-BR/grafana-scenes.json":return Promise.resolve().then(function(){return r(23956)});case"../locales/pt-PT/grafana-scenes.json":return Promise.resolve().then(function(){return r(919)});case"../locales/ru-RU/grafana-scenes.json":return Promise.resolve().then(function(){return r(47953)});case"../locales/sv-SE/grafana-scenes.json":return Promise.resolve().then(function(){return r(21971)});case"../locales/tr-TR/grafana-scenes.json":return Promise.resolve().then(function(){return r(7871)});case"../locales/zh-Hans/grafana-scenes.json":return Promise.resolve().then(function(){return r(50971)});case"../locales/zh-Hant/grafana-scenes.json":return Promise.resolve().then(function(){return r(45925)});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:V,registerRuntimePanelPlugin:function({pluginId:e,plugin:t}){if(B.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:""}},B.set(e,t)},registerRuntimeDataSource:ae,registerVariableMacro:function(e,t,r=!1){if(!r&&Et.get(e))throw new Error(`Macro already registered ${e}`);return Et.set(e,t),()=>{if(r)throw new Error("Replaced macros can not be unregistered. They need to be restored manually.");Et.delete(e)}},cloneSceneObjectState:te,syncStateFromSearchParams:function(e,t,r){ue(e,t,new ie(r))},getUrlState:le,renderPrometheusLabelFilters:Oa,escapeLabelValueInRegexSelector:Ra,escapeLabelValueInExactSelector:ka,escapeURLDelimiters:function(e){return Pa(Aa(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.H9=_n,t.Zx=Lr,t.yP=yi,t.wT=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.mI=xi,t.P1=Bi,t.OS=ll,t.No=fl,t.WY=pr,t.n8=vt,t.sU=zi,t.d0=pl,t.UU=re,t.Oh=qs,t.jD=ol,t.xK=Fs,t.gF=Ns,t.N0=Ds,t.Zv=xe,t.Es=ha,t.vA=Ms,t.G1=Ls,t.Bs=J,t.So=_e,t.dt=wa,t.dM=Ys,t.WM=ws,t.KE=hs,t.JZ=je,t.Pj=vi,t.oh=Ue,t.$L=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.Sh=$a,t.Lp=di,t.Fn=hl,t.Eb=ma,t.Lw=Wi,t.Gg=mo,t.jh=uo,t.Go=gl,t.TG=function(e){const t=Ks.get(e);if(t)return t;const r=e();return Ks.set(e,r),r}},60745:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Composite:()=>mr,CompositeItem:()=>vr,FloatingArrow:()=>xr,FloatingDelayGroup:()=>zr,FloatingFocusManager:()=>Sn,FloatingList:()=>lr,FloatingNode:()=>Tr,FloatingOverlay:()=>_n,FloatingPortal:()=>fn,FloatingTree:()=>Ar,arrow:()=>$t,autoPlacement:()=>Nt,autoUpdate:()=>ht,computePosition:()=>Ot,detectOverflow:()=>mt,flip:()=>Mt,getOverflowAncestors:()=>T,hide:()=>Ft,inline:()=>zt,inner:()=>ta,limitShift:()=>Lt,offset:()=>It,platform:()=>ft,safePolygon:()=>aa,shift:()=>Dt,size:()=>jt,useClick:()=>Rn,useClientPoint:()=>Tn,useDelayGroup:()=>$r,useDelayGroupContext:()=>Fr,useDismiss:()=>Dn,useFloating:()=>Mn,useFloatingNodeId:()=>Cr,useFloatingParentNodeId:()=>kr,useFloatingPortalNode:()=>dn,useFloatingRootContext:()=>Ln,useFloatingTree:()=>Rr,useFocus:()=>jn,useHover:()=>Mr,useId:()=>Sr,useInnerOffset:()=>ra,useInteractions:()=>$n,useListItem:()=>ur,useListNavigation:()=>qn,useMergeRefs:()=>Vt,useRole:()=>Kn,useTransitionStatus:()=>Xn,useTransitionStyles:()=>Jn,useTypeahead:()=>Zn});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}=O(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=x(),r=u(e)?O(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 x(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const E=new Set(["html","body","#document"]);function _(e){return E.has(o(e))}function O(e){return i(e).getComputedStyle(e)}function k(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(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 C(e){const t=R(e);return _(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&p(t)?t:C(t)}function T(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const a=C(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),s=i(a);if(o){const e=A(s);return t.concat(s,s.visualViewport||[],p(a)?a:[],e&&r?T(e):[])}return t.concat(a,T(a,[],r))}function A(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 I(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 D(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function L(){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 M(e){return!(0!==e.mozInputSource||!e.isTrusted)||(F()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function j(e){return!L().includes("jsdom/")&&(!F()&&0===e.width&&0===e.height||F()&&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 N(){return/apple/i.test(navigator.vendor)}function F(){const e=/android/i;return e.test(D())||e.test(L())}function z(){return D().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function $(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function V(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 B(e){return"composedPath"in e?e.composedPath()[0]:e.target}const H="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function W(e){return c(e)&&e.matches(H)}function q(e){e.preventDefault(),e.stopPropagation()}function G(e){return!!e&&("combobox"===e.getAttribute("role")&&W(e))}const K=["top","right","bottom","left"],Y=["start","end"],Q=K.reduce((e,t)=>e.concat(t,t+"-"+Y[0],t+"-"+Y[1]),[]),X=Math.min,J=Math.max,Z=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,X(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 xe(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 Ee=["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] *)"],_e=Ee.join(","),Oe="undefined"==typeof Element,ke=Oe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Re=!Oe&&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},Ce=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]"):Ce(e.parentNode))},Te=function(e,t,r){if(Ce(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(_e));return t&&ke.call(e,_e)&&n.unshift(e),n=n.filter(r)},Ae=function(e,t,r){for(var n=[],a=Array.from(e);a.length;){var o=a.shift();if(!Ce(o,!1))if("SLOT"===o.tagName){var i=o.assignedElements(),s=i.length?i:o.children,l=Ae(s,!0,r);r.flatten?n.push.apply(n,l):n.push({scopeParent:o,candidates:l})}else{ke.call(o,_e)&&r.filter(o)&&(t||!e.includes(o))&&n.push(o);var u=o.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(o),c=!Ce(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&c){var d=Ae(!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))},Ie=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},De=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Le=function(e){return"INPUT"===e.tagName},Me=function(e){return function(e){return Le(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,r=e.form||Re(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)},je=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},Ne=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=ke.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ke.call(a,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"full-native"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return je(e)}else{if("function"==typeof n){for(var o=e;e;){var i=e.parentElement,s=Re(e);if(i&&!i.shadowRoot&&!0===n(i))return je(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&&Re(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=Re(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},Fe=function(e,t){return!(t.disabled||function(e){return Le(e)&&"hidden"===e.type}(t)||Ne(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!!ke.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1}(t))},ze=function(e,t){return!(Me(t)||Ie(t)<0||!Fe(e,t))},$e=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ve=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=Ie(e);return r<0&&t&&!Pe(e)?0:r}(o,a),s=a?Ve(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(De).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?Ae([e],t.includeContainer,{filter:ze.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:$e}):Te(e,t.includeContainer,ze.bind(null,t)),Ve(r)},Be=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ke.call(e,_e)&&ze(t,e)},He=r(48398);function We(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=xe(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=xe(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 Ge(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 Ye(e){const t=X(...e.map(e=>e.left)),r=X(...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 Qe=new Set(["left","top"]);function Xe(e){const t=O(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=Z(r)!==o||Z(n)!==i;return s&&(r=o,n=i),{width:r,height:n,$:s}}function Je(e){return u(e)?e:e.contextElement}function Ze(e){const t=Je(e);if(!c(t))return te(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=Xe(t);let i=(o?Z(r.width):r.width)/n,s=(o?Z(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 x()&&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=Ze(n)):s=Ze(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=A(r);for(;a&&n&&t!==r;){const e=Ze(a),t=a.getBoundingClientRect(),n=O(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=A(r)}}return xe({width:f,height:p,x:c,y:d})}function nt(e,t){const r=k(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=x();(!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=k(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"===O(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)?Ze(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 xe(n)}function st(e,t){const r=R(e);return!(r===t||!u(r)||_(r))&&("fixed"===O(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=k(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"===O(e).position}function ct(e,t){if(!c(e)||"fixed"===O(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=R(e);for(;t&&!_(t);){if(u(t)&&!ut(t))return t;t=R(t)}return r}let n=ct(e,t);for(;n&&m(n)&&ut(n);)n=ct(n,t);return n&&_(n)&&ut(n)&&!S(n)?r:n||function(e){let t=R(e);for(;c(t)&&!_(t);){if(S(t))return t;if(g(t))return null;t=R(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=k(n)),c(n))){const e=rt(n);f=Ze(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=T(e,[],!1).filter(e=>u(e)&&"body"!==o(e)),a=null;const i="fixed"===O(e).position;let s=i?R(e):e;for(;u(s)&&!_(s);){const t=O(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=R(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=X(n.right,e.right),e.bottom=X(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}=Xe(e);return{width:t,height:r}},getScale:Ze,isElement:u,isRTL:function(e){return"rtl"===O(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?T(c):[],...T(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,X(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=Qe.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=Q,autoAlignment:p=!0,...h}=oe(e,t),m=void 0!==d||f===Q?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}],x=m[g+1];if(x)return{data:{index:g+1,overflows:S},reset:{placement:x}};const E=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]),_=(null==(a=E.filter(e=>e[2].slice(0,se(e[0])?2:3).every(e=>e<=0))[0])?void 0:a[0])||E[0][0];return _!==s?{data:{index:g+1,overflows:S},reset:{placement:_}}:{}}}},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)),x="none"!==h;!f&&x&&S.push(...ye(s,m,h,w));const E=[s,...S],_=await l.detectOverflow(t,v),O=[];let k=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&O.push(_[g]),d){const e=pe(a,i,w);O.push(_[e[0]],_[e[1]])}if(k=[...k,{placement:a,overflows:O}],!O.every(e=>e<=0)){var R,C;const e=((null==(R=o.flip)?void 0:R.index)||0)+1,t=E[e];if(t){if(!("alignment"===d&&b!==de(t))||k.every(e=>de(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:k},reset:{placement:t}}}let r=null==(C=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!r)switch(p){case"bestFit":{var T;const e=null==(T=k.filter(e=>{if(x){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:T[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=X(m-c[v],b),S=X(h-c[g],y),x=!t.middlewareData.shift;let E=w,_=S;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(_=y),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(E=b),x&&!f){const e=J(c.left,0),t=J(c.right,0),r=J(c.top,0),n=J(c.bottom,0);p?_=h-2*(0!==e||0!==t?e+t:J(c.left,c.right)):E=m-2*(0!==r||0!==n?r+n:J(c.top,c.bottom))}await l({...t,availableWidth:_,availableHeight:E});const O=await i.getDimensions(s.floating);return h!==O.width||m!==O.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=Ge(await n.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ke(e)}}}case"escaped":{const e=Ge(await n.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Ke(e)}}}default:return{}}}}},xt=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],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let E=x?x[y]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=s.floating[y]||o.floating[h]);const _=w/2-S/2,O=E/2-m[h]/2-1,k=X(d[g],O),R=X(d[b],O),C=k,T=E-m[h]-R,A=E/2-m[h]/2+_,P=ae(C,A,T),I=!l.arrow&&null!=se(a)&&A!==P&&o.reference[h]/2-(A<C?k:R)-m[h]/2<0,D=I?A<C?A-C:A-T:0;return{[p]:f[p]+D,data:{[p]:P,centerOffset:A-P-D,...I&&{alignmentOffset:D}},reset:I}}}),Et=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=>xe(Ye(e)))}(c),f=xe(Ye(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=X(...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}}:{}}}},_t=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=Qe.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}}}},Ot=(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}=We(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}=We(u,f,l))),r=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:p}})(e,t,{...a,platform:o})};var kt="undefined"!=typeof document?n.useLayoutEffect:function(){};function Rt(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(!Rt(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)&&!Rt(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Ct(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tt(e,t){const r=Ct(e);return Math.round(t*r)/r}function At(e){const t=n.useRef(e);return kt(()=>{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?xt({element:r.current,padding:n}).fn(t):{}:r?xt({element:r,padding:n}).fn(t):{};var a}}),It=(e,t)=>({...vt(e),options:[e,t]}),Dt=(e,t)=>({...bt(e),options:[e,t]}),Lt=(e,t)=>({..._t(e),options:[e,t]}),Mt=(e,t)=>({...yt(e),options:[e,t]}),jt=(e,t)=>({...wt(e),options:[e,t]}),Nt=(e,t)=>({...gt(e),options:[e,t]}),Ft=(e,t)=>({...St(e),options:[e,t]}),zt=(e,t)=>({...Et(e),options:[e,t]}),$t=(e,t)=>({...Pt(e),options:[e,t]});function Vt(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},Bt=Ut.useInsertionEffect||(e=>e());function Ht(e){const t=n.useRef(()=>{0});return Bt(()=>{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 Wt="ArrowUp",qt="ArrowDown",Gt="ArrowLeft",Kt="ArrowRight";function Yt(e,t,r){return Math.floor(e/t)!==r}function Qt(e,t){return t<0||t>=e.current.length}function Xt(e,t){return Zt(e,{disabledIndices:t})}function Jt(e,t){return Zt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Zt(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===Wt){if(d&&q(r),-1===c)f=u;else if(f=Zt(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}Qt(e,f)&&(f=c)}if(r.key===qt&&(d&&q(r),-1===c?f=l:(f=Zt(e,{startingIndex:c,amount:i,disabledIndices:s}),a&&c+i>u&&(f=Zt(e,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),Qt(e,f)&&(f=c)),"both"===n){const t=ee(c/i);r.key===(o?Gt:Kt)&&(d&&q(r),c%i!==i-1?(f=Zt(e,{startingIndex:c,disabledIndices:s}),a&&Yt(f,i,t)&&(f=Zt(e,{startingIndex:c-c%i-1,disabledIndices:s}))):a&&(f=Zt(e,{startingIndex:c-c%i-1,disabledIndices:s})),Yt(f,i,t)&&(f=c)),r.key===(o?Kt:Gt)&&(d&&q(r),c%i!==0?(f=Zt(e,{startingIndex:c,decrement:!0,disabledIndices:s}),a&&Yt(f,i,t)&&(f=Zt(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):a&&(f=Zt(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),Yt(f,i,t)&&(f=c));const n=ee(u/i)===t;Qt(e,f)&&(f=a&&n?r.key===(o?Kt:Gt)?u:Zt(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=[Gt,Kt],pr=[Wt,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=Ht(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 x={...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=Xt(b,l),n=Jt(b,l),u=i?Gt:Kt,c=i?Kt:Gt;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:[Wt],both:[c,Wt]}[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:Zt(b,{startingIndex:t,decrement:h.includes(e.key),disabledIndices:l})),t===v||Qt(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,x)))}),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=Vt([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 xr=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"===O(a).direction&&y(!0)},[a]),!a)return null;const[w,S]=r.split("-"),x="top"===w||"bottom"===w;let E=d;(x&&null!=i&&i.x||!x&&null!=i&&i.y)&&(E=null);const _=2*c,k=_/2,R=s/2*(u/-8+1),C=l/2*u/4,T=!!p,A=E&&"end"===S?"bottom":"top";let P=E&&"end"===S?"right":"left";E&&b&&(P="end"===S?"left":"right");const I=null!=(null==o?void 0:o.x)?E||o.x:"",D=null!=(null==o?void 0:o.y)?E||o.y:"",L=p||"M0,0 H"+s+" L"+(s-R)+","+(l-C)+" Q"+s/2+","+l+" "+R+","+(l-C)+" Z",M={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[w];return n.createElement("svg",gr({},v,{"aria-hidden":!0,ref:t,width:T?s:s+_,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:I,[A]:D,[w]:x||T?"100%":"calc(100% - "+_/2+"px)",transform:[M,h].filter(e=>!!e).join(" "),...m}}),_>0&&n.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:f,strokeWidth:_+(p?0:1),d:L}),n.createElement("path",{stroke:_&&!p?v.fill:"none",d:L}),n.createElement("clipPath",{id:g},n.createElement("rect",{x:-k,y:k*(T?-1:1),width:s+_,height:s})))});function Er(){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 _r=n.createContext(null),Or=n.createContext(null),kr=()=>{var e;return(null==(e=n.useContext(_r))?void 0:e.id)||null},Rr=()=>n.useContext(Or);function Cr(e){const t=Sr(),r=Rr(),n=kr(),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 Tr(e){const{children:t,id:r}=e,a=kr();return n.createElement(_r.Provider,{value:n.useMemo(()=>({id:r,parentId:a}),[r,a])},t)}function Ar(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(()=>Er())[0];return n.createElement(Or.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 Ir(e){const t=(0,n.useRef)(e);return or(()=>{t.current=e}),t}const Dr=Pr("safe-polygon");function Lr(e,t,r){return r&&!$(r)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Mr(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=Rr(),v=kr(),g=Ir(d),b=Ir(c),y=Ir(r),w=n.useRef(),S=n.useRef(-1),x=n.useRef(),E=n.useRef(-1),_=n.useRef(!0),O=n.useRef(!1),k=n.useRef(()=>{}),R=n.useRef(!1),C=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(E.current),_.current=!0,R.current=!1)}},[l,i]),n.useEffect(()=>{if(!l)return;if(!g.current)return;if(!r)return;function e(e){C()&&a(!1,e,"hover")}const t=V(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,r,a,l,g,C]);const T=n.useCallback(function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r="hover");const n=Lr(b.current,"close",w.current);n&&!x.current?(clearTimeout(S.current),S.current=window.setTimeout(()=>a(!1,e,r),n)):t&&(clearTimeout(S.current),a(!1,e,r))},[b,a]),A=Ht(()=>{k.current(),x.current=void 0}),P=Ht(()=>{if(O.current){const e=V(s.floating).body;e.style.pointerEvents="",e.removeAttribute(Dr),O.current=!1}}),D=Ht(()=>!!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),_.current=!1,f&&!$(w.current)||p>0&&!Lr(b.current,"open"))return;const t=Lr(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(D())return;k.current();const t=V(s.floating);if(clearTimeout(E.current),R.current=!1,g.current&&o.current.floatingContext){r||clearTimeout(S.current),x.current=g.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){P(),A(),D()||T(e,!0,"safe-polygon")}});const n=x.current;return t.addEventListener("mousemove",n),void(k.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==w.current||!I(s.floating,e.relatedTarget))&&T(e)}function i(e){D()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){P(),A(),D()||T(e)}})(e))}},[s,l,e,f,p,h,T,A,P,a,r,y,m,b,g,o,D]),or(()=>{var e;if(l&&r&&null!=(e=g.current)&&e.__options.blockPointerEvents&&C()){O.current=!0;const e=s.floating;if(u(s.domReference)&&e){var t;const r=V(s.floating).body;r.setAttribute(Dr,"");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,C]),or(()=>{r||(w.current=void 0,R.current=!1,A(),P())},[r,A,P]),n.useEffect(()=>()=>{A(),clearTimeout(S.current),clearTimeout(E.current),P()},[l,s.domReference,A,P]);const L=n.useMemo(()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function n(){_.current||y.current||a(!0,t,"hover")}f&&!$(w.current)||r||0===p||R.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(E.current),"touch"===w.current?n():(R.current=!0,E.current=window.setTimeout(n,p)))}}},[f,a,r,y,p]),M=n.useMemo(()=>({onMouseEnter(){clearTimeout(S.current)},onMouseLeave(e){D()||T(e.nativeEvent,!1)}}),[T,D]);return n.useMemo(()=>l?{reference:L,floating:M}:{},[l,L,M])}const jr=()=>{},Nr=n.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:jr,setState:jr,isInstantPhase:!1}),Fr=()=>n.useContext(Nr);function zr(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(Nr.Provider,{value:n.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,l])},t)}function $r(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=Fr(),{currentId:u,setCurrentId:c,initialDelay:d,setState:f,timeoutMs:p}=l;return or(()=>{i&&u&&(f({delay:{open:1,close:Lr(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!==jr&&r&&c(s)},[i,r,c,s]),l}let Vr=0;function Ur(e,t){void 0===t&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:a=!1}=t;n&&cancelAnimationFrame(Vr);const o=()=>null==e?void 0:e.focus({preventScroll:r});a?o():Vr=requestAnimationFrame(o)}function Br(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 Hr=new WeakMap,Wr=new WeakSet,qr={},Gr=0;const Kr=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,Yr=e=>e&&(e.host||Yr(e.parentNode)),Qr=(e,t)=>t.map(t=>{if(e.contains(t))return t;const r=Yr(t);return e.contains(r)?r:null}).filter(e=>null!=e);function Xr(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=V(e[0]).body;return function(e,t,r,n){const a="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=Qr(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=(Hr.get(t)||0)+1,o=(d.get(t)||0)+1;Hr.set(t,n),d.set(t,o),c.push(t),1===n&&r&&Wr.add(t),1===o&&t.setAttribute(a,""),!r&&i&&t.setAttribute(i,"true")}})}(t),l.clear(),Gr++,()=>{c.forEach(e=>{const t=(Hr.get(e)||0)-1,r=(d.get(e)||0)-1;Hr.set(e,t),d.set(e,r),t||(!Wr.has(e)&&i&&e.removeAttribute(i),Wr.delete(e)),r||e.removeAttribute(a)}),Gr--,Gr||(Hr=new WeakMap,Hr=new WeakMap,Wr=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 Zr(e,t){const r=Ue(e,Jr());"prev"===t&&r.reverse();const n=r.indexOf(P(V(e)));return r.slice(n+1)[0]}function en(){return Zr(document.body,"next")}function tn(){return Zr(document.body,"prev")}function rn(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!I(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(undefined))}const ln=n.forwardRef(function(e,t){const[r,a]=n.useState();or(()=>(N()&&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&&He.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(!Be(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:x}}=t,E="number"==typeof s&&s<0,_=G(S)&&E,O=!Kr()||i,k=Ir(o),R=Ir(s),C=Ir(l),T=Rr(),A=pn(),D=n.useRef(null),L=n.useRef(null),N=n.useRef(!1),F=n.useRef(!1),z=n.useRef(-1),$=null!=A,U=mn(x),H=Ht(function(e){return void 0===e&&(e=U),e?Ue(e,Jr()):[]}),W=Ht(e=>{const t=H(e);return k.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?D:L,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){I(U,P(V(U)))&&0===H().length&&!_&&q(e);const t=W(),r=B(e);"reference"===k.current[0]&&r===S&&(q(e),e.shiftKey?Ur(t[t.length-1]):Ur(t[1])),"floating"===k.current[1]&&r===U&&e.shiftKey&&(q(e),Ur(t[0]))}}const t=V(U);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[a,S,U,d,k,_,H,W]),n.useEffect(()=>{if(!a&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=B(e),r=H().indexOf(t);-1!==r&&(z.current=r)}},[a,x,H]),n.useEffect(()=>{if(!a&&p)return x&&c(S)?(S.addEventListener("focusout",t),S.addEventListener("pointerdown",e),x.addEventListener("focusout",t),()=>{S.removeEventListener("focusout",t),S.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t)}):void 0;function e(){F.current=!0,setTimeout(()=>{F.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const r=!(I(S,t)||I(x,t)||I(t,x)||I(null==A?void 0:A.portalNode,t)||null!=t&&t.hasAttribute(Pr("focus-guard"))||T&&(Br(T.nodesRef.current,v).find(e=>{var r,n;return I(null==(r=e.context)?void 0:r.elements.floating,t)||I(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}(T.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(V(U))===V(U).body){c(U)&&U.focus();const e=z.current,t=H(),r=t[e]||t[t.length-1]||U;c(r)&&r.focus()}!_&&d||!t||!r||F.current||t===yn()||(N.current=!0,g(!1,e,"focus-out"))})}},[a,S,x,U,d,v,T,A,g,p,u,H,_]),n.useEffect(()=>{var e;if(a)return;const t=Array.from((null==A||null==(e=A.portalNode)?void 0:e.querySelectorAll("["+Pr("portal")+"]"))||[]);if(x){const e=[x,...t,D.current,L.current,k.current.includes("reference")||_?S:null].filter(e=>null!=e),r=d||_?Xr(e,O,!O):Xr(e);return()=>{r()}}},[a,S,x,d,k,A,_,O]),or(()=>{if(a||!c(U))return;const e=P(V(U));queueMicrotask(()=>{const t=W(U),r=R.current,n=("number"==typeof r?t[r]:r.current)||U,a=I(U,e);E||a||!h||Ur(n,{preventScroll:n===U})})},[a,h,U,E,W,R]),or(()=>{if(a||!U)return;let e=!1;const t=V(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&&(N.current=!0),"outside-press"===a&&(i?(N.current=!1,e=!0):N.current=!(M(o)||j(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),$&&S&&S.insertAdjacentElement("afterend",i),()=>{b.off("openchange",o);const r=P(t),a=I(x,r)||T&&Br(T.nodesRef.current,v).some(e=>{var t;return I(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 C.current?yn()||i:C.current.current||i;queueMicrotask(()=>{C.current&&!N.current&&c(s)&&(s===r||r===t.body||a)&&s.focus({preventScroll:e}),i.remove()})}},[a,x,U,C,y,m,b,T,v,$,S]),n.useEffect(()=>{queueMicrotask(()=>{N.current=!1})},[a]),or(()=>{if(!a&&A)return A.setFocusManagerState({modal:d,closeOnFocusOut:p,open:h,onOpenChange:g,refs:m}),()=>{A.setFocusManagerState(null)}},[a,A,d,h,g,m,p]),or(()=>{if(a)return;if(!U)return;if("function"!=typeof MutationObserver)return;if(E)return;const e=()=>{const e=U.getAttribute("tabindex"),t=H(),r=P(V(x)),n=t.indexOf(r);-1!==n&&(z.current=n),k.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,x,U,m,k,H,E]);const Y=!a&&O&&(!d||!_)&&($||d);return n.createElement(n.Fragment,null,Y&&n.createElement(ln,{"data-type":"inside",ref:null==A?void 0:A.beforeInsideRef,onFocus:e=>{if(d){const e=W();Ur("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(N.current=!1,rn(e,A.portalNode)){const e=en()||S;null==e||e.focus()}else{var t;null==(t=A.beforeOutsideRef.current)||t.focus()}}}),!_&&K("start"),r,K("end"),Y&&n.createElement(ln,{"data-type":"inside",ref:null==A?void 0:A.afterInsideRef,onFocus:e=>{if(d)Ur(W()[0]);else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(p&&(N.current=!0),rn(e,A.portalNode)){const e=tn()||S;null==e||e.focus()}else{var t;null==(t=A.afterOutsideRef.current)||t.focus()}}}))}let xn=0;let En=()=>{};const _n=n.forwardRef(function(e,t){const{lockScroll:r=!1,...a}=e;return or(()=>{if(r)return xn++,1===xn&&(En=function(){const e=/iP(hone|ad|od)|iOS/.test(D()),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))}}()),()=>{xn--,0===xn&&En()}},[r]),n.createElement("div",gr({ref:t},a,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}}))});function On(e){return c(e.target)&&"BUTTON"===e.target.tagName}function kn(e){return W(e)}function Rn(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&&($(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:$(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||On(e)||(" "!==e.key||kn(i)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&a(!r||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||On(e)||kn(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 Cn(e){return null!=e&&null!=e.clientX}function Tn(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=Ht((e,t)=>{p.current||a.current.openEvent&&!Cn(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=Ht(e=>{null==d&&null==f&&(r?h.current||b([]):y(e.clientX,e.clientY))}),S=$(m)?o:r,x=n.useCallback(()=>{if(!S||!u||null!=d||null!=f)return;const e=i(o);function t(r){const n=B(r);I(o,n)?(e.removeEventListener("mousemove",t),h.current=null):y(r.clientX,r.clientY)}if(!a.current.openEvent||Cn(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(()=>x(),[x,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 E=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:E}:{},[u,E])}const An={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Pn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},In=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 Dn(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=Rr(),y=Ht("function"==typeof d?d:()=>!1),w="function"==typeof d?y:d,S=n.useRef(!1),E=n.useRef(!1),{escapeKey:k,outsidePress:C}=In(v),{escapeKey:A,outsidePress:P}=In(g),D=n.useRef(!1),L=Ht(e=>{var t;if(!r||!s||!l||"Escape"!==e.key)return;if(D.current)return;const n=null==(t=i.current.floatingContext)?void 0:t.nodeId,o=b?Br(b.nodesRef.current,n):[];if(!k&&(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")}),M=Ht(e=>{var t;const r=()=>{var t;L(e),null==(t=B(e))||t.removeEventListener("keydown",r)};null==(t=B(e))||t.addEventListener("keydown",r)}),j=Ht(e=>{var t;const r=S.current;S.current=!1;const n=E.current;if(E.current=!1,"click"===f&&n)return;if(r)return;if("function"==typeof w&&!w(e))return;const s=B(e),l="["+Pr("inert")+"]",d=V(o.floating).querySelectorAll(l);let p=u(s)?s:null;for(;p&&!_(p);){const e=R(p);if(_(e)||!u(e))break;p=e}if(d.length&&u(s)&&!s.matches("html,body")&&!I(s,o.floating)&&Array.from(d).every(e=>!I(p,e)))return;if(c(s)&&z){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"===O(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&&Br(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?Br(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")}),N=Ht(e=>{var t;const r=()=>{var t;j(e),null==(t=B(e))||t.removeEventListener(f,r)};null==(t=B(e))||t.addEventListener(f,r)});n.useEffect(()=>{if(!r||!s)return;i.current.__escapeKeyBubbles=k,i.current.__outsidePressBubbles=C;let e=-1;function t(e){a(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),D.current=!0}function c(){e=window.setTimeout(()=>{D.current=!1},x()?5:0)}const d=V(o.floating);l&&(d.addEventListener("keydown",A?M:L,A),d.addEventListener("compositionstart",n),d.addEventListener("compositionend",c)),w&&d.addEventListener(f,P?N:j,P);let p=[];return m&&(u(o.domReference)&&(p=T(o.domReference)),u(o.floating)&&(p=p.concat(T(o.floating))),!u(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(T(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",A?M:L,A),d.removeEventListener("compositionstart",n),d.removeEventListener("compositionend",c)),w&&d.removeEventListener(f,P?N:j,P),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,l,w,f,r,a,m,s,k,C,L,A,M,j,P,N]),n.useEffect(()=>{S.current=!1},[w,f]);const F=n.useMemo(()=>({onKeyDown:L,[An[h]]:e=>{p&&a(!1,e.nativeEvent,"reference-press")}}),[L,a,p,h]),z=n.useMemo(()=>({onKeyDown:L,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[Pn[f]]:()=>{S.current=!0}}),[L,f]);return n.useMemo(()=>s?{reference:F,floating:z}:{},[s,F,z])}function Ln(e){const{open:t=!1,onOpenChange:r,elements:a}=e,o=Sr(),i=n.useRef({}),[s]=n.useState(()=>Er()),l=null!=kr();const[u,c]=n.useState(a.reference),d=Ht((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 Mn(e){void 0===e&&(e={});const{nodeId:t}=e,r=Ln({...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=Rr();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);Rt(p,a)||h(a);const[m,v]=n.useState(null),[g,b]=n.useState(null),y=n.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),w=n.useCallback(e=>{e!==_.current&&(_.current=e,b(e))},[]),S=i||m,x=s||g,E=n.useRef(null),_=n.useRef(null),O=n.useRef(d),k=null!=u,R=At(u),C=At(o),T=At(c),A=n.useCallback(()=>{if(!E.current||!_.current)return;const e={placement:t,strategy:r,middleware:p};C.current&&(e.platform=C.current),Ot(E.current,_.current,e).then(e=>{const t={...e,isPositioned:!1!==T.current};P.current&&!Rt(O.current,t)&&(O.current=t,He.flushSync(()=>{f(t)}))})},[p,t,r,C,T]);kt(()=>{!1===c&&O.current.isPositioned&&(O.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);const P=n.useRef(!1);kt(()=>(P.current=!0,()=>{P.current=!1}),[]),kt(()=>{if(S&&(E.current=S),x&&(_.current=x),S&&x){if(R.current)return R.current(S,x,A);A()}},[S,x,A,R,k]);const I=n.useMemo(()=>({reference:E,floating:_,setReference:y,setFloating:w}),[y,w]),D=n.useMemo(()=>({reference:S,floating:x}),[S,x]),L=n.useMemo(()=>{const e={position:r,left:0,top:0};if(!D.floating)return e;const t=Tt(D.floating,d.x),n=Tt(D.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Ct(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,D.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:A,refs:I,elements:D,floatingStyles:L}),[d,A,I,D,L])}({...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 jn(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(V(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){j(e.nativeEvent)||(m.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=B(e.nativeEvent);if(f&&u(t))try{if(N()&&z())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!W(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)&&(I(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,o)||I(l.domReference,o)||n||a(!1,r,"focus"))})}}),[s,l.domReference,a,f]);return n.useMemo(()=>d?{reference:v}:{},[d,v])}const Nn="active",Fn="selected";function zn(e,t,r){const n=new Map,a="item"===r;let o=e;if(a&&e){const{[Nn]:t,[Fn]: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&&[Nn,Fn].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 $n(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=>zn(t,e,"reference"),t),i=n.useCallback(t=>zn(t,e,"floating"),r),s=n.useCallback(t=>zn(t,e,"item"),a);return n.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}let Vn=!1;function Un(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function Bn(e,t){return Un(t,e===Wt||e===qt,e===Gt||e===Kt)}function Hn(e,t,r){return Un(t,e===qt,r?e===Gt:e===Kt)||"Enter"===e||" "===e||""===e}function Wn(e,t,r){return Un(t,r?e===Kt:e===Gt,e===Wt)}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:x=1,scrollItemIntoView:E=!0,virtualItemRef:_,itemSizes:O,dense:k=!1}=t;const R=Ir(mn(o.floating)),C=kr(),T=Rr(),A=Ht(l),D=G(o.domReference),L=n.useRef(g),F=n.useRef(null!=d?d:-1),$=n.useRef(null),U=n.useRef(!0),B=n.useRef(A),H=n.useRef(!!o.floating),W=n.useRef(r),K=n.useRef(!1),Y=n.useRef(!1),Q=Ir(w),X=Ir(r),J=Ir(E),Z=Ir(d),[ee,te]=n.useState(),[re,ne]=n.useState(),ae=Ht(function(e,t,r){function n(e){v?(te(e.id),null==T||T.events.emit("virtualfocus",e),_&&(_.current=e)):Ur(e,{preventScroll:!0,sync:!(!z()||!N())&&(Vn||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 Vn=!0,!1}})},[]),or(()=>{u&&(r&&o.floating?L.current&&null!=d&&(Y.current=!0,F.current=d,A(d)):H.current&&(F.current=-1,B.current(null)))},[u,r,o.floating,d,A]),or(()=>{if(u&&r&&o.floating)if(null==s){if(K.current=!1,null!=Z.current)return;if(H.current&&(F.current=-1,ae(i,F)),(!W.current||!H.current)&&L.current&&(null!=$.current||!0===L.current&&null==$.current)){let e=0;const t=()=>{if(null==i.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else F.current=null==$.current||Hn($.current,S,m)||h?Xt(i,Q.current):Jt(i,Q.current),$.current=null,A(F.current)};t()}}else Qt(i,s)||(F.current=s,ae(i,F,Y.current),Y.current=!1)},[u,r,o.floating,s,Z,h,i,S,m,A,ae,Q]),or(()=>{var e;if(!u||o.floating||!T||v||!H.current)return;const t=T.nodesRef.current,r=null==(e=t.find(e=>e.id===C))||null==(e=e.context)?void 0:e.elements.floating,n=P(V(o.floating)),a=t.some(e=>e.context&&I(e.context.elements.floating,n));r&&!a&&U.current&&r.focus({preventScroll:!0})},[u,o.floating,T,C,v]),or(()=>{if(u&&T&&v&&!C)return T.events.on("virtualfocus",e),()=>{T.events.off("virtualfocus",e)};function e(e){ne(e.id),_&&(_.current=e)}},[u,T,v,C,_]),or(()=>{B.current=A,H.current=!!o.floating}),or(()=>{r||($.current=null)},[r]),or(()=>{W.current=r},[r]);const oe=null!=s,ie=n.useMemo(()=>{function e(e){if(!r)return;const t=i.current.indexOf(e);-1!==t&&A(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&&(F.current=-1,ae(i,F),A(null),v||Ur(R.current,{preventScroll:!0}))}}}},[r,R,ae,b,i,A,v]),se=Ht(e=>{if(U.current=!1,K.current=!0,229===e.which)return;if(!X.current&&e.currentTarget===R.current)return;if(h&&Wn(e.key,S,m))return q(e),a(!1,e.nativeEvent,"list-navigation"),void(c(o.domReference)&&(v?null==T||T.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=F.current,n=Xt(i,w),s=Jt(i,w);if(D||("Home"===e.key&&(q(e),F.current=n,A(F.current)),"End"===e.key&&(q(e),F.current=s,A(F.current))),x>1){const t=O||Array.from({length:i.current.length},()=>({width:1,height:1})),r=tr(t,x,k),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:x,disabledIndices:nr([...w||i.current.map((e,t)=>ar(i.current,t)?t:void 0),void 0],r),minIndex:a,maxIndex:o,prevIndex:rr(F.current>s?n:F.current,t,r,x,e.key===qt?"bl":e.key===(m?Gt:Kt)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(F.current=l,A(F.current)),"both"===S)return}if(Bn(e.key,S)){if(q(e),r&&!v&&P(e.currentTarget.ownerDocument)===e.currentTarget)return F.current=Hn(e.key,S,m)?n:s,void A(F.current);Hn(e.key,S,m)?F.current=p?t>=s?f&&t!==i.current.length?-1:n:Zt(i,{startingIndex:t,disabledIndices:w}):Math.min(s,Zt(i,{startingIndex:t,disabledIndices:w})):F.current=p?t<=n?f&&-1!==t?i.current.length:s:Zt(i,{startingIndex:t,decrement:!0,disabledIndices:w}):Math.max(n,Zt(i,{startingIndex:t,decrement:!0,disabledIndices:w})),Qt(i,F.current)?A(null):A(F.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,...!G(o.domReference)&&le,onKeyDown:se,onPointerMove(){U.current=!0}}),[le,se,o.domReference,S]),ce=n.useMemo(()=>{function e(e){"auto"===g&&M(e.nativeEvent)&&(L.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===Gt:e===Kt,e===qt)}(e.key,S,m),l=Wn(e.key,S,m),u=Bn(e.key,S),c=(h?s:u)||"Enter"===e.key||""===e.key.trim();if(v&&r){const t=null==T?void 0:T.nodesRef.current.find(e=>null==e.parentId),r=T&&t?function(e,t){let r,n=-1;return function t(a,o){o>n&&(r=a,n=o),Br(e,a).forEach(e=>{t(e.id,o+1)})}(t,0),e.find(e=>e.id===r)}(T.nodesRef.current,t.id):null;if(o&&r&&_){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&&($.current=h&&u?null:e.key),h?s&&(q(e),r?(F.current=Xt(i,Q.current),A(F.current)):a(!0,e.nativeEvent,"list-navigation")):u&&(null!=d&&(F.current=d),q(e),!r&&y?a(!0,e.nativeEvent,"list-navigation"):se(e),r&&A(F.current)))},onFocus(){r&&!v&&A(null)},onPointerDown:function(e){L.current=g,"auto"===g&&j(e.nativeEvent)&&(L.current=!0)},onMouseDown:e,onClick:e}},[ee,le,se,Q,g,i,h,A,a,r,y,S,m,d,T,v,_]);return n.useMemo(()=>u?{reference:ce,floating:ue,item:ie}:{},[u,ce,ue,ie])}const Gn=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=Gn.get(s))?r:s,u=Sr(),c=null!=kr(),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 Yn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Qn(e,t){return"function"==typeof e?e(t):e}function Xn(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(()=>({...Qn(i,c),...Qn(r,c)})),{isMounted:v,status:g}=Xn(e,{duration:s}),b=Ir(r),y=Ir(a),w=Ir(o),S=Ir(i);return or(()=>{const e=Qn(b.current,c),t=Qn(w.current,c),r=Qn(S.current,c),n=Qn(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(Yn).join(","),transitionDuration:f+"ms",...r,...n}),"close"===g){const n=t||e;m({transitionProperty:Object.keys(n).map(Yn).join(","),transitionDuration:p+"ms",...r,...n})}},[p,w,b,y,S,f,g,c]),{isMounted:v,styles:h}}function Zn(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=Ht(l),w=Ht(u),S=Ir(d),x=Ir(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 E=Ht(e=>{e?o.current.typing||(o.current.typing=e,w(e)):o.current.typing&&(o.current.typing=e,w(e))}),_=Ht(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)?E(!1):" "===e.key&&q(e)),null==r||x.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;a&&" "!==e.key&&(q(e),E(!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,E(!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="",E(!1))}),O=n.useMemo(()=>({onKeyDown:_}),[_]),k=n.useMemo(()=>({onKeyDown:_,onKeyUp(e){" "===e.key&&E(!1)}}),[_,E]);return n.useMemo(()=>c?{reference:O,floating:k}:{},[c,O,k])}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 It(-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"}),x=J(0,w.top),E=y.y+x,_=(h.scrollHeight>h.clientHeight?e=>e:Z)(J(0,h.scrollHeight+(v&&b||g?2*m:0)-x-J(0,w.bottom)));if(h.style.maxHeight=_+"px",h.scrollTop=x,a){const e=h.offsetHeight<p.offsetHeight*X(s,r.current.length)-1||S.top>=-l||S.bottom>=-l;He.flushSync(()=>a(e))}return n&&(n.current=await mt(ea({...y,y:E},h.offsetHeight+m+f.clientTop),c)),{y:E}}});function ra(e,t){const{open:r,elements:a}=e,{enabled:o=!0,overflowRef:i,scrollRef:s,onChange:l}=t,u=Ht(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(),He.flushSync(()=>{u(e=>e+Math[l](r,o*s))})):/firefox/i.test(L())&&(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)&&He.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=B(e),S="mouseleave"===e.type,x=I(f.floating,w),E=I(f.domReference,w),_=f.domReference.getBoundingClientRect(),O=f.floating.getBoundingClientRect(),k=d.split("-")[0],R=r>O.right-O.width/2,C=c>O.bottom-O.height/2,T=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,_),A=O.width>_.width,P=O.height>_.height,D=(A?_:O).left,L=(A?_:O).right,M=(P?_:O).top,j=(P?_:O).bottom;if(x&&(o=!0,!S))return;if(E&&(o=!1),E&&!S)return void(o=!0);if(S&&u(e.relatedTarget)&&I(f.floating,e.relatedTarget))return;if(m&&Br(m.nodesRef.current,h).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===k&&c>=_.bottom-1||"bottom"===k&&c<=_.top+1||"left"===k&&r>=_.right-1||"right"===k&&r<=_.left+1)return v();let N=[];switch(k){case"top":N=[[D,_.top+1],[D,O.bottom-1],[L,O.bottom-1],[L,_.top+1]];break;case"bottom":N=[[D,O.top+1],[D,_.bottom-1],[L,_.bottom-1],[L,O.top+1]];break;case"left":N=[[O.right-1,j],[O.right-1,M],[_.left+1,M],[_.left+1,j]];break;case"right":N=[[_.right-1,j],[_.right-1,M],[O.left+1,M],[O.left+1,j]]}if(!na([g,b],N)){if(o&&!T)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(k){case"top":return[[A?r+t/2:R?r+4*t:r-4*t,n+t+1],[A?r-t/2:R?r+4*t:r-4*t,n+t+1],...[[O.left,R||A?O.bottom-t:O.top],[O.right,R?A?O.bottom-t:O.top:O.bottom-t]]];case"bottom":return[[A?r+t/2:R?r+4*t:r-4*t,n-t],[A?r-t/2:R?r+4*t:r-4*t,n-t],...[[O.left,R||A?O.top+t:O.bottom],[O.right,R?A?O.top+t:O.bottom:O.top+t]]];case"left":{const e=[r+t+1,P?n+t/2:C?n+4*t:n-4*t],a=[r+t+1,P?n-t/2:C?n+4*t:n-4*t];return[...[[C||P?O.right-t:O.left,O.top],[C?P?O.right-t:O.left:O.right-t,O.bottom]],e,a]}case"right":return[[r-t,P?n+t/2:C?n+4*t:n-4*t],[r-t,P?n-t/2:C?n+4*t:n-4*t],...[[C||P?O.left+t:O.right,O.top],[C?P?O.left+t:O.right:O.left+t,O.bottom]]]}}([r,c]))?!o&&n&&(a=window.setTimeout(v,40)):v()}}};return c.__options={blockPointerEvents:r},c}},97203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(24053).__importDefault(r(30758));t.default=function(e){return!e.prototype?n.default(e):e}},75722:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.divWrapper=void 0;var n=r(24053),a=n.__importStar(r(85959)),o=n.__importDefault(r(97203)),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}},77809:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(24053).__importDefault(r(1902)),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)))}}},8880:(e,t,r)=>{"use strict";var n=r(24053);n.__importDefault(r(1902)).default,n.__importDefault(r(75722)).default,n.__importDefault(r(77809)).default},1902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(24053),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}},30758:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(24053),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}},79171:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createBreakpoint:()=>Ie,createGlobalState:()=>yr,createMemo:()=>a,createReducer:()=>l,createReducerContext:()=>o,createStateContext:()=>u,ensuredForwardRef:()=>le,useAsync:()=>p,useAsyncFn:()=>f,useAsyncRetry:()=>h,useAudio:()=>b,useBattery:()=>R,useBeforeUnload:()=>C,useBoolean:()=>P,useClickAway:()=>D,useCookie:()=>j,useCopyToClipboard:()=>z,useCounter:()=>H,useCss:()=>J,useCustomCompareEffect:()=>Z,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:()=>B,useGetSetState:()=>ye,useHarmonicIntervalFn:()=>xe,useHash:()=>wr,useHover:()=>_e,useHoverDirty:()=>Oe,useIdle:()=>Ce,useIntersection:()=>Te,useInterval:()=>Ae,useIsomorphicLayoutEffect:()=>Y,useKey:()=>Pe,useKeyPress:()=>De,useKeyPressEvent:()=>Le,useLatest:()=>Me,useLifecycles:()=>je,useList:()=>Ne,useLocalStorage:()=>Fe,useLocation:()=>Ue,useLockBodyScroll:()=>Ye,useLogger:()=>Qe,useLongPress:()=>Je,useMap:()=>Ze,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:()=>xt,usePinchZoom:()=>vr,usePrevious:()=>Et,usePreviousDistinct:()=>Ot,usePromise:()=>kt,useQueue:()=>Rt,useRaf:()=>Ct,useRafLoop:()=>Tt,useRafState:()=>lt,useRendersCount:()=>gr,useScratch:()=>Dt,useScroll:()=>Lt,useScrollbarWidth:()=>ur,useScrolling:()=>Mt,useSearchParam:()=>Pt,useSessionStorage:()=>jt,useSet:()=>br,useSetState:()=>m,useShallowCompareEffect:()=>zt,useSize:()=>Bt,useSlider:()=>Ht,useSpeech:()=>qt,useStartTyping:()=>Gt,useStateList:()=>Yt,useStateValidator:()=>sr,useStateWithHistory:()=>Kt,useThrottle:()=>Qt,useThrottleFn:()=>Xt,useTimeout:()=>Jt,useTimeoutFn:()=>ee,useTitle:()=>er,useToggle:()=>A,useTween:()=>rr,useUnmount:()=>st,useUnmountPromise:()=>nr,useUpdate:()=>V,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(24053);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,x={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&&x.play())},[a.src]),[r,i,x,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 x="undefined"!=typeof window,E="undefined"!=typeof navigator,_=r(92194);const O=r.n(_)();var k=E?navigator:void 0;const R=k&&"function"==typeof k.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};!O(t,a)&&r(a)}};return k.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 C=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 T=function(e,t){return"boolean"==typeof t?t:!e};const A=function(e){return(0,n.useReducer)(T,e)},P=A;var I=["mousedown","touchstart"];const D=function(e,t,r){void 0===r&&(r=I);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 L=r(92299),M=r.n(L);const j=function(e){var t=(0,n.useState)(function(){return M().get(e)||null}),r=t[0],a=t[1];return[r,(0,n.useCallback)(function(t,r){M().set(e,t,r),a(t)},[e]),(0,n.useCallback)(function(){M().remove(e),a(null)},[e])]};var N=r(35489),F=r.n(N);const z=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=F()(n),a({value:n,error:void 0,noUserInteraction:r})}catch(o){a({value:n,error:o,noUserInteraction:r})}},[])]};var $=function(e){return(e+1)%1e6};function V(){return(0,n.useReducer)($,0)[1]}function U(e,t){return"function"==typeof e?e.length?e(t):e():e}function B(e){var t=(0,n.useRef)(U(e)),r=V();return(0,n.useMemo)(function(){return[function(){return t.current},function(e){t.current=U(e,t.current),r()}]},[])}function H(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=B(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 W=r(21433),q=r(80499),G=r(55463),K=r(46330);const Y=x?n.useLayoutEffect:n.useEffect;var Q=(0,W.v)();(0,q.v)(Q),(0,G.v)(Q);var X=0;const J=function(e){var t=(0,n.useMemo)(function(){return"react-use-css-"+(X++).toString(36)},[]),r=(0,n.useMemo)(function(){return new Q.VSheet},[]);return Y(function(){var n={};return(0,K.J)(n,e,"."+t,""),r.diff(n),function(){r.diff({})}}),t};const Z=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){Z(e,t,O)};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=x?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(6776),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 Y(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=V(),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 xe=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 Ee=n.useState;const _e=function(e){var t,r,a=Ee(!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 Oe=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 ke(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 Re=["mousemove","mousedown","resize","keydown","touchstart","wheel"];const Ce=function(e,t,r){void 0===e&&(e=6e4),void 0===t&&(t=!1),void 0===r&&(r=Re);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=ke(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 Te=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 Ae=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 Ie=function(e){return void 0===e&&(e={laptopL:1440,laptop:1024,tablet:768}),function(){var t=(0,n.useState)(x?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 De=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 Le=function(e,t,r,n){void 0===n&&(n=De);var a=n(e),o=a[0],i=a[1];s(function(){!o&&r?r(i):o&&t&&t(i)},[o])};const Me=function(e){var t=(0,n.useRef)(e);return t.current=e,t};const je=function(e,t){(0,n.useEffect)(function(){return e&&e(),function(){t&&t()}},[])};const Ne=function(e){void 0===e&&(e=[]);var t=(0,n.useRef)(U(e)),r=V(),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 Fe=function(e,t,r){if(!x)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 ze=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}};x&&(ze("pushState"),ze("replaceState"));var $e=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}},Ve="function"==typeof Event;const Ue=x&&Ve?function(){var e=(0,n.useState)($e("load")),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=function(){return r($e("popstate"))},t=function(){return r($e("pushstate"))},n=function(){return r($e("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 Be(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?Be(e.offsetParent):null}function He(e){var t=e||window.event;return t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)}var We=x&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),qe=new Map,Ge="object"==typeof document?document:void 0,Ke=!1;const Ye=Ge?function(e,t){void 0===e&&(e=!0);var r=(0,n.useRef)(Ge.body);t=t||r;var a=function(e){var t=qe.get(e);t&&(1===t.counter?(qe.delete(e),We?(e.ontouchmove=null,Ke&&(S(document,"touchmove",He),Ke=!1)):e.style.overflow=t.initialOverflow):qe.set(e,{counter:t.counter-1,initialOverflow:t.initialOverflow}))};(0,n.useEffect)(function(){var r=Be(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}),We?Ke||(w(document,"touchmove",He,{passive:!1}),Ke=!0):e.style.overflow="hidden")}(r):a(r))},[e,t.current]),(0,n.useEffect)(function(){var e=Be(t.current);if(e)return function(){a(e)}},[])}:function(e,t){void 0===e&&(e=!0)};const Qe=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];ie(function(){return function(){}}),s(function(){})};var Xe=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",Xe,{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",Xe)},[o]);return{onMouseDown:function(e){return c(e)},onTouchStart:function(e){return c(e)},onMouseUp:d,onMouseLeave:d,onTouchEnd:d}};const Ze=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:!!x&&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=E&&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=Oe(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=E?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=H;const bt=function(e,t){var r=(0,n.useState)(t),a=r[0],o=r[1];return Y(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 xt=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 Et(e){var t=(0,n.useRef)();return(0,n.useEffect)(function(){t.current=e}),t.current}var _t=function(e,t){return e===t};function Ot(e,t){void 0===t&&(t=_t);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 kt=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 Rt=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 Ct=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 Y(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 Tt(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 At=function(e,t){return new URLSearchParams(e).get(t)};const Pt=x?function(e){var t=window.location,r=(0,n.useState)(function(){return At(t.search,e)}),a=r[0],o=r[1];return(0,n.useEffect)(function(){var r=function(){o(At(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(8880);var It=function(e){void 0===e&&(e={});var t=e.disabled,r=Me(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 Dt=It;const Lt=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 Mt=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 jt=function(e,t,r){if(!x)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 Nt=r(76511),Ft=function(e,t){return e.every(function(e,r){return(0,Nt.L)(e,t[r])})};const zt=function(e,t){Z(e,t,Ft)};var $t=n.useState,Vt=n.useEffect,Ut=n.useRef;const Bt=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(!x)return["function"==typeof e?e({width:o,height:s}):e,{width:o,height:s}];var l=$t({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 Vt(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 Ht=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(x){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 Wt;!function(e){e[e.init=0]="init",e[e.play=1]="play",e[e.pause=2]="pause",e[e.end=3]="end"}(Wt||(Wt={}));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:Wt[Wt.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:Wt[Wt.play]})})},[]),l=(0,n.useCallback)(function(){r.current&&i(function(e){return(0,c.__assign)((0,c.__assign)({},e),{isPlaying:!1,status:Wt[Wt.pause]})})},[]),u=(0,n.useCallback)(function(){r.current&&i(function(e){return(0,c.__assign)((0,c.__assign)({},e),{isPlaying:!1,status:Wt[Wt.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 Gt=function(e){Y(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 Yt(e){void 0===e&&(e=[]);var t=d(),r=V(),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 Qt=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 Xt=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(V(),e)}var Zt={restoreOnUnmount:!1};const er="undefined"!=typeof document?function(e,t){void 0===t&&(t=Zt);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(84650);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])(Ct(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=Ne(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=E&&"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:x?window.pageXOffset:0,y:x?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:x?window.innerWidth:e,height:x?window.innerHeight:t}),a=r[0],o=r[1];return(0,n.useEffect)(function(){if(x){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=x&&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 Y(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})}}),Y(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)},[]);je(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]}},85569:(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},26972:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFieldConfig:()=>i,defaultOptions:()=>o,pluginVersion:()=>a});var n=r(85569);const a="12.3.2",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}},42392:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,pluginVersion:()=>a});var n=r(85569);const a="12.3.2",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}},14200:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>a,pluginVersion:()=>n});const n="12.3.2",a={selectedSeries:0}},36748:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,pluginVersion:()=>a});var n=r(85569);const a="12.3.2",o={minVizHeight:75,minVizWidth:75,showThresholdLabels:!1,showThresholdMarkers:!0,sizing:n.e.Auto}},48364:(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.2",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||{})},65938:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeatmapColorMode:()=>o,HeatmapColorScale:()=>i,HeatmapSelectionMode:()=>s,defaultOptions:()=>l,pluginVersion:()=>a});var n=r(85569);const a="12.3.2";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}}},97190:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFieldConfig:()=>i,defaultOptions:()=>o,pluginVersion:()=>a});var n=r(85569);const a="12.3.2",o={bucketCount:30,bucketOffset:0},i={fillOpacity:80,gradientMode:n.G.None,lineWidth:1}},21724:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>a,pluginVersion:()=>n});const n="12.3.2",a={showImage:!0}},94116:(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.2";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:[]}},84268:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,pluginVersion:()=>a});var n=r(85569);const a="12.3.2",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}},91918:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFieldConfig:()=>i,defaultOptions:()=>o,pluginVersion:()=>a});var n=r(85569);const a="12.3.2",o={alignValue:"left",mergeValues:!0,perPage:20,rowHeight:.9,showValue:n.V.Auto},i={fillOpacity:70,lineWidth:0}},85366:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFieldConfig:()=>i,defaultOptions:()=>o,pluginVersion:()=>a});var n=r(85569);const a="12.3.2",o={colWidth:.9,perPage:20,rowHeight:.9,showValue:n.V.Auto},i={fillOpacity:70,lineWidth:1}},14594:(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,pluginVersion:()=>a});var n=r(85569);const a="12.3.2",o={cellHeight:n.T.Sm,frameIndex:0,showHeader:!0,showTypeIcons:!1,sortBy:[]}},86828:(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.2";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"}},2736:(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.2";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:[]}},78784: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},35489:(e,t,r)=>{"use strict";var n=r(60062),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}},62757: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}},92194: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}},76511:(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}},92299:(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(){})})},77842:(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]",x=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[o]=_[i]=_[w]=_[s]=_[S]=_[l]=_[u]=_[c]=_[d]=_[f]=_[p]=_[m]=_[v]=_[g]=_[y]=!1;var O="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,k="object"==typeof self&&self&&self.Object===Object&&self,R=O||k||Function("return this")(),C=t&&!t.nodeType&&t,T=C&&e&&!e.nodeType&&e,A=T&&T.exports===C,P=A&&O.process,I=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),D=I&&I.isTypedArray;function L(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 M(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function j(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var N,F,z,$=Array.prototype,V=Function.prototype,U=Object.prototype,B=R["__core-js_shared__"],H=V.toString,W=U.hasOwnProperty,q=(N=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"",G=U.toString,K=RegExp("^"+H.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=A?R.Buffer:void 0,Q=R.Symbol,X=R.Uint8Array,J=U.propertyIsEnumerable,Z=$.splice,ee=Q?Q.toStringTag:void 0,te=Object.getOwnPropertySymbols,re=Y?Y.isBuffer:void 0,ne=(F=Object.keys,z=Object,function(e){return F(z(e))}),ae=Ie(R,"DataView"),oe=Ie(R,"Map"),ie=Ie(R,"Promise"),se=Ie(R,"Set"),le=Ie(R,"WeakMap"),ue=Ie(Object,"create"),ce=je(ae),de=je(oe),fe=je(ie),pe=je(se),he=je(le),me=Q?Q.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 xe(e,t){var r=ze(e),n=!r&&Fe(e),a=!r&&!n&&$e(e),o=!r&&!n&&!a&&We(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&&!W.call(e,u)||i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Me(u,l))||s.push(u);return s}function Ee(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1}function _e(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=W.call(e,ee),r=e[ee];try{e[ee]=void 0;var n=!0}catch(e){}var a=G.call(e);n&&(t?e[ee]=r:delete e[ee]);return a}(e):function(e){return G.call(e)}(e)}function Oe(e){return He(e)&&_e(e)==o}function ke(e,t,r,n,a){return e===t||(null==e||null==t||!He(e)&&!He(t)?e!=e&&t!=t:function(e,t,r,n,a,c){var h=ze(e),y=ze(t),x=h?i:Le(e),E=y?i:Le(t),_=(x=x==o?p:x)==p,O=(E=E==o?p:E)==p,k=x==E;if(k&&$e(e)){if(!$e(t))return!1;h=!0,_=!1}if(k&&!_)return c||(c=new Se),h||We(e)?Te(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 X(e),new X(t)));case s:case l:case f:return Ne(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case d:var c=M;case v:var p=1&n;if(c||(c=j),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=Te(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,x,r,n,a,c);if(!(1&r)){var R=_&&W.call(e,"__wrapped__"),C=O&&W.call(t,"__wrapped__");if(R||C){var T=R?e.value():e,A=C?t.value():t;return c||(c=new Se),a(T,A,r,n,c)}}if(!k)return!1;return c||(c=new Se),function(e,t,r,n,a,o){var i=1&r,s=Ae(e),l=s.length,u=Ae(t),c=u.length;if(l!=c&&!i)return!1;var d=l;for(;d--;){var f=s[d];if(!(i?f in t:W.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,ke,a))}function Re(e){return!(!Be(e)||function(e){return!!q&&q in e}(e))&&(Ve(e)?K:x).test(je(e))}function Ce(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))W.call(e,o)&&"constructor"!=o&&a.push(o);return a}function Te(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(!L(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 Ae(e){return function(e,t,r){var n=t(e);return ze(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,De)}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 Ie(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Re(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 W.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:W.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=Ee(t,e);return!(r<0)&&(r==t.length-1?t.pop():Z.call(t,r,1),--this.size,!0)},be.prototype.get=function(e){var t=this.__data__,r=Ee(t,e);return r<0?void 0:t[r][1]},be.prototype.has=function(e){return Ee(this.__data__,e)>-1},be.prototype.set=function(e,t){var r=this.__data__,n=Ee(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 De=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[]},Le=_e;function Me(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function je(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ne(e,t){return e===t||e!=e&&t!=t}(ae&&Le(new ae(new ArrayBuffer(1)))!=S||oe&&Le(new oe)!=d||ie&&Le(ie.resolve())!=h||se&&Le(new se)!=v||le&&Le(new le)!=y)&&(Le=function(e){var t=_e(e),r=t==p?e.constructor:void 0,n=r?je(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 Fe=Oe(function(){return arguments}())?Oe:function(e){return He(e)&&W.call(e,"callee")&&!J.call(e,"callee")},ze=Array.isArray;var $e=re||function(){return!1};function Ve(e){if(!Be(e))return!1;var t=_e(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 Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function He(e){return null!=e&&"object"==typeof e}var We=D?function(e){return function(t){return e(t)}}(D):function(e){return He(e)&&Ue(e.length)&&!!_[_e(e)]};function qe(e){return null!=(t=e)&&Ue(t.length)&&!Ve(t)?xe(e):Ce(e);var t}e.exports=function(e,t){return ke(e,t)}},32781:(e,t,r)=>{var n=r(41433).Symbol;e.exports=n},87148:(e,t,r)=>{var n=r(32781),a=r(17903),o=r(71738),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?a(e):o(e)}},68812:(e,t,r)=>{var n=r(62140),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},75380:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},17903:(e,t,r)=>{var n=r(32781),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var a=i.call(e);return n&&(t?e[s]=r:delete e[s]),a}},71738:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},41433:(e,t,r)=>{var n=r(75380),a="object"==typeof self&&self&&self.Object===Object&&self,o=n||a||Function("return this")();e.exports=o},62140:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},46177:(e,t,r)=>{var n=r(58953),a=r(43664),o=r(95378),i=Math.max,s=Math.min;e.exports=function(e,t,r){var l,u,c,d,f,p,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=l,n=u;return l=u=void 0,h=t,d=e.apply(n,r)}function y(e){var r=e-p;return void 0===p||r>=t||r<0||v&&e-h>=c}function w(){var e=a();if(y(e))return S(e);f=setTimeout(w,function(e){var r=t-(e-p);return v?s(r,c-(e-h)):r}(e))}function S(e){return f=void 0,g&&l?b(e):(l=u=void 0,d)}function x(){var e=a(),r=y(e);if(l=arguments,u=this,p=e,r){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?b(e):d}(p);if(v)return clearTimeout(f),f=setTimeout(w,t),b(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?i(o(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=u=f=void 0},x.flush=function(){return void 0===f?d:S(a())},x}},58953:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},22934:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},75414:(e,t,r)=>{var n=r(87148),a=r(22934);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==n(e)}},43664:(e,t,r)=>{var n=r(41433);e.exports=function(){return n.Date.now()}},95378:(e,t,r)=>{var n=r(68812),a=r(58953),o=r(75414),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):i.test(e)?NaN:+e}},23298: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),x=S.keys,E=S.values,_=S.canTransformKey,O=S.shouldCloneArguments,k=S.shouldUpdateOnAdd,R=S.shouldUpdateOnChange,C=S.shouldUpdateOnHit,T=function(){var t=O?r(arguments):arguments;_&&(t=y(t));var n=x.length?S.getKeyIndex(t):-1;if(-1!==n)C&&b(S,w,T),n&&(S.orderByLru(x[n],E[n],n),R&&g(S,w,T));else{var a=e.apply(this,arguments),o=O?t:r(arguments);S.orderByLru(o,a,x.length),p&&S.updateAsyncCache(T),k&&v(S,w,T),R&&g(S,w,T)}return E[0]};return T.cache=S,T.fn=e,T.isMemoized=!0,T.options=w,T}return l}()},80499:(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})}},55463:(e,t,r)=>{"use strict";var n=r(33776).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={}}}},46330:(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)}}},33776:(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--}}},21433:(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}},40362:(e,t,r)=>{"use strict";var n=r(56441);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}},62688:(e,t,r)=>{e.exports=r(40362)()},56441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9111:(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(62688)),o=f(r(48398)),i=r(78784),s=r(32837),l=r(10402),u=r(26732),c=f(r(11060)),d=f(r(57988));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 x=(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:x,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})},11060:(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(62688)),o=c(r(48398)),i=r(32837),s=r(10402),l=r(26732),u=c(r(57988));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})},38230:(e,t,r)=>{"use strict";const{default:n,DraggableCore:a}=r(9111);e.exports=n,e.exports.default=n,e.exports.DraggableCore=a},32837:(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(26732),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(47350));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"),"")}},47350:(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()},57988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},10402:(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(26732),a=r(32837);function o(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},26732:(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)}},18100:(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(62688)),i=r(38230),s=r(50936),l=r(20414),u=r(20906),c=r(47222),d=f(r(97256));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,x=g.clientHeight-(0,u.calcGridItemWHPx)(h,S,w[1]);s=(0,u.clamp)(s,0,x);var E=(0,u.calcGridColWidth)(v),_=m-(0,u.calcGridItemWHPx)(p,E,w[0]);l=(0,u.clamp)(l,0,_)}}var O={top:s,left:l};e.setState({dragging:O});var k=(0,u.calcXY)(v,s,l,p,h),R=k.x,C=k.y;return i.call(b(e),f,R,C,{e:t,node:n,newPosition:O})}}),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})},59482:(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(77842)),i=d(r(97256)),s=r(20414),l=r(20906),u=d(r(18100)),c=d(r(47222));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){_(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=E(e);if(t){var o=E(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 x(e)}(this,r)}}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(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 O="react-grid-layout",k=!1;try{k=/firefox/i.test(navigator.userAgent)}catch(e){}var R=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 _(x(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:[]}),_(x(e),"dragEnterCounter",0),_(x(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)}),_(x(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})}}),_(x(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)}}}),_(x(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))}),_(x(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})}}),_(x(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)}),_(x(e),"onDragOver",function(t){var r;if(t.preventDefault(),t.stopPropagation(),k&&(null===(r=t.nativeEvent.target)||void 0===r||!r.classList.contains(O)))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,x=w.layerY,E={left:S/v,top:x/v,e:t};if(e.state.droppingDOMNode){if(e.state.droppingPosition){var _=e.state.droppingPosition,R=_.left,C=_.top;(R!=S||C!=x)&&e.setState({droppingPosition:E})}}else{var T={cols:u,margin:s,maxRows:d,rowHeight:c,containerWidth:f,containerPadding:h||s},A=(0,l.calcXY)(T,x,S,b.w,b.h);e.setState({droppingDOMNode:a.createElement("div",{key:b.i}),droppingPosition:E,layout:[].concat(p(y),[m(m({},b),{},{x:A.x,y:A.y,static:!1,isDraggable:!0})])})}}),_(x(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})}),_(x(e),"onDragLeave",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter--,0===e.dragEnterCounter&&e.removeDroppingPlaceholder()}),_(x(e),"onDragEnter",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter++}),_(x(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,x=this.state,E=x.mounted,_=x.droppingPosition,O="boolean"==typeof r.isDraggable?r.isDraggable:!r.static&&p,k="boolean"==typeof r.isResizable?r.isResizable:!r.static&&h,R=r.resizeHandles||w,C=O&&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:O,isResizable:k,isBounded:C,useCSSTransforms:v&&E,usePercentages:!E,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?_:void 0,resizeHandles:R,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)(O,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=R,_(R,"displayName","ReactGridLayout"),_(R,"propTypes",c.default),_(R,"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})},47222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeHandleType=t.resizeHandleAxesType=t.default=void 0;var n=o(r(62688)),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(20414).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},74636:(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(62688)),i=d(r(77842)),s=r(20414),l=r(50544),u=d(r(59482)),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){x(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 x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=function(e){return Object.prototype.toString.call(e)};function _(e,t){return null==e?null:Array.isArray(e)?e:e[t]}var O=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 x(w(e=o.call.apply(o,[this].concat(r))),"state",e.generateInitialState()),x(w(e),"onLayoutChange",function(t){e.props.onLayoutChange(t,v(v({},e.props.layouts),{},x({},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=_(this.props.margin,i),h=_(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:_(t,this.state.breakpoint),containerPadding:_(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=O,x(O,"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]"!==E(e[t]))throw new Error("Layout property must be an object. Received: "+E(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}),x(O,"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})},20906:(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},36805:(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(62688)),i=l(r(97256)),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"},37434: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)}},50544:(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(20414);function a(e){return Object.keys(e).sort(function(t,r){return e[t]-e[r]})}},20414:(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=_,t.getFirstCollision=E,t.getLayoutItem=x,t.getStatics=O,t.modifyLayout=p,t.moveElement=k,t.moveElementAwayFromCollision=R,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=C,t.sortLayoutItemsByColRow=A,t.sortLayoutItemsByRowCol=T,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=x(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=x(e,t);return n?(n=r(h(n)),[e=p(e,n),n]):[e,null]};var n=o(r(77842)),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(37434);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=O(e),a=C(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&&!E(e,t);)t.y--;else if(i)for(;t.x>0&&!E(e,t);)t.x--;for(;o=E(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=O(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(;E(r,o);)o.y++;else r.push(o)}return e}function x(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r].i===t)return e[r]}function E(e,t){for(var r=0,n=e.length;r<n;r++)if(v(e[r],t))return e[r]}function _(e,t){return e.filter(function(e){return v(e,t)})}function O(e){return e.filter(function(e){return e.static})}function k(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;I("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=C(e,i);("vertical"===i&&"number"==typeof n?c>=n:"horizontal"===i&&"number"==typeof r&&u>=r)&&(d=d.reverse());var p=_(d,t),h=p.length>0;if(h&&l)return f(e);if(h&&o)return I("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];I("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?R(e,g,t,a,i,s):R(e,t,g,a,i,s))}return e}function R(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(!E(e,u))return I("Doing reverse collision on ".concat(r.i," up to [").concat(u.x,",").concat(u.y,"].")),k(e,r,i?u.x:void 0,s?u.y:void 0,n,l,a,o)}return k(e,r,i?r.x+1:void 0,s?r.y+1:void 0,n,l,a,o)}function C(e,t){return"horizontal"===t?A(e):"vertical"===t?T(e):e}function T(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 A(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 I(){var e;c&&(e=console).log.apply(e,arguments)}t.noop=function(){}},12548:(e,t,r)=>{e.exports=r(59482).default,e.exports.utils=r(20414),e.exports.Responsive=r(74636).default,e.exports.Responsive.utils=r(50544),e.exports.WidthProvider=r(36805).default},97256:(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},11794:(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(38230),o=r(39954),i=r(16333);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:x}=e,E=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({},E),{},{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}},96609:(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(62688)),o=l(r(11794)),i=r(16333);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})},16333:(e,t,r)=>{"use strict";t.__esModule=!0,t.resizableProps=void 0;var n,a=(n=r(62688))&&n.__esModule?n:{default:n};r(38230);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)}}},39954:(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}},50936:(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(11794).default,e.exports.ResizableBox=r(96609).default},49348:(e,t,r)=>{"use strict";var n,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))s.call(e,l)||l===r||a(e,l,{get:()=>t[l],enumerable:!(n=o(t,l))||n.enumerable});return e},u={};((e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})})(u,{HydratedRouter:()=>c.HydratedRouter,RouterProvider:()=>c.RouterProvider}),e.exports=(n=u,l(a({},"__esModule",{value:!0}),n));var c=r(57744);((e,t,r)=>{l(e,t,"default"),r&&l(r,t,"default")})(u,r(81159),e.exports)},55366: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(20020).Subject);t.AsyncSubject=o},71222: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(20020).Subject);t.BehaviorSubject=o},26145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var n=r(47209),a=r(48743),o=r(26612),i=r(44717);!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},90795:(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},92023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var n=r(4512),a=r(27491),o=r(84512),i=r(72393),s=r(87820),l=r(44717),u=r(79916),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},35129: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(20020),i=r(4575),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},30469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var n=r(4575),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},20020: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(92023),s=r(27491),l=r(98083),u=r(7394),c=r(79916),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},4512: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(44717),i=r(27491),s=r(87820),l=r(34696),u=r(16129),c=r(90795),d=r(56476),f=r(79916),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}},27491: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(44717),s=r(30665),l=r(7394),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)}},87820:(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}},51507: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(92023),i=r(27491),s=r(85884),l=r(1266),u=r(35416),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},30994:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var n=r(92023),a=r(43787),o=r(45294),i=r(79391),s=r(88240),l=r(11824),u=r(34950),c=r(1266),d=r(75031);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},62070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var n=r(80861),a=r(11824),o=r(45294);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)))}},47209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var n=r(92023);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}},45294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var n=r(54463),a=r(52296);t.from=function(e,t){return t?n.scheduled(e,t):a.innerFrom(e)}},3123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var n=r(92023);t.fromSubscribable=function(e){return new n.Observable(function(t){return e.subscribe(t)})}},52296: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(65547),l=r(60452),u=r(92023),c=r(31801),d=r(69451),f=r(63533),p=r(26847),h=r(43026),m=r(44717),v=r(34696),g=r(84512);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 x(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 E(e){return x(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 x(e);if(p.isIterable(e))return S(e);if(h.isReadableStreamLike(e))return E(e)}throw f.createInvalidObservableTypeError(e)},t.fromInteropObservable=b,t.fromArrayLike=y,t.fromPromise=w,t.fromIterable=S,t.fromAsyncIterable=x,t.fromReadableStreamLike=E},38767:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var n=r(4386),a=r(35461);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)}},48743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var n=r(11824),a=r(45294);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)}},66467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var n=r(92023),a=r(90160),o=r(1266),i=r(16129),s=r(52296);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()})}},64143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var n=r(92023),a=r(52296),o=r(90160),i=r(1266);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},26612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var n=r(92023),a=r(44717);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)}},35461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var n=r(92023),a=r(4386),o=r(64568),i=r(96349);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)})}},61763: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(92023),i=r(52296),s=r(90160),l=r(47209),u=r(1266),c=r(11824);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}},1266: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(4512);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},66993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var n=r(35416),a=r(52296),o=r(1266);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()}))})}},54116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var n=r(4386),a=r(66993),o=r(35461);t.auditTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),a.audit(function(){return o.timer(e,t)})}},47190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var n=r(35416),a=r(16129),o=r(1266),i=r(52296);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}})}},76835: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(35416),o=r(1266),i=r(7394);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}))})}},25219: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(27491),o=r(35416),i=r(1266),s=r(7394),l=r(4386),u=r(11824),c=r(75031);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)})}},80118: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(27491),o=r(35416),i=r(52296),s=r(1266),l=r(16129),u=r(7394);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()}))})}},27514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var n=r(35416),a=r(16129),o=r(1266),i=r(52296);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}))})}},58251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var n=r(52296),a=r(1266),o=r(35416);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))})}},21424:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var n=r(42945);t.combineAll=n.combineLatestAll},52e3: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(30994),i=r(35416),s=r(90160),l=r(88240),u=r(72393),c=r(11824);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)})}},42945:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var n=r(30994),a=r(10587);t.combineLatestAll=function(e){return a.joinAllInternals(n.combineLatest,e)}},93928: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(52e3);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)))}},1812: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(35416),i=r(80861),s=r(11824),l=r(45294);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)})}},80861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var n=r(1867);t.concatAll=function(){return n.mergeAll(1)}},71012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var n=r(11282),a=r(44717);t.concatMap=function(e,t){return a.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}},61157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var n=r(71012),a=r(44717);t.concatMapTo=function(e,t){return a.isFunction(t)?n.concatMap(function(){return e},t):n.concatMap(function(){return e})}},33692: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(1812);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)))}},32216:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var n=r(20020),a=r(52296),o=r(35416),i=r(3123),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))})}},18041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var n=r(3818);t.count=function(e){return n.reduce(function(t,r,n){return!e||e(r,n)?t+1:t},0)}},72747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var n=r(35416),a=r(16129),o=r(1266),i=r(52296);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}))})}},33870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var n=r(4386),a=r(35416),o=r(1266);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}))})}},87507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var n=r(35416),a=r(1266);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()}))})}},62409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var n=r(4386),a=r(85137),o=r(35461);t.delay=function(e,t){void 0===t&&(t=n.asyncScheduler);var r=o.timer(e,t);return a.delayWhen(function(){return r})}},85137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var n=r(62070),a=r(46803),o=r(52507),i=r(31357),s=r(11282),l=r(52296);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))})}},84126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var n=r(26145),a=r(35416),o=r(1266);t.dematerialize=function(){return a.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){return n.observeNotification(e,t)}))})}},15208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var n=r(35416),a=r(1266),o=r(16129),i=r(52296);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))})}},29939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var n=r(79391),a=r(35416),o=r(1266);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))}))})}},10183:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var n=r(29939);t.distinctUntilKeyChanged=function(e,t){return n.distinctUntilChanged(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}},61195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var n=r(49148),a=r(72914),o=r(45956),i=r(87507),s=r(46803);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}))}}},93723: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(62070),i=r(48743);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))))}}},61909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var n=r(35416),a=r(1266);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()}))})}},79228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var n=r(79765);t.exhaust=n.exhaustAll},79765:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var n=r(8748),a=r(79391);t.exhaustAll=function(){return n.exhaustMap(a.identity)}},8748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var n=r(74828),a=r(52296),o=r(35416),i=r(1266);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()}))})}},68324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var n=r(35416),a=r(13754);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)})}},72914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var n=r(35416),a=r(1266);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)}))})}},89822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var n=r(35416);t.finalize=function(e){return n.operate(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}},52819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var n=r(35416),a=r(1266);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},3367:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var n=r(35416),a=r(52819);t.findIndex=function(e,t){return n.operate(a.createFind(e,t,"index"))}},41432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var n=r(37676),a=r(72914),o=r(46803),i=r(87507),s=r(45956),l=r(79391);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}))}}},26977:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var n=r(11282);t.flatMap=n.mergeMap},34956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var n=r(92023),a=r(52296),o=r(20020),i=r(35416),s=r(1266);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)})}},52507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var n=r(35416),a=r(1266),o=r(16129);t.ignoreElements=function(){return n.operate(function(e,t){e.subscribe(a.createOperatorSubscriber(t,o.noop))})}},66095:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var n=r(35416),a=r(1266);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()}))})}},10587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var n=r(79391),a=r(88240),o=r(72393),i=r(11282),s=r(22984);t.joinAllInternals=function(e,t){return o.pipe(s.toArray(),i.mergeMap(function(t){return e(t)}),t?a.mapOneOrManyArgs(t):n.identity)}},33484:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var n=r(37676),a=r(72914),o=r(20787),i=r(45956),s=r(87507),l=r(79391);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}))}}},74828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var n=r(35416),a=r(1266);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++))}))})}},31357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var n=r(74828);t.mapTo=function(e){return n.map(function(){return e})}},37967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var n=r(26145),a=r(35416),o=r(1266);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()}))})}},94388:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var n=r(3818),a=r(44717);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})}},61550: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(35416),i=r(1867),s=r(11824),l=r(45294);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)})}},1867:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var n=r(11282),a=r(79391);t.mergeAll=function(e){return void 0===e&&(e=1/0),n.mergeMap(a.identity,e)}},13754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var n=r(52296),a=r(75031),o=r(1266);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()}}},11282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var n=r(74828),a=r(52296),o=r(35416),i=r(13754),s=r(44717);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)}))}},86295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var n=r(11282),a=r(44717);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))}},9527:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var n=r(35416),a=r(13754);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})})}},25834: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(61550);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)))}},61306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var n=r(3818),a=r(44717);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})}},59924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var n=r(51507),a=r(44717),o=r(32216);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)}}},82803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var n=r(75031),a=r(35416),o=r(1266);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)}))})}},21997: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(90160),i=r(66467);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},74492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var n=r(35416),a=r(1266);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}))})}},35352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var n=r(31276),a=r(72914);t.partition=function(e,t){return function(r){return[a.filter(e,t)(r),a.filter(n.not(e,t))(r)]}}},43391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var n=r(74828);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})}},20297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var n=r(20020),a=r(59924),o=r(32216);t.publish=function(e){return e?function(t){return o.connect(e)(t)}:function(e){return a.multicast(new n.Subject)(e)}}},46383:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var n=r(71222),a=r(51507);t.publishBehavior=function(e){return function(t){var r=new n.BehaviorSubject(e);return new a.ConnectableObservable(t,function(){return r})}}},58229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var n=r(55366),a=r(51507);t.publishLast=function(){return function(e){var t=new n.AsyncSubject;return new a.ConnectableObservable(e,function(){return t})}}},28226:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var n=r(35129),a=r(59924),o=r(44717);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)}}},78973: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(90160),i=r(177);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))))}},177: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(64143),i=r(35416),s=r(79391);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}},3818:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var n=r(47071),a=r(35416);t.reduce=function(e,t){return a.operate(n.scanInternals(e,t,arguments.length>=2,!1,!0))}},85884:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var n=r(35416),a=r(1266);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())})}},7775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var n=r(47209),a=r(35416),o=r(1266),i=r(52296),s=r(35461);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()})}},25567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var n=r(52296),a=r(20020),o=r(35416),i=r(1266);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()})}},14740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var n=r(35416),a=r(1266),o=r(79391),i=r(35461),s=r(52296);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()})}},40264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var n=r(52296),a=r(20020),o=r(35416),i=r(1266);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()})}},86870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var n=r(52296),a=r(35416),o=r(16129),i=r(1266);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))})}},85411:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var n=r(4386),a=r(86870),o=r(38767);t.sampleTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),a.sample(o.interval(e,t))}},82457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var n=r(35416),a=r(47071);t.scan=function(e,t){return n.operate(a.scanInternals(e,t,arguments.length>=2,!0))}},47071:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var n=r(1266);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()}))}}},55109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var n=r(35416),a=r(1266),o=r(52296);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))})}},83329: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(52296),i=r(20020),s=r(4512),l=r(35416);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)}}},11738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var n=r(35129),a=r(83329);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})}},70884:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var n=r(37676),a=r(18168),o=r(2318),i=r(35416),s=r(1266);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)}))})}},14411:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var n=r(72914);t.skip=function(e){return n.filter(function(t,r){return e<=r})}},19355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var n=r(79391),a=r(35416),o=r(1266);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}})}},82947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var n=r(35416),a=r(1266),o=r(52296),i=r(16129);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)}))})}},29842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var n=r(35416),a=r(1266);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)}))})}},62778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var n=r(62070),a=r(11824),o=r(35416);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)})}},44027:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var n=r(35416);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))})}},89061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var n=r(6300),a=r(79391);t.switchAll=function(){return n.switchMap(a.identity)}},6300:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var n=r(52296),a=r(35416),o=r(1266);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()}))})}},61933:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var n=r(6300),a=r(44717);t.switchMapTo=function(e,t){return a.isFunction(t)?n.switchMap(function(){return e},t):n.switchMap(function(){return e})}},51689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var n=r(6300),a=r(35416);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}})}},46803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var n=r(47209),a=r(35416),o=r(1266);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())}))})}},20787: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(47209),o=r(35416),i=r(1266);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}))})}},24811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var n=r(35416),a=r(1266),o=r(52296),i=r(16129);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)})}},47770:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var n=r(35416),a=r(1266);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()}))})}},79967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var n=r(44717),a=r(35416),o=r(1266),i=r(79391);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}},16516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var n=r(35416),a=r(1266),o=r(52296);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()}))})}},75945:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var n=r(4386),a=r(16516),o=r(35461);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)}},45956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var n=r(37676),a=r(35416),o=r(1266);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())}))})}},99712:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var n=r(4386),a=r(35416),o=r(1266);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},87517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var n=r(4386),a=r(96349),o=r(35416),i=r(52296),s=r(56871),l=r(1266),u=r(75031);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)})}},62001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var n=r(4386),a=r(96349),o=r(87517);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})}},68158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var n=r(4575),a=r(74828);t.timestamp=function(e){return void 0===e&&(e=n.dateTimestampProvider),a.map(function(t){return{value:t,timestamp:e.now()}})}},22984:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var n=r(3818),a=r(35416),o=function(e,t){return e.push(t),e};t.toArray=function(){return a.operate(function(e,t){n.reduce(o,[])(e).subscribe(t)})}},75492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var n=r(20020),a=r(35416),o=r(1266),i=r(16129),s=r(52296);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}})}},56817: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(20020),o=r(35416),i=r(1266);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}))})}},96841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var n=r(20020),a=r(4386),o=r(27491),i=r(35416),s=r(1266),l=r(7394),u=r(11824),c=r(75031);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}})}},4880: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(20020),o=r(27491),i=r(35416),s=r(52296),l=r(1266),u=r(16129),c=r(7394);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()}))})}},33016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var n=r(20020),a=r(35416),o=r(1266),i=r(52296);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}))})}},99163: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(35416),i=r(1266),s=r(52296),l=r(79391),u=r(16129),c=r(11824);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)}}))})}},32681: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(61763),i=r(35416);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)})}},5606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var n=r(61763),a=r(10587);t.zipAll=function(e){return a.joinAllInternals(n.zip,e)}},50973: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(32681);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)))}},18762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var n=r(92023);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())})})}},63741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var n=r(92023),a=r(75031);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)})})}},63585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var n=r(92023),a=r(33967),o=r(44717),i=r(75031);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()}})}},14502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var n=r(52296),a=r(82803),o=r(44027);t.scheduleObservable=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),a.observeOn(t))}},12366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var n=r(52296),a=r(82803),o=r(44027);t.schedulePromise=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),a.observeOn(t))}},39136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var n=r(63741),a=r(43026);t.scheduleReadableStreamLike=function(e,t){return n.scheduleAsyncIterable(a.readableStreamLikeToAsyncGenerator(e),t)}},54463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var n=r(14502),a=r(12366),o=r(18762),i=r(63585),s=r(63741),l=r(31801),u=r(60452),c=r(65547),d=r(26847),f=r(69451),p=r(63533),h=r(43026),m=r(39136);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)}},77638: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(27491).Subscription);t.Action=o},1080: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(77638),i=r(52320),s=r(7394),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},61017: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(30469),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},4386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var n=r(1080),a=r(61017);t.asyncScheduler=new a.AsyncScheduler(n.AsyncAction),t.async=t.asyncScheduler},4575:(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}},52320: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}},56476: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}},33967:(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()},84512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},49148:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var n=r(56871);t.ArgumentOutOfRangeError=n.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},37676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var n=r(56871);t.EmptyError=n.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},2318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var n=r(56871);t.NotFoundError=n.createErrorClass(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})},98083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var n=r(56871);t.ObjectUnsubscribedError=n.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},18168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var n=r(56871);t.SequenceError=n.createErrorClass(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}})},30665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var n=r(56871);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}})},11824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var n=r(44717),a=r(64568);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}},43787:(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}}},90160:(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}},7394:(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)}}},56871:(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}},34950:(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},{})}},79916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var n=r(87820),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)}},75031:(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}},79391:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},65547:(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}},69451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var n=r(44717);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&n.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},96349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},44717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},31801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var n=r(84512),a=r(44717);t.isInteropObservable=function(e){return a.isFunction(e[n.observable])}},26847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var n=r(33967),a=r(44717);t.isIterable=function(e){return a.isFunction(null==e?void 0:e[n.iterator])}},60452:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var n=r(44717);t.isPromise=function(e){return n.isFunction(null==e?void 0:e.then)}},43026: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(44717);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)}},64568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var n=r(44717);t.isScheduler=function(e){return e&&n.isFunction(e.schedule)}},35416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var n=r(44717);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")}}},88240: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(74828),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)})}},16129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},31276:(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)}}},72393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var n=r(79391);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},34696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var n=r(87820),a=r(56476);t.reportUnhandledError=function(e){a.timeoutProvider.setTimeout(function(){var t=n.config.onUnhandledError;if(!t)throw e;t(e)})}},63533:(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.")}},46022:(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(66993);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return n.audit}});var a=r(54116);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return a.auditTime}});var o=r(47190);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return o.buffer}});var i=r(76835);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return i.bufferCount}});var s=r(25219);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return s.bufferTime}});var l=r(80118);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return l.bufferToggle}});var u=r(27514);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return u.bufferWhen}});var c=r(58251);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return c.catchError}});var d=r(21424);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return d.combineAll}});var f=r(42945);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return f.combineLatestAll}});var p=r(52e3);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return p.combineLatest}});var h=r(93928);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return h.combineLatestWith}});var m=r(1812);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return m.concat}});var v=r(80861);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return v.concatAll}});var g=r(71012);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return g.concatMap}});var b=r(61157);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return b.concatMapTo}});var y=r(33692);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return y.concatWith}});var w=r(32216);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return w.connect}});var S=r(18041);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return S.count}});var x=r(72747);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return x.debounce}});var E=r(33870);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return E.debounceTime}});var _=r(87507);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return _.defaultIfEmpty}});var O=r(62409);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return O.delay}});var k=r(85137);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return k.delayWhen}});var R=r(84126);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return R.dematerialize}});var C=r(15208);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return C.distinct}});var T=r(29939);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return T.distinctUntilChanged}});var A=r(10183);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return A.distinctUntilKeyChanged}});var P=r(61195);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return P.elementAt}});var I=r(93723);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return I.endWith}});var D=r(61909);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return D.every}});var L=r(79228);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return L.exhaust}});var M=r(79765);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return M.exhaustAll}});var j=r(8748);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return j.exhaustMap}});var N=r(68324);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return N.expand}});var F=r(72914);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return F.filter}});var z=r(89822);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return z.finalize}});var $=r(52819);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return $.find}});var V=r(3367);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return V.findIndex}});var U=r(41432);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return U.first}});var B=r(34956);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return B.groupBy}});var H=r(52507);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return H.ignoreElements}});var W=r(66095);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return W.isEmpty}});var q=r(33484);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return q.last}});var G=r(74828);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return G.map}});var K=r(31357);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return K.mapTo}});var Y=r(37967);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return Y.materialize}});var Q=r(94388);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return Q.max}});var X=r(61550);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return X.merge}});var J=r(1867);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return J.mergeAll}});var Z=r(26977);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return Z.flatMap}});var ee=r(11282);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var te=r(86295);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}});var re=r(9527);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return re.mergeScan}});var ne=r(25834);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ne.mergeWith}});var ae=r(61306);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ae.min}});var oe=r(59924);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return oe.multicast}});var ie=r(82803);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ie.observeOn}});var se=r(21997);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return se.onErrorResumeNext}});var le=r(74492);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return le.pairwise}});var ue=r(35352);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ue.partition}});var ce=r(43391);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return ce.pluck}});var de=r(20297);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return de.publish}});var fe=r(46383);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return fe.publishBehavior}});var pe=r(58229);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return pe.publishLast}});var he=r(28226);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return he.publishReplay}});var me=r(78973);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return me.race}});var ve=r(177);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return ve.raceWith}});var ge=r(3818);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ge.reduce}});var be=r(7775);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return be.repeat}});var ye=r(25567);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return ye.repeatWhen}});var we=r(14740);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return we.retry}});var Se=r(40264);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Se.retryWhen}});var xe=r(85884);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return xe.refCount}});var Ee=r(86870);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Ee.sample}});var _e=r(85411);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return _e.sampleTime}});var Oe=r(82457);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Oe.scan}});var ke=r(55109);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return ke.sequenceEqual}});var Re=r(83329);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Re.share}});var Ce=r(11738);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Ce.shareReplay}});var Te=r(70884);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Te.single}});var Ae=r(14411);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Ae.skip}});var Pe=r(19355);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Pe.skipLast}});var Ie=r(82947);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Ie.skipUntil}});var De=r(29842);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return De.skipWhile}});var Le=r(62778);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Le.startWith}});var Me=r(44027);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Me.subscribeOn}});var je=r(89061);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return je.switchAll}});var Ne=r(6300);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Ne.switchMap}});var Fe=r(61933);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Fe.switchMapTo}});var ze=r(51689);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return ze.switchScan}});var $e=r(46803);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return $e.take}});var Ve=r(20787);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return Ve.takeLast}});var Ue=r(24811);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Ue.takeUntil}});var Be=r(47770);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return Be.takeWhile}});var He=r(79967);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return He.tap}});var We=r(16516);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return We.throttle}});var qe=r(75945);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return qe.throttleTime}});var Ge=r(45956);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Ge.throwIfEmpty}});var Ke=r(99712);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Ke.timeInterval}});var Ye=r(87517);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Ye.timeout}});var Qe=r(62001);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Qe.timeoutWith}});var Xe=r(68158);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Xe.timestamp}});var Je=r(22984);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Je.toArray}});var Ze=r(75492);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Ze.window}});var et=r(56817);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}});var tt=r(96841);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}});var rt=r(4880);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return rt.windowToggle}});var nt=r(33016);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return nt.windowWhen}});var at=r(99163);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return at.withLatestFrom}});var ot=r(32681);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return ot.zip}});var it=r(5606);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return it.zipAll}});var st=r(50973);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return st.zipWith}})},6776: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}}()},79524:(e,t,r)=>{"use strict";const n=Symbol("SemVer ANY");class a{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(!(t=o(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=a;const o=r(57095),{safeRe:i,t:s}=r(86850),l=r(23811),u=r(79796),c=r(37944),d=r(68395)},68395:(e,t,r)=>{"use strict";const n=/\s+/g;class a{constructor(e,t){if(t=i(t),e instanceof a)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new a(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&b(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=o.get(t);if(r)return r;const n=this.options.loose,a=n?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];e=e.replace(a,A(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(c[d.COMPARATORTRIM],f),l("comparator trim",e),e=e.replace(c[d.TILDETRIM],p),l("tilde trim",e),e=e.replace(c[d.CARETTRIM],h),l("caret trim",e);let i=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>T(e,this.options));n&&(i=i.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",i);const u=new Map,b=i.map(e=>new s(e,this.options));for(const e of b){if(g(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const y=[...u.values()];return o.set(t,y),y}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}e.exports=a;const o=new(r(51158)),i=r(57095),s=r(79524),l=r(79796),u=r(37944),{safeRe:c,t:d,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:h}=r(86850),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:v}=r(59630),g=e=>"<0.0.0-0"===e.value,b=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let a=n.pop();for(;r&&n.length;)r=n.every(e=>a.intersects(e,t)),a=n.pop();return r},w=(e,t)=>(l("comp",e,t),e=_(e,t),l("caret",e),e=x(e,t),l("tildes",e),e=k(e,t),l("xrange",e),e=C(e,t),l("stars",e),e),S=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(" "),E=(e,t)=>{const r=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(r,(t,r,n,a,o)=>{let i;return l("tilde",e,t,r,n,a,o),S(r)?i="":S(n)?i=`>=${r}.0.0 <${+r+1}.0.0-0`:S(a)?i=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(l("replaceTilde pr",o),i=`>=${r}.${n}.${a}-${o} <${r}.${+n+1}.0-0`):i=`>=${r}.${n}.${a} <${r}.${+n+1}.0-0`,l("tilde return",i),i})},_=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(" "),O=(e,t)=>{l("caret",e,t);const r=t.loose?c[d.CARETLOOSE]:c[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,a,o,i)=>{let s;return l("caret",e,t,r,a,o,i),S(r)?s="":S(a)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:S(o)?s="0"===r?`>=${r}.${a}.0${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.0${n} <${+r+1}.0.0-0`:i?(l("replaceCaret pr",i),s="0"===r?"0"===a?`>=${r}.${a}.${o}-${i} <${r}.${a}.${+o+1}-0`:`>=${r}.${a}.${o}-${i} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${o}-${i} <${+r+1}.0.0-0`):(l("no pr"),s="0"===r?"0"===a?`>=${r}.${a}.${o}${n} <${r}.${a}.${+o+1}-0`:`>=${r}.${a}.${o}${n} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${o} <${+r+1}.0.0-0`),l("caret return",s),s})},k=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>R(e,t)).join(" ")),R=(e,t)=>{e=e.trim();const r=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(r,(r,n,a,o,i,s)=>{l("xRange",e,r,n,a,o,i,s);const u=S(a),c=u||S(o),d=c||S(i),f=d;return"="===n&&f&&(n=""),s=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(c&&(o=0),i=0,">"===n?(n=">=",c?(a=+a+1,o=0,i=0):(o=+o+1,i=0)):"<="===n&&(n="<",c?a=+a+1:o=+o+1),"<"===n&&(s="-0"),r=`${n+a}.${o}.${i}${s}`):c?r=`>=${a}.0.0${s} <${+a+1}.0.0-0`:d&&(r=`>=${a}.${o}.0${s} <${a}.${+o+1}.0-0`),l("xRange return",r),r})},C=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),T=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),A=e=>(t,r,n,a,o,i,s,l,u,c,d,f)=>`${r=S(n)?"":S(a)?`>=${n}.0.0${e?"-0":""}`:S(o)?`>=${n}.${a}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=S(u)?"":S(c)?`<${+u+1}.0.0-0`:S(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`}`.trim(),P=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(l(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},37944:(e,t,r)=>{"use strict";const n=r(79796),{MAX_LENGTH:a,MAX_SAFE_INTEGER:o}=r(59630),{safeRe:i,t:s}=r(86850),l=r(57095),{compareIdentifiers:u}=r(14031);class c{constructor(e,t){if(t=l(t),e instanceof c){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],a=e.prerelease[t];if(n("prerelease compare",t,r,a),void 0===r&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===r)return-1;if(r!==a)return u(r,a)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{const r=this.build[t],a=e.build[t];if(n("build compare",t,r,a),void 0===r&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===r)return-1;if(r!==a)return u(r,a)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[s.PRERELEASELOOSE]:i[s.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},37994:(e,t,r)=>{"use strict";const n=r(15860);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},23811:(e,t,r)=>{"use strict";const n=r(36909),a=r(97659),o=r(60144),i=r(82077),s=r(30599),l=r(17092);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return a(e,r,u);case">":return o(e,r,u);case">=":return i(e,r,u);case"<":return s(e,r,u);case"<=":return l(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},45334:(e,t,r)=>{"use strict";const n=r(37944),a=r(15860),{safeRe:o,t:i}=r(86850);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let a;for(;(a=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&a.index+a[0].length===r.index+r[0].length||(r=a),n.lastIndex=a.index+a[1].length+a[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);if(null===r)return null;const s=r[2],l=r[3]||"0",u=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return a(`${s}.${l}.${u}${c}${d}`,t)}},2801:(e,t,r)=>{"use strict";const n=r(37944);e.exports=(e,t,r)=>{const a=new n(e,r),o=new n(t,r);return a.compare(o)||a.compareBuild(o)}},97023:(e,t,r)=>{"use strict";const n=r(55380);e.exports=(e,t)=>n(e,t,!0)},55380:(e,t,r)=>{"use strict";const n=r(37944);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},80660:(e,t,r)=>{"use strict";const n=r(15860);e.exports=(e,t)=>{const r=n(e,null,!0),a=n(t,null,!0),o=r.compare(a);if(0===o)return null;const i=o>0,s=i?r:a,l=i?a:r,u=!!s.prerelease.length;if(!!l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}const c=u?"pre":"";return r.major!==a.major?c+"major":r.minor!==a.minor?c+"minor":r.patch!==a.patch?c+"patch":"prerelease"}},36909:(e,t,r)=>{"use strict";const n=r(55380);e.exports=(e,t,r)=>0===n(e,t,r)},60144:(e,t,r)=>{"use strict";const n=r(55380);e.exports=(e,t,r)=>n(e,t,r)>0},82077:(e,t,r)=>{"use strict";const n=r(55380);e.exports=(e,t,r)=>n(e,t,r)>=0},35955:(e,t,r)=>{"use strict";const n=r(37944);e.exports=(e,t,r,a,o)=>{"string"==typeof r&&(o=a,a=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,a,o).version}catch(e){return null}}},30599:(e,t,r)=>{"use strict";const n=r(55380);e.exports=(e,t,r)=>n(e,t,r)<0},17092:(e,t,r)=>{"use strict";const n=r(55380);e.exports=(e,t,r)=>n(e,t,r)<=0},82966:(e,t,r)=>{"use strict";const n=r(37944);e.exports=(e,t)=>new n(e,t).major},65986:(e,t,r)=>{"use strict";const n=r(37944);e.exports=(e,t)=>new n(e,t).minor},97659:(e,t,r)=>{"use strict";const n=r(55380);e.exports=(e,t,r)=>0!==n(e,t,r)},15860:(e,t,r)=>{"use strict";const n=r(37944);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},71617:(e,t,r)=>{"use strict";const n=r(37944);e.exports=(e,t)=>new n(e,t).patch},59613:(e,t,r)=>{"use strict";const n=r(15860);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},22862:(e,t,r)=>{"use strict";const n=r(55380);e.exports=(e,t,r)=>n(t,e,r)},36033:(e,t,r)=>{"use strict";const n=r(2801);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},81722:(e,t,r)=>{"use strict";const n=r(68395);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},90603:(e,t,r)=>{"use strict";const n=r(2801);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},87645:(e,t,r)=>{"use strict";const n=r(15860);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},98449:(e,t,r)=>{"use strict";const n=r(86850),a=r(59630),o=r(37944),i=r(14031),s=r(15860),l=r(87645),u=r(37994),c=r(35955),d=r(80660),f=r(82966),p=r(65986),h=r(71617),m=r(59613),v=r(55380),g=r(22862),b=r(97023),y=r(2801),w=r(90603),S=r(36033),x=r(60144),E=r(30599),_=r(36909),O=r(97659),k=r(82077),R=r(17092),C=r(23811),T=r(45334),A=r(79524),P=r(68395),I=r(81722),D=r(10651),L=r(47840),M=r(7930),j=r(3489),N=r(17494),F=r(45463),z=r(67871),$=r(74266),V=r(81112),U=r(61465),B=r(19252);e.exports={parse:s,valid:l,clean:u,inc:c,diff:d,major:f,minor:p,patch:h,prerelease:m,compare:v,rcompare:g,compareLoose:b,compareBuild:y,sort:w,rsort:S,gt:x,lt:E,eq:_,neq:O,gte:k,lte:R,cmp:C,coerce:T,Comparator:A,Range:P,satisfies:I,toComparators:D,maxSatisfying:L,minSatisfying:M,minVersion:j,validRange:N,outside:F,gtr:z,ltr:$,intersects:V,simplifyRange:U,subset:B,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},59630:e=>{"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},79796:e=>{"use strict";const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},14031:e=>{"use strict";const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),a=t.test(r);return n&&a&&(e=+e,r=+r),e===r?0:n&&!a?-1:a&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},51158:e=>{"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},57095:e=>{"use strict";const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},86850:(e,t,r)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:o}=r(59630),i=r(79796),s=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],d=t.t={};let f=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[p,a]],m=(e,t,r)=>{const n=(e=>{for(const[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),a=f++;i(e,a,t),d[e]=a,u[a]=t,c[a]=n,s[a]=new RegExp(t,r?"g":void 0),l[a]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),m("FULL",`^${u[d.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),m("LOOSE",`^${u[d.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),m("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?`+`(?:${u[d.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",u[d.COERCE],!0),m("COERCERTLFULL",u[d.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},29368:(e,t,r)=>{"use strict";e.exports=r(98449)},67871:(e,t,r)=>{"use strict";const n=r(45463);e.exports=(e,t,r)=>n(e,t,">",r)},81112:(e,t,r)=>{"use strict";const n=r(68395);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},74266:(e,t,r)=>{"use strict";const n=r(45463);e.exports=(e,t,r)=>n(e,t,"<",r)},47840:(e,t,r)=>{"use strict";const n=r(37944),a=r(68395);e.exports=(e,t,r)=>{let o=null,i=null,s=null;try{s=new a(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new n(o,r)))}),o}},7930:(e,t,r)=>{"use strict";const n=r(37944),a=r(68395);e.exports=(e,t,r)=>{let o=null,i=null,s=null;try{s=new a(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new n(o,r)))}),o}},3489:(e,t,r)=>{"use strict";const n=r(37944),a=r(68395),o=r(60144);e.exports=(e,t)=>{e=new a(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const a=e.set[t];let i=null;a.forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!o(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!i||r&&!o(r,i)||(r=i)}return r&&e.test(r)?r:null}},45463:(e,t,r)=>{"use strict";const n=r(37944),a=r(79524),{ANY:o}=a,i=r(68395),s=r(81722),l=r(60144),u=r(30599),c=r(17092),d=r(82077);e.exports=(e,t,r,f)=>{let p,h,m,v,g;switch(e=new n(e,f),t=new i(t,f),r){case">":p=l,h=c,m=u,v=">",g=">=";break;case"<":p=u,h=d,m=l,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,s=null;if(n.forEach(e=>{e.semver===o&&(e=new a(">=0.0.0")),i=i||e,s=s||e,p(e.semver,i.semver,f)?i=e:m(e.semver,s.semver,f)&&(s=e)}),i.operator===v||i.operator===g)return!1;if((!s.operator||s.operator===v)&&h(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}},61465:(e,t,r)=>{"use strict";const n=r(81722),a=r(55380);e.exports=(e,t,r)=>{const o=[];let i=null,s=null;const l=e.sort((e,t)=>a(e,t,r));for(const e of l){n(e,t,r)?(s=e,i||(i=e)):(s&&o.push([i,s]),s=null,i=null)}i&&o.push([i,null]);const u=[];for(const[e,t]of o)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const c=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return c.length<d.length?c:t}},19252:(e,t,r)=>{"use strict";const n=r(68395),a=r(79524),{ANY:o}=a,i=r(81722),s=r(55380),l=[new a(">=0.0.0-0")],u=[new a(">=0.0.0")],c=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?l:u}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=u}const n=new Set;let a,c,p,h,m,v,g;for(const t of e)">"===t.operator||">="===t.operator?a=d(a,t,r):"<"===t.operator||"<="===t.operator?c=f(c,t,r):n.add(t.semver);if(n.size>1)return null;if(a&&c){if(p=s(a.semver,c.semver,r),p>0)return null;if(0===p&&(">="!==a.operator||"<="!==c.operator))return null}for(const e of n){if(a&&!i(e,String(a),r))return null;if(c&&!i(e,String(c),r))return null;for(const n of t)if(!i(e,String(n),r))return!1;return!0}let b=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver,y=!(!a||r.includePrerelease||!a.semver.prerelease.length)&&a.semver;b&&1===b.prerelease.length&&"<"===c.operator&&0===b.prerelease[0]&&(b=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,a)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=d(a,e,r),h===e&&h!==a)return!1}else if(">="===a.operator&&!i(a.semver,String(e),r))return!1;if(c)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),"<"===e.operator||"<="===e.operator){if(m=f(c,e,r),m===e&&m!==c)return!1}else if("<="===c.operator&&!i(c.semver,String(e),r))return!1;if(!e.operator&&(c||a)&&0!==p)return!1}return!(a&&v&&!c&&0!==p)&&(!(c&&g&&!a&&0!==p)&&(!y&&!b))},d=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},f=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let a=!1;e:for(const n of e.set){for(const e of t.set){const t=c(n,e,r);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},10651:(e,t,r)=>{"use strict";const n=r(68395);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},17494:(e,t,r)=>{"use strict";const n=r(68395);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},60062: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()}}},84650:(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)}}},36651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return v.default}});var n=g(r(50673)),a=g(r(10412)),o=g(r(48020)),i=g(r(27082)),s=g(r(52546)),l=g(r(69643)),u=g(r(64088)),c=g(r(4941)),d=g(r(94766)),f=g(r(95979)),p=g(r(65591)),h=g(r(80356)),m=g(r(28481)),v=g(r(28003));function g(e){return e&&e.__esModule?e:{default:e}}},50673:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},22627:(e,t)=>{"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){var 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;t.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",a=0;a<r;a+=8){var o=e[a>>5]>>>a%32&255,i=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;for(var a=1732584193,u=-271733879,c=-1732584194,d=271733878,f=0;f<e.length;f+=16){var p=a,h=u,m=c,v=d;a=o(a,u,c,d,e[f],7,-680876936),d=o(d,a,u,c,e[f+1],12,-389564586),c=o(c,d,a,u,e[f+2],17,606105819),u=o(u,c,d,a,e[f+3],22,-1044525330),a=o(a,u,c,d,e[f+4],7,-176418897),d=o(d,a,u,c,e[f+5],12,1200080426),c=o(c,d,a,u,e[f+6],17,-1473231341),u=o(u,c,d,a,e[f+7],22,-45705983),a=o(a,u,c,d,e[f+8],7,1770035416),d=o(d,a,u,c,e[f+9],12,-1958414417),c=o(c,d,a,u,e[f+10],17,-42063),u=o(u,c,d,a,e[f+11],22,-1990404162),a=o(a,u,c,d,e[f+12],7,1804603682),d=o(d,a,u,c,e[f+13],12,-40341101),c=o(c,d,a,u,e[f+14],17,-1502002290),a=i(a,u=o(u,c,d,a,e[f+15],22,1236535329),c,d,e[f+1],5,-165796510),d=i(d,a,u,c,e[f+6],9,-1069501632),c=i(c,d,a,u,e[f+11],14,643717713),u=i(u,c,d,a,e[f],20,-373897302),a=i(a,u,c,d,e[f+5],5,-701558691),d=i(d,a,u,c,e[f+10],9,38016083),c=i(c,d,a,u,e[f+15],14,-660478335),u=i(u,c,d,a,e[f+4],20,-405537848),a=i(a,u,c,d,e[f+9],5,568446438),d=i(d,a,u,c,e[f+14],9,-1019803690),c=i(c,d,a,u,e[f+3],14,-187363961),u=i(u,c,d,a,e[f+8],20,1163531501),a=i(a,u,c,d,e[f+13],5,-1444681467),d=i(d,a,u,c,e[f+2],9,-51403784),c=i(c,d,a,u,e[f+7],14,1735328473),a=s(a,u=i(u,c,d,a,e[f+12],20,-1926607734),c,d,e[f+5],4,-378558),d=s(d,a,u,c,e[f+8],11,-2022574463),c=s(c,d,a,u,e[f+11],16,1839030562),u=s(u,c,d,a,e[f+14],23,-35309556),a=s(a,u,c,d,e[f+1],4,-1530992060),d=s(d,a,u,c,e[f+4],11,1272893353),c=s(c,d,a,u,e[f+7],16,-155497632),u=s(u,c,d,a,e[f+10],23,-1094730640),a=s(a,u,c,d,e[f+13],4,681279174),d=s(d,a,u,c,e[f],11,-358537222),c=s(c,d,a,u,e[f+3],16,-722521979),u=s(u,c,d,a,e[f+6],23,76029189),a=s(a,u,c,d,e[f+9],4,-640364487),d=s(d,a,u,c,e[f+12],11,-421815835),c=s(c,d,a,u,e[f+15],16,530742520),a=l(a,u=s(u,c,d,a,e[f+2],23,-995338651),c,d,e[f],6,-198630844),d=l(d,a,u,c,e[f+7],10,1126891415),c=l(c,d,a,u,e[f+14],15,-1416354905),u=l(u,c,d,a,e[f+5],21,-57434055),a=l(a,u,c,d,e[f+12],6,1700485571),d=l(d,a,u,c,e[f+3],10,-1894986606),c=l(c,d,a,u,e[f+10],15,-1051523),u=l(u,c,d,a,e[f+1],21,-2054922799),a=l(a,u,c,d,e[f+8],6,1873313359),d=l(d,a,u,c,e[f+15],10,-30611744),c=l(c,d,a,u,e[f+6],15,-1560198380),u=l(u,c,d,a,e[f+13],21,1309151649),a=l(a,u,c,d,e[f+4],6,-145523070),d=l(d,a,u,c,e[f+11],10,-1120210379),c=l(c,d,a,u,e[f+2],15,718787259),u=l(u,c,d,a,e[f+9],21,-343485551),a=n(a,p),u=n(u,h),c=n(c,m),d=n(d,v)}return[a,u,c,d]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(r(t)),a=0;a<t;a+=8)n[a>>5]|=(255&e[a/8])<<a%32;return n}(e),8*e.length))}},72568:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:r}},10412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="00000000-0000-0000-0000-000000000000"},48020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(28481))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");var t,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}},52932:(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-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},10030:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};var n=new Uint8Array(16)},59566:(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;t.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var i=0;i<o.length;++i)e.push(o.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),u=new Array(l),c=0;c<l;++c){for(var d=new Uint32Array(16),f=0;f<16;++f)d[f]=e[64*c+4*f]<<24|e[64*c+4*f+1]<<16|e[64*c+4*f+2]<<8|e[64*c+4*f+3];u[c]=d}u[l-1][14]=8*(e.length-1)/Math.pow(2,32),u[l-1][14]=Math.floor(u[l-1][14]),u[l-1][15]=8*(e.length-1)&4294967295;for(var p=0;p<l;++p){for(var h=new Uint32Array(80),m=0;m<16;++m)h[m]=u[p][m];for(var v=16;v<80;++v)h[v]=n(h[v-3]^h[v-8]^h[v-14]^h[v-16],1);for(var g=a[0],b=a[1],y=a[2],w=a[3],S=a[4],x=0;x<80;++x){var E=Math.floor(x/20),_=n(g,5)+r(E,b,y,w)+S+t[E]+h[x]>>>0;S=w,w=y,y=n(b,30)>>>0,b=g,g=_}a[0]=a[0]+g>>>0,a[1]=a[1]+b>>>0,a[2]=a[2]+y>>>0,a[3]=a[3]+w>>>0,a[4]=a[4]+S>>>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]]}},27082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;var n,a=(n=r(28481))&&n.__esModule?n:{default:n};for(var o=[],i=0;i<256;++i)o.push((i+256).toString(16).slice(1));function s(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]]).toLowerCase()}t.default=function(e,t=0){var r=s(e,t);if(!(0,a.default)(r))throw TypeError("Stringified UUID is invalid");return r}},52546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a,o,i=(n=r(10030))&&n.__esModule?n:{default:n},s=r(27082);var l=0,u=0;t.default=function(e,t,r){var n=t&&r||0,c=t||new Array(16),d=(e=e||{}).node,f=e.clockseq;if(e._v6||(d||(d=a),null==f&&(f=o)),null==d||null==f){var p=e.random||(e.rng||i.default)();null==d&&(d=[p[0],p[1],p[2],p[3],p[4],p[5]],a||e._v6||(d[0]|=1,a=d)),null==f&&(f=16383&(p[6]<<8|p[7]),void 0!==o||e._v6||(o=f))}var h=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:u+1,v=h-l+(m-u)/1e4;if(v<0&&void 0===e.clockseq&&(f=f+1&16383),(v<0||h>l)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,u=m,o=f;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;c[n++]=g>>>24&255,c[n++]=g>>>16&255,c[n++]=g>>>8&255,c[n++]=255&g;var b=h/4294967296*1e4&268435455;c[n++]=b>>>8&255,c[n++]=255&b,c[n++]=b>>>24&15|16,c[n++]=b>>>16&255,c[n++]=f>>>8|128,c[n++]=255&f;for(var y=0;y<6;++y)c[n+y]=d[y];return t||(0,s.unsafeStringify)(c)}},69643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?(0,a.default)(e):e);return"string"==typeof e?(0,o.unsafeStringify)(t):t};var n,a=(n=r(48020))&&n.__esModule?n:{default:n},o=r(27082)},64088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(66789)),a=o(r(22627));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,n.default)("v3",48,a.default);t.default=i},66789:(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));for(var t=[],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)");var u=new Uint8Array(16+e.length);if(u.set(n),u.set(e,n.length),(u=r(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,i){s=s||0;for(var c=0;c<16;++c)i[s+c]=u[c];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(27082),o=(n=r(48020))&&n.__esModule?n:{default:n};var i=t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",s=t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8"},4941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(72568)),a=i(r(10030)),o=r(27082);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();var 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(var s=0;s<16;++s)t[r+s]=i[s];return t}return(0,o.unsafeStringify)(i)}},94766:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(66789)),a=o(r(59566));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,n.default)("v5",80,a.default);t.default=i},95979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e={},t,r=0){var i=(0,a.default)(l(l({},e),{},{_v6:!0}),new Uint8Array(16));if(i=(0,o.default)(i),t){for(var s=0;s<16;s++)t[r+s]=i[s];return t}return(0,n.unsafeStringify)(i)};var n=r(27082),a=i(r(52546)),o=i(r(69643));function i(e){return e&&e.__esModule?e:{default:e}}function s(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(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}},65591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=function(e){return Uint8Array.of((15&e[3])<<4|e[4]>>4&15,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|15&e[6],e[7],(15&e[1])<<4|(240&e[2])>>4,(15&e[2])<<4|(240&e[3])>>4,16|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?(0,a.default)(e):e);return"string"==typeof e?(0,o.unsafeStringify)(t):t};var n,a=(n=r(48020))&&n.__esModule?n:{default:n},o=r(27082)},80356:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(10030))&&n.__esModule?n:{default:n},o=r(27082);var i=null,s=null,l=0;t.default=function(e,t,r){e=e||{};var n=t&&r||0,u=t||new Uint8Array(16),c=e.random||(e.rng||a.default)(),d=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.seq?e.seq:null,p=s,h=i;return d>l&&void 0===e.msecs&&(l=d,null!==f&&(p=null,h=null)),null!==f&&(f>2147483647&&(f=2147483647),p=f>>>19&4095,h=524287&f),null!==p&&null!==h||(p=(p=127&c[6])<<8|c[7],h=(h=(h=63&c[8])<<8|c[9])<<5|c[10]>>>3),d+1e4>l&&null===f?++h>524287&&(h=0,++p>4095&&(p=0,l++)):l=d,s=p,i=h,u[n++]=l/1099511627776&255,u[n++]=l/4294967296&255,u[n++]=l/16777216&255,u[n++]=l/65536&255,u[n++]=l/256&255,u[n++]=255&l,u[n++]=p>>>4&15|112,u[n++]=255&p,u[n++]=h>>>13&63|128,u[n++]=h>>>5&255,u[n++]=h<<3&255|7&c[10],u[n++]=c[11],u[n++]=c[12],u[n++]=c[13],u[n++]=c[14],u[n++]=c[15],t||(0,o.unsafeStringify)(u)}},28481:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(52932))&&n.__esModule?n:{default:n};t.default=function(e){return"string"==typeof e&&a.default.test(e)}},28003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(28481))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},75745:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var a,o=new Uint8Array(16);function i(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(o)}for(var s=[],l=0;l<256;++l)s.push((l+256).toString(16).slice(1));function u(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}const c=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();var a=(e=e||{}).random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=a[o];return t}return u(a)}},45415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(21559);function a(e,t="latest"){return o(e,t.replace(/\-.*/,""))}function o(e,t){const r={};for(const[n,a]of Object.entries(e))i(a)?r[n]=o(a,t):(l(a,n),r[n]=s(a,t));return r}function i(e){if("object"==typeof e){const[t]=Object.keys(e);return!n.valid(t)}return!1}function s(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 l(e,t){if(!Object.keys(e).every(e=>n.valid(e)))throw new Error(`Invalid semver version: '${t}'`)}const u="8.5.0",c={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"}},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"},backButton:{"12.1.0":"data-testid EditPaneHeader back"}},TimePicker:{openButton:{[u]:"data-testid TimePicker Open Button"},overlayContent:{"10.2.3":"data-testid TimePicker Overlay Content"},fromField:{"10.2.3":"data-testid Time Range from field",[u]:"Time Range from field"},toField:{"10.2.3":"data-testid Time Range to field",[u]:"Time Range to field"},applyTimeRange:{[u]:"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",[u]:"Time Range calendar"},openButton:{"10.2.3":"data-testid Open time range calendar",[u]:"Open time range calendar"},closeButton:{"10.2.3":"data-testid Close time range Calendar",[u]:"Close time range Calendar"}},absoluteTimeRangeTitle:{[u]:"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:{[u]:"Test Data Query scenario select container"},scenarioSelect:{[u]:"Test Data Query scenario select"},max:{[u]:"TestData max"},min:{[u]:"TestData min"},noise:{[u]:"TestData noise"},seriesCount:{[u]:"TestData series count"},spread:{[u]:"TestData spread"},startValue:{[u]:"TestData start value"},drop:{[u]:"TestData drop values"}}},DataSourceHttpSettings:{urlInput:{"10.4.0":"data-testid Datasource HTTP settings url",[u]:"Datasource HTTP settings url"}},Jaeger:{traceIDInput:{[u]:"Trace ID"}},Prometheus:{configPage:{connectionSettings:{[u]:"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",[u]:"Add exemplar config button"},internalLinkSwitch:{"10.3.0":"data-testid Internal link switch",[u]:"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",[u]:"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:{[u]:e=>`${e} menu`},MenuGroup:{[u]:e=>`${e} menu group`},MenuItem:{[u]:e=>`${e} menu item`},SubMenu:{container:{"10.3.0":"data-testid SubMenu container",[u]:"SubMenu container"},icon:{"10.3.0":"data-testid SubMenu icon",[u]:"SubMenu icon"}}},Panels:{Panel:{title:{[u]: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:{[u]:e=>`${e} panel`},headerCornerInfo:{[u]:e=>`Panel header ${e}`},status:{"10.2.0":e=>`data-testid Panel status ${e}`,[u]:e=>"Panel status"},loadingBar:{"10.0.0":()=>"Panel loading bar"},HoverWidget:{container:{"10.1.0":"data-testid hover-header-container",[u]:"hover-header-container"},dragIcon:{"10.0.0":"data-testid drag-icon"}},PanelDataErrorMessage:{"10.4.0":"data-testid Panel data error message"}},Visualization:{Graph:{container:{"9.5.0":"Graph container"},VisualizationTab:{legendSection:{[u]:"Legend section"}},Legend:{legendItemAlias:{[u]:e=>`gpl alias ${e}`},showLegendSwitch:{[u]:"gpl show legend"}},xAxis:{labels:{[u]:()=>"div.flot-x-axis > div.flot-tick-label"}}},BarGauge:{valueV2:{[u]:"data-testid Bar gauge value"}},PieChart:{svgSlice:{"10.3.0":"data testid Pie Chart Slice"}},Text:{container:{[u]:()=>".markdown-html"}},Table:{header:{[u]:"table header"},footer:{[u]:"table-footer"},body:{"10.2.0":"data-testid table body"}},TableNG:{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"}}}},VizLegend:{seriesName:{"10.3.0":e=>`data-testid VizLegend series ${e}`}},Drawer:{General:{title:{[u]:e=>`Drawer title ${e}`},expand:{[u]:"Drawer expand"},contract:{[u]:"Drawer contract"},close:{"10.3.0":"data-testid Drawer close",[u]:"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",[u]:"Panel editor option pane content"},select:{[u]:"Panel editor option pane select"},fieldLabel:{[u]: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",[u]:"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",[u]:"toggle-viz-options"},toggleTableView:{"11.1.0":"data-testid toggle-table-view",[u]:"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"}}}},PanelInspector:{Data:{content:{[u]:"Panel inspector Data content"}},Stats:{content:{[u]:"Panel inspector Stats content"}},Json:{content:{"11.1.0":"data-testid Panel inspector Json content",[u]:"Panel inspector Json content"}},Query:{content:{[u]:"Panel inspector Query content"},refreshButton:{[u]:"Panel inspector Query refresh button"},jsonObjectKeys:{[u]:()=>".json-formatter-key"}}},Tab:{title:{"11.2.0":e=>`data-testid Tab ${e}`},active:{[u]:()=>'[class*="-activeTabStyle"]'}},RefreshPicker:{runButtonV2:{[u]:"data-testid RefreshPicker run button"},intervalButtonV2:{[u]:"data-testid RefreshPicker interval button"}},QueryTab:{content:{[u]:"Query editor tab content"},queryInspectorButton:{[u]:"Query inspector button"},queryHistoryButton:{"10.2.0":"data-testid query-history-button",[u]:"query-history-button"},addQuery:{"10.2.0":"data-testid query-tab-add-query",[u]:"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:{[u]:"Query editor row"}},QueryEditorRow:{actionButton:{"10.4.0":e=>`data-testid ${e}`},title:{[u]:e=>`Query editor row title ${e}`},container:{[u]:e=>`Query editor row ${e}`}},AlertTab:{content:{"10.2.3":"data-testid Alert editor tab content",[u]:"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:{[u]:e=>`data-testid Alert ${e}`}},TransformTab:{content:{"10.1.0":"data-testid Transform editor tab content",[u]:"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",[u]:"Transform mode label"},calculationsLabel:{"10.2.3":"data-testid Transform calculations label",[u]:"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",[u]:"search transformations"},noTransformationsMessage:{"10.2.3":"data-testid no transformations message"},addTransformationButton:{"10.1.0":"data-testid add transformation button",[u]:"add transformation 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",[u]:"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:{[u]:()=>".page-toolbar"},item:{[u]:e=>`${e}`},itemButton:{"9.5.0":e=>`data-testid ${e}`}},QueryEditorToolbarItem:{button:{[u]:e=>`QueryEditor toolbar item button ${e}`}},BackButton:{backArrow:{"10.3.0":"data-testid Go Back",[u]:"Go Back"}},OptionsGroup:{group:{"11.1.0":e=>e?`data-testid Options group ${e}`:"data-testid Options group",[u]:e=>e?`Options group ${e}`:"Options group"},toggle:{"11.1.0":e=>e?`data-testid Options group ${e} toggle`:"data-testid Options group toggle",[u]:e=>e?`Options group ${e} toggle`:"Options group toggle"}},PluginVisualization:{item:{[u]:e=>`Plugin visualization item ${e}`},current:{[u]:()=>'[class*="-currentVisualizationItem"]'}},Select:{menu:{"11.5.0":"data-testid Select menu",[u]:"Select options menu"},option:{"11.1.0":"data-testid Select option",[u]:"Select option"},toggleAllOptions:{"11.3.0":"data-testid toggle all options"},input:{[u]:()=>'input[id*="time-options-input"]'},singleValue:{[u]:()=>'div[class*="-singleValue"]'}},FieldConfigEditor:{content:{[u]:"Field config editor content"}},OverridesConfigEditor:{content:{[u]:"Field overrides editor content"}},FolderPicker:{containerV2:{[u]:"data-testid Folder picker select container"},input:{"10.4.0":"data-testid folder-picker-input"}},ReadonlyFolderPicker:{container:{[u]:"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",[u]:"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:{[u]:"data-testid Time zone picker select container"},changeTimeSettingsButton:{"11.0.0":"data-testid Time zone picker Change time settings button"}},WeekStartPicker:{containerV2:{[u]:"data-testid Choose starting day of the week"},placeholder:{[u]:"Choose starting day of the week"}},TraceViewer:{spanBar:{"9.0.0":"data-testid SpanBar--wrapper"}},QueryField:{container:{"10.3.0":"data-testid Query field",[u]:"Query field"}},QueryBuilder:{queryPatterns:{"10.3.0":"data-testid Query patterns",[u]:"Query patterns"},labelSelect:{"10.3.0":"data-testid Select label",[u]:"Select label"},inputSelect:{"11.1.0":"data-testid Select label-input"},valueSelect:{"10.3.0":"data-testid Select value",[u]:"Select value"},matchOperatorSelect:{"10.3.0":"data-testid Select match operator",[u]:"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:{[u]:"data-testid Search section"},itemsV2:{[u]:"data-testid Search items"},cards:{[u]:"data-testid Search cards"},collapseFolder:{[u]:e=>`data-testid Collapse folder ${e}`},expandFolder:{[u]:e=>`data-testid Expand folder ${e}`},dashboardItem:{[u]:e=>`data-testid Dashboard search item ${e}`},dashboardCard:{[u]: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:{[u]:"data-testid Dashboard search item"}},DashboardLinks:{container:{[u]:"data-testid Dashboard link container"},dropDown:{[u]:"data-testid Dashboard link dropdown"},link:{[u]:"data-testid Dashboard link"}},LoadingIndicator:{icon:{"10.4.0":"data-testid Loading indicator",[u]:"Loading indicator"}},CallToActionCard:{buttonV2:{[u]:e=>`data-testid Call to action button ${e}`}},DataLinksContextMenu:{singleLink:{"10.3.0":"data-testid Data link",[u]:"Data link"}},DataLinksActionsTooltip:{tooltipWrapper:{"12.1.0":"data-testid Data links actions tooltip wrapper"}},CodeEditor:{container:{"10.2.3":"data-testid Code editor container",[u]:"Code editor container"}},ReactMonacoEditor:{editorLazy:{"11.1.0":"data-testid ReactMonacoEditor editorLazy"}},DashboardImportPage:{textarea:{[u]:"data-testid-import-dashboard-textarea"},submit:{[u]:"data-testid-load-dashboard"}},ImportDashboardForm:{name:{[u]:"data-testid-import-dashboard-title"},submit:{[u]:"data-testid-import-dashboard-submit"}},PanelAlertTabContent:{content:{"10.2.3":"data-testid Unified alert editor tab content",[u]:"Unified alert editor tab content"}},VisualizationPreview:{card:{[u]:e=>`data-testid suggestion-${e}`}},ColorSwatch:{name:{[u]:"data-testid-colorswatch"}},DashboardRow:{title:{[u]:e=>`data-testid dashboard-row-title-${e}`},wrapper:{"12.1.0":e=>`data-testid dashboard-row-wrapper-for-${e}`}},UserProfile:{profileSaveButton:{[u]:"data-testid-user-profile-save"},preferencesSaveButton:{[u]:"data-testid-shared-prefs-save"},orgsTable:{[u]:"data-testid-user-orgs-table"},sessionsTable:{[u]:"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:{"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",[u]:"annotations-type-input"},annotationsChoosePanelInput:{"11.1.0":"data-testid choose-panels-input",[u]:"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"}}}}},d={Alerting:{AddAlertRule:{url:{"10.1.0":"/alerting/new/alerting",[u]:"/alerting/new"}},EditAlertRule:{url:{[u]:e=>`alerting/${e}/edit`}}},Login:{url:{[u]:"/login"},username:{"10.2.3":"data-testid Username input field",[u]:"Username input field"},password:{"10.2.3":"data-testid Password input field",[u]:"Password input field"},submit:{"10.2.3":"data-testid Login button",[u]:"Login button"},skip:{"10.2.3":"data-testid Skip change password button"}},PasswordlessLogin:{url:{[u]:"/login/passwordless/authenticate"},email:{"10.2.3":"data-testid Email input field",[u]:"Email input field"},submit:{"10.2.3":"data-testid PasswordlessLogin button",[u]:"PasswordlessLogin button"}},Home:{url:{[u]:"/"}},DataSource:{name:{"10.3.0":"data-testid Data source settings page name input field",[u]:"Data source settings page name input field"},delete:{[u]:"Data source settings page Delete button"},readOnly:{"10.3.0":"data-testid Data source settings page read only message",[u]:"Data source settings page read only message"},saveAndTest:{"10.0.0":"data-testid Data source settings page Save and Test button",[u]:"Data source settings page Save and Test button"},alert:{"10.3.0":"data-testid Data source settings page Alert",[u]:"Data source settings page Alert"}},DataSources:{url:{[u]:"/datasources"},dataSources:{[u]:e=>`Data source list item ${e}`}},EditDataSource:{url:{"9.5.0":e=>`/datasources/edit/${e}`},settings:{"9.5.0":"Datasource settings page basic settings"}},AddDataSource:{url:{[u]:"/datasources/new"},dataSourcePluginsV2:{"9.3.1":e=>`Add new data source ${e}`,[u]:e=>`Data source plugin item ${e}`}},ConfirmModal:{delete:{"10.0.0":"data-testid Confirm Modal Danger Button",[u]:"Confirm Modal Danger Button"},input:{"12.2.0":"data-testid Confirm Modal Input"}},SecretsManagement:{SecretForm:{"12.2.0":"data-testid Secret Form"}},AddDashboard:{url:{[u]:"/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",[u]:"Add new panel"},itemButtonAddViz:{[u]:"Add new visualization menu item"},addNewRow:{"11.1.0":"data-testid Add new row",[u]:"Add new row"},addNewPanelLibrary:{"11.1.0":"data-testid Add new panel from panel library",[u]:"Add new panel from panel library"},Settings:{Annotations:{List:{url:{[u]:"/dashboard/new?orgId=1&editview=annotations"}},Edit:{url:{[u]:e=>`/dashboard/new?editview=annotations&editIndex=${e}`}}},Variables:{List:{url:{"11.3.0":"/dashboard/new?orgId=1&editview=variables",[u]:"/dashboard/new?orgId=1&editview=templating"}},Edit:{url:{"11.3.0":e=>`/dashboard/new?orgId=1&editview=variables&editIndex=${e}`,[u]:e=>`/dashboard/new?orgId=1&editview=templating&editIndex=${e}`}}}}},ImportDashboard:{url:{[u]:"/dashboard/import"}},Dashboard:{url:{[u]:e=>`/d/${e}`},DashNav:{nav:{[u]:"Dashboard navigation"},navV2:{[u]:"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"},SubMenu:{submenu:{[u]:"Dashboard submenu"},submenuItem:{[u]:"data-testid template variable"},submenuItemLabels:{[u]:e=>`data-testid Dashboard template variables submenu Label ${e}`},submenuItemValueDropDownValueLinkTexts:{[u]:e=>`data-testid Dashboard template variables Variable Value DropDown value link text ${e}`},submenuItemValueDropDownDropDown:{[u]:"Variable options"},submenuItemValueDropDownOptionTexts:{[u]: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:{[u]:e=>`Dashboard settings section item ${e}`},saveDashBoard:{[u]:"Dashboard settings aside actions Save button"},saveAsDashBoard:{[u]:"Dashboard settings aside actions Save As button"},title:{"11.2.0":"General"}},Annotations:{Edit:{urlParams:{[u]:e=>`editview=annotations&editIndex=${e}`}},List:{url:{[u]:e=>`/d/${e}?editview=annotations`},addAnnotationCTAV2:{[u]:"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",[u]:"Annotations settings name input"}},NewAnnotation:{panelFilterSelect:{"10.0.0":"data-testid annotations-panel-filter"},showInLabel:{"11.1.0":"data-testid show-in-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`,[u]:e=>`/d/${e}?editview=templating`},addVariableCTAV2:{[u]:"data-testid Call to action button Add variable"},newButton:{[u]:"Variable editor New variable button"},table:{[u]:"Variable editor Table"},tableRowNameFields:{[u]:e=>`Variable editor Table Name field ${e}`},tableRowDefinitionFields:{"10.1.0":e=>`Variable editor Table Definition field ${e}`},tableRowArrowUpButtons:{[u]:e=>`Variable editor Table ArrowUp button ${e}`},tableRowArrowDownButtons:{[u]:e=>`Variable editor Table ArrowDown button ${e}`},tableRowDuplicateButtons:{[u]:e=>`Variable editor Table Duplicate button ${e}`},tableRowRemoveButtons:{[u]:e=>`Variable editor Table Remove button ${e}`}},Edit:{urlParams:{"11.3.0":e=>`editview=variables&editIndex=${e}`,[u]:e=>`editview=templating&editIndex=${e}`},General:{headerLink:{[u]:"Variable editor Header link"},modeLabelNew:{[u]:"Variable editor Header mode New"},modeLabelEdit:{[u]:"Variable editor Header mode Edit"},generalNameInput:{[u]:"Variable editor Form Name field"},generalNameInputV2:{[u]:"data-testid Variable editor Form Name field"},generalTypeSelect:{[u]:"Variable editor Form Type select"},generalTypeSelectV2:{[u]:"data-testid Variable editor Form Type select"},generalLabelInput:{[u]:"Variable editor Form Label field"},generalLabelInputV2:{[u]:"data-testid Variable editor Form Label field"},generalHideSelect:{[u]:"Variable editor Form Hide select"},generalHideSelectV2:{[u]:"data-testid Variable editor Form Hide select"},selectionOptionsAllowCustomValueSwitch:{[u]:"data-testid Variable editor Form Allow Custom Value switch"},selectionOptionsMultiSwitch:{"10.4.0":"data-testid Variable editor Form Multi switch",[u]:"Variable editor Form Multi switch"},selectionOptionsIncludeAllSwitch:{"10.4.0":"data-testid Variable editor Form IncludeAll switch",[u]:"Variable editor Form IncludeAll switch"},selectionOptionsCustomAllInput:{"10.4.0":"data-testid Variable editor Form IncludeAll field",[u]:"Variable editor Form IncludeAll field"},previewOfValuesOption:{"10.4.0":"data-testid Variable editor Preview of Values option",[u]:"Variable editor Preview of Values option"},submitButton:{"10.4.0":"data-testid Variable editor Run Query button",[u]:"Variable editor Submit button"},applyButton:{"9.3.0":"data-testid Variable editor Apply button"}},QueryVariable:{closeButton:{[u]:"data-testid Query Variable editor close button"},editor:{[u]:"data-testid Query Variable editor"},previewButton:{[u]:"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",[u]:"Data source picker select container"},queryOptionsOpenButton:{[u]:"data-testid Query Variable editor open button"},queryOptionsRefreshSelect:{[u]:"Variable editor Form Query Refresh select"},queryOptionsRefreshSelectV2:{[u]:"data-testid Variable editor Form Query Refresh select"},queryOptionsRegExInput:{[u]:"Variable editor Form Query RegEx field"},queryOptionsRegExInputV2:{[u]:"data-testid Variable editor Form Query RegEx field"},queryOptionsSortSelect:{[u]:"Variable editor Form Query Sort select"},queryOptionsSortSelectV2:{[u]:"data-testid Variable editor Form Query Sort select"},queryOptionsQueryInput:{"10.4.0":"data-testid Variable editor Form Default Variable Query Editor textarea"},queryOptionsStaticOptionsToggle:{[u]:"Variable editor Form Query Static Options toggle"},queryOptionsStaticOptionsOrderDropdown:{[u]:"Variable editor Form Query Static Options Order dropdown"},valueGroupsTagsEnabledSwitch:{[u]:"Variable editor Form Query UseTags switch"},valueGroupsTagsTagsQueryInput:{[u]:"Variable editor Form Query TagsQuery field"},valueGroupsTagsTagsValuesQueryInput:{[u]:"Variable editor Form Query TagsValuesQuery field"}},ConstantVariable:{constantOptionsQueryInput:{[u]:"Variable editor Form Constant Query field"},constantOptionsQueryInputV2:{[u]:"data-testid Variable editor Form Constant Query field"}},DatasourceVariable:{datasourceSelect:{[u]:"data-testid datasource variable datasource type"},nameFilter:{[u]:"data-testid datasource variable datasource name filter"}},TextBoxVariable:{textBoxOptionsQueryInput:{[u]:"Variable editor Form TextBox Query field"},textBoxOptionsQueryInputV2:{[u]:"data-testid Variable editor Form TextBox Query field"}},CustomVariable:{customValueInput:{[u]:"data-testid custom-variable-input"},optionsOpenButton:{[u]:"data-testid custom-variable-options-open-button"},closeButton:{[u]:"data-testid custom-variable-close-button"}},IntervalVariable:{intervalsValueInput:{[u]:"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:{[u]:"data-testid Variable editor Form Static Options Add button"},labelInput:{[u]:"data-testid Variable editor Form Static Options Label input"},valueInput:{[u]:"data-testid Variable editor Form Static Options Value input"},moveButton:{[u]:"data-testid Variable editor Form Static Options Move button"},deleteButton:{[u]:"data-testid Variable editor Form Static Options Delete button"},row:{[u]:"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:{[u]:"/dashboards"},dashboards:{"10.2.0":e=>`Dashboard search item ${e}`},toggleView:{[u]:"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:{[u]:"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:{[u]:"/explore"},General:{container:{[u]:"data-testid Explore"},graph:{[u]:"Explore Graph"},table:{[u]:"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:{[u]:e=>`/d-solo/${e}`}},PluginsList:{page:{[u]:"Plugins list page"},list:{[u]:"Plugins list"},listItem:{[u]:"Plugins list item"},signatureErrorNotice:{"10.3.0":"data-testid Unsigned plugins notice",[u]:"Unsigned plugins notice"}},PluginPage:{page:{[u]:"Plugin page"},signatureInfo:{"10.3.0":"data-testid Plugin signature info",[u]:"Plugin signature info"},disabledInfo:{"10.3.0":"data-testid Plugin disabled info",[u]:"Plugin disabled info"}},PlaylistForm:{name:{[u]:"Playlist name"},interval:{[u]:"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:{[u]:e=>`/plugins/${e}`}},MigrateToCloud:{url:{"11.2.0":"/admin/migrate-to-cloud"}}},f=a(d),p=a(c),h={pages:f,components:p};t.Components=p,t.Pages=f,t.resolveSelectors=a,t.selectors=h,t.versionedComponents=c,t.versionedPages=d},79151:(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||{}),x=(e=>(e[e.After=1]="After",e[e.Before=-1]="Before",e[e.Center=0]="Center",e))(x||{}),E=(e=>(e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical",e))(E||{}),_=(e=>(e[e.Down=-1]="Down",e[e.Left=-1]="Left",e[e.Right=1]="Right",e[e.Up=1]="Up",e))(_||{});var O=(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))(O||{}),k=(e=>(e.Hidden="hidden",e.List="list",e.Table="table",e))(k||{});var R=(e=>(e.Auto="auto",e.Horizontal="horizontal",e.Vertical="vertical",e))(R||{});var C=(e=>(e.Background="background",e.BackgroundSolid="background_solid",e.None="none",e.Value="value",e))(C||{}),T=(e=>(e.Area="area",e.Line="line",e.None="none",e))(T||{}),A=(e=>(e.Auto="auto",e.Center="center",e))(A||{}),P=(e=>(e.Auto="auto",e.Name="name",e.None="none",e.Value="value",e.ValueAndName="value_and_name",e))(P||{}),I=(e=>(e.Inverted="inverted",e.SameAsValue="same_as_value",e.Standard="standard",e))(I||{}),D=(e=>(e.Multi="multi",e.None="none",e.Single="single",e))(D||{}),L=(e=>(e.Ascending="asc",e.Descending="desc",e.None="none",e))(L||{});var M=(e=>(e.Basic="basic",e.Gradient="gradient",e.Lcd="lcd",e))(M||{}),j=(e=>(e.Color="color",e.Hidden="hidden",e.Text="text",e))(j||{}),N=(e=>(e.Auto="auto",e.Hidden="hidden",e.Left="left",e.Top="top",e))(N||{}),F=(e=>(e.Auto="auto",e.Manual="manual",e))(F||{}),z=(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))(z||{}),$=(e=>(e.Basic="basic",e.Gradient="gradient",e))($||{}),V=(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))(V||{}),U=(e=>(e.exact="exact",e.none="none",e.numbers="numbers",e.signature="signature",e))(U||{}),B=(e=>(e.EQ="eq",e.GT="gt",e.GTE="gte",e.LT="lt",e.LTE="lte",e.NEQ="neq",e))(B||{}),H=(e=>(e.Auto="auto",e.Lg="lg",e.Md="md",e.Sm="sm",e))(H||{}),W=(e=>(e.Auto="auto",e.Bottom="bottom",e.Left="left",e.Right="right",e.Top="top",e))(W||{});const q={align:"auto",inspect:!1,wrapHeaderText:!1,cellOptions:{type:z.Auto}};var G=(e=>(e.NotStarted="NotStarted",e.Loading="Loading",e.Streaming="Streaming",e.Done="Done",e.Error="Error",e))(G||{});var K=(e=>(e[e.never=0]="never",e[e.onDashboardLoad=1]="onDashboardLoad",e[e.onTimeRangeChanged=2]="onTimeRangeChanged",e))(K||{}),Y=(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))(Y||{});var Q=(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))(Q||{});var X=(e=>(e.Absolute="absolute",e.Percentage="percentage",e))(X||{});var J=(e=>(e.RangeToText="range",e.RegexToText="regex",e.SpecialValue="special",e.ValueToText="value",e))(J||{}),Z=(e=>(e.Empty="empty",e.False="false",e.NaN="nan",e.Null="null",e.NullAndNan="null+nan",e.True="true",e))(Z||{});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=x,t.BarGaugeDisplayMode=M,t.BarGaugeNamePlacement=N,t.BarGaugeSizing=F,t.BarGaugeValueMode=j,t.BigValueColorMode=C,t.BigValueGraphMode=T,t.BigValueJustifyMode=A,t.BigValueTextMode=P,t.ComparisonOperation=B,t.ConnectionDirection=s,t.DashboardCursorSync=ee,t.DataTopic=r,t.DirectionDimensionMode=l,t.FieldColorModeId=Q,t.FrameGeometrySourceMode=u,t.GraphDrawStyle=v,t.GraphGradientMode=w,t.GraphThresholdsStyleMode=O,t.GraphTransform=g,t.HeatmapCalculationMode=c,t.HeatmapCellLayout=d,t.LegendDisplayMode=k,t.LineInterpolation=b,t.LoadingState=G,t.LogsDedupStrategy=U,t.LogsSortOrder=f,t.MappingType=J,t.PercentChangeColorMode=I,t.ResourceDimensionMode=i,t.ScalarDimensionMode=a,t.ScaleDimensionMode=n,t.ScaleDirection=_,t.ScaleDistribution=y,t.ScaleOrientation=E,t.SortOrder=L,t.SpecialValueMatch=Z,t.StackingMode=S,t.TableCellBackgroundDisplayMode=$,t.TableCellDisplayMode=z,t.TableCellHeight=H,t.TableCellTooltipPlacement=W,t.TextDimensionMode=o,t.ThresholdsMode=X,t.TooltipDisplayMode=D,t.VariableFormatID=V,t.VariableHide=te,t.VariableRefresh=K,t.VariableSort=Y,t.VisibilityMode=m,t.VizOrientation=R,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:[]}},74650:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(85959),a=r(48398),o=r(19426);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]})})},19426:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(95781),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})}},95781:(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}},45503:(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(65730),a=r(90116),o=r(35591),i=r(62757),s=r(23298);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}},24053:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>M,__assign:()=>o,__asyncDelegator:()=>O,__asyncGenerator:()=>_,__asyncValues:()=>k,__await:()=>E,__awaiter:()=>h,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>L,__classPrivateFieldSet:()=>D,__createBinding:()=>v,__decorate:()=>s,__disposeResources:()=>N,__esDecorate:()=>u,__exportStar:()=>g,__extends:()=>a,__generator:()=>m,__importDefault:()=>P,__importStar:()=>A,__makeTemplateObject:()=>R,__metadata:()=>p,__param:()=>l,__propKey:()=>d,__read:()=>y,__rest:()=>i,__rewriteRelativeImportExtension:()=>F,__runInitializers:()=>c,__setFunctionName:()=>f,__spread:()=>w,__spreadArray:()=>x,__spreadArrays:()=>S,__values:()=>b,default:()=>z});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 x(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 E(e){return this instanceof E?(this.v=e,this):new E(e)}function _(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 E?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 O(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:E(e[n](t)),done:!1}:a?a(t):t}:a}}function k(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 R(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},T=function(e){return T=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},T(e)};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=T(e),n=0;n<r.length;n++)"default"!==r[n]&&v(t,e,r[n]);return C(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function I(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 D(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 L(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 M(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 j="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 N(e){function t(t){e.error=e.hasError?new j(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 F(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 z={__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:x,__await:E,__asyncGenerator:_,__asyncDelegator:O,__asyncValues:k,__makeTemplateObject:R,__importStar:A,__importDefault:P,__classPrivateFieldGet:I,__classPrivateFieldSet:D,__classPrivateFieldIn:L,__addDisposableResource:M,__disposeResources:N,__rewriteRelativeImportExtension:F}},11625:(e,t,r)=>{"use strict";r.d(t,{fY:()=>a,qM:()=>o,uH:()=>n});var n=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(n||{});var a=(e=>(e.exact="exact",e.none="none",e.numbers="numbers",e.signature="signature",e))(a||{}),o=(e=>(e.Auto="auto",e.Lg="lg",e.Md="md",e.Sm="sm",e))(o||{})},96145:(e,t,r)=>{"use strict";r.d(t,{rw:()=>n,yV:()=>a});const n={allowCustomValue:!0,includeAll:!1,multi:!1,options:[],skipUrlSync:!1,staticOptions:[]};var a=(e=>(e[e.Crosshair=1]="Crosshair",e[e.Off=0]="Off",e[e.Tooltip=2]="Tooltip",e))(a||{})},42245:(e,t,r)=>{"use strict";r.d(t,{zL:()=>a});var n=r(96145),a=(e=>(e[e.dontHide=0]="dontHide",e[e.hideLabel=1]="hideLabel",e[e.hideVariable=2]="hideVariable",e[e.inControlsMenu=3]="inControlsMenu",e))(a||{});n.rw},87993:(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:x,intraBound:E,interBound:_,intraChars:O,toUpper:k,toLower:R,compare:C}=e;v??=p,g??=p,b??=p,y??=p,C??="undefined"==typeof Intl?n:new Intl.Collator(...l).compare;let T=e.letters??e.alpha;if(null!=T){let e=k(T),t=R(T);x=u(x,e,t),S=u(S,e,t),_=u(_,e,t),E=u(E,e,t),O=u(O,e,t),w=u(w,e,t)}let A=t?"u":"";const P='".+?"',I=new RegExp(P,"gi"+A),D=new RegExp(`(?:\\s+|^)-(?:${O}+|${P})`,"gi"+A);let{intraRules:L}=e;null==L&&(L=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 M=!!S,j=new RegExp(S,"g"+A),N=new RegExp(x,"g"+A),F=new RegExp("^"+x+"|"+x+"$","g"+A),z=new RegExp(w,"gi"+A);const $=(e,t=!1)=>{let r=[];e=(e=e.replace(I,e=>(r.push(e),i))).replace(F,""),t||(e=R(e)),M&&(e=e.replace(j,e=>e[0]+" "+e[1]));let n=0;return e.split(N).filter(e=>""!=e).map(e=>e===i?r[n++]:e)},V=/[^\d]+|\d+/g,U=(t,n=0,i=!1)=>{let s=$(t);if(0==s.length)return[];let l,u=Array(s.length).fill("");if(s=s.map((e,t)=>e.replace(z,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(V)){let e=n[0],{intraSlice:a,intraIns:o,intraSub:i,intraTrn:s,intraDel:l}=L(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)+O+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(O,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(O,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"+A),s,u]},B=(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 H=!!E,W=new RegExp(_,A),q=new RegExp(E,A);const G=(t,n,o)=>{let[i,s,l]=U(o,1),u=$(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,x=0,E=0,_=0,O=0,k=0,C=0,T=[];for(let t=0,n=2;t<d;t++,n+=2){let o=R(l[n]),i=f[t],c=p[t],v=i.length,b=o.length,P=o==i;if(l[n]==c&&O++,!P&&l[n+1].length>=v){let e=R(l[n+1]).indexOf(i);e>-1&&(T.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||W.test(s[e]))P&&y++,d=!0;else{if(2==r){m=!0;break}if(H&&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"+A);for(;a=p.exec(e);){c=a.index;let e=r+c,t=e-1;if(-1==t||W.test(s[t])){y++,f=!0;break}if(q.test(s[t]+s[e])){w++,f=!0;break}}f&&(d=!0,T.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||W.test(s[c]))P&&S++,f=!0;else{if(2==a){m=!0;break}if(H&&q.test(s[c-1]+s[c]))P&&x++,f=!0;else if(1==a){m=!0;break}}P&&(E+=v,d&&f&&_++)}if(b>v&&(C+=b-v),t>0&&(k+=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]=x,v.chars[b]=E,v.terms[b]=_,v.cases[b]=O,v.interIns[b]=k,v.intraIns[b]=C,v.start[b]=u;let e=s.match(c),r=e.index+e[1].length,n=T.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&&T[a]==r){let n=T[a+1],o=T[a+2],i=T[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(D,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=$(r);if(c.length>0){if(d=new RegExp(c.join("|"),"i"+A),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=$(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=B(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=B(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:B(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=G(n,t,a),i=e.sort(o,t,a,C);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:$,filter:B,info:G,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}},71792:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(85959),a=e=>"string"!=typeof e?{}:e.split(/ ?; ?/).reduce((e,t)=>{const[r,n]=t.split(/ ?: ?/).map((e,t)=>0===t?e.replace(/\s+/g,""):e.trim());if(r&&n){const t=r.replace(/(\w)-(\w)/g,(e,t,r)=>`${t}${r.toUpperCase()}`);let a=n.trim();Number.isNaN(Number(n))||(a=Number(n)),e[r.startsWith("-")?r:t]=a}return e},{});var o=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],i={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function s(e,t){const{key:r,level:s,...u}=t;switch(e.nodeType){case 1:return n.createElement(function(e){if(/[a-z]+[A-Z]+[a-z]+/.test(e))return e;return e.toLowerCase()}(e.nodeName),function(e,t){const r={key:t};if(e instanceof Element){const t=e.getAttribute("class");t&&(r.className=t),[...e.attributes].forEach(e=>{switch(e.name){case"class":break;case"style":r[e.name]=a(e.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[i[e.name]||e.name]=!0;break;default:r[i[e.name]||e.name]=e.value}})}return r}(e,r),l(e.childNodes,s,u));case 3:{const t=e.nodeValue?.toString()??"";if(!u.allowWhiteSpaces&&/^\s+$/.test(t)&&!/[\u00A0\u202F]/.test(t))return null;if(!e.parentNode)return t;const r=e.parentNode.nodeName.toLowerCase();return o.includes(r)?(/\S/.test(t)&&console.warn(`A textNode is not allowed inside '${r}'. Your text "${t}" will be ignored`),null):t}case 8:default:return null;case 11:return l(e.childNodes,s,t)}}function l(e,t,r){const n=[...e].map((e,n)=>c(e,{...r,index:n,level:t+1})).filter(Boolean);return n.length?n:null}function u(e,t={}){return"string"==typeof e?function(e,t={}){if(!e||"string"!=typeof e)return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:a="body > *",type:o="text/html"}=t;try{const i=(new DOMParser).parseFromString(e,o);if(r){const{childNodes:e}=i.body;return n?e:[...e].map(e=>c(e,t))}const s=i.querySelector(a)||i.body.childNodes[0];if(!(s instanceof Node))throw new TypeError("Error parsing input");return n?s:c(s,t)}catch(e){0}return null}(e,t):e instanceof Node?c(e,t):null}function c(e,t={}){if(!(e&&e instanceof Node))return null;const{actions:r=[],index:n=0,level:a=0,randomKey:o}=t;let i=e,l=`${a}-${n}`;const u=[];return o&&0===a&&(l=`${function(e=6){const t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=e;n>0;--n)r+=t[Math.round(61*Math.random())];return r}()}-${l}`),Array.isArray(r)&&r.forEach(t=>{t.condition(i,l,a)&&("function"==typeof t.pre&&(i=t.pre(i,l,a),i instanceof Node||(i=e)),"function"==typeof t.post&&u.push(t.post(i,l,a)))}),u.length?u:s(i,{key:l,level:a,...t})}var d=Object.defineProperty,f=(e,t,r)=>((e,t,r)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),p="react-inlinesvg",h={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function m(e){return e[Math.floor(Math.random()*e.length)]}function v(){return!("undefined"==typeof window||!window.document?.createElement)}function g(){return function(){if(!document)return!1;const e=document.createElement("div");e.innerHTML="<svg />";const t=e.firstChild;return!!t&&"http://www.w3.org/2000/svg"===t.namespaceURI}()&&"undefined"!=typeof window&&null!==window}async function b(e,t){const r=await fetch(e,t),n=r.headers.get("content-type"),[a]=(n??"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(e=>a.includes(e)))throw new Error(`Content type isn't valid: ${a}`);return r.text()}function y(e=1){return new Promise(t=>{setTimeout(t,1e3*e)})}var w,S=class{constructor(){f(this,"cacheApi"),f(this,"cacheStore"),f(this,"subscribers",[]),f(this,"isReady",!1),this.cacheStore=new Map;let e=p,t=!1;v()&&(e=window.REACT_INLINESVG_CACHE_NAME??p,t=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),t?caches.open(e).then(e=>{this.cacheApi=e}).catch(e=>{console.error(`Failed to open cache: ${e.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;const e=[...this.subscribers];this.subscribers.length=0,e.forEach(e=>{try{e()}catch(e){console.error(`Error in CacheStore subscriber callback: ${e.message}`)}})}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,t){return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,t):this.fetchAndAddToInternalCache(e,t)),this.cacheStore.get(e)?.content??""}set(e,t){this.cacheStore.set(e,t)}isCached(e){return this.cacheStore.get(e)?.status===h.LOADED}async fetchAndAddToInternalCache(e,t){const r=this.cacheStore.get(e);if(r?.status!==h.LOADING){if(!r?.content){this.cacheStore.set(e,{content:"",status:h.LOADING});try{const r=await b(e,t);this.cacheStore.set(e,{content:r,status:h.LOADED})}catch(t){throw this.cacheStore.set(e,{content:"",status:h.FAILED}),t}}}else await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:h.IDLE}),await this.fetchAndAddToInternalCache(e,t)})}async fetchAndAddToPersistentCache(e,t){const r=this.cacheStore.get(e);if(r?.status===h.LOADED)return;if(r?.status===h.LOADING)return void await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:h.IDLE}),await this.fetchAndAddToPersistentCache(e,t)});this.cacheStore.set(e,{content:"",status:h.LOADING});const n=await(this.cacheApi?.match(e));if(n){const t=await n.text();return void this.cacheStore.set(e,{content:t,status:h.LOADED})}try{await(this.cacheApi?.add(new Request(e,t)));const r=await(this.cacheApi?.match(e)),n=await(r?.text())??"";this.cacheStore.set(e,{content:n,status:h.LOADED})}catch(t){throw this.cacheStore.set(e,{content:"",status:h.FAILED}),t}}async handleLoading(e,t){for(let t=0;t<10;t++){if(this.cacheStore.get(e)?.status!==h.LOADING)return;await y(.1)}await t()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){const e=await this.cacheApi.keys();await Promise.allSettled(e.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function x(e){const t=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{t.current=e}),t.current}function E(e){const{baseURL:t,content:r,description:n,handleError:a,hash:o,preProcessor:i,title:s,uniquifyIDs:l=!1}=e;try{const e=function(e,t){if(t)return t(e);return e}(r,i),a=u(e,{nodeOnly:!0});if(!(a&&a instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const c=_(a,{baseURL:t,hash:o,uniquifyIDs:l});if(n){const e=c.querySelector("desc");e?.parentNode&&e.parentNode.removeChild(e);const t=document.createElementNS("http://www.w3.org/2000/svg","desc");t.innerHTML=n,c.prepend(t)}if(void 0!==s){const e=c.querySelector("title");if(e?.parentNode&&e.parentNode.removeChild(e),s){const e=document.createElementNS("http://www.w3.org/2000/svg","title");e.innerHTML=s,c.prepend(e)}}return c}catch(e){return a(e)}}function _(e,t){const{baseURL:r="",hash:n,uniquifyIDs:a}=t,o=["id","href","xlink:href","xlink:role","xlink:arcrole"],i=["href","xlink:href"];return a?([...e.children].forEach(e=>{if(e.attributes?.length){const t=Object.values(e.attributes).map(e=>{const t=e,a=/url\((.*?)\)/.exec(e.value);return a?.[1]&&(t.value=e.value.replace(a[0],`url(${r}${a[1]}__${n})`)),t});o.forEach(e=>{const r=t.find(t=>t.name===e);var a,o;r&&(a=e,o=r.value,!i.includes(a)||!o||o.includes("#"))&&(r.value=`${r.value}__${n}`)})}return e.children.length?_(e,t):e}),e):e}function O(e){const{cacheRequests:t=!0,children:r=null,description:a,fetchOptions:o,innerRef:i,loader:s=null,onError:l,onLoad:c,src:d,title:f,uniqueHash:p}=e,[y,S]=(0,n.useReducer)((e,t)=>({...e,...t}),{content:"",element:null,isCached:t&&w.isCached(e.src),status:h.IDLE}),{content:_,element:O,isCached:k,status:R}=y,C=x(e),T=x(y),A=(0,n.useRef)(p??function(e){const t="abcdefghijklmnopqrstuvwxyz",r=`${t}${t.toUpperCase()}1234567890`;let n="";for(let t=0;t<e;t++)n+=m(r);return n}(8)),P=(0,n.useRef)(!1),I=(0,n.useRef)(!1),D=(0,n.useCallback)(e=>{P.current&&(S({status:"Browser does not support SVG"===e.message?h.UNSUPPORTED:h.FAILED}),l?.(e))},[l]),L=(0,n.useCallback)((e,t=!1)=>{P.current&&S({content:e,isCached:t,status:h.LOADED})},[]),M=(0,n.useCallback)(async()=>{const e=await b(d,o);L(e)},[o,L,d]),j=(0,n.useCallback)(()=>{try{const t=u(E({...e,handleError:D,hash:A.current,content:_}));if(!t||!(0,n.isValidElement)(t))throw new Error("Could not convert the src to a React element");S({element:t,status:h.READY})}catch(e){D(e)}},[_,D,e]),N=(0,n.useCallback)(async()=>{const e=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(d);let r;if(e?r=e[1]?window.atob(e[2]):decodeURIComponent(e[2]):d.includes("<svg")&&(r=d),r)L(r);else try{if(t){const e=await w.get(d,o);L(e,!0)}else await M()}catch(e){D(e)}},[t,M,o,D,L,d]),F=(0,n.useCallback)(async()=>{P.current&&S({content:"",element:null,isCached:!1,status:h.LOADING})},[]);(0,n.useEffect)(()=>{if(P.current=!0,v()&&!I.current){try{if(R===h.IDLE){if(!g())throw new Error("Browser does not support SVG");if(!d)throw new Error("Missing src");F()}}catch(e){D(e)}return I.current=!0,()=>{P.current=!1}}},[]),(0,n.useEffect)(()=>{if(v()&&C&&C.src!==d){if(!d)return void D(new Error("Missing src"));F()}},[D,F,C,d]),(0,n.useEffect)(()=>{R===h.LOADED&&j()},[R,j]),(0,n.useEffect)(()=>{v()&&C&&C.src===d&&(C.title===f&&C.description===a||j())},[a,j,C,d,f]),(0,n.useEffect)(()=>{if(T)switch(R){case h.LOADING:T.status!==h.LOADING&&N();break;case h.LOADED:T.status!==h.LOADED&&j();break;case h.READY:T.status!==h.READY&&c?.(d,k)}},[N,j,k,c,T,d,R]);const z=function(e,...t){const r={};for(const n in e)({}).hasOwnProperty.call(e,n)&&(t.includes(n)||(r[n]=e[n]));return r}(e,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return v()?O?(0,n.cloneElement)(O,{ref:i,...z}):[h.UNSUPPORTED,h.FAILED].includes(R)?r:s:s}function k(e){w||(w=new S);const{loader:t}=e,[r,a]=(0,n.useState)(w.isReady);return(0,n.useEffect)(()=>{r||w.onReady(()=>{a(!0)})},[r]),r?n.createElement(O,{...e}):t}},57744:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HydratedRouter:()=>_a,RouterProvider:()=>wa,unstable_RSCHydratedRouter:()=>Ta,unstable_createCallServer:()=>Oa,unstable_getRSCStream:()=>Va});var n,a=r(85959),o=r.t(a,2),i=e=>{throw TypeError(e)},s=(e,t,r)=>(((e,t,r)=>{t.has(e)||i("Cannot "+r)})(e,t,"read from private field"),r?r.call(e):t.get(e)),l="popstate";function u(e={}){return v(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return p("",{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:h(t)},null,e)}function c(e,t){if(!1===e||null==e)throw new Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?m(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function h({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function m(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function v(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s="POP",u=null,c=d();function d(){return(i.state||{idx:null}).idx}function h(){s="POP";let e=d(),t=null==e?null:e-c;c=e,u&&u({action:s,location:v.location,delta:t})}function m(e){return g(e)}null==c&&(c=0,i.replaceState({...i.state,idx:c},""));let v={get action(){return s},get location(){return e(a,i)},listen(e){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(l,h),u=e,()=>{a.removeEventListener(l,h),u=null}},createHref:e=>t(a,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=p(v.location,e,t);r&&r(n,e),c=d()+1;let l=f(n,c),h=v.createHref(n);try{i.pushState(l,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(h)}o&&u&&u({action:s,location:v.location,delta:1})},replace:function(e,t){s="REPLACE";let n=p(v.location,e,t);r&&r(n,e),c=d();let a=f(n,c),l=v.createHref(n);i.replaceState(a,"",l),o&&u&&u({action:s,location:v.location,delta:0})},go:e=>i.go(e)};return v}function g(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),c(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}var b=class{constructor(e){var t,r,a;if(t=this,r=n,a=new Map,r.has(t)?i("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,a),e)for(let[t,r]of e)this.set(t,r)}get(e){if(s(this,n).has(e))return s(this,n).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){s(this,n).set(e,t)}};n=new WeakMap;var y=new Set(["lazy","caseSensitive","path","id","index","children"]);var w=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function S(e){return w.has(e)}function x(e,t,r=[],n={},a=!1){return e.map((e,o)=>{let i=[...r,String(o)],s="string"==typeof e.id?e.id:i.join("-");if(c(!0!==e.index||!e.children,"Cannot specify children on an index route"),c(a||!n[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let r={...e,id:s};return n[s]=E(r,t(r)),r}{let r={...e,id:s,children:void 0};return n[s]=E(r,t(r)),e.children&&(r.children=x(e.children,t,i,n,a)),r}})}function E(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function _(e,t,r="/"){return O(e,t,r,!1)}function O(e,t,r,n){let a=V(("string"==typeof t?m(t):t).pathname||"/",r);if(null==a)return null;let o=R(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=$(a);i=N(o[e],t,n)}return i}function k(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function R(e,t=[],r=[],n="",a=!1){let o=(e,o,i=a,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&i)return;c(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let u=Y([n,l.relativePath]),d=r.concat(l);e.children&&e.children.length>0&&(c(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),R(e.children,t,d,u,i)),(null!=e.path||e.index)&&t.push({path:u,score:j(u,e.index),routesMeta:d})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of C(e.path))o(e,t,!0,r);else o(e,t)}),t}function C(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=C(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)}var T=/^:[\w-]+$/,A=3,P=2,I=1,D=10,L=-2,M=e=>"*"===e;function j(e,t){let r=e.split("/"),n=r.length;return r.some(M)&&(n+=L),t&&(n+=P),r.filter(e=>!M(e)).reduce((e,t)=>e+(T.test(t)?A:""===t?I:D),n)}function N(e,t,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=F({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u),d=s.route;if(!c&&l&&r&&!n[n.length-1].route.index&&(c=F({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:Y([o,c.pathname]),pathnameBase:Q(Y([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=Y([o,c.pathnameBase]))}return i}function F(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=z(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,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const a=s[n];return e[t]=r&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function z(e,t=!1,r=!0){d("*"===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?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function $(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function V(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)||"/"}var U=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B=e=>U.test(e);function H(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 W(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 q(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function G(e){let t=q(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function K(e,t,r,n=!1){let a;"string"==typeof e?a=m(e):(a={...e},c(!a.pathname||!a.pathname.includes("?"),W("?","pathname","search",a)),c(!a.pathname||!a.pathname.includes("#"),W("#","pathname","hash",a)),c(!a.search||!a.search.includes("#"),W("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t="/"){let r,{pathname:n,search:a="",hash:o=""}="string"==typeof e?m(e):e;if(n)if(B(n))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),d(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${n}`)}r=n.startsWith("/")?H(n.substring(1),"/"):H(n,t)}else r=t;return{pathname:r,search:X(a),hash:J(o)}}(a,o),u=s&&"/"!==s&&s.endsWith("/"),f=(i||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!u&&!f||(l.pathname+="/"),l}var Y=e=>e.join("/").replace(/\/\/+/g,"/"),Q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",J=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Z=class{constructor(e,t){this.type="DataWithResponseInit",this.data=e,this.init=t||null}};function ee(e,t){return new Z(e,"number"==typeof t?{status:t}:t)}var te=(e,t=302)=>{let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,{...r,headers:n})},re=class{constructor(e,t,r,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 ne(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function ae(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var oe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ie(e,t){let r=e;if("string"!=typeof r||!U.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(oe)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),o=V(n.pathname,t);n.origin===e.origin&&null!=o?r=o+n.search+n.hash:a=!0}catch(e){d(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:r}}var se=Symbol("Uninstrumented");function le(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(r);for(let n of t)e[n]&&r[n].push(e[n])}}));let n={};if("function"==typeof t.lazy&&r.lazy.length>0){let e=ue(r.lazy,t.lazy,()=>{});e&&(n.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach(t=>{let a=e[t],o=r[`lazy.${t}`];if("function"==typeof a&&o.length>0){let e=ue(o,a,()=>{});e&&(n.lazy=Object.assign(n.lazy||{},{[t]:e}))}})}return["loader","action"].forEach(e=>{let a=t[e];if("function"==typeof a&&r[e].length>0){let t=a[se]??a,o=ue(r[e],t,(...e)=>de(e[0]));o&&("loader"===e&&!0===t.hydrate&&(o.hydrate=!0),o[se]=t,n[e]=o)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(n.middleware=t.middleware.map(e=>{let t=e[se]??e,n=ue(r.middleware,t,(...e)=>de(e[0]));return n?(n[se]=t,n):e})),n}function ue(e,t,r){return 0===e.length?null:async(...n)=>{let a=await ce(e,r(...n),()=>t(...n),e.length-1);if("error"===a.type)throw a.value;return a.value}}async function ce(e,t,r,n){let a,o=e[n];if(o){let i,s=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=ce(e,t,r,n-1),a=await i,c(a,"Expected a result"),"error"===a.type&&a.value instanceof Error?{status:"error",error:a.value}:{status:"success",error:void 0});try{await o(s,t)}catch(e){console.error("An instrumentation function threw an error:",e)}i||await s(),await i}else try{let e=await r();a={type:"success",value:e}}catch(e){a={type:"error",value:e}}return a||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function de(e){let{request:t,context:r,params:n,unstable_pattern:a}=e;return{request:pe(t),params:{...n},unstable_pattern:a,context:he(r)}}function fe(e,t){return{currentUrl:h(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function pe(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function he(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===me}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var me=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ve=["POST","PUT","PATCH","DELETE"],ge=new Set(ve),be=["GET",...ve],ye=new Set(be),we=new Set([301,302,303,307,308]),Se=new Set([307,308]),xe={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ee={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_e={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Oe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ke="remix-router-transitions",Re=Symbol("ResetLoaderData");function Ce(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;c(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],a=e.mapRouteProperties||Oe,o=a;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;o=e=>({...a(e),...le(t.map(e=>e.route).filter(Boolean),e)})}let i,s={},l=x(e.routes,o,void 0,s),u=e.basename||"/";u.startsWith("/")||(u=`/${u}`);let f,m,v=e.dataStrategy||Ve,y={...e.future},w=null,S=new Set,E=null,R=null,C=null,T=null!=e.hydrationData,A=_(l,e.history.location,u),P=!1,I=null;if(null!=A||e.patchRoutesOnNavigation){if(A&&!e.hydrationData){Be(A,l,e.history.location.pathname).active&&(A=null)}if(A)if(A.some(e=>e.route.lazy))f=!1;else if(A.some(e=>Ie(e.route))){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=A.findIndex(e=>void 0!==r[e.route.id]);f=A.slice(0,e+1).every(e=>!De(e.route,t,r))}else f=A.every(e=>!De(e.route,t,r))}else f=!0;else{f=!1,A=[];let t=Be(null,l,e.history.location.pathname);t.active&&t.matches&&(P=!0,A=t.matches)}}else{let t=lt(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=st(l);f=!0,A=r,I={[n.id]:t}}let D,L,M={historyAction:e.history.action,location:e.history.location,matches:A,initialized:f,navigation:xe,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||I,fetchers:new Map,blockers:new Map},j="POP",N=null,F=!1,z=!1,$=new Map,U=null,H=!1,W=!1,q=new Set,G=new Map,K=0,Y=-1,Q=new Map,X=new Set,J=new Map,Z=new Map,ee=new Set,te=new Map,re=null;function ae(e,t={}){e.matches&&(e.matches=e.matches.map(e=>{let t=s[e.route.id],r=e.route;return r.element!==t.element||r.errorElement!==t.errorElement||r.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e})),M={...M,...e};let r=[],n=[];M.fetchers.forEach((e,t)=>{"idle"===e.state&&(ee.has(t)?r.push(t):n.push(t))}),ee.forEach(e=>{M.fetchers.has(e)||G.has(e)||r.push(e)}),[...S].forEach(n=>n(M,{deletedFetchers:r,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),r.forEach(e=>ye(e)),n.forEach(e=>M.fetchers.delete(e))}function oe(t,r,{flushSync:n}={}){let a,o=null!=M.actionData&&null!=M.navigation.formMethod&&St(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==t.state?._isRedirect;a=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:o?M.actionData:null;let s=r.loaderData?at(M.loaderData,r.loaderData,r.matches||[],r.errors):M.loaderData,u=M.blockers;u.size>0&&(u=new Map(u),u.forEach((e,t)=>u.set(t,_e)));let c,d=!H&&Ue(t,r.matches||M.matches),f=!0===F||null!=M.navigation.formMethod&&St(M.navigation.formMethod)&&!0!==t.state?._isRedirect;if(i&&(l=i,i=void 0),H||"POP"===j||("PUSH"===j?e.history.push(t,t.state):"REPLACE"===j&&e.history.replace(t,t.state)),"POP"===j){let e=$.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:$.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(z){let e=$.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),$.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}ae({...r,actionData:a,loaderData:s,historyAction:j,location:t,initialized:!0,navigation:xe,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:f,blockers:u},{viewTransitionOpts:c,flushSync:!0===n}),j="POP",F=!1,z=!1,H=!1,W=!1,N?.resolve(),N=null,re?.resolve(),re=null}async function ie(t,r,a){D&&D.abort(),D=null,j=t,H=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(E&&C){let r=$e(e,t);E[r]=C()}}(M.location,M.matches),F=!0===(a&&a.preventScrollReset),z=!0===(a&&a.enableViewTransition);let c=i||l,d=a&&a.overrideNavigation,f=a?.initialHydration&&M.matches&&M.matches.length>0&&!P?M.matches:_(c,r,u),p=!0===(a&&a.flushSync);if(f&&M.initialized&&!W&&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}(M.location,r)&&!(a&&a.submission&&St(a.submission.formMethod)))return void oe(r,{matches:f},{flushSync:p});let h=Be(f,c,r.pathname);if(h.active&&h.matches&&(f=h.matches),!f){let{error:e,notFoundMatches:t,route:n}=ze(r.pathname);return void oe(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:p})}D=new AbortController;let m,v=Ze(e.history,r,D.signal,a&&a.submission),g=e.getContext?await e.getContext():new b;if(a&&a.pendingError)m=[it(f).route.id,{type:"error",error:a.pendingError}];else if(a&&a.submission&&St(a.submission.formMethod)){let t=await async function(t,r,a,i,c,d,f,p={}){me();let h,m=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(ae({navigation:m},{flushSync:!0===p.flushSync}),d){let e=await He(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=st(l);return{matches:t,pendingActionResult:[r.id,{type:"error",error:e.error}]}}let t=it(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:n}=ze(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:"error",error:t}]}}i=e.matches}let v=Et(i,r);if(v.route.action||v.route.lazy){let e=Ge(o,s,t,i,v,f?[]:n,c),r=await pe(t,e,c,null);if(h=r[v.route.id],!h)for(let e of i)if(r[e.route.id]){h=r[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else h={type:"error",error:lt(405,{method:t.method,pathname:r.pathname,routeId:v.route.id})};if(vt(h)){let r;if(p&&null!=p.replace)r=p.replace;else{r=Je(h.response.headers.get("Location"),new URL(t.url),u,e.history)===M.location.pathname+M.location.search}return await de(t,h,!0,{submission:a,replace:r}),{shortCircuited:!0}}if(mt(h)){let e=it(i,v.route.id);return!0!==(p&&p.replace)&&(j="PUSH"),{matches:i,pendingActionResult:[e.route.id,h,v.route.id]}}return{matches:i,pendingActionResult:[v.route.id,h]}}(v,r,a.submission,f,g,h.active,a&&!0===a.initialHydration,{replace:a.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(mt(n)&&ne(n.error)&&404===n.error.status)return D=null,void oe(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}f=t.matches||f,m=t.pendingActionResult,d=Ot(r,a.submission),p=!1,h.active=!1,v=Ze(e.history,v.url,v.signal)}let{shortCircuited:y,matches:w,loaderData:S,errors:x}=await async function(t,r,a,c,d,f,p,h,m,v,g,b,y){let w=f||Ot(r,p),S=p||h||_t(w),x=!H&&!v;if(d){if(x){let e=ce(b);ae({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:g})}let e=await He(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=st(l);return{matches:t,loaderData:{},errors:{[r.id]:e.error}}}let t=it(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=ze(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}a=e.matches}let E=i||l,{dsMatches:_,revalidatingFetchers:O}=Pe(t,c,o,s,e.history,M,a,S,r,v?[]:n,!0===v,W,q,ee,J,X,E,u,null!=e.patchRoutesOnNavigation,b,y);if(Y=++K,!e.dataStrategy&&!_.some(e=>e.shouldLoad)&&!_.some(e=>e.route.middleware&&e.route.middleware.length>0)&&0===O.length){let e=Ce();return oe(r,{matches:a,loaderData:{},errors:b&&mt(b[1])?{[b[0]]:b[1].error}:null,...ot(b),...e?{fetchers:new Map(M.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(x){let e={};if(!d){e.navigation=w;let t=ce(b);void 0!==t&&(e.actionData=t)}O.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=M.fetchers.get(e.key),r=kt(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),new Map(M.fetchers)}(O)),ae(e,{flushSync:g})}O.forEach(e=>{we(e.key),e.controller&&G.set(e.key,e.controller)});let k=()=>O.forEach(e=>we(e.key));D&&D.signal.addEventListener("abort",k);let{loaderResults:R,fetcherResults:C}=await he(_,O,t,c);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",k);O.forEach(e=>G.delete(e.key));let T=ut(R);if(T)return await de(t,T.result,!0,{replace:m}),{shortCircuited:!0};if(T=ut(C),T)return X.add(T.key),await de(t,T.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:A,errors:P}=nt(M,a,R,b,O,C);v&&M.errors&&(P={...M.errors,...P});let I=Ce(),L=Le(Y),j=I||L||O.length>0;return{matches:a,loaderData:A,errors:P,...j?{fetchers:new Map(M.fetchers)}:{}}}(v,r,f,g,h.active,d,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,p,m,a&&a.callSiteDefaultShouldRevalidate);y||(D=null,oe(r,{matches:w||f,...ot(m),loaderData:S,errors:x}))}function ce(e){return e&&!mt(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function de(n,a,o,{submission:i,fetcherSubmission:s,preventScrollReset:l,replace:d}={}){o||(N?.resolve(),N=null),a.response.headers.has("X-Remix-Revalidate")&&(W=!0);let f=a.response.headers.get("Location");c(f,"Expected a Location header on the redirect Response"),f=Je(f,new URL(n.url),u,e.history);let h=p(M.location,f,{_isRedirect:!0});if(r){let e=!1;if(a.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(B(f)){const r=g(f,!0);e=r.origin!==t.location.origin||null==V(r.pathname,u)}if(e)return void(d?t.location.replace(f):t.location.assign(f))}D=null;let m=!0===d||a.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:v,formAction:b,formEncType:y}=M.navigation;!i&&!s&&v&&b&&y&&(i=_t(M.navigation));let w=i||s;if(Se.has(a.response.status)&&w&&St(w.formMethod))await ie(m,h,{submission:{...w,formAction:f},preventScrollReset:l||F,enableViewTransition:o?z:void 0});else{let e=Ot(h,i);await ie(m,h,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:l||F,enableViewTransition:o?z:void 0})}}async function pe(e,t,r,n){let a,o={};try{a=await Ke(v,e,t,n,r,!1)}catch(e){return t.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:"error",error:e}}),o}if(e.signal.aborted)return o;if(!St(e.method))for(let e of t){if("error"===a[e.route.id]?.type)break;a.hasOwnProperty(e.route.id)||M.loaderData.hasOwnProperty(e.route.id)||M.errors&&M.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[r,n]of Object.entries(a))if(ht(n)){let a=n.result;o[r]={type:"redirect",response:Xe(a,e,r,t,u)}}else o[r]=await Qe(n);return o}async function he(e,t,r,n){let a=pe(r,e,n,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await pe(e.request,e.matches,n,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:lt(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function me(){W=!0,J.forEach((e,t)=>{G.has(t)&&q.add(t),we(t)})}function ve(e,t,r={}){M.fetchers.set(e,t),ae({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function ge(e,t,r,n={}){let a=it(M.matches,t);ye(e),ae({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function be(e){return Z.set(e,(Z.get(e)||0)+1),ee.has(e)&&ee.delete(e),M.fetchers.get(e)||Ee}function ye(e){let t=M.fetchers.get(e);!G.has(e)||t&&"loading"===t.state&&Q.has(e)||we(e),J.delete(e),Q.delete(e),X.delete(e),ee.delete(e),q.delete(e),M.fetchers.delete(e)}function we(e,t){let r=G.get(e);r&&(r.abort(t),G.delete(e))}function Re(e){for(let t of e){let e=Rt(be(t).data);M.fetchers.set(t,e)}}function Ce(){let e=[],t=!1;for(let r of X){let n=M.fetchers.get(r);c(n,`Expected fetcher: ${r}`),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return Re(e),t}function Le(e){let t=[];for(let[r,n]of Q)if(n<e){let e=M.fetchers.get(r);c(e,`Expected fetcher: ${r}`),"loading"===e.state&&(we(r),Q.delete(r),t.push(r))}return Re(t),t.length>0}function je(e){M.blockers.delete(e),te.delete(e)}function Ne(e,t){let r=M.blockers.get(e)||_e;c("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(M.blockers);n.set(e,t),ae({blockers:n})}function Fe({currentLocation:e,nextLocation:t,historyAction:r}){if(0===te.size)return;te.size>1&&d(!1,"A router only supports one blocker at a time");let n=Array.from(te.entries()),[a,o]=n[n.length-1],i=M.blockers.get(a);return i&&"proceeding"===i.state?void 0:o({currentLocation:e,nextLocation:t,historyAction:r})?a:void 0}function ze(e){let t=lt(404,{pathname:e}),r=i||l,{matches:n,route:a}=st(r);return{notFoundMatches:n,route:a,error:t}}function $e(e,t){if(R){return R(e,t.map(e=>k(e,M.loaderData)))||e.key}return e.key}function Ue(e,t){if(E){let r=$e(e,t),n=E[r];if("number"==typeof n)return n}return null}function Be(t,r,n){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:O(r,n,u,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:O(r,n,u,!0)}}}return{active:!1,matches:null}}async function He(t,r,n,a){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let c=t;for(;;){let t=null==i,d=i||l,f=s;try{await e.patchRoutesOnNavigation({signal:n,path:r,matches:c,fetcherKey:a,patch:(e,t)=>{n.aborted||Me(e,t,d,f,o,!1)}})}catch(e){return{type:"error",error:e,partialMatches:c}}finally{t&&!n.aborted&&(l=[...l])}if(n.aborted)return{type:"aborted"};let p=_(d,r,u),h=null;if(p){if(0===Object.keys(p[0].params).length)return{type:"success",matches:p};if(h=O(d,r,u,!0),!(h&&c.length<h.length&&We(c,h.slice(0,c.length))))return{type:"success",matches:p}}if(h||(h=O(d,r,u,!0)),!h||We(c,h))return{type:"success",matches:null};c=h}}function We(e,t){return e.length===t.length&&e.every((e,r)=>e.route.id===t[r].route.id)}return m={get basename(){return u},get future(){return y},get state(){return M},get routes(){return l},get window(){return t},initialize:function(){if(w=e.history.listen(({action:t,location:r,delta:n})=>{if(L)return L(),void(L=void 0);d(0===te.size||null!=n,"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 a=Fe({currentLocation:M.location,nextLocation:r,historyAction:t});if(a&&null!=n){let t=new Promise(e=>{L=e});return e.history.go(-1*n),Ne(a,{state:"blocked",location:r,proceed(){Ne(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(n))},reset(){let e=new Map(M.blockers);e.set(a,_e),ae({blockers:e})}}),N?.resolve(),void(N=null)}return ie(t,r)}),r){!function(e,t){try{let r=e.sessionStorage.getItem(ke);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,$);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ke,JSON.stringify(r))}catch(e){d(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,$);t.addEventListener("pagehide",e),U=()=>t.removeEventListener("pagehide",e)}return M.initialized||ie("POP",M.location,{initialHydration:!0}),m},subscribe:function(e){return S.add(e),()=>S.delete(e)},enableScrollRestoration:function(e,t,r){if(E=e,C=t,R=r||null,!T&&M.navigation===xe){T=!0;let e=Ue(M.location,M.matches);null!=e&&ae({restoreScrollPosition:e})}return()=>{E=null,C=null,R=null}},navigate:async function t(r,n){if(N?.resolve(),N=null,"number"==typeof r){N||(N=Ct());let t=N.promise;return e.history.go(r),t}let a=Te(M.location,M.matches,u,r,n?.fromRouteId,n?.relative),{path:o,submission:i,error:s}=Ae(!1,a,n),l=M.location,c=p(M.location,o,n&&n.state);c={...c,...e.history.encodeLocation(c)};let d=n&&null!=n.replace?n.replace:void 0,f="PUSH";!0===d?f="REPLACE":!1===d||null!=i&&St(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(f="REPLACE");let h=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,m=!0===(n&&n.flushSync),v=Fe({currentLocation:l,nextLocation:c,historyAction:f});v?Ne(v,{state:"blocked",location:c,proceed(){Ne(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(r,n)},reset(){let e=new Map(M.blockers);e.set(v,_e),ae({blockers:e})}}):await ie(f,c,{submission:i,pendingError:s,preventScrollReset:h,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m,callSiteDefaultShouldRevalidate:n&&n.unstable_defaultShouldRevalidate})},fetch:async function(t,r,a,d){we(t);let f=!0===(d&&d.flushSync),p=i||l,h=Te(M.location,M.matches,u,a,r,d?.relative),m=_(p,h,u),v=Be(m,p,h);if(v.active&&v.matches&&(m=v.matches),!m)return void ge(t,r,lt(404,{pathname:h}),{flushSync:f});let{path:g,submission:y,error:w}=Ae(!0,h,d);if(w)return void ge(t,r,w,{flushSync:f});let S=e.getContext?await e.getContext():new b,x=!0===(d&&d.preventScrollReset);y&&St(y.formMethod)?await async function(t,r,a,d,f,p,h,m,v,g){me(),J.delete(t);let b=M.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}(v,b),{flushSync:h});let y=new AbortController,w=Ze(e.history,a,y.signal,v);if(p){let e=await He(d,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ge(t,r,e.error,{flushSync:h});if(!e.matches)return void ge(t,r,lt(404,{pathname:a}),{flushSync:h});d=e.matches}let S=Et(d,a);if(!S.route.action&&!S.route.lazy){let e=lt(405,{method:v.formMethod,pathname:a,routeId:r});return void ge(t,r,e,{flushSync:h})}G.set(t,y);let x=K,E=Ge(o,s,w,d,S,n,f),O=await pe(w,E,f,t),k=O[S.route.id];if(!k)for(let e of E)if(O[e.route.id]){k=O[e.route.id];break}if(w.signal.aborted)return void(G.get(t)===y&&G.delete(t));if(ee.has(t)){if(vt(k)||mt(k))return void ve(t,Rt(void 0))}else{if(vt(k))return G.delete(t),Y>x?void ve(t,Rt(void 0)):(X.add(t),ve(t,kt(v)),de(w,k,!1,{fetcherSubmission:v,preventScrollReset:m}));if(mt(k))return void ge(t,r,k.error)}let R=M.navigation.location||M.location,C=Ze(e.history,R,y.signal),T=i||l,A="idle"!==M.navigation.state?_(T,M.navigation.location,u):M.matches;c(A,"Didn't find any matches after fetcher action");let P=++K;Q.set(t,P);let I=kt(v,k.data);M.fetchers.set(t,I);let{dsMatches:L,revalidatingFetchers:N}=Pe(C,f,o,s,e.history,M,A,v,R,n,!1,W,q,ee,J,X,T,u,null!=e.patchRoutesOnNavigation,[S.route.id,k],g);N.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=kt(void 0,r?r.data:void 0);M.fetchers.set(t,n),we(t),e.controller&&G.set(t,e.controller)}),ae({fetchers:new Map(M.fetchers)});let F=()=>N.forEach(e=>we(e.key));y.signal.addEventListener("abort",F);let{loaderResults:z,fetcherResults:$}=await he(L,N,C,f);if(y.signal.aborted)return;if(y.signal.removeEventListener("abort",F),Q.delete(t),G.delete(t),N.forEach(e=>G.delete(e.key)),M.fetchers.has(t)){let e=Rt(k.data);M.fetchers.set(t,e)}let V=ut(z);if(V)return de(C,V.result,!1,{preventScrollReset:m});if(V=ut($),V)return X.add(V.key),de(C,V.result,!1,{preventScrollReset:m});let{loaderData:U,errors:B}=nt(M,A,z,void 0,N,$);Le(P),"loading"===M.navigation.state&&P>Y?(c(j,"Expected pending action"),D&&D.abort(),oe(M.navigation.location,{matches:A,loaderData:U,errors:B,fetchers:new Map(M.fetchers)})):(ae({errors:B,loaderData:at(M.loaderData,U,A,B),fetchers:new Map(M.fetchers)}),W=!1)}(t,r,g,m,S,v.active,f,x,y,d&&d.unstable_defaultShouldRevalidate):(J.set(t,{routeId:r,path:g}),await async function(t,r,a,i,l,u,c,d,f){let p=M.fetchers.get(t);ve(t,kt(f,p?p.data:void 0),{flushSync:c});let h=new AbortController,m=Ze(e.history,a,h.signal);if(u){let e=await He(i,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ge(t,r,e.error,{flushSync:c});if(!e.matches)return void ge(t,r,lt(404,{pathname:a}),{flushSync:c});i=e.matches}let v=Et(i,a);G.set(t,h);let g=K,b=Ge(o,s,m,i,v,n,l),y=await pe(m,b,l,t),w=y[v.route.id];G.get(t)===h&&G.delete(t);if(m.signal.aborted)return;if(ee.has(t))return void ve(t,Rt(void 0));if(vt(w))return Y>g?void ve(t,Rt(void 0)):(X.add(t),void await de(m,w,!1,{preventScrollReset:d}));if(mt(w))return void ge(t,r,w.error);ve(t,Rt(w.data))}(t,r,g,m,S,v.active,f,x,y))},revalidate:function(){re||(re=Ct()),me(),ae({revalidation:"loading"});let e=re.promise;return"submitting"===M.navigation.state?e:"idle"===M.navigation.state?(ie(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),e):(ie(j||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===z}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:be,resetFetcher:function(e,t){we(e,t?.reason),ve(e,Rt(null))},deleteFetcher:function(e){let t=(Z.get(e)||0)-1;t<=0?(Z.delete(e),ee.add(e)):Z.set(e,t),ae({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),U&&U(),S.clear(),D&&D.abort(),M.fetchers.forEach((e,t)=>ye(t)),M.blockers.forEach((e,t)=>je(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||_e;return te.get(e)!==t&&te.set(e,t),r},deleteBlocker:je,patchRoutes:function(e,t,r=!1){let n=null==i;Me(e,t,i||l,s,o,r),n&&(l=[...l],ae({}))},_internalFetchControllers:G,_internalSetRoutes:function(e){s={},i=x(e,o,void 0,s)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ae(e)}},e.unstable_instrumentations&&(m=function(e,t){let r={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let n of t)e[n]&&r[n].push(e[n])}})),r.navigate.length>0){let t=e.navigate[se]??e.navigate,n=ue(r.navigate,t,(...t)=>{let[r,n]=t;return{to:"number"==typeof r||"string"==typeof r?r:r?h(r):".",...fe(e,n??{})}});n&&(n[se]=t,e.navigate=n)}if(r.fetch.length>0){let t=e.fetch[se]??e.fetch,n=ue(r.fetch,t,(...t)=>{let[r,,n,a]=t;return{href:n??".",fetcherKey:r,...fe(e,a??{})}});n&&(n[se]=t,e.fetch=n)}return e}(m,e.unstable_instrumentations.map(e=>e.router).filter(Boolean))),m}function Te(e,t,r,n,a,o){let i,s;if(a){i=[];for(let e of t)if(i.push(e),e.route.id===a){s=e;break}}else i=t,s=t[t.length-1];let l=K(n||".",G(i),V(e.pathname,r)||e.pathname,"path"===o);if(null==n&&(l.search=e.search,l.hash=e.hash),(null==n||""===n||"."===n)&&s){let e=xt(l.search);if(s.route.index&&!e)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(l.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();l.search=r?`?${r}`:""}}return"/"!==r&&(l.pathname=function({basename:e,pathname:t}){return"/"===t?e:Y([e,t])}({basename:r,pathname:l.pathname})),h(l)}function Ae(e,t,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:t};if(r.formMethod&&!wt(r.formMethod))return{path:t,error:lt(405,{method:r.formMethod})};let n,a,o=()=>({path:t,error:lt(400,{type:"invalid-body"})}),i=(r.formMethod||"get").toUpperCase(),s=ct(t);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!St(i))return o();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,[t,r])=>`${e}${t}=${r}\n`,""):String(r.body);return{path:t,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!St(i))return o();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return o()}}}if(c("function"==typeof FormData,"FormData is not available in this environment"),r.formData)n=et(r.formData),a=r.formData;else if(r.body instanceof FormData)n=et(r.body),a=r.body;else if(r.body instanceof URLSearchParams)n=r.body,a=tt(n);else if(null==r.body)n=new URLSearchParams,a=new FormData;else try{n=new URLSearchParams(r.body),a=tt(n)}catch(e){return o()}let l={formMethod:i,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(St(l.formMethod))return{path:t,submission:l};let u=m(t);return e&&u.search&&xt(u.search)&&n.append("index",""),u.search=`?${n}`,{path:h(u),submission:l}}function Pe(e,t,r,n,a,o,i,s,l,u,c,d,f,p,h,m,v,g,b,y,w){let S,x=y?mt(y[1])?y[1].error:y[1].data:void 0,E=a.createURL(o.location),O=a.createURL(l);if(c&&o.errors){let e=Object.keys(o.errors)[0];S=i.findIndex(t=>t.route.id===e)}else if(y&&mt(y[1])){let e=y[0];S=i.findIndex(t=>t.route.id===e)-1}let k=y?y[1].statusCode:void 0,R=k&&k>=400,C={currentUrl:E,currentParams:o.matches[0]?.params||{},nextUrl:O,nextParams:i[0].params,...s,actionResult:x,actionStatus:k},T=ae(i),A=i.map((a,i)=>{let{route:s}=a,l=null;if(null!=S&&i>S?l=!1:s.lazy?l=!0:Ie(s)?c?l=De(s,o.loaderData,o.errors):function(e,t,r){let n=!t||r.route.id!==t.route.id,a=!e.hasOwnProperty(r.route.id);return n||a}(o.loaderData,o.matches[i],a)&&(l=!0):l=!1,null!==l)return qe(r,n,e,T,a,u,t,l);let f=!1;"boolean"==typeof w?f=w:R?f=!1:(d||E.pathname+E.search===O.pathname+O.search||E.search!==O.search||function(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}(o.matches[i],a))&&(f=!0);let p={...C,defaultShouldRevalidate:f},h=Le(a,p);return qe(r,n,e,T,a,u,t,h,p,w)}),P=[];return h.forEach((e,s)=>{if(c||!i.some(t=>t.route.id===e.routeId)||p.has(s))return;let l=o.fetchers.get(s),h=l&&"idle"!==l.state&&void 0===l.data,y=_(v,e.path,g);if(!y){if(b&&h)return;return void P.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(s))return;let S=Et(y,e.path),x=new AbortController,E=Ze(a,e.path,x.signal),O=null;if(f.has(s))f.delete(s),O=Ge(r,n,E,y,S,u,t);else if(h)d&&(O=Ge(r,n,E,y,S,u,t));else{let e;e="boolean"==typeof w?w:!R&&d;let a={...C,defaultShouldRevalidate:e};Le(S,a)&&(O=Ge(r,n,E,y,S,u,t,a))}O&&P.push({key:s,routeId:e.routeId,path:e.path,matches:O,match:S,request:E,controller:x})}),{dsMatches:A,revalidatingFetchers:P}}function Ie(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function De(e,t,r){if(e.lazy)return!0;if(!Ie(e))return!1;let n=null!=t&&e.id in t,a=null!=r&&void 0!==r[e.id];return!(!n&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function Le(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,o){let i;if(e){let t=n[e];c(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=r;let s=[],l=[];if(t.forEach(e=>{let t=i.find(t=>je(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=x(s,a,[e||"_","patch",String(i?.length||"0")],n);i.push(...t)}if(o&&l.length>0)for(let e=0;e<l.length;e++){let{existingRoute:t,newRoute:r}=l[e],n=t,[o]=x([r],a,[],{},!0);Object.assign(n,{element:o.element?o.element:n.element,errorElement:o.errorElement?o.errorElement:n.errorElement,hydrateFallbackElement:o.hydrateFallbackElement?o.hydrateFallbackElement:n.hydrateFallbackElement})}}function je(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)=>t.children?.some(t=>je(e,t))))}var Ne=new WeakMap,Fe=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let a=r[t.id];if(c(a,"No route found in manifest"),!a.lazy||"object"!=typeof a.lazy)return;let o=a.lazy[e];if(!o)return;let i=Ne.get(a);i||(i={},Ne.set(a,i));let s=i[e];if(s)return s;let l=(async()=>{let t=function(e){return y.has(e)}(e),r=void 0!==a[e]&&"hasErrorBoundary"!==e;if(t)d(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(r)d(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await o();null!=t&&(Object.assign(a,{[e]:t}),Object.assign(a,n(a)))}"object"==typeof a.lazy&&(a.lazy[e]=void 0,Object.values(a.lazy).every(e=>void 0===e)&&(a.lazy=void 0))})();return i[e]=l,l},ze=new WeakMap;async function $e(e){let t=e.matches.filter(e=>e.shouldLoad),r={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,n)=>{r[t[n].route.id]=e}),r}async function Ve(e){return e.matches.some(e=>e.route.middleware)?Ue(e,()=>$e(e)):$e(e)}function Ue(e,t){return Be(e,t,e=>{if(yt(e))throw e;return e},ft,function(t,r,n){if(n)return Promise.resolve(Object.assign(n.value,{[r]:{type:"error",result:t}}));{let{matches:n}=e,a=Math.min(Math.max(n.findIndex(e=>e.route.id===r),0),Math.max(n.findIndex(e=>e.shouldCallHandler()),0)),o=it(n,n[a].route.id).route.id;return Promise.resolve({[o]:{type:"error",result:t}})}})}async function Be(e,t,r,n,a){let{matches:o,request:i,params:s,context:l,unstable_pattern:u}=e,c=o.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await He({request:i,params:s,context:l,unstable_pattern:u},c,t,r,n,a)}async function He(e,t,r,n,a,o,i=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??new Error(`Request aborted: ${s.method} ${s.url}`);let l=t[i];if(!l){return await r()}let u,[c,d]=l,f=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");try{let s=await He(e,t,r,n,a,o,i+1);return u={value:s},u.value}catch(e){return u={value:await o(e,c,u)},u.value}};try{let t=await d(e,f),r=null!=t?n(t):void 0;return a(r)?r:u?r??u.value:(u={value:await f()},u.value)}catch(e){return await o(e,c,u)}}function We(e,t,r,n,a){let o=Fe({key:"middleware",route:n.route,manifest:t,mapRouteProperties:e}),i=function(e,t,r,n,a){let o=r[e.id];if(c(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=ze.get(o);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let r=(async()=>{c("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),r={};for(let e in t){let n=t[e];if(void 0===n)continue;let a=S(e),i=void 0!==o[e]&&"hasErrorBoundary"!==e;a?d(!a,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):i?d(!i,`Route "${o.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.`):r[e]=n}Object.assign(o,r),Object.assign(o,{...n(o),lazy:void 0})})();return ze.set(o,r),r.catch(()=>{}),{lazyRoutePromise:r,lazyHandlerPromise:r}}let i,s=Object.keys(e.lazy),l=[];for(let o of s){if(a&&a.includes(o))continue;let s=Fe({key:o,route:e,manifest:r,mapRouteProperties:n});s&&(l.push(s),o===t&&(i=s))}let u=l.length>0?Promise.all(l).then(()=>{}):void 0;return u?.catch(()=>{}),i?.catch(()=>{}),{lazyRoutePromise:u,lazyHandlerPromise:i}}(n.route,St(r.method)?"action":"loader",t,e,a);return{middleware:o,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function qe(e,t,r,n,a,o,i,s,l=null,u){let c=!1,d=We(e,t,r,a,o);return{...a,_lazyPromises:d,shouldLoad:s,shouldRevalidateArgs:l,shouldCallHandler:e=>(c=!0,l?Le(a,"boolean"==typeof u?{...l,defaultShouldRevalidate:u}:"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):s),resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=c||s||e&&!St(r.method)&&(t||o),f=l&&l.length>0&&!o&&!t;return!u||!St(r.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,unstable_pattern:t,match:r,lazyHandlerPromise:n,lazyRoutePromise:a,handlerOverride:o,scopedContext:i}){let s,l,u=St(e.method),c=u?"action":"loader",d=n=>{let a,s=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${r.route.id}]`)):n({request:e,unstable_pattern:t,params:r.params,context:i},...void 0!==a?[a]:[]),d=(async()=>{try{return{type:"data",result:await(o?o(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,s])};try{let t=u?r.route.action:r.route.loader;if(n||a)if(t){let e,[r]=await Promise.all([d(t).catch(t=>{e=t}),n,a]);if(void 0!==e)throw e;s=r}else{await n;let t=u?r.route.action:r.route.loader;if(!t){if("action"===c){let t=new URL(e.url),n=t.pathname+t.search;throw lt(405,{method:e.method,pathname:n,routeId:r.route.id})}return{type:"data",result:void 0}}[s]=await Promise.all([d(t),a])}else{if(!t){let t=new URL(e.url);throw lt(404,{pathname:t.pathname+t.search})}s=await d(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}({request:r,unstable_pattern:n,match:a,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:i})}}}function Ge(e,t,r,n,a,o,i,s=null){return n.map(l=>l.route.id!==a.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:We(e,t,r,l,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:qe(e,t,r,ae(n),l,o,i,!0,s))}async function Ke(e,t,r,n,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let i={request:t,unstable_pattern:ae(r),params:r[0].params,context:a,matches:r},s=o?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=i;return Ue(t,()=>e({...t,fetcherKey:n,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...i,fetcherKey:n,runClientMiddleware:s});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch(e){}return l}async function Ye(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function Qe(e){let{result:t,type:r}=e;if(bt(t)){let e;try{e=await Ye(t)}catch(e){return{type:"error",error:e}}return"error"===r?{type:"error",error:new re(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===r?gt(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:dt(t),statusCode:ne(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:ne(t)?t.status:void 0}:gt(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Xe(e,t,r,n,a){let o=e.headers.get("Location");if(c(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!B(o)){let i=n.slice(0,n.findIndex(e=>e.route.id===r)+1);o=Te(new URL(t.url),i,a,o),e.headers.set("Location",o)}return e}function Je(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(B(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!=V(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 Ze(e,t,r,n){let a=e.createURL(ct(t)).toString(),o={signal:r};if(n&&St(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=et(n.formData):o.body=n.formData}return new Request(a,o)}function et(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function tt(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function rt(e,t,r,n=!1,a=!1){let o,i={},s=null,l=!1,u={},d=r&&mt(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(c(!vt(p),"Cannot handle redirect results in processLoaderData"),mt(p)){let t=p.error;if(void 0!==d&&(t=d,d=void 0),s=s||{},a)s[f]=t;else{let r=it(e,f);null==s[r.route.id]&&(s[r.route.id]=t)}n||(i[f]=Re),l||(l=!0,o=ne(p.error)?p.error.status:500),p.headers&&(u[f]=p.headers)}else i[f]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(o=p.statusCode),p.headers&&(u[f]=p.headers)}),void 0!==d&&r&&(s={[r[0]]:d},r[2]&&(i[r[2]]=void 0)),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:u}}function nt(e,t,r,n,a,o){let{loaderData:i,errors:s}=rt(t,r,n);return a.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:r,match:n,controller:a}=t;if(a&&a.signal.aborted)return;let i=o[r];if(c(i,"Did not find corresponding fetcher result"),mt(i)){let t=it(e.matches,n?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:i.error}),e.fetchers.delete(r)}else if(vt(i))c(!1,"Unhandled fetcher revalidation redirect");else{let t=Rt(i.data);e.fetchers.set(r,t)}}),{loaderData:i,errors:s}}function at(e,t,r,n){let a=Object.entries(t).filter(([,e])=>e!==Re).reduce((e,[t,r])=>(e[t]=r,e),{});for(let o of r){let r=o.route.id;if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function ot(e){return e?mt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function it(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 st(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 lt(e,{pathname:t,routeId:r,method:n,type:a,message:o}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",n&&t&&r?s=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:"invalid-body"===a&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s=`Route "${r}" does not match URL "${t}"`):404===e?(i="Not Found",s=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",n&&t&&r?s=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(s=`Invalid request method "${n.toUpperCase()}"`)),new re(e||500,i,new Error(s),!0)}function ut(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(vt(n))return{key:r,result:n}}}function ct(e){return h({..."string"==typeof e?m(e):e,hash:""})}function dt(e){return new re(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function ft(e){return null!=e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&pt(t))}function pt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function ht(e){return bt(e.result)&&we.has(e.result.status)}function mt(e){return"error"===e.type}function vt(e){return"redirect"===(e&&e.type)}function gt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function bt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function yt(e){return bt(e)&&(t=e.status,we.has(t))&&e.headers.has("Location");var t}function wt(e){return ye.has(e.toUpperCase())}function St(e){return ge.has(e.toUpperCase())}function xt(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Et(e,t){let r="string"==typeof t?m(t).search:t.search;if(e[e.length-1].route.index&&xt(r||""))return e[e.length-1];let n=q(e);return n[n.length-1]}function _t(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 Ot(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 kt(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 Rt(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 Ct(){let e,t,r=new Promise((n,a)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{a(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}var Tt=a.createContext(null);Tt.displayName="DataRouter";var At=a.createContext(null);At.displayName="DataRouterState";var Pt=a.createContext(!1);function It(){return a.useContext(Pt)}var Dt=a.createContext({isTransitioning:!1});Dt.displayName="ViewTransition";var Lt=a.createContext(new Map);Lt.displayName="Fetchers";var Mt=a.createContext(null);Mt.displayName="Await";var jt=a.createContext(null);jt.displayName="Navigation";var Nt=a.createContext(null);Nt.displayName="Location";var Ft=a.createContext({outlet:null,matches:[],isDataRoute:!1});Ft.displayName="Route";var zt=a.createContext(null);zt.displayName="RouteError";var $t=!0,Vt="REACT_ROUTER_ERROR";function Ut(){return null!=a.useContext(Nt)}function Bt(){return c(Ut(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Nt).location}var Ht="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Wt(e){a.useContext(jt).static||a.useLayoutEffect(e)}function qt(){let{isDataRoute:e}=a.useContext(Ft);return e?function(){let{router:e}=nr("useNavigate"),t=or("useNavigate"),r=a.useRef(!1);Wt(()=>{r.current=!0});let n=a.useCallback(async(n,a={})=>{d(r.current,Ht),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...a}))},[e,t]);return n}():function(){c(Ut(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(Tt),{basename:t,navigator:r}=a.useContext(jt),{matches:n}=a.useContext(Ft),{pathname:o}=Bt(),i=JSON.stringify(G(n)),s=a.useRef(!1);return Wt(()=>{s.current=!0}),a.useCallback((n,a={})=>{if(d(s.current,Ht),!s.current)return;if("number"==typeof n)return void r.go(n);let l=K(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Y([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,o,e])}()}a.createContext(null);function Gt(e,{relative:t}={}){let{matches:r}=a.useContext(Ft),{pathname:n}=Bt(),o=JSON.stringify(G(r));return a.useMemo(()=>K(e,JSON.parse(o),n,"path"===t),[e,o,n,t])}function Kt(e,t,r,n,o){c(Ut(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=a.useContext(jt),{matches:s}=a.useContext(Ft),l=s[s.length-1],u=l?l.params:{},f=l?l.pathname:"/",p=l?l.pathnameBase:"/",h=l&&l.route;if($t){let e=h&&h.path||"";lr(f,!h||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let v,g=Bt();if(t){let e="string"==typeof t?m(t):t;c("/"===p||e.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`),v=e}else v=g;let b=v.pathname||"/",y=b;if("/"!==p){let e=p.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=_(e,{pathname:y});$t&&(d(h||null!=w,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),d(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let S=tr(w&&w.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:Y([p,i.encodeLocation?i.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:Y([p,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),s,r,n,o);return t&&S?a.createElement(Nt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},S):S}function Yt(){let e=ir(),t=ne(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},s=null;return $t&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route."))),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:o},r):null,s)}var Qt=a.createElement(Yt,null),Xt=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Vt}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new re(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(Ft.Provider,{value:this.props.routeContext},a.createElement(zt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(Zt,{error:e},t):t}};Xt.contextType=Pt;var Jt=new WeakMap;function Zt({children:e,error:t}){let{basename:r}=a.useContext(jt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Vt}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let n=Jt.get(t);if(n)throw n;let o=ie(e.location,r);if(oe&&!Jt.get(t)){if(!o.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw Jt.set(t,r),r}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function er({routeContext:e,match:t,children:r}){let n=a.useContext(Tt);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(Ft.Provider,{value:e},r)}function tr(e,t=[],r=null,n=null,o=null){if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,s=r?.errors;if(null!=s){let e=i.findIndex(e=>e.route.id&&void 0!==s?.[e.route.id]);c(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let l=!1,u=-1;if(r)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){l=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}let d=r&&n?(e,t)=>{n(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ae(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,o)=>{let c,f=!1,p=null,h=null;r&&(c=s&&n.route.id?s[n.route.id]:void 0,p=n.route.errorElement||Qt,l&&(u<0&&0===o?(lr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,h=null):u===o&&(f=!0,h=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,o+1)),v=()=>{let t;return t=c?p:f?h:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(er,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(Xt,{location:r.location,revalidation:r.revalidation,component:p,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:d}):v()},null)}function rr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nr(e){let t=a.useContext(Tt);return c(t,rr(e)),t}function ar(e){let t=a.useContext(At);return c(t,rr(e)),t}function or(e){let t=function(e){let t=a.useContext(Ft);return c(t,rr(e)),t}(e),r=t.matches[t.matches.length-1];return c(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function ir(){let e=a.useContext(zt),t=ar("useRouteError"),r=or("useRouteError");return void 0!==e?e:t.errors?.[r]}var sr={};function lr(e,t,r){t||sr[e]||(sr[e]=!0,d(!1,r))}var ur={};function cr(e,t){e||ur[t]||(ur[t]=!0,console.warn(t))}var dr=o.useOptimistic,fr=()=>{};function pr(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&($t&&e.element&&d(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:a.createElement(e.Component),Component:void 0})),e.HydrateFallback&&($t&&e.hydrateFallbackElement&&d(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&($t&&e.errorElement&&d(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var hr=["HydrateFallback","hydrateFallbackElement"];var mr=class{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 vr({router:e,flushSync:t,onError:r,unstable_useTransitions:n}){let o=It();n=o||n;let[i,s]=a.useState(e.state),[l,u]=(c=i,dr?dr(c):[c,fr]);var c;let[d,f]=a.useState(),[p,h]=a.useState({isTransitioning:!1}),[m,v]=a.useState(),[g,b]=a.useState(),[y,w]=a.useState(),S=a.useRef(new Map),x=a.useCallback((o,{deletedFetchers:i,newErrors:l,flushSync:c,viewTransitionOpts:d})=>{l&&r&&Object.values(l).forEach(e=>r(e,{location:o.location,params:o.matches[0]?.params??{},unstable_pattern:ae(o.matches)})),o.fetchers.forEach((e,t)=>{void 0!==e.data&&S.current.set(t,e.data)}),i.forEach(e=>S.current.delete(e)),cr(!1===c||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let p=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(cr(null==d||p,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),d&&p){if(t&&c){t(()=>{g&&(m?.resolve(),g.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})});let r=e.window.document.startViewTransition(()=>{t(()=>s(o))});return r.finished.finally(()=>{t(()=>{v(void 0),b(void 0),f(void 0),h({isTransitioning:!1})})}),void t(()=>b(r))}g?(m?.resolve(),g.skipTransition(),w({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(f(o),h({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&c?t(()=>s(o)):!1===n?s(o):a.startTransition(()=>{!0===n&&u(e=>gr(e,o)),s(o)})},[e.window,t,g,m,n,u,r]);a.useLayoutEffect(()=>e.subscribe(x),[e,x]),a.useEffect(()=>{p.isTransitioning&&!p.flushSync&&v(new mr)},[p]),a.useEffect(()=>{if(m&&d&&e.window){let t=d,r=m.promise,o=e.window.document.startViewTransition(async()=>{!1===n?s(t):a.startTransition(()=>{!0===n&&u(e=>gr(e,t)),s(t)}),await r});o.finished.finally(()=>{v(void 0),b(void 0),f(void 0),h({isTransitioning:!1})}),b(o)}},[d,m,e.window,n,u]),a.useEffect(()=>{m&&d&&l.location.key===d.location.key&&m.resolve()},[m,g,l.location,d]),a.useEffect(()=>{!p.isTransitioning&&y&&(f(y.state),h({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),w(void 0))},[p.isTransitioning,y]);let E=a.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,r,n)=>e.navigate(t,{state:r,preventScrollReset:n?.preventScrollReset}),replace:(t,r,n)=>e.navigate(t,{replace:!0,state:r,preventScrollReset:n?.preventScrollReset})}),[e]),_=e.basename||"/",O=a.useMemo(()=>({router:e,navigator:E,static:!1,basename:_,onError:r}),[e,E,_,r]);return a.createElement(a.Fragment,null,a.createElement(Tt.Provider,{value:O},a.createElement(At.Provider,{value:l},a.createElement(Lt.Provider,{value:S.current},a.createElement(Dt.Provider,{value:p},a.createElement(yr,{basename:_,location:l.location,navigationType:l.historyAction,navigator:E,unstable_useTransitions:n},a.createElement(br,{routes:e.routes,future:e.future,state:l,onError:r})))))),null)}function gr(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var br=a.memo(function({routes:e,future:t,state:r,onError:n}){return Kt(e,void 0,r,n,t)});function yr({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:i=!1,unstable_useTransitions:s}){c(!Ut(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=a.useMemo(()=>({basename:l,navigator:o,static:i,unstable_useTransitions:s,future:{}}),[l,o,i,s]);"string"==typeof r&&(r=m(r));let{pathname:f="/",search:p="",hash:h="",state:v=null,key:g="default"}=r,b=a.useMemo(()=>{let e=V(f,l);return null==e?null:{location:{pathname:e,search:p,hash:h,state:v,key:g},navigationType:n}},[l,f,p,h,v,g,n]);return d(null!=b,`<Router basename="${l}"> is not able to match the URL "${f}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:a.createElement(jt.Provider,{value:u},a.createElement(Nt.Provider,{children:t,value:b}))}a.Component;var wr="get",Sr="application/x-www-form-urlencoded";function xr(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Er=null;var _r=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Or(e){return null==e||_r.has(e)?e:(d(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Sr}"`),null)}function kr(e,t){let r,n,a,o,i;if(xr(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?V(i,t):null,r=e.getAttribute("method")||wr,a=Or(e.getAttribute("enctype"))||Sr,o=new FormData(e)}else if(function(e){return xr(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return xr(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?V(s,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||wr,a=Or(e.getAttribute("formenctype"))||Or(i.getAttribute("enctype"))||Sr,o=new FormData(i,e),!function(){if(null===Er)try{new FormData(document.createElement("form"),0),Er=!1}catch(e){Er=!0}return Er}()){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(xr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=wr,n=null,a=Sr,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}}var Rr=-1,Cr=-2,Tr=-3,Ar=-4,Pr=-5,Ir=-6,Dr=-7,Lr="B",Mr="D",jr="E",Nr="M",Fr="N",zr="P",$r="R",Vr="S",Ur="Y",Br="U",Hr="Z",Wr=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qr="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0;function Gr(e){const{hydrated:t,values:r}=this;if("number"==typeof e)return Kr.call(this,e);if(!Array.isArray(e)||!e.length)throw new SyntaxError;const n=r.length;for(const t of e)r.push(t);return t.length=r.length,Kr.call(this,n)}function Kr(e){const{hydrated:t,values:r,deferred:n,plugins:a}=this;let o;const i=[[e,e=>{o=e}]];let s=[];for(;i.length>0;){const[e,o]=i.pop();switch(e){case Dr:o(void 0);continue;case Pr:o(null);continue;case Cr:o(NaN);continue;case Ir:o(1/0);continue;case Tr:o(-1/0);continue;case Ar:o(-0);continue}if(t[e]){o(t[e]);continue}const l=r[e];if(l&&"object"==typeof l){if(!Array.isArray(l)){const r={};t[e]=r;for(const e of Object.keys(l).reverse()){const t=[];i.push([l[e],e=>{t[1]=e}]),i.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{r[t[0]]=t[1]})}o(r);continue}if("string"!=typeof l[0]){const r=[];t[e]=r;for(let e=0;e<l.length;e++){const t=l[e];t!==Rr&&i.push([t,t=>{r[e]=t}])}o(r);continue}{const[r,u,c]=l;switch(r){case Mr:o(t[e]=new Date(u));continue;case Br:o(t[e]=new URL(u));continue;case Lr:o(t[e]=BigInt(u));continue;case $r:o(t[e]=new RegExp(u,c));continue;case Ur:o(t[e]=Symbol.for(u));continue;case Vr:const r=new Set;t[e]=r;for(let e=l.length-1;e>0;e--)i.push([l[e],e=>{r.add(e)}]);o(r);continue;case Nr:const d=new Map;t[e]=d;for(let e=l.length-2;e>0;e-=2){const t=[];i.push([l[e+1],e=>{t[1]=e}]),i.push([l[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}o(d);continue;case Fr:const f=Object.create(null);t[e]=f;for(const e of Object.keys(u).reverse()){const t=[];i.push([u[e],e=>{t[1]=e}]),i.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{f[t[0]]=t[1]})}o(f);continue;case zr:if(t[u])o(t[e]=t[u]);else{const r=new Wr;n[u]=r,o(t[e]=r.promise)}continue;case jr:const[,p,h]=l;let m=h&&qr&&qr[h]?new qr[h](p):new Error(p);t[e]=m,o(m);continue;case Hr:o(t[e]=t[u]);continue;default:if(Array.isArray(a)){const r=[],n=l.slice(1);for(let e=0;e<n.length;e++){const t=n[e];i.push([t,t=>{r[e]=t}])}s.push(()=>{for(const n of a){const a=n(l[0],...r);if(a)return void o(t[e]=a.value)}throw new SyntaxError});continue}throw new SyntaxError}}}else t[e]=l,o(l)}for(;s.length>0;)s.pop()();return o}async function Yr(e,t){const{plugins:r}=t??{},n=new Wr,a=e.pipeThrough(function(){const e=new TextDecoder;let t="";return new TransformStream({transform(r,n){const a=e.decode(r,{stream:!0}),o=(t+a).split("\n");t=o.pop()||"";for(const e of o)n.enqueue(e)},flush(e){t&&e.enqueue(t)}})}()).getReader(),o={values:[],hydrated:[],deferred:{},plugins:r},i=await Qr.call(o,a);let s=n.promise;return i.done?n.resolve():s=Xr.call(o,a).then(n.resolve).catch(e=>{for(const t of Object.values(o.deferred))t.reject(e);n.reject(e)}),{done:s.then(()=>a.closed),value:i.value}}async function Qr(e){const t=await e.read();if(!t.value)throw new SyntaxError;let r;try{r=JSON.parse(t.value)}catch(e){throw new SyntaxError}return{done:t.done,value:Gr.call(this,r)}}async function Xr(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;const r=t.value;switch(r[0]){case zr:{const e=r.indexOf(":"),t=Number(r.slice(1,e)),n=this.deferred[t];if(!n)throw new Error(`Deferred ID ${t} not found in stream`);const a=r.slice(e+1);let o;try{o=JSON.parse(a)}catch(e){throw new SyntaxError}const i=Gr.call(this,o);n.resolve(i);break}case jr:{const e=r.indexOf(":"),t=Number(r.slice(1,e)),n=this.deferred[t];if(!n)throw new Error(`Deferred ID ${t} not found in stream`);const a=r.slice(e+1);let o;try{o=JSON.parse(a)}catch(e){throw new SyntaxError}const i=Gr.call(this,o);n.reject(i);break}default:throw new SyntaxError}t=await e.read()}}async function Jr(e){let t={signal:e.signal};if("GET"!==e.method){t.method=e.method;let r=e.headers.get("Content-Type");r&&/\bapplication\/json\b/.test(r)?(t.headers={"Content-Type":r},t.body=JSON.stringify(await e.json())):r&&/\btext\/plain\b/.test(r)?(t.headers={"Content-Type":r},t.body=await e.text()):r&&/\bapplication\/x-www-form-urlencoded\b/.test(r)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}function Zr(e,t){if(!1===e||null==e)throw new Error(t)}var en,tn=Symbol("SingleFetchRedirect"),rn=class extends Error{},nn=202,an=new Set([100,101,204,205]);function on(e,t,r,n,a,o){let i=sn(e,e=>{let n=t.routes[e.route.id];Zr(n,"Route not found in manifest");let a=r[e.route.id];return{hasLoader:n.hasLoader,hasClientLoader:n.hasClientLoader,hasShouldRevalidate:Boolean(a?.shouldRevalidate)}},cn,n,a,o);return async e=>e.runClientMiddleware(i)}function sn(e,t,r,n,a,o,i=()=>!0){return async s=>{let{request:l,matches:u,fetcherKey:c}=s,d=e();if("GET"!==l.method)return async function(e,t,r,n){let a=e.matches.find(e=>e.shouldCallHandler());Zr(a,"No action match found");let o,i=await a.resolve(async i=>await i(async()=>{let{data:i,status:s}=await t(e,r,n,[a.route.id]);return o=s,fn(i,a.route.id)}));if(bt(i.result)||ne(i.result)||gt(i.result))return{[a.route.id]:i};return{[a.route.id]:{type:i.type,result:ee(i.result,o)}}}(s,r,a,o);let f=u.some(e=>{let{hasLoader:r,hasClientLoader:n}=t(e);return e.shouldCallHandler()&&r&&!n});return n||f?c?async function(e,t,r,n){let a=e.matches.find(e=>e.shouldCallHandler());Zr(a,"No fetcher match found");let o=a.route.id,i=await a.resolve(async a=>a(async()=>{let{data:a}=await t(e,r,n,[o]);return fn(a,o)}));return{[a.route.id]:i}}(s,r,a,o):async function(e,t,r,n,a,o,i,s=()=>!0){let l=new Set,u=!1,c=e.matches.map(()=>pn()),d=pn(),f={},p=Promise.all(e.matches.map(async(t,a)=>t.resolve(async p=>{c[a].resolve();let h=t.route.id,{hasLoader:m,hasClientLoader:v,hasShouldRevalidate:g}=r(t),b=!t.shouldRevalidateArgs||null==t.shouldRevalidateArgs.actionStatus||t.shouldRevalidateArgs.actionStatus<400;if(t.shouldCallHandler(b))if(s(t)&&v){m&&(u=!0);try{let t=await p(async()=>{let{data:t}=await n(e,o,i,[h]);return fn(t,h)});f[h]={type:"data",result:t}}catch(e){f[h]={type:"error",result:e}}}else{m&&l.add(h);try{let e=await p(async()=>fn(await d.promise,h));f[h]={type:"data",result:e}}catch(e){f[h]={type:"error",result:e}}}else u||(u=null!=t.shouldRevalidateArgs&&m&&!0===g)})));await Promise.all(c.map(e=>e.promise));let h=!t.state.initialized&&"idle"===t.state.navigation.state;if(!h&&0!==l.size||window.__reactRouterHdrActive){let t=a&&u&&l.size>0?[...l.keys()]:void 0;try{let r=await n(e,o,i,t);d.resolve(r.data)}catch(e){d.reject(e)}}else d.resolve({routes:{}});return await p,await async function(e,t,r,n){try{let a,o=await e;if("routes"in o)for(let e of t)if(e.route.id in o.routes){let t=o.routes[e.route.id];if("error"in t){a=t.error,null==n[e.route.id]?.result&&(n[e.route.id]={type:"error",result:a});break}}void 0!==a&&Array.from(r.values()).forEach(e=>{n[e].result instanceof rn&&(n[e].result=a)})}catch(e){}}(d.promise,e.matches,l,f),f}(s,d,t,r,n,a,o,i):async function(e,t,r,n,a){let o=e.matches.filter(e=>e.shouldCallHandler()),i={};return await Promise.all(o.map(o=>o.resolve(async s=>{try{let{hasClientLoader:l}=t(o),u=o.route.id,c=l?await s(async()=>{let{data:t}=await r(e,n,a,[u]);return fn(t,u)}):await s();i[o.route.id]={type:"data",result:c}}catch(e){i[o.route.id]={type:"error",result:e}}}))),i}(s,t,r,a,o)}}function ln(e){let t=e.searchParams.getAll("index");e.searchParams.delete("index");let r=[];for(let e of t)e&&r.push(e);for(let t of r)e.searchParams.append("index",t);return e}function un(e,t,r,n){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${n}`:a.pathname=`${a.pathname}.${n}`:"/"===a.pathname?a.pathname=`_root.${n}`:t&&"/"===V(a.pathname,t)?a.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}async function cn(e,t,r,n){let{request:a}=e,o=un(a.url,t,r,"data");"GET"===a.method&&(o=ln(o),n&&o.searchParams.set("_routes",n.join(",")));let i=await fetch(o,await Jr(a));if(i.status>=400&&!i.headers.has("X-Remix-Response"))throw new re(i.status,i.statusText,await i.text());if(204===i.status&&i.headers.has("X-Remix-Redirect"))return{status:nn,data:{redirect:{redirect:i.headers.get("X-Remix-Redirect"),status:Number(i.headers.get("X-Remix-Status")||"302"),revalidate:"true"===i.headers.get("X-Remix-Revalidate"),reload:"true"===i.headers.get("X-Remix-Reload-Document"),replace:"true"===i.headers.get("X-Remix-Replace")}}};if(an.has(i.status)){let e={};return n&&"GET"!==a.method&&(e[n[0]]={data:void 0}),{status:i.status,data:{routes:e}}}Zr(i.body,"No response body to decode");try{let e,t=await dn(i.body,window);if("GET"===a.method){let r=t.value;e=tn in r?{redirect:r[tn]}:{routes:r}}else{let r=t.value,a=n?.[0];Zr(a,"No routeId found for single fetch call decoding"),e="redirect"in r?{redirect:r}:{routes:{[a]:r}}}return{status:i.status,data:e}}catch(e){throw new Error("Unable to decode turbo-stream response")}}function dn(e,t){return Yr(e,{plugins:[(e,...r)=>{if("SanitizedError"===e){let[e,n,a]=r,o=Error;e&&e in t&&"function"==typeof t[e]&&(o=t[e]);let i=new o(n);return i.stack=a,{value:i}}if("ErrorResponse"===e){let[e,t,n]=r;return{value:new re(t,n,e)}}return"SingleFetchRedirect"===e?{value:{[tn]:r[0]}}:"SingleFetchClassInstance"===e?{value:r[0]}:"SingleFetchFallback"===e?{value:void 0}:void 0}]})}function fn(e,t){if("redirect"in e){let{redirect:t,revalidate:r,reload:n,replace:a,status:o}=e.redirect;throw te(t,{status:o,headers:{...r?{"X-Remix-Revalidate":"yes"}:null,...n?{"X-Remix-Reload-Document":"yes"}:null,...a?{"X-Remix-Replace":"yes"}:null}})}let r=e.routes[t];if(null==r)throw new rn(`No result found for routeId "${t}"`);if("error"in r)throw r.error;if("data"in r)return r.data;throw new Error(`Invalid response found for routeId "${t}"`)}function pn(){let e,t,r=new Promise((n,a)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{a(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}async function hn(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function mn(e){return e.css?e.css.map(e=>({rel:"stylesheet",href:e})):[]}async function vn(e,t){if(!e.css&&!t.links||!function(){if(void 0!==en)return en;let e=document.createElement("link");return en=e.relList.supports("preload"),e=null,en}())return;let r=[];if(e.css&&r.push(...mn(e)),t.links&&r.push(...t.links()),0===r.length)return;let n=[];for(let e of r)bn(e)||"stylesheet"!==e.rel||n.push({...e,rel:"preload",as:"style"});await Promise.all(n.map(gn))}async function gn(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let r=document.createElement("link");function n(){document.head.contains(r)&&document.head.removeChild(r)}Object.assign(r,e),r.onload=()=>{n(),t()},r.onerror=()=>{n(),t()},document.head.appendChild(r)})}function bn(e){return null!=e&&"string"==typeof e.page}function yn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function wn(e,t,r,n,a,o){let i=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function Sn(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let a=[n.module];return n.clientActionModule&&(a=a.concat(n.clientActionModule)),n.clientLoaderModule&&(a=a.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(a=a.concat(n.hydrateFallbackModule)),n.imports&&(a=a.concat(n.imports)),a}).flat(1),[...new Set(n)];var n}function xn(e,t){let r=new Set,n=new Set(t);return e.reduce((e,a)=>{if(t&&!bn(a)&&"script"===a.as&&a.href&&n.has(a.href))return e;let o=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(a));return r.has(o)||(r.add(o),e.push({key:o,link:a})),e},[])}function En(){return a.createElement(na,{title:"Loading...",renderScripts:!0},$t?a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this " +\n "when your app is loading JS modules and/or running `clientLoader` " +\n "functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +\n "for more information."\n );\n '}}):null)}function _n(e){let t={};return Object.values(e).forEach(e=>{if(e){let r=e.parentId||"";t[r]||(t[r]=[]),t[r].push(e)}}),t}function On(e,t,r){let n=Pn(t),o=!t.HydrateFallback||r&&"root"!==e.id?"root"===e.id?En:void 0:t.HydrateFallback,i=t.ErrorBoundary?t.ErrorBoundary:"root"===e.id?()=>a.createElement(ra,{error:ir()}):void 0;return"root"===e.id&&t.Layout?{...n?{element:a.createElement(t.Layout,null,a.createElement(n,null))}:{Component:n},...i?{errorElement:a.createElement(t.Layout,null,a.createElement(i,null))}:{ErrorBoundary:i},...o?{hydrateFallbackElement:a.createElement(t.Layout,null,a.createElement(o,null))}:{HydrateFallback:o}}:{Component:n,ErrorBoundary:i,HydrateFallback:o}}function kn(e,t,r,n,a,o){return Tn(t,r,n,a,o,"",_n(t),e)}function Rn(e,t){if("loader"===e&&!t.hasLoader||"action"===e&&!t.hasAction){let r=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(r),new re(400,"Bad Request",new Error(r),!0)}}function Cn(e,t){let r="clientAction"===e?"a":"an",n=`Route "${t}" does not have ${r} ${e}, but you are trying to submit to it. To fix this, please add ${r} \`${e}\` function to the route`;throw console.error(n),new re(405,"Method Not Allowed",new Error(n),!0)}function Tn(e,t,r,n,a,o="",i=_n(e),s){return(i[o]||[]).map(o=>{let l=t[o.id];function u(e){return Zr("function"==typeof e,"No single fetch function available for route handler"),e()}function c(e){return o.hasLoader?u(e):Promise.resolve(null)}function d(e){if(!o.hasAction)throw Cn("action",o.id);return u(e)}function f(e){import(e)}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function h(e){let r=t[o.id],n=r?vn(o,r):Promise.resolve();try{return e()}finally{await n}}let m={id:o.id,index:o.index,path:o.path};if(l){Object.assign(m,{...m,...On(o,l,a),middleware:l.clientMiddleware,handle:l.handle,shouldRevalidate:An(m.path,l,o,n,s)});let g=r&&r.loaderData&&o.id in r.loaderData,b=g?r?.loaderData?.[o.id]:void 0,y=r&&r.errors&&o.id in r.errors,w=y?r?.errors?.[o.id]:void 0,S=null==s&&(!0===l.clientLoader?.hydrate||!o.hasLoader);m.loader=async({request:e,params:t,context:r,unstable_pattern:n},a)=>{try{return await h(async()=>(Zr(l,"No `routeModule` available for critical-route loader"),l.clientLoader?l.clientLoader({request:e,params:t,context:r,unstable_pattern:n,async serverLoader(){if(Rn("loader",o),S){if(g)return b;if(y)throw w}return c(a)}}):c(a)))}finally{S=!1}},m.loader.hydrate=In(o.id,l.clientLoader,o.hasLoader,a),m.action=({request:e,params:t,context:r,unstable_pattern:n},i)=>h(async()=>{if(Zr(l,"No `routeModule` available for critical-route action"),!l.clientAction){if(a)throw Cn("clientAction",o.id);return d(i)}return l.clientAction({request:e,params:t,context:r,unstable_pattern:n,serverAction:async()=>(Rn("action",o),d(i))})})}else{let x;async function E(){return x||(x=(async()=>{(o.clientLoaderModule||o.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=async function(e,t){let r=hn(e,t),n=async function(e){if(!e.css)return;let t=mn(e);await Promise.all(t.map(gn))}(e),a=await r;return await Promise.all([n,vn(e,a)]),{Component:Pn(a),ErrorBoundary:a.ErrorBoundary,clientMiddleware:a.clientMiddleware,clientAction:a.clientAction,clientLoader:a.clientLoader,handle:a.handle,links:a.links,meta:a.meta,shouldRevalidate:a.shouldRevalidate}}(o,t);return p(o),await e})()),await x}o.hasClientLoader||(m.loader=(e,t)=>h(()=>c(t))),o.hasClientAction||(m.action=(e,t)=>h(()=>{if(a)throw Cn("clientAction",o.id);return d(t)})),m.lazy={loader:o.hasClientLoader?async()=>{let{clientLoader:e}=o.clientLoaderModule?await import(o.clientLoaderModule):await E();return Zr(e,"No `clientLoader` export found"),(t,r)=>e({...t,serverLoader:async()=>(Rn("loader",o),c(r))})}:void 0,action:o.hasClientAction?async()=>{let e=o.clientActionModule?import(o.clientActionModule):E();p(o);let{clientAction:t}=await e;return Zr(t,"No `clientAction` export found"),(e,r)=>t({...e,serverAction:async()=>(Rn("action",o),d(r))})}:void 0,middleware:o.hasClientMiddleware?async()=>{let{clientMiddleware:e}=o.clientMiddlewareModule?await import(o.clientMiddlewareModule):await E();return Zr(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await E();return An(m.path,e,o,n,s)},handle:async()=>(await E()).handle,Component:async()=>(await E()).Component,ErrorBoundary:o.hasErrorBoundary?async()=>(await E()).ErrorBoundary:void 0}}let v=Tn(e,t,r,n,a,o.id,i,s);return v.length>0&&(m.children=v),m})}function An(e,t,r,n,a){if(a)return function(e,t,r){let n=!1;return a=>n?t?t(a):a.defaultShouldRevalidate:(n=!0,r.has(e))}(r.id,t.shouldRevalidate,a);if(!n&&r.hasLoader&&!r.hasClientLoader){let r=e?z(e)[1].map(e=>e.paramName):[];const n=e=>r.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:n(t)})}return e=>n(e)}return t.shouldRevalidate}function Pn(e){if(null==e.default)return;return"object"==typeof e.default&&0===Object.keys(e.default).length?void 0:e.default}function In(e,t,r,n){return n&&"root"!==e||null!=t&&(!0===t.hydrate||!0!==r)}var Dn=new Set,Ln=1e3,Mn=new Set,jn=7680;function Nn(e,t){return"lazy"===e.mode&&!0===t}function Fn(e,t,r,n,a,o){if(Nn(n,r))return async({path:i,patch:s,signal:l,fetcherKey:u})=>{Mn.has(i)||await Vn([i],u?window.location.href:i,e,t,r,a,o,n.manifestPath,s,l)}}function zn(e,t,r,n,o,i){a.useEffect(()=>{if(!Nn(o,n)||!0===window.navigator?.connection?.saveData)return;function a(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let r="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;Mn.has(r)||Dn.add(r)}async function s(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(a);let s=Array.from(Dn.keys()).filter(e=>!Mn.has(e)||(Dn.delete(e),!1));if(0!==s.length)try{await Vn(s,null,t,r,n,i,e.basename,o.manifestPath,e.patchRoutes)}catch(e){console.error("Failed to fetch manifest patches",e)}}let l=function(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}(s,100);s();let u=new MutationObserver(()=>l());return u.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]}),()=>u.disconnect()},[n,i,t,r,e,o])}var $n="react-router-manifest-version";async function Vn(e,t,r,n,a,o,i,s,l,u){const c=new URLSearchParams;c.set("paths",e.sort().join(",")),c.set("version",r.version);let d,f=new URL(function(e,t){let r=e||"/__manifest";return null==t?r:`${t}${r}`.replace(/\/+/g,"/")}(s,i),window.location.origin);if(f.search=c.toString(),f.toString().length>jn)return void Dn.clear();try{let e=await fetch(f,{signal:u});if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);if(204===e.status&&e.headers.has("X-Remix-Reload-Document")){if(!t)return void console.warn("Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.");try{if(sessionStorage.getItem($n)===r.version)return void console.error("Unable to discover routes due to manifest version mismatch.");sessionStorage.setItem($n,r.version)}catch{}window.location.href=t,console.warn("Detected manifest version mismatch, reloading..."),await new Promise(()=>{})}else if(e.status>=400)throw new Error(await e.text());try{sessionStorage.removeItem($n)}catch{}d=await e.json()}catch(e){if(u?.aborted)return;throw e}let p=new Set(Object.keys(r.routes)),h=Object.values(d).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(r.routes,h),e.forEach(e=>function(e,t){if(t.size>=Ln){let e=t.values().next().value;t.delete(e)}t.add(e)}(e,Mn));let m=new Set;Object.values(h).forEach(e=>{!e||e.parentId&&h[e.parentId]||m.add(e.parentId)}),m.forEach(e=>l(e||null,Tn(h,n,null,a,o,e)))}function Un(){let e=a.useContext(Tt);return Zr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Bn(){let e=a.useContext(At);return Zr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Hn=a.createContext(void 0);function Wn(){let e=a.useContext(Hn);return Zr(e,"You must render this element inside a <HydratedRouter> element"),e}function qn(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Gn(e,t,r){if(r&&!Xn)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}Hn.displayName="FrameworkContext";function Kn({page:e,...t}){let{router:r}=Un(),n=a.useMemo(()=>_(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?a.createElement(Qn,{page:e,matches:n,...t}):null}function Yn(e){let{manifest:t,routeModules:r}=Wn(),[n,o]=a.useState([]);return a.useEffect(()=>{let n=!1;return async function(e,t,r){return xn((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await hn(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(yn).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||o(e)}),()=>{n=!0}},[e,t,r]),n}function Qn({page:e,matches:t,...r}){let n=Bt(),{future:o,manifest:i,routeModules:s}=Wn(),{basename:l}=Un(),{loaderData:u,matches:c}=Bn(),d=a.useMemo(()=>wn(e,t,c,i,n,"data"),[e,t,c,i,n]),f=a.useMemo(()=>wn(e,t,c,i,n,"assets"),[e,t,c,i,n]),p=a.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,a=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in u&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:r.add(e.route.id))}),0===r.size)return[];let c=un(e,l,o.unstable_trailingSlashAwareDataRequests,"data");return a&&r.size>0&&c.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[l,o.unstable_trailingSlashAwareDataRequests,u,n,i,d,t,e,s]),h=a.useMemo(()=>Sn(f,i),[f,i]),m=Yn(f);return a.createElement(a.Fragment,null,p.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),h.map(e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),m.map(({key:e,link:t})=>a.createElement("link",{key:e,nonce:r.nonce,...t})))}var Xn=!1;function Jn(){Xn=!0}function Zn(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:o,routeDiscovery:i,ssr:s}=Wn(),{router:l,static:u,staticContext:c}=Un(),{matches:d}=Bn(),f=It(),p=Nn(i,s);o&&(o.didRenderScripts=!0);let h=Gn(d,null,n);a.useEffect(()=>{Jn()},[]);let m=a.useMemo(()=>{if(f)return null;let n=c?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=u?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map((e,r)=>{let n=`route${r}`,a=t.routes[e.route.id];Zr(a,`Route ${e.route.id} not found in manifest`);let{clientActionModule:o,clientLoaderModule:i,clientMiddlewareModule:s,hydrateFallbackModule:l,module:u}=a,c=[...o?[{module:o,varName:`${n}_clientAction`}]:[],...i?[{module:i,varName:`${n}_clientLoader`}]:[],...s?[{module:s,varName:`${n}_clientMiddleware`}]:[],...l?[{module:l,varName:`${n}_HydrateFallback`}]:[],{module:u,varName:`${n}_main`}];return 1===c.length?`import * as ${n} from ${JSON.stringify(u)};`:[c.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${c.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),a=r.state.location.pathname.split("/").filter(Boolean),o=["/"];for(a.pop();a.length>0;)o.push(`/${a.join("/")}`),a.pop();o.forEach(e=>{let t=_(r.routes,e,r.basename);t&&t.forEach(e=>n.add(e.route.id))});let i=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:i,sri:!!e||void 0}}(t,l),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a.createElement(a.Fragment,null,a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n},type:void 0}),a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),v=Xn||f?[]:(g=t.entry.imports.concat(Sn(h,t,{includeHydrateFallback:!0})),[...new Set(g)]);var g;let b="object"==typeof t.sri?t.sri:{};return cr(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Xn||f?null:a.createElement(a.Fragment,null,"object"==typeof t.sri?a.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:b})}}):null,p?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:b[t.url],suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:b[t.entry.module],suppressHydrationWarning:!0}),v.map(t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:b[t],suppressHydrationWarning:!0})),m)}function ea(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}var ta=class extends a.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?a.createElement(ra,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function ra({error:e,isOutsideRemixApp:t}){console.error(e);let r,n=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(ne(e))return a.createElement(na,{title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),$t?n:null);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return a.createElement(na,{title:"Application Error!",isOutsideRemixApp:t},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}function na({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:o}=Wn();return o.root?.Layout&&!r?n:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,e)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?a.createElement(Zn,null):null)))}var aa="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{aa&&(window.__reactRouterVersion="7.12.0")}catch(e){}var oa=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ia=a.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:o,replace:i,state:s,target:l,to:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p,...m},v){let{basename:g,unstable_useTransitions:b}=a.useContext(jt),y="string"==typeof u&&oa.test(u),w=ie(u,g),S=function(e,{relative:t}={}){c(Ut(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=a.useContext(jt),{hash:o,pathname:i,search:s}=Gt(e,{relative:t}),l=i;return"/"!==r&&(l="/"===i?r:Y([r,i])),n.createHref({pathname:l,search:s,hash:o})}(u=w.to,{relative:n}),[x,E,_]=function(e,t){let r=a.useContext(Hn),[n,o]=a.useState(!1),[i,s]=a.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(n){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[n]);let h=()=>{o(!0)},m=()=>{o(!1),s(!1)};return r?"intent"!==e?[i,p,{}]:[i,p,{onFocus:qn(l,h),onBlur:qn(u,m),onMouseEnter:qn(c,h),onMouseLeave:qn(d,m),onTouchStart:qn(f,h)}]:[!1,p,{}]}(r,m),O=function(e,{target:t,replace:r,state:n,preventScrollReset:o,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let c=qt(),d=Bt(),f=Gt(e,{relative:i});return a.useCallback(p=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(p,t)){p.preventDefault();let t=void 0!==r?r:h(d)===h(f),m=()=>c(e,{replace:t,state:n,preventScrollReset:o,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l});u?a.startTransition(()=>m()):m()}},[d,c,f,r,n,t,e,o,i,s,l,u])}(u,{replace:i,state:s,target:l,preventScrollReset:d,relative:n,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:b});let k=a.createElement("a",{...m,..._,href:w.absoluteURL||S,onClick:w.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||O(t)},ref:ea(v,E),target:l,"data-discover":y||"render"!==t?void 0:"true"});return x&&!y?a.createElement(a.Fragment,null,k,a.createElement(Kn,{page:S})):k});ia.displayName="Link",a.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:o,to:i,viewTransition:s,children:l,...u},d){let f=Gt(i,{relative:u.relative}),p=Bt(),h=a.useContext(At),{navigator:m,basename:v}=a.useContext(jt),g=null!=h&&function(e,{relative:t}={}){let r=a.useContext(Dt);c(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=ua("useViewTransitionState"),o=Gt(e,{relative:t});if(!r.isTransitioning)return!1;let i=V(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=V(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=F(o.pathname,s)||null!=F(o.pathname,i)}(f)&&!0===s,b=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,y=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(y=y.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&v&&(w=V(w,v)||w);const S="/"!==b&&b.endsWith("/")?b.length-1:b.length;let x,E=y===b||!n&&y.startsWith(b)&&"/"===y.charAt(S),_=null!=w&&(w===b||!n&&w.startsWith(b)&&"/"===w.charAt(b.length)),O={isActive:E,isPending:_,isTransitioning:g},k=E?e:void 0;x="function"==typeof r?r(O):[r,E?"active":null,_?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let R="function"==typeof o?o(O):o;return a.createElement(ia,{...u,"aria-current":k,className:x,ref:d,style:R,to:i,viewTransition:s},"function"==typeof l?l(O):l)}).displayName="NavLink";var sa=a.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:i,method:s=wr,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:m,...v},g)=>{let{unstable_useTransitions:b}=a.useContext(jt),y=fa(),w=function(e,{relative:t}={}){let{basename:r}=a.useContext(jt),n=a.useContext(Ft);c(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),i={...Gt(e||".",{relative:t})},s=Bt();if(null==e){i.search=s.search;let e=new URLSearchParams(i.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();i.search=r?`?${r}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(i.pathname="/"===i.pathname?r:Y([r,i.pathname]));return h(i)}(l,{relative:d}),S="get"===s.toLowerCase()?"get":"post",x="string"==typeof l&&oa.test(l);return a.createElement("form",{ref:g,method:S,action:w,onSubmit:n?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,l=n?.getAttribute("formmethod")||s,c=()=>y(n||e.currentTarget,{fetcherKey:t,method:l,navigate:r,replace:o,state:i,relative:d,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:m});b&&!1!==r?a.startTransition(()=>c()):c()},...v,"data-discover":x||"render"!==e?void 0:"true"})});function la(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ua(e){let t=a.useContext(Tt);return c(t,la(e)),t}sa.displayName="Form";var ca=0,da=()=>`__${String(++ca)}__`;function fa(){let{router:e}=ua("useSubmit"),{basename:t}=a.useContext(jt),r=or("useRouteId"),n=e.fetch,o=e.navigate;return a.useCallback(async(e,a={})=>{let{action:i,method:s,encType:l,formData:u,body:c}=kr(e,t);if(!1===a.navigate){let e=a.fetcherKey||da();await n(e,r,a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||s,formEncType:a.encType||l,flushSync:a.flushSync})}else await o(a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||s,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,o,t,r])}new TextEncoder;var pa=class extends a.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:null,location:e.location}:{error:t.error,location:t.location}}render(){return this.state.error?a.createElement(ma,{error:this.state.error,renderAppShell:!0}):this.props.children}};function ha({renderAppShell:e,title:t,children:r}){return e?a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,t)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r))):r}function ma({error:e,renderAppShell:t}){console.error(e);let r,n=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(ne(e))return a.createElement(ha,{renderAppShell:t,title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),$t?n:null);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return a.createElement(ha,{renderAppShell:t,title:"Application Error!"},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}function va(e,t){t=Array.isArray(t)?t:[t];for(const r of t)e[r.id]={links:r.links,meta:r.meta,default:ga}}var ga=()=>null;o.use;function ba({state:e,routes:t,getRouteInfo:r,location:n,basename:a,isSpaMode:o}){let i={...e,loaderData:{...e.loaderData}},s=_(t,n,a);if(s)for(let e of s){let t=e.route.id,n=r(t);!In(t,n.clientLoader,n.hasLoader,o)||!n.hasHydrateFallback&&n.hasLoader?n.hasLoader||(i.loaderData[t]=null):delete i.loaderData[t]}return i}var ya=r(48398);function wa(e){return a.createElement(vr,{flushSync:ya.flushSync,...e})}var Sa=null,xa=null;function Ea({getContext:e,unstable_instrumentations:t}){if(function(){if(!Sa&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(!0===window.__reactRouterManifest.sri){const e=document.querySelector("script[rr-importmap]");if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error("Failed to parse import map",e)}}Sa={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}(),!Sa)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let r=Sa;if(!Sa.stateDecodingPromise){let e=Sa.context.stream;c(e,"No stream found for single fetch decoding"),Sa.context.stream=void 0,Sa.stateDecodingPromise=dn(e,window).then(e=>{Sa.context.state=e.value,r.stateDecodingPromise.value=!0}).catch(e=>{r.stateDecodingPromise.error=e})}if(Sa.stateDecodingPromise.error)throw Sa.stateDecodingPromise.error;if(!Sa.stateDecodingPromise.value)throw Sa.stateDecodingPromise;let n,a=Tn(Sa.manifest.routes,Sa.routeModules,Sa.context.state,Sa.context.ssr,Sa.context.isSpaMode);if(Sa.context.isSpaMode){let{loaderData:e}=Sa.context.state;Sa.manifest.routes.root?.hasLoader&&e&&"root"in e&&(n={loaderData:{root:e.root}})}else n=ba({state:Sa.context.state,routes:a,getRouteInfo:e=>({clientLoader:Sa.routeModules[e]?.clientLoader,hasLoader:!0===Sa.manifest.routes[e]?.hasLoader,hasHydrateFallback:null!=Sa.routeModules[e]?.HydrateFallback}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:Sa.context.isSpaMode}),n&&n.errors&&(n.errors=function(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 re(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=n.stack,r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack=n.stack,r[e]=t}}else r[e]=n;return r}(n.errors));let o=Ce({routes:a,history:u(),basename:Sa.context.basename,getContext:e,hydrationData:n,hydrationRouteProperties:hr,unstable_instrumentations:t,mapRouteProperties:pr,future:{middleware:Sa.context.future.v8_middleware},dataStrategy:on(()=>o,Sa.manifest,Sa.routeModules,Sa.context.ssr,Sa.context.basename,Sa.context.future.unstable_trailingSlashAwareDataRequests),patchRoutesOnNavigation:Fn(Sa.manifest,Sa.routeModules,Sa.context.ssr,Sa.context.routeDiscovery,Sa.context.isSpaMode,Sa.context.basename)});return Sa.router=o,o.state.initialized&&(Sa.routerInitialized=!0,o.initialize()),o.createRoutesForHMR=kn,window.__reactRouterDataRouter=o,o}function _a(e){xa||(xa=Ea({getContext:e.getContext,unstable_instrumentations:e.unstable_instrumentations}));let[t,r]=a.useState(void 0);a.useEffect(()=>{0},[]),a.useEffect(()=>{0},[t]);let[n,o]=a.useState(xa.state.location);return a.useLayoutEffect(()=>{Sa&&Sa.router&&!Sa.routerInitialized&&(Sa.routerInitialized=!0,Sa.router.initialize())},[]),a.useLayoutEffect(()=>{if(Sa&&Sa.router)return Sa.router.subscribe(e=>{e.location!==n&&o(e.location)})},[n]),c(Sa,"ssrInfo unavailable for HydratedRouter"),zn(xa,Sa.manifest,Sa.routeModules,Sa.context.ssr,Sa.context.routeDiscovery,Sa.context.isSpaMode),a.createElement(a.Fragment,null,a.createElement(Hn.Provider,{value:{manifest:Sa.manifest,routeModules:Sa.routeModules,future:Sa.context.future,criticalCss:t,ssr:Sa.context.ssr,isSpaMode:Sa.context.isSpaMode,routeDiscovery:Sa.context.routeDiscovery}},a.createElement(ta,{location:n},a.createElement(wa,{router:xa,unstable_useTransitions:e.unstable_useTransitions,onError:e.onError}))),a.createElement(a.Fragment,null))}function Oa({createFromReadableStream:e,createTemporaryReferenceSet:t,encodeReply:r,fetch:n=fetch}){const o=window;return async(i,s)=>{let l=o.__routerActionID=(o.__routerActionID??(o.__routerActionID=0))+1;const u=t(),c=n(new Request(location.href,{body:await r(s,{temporaryReferences:u}),method:"POST",headers:{Accept:"text/x-component","rsc-action-id":i}})).then(t=>{if(!t.body)throw new Error("No response body");return e(t.body,{temporaryReferences:u})});return a.startTransition(()=>Promise.resolve(c).then(async e=>{if("redirect"===e.type)return e.reload||Fa(e.location)?void(window.location.href=e.location):void a.startTransition(()=>{o.__reactRouterDataRouter.navigate(e.location,{replace:e.replace})});if("action"!==e.type)throw new Error("Unexpected payload type");const t=await e.rerender;if(t&&0<l&&o.__routerActionID<=l){if("redirect"===t.type)return t.reload||Fa(t.location)?void(window.location.href=t.location):void a.startTransition(()=>{o.__reactRouterDataRouter.navigate(t.location,{replace:t.replace})});a.startTransition(()=>{let e;for(const r of t.matches)o.__reactRouterDataRouter.patchRoutes(e?.id??null,[Aa(r)],!0),e=r;window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp({loaderData:Object.assign({},o.__reactRouterDataRouter.state.loaderData,t.loaderData),errors:t.errors?Object.assign({},o.__reactRouterDataRouter.state.errors,t.errors):null})})}}).catch(()=>{})),c.then(e=>{if("action"!==e.type&&"redirect"!==e.type)throw new Error("Unexpected payload type");return e.actionResult})}}var ka,Ra={defaultValue:ka};function Ca(e,t,r,n,o){let i=sn(e,e=>{let t=e;return{hasLoader:t.route.hasLoader,hasClientLoader:t.route.hasClientLoader,hasComponent:t.route.hasComponent,hasAction:t.route.hasAction,hasClientAction:t.route.hasClientAction,hasShouldRevalidate:t.route.hasShouldRevalidate}},function(e,t){return async(r,n,a,o)=>{let{request:i,context:s}=r,l=un(i.url,n,a,"rsc");"GET"===i.method&&(l=ln(l),o&&l.searchParams.set("_routes",o.join(",")));let u=await t(new Request(l,await Jr(i)));if(u.status>=400&&!u.headers.has("X-Remix-Response"))throw new re(u.status,u.statusText,await u.text());c(u.body,"No response body to decode");try{const t=await e(u.body,{temporaryReferences:void 0});if("redirect"===t.type)return{status:u.status,data:{redirect:{redirect:t.location,reload:t.reload,replace:t.replace,revalidate:!1,status:t.status}}};if("render"!==t.type)throw new Error("Unexpected payload type");s.get(Ra).push(...t.matches);let r={routes:{}};const n=St(i.method)?"actionData":"loaderData";for(let[e,a]of Object.entries(t[n]||{}))r.routes[e]={data:a};if(t.errors)for(let[e,n]of Object.entries(t.errors))r.routes[e]={error:n};return{status:u.status,data:r}}catch(e){throw new Error("Unable to decode RSC response")}}}(n,o),t,r,!0,e=>{let t=e;return t.route.hasComponent&&!t.route.element});return async e=>e.runClientMiddleware(async()=>{let t=e.context;t.set(Ra,[]);let r=await i(e);const n=new Map;for(const e of t.get(Ra))n.has(e.id)||n.set(e.id,[]),n.get(e.id).push(e);return a.startTransition(()=>{for(const t of e.matches){const e=n.get(t.route.id);if(e)for(const t of e)window.__reactRouterDataRouter.patchRoutes(t.parentId??null,[Aa(t)],!0)}}),r})}function Ta({createFromReadableStream:e,fetch:t=fetch,payload:r,routeDiscovery:n="eager",getContext:o}){if("render"!==r.type)throw new Error("Invalid payload type");let{router:i,routeModules:s}=a.useMemo(()=>function({fetchImplementation:e,createFromReadableStream:t,getContext:r,payload:n}){const a=window;if(a.__reactRouterDataRouter&&a.__reactRouterRouteModules)return{router:a.__reactRouterDataRouter,routeModules:a.__reactRouterRouteModules};if("render"!==n.type)throw new Error("Invalid payload type");a.__reactRouterRouteModules=a.__reactRouterRouteModules??{},va(a.__reactRouterRouteModules,n.matches);let o=new Map;n.patches?.forEach(e=>{c(e.parentId,"Invalid patch parentId"),o.has(e.parentId)||o.set(e.parentId,[]),o.get(e.parentId)?.push(e)});let i,s=n.matches.reduceRight((e,t)=>{const r=Aa(t,n);if(e.length>0){r.children=e;let n=o.get(t.id);n&&r.children.push(...n.map(e=>Aa(e)))}return[r]},[]);return a.__reactRouterDataRouter=Ce({routes:s,getContext:r,basename:n.basename,history:u(),hydrationData:ba({state:{loaderData:n.loaderData,actionData:n.actionData,errors:n.errors},routes:s,getRouteInfo:e=>{let t=n.matches.find(t=>t.id===e);return c(t,"Route not found in payload"),{clientLoader:t.clientLoader,hasLoader:t.hasLoader,hasHydrateFallback:null!=t.hydrateFallbackElement}},location:n.location,basename:n.basename,isSpaMode:!1}),async patchRoutesOnNavigation({path:r,signal:n}){Ma.has(r)||await Na([r],t,e,n)},dataStrategy:Ca(()=>a.__reactRouterDataRouter,!0,n.basename,t,e)}),a.__reactRouterDataRouter.state.initialized?(a.__routerInitialized=!0,a.__reactRouterDataRouter.initialize()):a.__routerInitialized=!1,a.__reactRouterDataRouter.subscribe(({loaderData:e,actionData:t})=>{i!==e&&(a.__routerActionID=(a.__routerActionID??(a.__routerActionID=0))+1)}),a.__reactRouterDataRouter._updateRoutesForHMR=e=>{const t=window.__reactRouterDataRouter.routes,r=[];r.push(...function t(r,n){return r.map(r=>{const a=e.get(r.id);if(a){const{routeModule:e,hasAction:o,hasComponent:i,hasErrorBoundary:s,hasLoader:l}=a,u=Aa({clientAction:e.clientAction,clientLoader:e.clientLoader,element:r.element,errorElement:r.errorElement,handle:r.handle,hasAction:o,hasComponent:i,hasErrorBoundary:s,hasLoader:l,hydrateFallbackElement:r.hydrateFallbackElement,id:r.id,index:r.index,links:e.links,meta:e.meta,parentId:n,path:r.path,shouldRevalidate:e.shouldRevalidate});return r.children&&(u.children=t(r.children,r.id)),u}const o={...r};return r.children&&(o.children=t(r.children,r.id)),o})}(t,void 0)),window.__reactRouterDataRouter._internalSetRoutes(r)},{router:a.__reactRouterDataRouter,routeModules:a.__reactRouterRouteModules}}({payload:r,fetchImplementation:t,getContext:o,createFromReadableStream:e}),[e,r,t,o]);a.useEffect(()=>{Jn()},[]),a.useLayoutEffect(()=>{const e=window;e.__routerInitialized||(e.__routerInitialized=!0,e.__reactRouterDataRouter.initialize())},[]);let[{routes:l,state:d},f]=a.useState(()=>({routes:za(i.routes),state:i.state}));a.useLayoutEffect(()=>i.subscribe(e=>{$a(i.routes,l)&&a.startTransition(()=>{f({routes:za(i.routes),state:e})})}),[i.subscribe,l,i]);const p=a.useMemo(()=>({...i,state:d,routes:l}),[i,l,d]);a.useEffect(()=>{if("lazy"===n||!0===window.navigator?.connection?.saveData)return;function r(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let r="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;Ma.has(r)||Da.add(r)}async function a(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(r);let n=Array.from(Da.keys()).filter(e=>!Ma.has(e)||(Da.delete(e),!1));if(0!==n.length)try{await Na(n,e,t)}catch(e){console.error("Failed to fetch manifest patches",e)}}let o=function(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}(a,100);a(),new MutationObserver(()=>o()).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]})},[n,e,t]);const h={future:{v8_middleware:!1,unstable_subResourceIntegrity:!1,unstable_trailingSlashAwareDataRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:"",manifest:{routes:{},version:"1",url:"",entry:{module:"",imports:[]}},routeDiscovery:{mode:"lazy",manifestPath:"/__manifest"},routeModules:s};return a.createElement(Pt.Provider,{value:!0},a.createElement(pa,{location:d.location},a.createElement(Hn.Provider,{value:h},a.createElement(vr,{router:p,flushSync:ya.flushSync}))))}function Aa(e,t){let r=t&&e.id in t.loaderData,n=t?.loaderData[e.id],a=t?.errors&&e.id in t.errors,o=t?.errors?.[e.id],i=!0===e.clientLoader?.hydrate||!e.hasLoader||e.hasComponent&&!e.element;c(window.__reactRouterRouteModules),va(window.__reactRouterRouteModules,e);let s={id:e.id,element:e.element,errorElement:e.errorElement,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,hydrateFallbackElement:e.hydrateFallbackElement,index:e.index,loader:e.clientLoader?async(t,s)=>{try{return await e.clientLoader({...t,serverLoader:()=>{if(Ia("loader",e.id,e.hasLoader),i){if(r)return n;if(a)throw o}return Pa(s)}})}finally{i=!1}}:(e,t)=>Pa(t),action:e.clientAction?(t,r)=>e.clientAction({...t,serverAction:async()=>(Ia("action",e.id,e.hasLoader),await Pa(r))}):e.hasAction?(e,t)=>Pa(t):()=>{throw Cn("action",e.id)},path:e.path,shouldRevalidate:e.shouldRevalidate,hasLoader:!0,hasClientLoader:null!=e.clientLoader,hasAction:e.hasAction,hasClientAction:null!=e.clientAction,hasShouldRevalidate:null!=e.shouldRevalidate};return"function"==typeof s.loader&&(s.loader.hydrate=In(e.id,e.clientLoader,e.hasLoader,!1)),s}function Pa(e){return c("function"==typeof e,"Invalid singleFetch parameter"),e()}function Ia(e,t,r){if(!r){let r=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t}")`;throw console.error(r),new re(400,"Bad Request",new Error(r),!0)}}var Da=new Set,La=1e3,Ma=new Set,ja=7680;async function Na(e,t,r,n){let o=function(e){if(0===e.length)return null;if(1===e.length)return new URL(`${e[0]}.manifest`,window.location.origin);let t=(window.__reactRouterDataRouter.basename??"").replace(/^\/|\/$/g,""),r=new URL(`${t}/.manifest`,window.location.origin);return r.searchParams.set("paths",e.sort().join(",")),r}(e);if(null==o)return;if(o.toString().length>ja)return void Da.clear();let i=await r(new Request(o,{signal:n}));if(!i.body||i.status<200||i.status>=300)throw new Error("Unable to fetch new route matches from the server");let s=await t(i.body,{temporaryReferences:void 0});if("manifest"!==s.type)throw new Error("Failed to patch routes");e.forEach(e=>function(e,t){if(t.size>=La){let e=t.values().next().value;"string"==typeof e&&t.delete(e)}t.add(e)}(e,Ma)),a.startTransition(()=>{s.patches.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[Aa(e)])})})}function Fa(e){return new URL(e,window.location.href).origin!==window.location.origin}function za(e){if(e)return e.map(e=>({...e,children:za(e.children)}))}function $a(e,t){return e.length!==t.length||e.some((e,r)=>e.element!==t[r].element||(e.errorElement!==t[r].errorElement||(e.hydrateFallbackElement!==t[r].hydrateFallbackElement||(e.hasErrorBoundary!==t[r].hasErrorBoundary||(e.hasLoader!==t[r].hasLoader||(e.hasClientLoader!==t[r].hasClientLoader||(e.hasAction!==t[r].hasAction||(e.hasClientAction!==t[r].hasClientAction||$a(e.children||[],t[r].children||[])))))))))}function Va(){let e=new TextEncoder,t=null,r=new ReadableStream({start(r){if("undefined"==typeof window)return;let n=t=>{"string"==typeof t?r.enqueue(e.encode(t)):r.enqueue(t)};window.__FLIGHT_DATA||(window.__FLIGHT_DATA=[]),window.__FLIGHT_DATA.forEach(n),window.__FLIGHT_DATA.push=e=>(n(e),0),t=r}});return"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{t?.close()}):t?.close(),r}}}]);
//# sourceMappingURL=812.js.map?_cache=98d3b4371671bfda2837