diff --git a/frontend/main.go b/frontend/main.go index 0fb09570e..ded2f2000 100644 --- a/frontend/main.go +++ b/frontend/main.go @@ -128,7 +128,7 @@ func httpFileServerWith404(fs http.FileSystem) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { _, err := fs.Open(r.URL.Path) if err != nil { - // Serve index.html + // Redirect to root path r.URL.Path = "/" } http.FileServer(fs).ServeHTTP(w, r) diff --git a/frontend/webapp/app/layout.tsx b/frontend/webapp/app/layout.tsx index 3dfbd5a34..2d44f2bd9 100644 --- a/frontend/webapp/app/layout.tsx +++ b/frontend/webapp/app/layout.tsx @@ -12,6 +12,7 @@ const LAYOUT_STYLE: React.CSSProperties = { scrollbarWidth: 'none', width: '100vw', height: '100vh', + backgroundColor: '#111111', }; export default function RootLayout({ children }: { children: React.ReactNode }) { diff --git a/frontend/webapp/app/page.tsx b/frontend/webapp/app/page.tsx index cc0cd3989..c4b4be62b 100644 --- a/frontend/webapp/app/page.tsx +++ b/frontend/webapp/app/page.tsx @@ -4,6 +4,7 @@ import { useRouter } from 'next/navigation'; import { useNotify, useConfig } from '@/hooks'; import { FadeLoader } from '@/reuseable-components'; import { ROUTES, CONFIG, NOTIFICATION } from '@/utils'; +import { CenterThis } from '@/styles'; export default function App() { const router = useRouter(); @@ -19,17 +20,21 @@ export default function App() { }); } else if (data) { const { installation } = data; - switch (installation) { + // case CONFIG.FINISHED: + // case CONFIG.APPS_SELECTED: case CONFIG.NEW: - case CONFIG.APPS_SELECTED: router.push(ROUTES.CHOOSE_SOURCES); break; - case CONFIG.FINISHED: + default: router.push(ROUTES.OVERVIEW); } } }, [data]); - return ; + return ( + + + + ); } diff --git a/frontend/webapp/containers/main/sources/choose-sources/choose-sources-body/choose-sources-body-fast/sources-list/index.tsx b/frontend/webapp/containers/main/sources/choose-sources/choose-sources-body/choose-sources-body-fast/sources-list/index.tsx index 044df3800..a28c2427f 100644 --- a/frontend/webapp/containers/main/sources/choose-sources/choose-sources-body/choose-sources-body-fast/sources-list/index.tsx +++ b/frontend/webapp/containers/main/sources/choose-sources/choose-sources-body/choose-sources-body-fast/sources-list/index.tsx @@ -100,6 +100,7 @@ export const SourcesList: React.FC = ({ onSelectFutureApps, searchText, + selectAllForNamespace, onSelectAll, showSelectedOnly, @@ -124,10 +125,10 @@ export const SourcesList: React.FC = ({ const selected = selectedSources[namespace] || []; const futureApps = selectedFutureApps[namespace] || false; - const namespacePassesFilters = (!searchText || namespace.toLowerCase().includes(searchText)) && (!showSelectedOnly || !!selected.length); + const namespacePassesFilters = !searchText || namespace.toLowerCase().includes(searchText); if (!namespacePassesFilters) return null; - const isNamespaceSelected = selectedNamespace === namespace; + const isNamespaceSelected = selectedNamespace === namespace && !selectAllForNamespace; const isNamespaceCanSelect = namespaceLoaded && !!available.length; const isNamespaceAllSourcesSelected = isNamespaceCanSelect && selected.length === sources.length; @@ -138,14 +139,7 @@ export const SourcesList: React.FC = ({ onSelectNamespace(namespace)}> - { - if (bool) onSelectNamespace(namespace); - onSelectAll(bool, namespace); - }} - /> + onSelectAll(bool, namespace)} /> {namespace} @@ -175,7 +169,7 @@ export const SourcesList: React.FC = ({ onSelectSource(source, namespace)} /> {source.name} - {source.numberOfInstances} running instances · {source.kind} + {source.numberOfInstances} running instance{source.numberOfInstances !== 1 && 's'} · {source.kind} diff --git a/frontend/webapp/containers/main/sources/choose-sources/choose-sources-body/choose-sources-body-simple/sources-list/index.tsx b/frontend/webapp/containers/main/sources/choose-sources/choose-sources-body/choose-sources-body-simple/sources-list/index.tsx index 7bdc2fe65..9553cbfd7 100644 --- a/frontend/webapp/containers/main/sources/choose-sources/choose-sources-body/choose-sources-body-simple/sources-list/index.tsx +++ b/frontend/webapp/containers/main/sources/choose-sources/choose-sources-body/choose-sources-body-simple/sources-list/index.tsx @@ -108,7 +108,7 @@ export const SourcesList: React.FC = ({ {source.name} - {source.numberOfInstances} running instances · {source.kind} + {source.numberOfInstances} running instance{source.numberOfInstances !== 1 && 's'} · {source.kind} diff --git a/frontend/webapp/dep-out/404.html b/frontend/webapp/dep-out/404.html index 3cadbcb1a..bdf6a4add 100644 --- a/frontend/webapp/dep-out/404.html +++ b/frontend/webapp/dep-out/404.html @@ -1 +1 @@ -404: This page could not be found.404This page could not be found. \ No newline at end of file +404: This page could not be found.404This page could not be found. \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/MlkLHWULwZSrLjScYaxbg/_buildManifest.js b/frontend/webapp/dep-out/_next/static/0Oiwe1o8xnhEZZqmjsPv9/_buildManifest.js similarity index 100% rename from frontend/webapp/dep-out/_next/static/MlkLHWULwZSrLjScYaxbg/_buildManifest.js rename to frontend/webapp/dep-out/_next/static/0Oiwe1o8xnhEZZqmjsPv9/_buildManifest.js diff --git a/frontend/webapp/dep-out/_next/static/MlkLHWULwZSrLjScYaxbg/_ssgManifest.js b/frontend/webapp/dep-out/_next/static/0Oiwe1o8xnhEZZqmjsPv9/_ssgManifest.js similarity index 100% rename from frontend/webapp/dep-out/_next/static/MlkLHWULwZSrLjScYaxbg/_ssgManifest.js rename to frontend/webapp/dep-out/_next/static/0Oiwe1o8xnhEZZqmjsPv9/_ssgManifest.js diff --git a/frontend/webapp/dep-out/_next/static/chunks/152-ad6c32c72bd57158.js b/frontend/webapp/dep-out/_next/static/chunks/152-71a80fa64d88647e.js similarity index 98% rename from frontend/webapp/dep-out/_next/static/chunks/152-ad6c32c72bd57158.js rename to frontend/webapp/dep-out/_next/static/chunks/152-71a80fa64d88647e.js index dbfda402d..7df253d71 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/152-ad6c32c72bd57158.js +++ b/frontend/webapp/dep-out/_next/static/chunks/152-71a80fa64d88647e.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[152],{8447:function(e,t,n){"use strict";n.d(t,{r:function(){return ConditionCheck},N:function(){return MultiCheckboxComponent}});var i=n(7022),r=n(299),o=n(2265),a=n(3587),c=n(7437);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t0?(0,f.jsxs)("div",{ref:o,children:[(0,f.jsxs)(T,{children:[(0,f.jsx)(p.Dk,{style:{cursor:"pointer"},size:20,onClick:function(){return n(!t)}}),d>0&&(0,f.jsx)(P,{children:(0,f.jsx)(y.xJ,{size:10,children:d})})]}),t&&(0,f.jsxs)(A,{children:[(0,f.jsx)(k,{children:(0,f.jsx)(y.xJ,{size:18,weight:600,children:"Notifications"})}),(0,O.Z)(i).reverse().map(function(e){return(0,f.jsx)(notification_list_item,function(e){for(var t=1;t0?c:[""],onValuesChange:function(e){n("actionData",{attributeNamesToDelete:e}),s(e)}})})})}var U=f.ZP.div.withConfig({displayName:"renameattributes__FormWrapper",componentId:"sc-1dg3dox-0"})(["width:375px;"]),H=[{id:0,key:"",value:""}];function RenameAttributesForm(e){var t=e.data,n=e.onChange,i=e.setIsFormValid,r=void 0===i?function(){}:i,o=u.useState([]),a=(0,z.Z)(o,2),c=a[0],s=a[1];return(0,u.useEffect)(function(){(function(){if(!(null!=t&&t.renames)){s(H);return}s(Object.entries(t.renames).map(function(e,t){var n=(0,z.Z)(e,2);return{id:t,key:n[0],value:n[1]}})||H)})()},[t]),(0,u.useEffect)(function(){r(c.every(function(e){return""!==e.key.trim()&&""!==e.value.trim()}))},[c]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(U,{children:(0,x.jsx)(h.C1,{title:"Attributes To Rename *",titleKey:"Original Attribute",titleValue:"New Attribute",titleButton:"Add Attribute",keyValues:c,setKeyValues:function(e){var t={};e.forEach(function(e){t[e.key]=e.value}),n("actionData",{renames:t}),s(e)}})})})}var V=f.ZP.div.withConfig({displayName:"error-sampler__FormWrapper",componentId:"sc-1gdkbs0-0"})(["width:375px;"]);function ErrorSamplerForm(e){var t,n=e.data,i=e.onChange,r=e.setIsFormValid,o=void 0===r?function(){}:r;return(0,u.useEffect)(function(){o(!isNaN(null==n?void 0:n.fallback_sampling_ratio)&&(null==n?void 0:n.fallback_sampling_ratio)>=0&&(null==n?void 0:n.fallback_sampling_ratio)<=100)},[null==n?void 0:n.fallback_sampling_ratio]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(V,{children:(0,x.jsx)(h.ix,{label:"Fallback Sampling Ratio",value:null==n?void 0:null===(t=n.fallback_sampling_ratio)||void 0===t?void 0:t.toString(),onChange:function(e){i("actionData",{fallback_sampling_ratio:+e})},type:"number",tooltip:"Specifies the ratio of non-error traces you still want to retain",min:0,max:100,error:(null==n?void 0:n.fallback_sampling_ratio)>100?"Value must be less than 100":""})})})}var Y=f.ZP.div.withConfig({displayName:"probabilistic-sampler__FormWrapper",componentId:"sc-ci5zc4-0"})(["width:375px;"]);function ProbabilisticSamplerForm(e){var t=e.data,n=e.onChange,i=e.setIsFormValid,r=void 0===i?function(){}:i;return(0,u.useEffect)(function(){var e;r(!isNaN(e=parseFloat(null==t?void 0:t.sampling_percentage))&&e>=0&&e<=100)},[null==t?void 0:t.sampling_percentage]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(Y,{children:(0,x.jsx)(h.ix,{"data-cy":"create-action-sampling-percentage",label:"Fallback Sampling Ratio",value:null==t?void 0:t.sampling_percentage,onChange:function(e){n("actionData",{sampling_percentage:e})},type:"number",tooltip:"Percentage at which items are sampled; = 100 samples all items, 0 rejects all items",min:0,max:100,error:parseFloat(null==t?void 0:t.sampling_percentage)>100?"Value must be less than 100":""})})})}var G=n(941),q=n(3103);function latency_action_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function latency_action_objectSpread(e){for(var t=1;t100?o[t]="Fallback sampling ratio must be between 0 and 100":delete o[t]}return latency_action_objectSpread(latency_action_objectSpread({},n),{},{errors:o})}return n});s(r),n(et,{endpoints_filters:r}),checkFormValidity(r)}function checkFormValidity(e){r(e.every(function(e){var t,n,i;return e.service_name&&e.http_route&&!(null!==(t=e.errors)&&void 0!==t&&t.http_route)&&void 0!==e.minimum_latency_threshold&&!(null!==(n=e.errors)&&void 0!==n&&n.minimum_latency_threshold)&&void 0!==e.fallback_sampling_ratio&&!(null!==(i=e.errors)&&void 0!==i&&i.fallback_sampling_ratio)}))}return(0,x.jsxs)(Q,{children:[(0,x.jsx)(h.xJ,{size:14,weight:600,children:"Endpoints Filters"}),(0,x.jsxs)($,{children:[(0,x.jsx)("thead",{children:(0,x.jsxs)("tr",{children:[(0,x.jsx)(X,{children:(0,x.jsx)(h.xJ,{size:12,children:"Service Name"})}),(0,x.jsx)(X,{children:(0,x.jsx)(h.xJ,{size:12,children:"Http Route"})}),(0,x.jsx)(X,{children:(0,x.jsx)(h.xJ,{size:12,children:"Minimum Latency Threshold (ms)"})}),(0,x.jsx)(X,{children:(0,x.jsx)(g.u,{text:"allows you to retain a specified percentage of traces that fall below the threshold",children:(0,x.jsx)(h.xJ,{size:12,children:"Fallback Sampling Ratio "})})}),(0,x.jsx)(X,{})]})}),(0,x.jsx)("tbody",{children:c.map(function(e,t){var i,r,a,d,u,p,f;return(0,x.jsxs)("tr",{children:[(0,x.jsx)(ee,{children:(0,x.jsx)(h.p,{width:198,data:l,value:(p=e.service_name||"",{id:0,label:(null==(f=o.find(function(e){return e.name===p}))?void 0:f.name)||""}),onChange:function(e){return handleOnChange(t,"service_name",e.label)}})}),(0,x.jsx)(ee,{children:(0,x.jsx)(h.ix,{style:{width:192,height:39},value:e.http_route||"",onChange:function(e){return handleOnChange(t,"http_route",e)},onBlur:function(){return handleOnBlur(t,"http_route",e.http_route)},error:null===(i=e.errors)||void 0===i?void 0:i.http_route,placeholder:"e.g. /api/v1/users",type:"text"})}),(0,x.jsx)(ee,{children:(0,x.jsx)(h.ix,{style:{width:192,height:39},value:(null===(r=e.minimum_latency_threshold)||void 0===r?void 0:r.toString())||"",onChange:function(e){return handleOnChange(t,"minimum_latency_threshold",+e)},onBlur:function(){return handleOnBlur(t,"minimum_latency_threshold",e.minimum_latency_threshold)},placeholder:"e.g. 1000",type:"number",min:0,error:null===(a=e.errors)||void 0===a?void 0:a.minimum_latency_threshold})}),(0,x.jsx)(ee,{children:(0,x.jsx)(h.ix,{style:{width:192,height:39},value:(null===(d=e.fallback_sampling_ratio)||void 0===d?void 0:d.toString())||"",onChange:function(e){return handleOnChange(t,"fallback_sampling_ratio",+e)},onBlur:function(){return handleOnBlur(t,"fallback_sampling_ratio",e.fallback_sampling_ratio)},placeholder:"e.g. 20",type:"number",min:0,max:100,error:null===(u=e.errors)||void 0===u?void 0:u.fallback_sampling_ratio})}),(0,x.jsx)(ee,{children:c.length>1&&(0,x.jsx)(h.Rf,{value:"remove",fontSize:12,onClick:function(){var e;s(e=c.filter(function(e,n){return n!==t})),n(et,{endpoints_filters:e}),checkFormValidity(e)}})})]},t)})})]}),(0,x.jsx)(h.ZT,{onClick:function(){s([].concat((0,G.Z)(c),[{}]))},style:{height:32,width:140,marginTop:8},disabled:c.length>=o.length,children:(0,x.jsx)(h.xJ,{size:14,weight:600,color:O.Z.text.dark_button,children:"+ Add Filter"})})]})}var en=[{id:"CREDIT_CARD",label:"Credit Card"}],ei=f.ZP.div.withConfig({displayName:"pii-masking__FormWrapper",componentId:"sc-1pbjj97-0"})(["width:375px;"]),er="actionData";function PiiMaskingForm(e){var t=e.data,n=e.onChange,i=e.setIsFormValid;return(0,u.useEffect)(function(){n(er,{piiCategories:["CREDIT_CARD"]}),i&&i(!0)},[]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(ei,{children:en.map(function(e){var i;return(0,x.jsx)(h.Ho,{disabled:!0,value:null==t?void 0:null===(i=t.piiCategories)||void 0===i?void 0:i.includes(null==e?void 0:e.id),onChange:function(){var t,i;return t=null==e?void 0:e.id,void((i=[]).includes(t)?i=i.filter(function(e){return e!==t}):i.push(t),n(er,{piiCategories:i}))},label:null==e?void 0:e.label},null==e?void 0:e.id)})})})}function DynamicActionForm(e){var t,n=e.type,i=e.data,r=e.onChange,o=e.setIsFormValid,a=(t={},(0,D.Z)(t,R.ActionsType.ADD_CLUSTER_INFO,AddClusterInfoForm),(0,D.Z)(t,R.ActionsType.DELETE_ATTRIBUTES,DeleteAttributesForm),(0,D.Z)(t,R.ActionsType.RENAME_ATTRIBUTES,RenameAttributesForm),(0,D.Z)(t,R.ActionsType.ERROR_SAMPLER,ErrorSamplerForm),(0,D.Z)(t,R.ActionsType.PROBABILISTIC_SAMPLER,ProbabilisticSamplerForm),(0,D.Z)(t,R.ActionsType.LATENCY_SAMPLER,LatencySamplerForm),(0,D.Z)(t,R.ActionsType.PII_MASKING,PiiMaskingForm),t),c=n?a[n]:null;return(0,x.jsx)(x.Fragment,{children:c?(0,x.jsx)(c,{data:i,onChange:r,setIsFormValid:void 0===o?function(){}:o}):(0,x.jsx)("div",{children:"No action form available"})})}var eo=f.zo.div.withConfig({displayName:"deleteaction__FieldWrapper",componentId:"sc-gnttsl-0"})(["div{width:354px;}"]);function DeleteAction(e){var t=e.onDelete,n=e.name,i=e.type,r=(0,u.useState)(!1),o=r[0],a=r[1],l={title:p.mD.DELETE_ACTION,showHeader:!0,showOverlay:!0,positionX:c.center,positionY:s.center,padding:"20px",footer:{primaryBtnText:p.mD.CONFIRM_DELETE_ACTION,primaryBtnAction:function(){a(!1),t()}}};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(eo,{children:(0,x.jsx)(h.cN,{title:p.mD.ACTION_DANGER_ZONE_TITLE,subTitle:p.mD.ACTION_DANGER_ZONE_SUBTITLE,btnText:p.mD.DELETE,onClick:function(){return a(!0)}})}),o&&(0,x.jsxs)(h.V2,{show:o,closeModal:function(){return a(!1)},config:l,children:[(0,x.jsx)("br",{}),(0,x.jsx)(m.A,{style:{width:52,height:52},type:i||""}),(0,x.jsx)("br",{}),(0,x.jsx)(h.xJ,{size:20,weight:600,children:"".concat(p.mD.DELETE," ").concat(n," Action")})]})]})}function ActionRowDynamicContent(e){var t=e.item;return(0,x.jsx)(x.Fragment,{children:function(){var e,n,i,r,o,a;switch(t.type){case R.ActionsType.ADD_CLUSTER_INFO:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(null==t?void 0:t.spec.clusterAttributes.length," cluster attributes")});case R.ActionsType.DELETE_ATTRIBUTES:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(null==t?void 0:t.spec.attributeNamesToDelete.length," deleted attributes")});case R.ActionsType.RENAME_ATTRIBUTES:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(Object.keys(null==t?void 0:null===(e=t.spec)||void 0===e?void 0:e.renames).length," renamed attributes")});case R.ActionsType.ERROR_SAMPLER:return(0,x.jsxs)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:["".concat(null==t?void 0:null===(n=t.spec)||void 0===n?void 0:n.fallback_sampling_ratio,"% sampling ratio"),"s"]});case R.ActionsType.PROBABILISTIC_SAMPLER:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(null==t?void 0:null===(i=t.spec)||void 0===i?void 0:i.sampling_percentage,"% sampling ratio")});case R.ActionsType.LATENCY_SAMPLER:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(null==t?void 0:null===(r=t.spec)||void 0===r?void 0:r.endpoints_filters.length," endpoints")});case R.ActionsType.PII_MASKING:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat((null==t?void 0:null===(o=t.spec)||void 0===o?void 0:o.piiCategories.length)===1?"1 category":"".concat(null==t?void 0:null===(a=t.spec)||void 0===a?void 0:a.piiCategories.length," categories"))});default:return(0,x.jsx)("div",{children:t.type})}}()})}var ea=n(8265),ec=n(8547);function actions_table_row_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function actions_table_row_objectSpread(e){for(var t=1;t0,onChange:function(){return i("select_all")}}),(0,x.jsx)(g.wZ,{size:18}),(0,x.jsx)(h.xJ,{size:14,weight:600,color:O.Z.text.white,children:n.length>0?"".concat(n.length," selected"):"".concat(t.length," ").concat(p.mD.MENU.ACTIONS)}),(0,x.jsx)(e_,{children:(0,x.jsx)(h.BT,{actionGroups:y})})]})})}var ej=n(4490),ActionsTable=function(e){var t=e.data,n=e.onRowClick,i=e.sortActions,r=e.filterActionsBySignal,o=e.toggleActionStatus,a=(0,u.useState)([]),c=a[0],s=a[1],l=(0,u.useState)(1),d=l[0],f=l[1],m=(0,u.useState)(10),g=m[0],y=m[1],v=u.useRef(1);function onSelectedCheckboxChange(e){if("select_all"===e){if(c.length>0)s([]);else{var n=(v.current-1)*10,i=10*v.current;s(t.slice(n,i).map(function(e){return e.id}))}return}c.includes(e)?s(c.filter(function(t){return t!==e})):s([].concat((0,G.Z)(c),[e]))}return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(h.iA,{data:t,renderTableHeader:function(){return(0,x.jsx)(ActionsTableHeader,{data:t,selectedCheckbox:c,onSelectedCheckboxChange:onSelectedCheckboxChange,sortActions:i,filterActionsBySignal:r,toggleActionStatus:o})},onPaginate:function(e){v.current=e,c.length>0&&s([])},renderEmptyResult:function(){return(0,x.jsx)(ej.rf,{title:p.mD.EMPTY_ACTION})},currentPage:d,itemsPerPage:g,setCurrentPage:f,setItemsPerPage:y,renderTableRows:function(e,i){return(0,x.jsx)(ActionsTableRow,{onRowClick:n,selectedCheckbox:c,onSelectedCheckboxChange:onSelectedCheckboxChange,data:t,item:e,index:i})}})})};f.ZP.p.withConfig({displayName:"actionyaml__CodeBlockWrapper",componentId:"sc-1e6amzh-0"})(["display:flex;align-items:center;font-family:",";color:",";a{color:",";text-decoration:none;cursor:pointer;}"],O.Z.font_family.primary,O.Z.text.light_grey,O.Z.text.secondary);var ew=f.ZP.div.withConfig({displayName:"actionyaml__TitleWrapper",componentId:"sc-1e6amzh-1"})(["display:flex;align-items:center;gap:6px;margin-bottom:8px;max-width:600px;"]);(0,f.ZP)(ew).withConfig({displayName:"actionyaml__DescriptionWrapper",componentId:"sc-1e6amzh-2"})(["line-height:1.3;margin:10px 0 8px 0;"]);var eC=n(2245),eS=n(9704),eO=n(8447),eN=f.ZP.tr.withConfig({displayName:"sourcestablerow__StyledTr",componentId:"sc-1kywn08-0"})(["&:hover{background-color:",";}"],O.Z.colors.light_dark),eI=f.ZP.td.withConfig({displayName:"sourcestablerow__StyledTd",componentId:"sc-1kywn08-1"})(["padding:10px 20px;border-top:1px solid ",";",""],O.Z.colors.blue_grey,function(e){return e.isFirstRow&&(0,f.iv)(["border-top:none;"])}),eE=(0,f.ZP)(eI).withConfig({displayName:"sourcestablerow__StyledMainTd",componentId:"sc-1kywn08-2"})(["cursor:pointer;padding:10px 20px;display:flex;gap:20px;"]),eA=f.ZP.div.withConfig({displayName:"sourcestablerow__SourceIconContainer",componentId:"sc-1kywn08-3"})(["display:flex;align-items:center;gap:8px;"]),eT=f.ZP.div.withConfig({displayName:"sourcestablerow__SourceDetails",componentId:"sc-1kywn08-4"})(["display:flex;flex-direction:column;gap:4px;"]),eP=f.ZP.div.withConfig({displayName:"sourcestablerow__NameContainer",componentId:"sc-1kywn08-5"})(["display:flex;gap:10px;align-items:center;"]),ek=f.ZP.div.withConfig({displayName:"sourcestablerow__FooterContainer",componentId:"sc-1kywn08-6"})(["display:flex;gap:16px;align-items:center;"]),eD=f.ZP.div.withConfig({displayName:"sourcestablerow__FooterItemWrapper",componentId:"sc-1kywn08-7"})(["display:flex;align-items:center;gap:4px;"]),eZ=f.ZP.div.withConfig({displayName:"sourcestablerow__StatusIndicator",componentId:"sc-1kywn08-8"})(["width:6px;height:6px;border-radius:4px;background-color:",";"],function(e){return e.color}),eR=f.ZP.div.withConfig({displayName:"sourcestablerow__TagWrapper",componentId:"sc-1kywn08-9"})(["padding:0 20px;width:300px;display:flex;align-items:center;"]),eL={padding:4,backgroundColor:O.Z.colors.white};function SourcesTableRow(e){var t,n,i=e.item,r=e.index,o=e.selectedCheckbox,a=e.onSelectedCheckboxChange,c=e.onRowClick,s=(0,p.LV)(i),l=function(e){if(!(null!=e&&null!==(t=e.instrumented_application_details)&&void 0!==t&&t.languages))return null;var t,n,i=null==e?void 0:null===(n=e.instrumented_application_details)||void 0===n?void 0:n.languages.find(function(e){return"ignore"!==e.language});return i?i.container_name:null}(i)||"";return(0,x.jsx)(eN,{children:(0,x.jsxs)(eE,{isFirstRow:0===r,children:[(0,x.jsx)(h.Ho,{value:o.includes(JSON.stringify(i)),onChange:function(){return a(JSON.stringify(i))}}),(0,x.jsxs)(eA,{onClick:function(){return c(i)},children:[(0,x.jsx)("div",{children:(0,x.jsx)(h.uR,{src:p.Fs[s],width:32,height:32,style:eL,alt:"source-logo"})}),(0,x.jsxs)(eT,{onClick:function(){return c(i)},children:[(0,x.jsxs)(eP,{children:[(0,x.jsx)(h.xJ,{weight:600,children:"".concat(i.name||"Source"," ")}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:(0,x.jsx)(eO.r,{conditions:(null==i?void 0:null===(t=i.instrumented_application_details)||void 0===t?void 0:t.conditions)||[]})})]}),(0,x.jsxs)(ek,{children:[(0,x.jsx)(eD,{children:"processing"===s?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(h.kQ,{width:6,height:6}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:"detecting language"})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(eZ,{color:p.Fp[s]||O.Z.text.light_grey}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:s})]})}),(0,x.jsxs)(eD,{children:[(0,x.jsx)(eC.lS,{style:{width:16,height:16}}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:i.namespace})]}),(0,x.jsxs)(eD,{children:[(0,x.jsx)(eC.W2,{style:{width:16,height:16}}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:l})]})]})]}),(0,x.jsx)(eR,{children:(0,x.jsx)(h.Io,{title:(null==i?void 0:i.kind)||"",color:eS.t[(null==i?void 0:null===(n=i.kind)||void 0===n?void 0:n.toLowerCase())||"deployment"]})})]})]})},i.kind)}(o=l||(l={})).DEPLOYMENT="deployment",o.STATEFUL_SET="statefulset",o.DAEMON_SET="daemonset",(a=d||(d={})).NAME="name",a.KIND="kind",a.NAMESPACE="namespace",a.LANGUAGE="language";var eM=f.ZP.div.withConfig({displayName:"sourcestableheader__StyledThead",componentId:"sc-1gi1cy2-0"})(["background-color:",";border-top-right-radius:6px;border-top-left-radius:6px;"],O.Z.colors.light_dark),eF=f.ZP.th.withConfig({displayName:"sourcestableheader__StyledTh",componentId:"sc-1gi1cy2-1"})(["padding:10px 20px;text-align:left;border-bottom:1px solid ",";"],O.Z.colors.blue_grey),ez=(0,f.ZP)(eF).withConfig({displayName:"sourcestableheader__StyledMainTh",componentId:"sc-1gi1cy2-2"})(["padding:10px 20px;display:flex;align-items:center;gap:8px;"]),eB=f.ZP.div.withConfig({displayName:"sourcestableheader__ActionGroupContainer",componentId:"sc-1gi1cy2-3"})(["display:flex;justify-content:flex-end;padding-right:20px;gap:24px;flex:1;"]);function SourcesTableHeader(e){var t=e.data,n=e.namespaces,i=e.sortSources,r=e.filterSourcesByKind,o=e.filterSourcesByNamespace,a=e.filterSourcesByLanguage,c=e.deleteSourcesHandler,s=e.selectedCheckbox,f=e.onSelectedCheckboxChange,m=e.filterByConditionStatus,y=e.filterByConditionMessage,v=e.currentItems,b=(0,u.useState)(""),_=b[0],j=b[1],w=(0,u.useState)([]),C=w[0],S=w[1],N=(0,u.useState)(!1),I=N[0],E=N[1],A=(0,u.useState)([]),T=A[0],P=A[1],k=(0,u.useState)(["javascript","python","java","go","dotnet"]),D=k[0],Z=k[1],R=(0,u.useState)([l.DEPLOYMENT,l.STATEFUL_SET,l.DAEMON_SET]),L=R[0],M=R[1],z=(0,q.hi)().groupErrorMessages;function onSortClick(e){j(e),i&&i(e)}function onKindClick(e){var t=[];L.includes(e)?(M(L.filter(function(t){return t!==e})),t=L.filter(function(t){return t!==e})):(M([].concat((0,G.Z)(L),[e])),t=[].concat((0,G.Z)(L),[e])),r&&r(t)}function onLanguageClick(e){var t=[];D.includes(e)?(Z(D.filter(function(t){return t!==e})),t=D.filter(function(t){return t!==e})):(Z([].concat((0,G.Z)(D),[e])),t=[].concat((0,G.Z)(D),[e])),a&&a(t)}(0,u.useEffect)(function(){m&&(P(z()),I?m("False"):m("All"))},[I]),(0,u.useEffect)(function(){n&&S(n.filter(function(e){return e.totalApps>0}).map(function(e){return e.name}))},[n]);var B=(0,u.useMemo)(function(){if(!n)return[];var e,i,r,a,c,s,u,p,f,h,m,g,x,v,b,j,w=n.filter(function(e){return e.totalApps>0}).length,O=null===(e=n.sort(function(e,t){return t.totalApps-e.totalApps}))||void 0===e?void 0:e.map(function(e,t){return{label:"".concat(e.name," (").concat(e.totalApps," apps) "),onClick:function(){var t,n;return t=e.name,n=[],void(C.includes(t)?(S(C.filter(function(e){return e!==t})),n=C.filter(function(e){return e!==t})):(S([].concat((0,G.Z)(C),[t])),n=[].concat((0,G.Z)(C),[t])),o&&o(n))},id:e.name,selected:C.includes(e.name)&&e.totalApps>0,disabled:1===C.length&&C.includes(e.name)||0===e.totalApps||1===w}}),N=[{label:"Language",subTitle:"Filter",condition:!0,items:[{label:"Javascript",onClick:function(){return onLanguageClick("javascript")},id:"javascript",selected:D.includes("javascript"),disabled:1===D.length&&D.includes("javascript")||1===t.length&&(null==t?void 0:null===(i=t[0])||void 0===i?void 0:null===(r=i.instrumented_application_details)||void 0===r?void 0:null===(a=r.languages)||void 0===a?void 0:a[0].language)==="javascript"},{label:"Python",onClick:function(){return onLanguageClick("python")},id:"python",selected:D.includes("python"),disabled:1===D.length&&D.includes("python")||1===t.length&&(null==t?void 0:null===(c=t[0])||void 0===c?void 0:null===(s=c.instrumented_application_details)||void 0===s?void 0:null===(u=s.languages)||void 0===u?void 0:u[0].language)==="python"},{label:"Java",onClick:function(){return onLanguageClick("java")},id:"java",selected:D.includes("java"),disabled:1===D.length&&D.includes("java")||1===t.length&&(null==t?void 0:null===(p=t[0])||void 0===p?void 0:null===(f=p.instrumented_application_details)||void 0===f?void 0:null===(h=f.languages)||void 0===h?void 0:h[0].language)==="java"},{label:"Go",onClick:function(){return onLanguageClick("go")},id:"go",selected:D.includes("go"),disabled:1===D.length&&D.includes("go")||1===t.length&&(null==t?void 0:null===(m=t[0])||void 0===m?void 0:null===(g=m.instrumented_application_details)||void 0===g?void 0:null===(x=g.languages)||void 0===x?void 0:x[0].language)==="go"},{label:".NET",onClick:function(){return onLanguageClick("dotnet")},id:"dotnet",selected:D.includes("dotnet"),disabled:1===D.length&&D.includes("dotnet")||1===t.length&&(null==t?void 0:null===(v=t[0])||void 0===v?void 0:null===(b=v.instrumented_application_details)||void 0===b?void 0:null===(j=b.languages)||void 0===j?void 0:j[0].language)==="dotnet"}]},{label:"Kind",subTitle:"Filter",condition:!0,items:[{label:"Deployment",onClick:function(){return onKindClick(l.DEPLOYMENT)},id:l.DEPLOYMENT,selected:L.includes(l.DEPLOYMENT)&&t.some(function(e){return e.kind.toLowerCase()===l.DEPLOYMENT}),disabled:1===L.length&&L.includes(l.DEPLOYMENT)&&t.some(function(e){return e.kind.toLowerCase()===l.DEPLOYMENT})},{label:"StatefulSet",onClick:function(){return onKindClick(l.STATEFUL_SET)},id:l.STATEFUL_SET,selected:L.includes(l.STATEFUL_SET)&&t.some(function(e){return e.kind.toLowerCase()===l.STATEFUL_SET}),disabled:1===L.length&&L.includes(l.STATEFUL_SET)||t.every(function(e){return e.kind.toLowerCase()!==l.STATEFUL_SET})},{label:"DemonSet",onClick:function(){return onKindClick(l.DAEMON_SET)},id:l.DAEMON_SET,selected:L.includes(l.DAEMON_SET)&&t.some(function(e){return e.kind.toLowerCase()===l.DAEMON_SET}),disabled:1===L.length&&L.includes(l.DAEMON_SET)||t.every(function(e){return e.kind.toLowerCase()!==l.DAEMON_SET})}]},{label:"Namespaces",subTitle:"Display",items:O,condition:!0},{label:"Sort by",subTitle:"Sort by",items:[{label:"Kind",onClick:function(){return onSortClick(d.KIND)},id:d.KIND,selected:_===d.KIND},{label:"Language",onClick:function(){return onSortClick(d.LANGUAGE)},id:d.LANGUAGE,selected:_===d.LANGUAGE},{label:"Name",onClick:function(){return onSortClick(d.NAME)},id:d.NAME,selected:_===d.NAME},{label:"Namespace",onClick:function(){return onSortClick(d.NAMESPACE)},id:d.NAMESPACE,selected:_===d.NAMESPACE}],condition:!0}];return I&&N.unshift({label:"Error",subTitle:"Filter by error message",condition:!0,items:z().map(function(e){return{label:e,onClick:function(){var t;return t=[],void(T.includes(e)?(P(T.filter(function(t){return t!==e})),t=T.filter(function(t){return t!==e})):(P([].concat((0,G.Z)(T),[e])),t=[].concat((0,G.Z)(T),[e])),y(t))},id:e,selected:T.includes(e),disabled:1===T.length&&T.includes(e)}})}),N},[n,C,t]);return(0,x.jsx)(eM,{children:(0,x.jsxs)(ez,{children:[(0,x.jsx)(h.Ho,{value:s.length===v.length&&v.length>0,onChange:function(){return f("select_all")}}),(0,x.jsx)(g.Kl,{size:18}),(0,x.jsx)(h.xJ,{size:14,weight:600,color:O.Z.text.white,children:"".concat(t.length," ").concat(p.mD.MENU.SOURCES)}),T.length>0&&(0,x.jsx)(h.Ju,{toggle:I,handleToggleChange:function(){return E(!I)},label:"Show Sources with Errors"}),s.length>0&&(0,x.jsx)(h.Rf,{onClick:c,value:p.mD.DELETE,fontSize:12}),(0,x.jsx)(eB,{children:(0,x.jsx)(h.BT,{actionGroups:B})})]})})}var ManagedSourcesTable=function(e){var t=e.data,n=e.namespaces,i=e.onRowClick,r=e.sortSources,o=e.filterSourcesByKind,a=e.deleteSourcesHandler,l=e.filterSourcesByNamespace,d=e.filterSourcesByLanguage,f=e.filterByConditionStatus,m=e.filterByConditionMessage,g=(0,u.useState)([]),y=g[0],v=g[1],b=(0,u.useState)(!1),_=b[0],j=b[1],w=(0,u.useState)(1),C=w[0],S=w[1],O=(0,u.useState)(10),N=O[0],I=O[1],E={title:p.mD.DELETE_SOURCE,showHeader:!0,showOverlay:!0,positionX:c.center,positionY:s.center,padding:"20px",footer:{primaryBtnText:p.mD.CONFIRM_SOURCE_DELETE,primaryBtnAction:function(){var e;j(!1),e=y.map(function(e){return JSON.parse(e)}),a&&a(e),v([])}}},A=u.useRef(1);function onSelectedCheckboxChange(e){var n=t.slice((C-1)*N,C*N);if("select_all"===e){y.length===n.length?v([]):v(n.map(function(e){return JSON.stringify(e)}));return}y.includes(e)?v(y.filter(function(t){return t!==e})):v([].concat((0,G.Z)(y),[e]))}var T=C*N,P=T-N,k=t.slice(P,T);return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(h.iA,{data:t,renderTableHeader:function(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(SourcesTableHeader,{data:t,namespaces:n,sortSources:r,filterSourcesByKind:o,filterSourcesByNamespace:l,filterSourcesByLanguage:d,selectedCheckbox:y,onSelectedCheckboxChange:onSelectedCheckboxChange,deleteSourcesHandler:function(){return j(!0)},filterByConditionStatus:f,filterByConditionMessage:m,currentItems:k}),_&&(0,x.jsx)(h.V2,{show:_,closeModal:function(){return j(!1)},config:E,children:(0,x.jsx)(h.xJ,{size:20,weight:600,children:"".concat(p.mD.DELETE," ").concat(y.length," sources")})})]})},onPaginate:function(e){A.current=e},renderEmptyResult:function(){return(0,x.jsx)(ej.rf,{title:p.mD.EMPTY_SOURCE})},renderTableRows:function(e,n){return(0,x.jsx)(SourcesTableRow,{data:t,item:e,index:n,onRowClick:i,selectedCheckbox:y,onSelectedCheckboxChange:onSelectedCheckboxChange})},currentPage:C,itemsPerPage:N,setCurrentPage:S,setItemsPerPage:I})})},eK=f.ZP.div.withConfig({displayName:"detected-containers__Container",componentId:"sc-14sy9oo-0"})(["margin-top:16px;max-width:36vw;margin-bottom:24px;border:1px solid #374a5b;border-radius:8px;padding:24px;"]),eW=f.ZP.ul.withConfig({displayName:"detected-containers__List",componentId:"sc-14sy9oo-1"})(["list-style:disc;"]),eJ=f.ZP.li.withConfig({displayName:"detected-containers__ListItem",componentId:"sc-14sy9oo-2"})(["padding:2px 0;&::marker{color:",";}"],O.Z.colors.white),DetectedContainers=function(e){var t=e.languages,n=e.conditions.some(function(e){return"False"===e.status});return(0,x.jsxs)(eK,{children:[(0,x.jsx)(h.xJ,{size:18,weight:600,children:"Detected Containers:"}),(0,x.jsx)(eW,{children:t.map(function(e){var t="ignore"!==e.language&&"unknown"!==e.language&&!(null!=e&&e.other_agent);return(0,x.jsxs)(eJ,{children:[(0,x.jsxs)(h.xJ,{color:t?O.Z.text.light_grey:"#4caf50",children:[e.container_name," (Language: ",e.language,null!=e&&e.runtime_version?", Runtime: ".concat(e.runtime_version):"",")",t&&!n&&" - Instrumented"]}),e.other_agent&&e.other_agent.name&&(0,x.jsx)(h.xJ,{color:O.Z.colors.orange_brown,size:12,style:{marginTop:6},children:"We detected another agent of ".concat(e.other_agent.name," that running in the container. Disable it\n to instrument this source.")})]},e.container_name)})}),(0,x.jsx)(h.xJ,{size:14,color:O.Z.text.light_grey,children:"Note: The system automatically instruments the containers it detects with a supported programming language."})]})},eU=f.ZP.div.withConfig({displayName:"destinationstableheader__StyledThead",componentId:"sc-6l1uup-0"})(["background-color:",";border-top-right-radius:6px;border-top-left-radius:6px;"],O.Z.colors.light_dark),eH=f.ZP.th.withConfig({displayName:"destinationstableheader__StyledTh",componentId:"sc-6l1uup-1"})(["padding:10px 20px;text-align:left;border-bottom:1px solid ",";"],O.Z.colors.blue_grey),eV=(0,f.ZP)(eH).withConfig({displayName:"destinationstableheader__StyledMainTh",componentId:"sc-6l1uup-2"})(["padding:10px 20px;display:flex;align-items:center;gap:8px;"]),eY=f.ZP.div.withConfig({displayName:"destinationstableheader__ActionGroupContainer",componentId:"sc-6l1uup-3"})(["display:flex;justify-content:flex-end;padding-right:20px;gap:24px;flex:1;"]);function DestinationsTableHeader(e){var t=e.data,n=e.sortDestinations,i=e.filterDestinationsBySignal,r=(0,u.useState)(""),o=r[0],a=r[1],c=(0,u.useState)(["traces","logs","metrics"]),s=c[0],l=c[1];function onSortClick(e){a(e),n&&n(e)}function onGroupClick(e){var t=[];s.includes(e)?(l(s.filter(function(t){return t!==e})),t=s.filter(function(t){return t!==e})):(l([].concat((0,G.Z)(s),[e])),t=[].concat((0,G.Z)(s),[e])),i&&i(t)}var d=[{label:"Metrics",subTitle:"Display",items:[{label:p.NK.TRACES,onClick:function(){return onGroupClick(p.NK.TRACES.toLowerCase())},id:p.NK.TRACES.toLowerCase(),selected:s.includes(p.NK.TRACES.toLowerCase()),disabled:1===s.length&&s.includes(p.NK.TRACES.toLowerCase())},{label:p.NK.LOGS,onClick:function(){return onGroupClick(p.NK.LOGS.toLowerCase())},id:p.NK.LOGS.toLowerCase(),selected:s.includes(p.NK.LOGS.toLowerCase()),disabled:1===s.length&&s.includes(p.NK.LOGS.toLowerCase())},{label:p.NK.METRICS,onClick:function(){return onGroupClick(p.NK.METRICS.toLowerCase())},id:p.NK.METRICS.toLowerCase(),selected:s.includes(p.NK.METRICS.toLowerCase()),disabled:1===s.length&&s.includes(p.NK.METRICS.toLowerCase())}],condition:!0},{label:"Sort by",subTitle:"Sort by",items:[{label:"Type",onClick:function(){return onSortClick(R.DestinationsSortType.TYPE)},id:R.DestinationsSortType.TYPE,selected:o===R.DestinationsSortType.TYPE},{label:"Name",onClick:function(){return onSortClick(R.DestinationsSortType.NAME)},id:R.DestinationsSortType.NAME,selected:o===R.DestinationsSortType.NAME}],condition:!0}];return(0,x.jsx)(eU,{children:(0,x.jsxs)(eV,{children:[(0,x.jsx)(g.Qm,{size:18}),(0,x.jsx)(h.xJ,{size:14,weight:600,color:O.Z.text.white,children:"".concat(t.length," ").concat(p.mD.MENU.DESTINATIONS)}),(0,x.jsx)(eY,{children:(0,x.jsx)(h.BT,{actionGroups:d})})]})})}function destinations_table_row_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function destinations_table_row_objectSpread(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=Array(t);ne.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(n);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.component_properties.required){var o=w[r.name];if(void 0===o||""===o.trim()||!O){t=!1;break}}}}catch(e){i.e(e)}finally{i.f()}m(!t)})()},[O,w]),(0,r.useEffect)(function(){p((s?et.map(function(e){return create_connection_form_objectSpread(create_connection_form_objectSpread({},e),{},{checked:s[e.id]})}):et).filter(function(e){var t,n,i=e.id;return null==o?void 0:null===(t=o.supported_signals)||void 0===t?void 0:null===(n=t[i])||void 0===n?void 0:n.supported}))},[o]),(0,V.K7)("Enter",function(e){h||onCreateClick()});var handleCheckboxChange=function(e){p(function(t){var n;return 1===t.filter(function(e){return e.checked}).length&&null!==(n=t.find(function(t){return t.id===e}))&&void 0!==n&&n.checked?t:t.map(function(t){return t.id===e?create_connection_form_objectSpread(create_connection_form_objectSpread({},t),{},{checked:!t.checked}):t})})};function onCreateClick(){var e=u.reduce(function(e,t){var n=t.id,i=t.checked;return create_connection_form_objectSpread(create_connection_form_objectSpread({},e),{},(0,b.Z)({},n,i))},{}),t=(0,ee.RB)(w);i({name:O,signals:e,fields:(0,ee.gs)(t),type:o.type})}function _handleCheckDestinationConnection(){return(_handleCheckDestinationConnection=(0,J.Z)(H().mark(function _callee(){var e,t,n;return H().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:e=u.reduce(function(e,t){var n=t.id,i=t.checked;return create_connection_form_objectSpread(create_connection_form_objectSpread({},e),{},(0,b.Z)({},n,i))},{}),t=(0,ee.RB)(w),n={name:O,signals:e,fields:(0,ee.gs)(t),type:o.type};try{E(n,v)}catch(e){}case 5:case"end":return i.stop()}},_callee)}))).apply(this,arguments)}return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.xJ,{size:18,weight:600,children:a?ee.ye.UPDATE_CONNECTION:ee.ye.CREATE_CONNECTION}),(null==u?void 0:u.length)>=1&&(0,y.jsxs)(q,{children:[(0,y.jsx)(l.xJ,{size:14,children:ee.ye.CONNECTION_MONITORS}),(0,y.jsx)(G,{children:u.map(function(e){return(0,y.jsx)(l.Ho,{value:null==e?void 0:e.checked,onChange:function(){return handleCheckboxChange(null==e?void 0:e.id)},label:null==e?void 0:e.label},null==e?void 0:e.id)})})]}),(0,y.jsx)(Q,{children:(0,y.jsx)(l.ix,{"data-cy":"create-destination-input-name",label:ee.ye.DESTINATION_NAME,value:O,onChange:N,required:!0})}),(t=function(e,t){null!==x.enabled&&v({enabled:null,message:""}),C(function(n){return create_connection_form_objectSpread(create_connection_form_objectSpread({},n),{},(0,b.Z)({},e,t))})},null==n?void 0:n.map(function(e){var n=e.name,i=e.component_type,r=e.display_name,o=e.component_properties;switch(i){case Y.Ar.INPUT:return(0,y.jsx)(Q,{children:(0,y.jsx)(l.ix,dynamic_fields_objectSpread({"data-cy":"create-destination-input-"+n,label:r,value:w[n],onChange:function(e){return t(n,e)}},o))},n);case Y.Ar.DROPDOWN:var a=null==o?void 0:o.values.map(function(e){return{label:e,id:e}}),c=w[n]?{id:w[n],label:w[n]}:null;return(0,y.jsx)(Q,{children:(0,y.jsx)(l.p,dynamic_fields_objectSpread({label:r,width:354,data:a,onChange:function(e){return t(n,e.label)},value:c},o))},n);case Y.Ar.MULTI_INPUT:var s=w[n]||e.initial_value;return"string"==typeof s&&(s=(0,k.D6)(s,[])),(0,y.jsx)("div",{style:{marginTop:22},children:(0,y.jsx)(l.oq,dynamic_fields_objectSpread({title:r,values:s,placeholder:"Add value",onValuesChange:function(e){return t(n,0===e.length?[]:e)}},o))},n);case Y.Ar.KEY_VALUE_PAIR:var d=w[n]||X;"string"==typeof d&&(d=(0,k.D6)(d,{}));var u,p=[],f=0,h=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}(e))){n&&(e=n);var i=0,F=function(){};return{s:F,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(d=Object.keys(d).map(function(e){return{key:e,value:d[e]}}));try{for(h.s();!(u=h.n()).done;){var m=u.value,g=m.key,x=m.value;p.push({id:f++,key:g,value:x})}}catch(e){h.e(e)}finally{h.f()}return d=p,(0,y.jsx)("div",{style:{marginTop:22},children:(0,y.jsx)(l.C1,dynamic_fields_objectSpread({title:r,setKeyValues:function(e){t(n,e.map(function(e){return{key:e.key,value:e.value}}).reduce(function(e,t){return e[t.key]=t.value,e},{}))},keyValues:d},o))},n);case Y.Ar.TEXTAREA:return(0,y.jsx)(Q,{style:{width:362},children:(0,y.jsx)(l.Kx,dynamic_fields_objectSpread({label:r,value:w[n],onChange:function(e){return t(n,e.target.value)}},o))},n);default:return null}})),(0,y.jsxs)($,{children:[(null==o?void 0:o.test_connection_supported)&&(0,y.jsx)(l.ZT,{variant:"secondary",disabled:h,onClick:function(){return _handleCheckDestinationConnection.apply(this,arguments)},children:A?(0,y.jsx)(l.kQ,{width:9,height:9}):null===x.enabled?(0,y.jsx)(l.xJ,{color:M.Z.text.secondary,size:14,weight:600,children:"Test Connection"}):x.enabled?(0,y.jsx)(l.xJ,{color:M.Z.colors.success,size:14,weight:600,children:"Connection Successful"}):(0,y.jsx)(l.xJ,{color:M.Z.colors.error,size:14,weight:600,children:x.message})}),(0,y.jsx)(l.ZT,{"data-cy":"create-destination-create-click",disabled:h||!1===x.enabled,onClick:onCreateClick,children:(0,y.jsx)(l.xJ,{color:M.Z.colors.dark_blue,size:14,weight:600,children:a?ee.ye.UPDATE_DESTINATION:ee.ye.CREATE_DESTINATION})})]})]})}n(8727),o.ZP.div.withConfig({displayName:"quickhelpstyled__QuickHelpHeader",componentId:"sc-14uo69z-0"})(["display:flex;gap:8px;margin-bottom:20px;"]),o.ZP.div.withConfig({displayName:"quickhelpstyled__QuickHelpVideoWrapper",componentId:"sc-14uo69z-1"})(["margin-bottom:32px;"]),n(4865)},9628:function(e,t,n){"use strict";n.d(t,{M3:function(){return S.M3},aM:function(){return ChooseDestinationContainer},s0:function(){return S.s0},Ks:function(){return ChooseSourcesContainer},mn:function(){return ConnectDestinationContainer},Pn:function(){return S.Pn},Jg:function(){return S.Jg},F0:function(){return S.F0},Z9:function(){return S.Z9},bI:function(){return S.bI},cA:function(){return S.cA},ZJ:function(){return S.ZJ},aF:function(){return S.aF},mj:function(){return S.mj},Zr:function(){return S.Zr},$G:function(){return S.$G}});var i=n(9891),r=n(7022),o=n(6952),a=n.n(o),c=n(2265),s=n(1032),l=n(9608),d=n(3103),u=n(4033),p=n(299),f=n(4328),h=n(3046),m=n(4865),g=n(7437);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ChooseSourcesContainer(){var e=(0,u.useRouter)(),t=(0,h.I0)(),n=(0,h.v9)(function(e){return e.app.sources}),o=(0,d.Fi)({}),y=o.sectionData,x=o.setSectionData,v=o.totalSelected;function onNextClick(){return _onNextClick.apply(this,arguments)}function _onNextClick(){return(_onNextClick=(0,i.Z)(a().mark(function _callee(){return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t((0,l.ed)(y)),e.push(s.Z6.CHOOSE_DESTINATION);case 2:case"end":return n.stop()}},_callee)}))).apply(this,arguments)}return(0,c.useEffect)(function(){n&&x(function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(s.categories);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(i)break;var c=a.items.filter(function(t){return t.type===e});c.length&&(i=c[0])}}catch(e){r.e(e)}finally{r.f()}n(i)}},[s]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(y.rc,{title:g.mD.MENU.DESTINATIONS,onBackClick:function(){a.back()}}),(0,u.jsx)(h,{children:c&&t&&(0,u.jsx)(v,{children:(0,u.jsx)(y.VU,{destinationType:c,selectedDestination:t,onSubmit:function(e){r(_objectSpread(_objectSpread({},e),{},{type:t.type}),{onSuccess:function(){return a.push("".concat(g.Z6.DESTINATIONS,"?status=created"))}})}})})})]})}var b=n(299),_=n(6757);function update_destination_flow_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function update_destination_flow_objectSpread(e){for(var t=1;t=5){clearInterval(l.current);return}},[o]),m)?(0,u.jsx)(b.kQ,{}):(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(et,{children:null!=h&&h.length?(0,u.jsxs)(en,{children:[(0,u.jsxs)(ei,{children:[(0,u.jsx)(b.$q,{containerStyle:{padding:"6px 8px"},placeholder:g.mD.SEARCH_SOURCE,value:t,onChange:function(e){return n(e.target.value)}}),(0,u.jsx)(er,{children:(0,u.jsx)(b.ZT,{onClick:handleAddSources,style:{height:32},children:(0,u.jsx)(b.xJ,{size:14,weight:600,color:S.Z.text.dark_button,children:g.mD.ADD_NEW_SOURCE})})})]}),(0,u.jsx)(eo,{children:(0,u.jsx)(y.Np,{sortSources:x,onRowClick:function(e){c.push("".concat(g.Z6.MANAGE_SOURCE,"?name=").concat(null==e?void 0:e.name,"&kind=").concat(null==e?void 0:e.kind,"&namespace=").concat(null==e?void 0:e.namespace))},namespaces:C,filterSourcesByKind:_,filterByConditionStatus:N,deleteSourcesHandler:j,data:t?h.filter(function(e){return e.name.toLowerCase().includes(t.toLowerCase())||e.namespace.toLowerCase().includes(t.toLowerCase())}):h,filterSourcesByLanguage:w,filterSourcesByNamespace:O,filterByConditionMessage:I})})]}):(0,u.jsx)(y.rf,{title:g.mD.EMPTY_SOURCE,btnTitle:g.mD.ADD_NEW_SOURCE,btnAction:handleAddSources})})})}var ea=c.ZP.div.withConfig({displayName:"styled__SourcesSectionWrapper",componentId:"sc-3wq9l8-0"})(["position:relative;height:81%;::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;@media screen and (max-height:650px){height:72%;}@media screen and (max-height:550px){height:65%;}"]),ec=c.ZP.div.withConfig({displayName:"styled__ButtonWrapper",componentId:"sc-3wq9l8-1"})(["position:absolute;display:flex;align-items:center;gap:16px;right:32px;top:40px;"]),es=n(4328);function NewSourcesList(e){var t=e.onSuccess,n=(0,f.Fi)({}),i=n.sectionData,r=n.setSectionData,o=n.totalSelected,a=(0,f.hi)().upsertSources;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(ec,{children:[(0,u.jsx)(b.xJ,{children:"".concat(o," ").concat(g.ye.SELECTED)}),(0,u.jsx)(b.ZT,{disabled:0===o,onClick:function(){return a({sectionData:i,onSuccess:t,onError:null})},style:{width:110},children:(0,u.jsx)(b.xJ,{weight:600,color:S.Z.text.dark_button,children:g.mD.CONNECT})})]}),(0,u.jsx)(ea,{children:(0,u.jsx)(es.Y,{sectionData:i,setSectionData:r})})]})}function SelectSourcesContainer(){var e=(0,d.useRouter)();return(0,u.jsxs)("div",{style:{height:"100vh"},children:[(0,u.jsx)(o.rc,{title:g.mD.ADD_NEW_SOURCE,onBackClick:function(){return e.back()}}),(0,u.jsx)(NewSourcesList,{onSuccess:function(){e.push("".concat(g.Z6.SOURCES,"?poll=true"))}})]})}var el=c.ZP.div.withConfig({displayName:"managesourceheader__ManageSourceHeaderWrapper",componentId:"sc-1rsqc7w-0"})(["display:flex;width:100%;min-width:686px;height:104px;align-items:center;border-radius:25px;margin:24px 0;background:radial-gradient( 78.09% 72.18% at 100% -0%,rgba(150,242,255,0.4) 0%,rgba(150,242,255,0) 61.91% ),linear-gradient(180deg,#2e4c55 0%,#303355 100%);"]),ed={backgroundColor:"#fff",padding:4,marginRight:16,marginLeft:16};function ManageSourceHeader(e){var t=e.source,n=(0,g.LV)(t),i=g.Fs[n];return(0,u.jsxs)(el,{children:[(0,u.jsx)(b.uR,{src:i,style:ed}),(0,u.jsxs)("div",{style:{flex:1},children:[(0,u.jsx)(b.xJ,{size:24,weight:600,color:"#fff",children:t.name}),(0,u.jsxs)(b.xJ,{size:16,weight:400,color:"#fff",children:[t.kind,' in namespace "',t.namespace,'"']})]})]})}c.ZP.div.withConfig({displayName:"styled__ButtonWrapper",componentId:"sc-1xkiou7-0"})(["position:absolute;display:flex;align-items:center;gap:16px;right:32px;top:40px;"]);var eu=c.ZP.div.withConfig({displayName:"styled__ManageSourcePageContainer",componentId:"sc-1xkiou7-1"})(["padding:32px;"]),ep=c.ZP.div.withConfig({displayName:"styled__BackButtonWrapper",componentId:"sc-1xkiou7-2"})(["display:flex;width:fit-content;align-items:center;cursor:pointer;p{cursor:pointer !important;}"]),ef=c.ZP.div.withConfig({displayName:"styled__FieldWrapper",componentId:"sc-1xkiou7-3"})(["height:36px;width:348px;margin-bottom:64px;"]),eh=c.ZP.div.withConfig({displayName:"styled__SaveSourceButtonWrapper",componentId:"sc-1xkiou7-4"})(["margin-top:48px;height:36px;width:362px;"]),em=n(8727),eg=n(8660),ey=n(2245);function source_describe_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function source_describe_objectSpread(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).map(function(e){var i=(0,eg.Z)(e,2),r=i[0],o=i[1],a="".concat(n,".").concat(r,".").concat(JSON.stringify(o));return"object"==typeof o&&null!==o&&o.hasOwnProperty("value")&&o.hasOwnProperty("name")?(0,u.jsxs)("div",{children:[(0,u.jsxs)("p",{onClick:function(){return t(a)},style:{cursor:"pointer"},children:[(0,u.jsxs)("strong",{children:[o.name,":"]})," ",String(o.value)]}),h[a]&&o.explain&&(0,u.jsx)(eO,{children:o.explain})]},a):"object"==typeof o&&null!==o?(0,u.jsx)("div",{style:{marginLeft:"16px"},children:renderObjectProperties(o)},r):Array.isArray(o)?(0,u.jsx)(CollectorSection,{title:r,collector:o},r):null})}(_)]})):"No source details available."})})]})},CollectorSection=function(e){var t=e.title,n=e.collector;return(0,u.jsxs)("section",{style:{marginTop:24},children:[(0,u.jsx)(eb,{children:t}),n.map(function(e,t){return(0,u.jsx)(CollectorItem,{label:e.podName.value,value:e.phase.value,status:e.phase.status},t)})]})},CollectorItem=function(e){var t=e.label,n=e.value,i="error"===e.status?S.Z.colors.error:S.Z.text.light_grey;return(0,u.jsxs)(eS,{color:i,children:["- ",t,": ",String(n)]})},ex=c.ZP.div.withConfig({displayName:"source-describe__VersionHeader",componentId:"sc-bbjjvc-0"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;"]),ev=(0,c.ZP)(b.xJ).withConfig({displayName:"source-describe__VersionText",componentId:"sc-bbjjvc-1"})(["font-size:24px;"]),eb=(0,c.ZP)(b.xJ).withConfig({displayName:"source-describe__CollectorTitle",componentId:"sc-bbjjvc-2"})(["font-size:20px;margin-bottom:10px;"]),e_=c.ZP.div.withConfig({displayName:"source-describe__NotificationBadge",componentId:"sc-bbjjvc-3"})(["position:absolute;top:-4px;right:-4px;background-color:",";color:white;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center;font-size:12px;"],function(e){var t=e.status;return"error"===t?S.Z.colors.error:"transitioning"===t?S.Z.colors.orange_brown:S.Z.colors.success}),ej=c.ZP.div.withConfig({displayName:"source-describe__IconWrapper",componentId:"sc-bbjjvc-4"})(["position:relative;padding:8px;width:16px;border-radius:8px;border:1px solid ",";display:flex;align-items:center;cursor:pointer;&:hover{background-color:",";}"],S.Z.colors.blue_grey,S.Z.colors.dark),ew=c.ZP.p.withConfig({displayName:"source-describe__LoadingMessage",componentId:"sc-bbjjvc-5"})(["font-size:1rem;color:#555;"]),eC=(0,c.ZP)(b.xJ).withConfig({displayName:"source-describe__DescriptionContent",componentId:"sc-bbjjvc-6"})(["white-space:pre-wrap;line-height:1.6;padding:20px;"]),eS=c.ZP.div.withConfig({displayName:"source-describe__StatusText",componentId:"sc-bbjjvc-7"})(["color:",";font-weight:bold;margin-bottom:8px;padding-left:16px;"],function(e){return e.color}),eO=c.ZP.p.withConfig({displayName:"source-describe__ExplanationText",componentId:"sc-bbjjvc-8"})(["font-size:0.9rem;color:",";margin-top:-5px;margin-bottom:10px;"],S.Z.text.light_grey);function EditSourceForm(){var e,t=(0,i.useState)(""),n=t[0],r=t[1],a=(0,i.useState)(),c=a[0],s=a[1],l=(0,d.useSearchParams)(),p=(0,d.useRouter)(),h=(0,m.useMutation)(function(){return(0,x.JN)((null==c?void 0:c.namespace)||"",(null==c?void 0:c.kind)||"",(null==c?void 0:c.name)||"")}).mutate,y=(0,m.useMutation)(function(){return(0,x.QA)((null==c?void 0:c.namespace)||"",(null==c?void 0:c.kind)||"",(null==c?void 0:c.name)||"",{reported_name:n})}).mutate;function _onPageLoad(){return(_onPageLoad=(0,j.Z)(C().mark(function _callee(){var e,t,n;return C().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e=l.get("name")||"",t=l.get("kind")||"",n=l.get("namespace")||"",i.next=5,(0,x.b5)(n,t,e);case 5:s(i.sent);case 7:case"end":return i.stop()}},_callee)}))).apply(this,arguments)}function onSaveClick(){y(void 0,{onSuccess:function(){return p.push("".concat(g.Z6.SOURCES,"??poll=true"))}})}return(0,i.useEffect)(function(){(function(){_onPageLoad.apply(this,arguments)})()},[l]),(0,i.useEffect)(function(){r((null==c?void 0:c.reported_name)||"")},[c]),(0,f.K7)("Enter",function(e){onSaveClick()}),c?(0,u.jsxs)(eu,{children:[(0,u.jsxs)(ep,{onClick:function(){return p.back()},children:[(0,u.jsx)(em.xC,{size:14}),(0,u.jsx)(b.xJ,{size:14,children:g.ye.BACK})]}),(0,u.jsx)(eN,{children:(0,u.jsx)(SourceDescriptionDrawer,{namespace:c.namespace,kind:c.kind,name:c.name})}),c&&(0,u.jsx)(ManageSourceHeader,{source:c}),(0,u.jsxs)("div",{style:{display:"flex",gap:60},children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(o.RB,{languages:c.instrumented_application_details.languages||[],conditions:c.instrumented_application_details.conditions}),(0,u.jsx)(ef,{children:(0,u.jsx)(b.ix,{label:g.mD.REPORTED_NAME,value:n,onChange:function(e){return r(e)}})}),(0,u.jsx)(eh,{children:(0,u.jsx)(b.ZT,{disabled:!n,onClick:onSaveClick,children:(0,u.jsx)(b.xJ,{color:S.Z.colors.dark_blue,size:14,weight:600,children:g.om.SAVE})})}),(0,u.jsx)(o.R6,{onDelete:function(){h(void 0,{onSuccess:function(){return p.push("".concat(g.Z6.SOURCES,"??poll=true"))}})},name:null==c?void 0:c.name,image_url:g.Fs[(0,g.LV)(c)]})]}),(0,u.jsx)(b.G3,{conditions:null===(e=c.instrumented_application_details)||void 0===e?void 0:e.conditions})]})]}):(0,u.jsx)(b.kQ,{})}var eN=c.ZP.div.withConfig({displayName:"editsource__DrawerContainer",componentId:"sc-vygftu-0"})(["position:absolute;right:32px;top:16px;"]),eI=c.ZP.div.withConfig({displayName:"styled__Container",componentId:"sc-izwyro-0"})(["display:flex;justify-content:center;max-height:100%;overflow-y:auto;"]),eE=c.ZP.div.withConfig({displayName:"styled__DestinationsContainer",componentId:"sc-izwyro-1"})(["margin-top:24px;width:100%;max-width:1216px;"]),eA=c.ZP.div.withConfig({displayName:"styled__Header",componentId:"sc-izwyro-2"})(["display:flex;justify-content:space-between;padding:0 24px;align-items:center;"]),eT=c.ZP.div.withConfig({displayName:"styled__HeaderRight",componentId:"sc-izwyro-3"})(["display:flex;gap:8px;align-items:center;"]),eP=c.ZP.div.withConfig({displayName:"styled__Content",componentId:"sc-izwyro-4"})(["padding:20px;min-height:200px;"]);function DestinationContainer(){var e=(0,i.useState)(""),t=e[0],n=e[1],r=(0,f.um)(),o=r.destinationList,a=r.destinationLoading,c=r.sortDestinations,s=r.refetchDestinations,l=r.filterDestinationsBySignal,p=(0,d.useRouter)();function handleAddDestination(){p.push(g.Z6.CREATE_DESTINATION)}return((0,i.useEffect)(function(){s()},[]),a)?(0,u.jsx)(b.kQ,{}):(0,u.jsx)(eI,{children:null!=o&&o.length?(0,u.jsxs)(eE,{children:[(0,u.jsxs)(eA,{children:[(0,u.jsx)(b.$q,{containerStyle:{padding:"6px 8px"},value:t,onChange:function(e){return n(e.target.value)}}),(0,u.jsx)(eT,{children:(0,u.jsx)(b.ZT,{onClick:handleAddDestination,style:{height:32},children:(0,u.jsx)(b.xJ,{size:14,weight:600,color:S.Z.text.dark_button,children:g.mD.ADD_NEW_DESTINATION})})})]}),(0,u.jsx)(eP,{children:(0,u.jsx)(y.bk,{sortDestinations:c,filterDestinationsBySignal:l,data:t?o.filter(function(e){return e.name.toLowerCase().includes(t.toLowerCase())}):o,onRowClick:function(e){var t=e.id;return p.push("".concat(g.Z6.UPDATE_DESTINATION).concat(t))}})})]}):(0,u.jsx)(y.rf,{title:g.mD.EMPTY_DESTINATION,btnTitle:g.mD.ADD_NEW_DESTINATION,btnAction:handleAddDestination})})}var ek=c.ZP.div.withConfig({displayName:"styled__OverviewDataFlowWrapper",componentId:"sc-10vv524-0"})(["width:100%;height:100%;"]);function data_flow_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function data_flow_objectSpread(e){for(var t=1;t0?r:[{language:"default",container_name:""}]});var c=formatBytes(null==a?void 0:a.throughput);return data_flow_objectSpread(data_flow_objectSpread({},e),{},{conditions:o,metrics:{data_transfer:c},languages:r.length>0?r:[{language:"default",container_name:""}]})}),i=_.map(function(e){var t,n=null==S?void 0:null===(t=S.destinations)||void 0===t?void 0:t.find(function(t){return t.id===e.id});if(!n)return e;var i=formatBytes(null!=n&&n.throughput||(null==n?void 0:n.throughput)===0?null==n?void 0:n.throughput:0);return data_flow_objectSpread(data_flow_objectSpread({},e),{},{metrics:{data_transfer:i}})}),r=(0,em.xq)(t,i,e),o=r.nodes,c=r.edges;n(o),a(c)}},[h,_,y,S]),(0,i.useEffect)(function(){if(w.get("poll"))return C.current=setInterval(function(){Promise.all([x(),j()]).then(function(){}).catch(console.error),l(function(e){return e+1})},2e3),function(){return clearInterval(C.current)}},[j,x,s,w]),(0,i.useEffect)(function(){if(s>=5){clearInterval(C.current);return}},[s]),t&&o)?(0,u.jsx)(ek,{children:(0,u.jsx)(b.tA,{nodes:t,edges:o,onNodeClick:function(e,t){var n;(null==t?void 0:t.type)==="destination"&&p.push("".concat(g.Z6.UPDATE_DESTINATION).concat(t.data.id)),(null==t?void 0:t.type)==="action"&&p.push("".concat(g.Z6.EDIT_ACTION,"?id=").concat(t.data.id)),null!=t&&null!==(n=t.data)&&void 0!==n&&n.kind&&p.push("".concat(g.Z6.MANAGE_SOURCE,"?name=").concat(t.data.name,"&namespace=").concat(t.data.namespace,"&kind=").concat(t.data.kind))}})}):(0,u.jsx)(b.kQ,{})}function formatBytes(e){if(0===e)return"0 KB/s";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB/s","MB/s","GB/s","TB/s"][t])}var eD=n(4667),OdigosDescriptionDrawer=function(e){(0,eD.Z)(e);var t=(0,i.useState)(!1),n=t[0],r=t[1],o=(0,i.useState)("success"),a=o[0],c=o[1],s=(0,f.HY)(),l=s.odigosDescription,d=s.isOdigosLoading,p=s.refetchOdigosDescription;return(0,i.useEffect)(function(){if(l){var e,t=(e=[],Object.values(l.clusterCollector).forEach(function(t){t.status&&e.push(t.status)}),Object.values(l.nodeCollector).forEach(function(t){t.status&&e.push(t.status)}),e);t.includes("error")?c("error"):t.includes("transitioning")?c("transitioning"):c("success")}},[l]),(0,i.useEffect)(function(){p()},[p]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(eF,{onClick:function(){return r(!n)},children:[(0,u.jsx)(ey.fP,{style:{cursor:"pointer"},size:10}),!d&&(0,u.jsx)(eM,{status:a,children:(0,u.jsx)(b.xJ,{size:10,children:"transitioning"===a?"...":"error"===a?"!":""})})]}),n&&(0,u.jsx)(b.dy,{isOpen:n,onClose:function(){return r(!1)},position:"right",width:"fit-content",children:d?(0,u.jsx)(ez,{children:"Loading description..."}):(0,u.jsx)(eB,{children:l?(0,u.jsxs)("div",{children:[l.odigosVersion&&(0,u.jsxs)(eZ,{children:[(0,u.jsxs)(eR,{children:[l.odigosVersion.name,": ",l.odigosVersion.value]}),(0,u.jsx)(eF,{onClick:p,children:(0,u.jsx)(ey.hY,{size:16})})]}),(0,u.jsxs)("p",{children:["Destinations: ",l.numberOfDestinations]}),(0,u.jsxs)("p",{children:["Sources: ",l.numberOfSources]}),(0,u.jsx)(odigos_describe_CollectorSection,{title:"Cluster Collector",collector:l.clusterCollector}),(0,u.jsx)(odigos_describe_CollectorSection,{title:"Node Collector",collector:l.nodeCollector})]}):"No description available."})})]})},odigos_describe_CollectorSection=function(e){var t=e.title,n=e.collector;return(0,u.jsxs)("section",{style:{marginTop:24},children:[(0,u.jsx)(eL,{children:t}),Object.entries(n).map(function(e){var t=(0,eg.Z)(e,2),n=t[0],i=t[1];return(0,u.jsx)(odigos_describe_CollectorItem,{label:i.name,value:i.value,status:i.status,explain:i.explain},n)})]})},odigos_describe_CollectorItem=function(e){var t=e.label,n=e.value,r=e.status,o=e.explain,a=(0,i.useState)(!1),c=a[0],s=a[1],l="error"===r?S.Z.colors.error:S.Z.text.light_grey;return(0,u.jsxs)("div",{style:{paddingLeft:"16px",marginBottom:"8px"},children:[(0,u.jsxs)(eK,{color:l,onClick:function(){return s(!c)},children:["- ",t,": ",String(n)]}),c&&(0,u.jsx)(eW,{children:o})]})},eZ=c.ZP.div.withConfig({displayName:"odigos-describe__VersionHeader",componentId:"sc-1uxoyp-0"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;"]),eR=(0,c.ZP)(b.xJ).withConfig({displayName:"odigos-describe__VersionText",componentId:"sc-1uxoyp-1"})(["font-size:24px;"]),eL=(0,c.ZP)(b.xJ).withConfig({displayName:"odigos-describe__CollectorTitle",componentId:"sc-1uxoyp-2"})(["font-size:20px;margin-bottom:10px;"]),eM=c.ZP.div.withConfig({displayName:"odigos-describe__NotificationBadge",componentId:"sc-1uxoyp-3"})(["position:absolute;top:-4px;right:-4px;background-color:",";color:white;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center;font-size:12px;"],function(e){var t=e.status;return"error"===t?S.Z.colors.error:"transitioning"===t?S.Z.colors.orange_brown:S.Z.colors.success}),eF=c.ZP.div.withConfig({displayName:"odigos-describe__IconWrapper",componentId:"sc-1uxoyp-4"})(["position:relative;padding:8px;width:16px;border-radius:8px;border:1px solid ",";display:flex;align-items:center;cursor:pointer;&:hover{background-color:",";}"],S.Z.colors.blue_grey,S.Z.colors.dark),ez=c.ZP.p.withConfig({displayName:"odigos-describe__LoadingMessage",componentId:"sc-1uxoyp-5"})(["font-size:1rem;color:#555;"]),eB=(0,c.ZP)(b.xJ).withConfig({displayName:"odigos-describe__DescriptionContent",componentId:"sc-1uxoyp-6"})(["white-space:pre-wrap;line-height:1.6;padding:20px;max-width:650px;"]),eK=c.ZP.div.withConfig({displayName:"odigos-describe__StatusText",componentId:"sc-1uxoyp-7"})(["color:",";font-weight:bold;cursor:pointer;"],function(e){return e.color}),eW=c.ZP.span.withConfig({displayName:"odigos-describe__StatusBadge",componentId:"sc-1uxoyp-8"})(["font-size:0.8rem;font-weight:normal;margin-left:4px;color:inherit;"]),eJ=n(8078)},8078:function(e,t,n){"use strict";n.d(t,{s0:function(){return ChooseInstrumentationRuleContainer},Jg:function(){return CreateInstrumentationRulesContainer},cA:function(){return EditInstrumentationRuleContainer},Nc:function(){return ManagedInstrumentationRulesContainer}});var i=n(2265),r=n(3672),o=n(3024),a=n(4033),c=n(3103),s=n(299),l=n(3587),d=l.ZP.div.withConfig({displayName:"styled__Container",componentId:"sc-3j75fw-0"})(["display:flex;justify-content:center;max-height:100%;overflow-y:auto;"]),u=l.ZP.div.withConfig({displayName:"styled__InstrumentationRulesContainer",componentId:"sc-3j75fw-1"})(["margin-top:24px;width:100%;max-width:1216px;"]),p=l.ZP.div.withConfig({displayName:"styled__Header",componentId:"sc-3j75fw-2"})(["display:flex;justify-content:space-between;padding:0 24px;align-items:center;"]),f=l.ZP.div.withConfig({displayName:"styled__HeaderRight",componentId:"sc-3j75fw-3"})(["display:flex;gap:8px;align-items:center;"]),h=l.ZP.div.withConfig({displayName:"styled__Content",componentId:"sc-3j75fw-4"})(["padding:20px;min-height:200px;"]),m=n(4490),g=n(1032),y=n(2245),x=n(9353),v=n(7437);function RuleRowDynamicContent(e){return e.item,(0,v.jsx)(v.Fragment,{children:"payload-collection"===x.RulesType.PAYLOAD_COLLECTION?(0,v.jsx)(s.xJ,{color:r.Z.text.grey,size:14,weight:400,children:" "}):(0,v.jsx)("div",{})})}var b=l.ZP.tr.withConfig({displayName:"instrumentationrulestablerow__StyledTr",componentId:"sc-puz92q-0"})(["&:hover{background-color:",";}"],r.Z.colors.light_dark),_=l.ZP.td.withConfig({displayName:"instrumentationrulestablerow__StyledTd",componentId:"sc-puz92q-1"})(["padding:10px 20px;border-top:1px solid ",";display:flex;",""],r.Z.colors.blue_grey,function(e){return e.isFirstRow&&(0,l.iv)(["border-top:none;"])}),j=(0,l.ZP)(_).withConfig({displayName:"instrumentationrulestablerow__StyledMainTd",componentId:"sc-puz92q-2"})(["cursor:pointer;padding:10px 20px;"]),w=l.ZP.div.withConfig({displayName:"instrumentationrulestablerow__RuleIconContainer",componentId:"sc-puz92q-3"})(["display:flex;gap:8px;margin-left:10px;width:100%;"]),C=l.ZP.div.withConfig({displayName:"instrumentationrulestablerow__RuleDetails",componentId:"sc-puz92q-4"})(["display:flex;flex-direction:column;gap:4px;"]),S=l.ZP.div.withConfig({displayName:"instrumentationrulestablerow__ClusterAttributesContainer",componentId:"sc-puz92q-5"})(["display:flex;gap:8px;align-items:center;"]);function InstrumentationRulesTableRow(e){var t=e.item,n=e.index,i=e.onRowClick;return(0,v.jsx)(b,{children:(0,v.jsx)(j,{isFirstRow:0===n,onClick:function(){return i((null==t?void 0:t.ruleId)||"")},children:(0,v.jsxs)(w,{children:[(0,v.jsx)("div",{style:{height:16},children:(0,v.jsx)(y.Kq,{style:{width:16,height:16}})}),(0,v.jsxs)(C,{children:[(0,v.jsx)(s.xJ,{color:r.Z.colors.light_grey,size:12,children:g.Of["payload-collection"].TITLE}),(0,v.jsxs)(S,{children:[(0,v.jsx)(s.xJ,{"data-cy":"rules-rule-name",weight:600,children:"".concat((null==t?void 0:t.ruleName)||"Rule")}),(0,v.jsx)(RuleRowDynamicContent,{item:t})]}),(0,v.jsx)(s.xJ,{color:r.Z.text.light_grey,size:14,children:null==t?void 0:t.notes})]})]})})},null==t?void 0:t.ruleId)}var O=l.ZP.div.withConfig({displayName:"instrumentationrulestableheader__StyledThead",componentId:"sc-11m7g1z-0"})(["background-color:",";border-top-right-radius:6px;border-top-left-radius:6px;"],r.Z.colors.light_dark),N=l.ZP.th.withConfig({displayName:"instrumentationrulestableheader__StyledTh",componentId:"sc-11m7g1z-1"})(["padding:10px 20px;text-align:left;border-bottom:1px solid ",";"],r.Z.colors.blue_grey),I=(0,l.ZP)(N).withConfig({displayName:"instrumentationrulestableheader__StyledMainTh",componentId:"sc-11m7g1z-2"})(["padding:10px 20px;display:flex;align-items:center;gap:8px;"]);function InstrumentationRulesTableHeader(e){var t=e.data;return(0,v.jsx)(O,{children:(0,v.jsxs)(I,{children:[(0,v.jsx)(y.oe,{style:{width:18}}),(0,v.jsx)(s.xJ,{size:14,weight:600,color:r.Z.text.white,children:"".concat(t.length," ").concat(g.mD.MENU.INSTRUMENTATION_RULES)})]})})}var InstrumentationRulesTable=function(e){var t=e.data,n=e.onRowClick,r=(0,i.useState)([]),o=r[0],a=r[1],c=(0,i.useState)(1),l=c[0],d=c[1],u=(0,i.useState)(10),p=u[0],f=u[1],h=i.useRef(1);return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(s.iA,{data:t,renderTableHeader:function(){return(0,v.jsx)(InstrumentationRulesTableHeader,{data:t})},onPaginate:function(e){h.current=e,o.length>0&&a([])},renderEmptyResult:function(){return(0,v.jsx)(m.rf,{title:"No rules found"})},currentPage:l,itemsPerPage:p,setCurrentPage:d,setItemsPerPage:f,renderTableRows:function(e,t){return(0,v.jsx)(InstrumentationRulesTableRow,{item:e,index:t,onRowClick:n})}})})};function ManagedInstrumentationRulesContainer(){var e=(0,a.useRouter)(),t=(0,c.RP)(),n=t.isLoading,l=t.rules,m=t.refetch;function handleAddRule(){e.push("/choose-rule")}return(t.removeRule,(0,i.useEffect)(function(){m()},[]),n)?(0,v.jsx)(s.kQ,{}):(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(d,{children:null!=l&&l.length?(0,v.jsxs)(u,{children:[!(n||1===l.length)&&(0,v.jsxs)(p,{children:[(0,v.jsx)("div",{}),(0,v.jsx)(f,{children:(0,v.jsx)(s.ZT,{onClick:handleAddRule,style:{height:32},children:(0,v.jsx)(s.xJ,{size:14,weight:600,color:r.Z.text.dark_button,children:"Add Rule"})})})]}),(0,v.jsx)(h,{children:(0,v.jsx)(InstrumentationRulesTable,{data:l,onRowClick:function(t){e.push("edit-rule?id=".concat(t))}})})]}):(0,v.jsx)(o.rf,{title:"No rules found",btnTitle:"Add Rule",btnAction:handleAddRule})})})}var E=l.ZP.div.withConfig({displayName:"styled__ActionsListWrapper",componentId:"sc-ihyi7j-0"})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;padding:0 24px 24px 24px;overflow-y:auto;align-items:start;max-height:100%;padding-bottom:220px;box-sizing:border-box;"]),A=l.ZP.div.withConfig({displayName:"styled__DescriptionWrapper",componentId:"sc-ihyi7j-1"})(["padding:24px;gap:4px;display:flex;flex-wrap:wrap;align-items:center;"]),T=l.ZP.div.withConfig({displayName:"styled__LinkWrapper",componentId:"sc-ihyi7j-2"})(["width:100px;"]),P=l.ZP.div.withConfig({displayName:"styled__ActionCardWrapper",componentId:"sc-ihyi7j-3"})(["height:100%;max-height:220px;"]),k=[{id:"payload-collection",title:"Payload Collection",description:"Record operation payloads as span attributes where supported.",type:x.InstrumentationRuleType.PAYLOAD_COLLECTION,icon:x.InstrumentationRuleType.PAYLOAD_COLLECTION}];function ChooseInstrumentationRuleContainer(){var e=(0,a.useRouter)();function onItemClick(t){var n=t.item;e.push("/create-rule?type=".concat(n.type))}return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(A,{children:[(0,v.jsx)(s.xJ,{size:14,children:g.mD.INSTRUMENTATION_RULE_DESCRIPTION}),(0,v.jsx)(T,{children:(0,v.jsx)(s.Rf,{fontSize:14,value:g.om.LINK_TO_DOCS,onClick:function(){return window.open(g.VR,"_blank")}})})]}),(0,v.jsx)(E,{children:k.map(function(e){return(0,v.jsx)(P,{"data-cy":"choose-instrumentation-rule-"+e.type,children:(0,v.jsx)(o.S3,{item:e,onClick:onItemClick})},e.id)})})]})}var D=n(9891),Z=n(7022),R=n(6952),L=n.n(R),M=l.ZP.div.withConfig({displayName:"styled__Container",componentId:"sc-1u0f3i9-0"})(["display:flex;height:100%;padding:24px;.action-yaml-column{display:none;}@media screen and (max-height:700px){height:90%;}@media screen and (max-width:1200px){.action-yaml-row{display:none;}.action-yaml-column{display:block;}width:100%;}"]),z=l.ZP.div.withConfig({displayName:"styled__HeaderText",componentId:"sc-1u0f3i9-1"})(["display:flex;align-items:center;gap:8px;"]),B=l.ZP.div.withConfig({displayName:"styled__CreateActionWrapper",componentId:"sc-1u0f3i9-2"})(["display:flex;flex-direction:column;gap:16px;padding:24px;padding-top:0;box-sizing:border-box;max-height:90%;overflow-y:auto;@media screen and (max-height:450px){max-height:85%;}@media screen and (max-width:1200px){width:100%;}"]);(0,l.ZP)(B).withConfig({displayName:"styled__ActionYamlWrapper",componentId:"sc-1u0f3i9-3"})([""]);var K=l.ZP.div.withConfig({displayName:"styled__KeyvalInputWrapper",componentId:"sc-1u0f3i9-4"})(["width:362px;"]),W=l.ZP.div.withConfig({displayName:"styled__TextareaWrapper",componentId:"sc-1u0f3i9-5"})(["width:375px;"]),J=l.ZP.div.withConfig({displayName:"styled__CreateButtonWrapper",componentId:"sc-1u0f3i9-6"})(["margin-top:32px;width:375px;"]),U=l.ZP.div.withConfig({displayName:"styled__DescriptionWrapper",componentId:"sc-1u0f3i9-7"})(["width:100%;max-width:40vw;min-width:370px;margin-bottom:16px;display:flex;flex-direction:column;gap:6px;"]);l.ZP.div.withConfig({displayName:"styled__LinkWrapper",componentId:"sc-1u0f3i9-8"})(["margin-left:8px;width:100px;"]);var H=l.ZP.div.withConfig({displayName:"styled__LoaderWrapper",componentId:"sc-1u0f3i9-9"})(["display:flex;justify-content:center;align-items:center;height:100%;"]);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t0)},[n]);var handleSelectAllChange=function(e,t){o(e,t),l(t)},handleItemChange=function(e){r(e,n.title)};return(0,x.jsxs)("div",{children:[(0,x.jsxs)("div",{style:{marginBottom:8,display:"flex",alignItems:"center"},children:[(0,x.jsx)(d.Ho,{value:c,onChange:function(){return handleSelectAllChange(n.title,!c)},label:""}),(0,x.jsxs)("div",{style:{cursor:"pointer",display:"flex",alignItems:"center"},onClick:function(){i(n),f(!p)},children:[(0,x.jsx)(d.xJ,{style:{marginLeft:8,flex:1,cursor:"pointer"},children:n.title}),(0,x.jsx)(v,{expanded:p,children:(0,x.jsx)(y.Y8,{size:10})})]})]}),p&&(0,x.jsx)("div",{style:{paddingLeft:"20px"},children:null===(t=n.items)||void 0===t?void 0:t.map(function(e,t){return(0,x.jsx)("div",{style:{cursor:"pointer",marginBottom:8},children:(0,x.jsx)(d.Ho,{value:e.selected,onChange:function(){return handleItemChange(e)},label:"".concat(e.name," / ").concat(e.kind.toLowerCase())})},t)})})]})}var b=n(3672),_=n(3103),j=n(4033),w=n(9608),C=n(3046);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);ne.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(e),u.prev=1,n.s();case 3:if((i=n.n()).done){u.next=20;break}return o=i.value,u.next=7,getActionById(o);case 7:if(!((c=u.sent)&&c.spec.disabled!==t)){u.next=18;break}return s=useActions_objectSpread(useActions_objectSpread({id:c.id},c.spec),{},{disabled:t,type:c.type}),u.prev=10,u.next=13,h(s);case 13:u.next=18;break;case 15:return u.prev=15,u.t0=u.catch(10),u.abrupt("return",Promise.reject(!1));case 18:u.next=3;break;case 20:u.next=25;break;case 22:u.prev=22,u.t1=u.catch(1),n.e(u.t1);case 25:return u.prev=25,n.f(),u.finish(25);case 28:return setTimeout((0,a.Z)(l().mark(function _callee2(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:d(e.sent.data||[]);case 4:case"end":return e.stop()}},_callee2)})),1e3),u.abrupt("return",Promise.resolve(!0));case 30:case"end":return u.stop()}},_callee3,null,[[1,22,25,28],[10,15]])}))).apply(this,arguments)}function _handleActionsRefresh(){return(_handleActionsRefresh=(0,a.Z)(l().mark(function _callee4(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:d(e.sent.data||[]);case 4:case"end":return e.stop()}},_callee4)}))).apply(this,arguments)}return(0,i.useEffect)(function(){d(n||[])},[n]),{isLoading:t,actions:s||[],sortActions:function(e){d((0,o.Z)(n||[]).sort(function(t,n){var i,r,o,a;switch(e){case u.ActionsSortType.TYPE:return t.type.localeCompare(n.type);case u.ActionsSortType.ACTION_NAME:var c=(null===(i=t.spec)||void 0===i?void 0:i.actionName)||"",s=(null===(r=n.spec)||void 0===r?void 0:r.actionName)||"";return c.localeCompare(s);case u.ActionsSortType.STATUS:return(null!==(o=t.spec)&&void 0!==o&&o.disabled?1:-1)-(null!==(a=n.spec)&&void 0!==a&&a.disabled?1:-1);default:return 0}}))},getActionById:getActionById,filterActionsBySignal:function(e){d(null==n?void 0:n.filter(function(t){return e.some(function(e){return t.spec.signals.includes(e.toUpperCase())})}))},toggleActionStatus:function(e,t){return _toggleActionStatus.apply(this,arguments)},refetch:function(){return _handleActionsRefresh.apply(this,arguments)}}}function useActionState_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function useActionState_objectSpread(e){for(var t=1;t0)||void 0===f[0]||f[0],n=t.actionName,i=t.actionNote,r=t.actionData,o=t.selectedMonitors,a=t.disabled,p=useActionState_objectSpread(useActionState_objectSpread({actionName:n,notes:i,signals:getSupportedSignals(c=t.type,o).filter(function(e){return e.checked}).map(function(e){return e.label.toUpperCase()})},function(e,t){switch(e){case u.ActionsType.ADD_CLUSTER_INFO:return{clusterAttributes:t.clusterAttributes.filter(function(e){return""!==e.attributeStringValue&&""!==e.attributeName})};case u.ActionsType.DELETE_ATTRIBUTES:return{attributeNamesToDelete:t.attributeNamesToDelete.filter(function(e){return""!==e})};case u.ActionsType.RENAME_ATTRIBUTES:return{renames:Object.fromEntries(Object.entries(t.renames).filter(function(e){var t=(0,x.Z)(e,2),n=t[0],i=t[1];return""!==n&&""!==i}))};default:return t}}(c,r)),{},{disabled:e?a:!a}),l.prev=5,!(null!=t&&t.id)){l.next=11;break}return l.next=9,d(p);case 9:l.next=14;break;case 11:return delete p.disabled,l.next=14,s(p);case 14:e&&onSuccess(),l.next=20;break;case 17:l.prev=17,l.t0=l.catch(5),console.error({error:l.t0});case 20:case"end":return l.stop()}},_callee3,null,[[5,17]])}))).apply(this,arguments)}function getSupportedSignals(e,t){return e===u.ActionsType.ERROR_SAMPLER||e===u.ActionsType.PROBABILISTIC_SAMPLER||e===u.ActionsType.LATENCY_SAMPLER||e===u.ActionsType.PII_MASKING?t.filter(function(e){return"Traces"===e.label}):t}return{actionState:t,upsertAction:upsertAction,onDeleteAction:function(){try{null!=t&&t.id&&(h(t.id),onSuccess())}catch(e){}},buildActionData:function(e){return _buildActionData.apply(this,arguments)},getSupportedSignals:getSupportedSignals,onChangeActionState:function(e,t){n(function(n){return useActionState_objectSpread(useActionState_objectSpread({},n),{},(0,c.Z)({},e,t))}),"disabled"===e&&upsertAction(!1)}}}var b=n(9608),useNotify=function(){var e=b.h.dispatch;return function(t){var n=t.message,i=t.title,r=t.type,o=t.target,a=t.crdType,c=new Date().getTime().toString();e((0,b.wN)({id:c,message:n,title:i,type:r,target:o,crdType:a}))}};function useSSE(){var e=(0,i.useRef)({}),t=(0,i.useState)(0),n=(t[0],t[1]);(0,i.useEffect)(function(){var t=function connect(){var t=new EventSource(m.bl.EVENTS);return t.onmessage=function(t){var i=JSON.parse(t.data),r=t.data,o={id:Date.now(),message:i.data,title:i.event,type:i.type,target:i.target,crdType:i.crdType};if(e.current[r]&&e.current[r].id>Date.now()-2e3){e.current[r]=o;return}e.current[r]=o,b.h.dispatch((0,b.wN)({id:e.current[r].id,message:e.current[r].message,title:e.current[r].title,type:e.current[r].type,target:e.current[r].target,crdType:e.current[r].crdType})),n(0)},t.onerror=function(e){console.error("EventSource failed:",e),t.close(),n(function(e){if(!(e<10))return console.error("Max retries reached. Could not reconnect to EventSource."),b.h.dispatch((0,b.wN)({id:Date.now().toString(),message:"Could not reconnect to EventSource.",title:"Error",type:"error",target:"notification",crdType:"notification"})),e;var t=e+1;return setTimeout(function(){connect()},Math.min(1e4,1e3*Math.pow(2,t))),t})},t}();return function(){t.close()}},[])}var _=n(6140);function getOverviewMetrics(){return _getOverviewMetrics.apply(this,arguments)}function _getOverviewMetrics(){return(_getOverviewMetrics=(0,a.Z)(l().mark(function _callee(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.U2)(d.bl.OVERVIEW_METRICS);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee)}))).apply(this,arguments)}function useOverviewMetrics(){return{metrics:(0,p.useQuery)([],getOverviewMetrics,{refetchInterval:5e3}).data}}function useInstrumentationRule_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function useInstrumentationRule_objectSpread(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(e),d.prev=1,n.s();case 3:if((i=n.n()).done){d.next=20;break}return o=i.value,d.next=7,getRuleById(o);case 7:if(!((c=d.sent)&&c.disabled!==t)){d.next=18;break}return s={id:o,data:useInstrumentationRule_objectSpread(useInstrumentationRule_objectSpread({},c),{},{disabled:t})},d.prev=10,d.next=13,m(s);case 13:d.next=18;break;case 15:return d.prev=15,d.t0=d.catch(10),d.abrupt("return",Promise.reject(!1));case 18:d.next=3;break;case 20:d.next=25;break;case 22:d.prev=22,d.t1=d.catch(1),n.e(d.t1);case 25:return d.prev=25,n.f(),d.finish(25);case 28:return setTimeout((0,a.Z)(l().mark(function _callee2(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:u(e.sent.data||[]);case 4:case"end":return e.stop()}},_callee2)})),1e3),d.abrupt("return",Promise.resolve(!0));case 30:case"end":return d.stop()}},_callee3,null,[[1,22,25,28],[10,15]])}))).apply(this,arguments)}function handleRulesRefresh(){return _handleRulesRefresh.apply(this,arguments)}function _handleRulesRefresh(){return(_handleRulesRefresh=(0,a.Z)(l().mark(function _callee4(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:u(e.sent.data||[]);case 4:case"end":return e.stop()}},_callee4)}))).apply(this,arguments)}function _addRule(){return(_addRule=(0,a.Z)(l().mark(function _callee5(e){return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,h(e);case 3:return t.next=5,handleRulesRefresh();case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error("Error creating rule:",t.t0);case 10:case"end":return t.stop()}},_callee5,null,[[0,7]])}))).apply(this,arguments)}function _removeRule(){return(_removeRule=(0,a.Z)(l().mark(function _callee6(e){return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g(e);case 3:return t.next=5,handleRulesRefresh();case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error("Error deleting rule:",t.t0);case 10:case"end":return t.stop()}},_callee6,null,[[0,7]])}))).apply(this,arguments)}return(0,i.useEffect)(function(){u(n||[])},[n]),{isLoading:t,rules:d||[],addRule:function(e){return _addRule.apply(this,arguments)},updateRule:m,removeRule:function(e){return _removeRule.apply(this,arguments)},sortRules:function(e){u((0,o.Z)(n||[]).sort(function(t,n){switch(e){case"NAME":return t.ruleName.localeCompare(n.ruleName);case"STATUS":return(t.disabled?1:-1)-(n.disabled?1:-1);default:return 0}}))},getRuleById:getRuleById,toggleRuleStatus:function(e,t){return _toggleRuleStatus.apply(this,arguments)},refetch:handleRulesRefresh}}function useDescribe(){var e=(0,i.useState)(""),t=e[0],n=e[1],r=(0,i.useState)(""),o=r[0],a=r[1],c=(0,i.useState)(""),s=c[0],l=c[1],d=(0,p.useQuery)(["odigosDescription"],f.c6,{enabled:!1}),u=d.data,h=d.isLoading,m=d.refetch,g=(0,p.useQuery)(["sourceDescription"],function(){return(0,f.b9)(t,o.toLowerCase(),s)},{onError:function(e){console.log(e)},enabled:!1}),y=g.data,x=g.isLoading,v=g.refetch;return(0,i.useEffect)(function(){t&&o&&s&&v()},[t,o,s]),(0,i.useEffect)(function(){console.log({sourceDescription:y})},[y]),{odigosDescription:u,sourceDescription:y,isOdigosLoading:h,isSourceLoading:x,refetchOdigosDescription:m,fetchSourceDescription:function(){v()},setNamespaceKindName:function(e,t,i){n(e),a(t),l(i)}}}},9704:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var i={deployment:"#203548",daemonset:"#033869",statefulset:"#0F2C3F"}},3130:function(){},9353:function(e,t,n){"use strict";var i,r,o,a,c,s,l,d,u,p,f,h,m,g,y;n.d(t,{ActionsSortType:function(){return c},ActionsType:function(){return a},DestinationsSortType:function(){return o},InstrumentationRuleType:function(){return s},RulesType:function(){return l},SourceSortOptions:function(){return i}}),(u=i||(i={})).NAME="name",u.KIND="kind",u.NAMESPACE="namespace",u.LANGUAGE="language",(p=r||(r={})).DEPLOYMENT="deployment",p.STATEFUL_SET="statefulset",p.DAEMON_SET="daemonset",(f=o||(o={})).NAME="name",f.TYPE="type",(h=a||(a={})).ADD_CLUSTER_INFO="AddClusterInfo",h.DELETE_ATTRIBUTES="DeleteAttribute",h.RENAME_ATTRIBUTES="RenameAttribute",h.ERROR_SAMPLER="ErrorSampler",h.PROBABILISTIC_SAMPLER="ProbabilisticSampler",h.LATENCY_SAMPLER="LatencySampler",h.PII_MASKING="PiiMasking",(m=c||(c={})).ACTION_NAME="action_name",m.STATUS="status",m.TYPE="type",n(3130),(s||(s={})).PAYLOAD_COLLECTION="payload-collection",(g=l||(l={})).ADD_METADATA="add-metadata",g.ERROR_SAMPLING="error-sampling",g.PII_MASKING="pii-masking",g.PAYLOAD_COLLECTION="payload-collection",(y=d||(d={})).TYPE="type",y.RULE_NAME="ruleName",y.STATUS="status"}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[152],{8447:function(e,t,n){"use strict";n.d(t,{r:function(){return ConditionCheck},N:function(){return MultiCheckboxComponent}});var i=n(7022),r=n(299),o=n(2265),a=n(3587),c=n(7437);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t0?(0,f.jsxs)("div",{ref:o,children:[(0,f.jsxs)(T,{children:[(0,f.jsx)(p.Dk,{style:{cursor:"pointer"},size:20,onClick:function(){return n(!t)}}),d>0&&(0,f.jsx)(P,{children:(0,f.jsx)(y.xJ,{size:10,children:d})})]}),t&&(0,f.jsxs)(A,{children:[(0,f.jsx)(k,{children:(0,f.jsx)(y.xJ,{size:18,weight:600,children:"Notifications"})}),(0,O.Z)(i).reverse().map(function(e){return(0,f.jsx)(notification_list_item,function(e){for(var t=1;t0?c:[""],onValuesChange:function(e){n("actionData",{attributeNamesToDelete:e}),s(e)}})})})}var U=f.ZP.div.withConfig({displayName:"renameattributes__FormWrapper",componentId:"sc-1dg3dox-0"})(["width:375px;"]),H=[{id:0,key:"",value:""}];function RenameAttributesForm(e){var t=e.data,n=e.onChange,i=e.setIsFormValid,r=void 0===i?function(){}:i,o=u.useState([]),a=(0,z.Z)(o,2),c=a[0],s=a[1];return(0,u.useEffect)(function(){(function(){if(!(null!=t&&t.renames)){s(H);return}s(Object.entries(t.renames).map(function(e,t){var n=(0,z.Z)(e,2);return{id:t,key:n[0],value:n[1]}})||H)})()},[t]),(0,u.useEffect)(function(){r(c.every(function(e){return""!==e.key.trim()&&""!==e.value.trim()}))},[c]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(U,{children:(0,x.jsx)(h.C1,{title:"Attributes To Rename *",titleKey:"Original Attribute",titleValue:"New Attribute",titleButton:"Add Attribute",keyValues:c,setKeyValues:function(e){var t={};e.forEach(function(e){t[e.key]=e.value}),n("actionData",{renames:t}),s(e)}})})})}var V=f.ZP.div.withConfig({displayName:"error-sampler__FormWrapper",componentId:"sc-1gdkbs0-0"})(["width:375px;"]);function ErrorSamplerForm(e){var t,n=e.data,i=e.onChange,r=e.setIsFormValid,o=void 0===r?function(){}:r;return(0,u.useEffect)(function(){o(!isNaN(null==n?void 0:n.fallback_sampling_ratio)&&(null==n?void 0:n.fallback_sampling_ratio)>=0&&(null==n?void 0:n.fallback_sampling_ratio)<=100)},[null==n?void 0:n.fallback_sampling_ratio]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(V,{children:(0,x.jsx)(h.ix,{label:"Fallback Sampling Ratio",value:null==n?void 0:null===(t=n.fallback_sampling_ratio)||void 0===t?void 0:t.toString(),onChange:function(e){i("actionData",{fallback_sampling_ratio:+e})},type:"number",tooltip:"Specifies the ratio of non-error traces you still want to retain",min:0,max:100,error:(null==n?void 0:n.fallback_sampling_ratio)>100?"Value must be less than 100":""})})})}var Y=f.ZP.div.withConfig({displayName:"probabilistic-sampler__FormWrapper",componentId:"sc-ci5zc4-0"})(["width:375px;"]);function ProbabilisticSamplerForm(e){var t=e.data,n=e.onChange,i=e.setIsFormValid,r=void 0===i?function(){}:i;return(0,u.useEffect)(function(){var e;r(!isNaN(e=parseFloat(null==t?void 0:t.sampling_percentage))&&e>=0&&e<=100)},[null==t?void 0:t.sampling_percentage]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(Y,{children:(0,x.jsx)(h.ix,{"data-cy":"create-action-sampling-percentage",label:"Fallback Sampling Ratio",value:null==t?void 0:t.sampling_percentage,onChange:function(e){n("actionData",{sampling_percentage:e})},type:"number",tooltip:"Percentage at which items are sampled; = 100 samples all items, 0 rejects all items",min:0,max:100,error:parseFloat(null==t?void 0:t.sampling_percentage)>100?"Value must be less than 100":""})})})}var G=n(941),q=n(3103);function latency_action_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function latency_action_objectSpread(e){for(var t=1;t100?o[t]="Fallback sampling ratio must be between 0 and 100":delete o[t]}return latency_action_objectSpread(latency_action_objectSpread({},n),{},{errors:o})}return n});s(r),n(et,{endpoints_filters:r}),checkFormValidity(r)}function checkFormValidity(e){r(e.every(function(e){var t,n,i;return e.service_name&&e.http_route&&!(null!==(t=e.errors)&&void 0!==t&&t.http_route)&&void 0!==e.minimum_latency_threshold&&!(null!==(n=e.errors)&&void 0!==n&&n.minimum_latency_threshold)&&void 0!==e.fallback_sampling_ratio&&!(null!==(i=e.errors)&&void 0!==i&&i.fallback_sampling_ratio)}))}return(0,x.jsxs)(Q,{children:[(0,x.jsx)(h.xJ,{size:14,weight:600,children:"Endpoints Filters"}),(0,x.jsxs)($,{children:[(0,x.jsx)("thead",{children:(0,x.jsxs)("tr",{children:[(0,x.jsx)(X,{children:(0,x.jsx)(h.xJ,{size:12,children:"Service Name"})}),(0,x.jsx)(X,{children:(0,x.jsx)(h.xJ,{size:12,children:"Http Route"})}),(0,x.jsx)(X,{children:(0,x.jsx)(h.xJ,{size:12,children:"Minimum Latency Threshold (ms)"})}),(0,x.jsx)(X,{children:(0,x.jsx)(g.u,{text:"allows you to retain a specified percentage of traces that fall below the threshold",children:(0,x.jsx)(h.xJ,{size:12,children:"Fallback Sampling Ratio "})})}),(0,x.jsx)(X,{})]})}),(0,x.jsx)("tbody",{children:c.map(function(e,t){var i,r,a,d,u,p,f;return(0,x.jsxs)("tr",{children:[(0,x.jsx)(ee,{children:(0,x.jsx)(h.p,{width:198,data:l,value:(p=e.service_name||"",{id:0,label:(null==(f=o.find(function(e){return e.name===p}))?void 0:f.name)||""}),onChange:function(e){return handleOnChange(t,"service_name",e.label)}})}),(0,x.jsx)(ee,{children:(0,x.jsx)(h.ix,{style:{width:192,height:39},value:e.http_route||"",onChange:function(e){return handleOnChange(t,"http_route",e)},onBlur:function(){return handleOnBlur(t,"http_route",e.http_route)},error:null===(i=e.errors)||void 0===i?void 0:i.http_route,placeholder:"e.g. /api/v1/users",type:"text"})}),(0,x.jsx)(ee,{children:(0,x.jsx)(h.ix,{style:{width:192,height:39},value:(null===(r=e.minimum_latency_threshold)||void 0===r?void 0:r.toString())||"",onChange:function(e){return handleOnChange(t,"minimum_latency_threshold",+e)},onBlur:function(){return handleOnBlur(t,"minimum_latency_threshold",e.minimum_latency_threshold)},placeholder:"e.g. 1000",type:"number",min:0,error:null===(a=e.errors)||void 0===a?void 0:a.minimum_latency_threshold})}),(0,x.jsx)(ee,{children:(0,x.jsx)(h.ix,{style:{width:192,height:39},value:(null===(d=e.fallback_sampling_ratio)||void 0===d?void 0:d.toString())||"",onChange:function(e){return handleOnChange(t,"fallback_sampling_ratio",+e)},onBlur:function(){return handleOnBlur(t,"fallback_sampling_ratio",e.fallback_sampling_ratio)},placeholder:"e.g. 20",type:"number",min:0,max:100,error:null===(u=e.errors)||void 0===u?void 0:u.fallback_sampling_ratio})}),(0,x.jsx)(ee,{children:c.length>1&&(0,x.jsx)(h.Rf,{value:"remove",fontSize:12,onClick:function(){var e;s(e=c.filter(function(e,n){return n!==t})),n(et,{endpoints_filters:e}),checkFormValidity(e)}})})]},t)})})]}),(0,x.jsx)(h.ZT,{onClick:function(){s([].concat((0,G.Z)(c),[{}]))},style:{height:32,width:140,marginTop:8},disabled:c.length>=o.length,children:(0,x.jsx)(h.xJ,{size:14,weight:600,color:O.Z.text.dark_button,children:"+ Add Filter"})})]})}var en=[{id:"CREDIT_CARD",label:"Credit Card"}],ei=f.ZP.div.withConfig({displayName:"pii-masking__FormWrapper",componentId:"sc-1pbjj97-0"})(["width:375px;"]),er="actionData";function PiiMaskingForm(e){var t=e.data,n=e.onChange,i=e.setIsFormValid;return(0,u.useEffect)(function(){n(er,{piiCategories:["CREDIT_CARD"]}),i&&i(!0)},[]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(ei,{children:en.map(function(e){var i;return(0,x.jsx)(h.Ho,{disabled:!0,value:null==t?void 0:null===(i=t.piiCategories)||void 0===i?void 0:i.includes(null==e?void 0:e.id),onChange:function(){var t,i;return t=null==e?void 0:e.id,void((i=[]).includes(t)?i=i.filter(function(e){return e!==t}):i.push(t),n(er,{piiCategories:i}))},label:null==e?void 0:e.label},null==e?void 0:e.id)})})})}function DynamicActionForm(e){var t,n=e.type,i=e.data,r=e.onChange,o=e.setIsFormValid,a=(t={},(0,D.Z)(t,R.ActionsType.ADD_CLUSTER_INFO,AddClusterInfoForm),(0,D.Z)(t,R.ActionsType.DELETE_ATTRIBUTES,DeleteAttributesForm),(0,D.Z)(t,R.ActionsType.RENAME_ATTRIBUTES,RenameAttributesForm),(0,D.Z)(t,R.ActionsType.ERROR_SAMPLER,ErrorSamplerForm),(0,D.Z)(t,R.ActionsType.PROBABILISTIC_SAMPLER,ProbabilisticSamplerForm),(0,D.Z)(t,R.ActionsType.LATENCY_SAMPLER,LatencySamplerForm),(0,D.Z)(t,R.ActionsType.PII_MASKING,PiiMaskingForm),t),c=n?a[n]:null;return(0,x.jsx)(x.Fragment,{children:c?(0,x.jsx)(c,{data:i,onChange:r,setIsFormValid:void 0===o?function(){}:o}):(0,x.jsx)("div",{children:"No action form available"})})}var eo=f.zo.div.withConfig({displayName:"deleteaction__FieldWrapper",componentId:"sc-gnttsl-0"})(["div{width:354px;}"]);function DeleteAction(e){var t=e.onDelete,n=e.name,i=e.type,r=(0,u.useState)(!1),o=r[0],a=r[1],l={title:p.mD.DELETE_ACTION,showHeader:!0,showOverlay:!0,positionX:c.center,positionY:s.center,padding:"20px",footer:{primaryBtnText:p.mD.CONFIRM_DELETE_ACTION,primaryBtnAction:function(){a(!1),t()}}};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(eo,{children:(0,x.jsx)(h.cN,{title:p.mD.ACTION_DANGER_ZONE_TITLE,subTitle:p.mD.ACTION_DANGER_ZONE_SUBTITLE,btnText:p.mD.DELETE,onClick:function(){return a(!0)}})}),o&&(0,x.jsxs)(h.V2,{show:o,closeModal:function(){return a(!1)},config:l,children:[(0,x.jsx)("br",{}),(0,x.jsx)(m.A,{style:{width:52,height:52},type:i||""}),(0,x.jsx)("br",{}),(0,x.jsx)(h.xJ,{size:20,weight:600,children:"".concat(p.mD.DELETE," ").concat(n," Action")})]})]})}function ActionRowDynamicContent(e){var t=e.item;return(0,x.jsx)(x.Fragment,{children:function(){var e,n,i,r,o,a;switch(t.type){case R.ActionsType.ADD_CLUSTER_INFO:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(null==t?void 0:t.spec.clusterAttributes.length," cluster attributes")});case R.ActionsType.DELETE_ATTRIBUTES:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(null==t?void 0:t.spec.attributeNamesToDelete.length," deleted attributes")});case R.ActionsType.RENAME_ATTRIBUTES:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(Object.keys(null==t?void 0:null===(e=t.spec)||void 0===e?void 0:e.renames).length," renamed attributes")});case R.ActionsType.ERROR_SAMPLER:return(0,x.jsxs)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:["".concat(null==t?void 0:null===(n=t.spec)||void 0===n?void 0:n.fallback_sampling_ratio,"% sampling ratio"),"s"]});case R.ActionsType.PROBABILISTIC_SAMPLER:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(null==t?void 0:null===(i=t.spec)||void 0===i?void 0:i.sampling_percentage,"% sampling ratio")});case R.ActionsType.LATENCY_SAMPLER:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat(null==t?void 0:null===(r=t.spec)||void 0===r?void 0:r.endpoints_filters.length," endpoints")});case R.ActionsType.PII_MASKING:return(0,x.jsx)(h.xJ,{color:O.Z.text.grey,size:14,weight:400,children:"".concat((null==t?void 0:null===(o=t.spec)||void 0===o?void 0:o.piiCategories.length)===1?"1 category":"".concat(null==t?void 0:null===(a=t.spec)||void 0===a?void 0:a.piiCategories.length," categories"))});default:return(0,x.jsx)("div",{children:t.type})}}()})}var ea=n(8265),ec=n(8547);function actions_table_row_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function actions_table_row_objectSpread(e){for(var t=1;t0,onChange:function(){return i("select_all")}}),(0,x.jsx)(g.wZ,{size:18}),(0,x.jsx)(h.xJ,{size:14,weight:600,color:O.Z.text.white,children:n.length>0?"".concat(n.length," selected"):"".concat(t.length," ").concat(p.mD.MENU.ACTIONS)}),(0,x.jsx)(e_,{children:(0,x.jsx)(h.BT,{actionGroups:y})})]})})}var ej=n(4490),ActionsTable=function(e){var t=e.data,n=e.onRowClick,i=e.sortActions,r=e.filterActionsBySignal,o=e.toggleActionStatus,a=(0,u.useState)([]),c=a[0],s=a[1],l=(0,u.useState)(1),d=l[0],f=l[1],m=(0,u.useState)(10),g=m[0],y=m[1],v=u.useRef(1);function onSelectedCheckboxChange(e){if("select_all"===e){if(c.length>0)s([]);else{var n=(v.current-1)*10,i=10*v.current;s(t.slice(n,i).map(function(e){return e.id}))}return}c.includes(e)?s(c.filter(function(t){return t!==e})):s([].concat((0,G.Z)(c),[e]))}return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(h.iA,{data:t,renderTableHeader:function(){return(0,x.jsx)(ActionsTableHeader,{data:t,selectedCheckbox:c,onSelectedCheckboxChange:onSelectedCheckboxChange,sortActions:i,filterActionsBySignal:r,toggleActionStatus:o})},onPaginate:function(e){v.current=e,c.length>0&&s([])},renderEmptyResult:function(){return(0,x.jsx)(ej.rf,{title:p.mD.EMPTY_ACTION})},currentPage:d,itemsPerPage:g,setCurrentPage:f,setItemsPerPage:y,renderTableRows:function(e,i){return(0,x.jsx)(ActionsTableRow,{onRowClick:n,selectedCheckbox:c,onSelectedCheckboxChange:onSelectedCheckboxChange,data:t,item:e,index:i})}})})};f.ZP.p.withConfig({displayName:"actionyaml__CodeBlockWrapper",componentId:"sc-1e6amzh-0"})(["display:flex;align-items:center;font-family:",";color:",";a{color:",";text-decoration:none;cursor:pointer;}"],O.Z.font_family.primary,O.Z.text.light_grey,O.Z.text.secondary);var ew=f.ZP.div.withConfig({displayName:"actionyaml__TitleWrapper",componentId:"sc-1e6amzh-1"})(["display:flex;align-items:center;gap:6px;margin-bottom:8px;max-width:600px;"]);(0,f.ZP)(ew).withConfig({displayName:"actionyaml__DescriptionWrapper",componentId:"sc-1e6amzh-2"})(["line-height:1.3;margin:10px 0 8px 0;"]);var eC=n(2245),eS=n(9704),eO=n(8447),eN=f.ZP.tr.withConfig({displayName:"sourcestablerow__StyledTr",componentId:"sc-1kywn08-0"})(["&:hover{background-color:",";}"],O.Z.colors.light_dark),eI=f.ZP.td.withConfig({displayName:"sourcestablerow__StyledTd",componentId:"sc-1kywn08-1"})(["padding:10px 20px;border-top:1px solid ",";",""],O.Z.colors.blue_grey,function(e){return e.isFirstRow&&(0,f.iv)(["border-top:none;"])}),eE=(0,f.ZP)(eI).withConfig({displayName:"sourcestablerow__StyledMainTd",componentId:"sc-1kywn08-2"})(["cursor:pointer;padding:10px 20px;display:flex;gap:20px;"]),eA=f.ZP.div.withConfig({displayName:"sourcestablerow__SourceIconContainer",componentId:"sc-1kywn08-3"})(["display:flex;align-items:center;gap:8px;"]),eT=f.ZP.div.withConfig({displayName:"sourcestablerow__SourceDetails",componentId:"sc-1kywn08-4"})(["display:flex;flex-direction:column;gap:4px;"]),eP=f.ZP.div.withConfig({displayName:"sourcestablerow__NameContainer",componentId:"sc-1kywn08-5"})(["display:flex;gap:10px;align-items:center;"]),ek=f.ZP.div.withConfig({displayName:"sourcestablerow__FooterContainer",componentId:"sc-1kywn08-6"})(["display:flex;gap:16px;align-items:center;"]),eD=f.ZP.div.withConfig({displayName:"sourcestablerow__FooterItemWrapper",componentId:"sc-1kywn08-7"})(["display:flex;align-items:center;gap:4px;"]),eZ=f.ZP.div.withConfig({displayName:"sourcestablerow__StatusIndicator",componentId:"sc-1kywn08-8"})(["width:6px;height:6px;border-radius:4px;background-color:",";"],function(e){return e.color}),eR=f.ZP.div.withConfig({displayName:"sourcestablerow__TagWrapper",componentId:"sc-1kywn08-9"})(["padding:0 20px;width:300px;display:flex;align-items:center;"]),eL={padding:4,backgroundColor:O.Z.colors.white};function SourcesTableRow(e){var t,n,i=e.item,r=e.index,o=e.selectedCheckbox,a=e.onSelectedCheckboxChange,c=e.onRowClick,s=(0,p.LV)(i),l=function(e){if(!(null!=e&&null!==(t=e.instrumented_application_details)&&void 0!==t&&t.languages))return null;var t,n,i=null==e?void 0:null===(n=e.instrumented_application_details)||void 0===n?void 0:n.languages.find(function(e){return"ignore"!==e.language});return i?i.container_name:null}(i)||"";return(0,x.jsx)(eN,{children:(0,x.jsxs)(eE,{isFirstRow:0===r,children:[(0,x.jsx)(h.Ho,{value:o.includes(JSON.stringify(i)),onChange:function(){return a(JSON.stringify(i))}}),(0,x.jsxs)(eA,{onClick:function(){return c(i)},children:[(0,x.jsx)("div",{children:(0,x.jsx)(h.uR,{src:p.Fs[s],width:32,height:32,style:eL,alt:"source-logo"})}),(0,x.jsxs)(eT,{onClick:function(){return c(i)},children:[(0,x.jsxs)(eP,{children:[(0,x.jsx)(h.xJ,{weight:600,children:"".concat(i.name||"Source"," ")}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:(0,x.jsx)(eO.r,{conditions:(null==i?void 0:null===(t=i.instrumented_application_details)||void 0===t?void 0:t.conditions)||[]})})]}),(0,x.jsxs)(ek,{children:[(0,x.jsx)(eD,{children:"processing"===s?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(h.kQ,{width:6,height:6}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:"detecting language"})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(eZ,{color:p.Fp[s]||O.Z.text.light_grey}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:s})]})}),(0,x.jsxs)(eD,{children:[(0,x.jsx)(eC.lS,{style:{width:16,height:16}}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:i.namespace})]}),(0,x.jsxs)(eD,{children:[(0,x.jsx)(eC.W2,{style:{width:16,height:16}}),(0,x.jsx)(h.xJ,{color:O.Z.text.light_grey,size:14,children:l})]})]})]}),(0,x.jsx)(eR,{children:(0,x.jsx)(h.Io,{title:(null==i?void 0:i.kind)||"",color:eS.t[(null==i?void 0:null===(n=i.kind)||void 0===n?void 0:n.toLowerCase())||"deployment"]})})]})]})},i.kind)}(o=l||(l={})).DEPLOYMENT="deployment",o.STATEFUL_SET="statefulset",o.DAEMON_SET="daemonset",(a=d||(d={})).NAME="name",a.KIND="kind",a.NAMESPACE="namespace",a.LANGUAGE="language";var eM=f.ZP.div.withConfig({displayName:"sourcestableheader__StyledThead",componentId:"sc-1gi1cy2-0"})(["background-color:",";border-top-right-radius:6px;border-top-left-radius:6px;"],O.Z.colors.light_dark),eF=f.ZP.th.withConfig({displayName:"sourcestableheader__StyledTh",componentId:"sc-1gi1cy2-1"})(["padding:10px 20px;text-align:left;border-bottom:1px solid ",";"],O.Z.colors.blue_grey),ez=(0,f.ZP)(eF).withConfig({displayName:"sourcestableheader__StyledMainTh",componentId:"sc-1gi1cy2-2"})(["padding:10px 20px;display:flex;align-items:center;gap:8px;"]),eB=f.ZP.div.withConfig({displayName:"sourcestableheader__ActionGroupContainer",componentId:"sc-1gi1cy2-3"})(["display:flex;justify-content:flex-end;padding-right:20px;gap:24px;flex:1;"]);function SourcesTableHeader(e){var t=e.data,n=e.namespaces,i=e.sortSources,r=e.filterSourcesByKind,o=e.filterSourcesByNamespace,a=e.filterSourcesByLanguage,c=e.deleteSourcesHandler,s=e.selectedCheckbox,f=e.onSelectedCheckboxChange,m=e.filterByConditionStatus,y=e.filterByConditionMessage,v=e.currentItems,b=(0,u.useState)(""),_=b[0],j=b[1],w=(0,u.useState)([]),C=w[0],S=w[1],N=(0,u.useState)(!1),I=N[0],E=N[1],A=(0,u.useState)([]),T=A[0],P=A[1],k=(0,u.useState)(["javascript","python","java","go","dotnet"]),D=k[0],Z=k[1],R=(0,u.useState)([l.DEPLOYMENT,l.STATEFUL_SET,l.DAEMON_SET]),L=R[0],M=R[1],z=(0,q.hi)().groupErrorMessages;function onSortClick(e){j(e),i&&i(e)}function onKindClick(e){var t=[];L.includes(e)?(M(L.filter(function(t){return t!==e})),t=L.filter(function(t){return t!==e})):(M([].concat((0,G.Z)(L),[e])),t=[].concat((0,G.Z)(L),[e])),r&&r(t)}function onLanguageClick(e){var t=[];D.includes(e)?(Z(D.filter(function(t){return t!==e})),t=D.filter(function(t){return t!==e})):(Z([].concat((0,G.Z)(D),[e])),t=[].concat((0,G.Z)(D),[e])),a&&a(t)}(0,u.useEffect)(function(){m&&(P(z()),I?m("False"):m("All"))},[I]),(0,u.useEffect)(function(){n&&S(n.filter(function(e){return e.totalApps>0}).map(function(e){return e.name}))},[n]);var B=(0,u.useMemo)(function(){if(!n)return[];var e,i,r,a,c,s,u,p,f,h,m,g,x,v,b,j,w=n.filter(function(e){return e.totalApps>0}).length,O=null===(e=n.sort(function(e,t){return t.totalApps-e.totalApps}))||void 0===e?void 0:e.map(function(e,t){return{label:"".concat(e.name," (").concat(e.totalApps," apps) "),onClick:function(){var t,n;return t=e.name,n=[],void(C.includes(t)?(S(C.filter(function(e){return e!==t})),n=C.filter(function(e){return e!==t})):(S([].concat((0,G.Z)(C),[t])),n=[].concat((0,G.Z)(C),[t])),o&&o(n))},id:e.name,selected:C.includes(e.name)&&e.totalApps>0,disabled:1===C.length&&C.includes(e.name)||0===e.totalApps||1===w}}),N=[{label:"Language",subTitle:"Filter",condition:!0,items:[{label:"Javascript",onClick:function(){return onLanguageClick("javascript")},id:"javascript",selected:D.includes("javascript"),disabled:1===D.length&&D.includes("javascript")||1===t.length&&(null==t?void 0:null===(i=t[0])||void 0===i?void 0:null===(r=i.instrumented_application_details)||void 0===r?void 0:null===(a=r.languages)||void 0===a?void 0:a[0].language)==="javascript"},{label:"Python",onClick:function(){return onLanguageClick("python")},id:"python",selected:D.includes("python"),disabled:1===D.length&&D.includes("python")||1===t.length&&(null==t?void 0:null===(c=t[0])||void 0===c?void 0:null===(s=c.instrumented_application_details)||void 0===s?void 0:null===(u=s.languages)||void 0===u?void 0:u[0].language)==="python"},{label:"Java",onClick:function(){return onLanguageClick("java")},id:"java",selected:D.includes("java"),disabled:1===D.length&&D.includes("java")||1===t.length&&(null==t?void 0:null===(p=t[0])||void 0===p?void 0:null===(f=p.instrumented_application_details)||void 0===f?void 0:null===(h=f.languages)||void 0===h?void 0:h[0].language)==="java"},{label:"Go",onClick:function(){return onLanguageClick("go")},id:"go",selected:D.includes("go"),disabled:1===D.length&&D.includes("go")||1===t.length&&(null==t?void 0:null===(m=t[0])||void 0===m?void 0:null===(g=m.instrumented_application_details)||void 0===g?void 0:null===(x=g.languages)||void 0===x?void 0:x[0].language)==="go"},{label:".NET",onClick:function(){return onLanguageClick("dotnet")},id:"dotnet",selected:D.includes("dotnet"),disabled:1===D.length&&D.includes("dotnet")||1===t.length&&(null==t?void 0:null===(v=t[0])||void 0===v?void 0:null===(b=v.instrumented_application_details)||void 0===b?void 0:null===(j=b.languages)||void 0===j?void 0:j[0].language)==="dotnet"}]},{label:"Kind",subTitle:"Filter",condition:!0,items:[{label:"Deployment",onClick:function(){return onKindClick(l.DEPLOYMENT)},id:l.DEPLOYMENT,selected:L.includes(l.DEPLOYMENT)&&t.some(function(e){return e.kind.toLowerCase()===l.DEPLOYMENT}),disabled:1===L.length&&L.includes(l.DEPLOYMENT)&&t.some(function(e){return e.kind.toLowerCase()===l.DEPLOYMENT})},{label:"StatefulSet",onClick:function(){return onKindClick(l.STATEFUL_SET)},id:l.STATEFUL_SET,selected:L.includes(l.STATEFUL_SET)&&t.some(function(e){return e.kind.toLowerCase()===l.STATEFUL_SET}),disabled:1===L.length&&L.includes(l.STATEFUL_SET)||t.every(function(e){return e.kind.toLowerCase()!==l.STATEFUL_SET})},{label:"DemonSet",onClick:function(){return onKindClick(l.DAEMON_SET)},id:l.DAEMON_SET,selected:L.includes(l.DAEMON_SET)&&t.some(function(e){return e.kind.toLowerCase()===l.DAEMON_SET}),disabled:1===L.length&&L.includes(l.DAEMON_SET)||t.every(function(e){return e.kind.toLowerCase()!==l.DAEMON_SET})}]},{label:"Namespaces",subTitle:"Display",items:O,condition:!0},{label:"Sort by",subTitle:"Sort by",items:[{label:"Kind",onClick:function(){return onSortClick(d.KIND)},id:d.KIND,selected:_===d.KIND},{label:"Language",onClick:function(){return onSortClick(d.LANGUAGE)},id:d.LANGUAGE,selected:_===d.LANGUAGE},{label:"Name",onClick:function(){return onSortClick(d.NAME)},id:d.NAME,selected:_===d.NAME},{label:"Namespace",onClick:function(){return onSortClick(d.NAMESPACE)},id:d.NAMESPACE,selected:_===d.NAMESPACE}],condition:!0}];return I&&N.unshift({label:"Error",subTitle:"Filter by error message",condition:!0,items:z().map(function(e){return{label:e,onClick:function(){var t;return t=[],void(T.includes(e)?(P(T.filter(function(t){return t!==e})),t=T.filter(function(t){return t!==e})):(P([].concat((0,G.Z)(T),[e])),t=[].concat((0,G.Z)(T),[e])),y(t))},id:e,selected:T.includes(e),disabled:1===T.length&&T.includes(e)}})}),N},[n,C,t]);return(0,x.jsx)(eM,{children:(0,x.jsxs)(ez,{children:[(0,x.jsx)(h.Ho,{value:s.length===v.length&&v.length>0,onChange:function(){return f("select_all")}}),(0,x.jsx)(g.Kl,{size:18}),(0,x.jsx)(h.xJ,{size:14,weight:600,color:O.Z.text.white,children:"".concat(t.length," ").concat(p.mD.MENU.SOURCES)}),T.length>0&&(0,x.jsx)(h.Ju,{toggle:I,handleToggleChange:function(){return E(!I)},label:"Show Sources with Errors"}),s.length>0&&(0,x.jsx)(h.Rf,{onClick:c,value:p.mD.DELETE,fontSize:12}),(0,x.jsx)(eB,{children:(0,x.jsx)(h.BT,{actionGroups:B})})]})})}var ManagedSourcesTable=function(e){var t=e.data,n=e.namespaces,i=e.onRowClick,r=e.sortSources,o=e.filterSourcesByKind,a=e.deleteSourcesHandler,l=e.filterSourcesByNamespace,d=e.filterSourcesByLanguage,f=e.filterByConditionStatus,m=e.filterByConditionMessage,g=(0,u.useState)([]),y=g[0],v=g[1],b=(0,u.useState)(!1),_=b[0],j=b[1],w=(0,u.useState)(1),C=w[0],S=w[1],O=(0,u.useState)(10),N=O[0],I=O[1],E={title:p.mD.DELETE_SOURCE,showHeader:!0,showOverlay:!0,positionX:c.center,positionY:s.center,padding:"20px",footer:{primaryBtnText:p.mD.CONFIRM_SOURCE_DELETE,primaryBtnAction:function(){var e;j(!1),e=y.map(function(e){return JSON.parse(e)}),a&&a(e),v([])}}},A=u.useRef(1);function onSelectedCheckboxChange(e){var n=t.slice((C-1)*N,C*N);if("select_all"===e){y.length===n.length?v([]):v(n.map(function(e){return JSON.stringify(e)}));return}y.includes(e)?v(y.filter(function(t){return t!==e})):v([].concat((0,G.Z)(y),[e]))}var T=C*N,P=T-N,k=t.slice(P,T);return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(h.iA,{data:t,renderTableHeader:function(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(SourcesTableHeader,{data:t,namespaces:n,sortSources:r,filterSourcesByKind:o,filterSourcesByNamespace:l,filterSourcesByLanguage:d,selectedCheckbox:y,onSelectedCheckboxChange:onSelectedCheckboxChange,deleteSourcesHandler:function(){return j(!0)},filterByConditionStatus:f,filterByConditionMessage:m,currentItems:k}),_&&(0,x.jsx)(h.V2,{show:_,closeModal:function(){return j(!1)},config:E,children:(0,x.jsx)(h.xJ,{size:20,weight:600,children:"".concat(p.mD.DELETE," ").concat(y.length," sources")})})]})},onPaginate:function(e){A.current=e},renderEmptyResult:function(){return(0,x.jsx)(ej.rf,{title:p.mD.EMPTY_SOURCE})},renderTableRows:function(e,n){return(0,x.jsx)(SourcesTableRow,{data:t,item:e,index:n,onRowClick:i,selectedCheckbox:y,onSelectedCheckboxChange:onSelectedCheckboxChange})},currentPage:C,itemsPerPage:N,setCurrentPage:S,setItemsPerPage:I})})},eK=f.ZP.div.withConfig({displayName:"detected-containers__Container",componentId:"sc-14sy9oo-0"})(["margin-top:16px;max-width:36vw;margin-bottom:24px;border:1px solid #374a5b;border-radius:8px;padding:24px;"]),eW=f.ZP.ul.withConfig({displayName:"detected-containers__List",componentId:"sc-14sy9oo-1"})(["list-style:disc;"]),eJ=f.ZP.li.withConfig({displayName:"detected-containers__ListItem",componentId:"sc-14sy9oo-2"})(["padding:2px 0;&::marker{color:",";}"],O.Z.colors.white),DetectedContainers=function(e){var t=e.languages,n=e.conditions.some(function(e){return"False"===e.status});return(0,x.jsxs)(eK,{children:[(0,x.jsx)(h.xJ,{size:18,weight:600,children:"Detected Containers:"}),(0,x.jsx)(eW,{children:t.map(function(e){var t="ignore"!==e.language&&"unknown"!==e.language&&!(null!=e&&e.other_agent);return(0,x.jsxs)(eJ,{children:[(0,x.jsxs)(h.xJ,{color:t?O.Z.text.light_grey:"#4caf50",children:[e.container_name," (Language: ",e.language,null!=e&&e.runtime_version?", Runtime: ".concat(e.runtime_version):"",")",t&&!n&&" - Instrumented"]}),e.other_agent&&e.other_agent.name&&(0,x.jsx)(h.xJ,{color:O.Z.colors.orange_brown,size:12,style:{marginTop:6},children:"We detected another agent of ".concat(e.other_agent.name," that running in the container. Disable it\n to instrument this source.")})]},e.container_name)})}),(0,x.jsx)(h.xJ,{size:14,color:O.Z.text.light_grey,children:"Note: The system automatically instruments the containers it detects with a supported programming language."})]})},eU=f.ZP.div.withConfig({displayName:"destinationstableheader__StyledThead",componentId:"sc-6l1uup-0"})(["background-color:",";border-top-right-radius:6px;border-top-left-radius:6px;"],O.Z.colors.light_dark),eH=f.ZP.th.withConfig({displayName:"destinationstableheader__StyledTh",componentId:"sc-6l1uup-1"})(["padding:10px 20px;text-align:left;border-bottom:1px solid ",";"],O.Z.colors.blue_grey),eV=(0,f.ZP)(eH).withConfig({displayName:"destinationstableheader__StyledMainTh",componentId:"sc-6l1uup-2"})(["padding:10px 20px;display:flex;align-items:center;gap:8px;"]),eY=f.ZP.div.withConfig({displayName:"destinationstableheader__ActionGroupContainer",componentId:"sc-6l1uup-3"})(["display:flex;justify-content:flex-end;padding-right:20px;gap:24px;flex:1;"]);function DestinationsTableHeader(e){var t=e.data,n=e.sortDestinations,i=e.filterDestinationsBySignal,r=(0,u.useState)(""),o=r[0],a=r[1],c=(0,u.useState)(["traces","logs","metrics"]),s=c[0],l=c[1];function onSortClick(e){a(e),n&&n(e)}function onGroupClick(e){var t=[];s.includes(e)?(l(s.filter(function(t){return t!==e})),t=s.filter(function(t){return t!==e})):(l([].concat((0,G.Z)(s),[e])),t=[].concat((0,G.Z)(s),[e])),i&&i(t)}var d=[{label:"Metrics",subTitle:"Display",items:[{label:p.NK.TRACES,onClick:function(){return onGroupClick(p.NK.TRACES.toLowerCase())},id:p.NK.TRACES.toLowerCase(),selected:s.includes(p.NK.TRACES.toLowerCase()),disabled:1===s.length&&s.includes(p.NK.TRACES.toLowerCase())},{label:p.NK.LOGS,onClick:function(){return onGroupClick(p.NK.LOGS.toLowerCase())},id:p.NK.LOGS.toLowerCase(),selected:s.includes(p.NK.LOGS.toLowerCase()),disabled:1===s.length&&s.includes(p.NK.LOGS.toLowerCase())},{label:p.NK.METRICS,onClick:function(){return onGroupClick(p.NK.METRICS.toLowerCase())},id:p.NK.METRICS.toLowerCase(),selected:s.includes(p.NK.METRICS.toLowerCase()),disabled:1===s.length&&s.includes(p.NK.METRICS.toLowerCase())}],condition:!0},{label:"Sort by",subTitle:"Sort by",items:[{label:"Type",onClick:function(){return onSortClick(R.DestinationsSortType.TYPE)},id:R.DestinationsSortType.TYPE,selected:o===R.DestinationsSortType.TYPE},{label:"Name",onClick:function(){return onSortClick(R.DestinationsSortType.NAME)},id:R.DestinationsSortType.NAME,selected:o===R.DestinationsSortType.NAME}],condition:!0}];return(0,x.jsx)(eU,{children:(0,x.jsxs)(eV,{children:[(0,x.jsx)(g.Qm,{size:18}),(0,x.jsx)(h.xJ,{size:14,weight:600,color:O.Z.text.white,children:"".concat(t.length," ").concat(p.mD.MENU.DESTINATIONS)}),(0,x.jsx)(eY,{children:(0,x.jsx)(h.BT,{actionGroups:d})})]})})}function destinations_table_row_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function destinations_table_row_objectSpread(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=Array(t);ne.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(n);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.component_properties.required){var o=w[r.name];if(void 0===o||""===o.trim()||!O){t=!1;break}}}}catch(e){i.e(e)}finally{i.f()}m(!t)})()},[O,w]),(0,r.useEffect)(function(){p((s?et.map(function(e){return create_connection_form_objectSpread(create_connection_form_objectSpread({},e),{},{checked:s[e.id]})}):et).filter(function(e){var t,n,i=e.id;return null==o?void 0:null===(t=o.supported_signals)||void 0===t?void 0:null===(n=t[i])||void 0===n?void 0:n.supported}))},[o]),(0,V.K7)("Enter",function(e){h||onCreateClick()});var handleCheckboxChange=function(e){p(function(t){var n;return 1===t.filter(function(e){return e.checked}).length&&null!==(n=t.find(function(t){return t.id===e}))&&void 0!==n&&n.checked?t:t.map(function(t){return t.id===e?create_connection_form_objectSpread(create_connection_form_objectSpread({},t),{},{checked:!t.checked}):t})})};function onCreateClick(){var e=u.reduce(function(e,t){var n=t.id,i=t.checked;return create_connection_form_objectSpread(create_connection_form_objectSpread({},e),{},(0,b.Z)({},n,i))},{}),t=(0,ee.RB)(w);i({name:O,signals:e,fields:(0,ee.gs)(t),type:o.type})}function _handleCheckDestinationConnection(){return(_handleCheckDestinationConnection=(0,J.Z)(H().mark(function _callee(){var e,t,n;return H().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:e=u.reduce(function(e,t){var n=t.id,i=t.checked;return create_connection_form_objectSpread(create_connection_form_objectSpread({},e),{},(0,b.Z)({},n,i))},{}),t=(0,ee.RB)(w),n={name:O,signals:e,fields:(0,ee.gs)(t),type:o.type};try{E(n,v)}catch(e){}case 5:case"end":return i.stop()}},_callee)}))).apply(this,arguments)}return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.xJ,{size:18,weight:600,children:a?ee.ye.UPDATE_CONNECTION:ee.ye.CREATE_CONNECTION}),(null==u?void 0:u.length)>=1&&(0,y.jsxs)(q,{children:[(0,y.jsx)(l.xJ,{size:14,children:ee.ye.CONNECTION_MONITORS}),(0,y.jsx)(G,{children:u.map(function(e){return(0,y.jsx)(l.Ho,{value:null==e?void 0:e.checked,onChange:function(){return handleCheckboxChange(null==e?void 0:e.id)},label:null==e?void 0:e.label},null==e?void 0:e.id)})})]}),(0,y.jsx)(Q,{children:(0,y.jsx)(l.ix,{"data-cy":"create-destination-input-name",label:ee.ye.DESTINATION_NAME,value:O,onChange:N,required:!0})}),(t=function(e,t){null!==x.enabled&&v({enabled:null,message:""}),C(function(n){return create_connection_form_objectSpread(create_connection_form_objectSpread({},n),{},(0,b.Z)({},e,t))})},null==n?void 0:n.map(function(e){var n=e.name,i=e.component_type,r=e.display_name,o=e.component_properties;switch(i){case Y.Ar.INPUT:return(0,y.jsx)(Q,{children:(0,y.jsx)(l.ix,dynamic_fields_objectSpread({"data-cy":"create-destination-input-"+n,label:r,value:w[n],onChange:function(e){return t(n,e)}},o))},n);case Y.Ar.DROPDOWN:var a=null==o?void 0:o.values.map(function(e){return{label:e,id:e}}),c=w[n]?{id:w[n],label:w[n]}:null;return(0,y.jsx)(Q,{children:(0,y.jsx)(l.p,dynamic_fields_objectSpread({label:r,width:354,data:a,onChange:function(e){return t(n,e.label)},value:c},o))},n);case Y.Ar.MULTI_INPUT:var s=w[n]||e.initial_value;return"string"==typeof s&&(s=(0,k.D6)(s,[])),(0,y.jsx)("div",{style:{marginTop:22},children:(0,y.jsx)(l.oq,dynamic_fields_objectSpread({title:r,values:s,placeholder:"Add value",onValuesChange:function(e){return t(n,0===e.length?[]:e)}},o))},n);case Y.Ar.KEY_VALUE_PAIR:var d=w[n]||X;"string"==typeof d&&(d=(0,k.D6)(d,{}));var u,p=[],f=0,h=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}(e))){n&&(e=n);var i=0,F=function(){};return{s:F,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(d=Object.keys(d).map(function(e){return{key:e,value:d[e]}}));try{for(h.s();!(u=h.n()).done;){var m=u.value,g=m.key,x=m.value;p.push({id:f++,key:g,value:x})}}catch(e){h.e(e)}finally{h.f()}return d=p,(0,y.jsx)("div",{style:{marginTop:22},children:(0,y.jsx)(l.C1,dynamic_fields_objectSpread({title:r,setKeyValues:function(e){t(n,e.map(function(e){return{key:e.key,value:e.value}}).reduce(function(e,t){return e[t.key]=t.value,e},{}))},keyValues:d},o))},n);case Y.Ar.TEXTAREA:return(0,y.jsx)(Q,{style:{width:362},children:(0,y.jsx)(l.Kx,dynamic_fields_objectSpread({label:r,value:w[n],onChange:function(e){return t(n,e.target.value)}},o))},n);default:return null}})),(0,y.jsxs)($,{children:[(null==o?void 0:o.test_connection_supported)&&(0,y.jsx)(l.ZT,{variant:"secondary",disabled:h,onClick:function(){return _handleCheckDestinationConnection.apply(this,arguments)},children:A?(0,y.jsx)(l.kQ,{width:9,height:9}):null===x.enabled?(0,y.jsx)(l.xJ,{color:M.Z.text.secondary,size:14,weight:600,children:"Test Connection"}):x.enabled?(0,y.jsx)(l.xJ,{color:M.Z.colors.success,size:14,weight:600,children:"Connection Successful"}):(0,y.jsx)(l.xJ,{color:M.Z.colors.error,size:14,weight:600,children:x.message})}),(0,y.jsx)(l.ZT,{"data-cy":"create-destination-create-click",disabled:h||!1===x.enabled,onClick:onCreateClick,children:(0,y.jsx)(l.xJ,{color:M.Z.colors.dark_blue,size:14,weight:600,children:a?ee.ye.UPDATE_DESTINATION:ee.ye.CREATE_DESTINATION})})]})]})}n(8727),o.ZP.div.withConfig({displayName:"quickhelpstyled__QuickHelpHeader",componentId:"sc-14uo69z-0"})(["display:flex;gap:8px;margin-bottom:20px;"]),o.ZP.div.withConfig({displayName:"quickhelpstyled__QuickHelpVideoWrapper",componentId:"sc-14uo69z-1"})(["margin-bottom:32px;"]),n(4865)},9628:function(e,t,n){"use strict";n.d(t,{M3:function(){return S.M3},aM:function(){return ChooseDestinationContainer},s0:function(){return S.s0},Ks:function(){return ChooseSourcesContainer},mn:function(){return ConnectDestinationContainer},Pn:function(){return S.Pn},Jg:function(){return S.Jg},F0:function(){return S.F0},Z9:function(){return S.Z9},bI:function(){return S.bI},cA:function(){return S.cA},ZJ:function(){return S.ZJ},aF:function(){return S.aF},mj:function(){return S.mj},Zr:function(){return S.Zr},$G:function(){return S.$G}});var i=n(9891),r=n(7022),o=n(6952),a=n.n(o),c=n(2265),s=n(1032),l=n(9608),d=n(3103),u=n(4033),p=n(299),f=n(4328),h=n(3046),m=n(4865),g=n(7437);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ChooseSourcesContainer(){var e=(0,u.useRouter)(),t=(0,h.I0)(),n=(0,h.v9)(function(e){return e.app.sources}),o=(0,d.Fi)({}),y=o.sectionData,x=o.setSectionData,v=o.totalSelected;function onNextClick(){return _onNextClick.apply(this,arguments)}function _onNextClick(){return(_onNextClick=(0,i.Z)(a().mark(function _callee(){return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t((0,l.ed)(y)),e.push(s.Z6.CHOOSE_DESTINATION);case 2:case"end":return n.stop()}},_callee)}))).apply(this,arguments)}return(0,c.useEffect)(function(){n&&x(function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(s.categories);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(i)break;var c=a.items.filter(function(t){return t.type===e});c.length&&(i=c[0])}}catch(e){r.e(e)}finally{r.f()}n(i)}},[s]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(y.rc,{title:g.mD.MENU.DESTINATIONS,onBackClick:function(){a.back()}}),(0,u.jsx)(h,{children:c&&t&&(0,u.jsx)(v,{children:(0,u.jsx)(y.VU,{destinationType:c,selectedDestination:t,onSubmit:function(e){r(_objectSpread(_objectSpread({},e),{},{type:t.type}),{onSuccess:function(){return a.push("".concat(g.Z6.DESTINATIONS,"?status=created"))}})}})})})]})}var b=n(299),_=n(6757);function update_destination_flow_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function update_destination_flow_objectSpread(e){for(var t=1;t=5){clearInterval(l.current);return}},[o]),m)?(0,u.jsx)(b.kQ,{}):(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(et,{children:null!=h&&h.length?(0,u.jsxs)(en,{children:[(0,u.jsxs)(ei,{children:[(0,u.jsx)(b.$q,{containerStyle:{padding:"6px 8px"},placeholder:g.mD.SEARCH_SOURCE,value:t,onChange:function(e){return n(e.target.value)}}),(0,u.jsx)(er,{children:(0,u.jsx)(b.ZT,{onClick:handleAddSources,style:{height:32},children:(0,u.jsx)(b.xJ,{size:14,weight:600,color:S.Z.text.dark_button,children:g.mD.ADD_NEW_SOURCE})})})]}),(0,u.jsx)(eo,{children:(0,u.jsx)(y.Np,{sortSources:x,onRowClick:function(e){c.push("".concat(g.Z6.MANAGE_SOURCE,"?name=").concat(null==e?void 0:e.name,"&kind=").concat(null==e?void 0:e.kind,"&namespace=").concat(null==e?void 0:e.namespace))},namespaces:C,filterSourcesByKind:_,filterByConditionStatus:N,deleteSourcesHandler:j,data:t?h.filter(function(e){return e.name.toLowerCase().includes(t.toLowerCase())||e.namespace.toLowerCase().includes(t.toLowerCase())}):h,filterSourcesByLanguage:w,filterSourcesByNamespace:O,filterByConditionMessage:I})})]}):(0,u.jsx)(y.rf,{title:g.mD.EMPTY_SOURCE,btnTitle:g.mD.ADD_NEW_SOURCE,btnAction:handleAddSources})})})}var ea=c.ZP.div.withConfig({displayName:"styled__SourcesSectionWrapper",componentId:"sc-3wq9l8-0"})(["position:relative;height:81%;::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;@media screen and (max-height:650px){height:72%;}@media screen and (max-height:550px){height:65%;}"]),ec=c.ZP.div.withConfig({displayName:"styled__ButtonWrapper",componentId:"sc-3wq9l8-1"})(["position:absolute;display:flex;align-items:center;gap:16px;right:32px;top:40px;"]),es=n(4328);function NewSourcesList(e){var t=e.onSuccess,n=(0,f.Fi)({}),i=n.sectionData,r=n.setSectionData,o=n.totalSelected,a=(0,f.hi)().upsertSources;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(ec,{children:[(0,u.jsx)(b.xJ,{children:"".concat(o," ").concat(g.ye.SELECTED)}),(0,u.jsx)(b.ZT,{disabled:0===o,onClick:function(){return a({sectionData:i,onSuccess:t,onError:null})},style:{width:110},children:(0,u.jsx)(b.xJ,{weight:600,color:S.Z.text.dark_button,children:g.mD.CONNECT})})]}),(0,u.jsx)(ea,{children:(0,u.jsx)(es.Y,{sectionData:i,setSectionData:r})})]})}function SelectSourcesContainer(){var e=(0,d.useRouter)();return(0,u.jsxs)("div",{style:{height:"100vh"},children:[(0,u.jsx)(o.rc,{title:g.mD.ADD_NEW_SOURCE,onBackClick:function(){return e.back()}}),(0,u.jsx)(NewSourcesList,{onSuccess:function(){e.push("".concat(g.Z6.SOURCES,"?poll=true"))}})]})}var el=c.ZP.div.withConfig({displayName:"managesourceheader__ManageSourceHeaderWrapper",componentId:"sc-1rsqc7w-0"})(["display:flex;width:100%;min-width:686px;height:104px;align-items:center;border-radius:25px;margin:24px 0;background:radial-gradient( 78.09% 72.18% at 100% -0%,rgba(150,242,255,0.4) 0%,rgba(150,242,255,0) 61.91% ),linear-gradient(180deg,#2e4c55 0%,#303355 100%);"]),ed={backgroundColor:"#fff",padding:4,marginRight:16,marginLeft:16};function ManageSourceHeader(e){var t=e.source,n=(0,g.LV)(t),i=g.Fs[n];return(0,u.jsxs)(el,{children:[(0,u.jsx)(b.uR,{src:i,style:ed}),(0,u.jsxs)("div",{style:{flex:1},children:[(0,u.jsx)(b.xJ,{size:24,weight:600,color:"#fff",children:t.name}),(0,u.jsxs)(b.xJ,{size:16,weight:400,color:"#fff",children:[t.kind,' in namespace "',t.namespace,'"']})]})]})}c.ZP.div.withConfig({displayName:"styled__ButtonWrapper",componentId:"sc-1xkiou7-0"})(["position:absolute;display:flex;align-items:center;gap:16px;right:32px;top:40px;"]);var eu=c.ZP.div.withConfig({displayName:"styled__ManageSourcePageContainer",componentId:"sc-1xkiou7-1"})(["padding:32px;"]),ep=c.ZP.div.withConfig({displayName:"styled__BackButtonWrapper",componentId:"sc-1xkiou7-2"})(["display:flex;width:fit-content;align-items:center;cursor:pointer;p{cursor:pointer !important;}"]),ef=c.ZP.div.withConfig({displayName:"styled__FieldWrapper",componentId:"sc-1xkiou7-3"})(["height:36px;width:348px;margin-bottom:64px;"]),eh=c.ZP.div.withConfig({displayName:"styled__SaveSourceButtonWrapper",componentId:"sc-1xkiou7-4"})(["margin-top:48px;height:36px;width:362px;"]),em=n(8727),eg=n(8660),ey=n(2245);function source_describe_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function source_describe_objectSpread(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).map(function(e){var i=(0,eg.Z)(e,2),r=i[0],o=i[1],a="".concat(n,".").concat(r,".").concat(JSON.stringify(o));return"object"==typeof o&&null!==o&&o.hasOwnProperty("value")&&o.hasOwnProperty("name")?(0,u.jsxs)("div",{children:[(0,u.jsxs)("p",{onClick:function(){return t(a)},style:{cursor:"pointer"},children:[(0,u.jsxs)("strong",{children:[o.name,":"]})," ",String(o.value)]}),h[a]&&o.explain&&(0,u.jsx)(eO,{children:o.explain})]},a):"object"==typeof o&&null!==o?(0,u.jsx)("div",{style:{marginLeft:"16px"},children:renderObjectProperties(o)},r):Array.isArray(o)?(0,u.jsx)(CollectorSection,{title:r,collector:o},r):null})}(_)]})):"No source details available."})})]})},CollectorSection=function(e){var t=e.title,n=e.collector;return(0,u.jsxs)("section",{style:{marginTop:24},children:[(0,u.jsx)(eb,{children:t}),n.map(function(e,t){return(0,u.jsx)(CollectorItem,{label:e.podName.value,value:e.phase.value,status:e.phase.status},t)})]})},CollectorItem=function(e){var t=e.label,n=e.value,i="error"===e.status?S.Z.colors.error:S.Z.text.light_grey;return(0,u.jsxs)(eS,{color:i,children:["- ",t,": ",String(n)]})},ex=c.ZP.div.withConfig({displayName:"source-describe__VersionHeader",componentId:"sc-bbjjvc-0"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;"]),ev=(0,c.ZP)(b.xJ).withConfig({displayName:"source-describe__VersionText",componentId:"sc-bbjjvc-1"})(["font-size:24px;"]),eb=(0,c.ZP)(b.xJ).withConfig({displayName:"source-describe__CollectorTitle",componentId:"sc-bbjjvc-2"})(["font-size:20px;margin-bottom:10px;"]),e_=c.ZP.div.withConfig({displayName:"source-describe__NotificationBadge",componentId:"sc-bbjjvc-3"})(["position:absolute;top:-4px;right:-4px;background-color:",";color:white;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center;font-size:12px;"],function(e){var t=e.status;return"error"===t?S.Z.colors.error:"transitioning"===t?S.Z.colors.orange_brown:S.Z.colors.success}),ej=c.ZP.div.withConfig({displayName:"source-describe__IconWrapper",componentId:"sc-bbjjvc-4"})(["position:relative;padding:8px;width:16px;border-radius:8px;border:1px solid ",";display:flex;align-items:center;cursor:pointer;&:hover{background-color:",";}"],S.Z.colors.blue_grey,S.Z.colors.dark),ew=c.ZP.p.withConfig({displayName:"source-describe__LoadingMessage",componentId:"sc-bbjjvc-5"})(["font-size:1rem;color:#555;"]),eC=(0,c.ZP)(b.xJ).withConfig({displayName:"source-describe__DescriptionContent",componentId:"sc-bbjjvc-6"})(["white-space:pre-wrap;line-height:1.6;padding:20px;"]),eS=c.ZP.div.withConfig({displayName:"source-describe__StatusText",componentId:"sc-bbjjvc-7"})(["color:",";font-weight:bold;margin-bottom:8px;padding-left:16px;"],function(e){return e.color}),eO=c.ZP.p.withConfig({displayName:"source-describe__ExplanationText",componentId:"sc-bbjjvc-8"})(["font-size:0.9rem;color:",";margin-top:-5px;margin-bottom:10px;"],S.Z.text.light_grey);function EditSourceForm(){var e,t=(0,i.useState)(""),n=t[0],r=t[1],a=(0,i.useState)(),c=a[0],s=a[1],l=(0,d.useSearchParams)(),p=(0,d.useRouter)(),h=(0,m.useMutation)(function(){return(0,x.JN)((null==c?void 0:c.namespace)||"",(null==c?void 0:c.kind)||"",(null==c?void 0:c.name)||"")}).mutate,y=(0,m.useMutation)(function(){return(0,x.QA)((null==c?void 0:c.namespace)||"",(null==c?void 0:c.kind)||"",(null==c?void 0:c.name)||"",{reported_name:n})}).mutate;function _onPageLoad(){return(_onPageLoad=(0,j.Z)(C().mark(function _callee(){var e,t,n;return C().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e=l.get("name")||"",t=l.get("kind")||"",n=l.get("namespace")||"",i.next=5,(0,x.b5)(n,t,e);case 5:s(i.sent);case 7:case"end":return i.stop()}},_callee)}))).apply(this,arguments)}function onSaveClick(){y(void 0,{onSuccess:function(){return p.push("".concat(g.Z6.SOURCES,"??poll=true"))}})}return(0,i.useEffect)(function(){(function(){_onPageLoad.apply(this,arguments)})()},[l]),(0,i.useEffect)(function(){r((null==c?void 0:c.reported_name)||"")},[c]),(0,f.K7)("Enter",function(e){onSaveClick()}),c?(0,u.jsxs)(eu,{children:[(0,u.jsxs)(ep,{onClick:function(){return p.back()},children:[(0,u.jsx)(em.xC,{size:14}),(0,u.jsx)(b.xJ,{size:14,children:g.ye.BACK})]}),(0,u.jsx)(eN,{children:(0,u.jsx)(SourceDescriptionDrawer,{namespace:c.namespace,kind:c.kind,name:c.name})}),c&&(0,u.jsx)(ManageSourceHeader,{source:c}),(0,u.jsxs)("div",{style:{display:"flex",gap:60},children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(o.RB,{languages:c.instrumented_application_details.languages||[],conditions:c.instrumented_application_details.conditions}),(0,u.jsx)(ef,{children:(0,u.jsx)(b.ix,{label:g.mD.REPORTED_NAME,value:n,onChange:function(e){return r(e)}})}),(0,u.jsx)(eh,{children:(0,u.jsx)(b.ZT,{disabled:!n,onClick:onSaveClick,children:(0,u.jsx)(b.xJ,{color:S.Z.colors.dark_blue,size:14,weight:600,children:g.om.SAVE})})}),(0,u.jsx)(o.R6,{onDelete:function(){h(void 0,{onSuccess:function(){return p.push("".concat(g.Z6.SOURCES,"??poll=true"))}})},name:null==c?void 0:c.name,image_url:g.Fs[(0,g.LV)(c)]})]}),(0,u.jsx)(b.G3,{conditions:null===(e=c.instrumented_application_details)||void 0===e?void 0:e.conditions})]})]}):(0,u.jsx)(b.kQ,{})}var eN=c.ZP.div.withConfig({displayName:"editsource__DrawerContainer",componentId:"sc-vygftu-0"})(["position:absolute;right:32px;top:16px;"]),eI=c.ZP.div.withConfig({displayName:"styled__Container",componentId:"sc-izwyro-0"})(["display:flex;justify-content:center;max-height:100%;overflow-y:auto;"]),eE=c.ZP.div.withConfig({displayName:"styled__DestinationsContainer",componentId:"sc-izwyro-1"})(["margin-top:24px;width:100%;max-width:1216px;"]),eA=c.ZP.div.withConfig({displayName:"styled__Header",componentId:"sc-izwyro-2"})(["display:flex;justify-content:space-between;padding:0 24px;align-items:center;"]),eT=c.ZP.div.withConfig({displayName:"styled__HeaderRight",componentId:"sc-izwyro-3"})(["display:flex;gap:8px;align-items:center;"]),eP=c.ZP.div.withConfig({displayName:"styled__Content",componentId:"sc-izwyro-4"})(["padding:20px;min-height:200px;"]);function DestinationContainer(){var e=(0,i.useState)(""),t=e[0],n=e[1],r=(0,f.um)(),o=r.destinationList,a=r.destinationLoading,c=r.sortDestinations,s=r.refetchDestinations,l=r.filterDestinationsBySignal,p=(0,d.useRouter)();function handleAddDestination(){p.push(g.Z6.CREATE_DESTINATION)}return((0,i.useEffect)(function(){s()},[]),a)?(0,u.jsx)(b.kQ,{}):(0,u.jsx)(eI,{children:null!=o&&o.length?(0,u.jsxs)(eE,{children:[(0,u.jsxs)(eA,{children:[(0,u.jsx)(b.$q,{containerStyle:{padding:"6px 8px"},value:t,onChange:function(e){return n(e.target.value)}}),(0,u.jsx)(eT,{children:(0,u.jsx)(b.ZT,{onClick:handleAddDestination,style:{height:32},children:(0,u.jsx)(b.xJ,{size:14,weight:600,color:S.Z.text.dark_button,children:g.mD.ADD_NEW_DESTINATION})})})]}),(0,u.jsx)(eP,{children:(0,u.jsx)(y.bk,{sortDestinations:c,filterDestinationsBySignal:l,data:t?o.filter(function(e){return e.name.toLowerCase().includes(t.toLowerCase())}):o,onRowClick:function(e){var t=e.id;return p.push("".concat(g.Z6.UPDATE_DESTINATION).concat(t))}})})]}):(0,u.jsx)(y.rf,{title:g.mD.EMPTY_DESTINATION,btnTitle:g.mD.ADD_NEW_DESTINATION,btnAction:handleAddDestination})})}var ek=c.ZP.div.withConfig({displayName:"styled__OverviewDataFlowWrapper",componentId:"sc-10vv524-0"})(["width:100%;height:100%;"]);function data_flow_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function data_flow_objectSpread(e){for(var t=1;t0?r:[{language:"default",container_name:""}]});var c=formatBytes(null==a?void 0:a.throughput);return data_flow_objectSpread(data_flow_objectSpread({},e),{},{conditions:o,metrics:{data_transfer:c},languages:r.length>0?r:[{language:"default",container_name:""}]})}),i=_.map(function(e){var t,n=null==S?void 0:null===(t=S.destinations)||void 0===t?void 0:t.find(function(t){return t.id===e.id});if(!n)return e;var i=formatBytes(null!=n&&n.throughput||(null==n?void 0:n.throughput)===0?null==n?void 0:n.throughput:0);return data_flow_objectSpread(data_flow_objectSpread({},e),{},{metrics:{data_transfer:i}})}),r=(0,em.xq)(t,i,e),o=r.nodes,c=r.edges;n(o),a(c)}},[h,_,y,S]),(0,i.useEffect)(function(){if(w.get("poll"))return C.current=setInterval(function(){Promise.all([x(),j()]).then(function(){}).catch(console.error),l(function(e){return e+1})},2e3),function(){return clearInterval(C.current)}},[j,x,s,w]),(0,i.useEffect)(function(){if(s>=5){clearInterval(C.current);return}},[s]),t&&o)?(0,u.jsx)(ek,{children:(0,u.jsx)(b.tA,{nodes:t,edges:o,onNodeClick:function(e,t){var n;(null==t?void 0:t.type)==="destination"&&p.push("".concat(g.Z6.UPDATE_DESTINATION).concat(t.data.id)),(null==t?void 0:t.type)==="action"&&p.push("".concat(g.Z6.EDIT_ACTION,"?id=").concat(t.data.id)),null!=t&&null!==(n=t.data)&&void 0!==n&&n.kind&&p.push("".concat(g.Z6.MANAGE_SOURCE,"?name=").concat(t.data.name,"&namespace=").concat(t.data.namespace,"&kind=").concat(t.data.kind))}})}):(0,u.jsx)(b.kQ,{})}function formatBytes(e){if(0===e)return"0 KB/s";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB/s","MB/s","GB/s","TB/s"][t])}var eD=n(4667),OdigosDescriptionDrawer=function(e){(0,eD.Z)(e);var t=(0,i.useState)(!1),n=t[0],r=t[1],o=(0,i.useState)("success"),a=o[0],c=o[1],s=(0,f.HY)(),l=s.odigosDescription,d=s.isOdigosLoading,p=s.refetchOdigosDescription;return(0,i.useEffect)(function(){if(l){var e,t=(e=[],Object.values(l.clusterCollector).forEach(function(t){t.status&&e.push(t.status)}),Object.values(l.nodeCollector).forEach(function(t){t.status&&e.push(t.status)}),e);t.includes("error")?c("error"):t.includes("transitioning")?c("transitioning"):c("success")}},[l]),(0,i.useEffect)(function(){p()},[p]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(eF,{onClick:function(){return r(!n)},children:[(0,u.jsx)(ey.fP,{style:{cursor:"pointer"},size:10}),!d&&(0,u.jsx)(eM,{status:a,children:(0,u.jsx)(b.xJ,{size:10,children:"transitioning"===a?"...":"error"===a?"!":""})})]}),n&&(0,u.jsx)(b.dy,{isOpen:n,onClose:function(){return r(!1)},position:"right",width:"fit-content",children:d?(0,u.jsx)(ez,{children:"Loading description..."}):(0,u.jsx)(eB,{children:l?(0,u.jsxs)("div",{children:[l.odigosVersion&&(0,u.jsxs)(eZ,{children:[(0,u.jsxs)(eR,{children:[l.odigosVersion.name,": ",l.odigosVersion.value]}),(0,u.jsx)(eF,{onClick:p,children:(0,u.jsx)(ey.hY,{size:16})})]}),(0,u.jsxs)("p",{children:["Destinations: ",l.numberOfDestinations]}),(0,u.jsxs)("p",{children:["Sources: ",l.numberOfSources]}),(0,u.jsx)(odigos_describe_CollectorSection,{title:"Cluster Collector",collector:l.clusterCollector}),(0,u.jsx)(odigos_describe_CollectorSection,{title:"Node Collector",collector:l.nodeCollector})]}):"No description available."})})]})},odigos_describe_CollectorSection=function(e){var t=e.title,n=e.collector;return(0,u.jsxs)("section",{style:{marginTop:24},children:[(0,u.jsx)(eL,{children:t}),Object.entries(n).map(function(e){var t=(0,eg.Z)(e,2),n=t[0],i=t[1];return(0,u.jsx)(odigos_describe_CollectorItem,{label:i.name,value:i.value,status:i.status,explain:i.explain},n)})]})},odigos_describe_CollectorItem=function(e){var t=e.label,n=e.value,r=e.status,o=e.explain,a=(0,i.useState)(!1),c=a[0],s=a[1],l="error"===r?S.Z.colors.error:S.Z.text.light_grey;return(0,u.jsxs)("div",{style:{paddingLeft:"16px",marginBottom:"8px"},children:[(0,u.jsxs)(eK,{color:l,onClick:function(){return s(!c)},children:["- ",t,": ",String(n)]}),c&&(0,u.jsx)(eW,{children:o})]})},eZ=c.ZP.div.withConfig({displayName:"odigos-describe__VersionHeader",componentId:"sc-1uxoyp-0"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;"]),eR=(0,c.ZP)(b.xJ).withConfig({displayName:"odigos-describe__VersionText",componentId:"sc-1uxoyp-1"})(["font-size:24px;"]),eL=(0,c.ZP)(b.xJ).withConfig({displayName:"odigos-describe__CollectorTitle",componentId:"sc-1uxoyp-2"})(["font-size:20px;margin-bottom:10px;"]),eM=c.ZP.div.withConfig({displayName:"odigos-describe__NotificationBadge",componentId:"sc-1uxoyp-3"})(["position:absolute;top:-4px;right:-4px;background-color:",";color:white;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center;font-size:12px;"],function(e){var t=e.status;return"error"===t?S.Z.colors.error:"transitioning"===t?S.Z.colors.orange_brown:S.Z.colors.success}),eF=c.ZP.div.withConfig({displayName:"odigos-describe__IconWrapper",componentId:"sc-1uxoyp-4"})(["position:relative;padding:8px;width:16px;border-radius:8px;border:1px solid ",";display:flex;align-items:center;cursor:pointer;&:hover{background-color:",";}"],S.Z.colors.blue_grey,S.Z.colors.dark),ez=c.ZP.p.withConfig({displayName:"odigos-describe__LoadingMessage",componentId:"sc-1uxoyp-5"})(["font-size:1rem;color:#555;"]),eB=(0,c.ZP)(b.xJ).withConfig({displayName:"odigos-describe__DescriptionContent",componentId:"sc-1uxoyp-6"})(["white-space:pre-wrap;line-height:1.6;padding:20px;max-width:650px;"]),eK=c.ZP.div.withConfig({displayName:"odigos-describe__StatusText",componentId:"sc-1uxoyp-7"})(["color:",";font-weight:bold;cursor:pointer;"],function(e){return e.color}),eW=c.ZP.span.withConfig({displayName:"odigos-describe__StatusBadge",componentId:"sc-1uxoyp-8"})(["font-size:0.8rem;font-weight:normal;margin-left:4px;color:inherit;"]),eJ=n(8078)},8078:function(e,t,n){"use strict";n.d(t,{s0:function(){return ChooseInstrumentationRuleContainer},Jg:function(){return CreateInstrumentationRulesContainer},cA:function(){return EditInstrumentationRuleContainer},Nc:function(){return ManagedInstrumentationRulesContainer}});var i=n(2265),r=n(3672),o=n(3024),a=n(4033),c=n(3103),s=n(299),l=n(3587),d=l.ZP.div.withConfig({displayName:"styled__Container",componentId:"sc-3j75fw-0"})(["display:flex;justify-content:center;max-height:100%;overflow-y:auto;"]),u=l.ZP.div.withConfig({displayName:"styled__InstrumentationRulesContainer",componentId:"sc-3j75fw-1"})(["margin-top:24px;width:100%;max-width:1216px;"]),p=l.ZP.div.withConfig({displayName:"styled__Header",componentId:"sc-3j75fw-2"})(["display:flex;justify-content:space-between;padding:0 24px;align-items:center;"]),f=l.ZP.div.withConfig({displayName:"styled__HeaderRight",componentId:"sc-3j75fw-3"})(["display:flex;gap:8px;align-items:center;"]),h=l.ZP.div.withConfig({displayName:"styled__Content",componentId:"sc-3j75fw-4"})(["padding:20px;min-height:200px;"]),m=n(4490),g=n(1032),y=n(2245),x=n(9353),v=n(7437);function RuleRowDynamicContent(e){return e.item,(0,v.jsx)(v.Fragment,{children:"payload-collection"===x.RulesType.PAYLOAD_COLLECTION?(0,v.jsx)(s.xJ,{color:r.Z.text.grey,size:14,weight:400,children:" "}):(0,v.jsx)("div",{})})}var b=l.ZP.tr.withConfig({displayName:"instrumentationrulestablerow__StyledTr",componentId:"sc-puz92q-0"})(["&:hover{background-color:",";}"],r.Z.colors.light_dark),_=l.ZP.td.withConfig({displayName:"instrumentationrulestablerow__StyledTd",componentId:"sc-puz92q-1"})(["padding:10px 20px;border-top:1px solid ",";display:flex;",""],r.Z.colors.blue_grey,function(e){return e.isFirstRow&&(0,l.iv)(["border-top:none;"])}),j=(0,l.ZP)(_).withConfig({displayName:"instrumentationrulestablerow__StyledMainTd",componentId:"sc-puz92q-2"})(["cursor:pointer;padding:10px 20px;"]),w=l.ZP.div.withConfig({displayName:"instrumentationrulestablerow__RuleIconContainer",componentId:"sc-puz92q-3"})(["display:flex;gap:8px;margin-left:10px;width:100%;"]),C=l.ZP.div.withConfig({displayName:"instrumentationrulestablerow__RuleDetails",componentId:"sc-puz92q-4"})(["display:flex;flex-direction:column;gap:4px;"]),S=l.ZP.div.withConfig({displayName:"instrumentationrulestablerow__ClusterAttributesContainer",componentId:"sc-puz92q-5"})(["display:flex;gap:8px;align-items:center;"]);function InstrumentationRulesTableRow(e){var t=e.item,n=e.index,i=e.onRowClick;return(0,v.jsx)(b,{children:(0,v.jsx)(j,{isFirstRow:0===n,onClick:function(){return i((null==t?void 0:t.ruleId)||"")},children:(0,v.jsxs)(w,{children:[(0,v.jsx)("div",{style:{height:16},children:(0,v.jsx)(y.Kq,{style:{width:16,height:16}})}),(0,v.jsxs)(C,{children:[(0,v.jsx)(s.xJ,{color:r.Z.colors.light_grey,size:12,children:g.Of["payload-collection"].TITLE}),(0,v.jsxs)(S,{children:[(0,v.jsx)(s.xJ,{"data-cy":"rules-rule-name",weight:600,children:"".concat((null==t?void 0:t.ruleName)||"Rule")}),(0,v.jsx)(RuleRowDynamicContent,{item:t})]}),(0,v.jsx)(s.xJ,{color:r.Z.text.light_grey,size:14,children:null==t?void 0:t.notes})]})]})})},null==t?void 0:t.ruleId)}var O=l.ZP.div.withConfig({displayName:"instrumentationrulestableheader__StyledThead",componentId:"sc-11m7g1z-0"})(["background-color:",";border-top-right-radius:6px;border-top-left-radius:6px;"],r.Z.colors.light_dark),N=l.ZP.th.withConfig({displayName:"instrumentationrulestableheader__StyledTh",componentId:"sc-11m7g1z-1"})(["padding:10px 20px;text-align:left;border-bottom:1px solid ",";"],r.Z.colors.blue_grey),I=(0,l.ZP)(N).withConfig({displayName:"instrumentationrulestableheader__StyledMainTh",componentId:"sc-11m7g1z-2"})(["padding:10px 20px;display:flex;align-items:center;gap:8px;"]);function InstrumentationRulesTableHeader(e){var t=e.data;return(0,v.jsx)(O,{children:(0,v.jsxs)(I,{children:[(0,v.jsx)(y.oe,{style:{width:18}}),(0,v.jsx)(s.xJ,{size:14,weight:600,color:r.Z.text.white,children:"".concat(t.length," ").concat(g.mD.MENU.INSTRUMENTATION_RULES)})]})})}var InstrumentationRulesTable=function(e){var t=e.data,n=e.onRowClick,r=(0,i.useState)([]),o=r[0],a=r[1],c=(0,i.useState)(1),l=c[0],d=c[1],u=(0,i.useState)(10),p=u[0],f=u[1],h=i.useRef(1);return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(s.iA,{data:t,renderTableHeader:function(){return(0,v.jsx)(InstrumentationRulesTableHeader,{data:t})},onPaginate:function(e){h.current=e,o.length>0&&a([])},renderEmptyResult:function(){return(0,v.jsx)(m.rf,{title:"No rules found"})},currentPage:l,itemsPerPage:p,setCurrentPage:d,setItemsPerPage:f,renderTableRows:function(e,t){return(0,v.jsx)(InstrumentationRulesTableRow,{item:e,index:t,onRowClick:n})}})})};function ManagedInstrumentationRulesContainer(){var e=(0,a.useRouter)(),t=(0,c.RP)(),n=t.isLoading,l=t.rules,m=t.refetch;function handleAddRule(){e.push("/choose-rule")}return(t.removeRule,(0,i.useEffect)(function(){m()},[]),n)?(0,v.jsx)(s.kQ,{}):(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(d,{children:null!=l&&l.length?(0,v.jsxs)(u,{children:[!(n||1===l.length)&&(0,v.jsxs)(p,{children:[(0,v.jsx)("div",{}),(0,v.jsx)(f,{children:(0,v.jsx)(s.ZT,{onClick:handleAddRule,style:{height:32},children:(0,v.jsx)(s.xJ,{size:14,weight:600,color:r.Z.text.dark_button,children:"Add Rule"})})})]}),(0,v.jsx)(h,{children:(0,v.jsx)(InstrumentationRulesTable,{data:l,onRowClick:function(t){e.push("edit-rule?id=".concat(t))}})})]}):(0,v.jsx)(o.rf,{title:"No rules found",btnTitle:"Add Rule",btnAction:handleAddRule})})})}var E=l.ZP.div.withConfig({displayName:"styled__ActionsListWrapper",componentId:"sc-ihyi7j-0"})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;padding:0 24px 24px 24px;overflow-y:auto;align-items:start;max-height:100%;padding-bottom:220px;box-sizing:border-box;"]),A=l.ZP.div.withConfig({displayName:"styled__DescriptionWrapper",componentId:"sc-ihyi7j-1"})(["padding:24px;gap:4px;display:flex;flex-wrap:wrap;align-items:center;"]),T=l.ZP.div.withConfig({displayName:"styled__LinkWrapper",componentId:"sc-ihyi7j-2"})(["width:100px;"]),P=l.ZP.div.withConfig({displayName:"styled__ActionCardWrapper",componentId:"sc-ihyi7j-3"})(["height:100%;max-height:220px;"]),k=[{id:"payload-collection",title:"Payload Collection",description:"Record operation payloads as span attributes where supported.",type:x.InstrumentationRuleType.PAYLOAD_COLLECTION,icon:x.InstrumentationRuleType.PAYLOAD_COLLECTION}];function ChooseInstrumentationRuleContainer(){var e=(0,a.useRouter)();function onItemClick(t){var n=t.item;e.push("/create-rule?type=".concat(n.type))}return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(A,{children:[(0,v.jsx)(s.xJ,{size:14,children:g.mD.INSTRUMENTATION_RULE_DESCRIPTION}),(0,v.jsx)(T,{children:(0,v.jsx)(s.Rf,{fontSize:14,value:g.om.LINK_TO_DOCS,onClick:function(){return window.open(g.VR,"_blank")}})})]}),(0,v.jsx)(E,{children:k.map(function(e){return(0,v.jsx)(P,{"data-cy":"choose-instrumentation-rule-"+e.type,children:(0,v.jsx)(o.S3,{item:e,onClick:onItemClick})},e.id)})})]})}var D=n(9891),Z=n(7022),R=n(6952),L=n.n(R),M=l.ZP.div.withConfig({displayName:"styled__Container",componentId:"sc-1u0f3i9-0"})(["display:flex;height:100%;padding:24px;.action-yaml-column{display:none;}@media screen and (max-height:700px){height:90%;}@media screen and (max-width:1200px){.action-yaml-row{display:none;}.action-yaml-column{display:block;}width:100%;}"]),z=l.ZP.div.withConfig({displayName:"styled__HeaderText",componentId:"sc-1u0f3i9-1"})(["display:flex;align-items:center;gap:8px;"]),B=l.ZP.div.withConfig({displayName:"styled__CreateActionWrapper",componentId:"sc-1u0f3i9-2"})(["display:flex;flex-direction:column;gap:16px;padding:24px;padding-top:0;box-sizing:border-box;max-height:90%;overflow-y:auto;@media screen and (max-height:450px){max-height:85%;}@media screen and (max-width:1200px){width:100%;}"]);(0,l.ZP)(B).withConfig({displayName:"styled__ActionYamlWrapper",componentId:"sc-1u0f3i9-3"})([""]);var K=l.ZP.div.withConfig({displayName:"styled__KeyvalInputWrapper",componentId:"sc-1u0f3i9-4"})(["width:362px;"]),W=l.ZP.div.withConfig({displayName:"styled__TextareaWrapper",componentId:"sc-1u0f3i9-5"})(["width:375px;"]),J=l.ZP.div.withConfig({displayName:"styled__CreateButtonWrapper",componentId:"sc-1u0f3i9-6"})(["margin-top:32px;width:375px;"]),U=l.ZP.div.withConfig({displayName:"styled__DescriptionWrapper",componentId:"sc-1u0f3i9-7"})(["width:100%;max-width:40vw;min-width:370px;margin-bottom:16px;display:flex;flex-direction:column;gap:6px;"]);l.ZP.div.withConfig({displayName:"styled__LinkWrapper",componentId:"sc-1u0f3i9-8"})(["margin-left:8px;width:100px;"]);var H=l.ZP.div.withConfig({displayName:"styled__LoaderWrapper",componentId:"sc-1u0f3i9-9"})(["display:flex;justify-content:center;align-items:center;height:100%;"]);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t0)},[n]);var handleSelectAllChange=function(e,t){o(e,t),l(t)},handleItemChange=function(e){r(e,n.title)};return(0,x.jsxs)("div",{children:[(0,x.jsxs)("div",{style:{marginBottom:8,display:"flex",alignItems:"center"},children:[(0,x.jsx)(d.Ho,{value:c,onChange:function(){return handleSelectAllChange(n.title,!c)},label:""}),(0,x.jsxs)("div",{style:{cursor:"pointer",display:"flex",alignItems:"center"},onClick:function(){i(n),f(!p)},children:[(0,x.jsx)(d.xJ,{style:{marginLeft:8,flex:1,cursor:"pointer"},children:n.title}),(0,x.jsx)(v,{expanded:p,children:(0,x.jsx)(y.Y8,{size:10})})]})]}),p&&(0,x.jsx)("div",{style:{paddingLeft:"20px"},children:null===(t=n.items)||void 0===t?void 0:t.map(function(e,t){return(0,x.jsx)("div",{style:{cursor:"pointer",marginBottom:8},children:(0,x.jsx)(d.Ho,{value:e.selected,onChange:function(){return handleItemChange(e)},label:"".concat(e.name," / ").concat(e.kind.toLowerCase())})},t)})})]})}var b=n(3672),_=n(3103),j=n(4033),w=n(9608),C=n(3046);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);ne.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(e),u.prev=1,n.s();case 3:if((i=n.n()).done){u.next=20;break}return o=i.value,u.next=7,getActionById(o);case 7:if(!((c=u.sent)&&c.spec.disabled!==t)){u.next=18;break}return s=useActions_objectSpread(useActions_objectSpread({id:c.id},c.spec),{},{disabled:t,type:c.type}),u.prev=10,u.next=13,h(s);case 13:u.next=18;break;case 15:return u.prev=15,u.t0=u.catch(10),u.abrupt("return",Promise.reject(!1));case 18:u.next=3;break;case 20:u.next=25;break;case 22:u.prev=22,u.t1=u.catch(1),n.e(u.t1);case 25:return u.prev=25,n.f(),u.finish(25);case 28:return setTimeout((0,a.Z)(l().mark(function _callee2(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:d(e.sent.data||[]);case 4:case"end":return e.stop()}},_callee2)})),1e3),u.abrupt("return",Promise.resolve(!0));case 30:case"end":return u.stop()}},_callee3,null,[[1,22,25,28],[10,15]])}))).apply(this,arguments)}function _handleActionsRefresh(){return(_handleActionsRefresh=(0,a.Z)(l().mark(function _callee4(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:d(e.sent.data||[]);case 4:case"end":return e.stop()}},_callee4)}))).apply(this,arguments)}return(0,i.useEffect)(function(){d(n||[])},[n]),{isLoading:t,actions:s||[],sortActions:function(e){d((0,o.Z)(n||[]).sort(function(t,n){var i,r,o,a;switch(e){case u.ActionsSortType.TYPE:return t.type.localeCompare(n.type);case u.ActionsSortType.ACTION_NAME:var c=(null===(i=t.spec)||void 0===i?void 0:i.actionName)||"",s=(null===(r=n.spec)||void 0===r?void 0:r.actionName)||"";return c.localeCompare(s);case u.ActionsSortType.STATUS:return(null!==(o=t.spec)&&void 0!==o&&o.disabled?1:-1)-(null!==(a=n.spec)&&void 0!==a&&a.disabled?1:-1);default:return 0}}))},getActionById:getActionById,filterActionsBySignal:function(e){d(null==n?void 0:n.filter(function(t){return e.some(function(e){return t.spec.signals.includes(e.toUpperCase())})}))},toggleActionStatus:function(e,t){return _toggleActionStatus.apply(this,arguments)},refetch:function(){return _handleActionsRefresh.apply(this,arguments)}}}function useActionState_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function useActionState_objectSpread(e){for(var t=1;t0)||void 0===f[0]||f[0],n=t.actionName,i=t.actionNote,r=t.actionData,o=t.selectedMonitors,a=t.disabled,p=useActionState_objectSpread(useActionState_objectSpread({actionName:n,notes:i,signals:getSupportedSignals(c=t.type,o).filter(function(e){return e.checked}).map(function(e){return e.label.toUpperCase()})},function(e,t){switch(e){case u.ActionsType.ADD_CLUSTER_INFO:return{clusterAttributes:t.clusterAttributes.filter(function(e){return""!==e.attributeStringValue&&""!==e.attributeName})};case u.ActionsType.DELETE_ATTRIBUTES:return{attributeNamesToDelete:t.attributeNamesToDelete.filter(function(e){return""!==e})};case u.ActionsType.RENAME_ATTRIBUTES:return{renames:Object.fromEntries(Object.entries(t.renames).filter(function(e){var t=(0,x.Z)(e,2),n=t[0],i=t[1];return""!==n&&""!==i}))};default:return t}}(c,r)),{},{disabled:e?a:!a}),l.prev=5,!(null!=t&&t.id)){l.next=11;break}return l.next=9,d(p);case 9:l.next=14;break;case 11:return delete p.disabled,l.next=14,s(p);case 14:e&&onSuccess(),l.next=20;break;case 17:l.prev=17,l.t0=l.catch(5),console.error({error:l.t0});case 20:case"end":return l.stop()}},_callee3,null,[[5,17]])}))).apply(this,arguments)}function getSupportedSignals(e,t){return e===u.ActionsType.ERROR_SAMPLER||e===u.ActionsType.PROBABILISTIC_SAMPLER||e===u.ActionsType.LATENCY_SAMPLER||e===u.ActionsType.PII_MASKING?t.filter(function(e){return"Traces"===e.label}):t}return{actionState:t,upsertAction:upsertAction,onDeleteAction:function(){try{null!=t&&t.id&&(h(t.id),onSuccess())}catch(e){}},buildActionData:function(e){return _buildActionData.apply(this,arguments)},getSupportedSignals:getSupportedSignals,onChangeActionState:function(e,t){n(function(n){return useActionState_objectSpread(useActionState_objectSpread({},n),{},(0,c.Z)({},e,t))}),"disabled"===e&&upsertAction(!1)}}}var b=n(9608),useNotify=function(){var e=b.h.dispatch;return function(t){var n=t.message,i=t.title,r=t.type,o=t.target,a=t.crdType,c=new Date().getTime().toString();e((0,b.wN)({id:c,message:n,title:i,type:r,target:o,crdType:a}))}};function useSSE(){var e=(0,i.useRef)({}),t=(0,i.useState)(0),n=(t[0],t[1]);(0,i.useEffect)(function(){var t=function connect(){var t=new EventSource(m.bl.EVENTS);return t.onmessage=function(t){var i=JSON.parse(t.data),r=t.data,o={id:Date.now(),message:i.data,title:i.event,type:i.type,target:i.target,crdType:i.crdType};if(e.current[r]&&e.current[r].id>Date.now()-2e3){e.current[r]=o;return}e.current[r]=o,b.h.dispatch((0,b.wN)({id:e.current[r].id,message:e.current[r].message,title:e.current[r].title,type:e.current[r].type,target:e.current[r].target,crdType:e.current[r].crdType})),n(0)},t.onerror=function(e){console.error("EventSource failed:",e),t.close(),n(function(e){if(!(e<10))return console.error("Max retries reached. Could not reconnect to EventSource."),b.h.dispatch((0,b.wN)({id:Date.now().toString(),message:"Could not reconnect to EventSource.",title:"Error",type:"error",target:"notification",crdType:"notification"})),e;var t=e+1;return setTimeout(function(){connect()},Math.min(1e4,1e3*Math.pow(2,t))),t})},t}();return function(){t.close()}},[])}var _=n(6140);function getOverviewMetrics(){return _getOverviewMetrics.apply(this,arguments)}function _getOverviewMetrics(){return(_getOverviewMetrics=(0,a.Z)(l().mark(function _callee(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.U2)(d.bl.OVERVIEW_METRICS);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee)}))).apply(this,arguments)}function useOverviewMetrics(){return{metrics:(0,p.useQuery)([],getOverviewMetrics,{refetchInterval:5e3}).data}}function useInstrumentationRule_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function useInstrumentationRule_objectSpread(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}(e),d.prev=1,n.s();case 3:if((i=n.n()).done){d.next=20;break}return o=i.value,d.next=7,getRuleById(o);case 7:if(!((c=d.sent)&&c.disabled!==t)){d.next=18;break}return s={id:o,data:useInstrumentationRule_objectSpread(useInstrumentationRule_objectSpread({},c),{},{disabled:t})},d.prev=10,d.next=13,m(s);case 13:d.next=18;break;case 15:return d.prev=15,d.t0=d.catch(10),d.abrupt("return",Promise.reject(!1));case 18:d.next=3;break;case 20:d.next=25;break;case 22:d.prev=22,d.t1=d.catch(1),n.e(d.t1);case 25:return d.prev=25,n.f(),d.finish(25);case 28:return setTimeout((0,a.Z)(l().mark(function _callee2(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:u(e.sent.data||[]);case 4:case"end":return e.stop()}},_callee2)})),1e3),d.abrupt("return",Promise.resolve(!0));case 30:case"end":return d.stop()}},_callee3,null,[[1,22,25,28],[10,15]])}))).apply(this,arguments)}function handleRulesRefresh(){return _handleRulesRefresh.apply(this,arguments)}function _handleRulesRefresh(){return(_handleRulesRefresh=(0,a.Z)(l().mark(function _callee4(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:u(e.sent.data||[]);case 4:case"end":return e.stop()}},_callee4)}))).apply(this,arguments)}function _addRule(){return(_addRule=(0,a.Z)(l().mark(function _callee5(e){return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,h(e);case 3:return t.next=5,handleRulesRefresh();case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error("Error creating rule:",t.t0);case 10:case"end":return t.stop()}},_callee5,null,[[0,7]])}))).apply(this,arguments)}function _removeRule(){return(_removeRule=(0,a.Z)(l().mark(function _callee6(e){return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g(e);case 3:return t.next=5,handleRulesRefresh();case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error("Error deleting rule:",t.t0);case 10:case"end":return t.stop()}},_callee6,null,[[0,7]])}))).apply(this,arguments)}return(0,i.useEffect)(function(){u(n||[])},[n]),{isLoading:t,rules:d||[],addRule:function(e){return _addRule.apply(this,arguments)},updateRule:m,removeRule:function(e){return _removeRule.apply(this,arguments)},sortRules:function(e){u((0,o.Z)(n||[]).sort(function(t,n){switch(e){case"NAME":return t.ruleName.localeCompare(n.ruleName);case"STATUS":return(t.disabled?1:-1)-(n.disabled?1:-1);default:return 0}}))},getRuleById:getRuleById,toggleRuleStatus:function(e,t){return _toggleRuleStatus.apply(this,arguments)},refetch:handleRulesRefresh}}function useDescribe(){var e=(0,i.useState)(""),t=e[0],n=e[1],r=(0,i.useState)(""),o=r[0],a=r[1],c=(0,i.useState)(""),s=c[0],l=c[1],d=(0,p.useQuery)(["odigosDescription"],f.c6,{enabled:!1}),u=d.data,h=d.isLoading,m=d.refetch,g=(0,p.useQuery)(["sourceDescription"],function(){return(0,f.b9)(t,o.toLowerCase(),s)},{onError:function(e){console.log(e)},enabled:!1}),y=g.data,x=g.isLoading,v=g.refetch;return(0,i.useEffect)(function(){t&&o&&s&&v()},[t,o,s]),(0,i.useEffect)(function(){console.log({sourceDescription:y})},[y]),{odigosDescription:u,sourceDescription:y,isOdigosLoading:h,isSourceLoading:x,refetchOdigosDescription:m,fetchSourceDescription:function(){v()},setNamespaceKindName:function(e,t,i){n(e),a(t),l(i)}}}},9608:function(e,t,n){"use strict";n.d(t,{wN:function(){return d},_A:function(){return p},y5:function(){return u},ed:function(){return o},h:function(){return m}});var i=n(4683),r=(0,i.oM)({name:"app",initialState:{sources:{}},reducers:{setSources:function(e,t){e.sources=t.payload}}}),o=r.actions.setSources,a=r.reducer,c=n(7022);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t0?s-4:s;for(r=0;r>16&255,a[c++]=t>>8&255,a[c++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,a[c++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,a[c++]=t>>8&255,a[c++]=255&t),a},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,u=n-i;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>u?u:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7133:function(e,t,r){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var n=r(4699),i=r(2305),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Buffer.prototype),t}function Buffer(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(e)}return from(e,t,r)}function from(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!Buffer.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|byteLength(e,t),n=createBuffer(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(isInstance(e,Uint8Array)){var t=new Uint8Array(e);return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength)}return fromArrayLike(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer)))return fromArrayBuffer(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return Buffer.from(n,t,r);var i=function(e){if(Buffer.isBuffer(e)){var t,r=0|checked(e.length),n=createBuffer(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?createBuffer(0):fromArrayLike(e):"Buffer"===e.type&&Array.isArray(e.data)?fromArrayLike(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return Buffer.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function assertSize(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function allocUnsafe(e){return assertSize(e),createBuffer(e<0?0:0|checked(e))}function fromArrayLike(e){for(var t=e.length<0?0:0|checked(e.length),r=createBuffer(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(i)return n?-1:utf8ToBytes(e).length;t=(""+t).toLowerCase(),i=!0}}function slowToString(e,t,r){var i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=Buffer.from(t,n)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,n,i){var o,s=1,u=e.length,a=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,u/=2,a/=2,r/=2}function read(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;ou&&(r=u-a),o=r;o>=0;o--){for(var f=!0,l=0;l239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:(192&(o=e[i+1]))==128&&(a=(31&c)<<6|63&o)>127&&(f=a);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(a=(15&c)<<12|(63&o)<<6|63&s)>2047&&(a<55296||a>57343)&&(f=a);break;case 4:o=e[i+1],s=e[i+2],u=e[i+3],(192&o)==128&&(192&s)==128&&(192&u)==128&&(a=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&u)>65535&&a<1114112&&(f=a)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,n,i,o){if(!Buffer.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function checkIEEE754(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function writeFloat(e,t,r,n,o){return t=+t,r>>>=0,o||checkIEEE754(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function writeDouble(e,t,r,n,o){return t=+t,r>>>=0,o||checkIEEE754(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=Buffer,t.h2=50,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(e,t,r){return from(e,t,r)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(e,t,r){return(assertSize(e),e<=0)?createBuffer(e):void 0!==t?"string"==typeof r?createBuffer(e).fill(t,r):createBuffer(e).fill(t):createBuffer(e)},Buffer.allocUnsafe=function(e){return allocUnsafe(e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)},Buffer.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Buffer.prototype},Buffer.compare=function(e,t){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?Buffer.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(Buffer.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(Buffer.prototype[o]=Buffer.prototype.inspect),Buffer.prototype.compare=function(e,t,r,n,i){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),!Buffer.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,u=Math.min(o,s),a=this.slice(n,i),c=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,u,a,c,f,l,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s>8,i.push(r%256),i.push(n);return i}(e,this.length-f),this,f,l);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},Buffer.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Buffer.prototype.readInt8=function(e,t){return(e>>>=0,t||checkOffset(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},Buffer.prototype.readInt16LE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),i.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),i.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),i.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),i.read(this,e,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;checkInt(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;checkInt(this,e,t,r,i,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,255,0),this[t]=255&e,t+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}var o=0,s=1,u=0;for(this[t]=255&e;++o>0)-u&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}var o=r-1,s=1,u=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/s>>0)-u&255;return t+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeFloatLE=function(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,n){if(!Buffer.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function base64ToBytes(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(s,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function isInstance(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var u=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},2305:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,i){var o,s,u=8*i-n-1,a=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=u;f>0;o=256*o+e[t+l],l+=h,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=256*s+e[t+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===a)return s?NaN:(d?-1:1)*(1/0);s+=Math.pow(2,n),o-=c}return(d?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,u,a,c=8*o-i-1,f=(1<>1,h=23===i?5960464477539062e-23:0,d=n?0:o-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(u=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+l>=1?t+=h/a:t+=h*Math.pow(2,1-l),t*a>=2&&(s++,a/=2),s+l>=f?(u=0,s=f):s+l>=1?(u=(t*a-1)*Math.pow(2,i),s+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&u,d+=p,u/=256,i-=8);for(s=s<0;e[r+d]=255&s,d+=p,s/=256,c-=8);e[r+d-p]|=128*y}},8220:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(3142),i=r(1761),o=r(8172),s=new(function(e){function FocusManager(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var listener=function(){return e()};return window.addEventListener("visibilitychange",listener,!1),window.addEventListener("focus",listener,!1),function(){window.removeEventListener("visibilitychange",listener),window.removeEventListener("focus",listener)}}},t}(0,n.Z)(FocusManager,e);var t=FocusManager.prototype;return t.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},t.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},t.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?r.setFocused(e):r.onFocus()})},t.setFocused=function(e){this.focused=e,e&&this.onFocus()},t.onFocus=function(){this.listeners.forEach(function(e){e()})},t.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},FocusManager}(i.l))},7086:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.S}});var n=r(216),i=r(6897);r.o(i,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),r.o(i,"useMutation")&&r.d(t,{useMutation:function(){return i.useMutation}}),r.o(i,"useQuery")&&r.d(t,{useQuery:function(){return i.useQuery}})},1442:function(e,t,r){"use strict";r.d(t,{E:function(){return setLogger},j:function(){return getLogger}});var n=console;function getLogger(){return n}function setLogger(e){n=e}},2578:function(e,t,r){"use strict";r.d(t,{R:function(){return getDefaultState},m:function(){return a}});var n=r(3428),i=r(1442),o=r(4622),s=r(6800),u=r(8172),a=function(){function Mutation(e){this.options=(0,n.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||getDefaultState(),this.meta=e.meta}var e=Mutation.prototype;return e.setState=function(e){this.dispatch({type:"setState",state:e})},e.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},e.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(u.ZT).catch(u.ZT)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),n.then(function(){return t.executeMutation()}).then(function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,i.j)().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},e.executeMutation=function(){var e,t=this;return this.retryer=new s.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"loading":return(0,n.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.Z)({},e,t.state);default:return e}}(this.state,e),o.V.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},Mutation}();function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},4622:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(8172),i=new(function(){function NotifyManager(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var e=NotifyManager.prototype;return e.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},e.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n.A4)(function(){t.notifyFn(e)})},e.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=Array(r),i=0;i0?this.queries.filter(function(e){return(0,i._x)(r,e)}):this.queries},t.notify=function(e){var t=this;s.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},t.onFocus=function(){var e=this;s.V.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},t.onOnline=function(){var e=this;s.V.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},QueryCache}(f.l),h=r(2578),d=function(e){function MutationCache(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,o.Z)(MutationCache,e);var t=MutationCache.prototype;return t.build=function(e,t,r){var n=new h.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},t.add=function(e){this.mutations.push(e),this.notify(e)},t.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},t.clear=function(){var e=this;s.V.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},t.getAll=function(){return this.mutations},t.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return(0,i.X7)(e,t)})},t.findAll=function(e){return this.mutations.filter(function(t){return(0,i.X7)(e,t)})},t.notify=function(e){var t=this;s.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},t.onFocus=function(){this.resumePausedMutations()},t.onOnline=function(){this.resumePausedMutations()},t.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPaused});return s.V.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(i.ZT)})},Promise.resolve())})},MutationCache}(f.l),p=r(8220),y=r(9977);function getNextPageParam(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var v=function(){function QueryClient(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new l,this.mutationCache=e.mutationCache||new d,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=QueryClient.prototype;return e.mount=function(){var e=this;this.unsubscribeFocus=p.j.subscribe(function(){p.j.isFocused()&&y.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=y.N.subscribe(function(){p.j.isFocused()&&y.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},e.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},e.isFetching=function(e,t){var r=(0,i.I6)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},e.isMutating=function(e){return this.mutationCache.findAll((0,n.Z)({},e,{fetching:!0})).length},e.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},e.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},e.setQueryData=function(e,t,r){var n=(0,i._v)(e),o=this.defaultQueryOptions(n);return this.queryCache.build(this,o).setData(t,r)},e.setQueriesData=function(e,t,r){var n=this;return s.V.batch(function(){return n.getQueryCache().findAll(e).map(function(e){var i=e.queryKey;return[i,n.setQueryData(i,t,r)]})})},e.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},e.removeQueries=function(e,t){var r=(0,i.I6)(e,t)[0],n=this.queryCache;s.V.batch(function(){n.findAll(r).forEach(function(e){n.remove(e)})})},e.resetQueries=function(e,t,r){var o=this,u=(0,i.I6)(e,t,r),a=u[0],c=u[1],f=this.queryCache,l=(0,n.Z)({},a,{active:!0});return s.V.batch(function(){return f.findAll(a).forEach(function(e){e.reset()}),o.refetchQueries(l,c)})},e.cancelQueries=function(e,t,r){var n=this,o=(0,i.I6)(e,t,r),u=o[0],a=o[1],c=void 0===a?{}:a;return void 0===c.revert&&(c.revert=!0),Promise.all(s.V.batch(function(){return n.queryCache.findAll(u).map(function(e){return e.cancel(c)})})).then(i.ZT).catch(i.ZT)},e.invalidateQueries=function(e,t,r){var o,u,a,c=this,f=(0,i.I6)(e,t,r),l=f[0],h=f[1],d=(0,n.Z)({},l,{active:null==(o=null!=(u=l.refetchActive)?u:l.active)||o,inactive:null!=(a=l.refetchInactive)&&a});return s.V.batch(function(){return c.queryCache.findAll(l).forEach(function(e){e.invalidate()}),c.refetchQueries(d,h)})},e.refetchQueries=function(e,t,r){var o=this,u=(0,i.I6)(e,t,r),a=u[0],c=u[1],f=Promise.all(s.V.batch(function(){return o.queryCache.findAll(a).map(function(e){return e.fetch(void 0,(0,n.Z)({},c,{meta:{refetchPage:null==a?void 0:a.refetchPage}}))})})).then(i.ZT);return(null==c?void 0:c.throwOnError)||(f=f.catch(i.ZT)),f},e.fetchQuery=function(e,t,r){var n=(0,i._v)(e,t,r),o=this.defaultQueryOptions(n);void 0===o.retry&&(o.retry=!1);var s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)},e.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(i.ZT).catch(i.ZT)},e.fetchInfiniteQuery=function(e,t,r){var n=(0,i._v)(e,t,r);return n.behavior={onFetch:function(e){e.fetchFn=function(){var t,r,n,o,s,u,c,f=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,l=null==(n=e.fetchOptions)?void 0:null==(o=n.meta)?void 0:o.fetchMore,h=null==l?void 0:l.pageParam,d=(null==l?void 0:l.direction)==="forward",p=(null==l?void 0:l.direction)==="backward",y=(null==(s=e.state.data)?void 0:s.pages)||[],v=(null==(u=e.state.data)?void 0:u.pageParams)||[],m=(0,i.G9)(),g=null==m?void 0:m.signal,b=v,E=!1,O=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},buildNewPages=function(e,t,r,n){return b=n?[t].concat(b):[].concat(b,[t]),n?[r].concat(e):[].concat(e,[r])},fetchPage=function(t,r,n,i){if(E)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);var o=O({queryKey:e.queryKey,signal:g,pageParam:n,meta:e.meta}),s=Promise.resolve(o).then(function(e){return buildNewPages(t,n,e,i)});return(0,a.LE)(o)&&(s.cancel=o.cancel),s};if(y.length){if(d){var w=void 0!==h,C=w?h:getNextPageParam(e.options,y);c=fetchPage(y,w,C)}else if(p){var A,R=void 0!==h,S=R?h:null==(A=e.options).getPreviousPageParam?void 0:A.getPreviousPageParam(y[0],y);c=fetchPage(y,R,S,!0)}else!function(){b=[];var t=void 0===e.options.getNextPageParam;c=!f||!y[0]||f(y[0],0,y)?fetchPage([],t,v[0]):Promise.resolve(buildNewPages([],v[0],y[0]));for(var _loop=function(r){c=c.then(function(n){if(!f||!y[r]||f(y[r],r,y)){var i=t?v[r]:getNextPageParam(e.options,n);return fetchPage(n,t,i)}return Promise.resolve(buildNewPages(n,v[r],y[r]))})},r=1;r0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},Subscribable}()},6897:function(){},8172:function(e,t,r){"use strict";r.d(t,{A4:function(){return scheduleMicrotask},G9:function(){return getAbortController},Gh:function(){return sleep},I6:function(){return parseFilterArgs},Kp:function(){return timeUntilStale},PN:function(){return isValidTimeout},Q$:function(){return function replaceEqualDeep(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||isPlainObject(e)&&isPlainObject(t)){for(var n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,s=r?[]:{},u=0,a=0;a=0&&e!==1/0}function ensureQueryKeyArray(e){return Array.isArray(e)?e:[e]}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function parseQueryArgs(e,t,r){return isQueryKey(e)?"function"==typeof t?(0,n.Z)({},r,{queryKey:e,queryFn:t}):(0,n.Z)({},t,{queryKey:e}):e}function parseMutationArgs(e,t,r){return isQueryKey(e)?"function"==typeof t?(0,n.Z)({},r,{mutationKey:e,mutationFn:t}):(0,n.Z)({},t,{mutationKey:e}):"function"==typeof e?(0,n.Z)({},t,{mutationFn:e}):(0,n.Z)({},e)}function parseFilterArgs(e,t,r){return isQueryKey(e)?[(0,n.Z)({},t,{queryKey:e}),r]:[e||{},t]}function matchQuery(e,t){var r=e.active,n=e.exact,i=e.fetching,o=e.inactive,s=e.predicate,u=e.queryKey,a=e.stale;if(isQueryKey(u)){if(n){if(t.queryHash!==hashQueryKeyByOptions(u,t.options))return!1}else if(!partialMatchKey(t.queryKey,u))return!1}var c=!0===r&&!0===o||null==r&&null==o?"all":!1===r&&!1===o?"none":(null!=r?r:!o)?"active":"inactive";if("none"===c)return!1;if("all"!==c){var f=t.isActive();if("active"===c&&!f||"inactive"===c&&f)return!1}return("boolean"!=typeof a||t.isStale()===a)&&("boolean"!=typeof i||t.isFetching()===i)&&(!s||!!s(t))}function matchMutation(e,t){var r=e.exact,n=e.fetching,i=e.predicate,o=e.mutationKey;if(isQueryKey(o)){if(!t.options.mutationKey)return!1;if(r){if(hashQueryKey(t.options.mutationKey)!==hashQueryKey(o))return!1}else if(!partialMatchKey(t.options.mutationKey,o))return!1}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!i||!!i(t))}function hashQueryKeyByOptions(e,t){return((null==t?void 0:t.queryKeyHashFn)||hashQueryKey)(e)}function hashQueryKey(e){return JSON.stringify(ensureQueryKeyArray(e),function(e,t){return isPlainObject(t)?Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{}):t})}function partialMatchKey(e,t){return function partialDeepEqual(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(function(r){return!partialDeepEqual(e[r],t[r])})}(ensureQueryKeyArray(e),ensureQueryKeyArray(t))}function shallowEqualObjects(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;var t=e.constructor;if(void 0===t)return!0;var r=t.prototype;return!!(hasObjectPrototype(r)&&r.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(e){return"[object Object]"===Object.prototype.toString.call(e)}function isQueryKey(e){return"string"==typeof e||Array.isArray(e)}function sleep(e){return new Promise(function(t){setTimeout(t,e)})}function scheduleMicrotask(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function getAbortController(){if("function"==typeof AbortController)return new AbortController}},9077:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useMutation:function(){return i.useMutation},useQuery:function(){return i.useQuery}});var n=r(7086);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useMutation")&&r.d(t,{useMutation:function(){return n.useMutation}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}});var i=r(1327)},1327:function(e,t,r){"use strict";r.d(t,{QueryClientProvider:function(){return QueryClientProvider},useMutation:function(){return useMutation},useQuery:function(){return useQuery}});var n,i=r(4622),o=r(4887).unstable_batchedUpdates;i.V.setBatchNotifyFunction(o);var s=r(1442),u=console;(0,s.E)(u);var a=r(2265),c=a.createContext(void 0),f=a.createContext(!1);function getQueryClientContext(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}var useQueryClient=function(){var e=a.useContext(getQueryClientContext(a.useContext(f)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},QueryClientProvider=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,i=e.children;a.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var o=getQueryClientContext(n);return a.createElement(f.Provider,{value:n},a.createElement(o.Provider,{value:t},i))},l=r(3428),h=r(8172),d=r(3142),p=r(2578),y=r(1761),v=function(e){function MutationObserver(t,r){var n;return(n=e.call(this)||this).client=t,n.setOptions(r),n.bindMethods(),n.updateResult(),n}(0,d.Z)(MutationObserver,e);var t=MutationObserver.prototype;return t.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},t.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},t.onUnsubscribe=function(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}},t.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},t.getCurrentResult=function(){return this.currentResult},t.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},t.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,l.Z)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},t.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,p.R)(),t=(0,l.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},t.notify=function(e){var t=this;i.V.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)})})},MutationObserver}(y.l);function shouldThrowError(e,t,r){return"function"==typeof t?t.apply(void 0,r):"boolean"==typeof t?t:!!e}function useMutation(e,t,r){var n=a.useRef(!1),o=a.useState(0)[1],s=(0,h.lV)(e,t,r),u=useQueryClient(),c=a.useRef();c.current?c.current.setOptions(s):c.current=new v(u,s);var f=c.current.getCurrentResult();a.useEffect(function(){n.current=!0;var e=c.current.subscribe(i.V.batchCalls(function(){n.current&&o(function(e){return e+1})}));return function(){n.current=!1,e()}},[]);var d=a.useCallback(function(e,t){c.current.mutate(e,t).catch(h.ZT)},[]);if(f.error&&shouldThrowError(void 0,c.current.options.useErrorBoundary,[f.error]))throw f.error;return(0,l.Z)({},f,{mutate:d,mutateAsync:f.mutate})}var m=r(8220),g=r(6800),b=function(e){function QueryObserver(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.selectError=null,n.bindMethods(),n.setOptions(r),n}(0,d.Z)(QueryObserver,e);var t=QueryObserver.prototype;return t.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},t.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},t.onUnsubscribe=function(){this.listeners.length||this.destroy()},t.shouldFetchOnReconnect=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)},t.shouldFetchOnWindowFocus=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},t.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},t.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var i=this.hasListeners();i&&shouldFetchOptionally(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();var o=this.computeRefetchInterval();i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)},t.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},t.getCurrentResult=function(){return this.currentResult},t.trackResult=function(e,t){var r=this,n={},trackProp=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return trackProp(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&trackProp("error"),n},t.getNextResult=function(e){var t=this;return new Promise(function(r,n){var i=t.subscribe(function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))})})},t.getCurrentQuery=function(){return this.currentQuery},t.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},t.refetch=function(e){return this.fetch((0,l.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},t.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then(function(){return t.createResult(n,r)})},t.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},t.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(h.ZT)),t},t.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!h.sk&&!this.currentResult.isStale&&(0,h.PN)(this.options.staleTime)){var t=(0,h.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t+1)}},t.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},t.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!h.sk&&!1!==this.options.enabled&&(0,h.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackground||m.j.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},t.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},t.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},t.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},t.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},t.createResult=function(e,t){var r,n,i=this.currentQuery,o=this.options,u=this.currentResult,a=this.currentResultState,c=this.currentResultOptions,f=e!==i,l=f?e.state:this.currentQueryInitialState,d=f?this.currentResult:this.previousQueryResult,p=e.state,y=p.dataUpdatedAt,v=p.error,m=p.errorUpdatedAt,g=p.isFetching,b=p.status,E=!1,O=!1;if(t.optimisticResults){var w=this.hasListeners(),C=!w&&shouldFetchOnMount(e,t),A=w&&shouldFetchOptionally(e,i,t,o);(C||A)&&(g=!0,y||(b="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==b)r=d.data,y=d.dataUpdatedAt,b=d.status,E=!0;else if(t.select&&void 0!==p.data){if(u&&p.data===(null==a?void 0:a.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(p.data),!1!==t.structuralSharing&&(r=(0,h.Q$)(null==u?void 0:u.data,r)),this.selectResult=r,this.selectError=null}catch(e){(0,s.j)().error(e),this.selectError=e}}else r=p.data;if(void 0!==t.placeholderData&&void 0===r&&("loading"===b||"idle"===b)){if((null==u?void 0:u.isPlaceholderData)&&t.placeholderData===(null==c?void 0:c.placeholderData))n=u.data;else if(n="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==n)try{n=t.select(n),!1!==t.structuralSharing&&(n=(0,h.Q$)(null==u?void 0:u.data,n)),this.selectError=null}catch(e){(0,s.j)().error(e),this.selectError=e}void 0!==n&&(b="success",r=n,O=!0)}return this.selectError&&(v=this.selectError,r=this.selectResult,m=Date.now(),b="error"),{status:b,isLoading:"loading"===b,isSuccess:"success"===b,isError:"error"===b,isIdle:"idle"===b,data:r,dataUpdatedAt:y,error:v,errorUpdatedAt:m,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==b,isLoadingError:"error"===b&&0===p.dataUpdatedAt,isPlaceholderData:O,isPreviousData:E,isRefetchError:"error"===b&&0!==p.dataUpdatedAt,isStale:isStale(e,t),refetch:this.refetch,remove:this.remove}},t.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,i=r.notifyOnChangePropsExclusions;if(!n&&!i||"tracked"===n&&!this.trackedProps.length)return!0;var o="tracked"===n?this.trackedProps:n;return Object.keys(e).some(function(r){var n=e[r]!==t[r],s=null==o?void 0:o.some(function(e){return e===r}),u=null==i?void 0:i.some(function(e){return e===r});return n&&!u&&(!o||s)})},t.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,h.VS)(this.currentResult,t)){var r={cache:!0};(null==e?void 0:e.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,l.Z)({},r,e))}},t.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},t.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,g.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},t.notify=function(e){var t=this;i.V.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},QueryObserver}(y.l);function shouldFetchOnMount(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,r){if(!1!==t.enabled){var n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&isStale(e,t)}return!1}function shouldFetchOptionally(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&isStale(e,r)}function isStale(e,t){return e.isStaleByTime(t.staleTime)}var E=a.createContext((n=!1,{clearReset:function(){n=!1},reset:function(){n=!0},isReset:function(){return n}}));function useQuery(e,t,r){return function(e,t){var r=a.useRef(!1),n=a.useState(0)[1],o=useQueryClient(),s=a.useContext(E),u=o.defaultQueryObserverOptions(e);u.optimisticResults=!0,u.onError&&(u.onError=i.V.batchCalls(u.onError)),u.onSuccess&&(u.onSuccess=i.V.batchCalls(u.onSuccess)),u.onSettled&&(u.onSettled=i.V.batchCalls(u.onSettled)),u.suspense&&("number"!=typeof u.staleTime&&(u.staleTime=1e3),0===u.cacheTime&&(u.cacheTime=1)),(u.suspense||u.useErrorBoundary)&&!s.isReset()&&(u.retryOnMount=!1);var c=a.useState(function(){return new t(o,u)})[0],f=c.getOptimisticResult(u);if(a.useEffect(function(){r.current=!0,s.clearReset();var e=c.subscribe(i.V.batchCalls(function(){r.current&&n(function(e){return e+1})}));return c.updateResult(),function(){r.current=!1,e()}},[s,c]),a.useEffect(function(){c.setOptions(u,{listeners:!1})},[u,c]),u.suspense&&f.isLoading)throw c.fetchOptimistic(u).then(function(e){var t=e.data;null==u.onSuccess||u.onSuccess(t),null==u.onSettled||u.onSettled(t,null)}).catch(function(e){s.clearReset(),null==u.onError||u.onError(e),null==u.onSettled||u.onSettled(void 0,e)});if(f.isError&&!s.isReset()&&!f.isFetching&&shouldThrowError(u.suspense,u.useErrorBoundary,[f.error,c.getCurrentQuery()]))throw f.error;return"tracked"===u.notifyOnChangeProps&&(f=c.trackResult(f,u)),f}((0,h._v)(e,t,r),b)}},3428:function(e,t,r){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=p.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())}),kindOfTest=e=>(e=e.toLowerCase(),t=>v(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:m}=Array,g=typeOfTest("undefined"),b=kindOfTest("ArrayBuffer"),E=typeOfTest("string"),O=typeOfTest("function"),w=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==v(e))return!1;let t=y(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},C=kindOfTest("Date"),A=kindOfTest("File"),R=kindOfTest("Blob"),S=kindOfTest("FileList"),B=kindOfTest("URLSearchParams"),[T,x,P,F]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),m(e))for(n=0,i=e.length;n0;)if(t===(r=n[i]).toLowerCase())return r;return null}let U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!g(e)&&e!==U,k=(a="undefined"!=typeof Uint8Array&&y(Uint8Array),e=>a&&e instanceof a),L=kindOfTest("HTMLFormElement"),M=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),I=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};forEach(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},D="abcdefghijklmnopqrstuvwxyz",j="0123456789",q={DIGIT:j,ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+j},Q=kindOfTest("AsyncFunction"),_=(n="function"==typeof setImmediate,i=O(U.postMessage),n?setImmediate:i?(o=`axios@${Math.random()}`,s=[],U.addEventListener("message",({source:e,data:t})=>{e===U&&t===o&&s.length&&s.shift()()},!1),e=>{s.push(e),U.postMessage(o,"*")}):e=>setTimeout(e)),N="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):void 0!==d&&d.nextTick||_;var K={isArray:m,isArrayBuffer:b,isBuffer:function(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||O(e.append)&&("formdata"===(t=v(e))||"object"===t&&O(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer)},isString:E,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject,isPlainObject,isReadableStream:T,isRequest:x,isResponse:P,isHeaders:F,isUndefined:g,isDate:C,isFile:A,isBlob:R,isRegExp:I,isFunction:O,isStream:e=>isObject(e)&&O(e.pipe),isURLSearchParams:B,isTypedArray:k,isFileList:S,forEach,merge:function merge(){let{caseless:e}=isContextDefined(this)&&this||{},t={},assignValue=(r,n)=>{let i=e&&findKey(t,n)||n;isPlainObject(t[i])&&isPlainObject(r)?t[i]=merge(t[i],r):isPlainObject(r)?t[i]=merge({},r):m(r)?t[i]=r.slice():t[i]=r};for(let e=0,t=arguments.length;e(forEach(t,(t,n)=>{r&&O(t)?e[n]=bind(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s;let u={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=!1!==r&&y(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:v,kindOfTest,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!w(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=e&&e[Symbol.iterator],i=n.call(e);for(;(r=i.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:L,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,(t,r)=>{if(O(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=e[r];if(O(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(m(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey,global:U,isContextDefined,ALPHABET:q,generateString:(e=16,t=q.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&O(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),visit=(e,r)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let n=m(e)?[]:{};return forEach(e,(e,t)=>{let i=visit(e,r+1);g(i)||(n[t]=i)}),t[r]=void 0,n}}return e};return visit(e,0)},isAsyncFn:Q,isThenable:e=>e&&(isObject(e)||O(e))&&O(e.then)&&O(e.catch),setImmediate:_,asap:N};function AxiosError(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}K.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let V=AxiosError.prototype,H={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{H[e]={value:e}}),Object.defineProperties(AxiosError,H),Object.defineProperty(V,"isAxiosError",{value:!0}),AxiosError.from=(e,t,r,n,i,o)=>{let s=Object.create(V);return K.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),AxiosError.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var Z=r(7133).lW;function isVisitable(e){return K.isPlainObject(e)||K.isArray(e)}function removeBrackets(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map(function(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let z=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)});var helpers_toFormData=function(e,t,r){if(!K.isObject(e))throw TypeError("target must be an object");t=t||new FormData,r=K.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!K.isUndefined(t[e])});let n=r.metaTokens,i=r.visitor||defaultVisitor,o=r.dots,s=r.indexes,u=r.Blob||"undefined"!=typeof Blob&&Blob,a=u&&K.isSpecCompliantForm(t);if(!K.isFunction(i))throw TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(!a&&K.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Z.from(e):e}function defaultVisitor(e,r,i){let u=e;if(e&&!i&&"object"==typeof e){if(K.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var a;if(K.isArray(e)&&(a=e,K.isArray(a)&&!a.some(isVisitable))||(K.isFileList(e)||K.endsWith(r,"[]"))&&(u=K.toArray(e)))return r=removeBrackets(r),u.forEach(function(e,n){K.isUndefined(e)||null===e||t.append(!0===s?renderKey([r],n,o):null===s?r:r+"[]",convertValue(e))}),!1}}return!!isVisitable(e)||(t.append(renderKey(i,r,o),convertValue(e)),!1)}let c=[],f=Object.assign(z,{defaultVisitor,convertValue,isVisitable});if(!K.isObject(e))throw TypeError("data must be an object");return!function build(e,r){if(!K.isUndefined(e)){if(-1!==c.indexOf(e))throw Error("Circular reference detected in "+r.join("."));c.push(e),K.forEach(e,function(e,n){let o=!(K.isUndefined(e)||null===e)&&i.call(t,e,K.isString(n)?n.trim():n,r,f);!0===o&&build(e,r?r.concat(n):[n])}),c.pop()}}(e),t};function encode(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&helpers_toFormData(e,this,t)}let G=AxiosURLSearchParams.prototype;function buildURL_encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,r){let n;if(!t)return e;let i=r&&r.encode||buildURL_encode,o=r&&r.serialize;if(n=o?o(t,r):K.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}G.append=function(e,t){this._pairs.push([e,t])},G.toString=function(e){let t=e?function(t){return e.call(this,t,encode)}:encode;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var J=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,function(t){null!==t&&e(t)})}},W={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,X="undefined"!=typeof FormData?FormData:null,Y="undefined"!=typeof Blob?Blob:null;let ee="undefined"!=typeof window&&"undefined"!=typeof document,et=(c="undefined"!=typeof navigator&&navigator.product,ee&&0>["ReactNative","NativeScript","NS"].indexOf(c)),er="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,en=ee&&window.location.href||"http://localhost";var ei={...h,isBrowser:!0,classes:{URLSearchParams:$,FormData:X,Blob:Y},protocols:["http","https","file","blob","url","data"]},helpers_formDataToJSON=function(e){if(K.isFormData(e)&&K.isFunction(e.entries)){let t={};return K.forEachEntry(e,(e,r)=>{!function buildPath(e,t,r,n){let i=e[n++];if("__proto__"===i)return!0;let o=Number.isFinite(+i),s=n>=e.length;if(i=!i&&K.isArray(r)?r.length:i,s)return K.hasOwnProp(r,i)?r[i]=[r[i],t]:r[i]=t,!o;r[i]&&K.isObject(r[i])||(r[i]=[]);let u=buildPath(e,t,r[i],n);return u&&K.isArray(r[i])&&(r[i]=function(e){let t,r;let n={},i=Object.keys(e),o=i.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let eo={transitional:W,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=K.isObject(e);o&&K.isHTMLForm(e)&&(e=new FormData(e));let s=K.isFormData(e);if(s)return i?JSON.stringify(helpers_formDataToJSON(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){var u,a;return(u=e,a=this.formSerializer,helpers_toFormData(u,new ei.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ei.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))).toString()}if((r=K.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return helpers_toFormData(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,r){if(K.isString(e))try{return(0,JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eo.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ei.classes.FormData,Blob:ei.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{eo.headers[e]={}});let es=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&es[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let eu=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:K.isArray(e)?e.map(normalizeValue):String(e)}let isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,n,i){if(K.isFunction(n))return n.call(this,t,r);if(i&&(t=r),K.isString(t)){if(K.isString(n))return -1!==t.indexOf(n);if(K.isRegExp(n))return n.test(t)}}let AxiosHeaders=class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function setHeader(e,t,r){let i=normalizeHeader(t);if(!i)throw Error("header name must be a non-empty string");let o=K.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=normalizeValue(e))}let setHeaders=(e,t)=>K.forEach(e,(e,r)=>setHeader(e,r,t));if(K.isPlainObject(e)||e instanceof this.constructor)setHeaders(e,t);else if(K.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))setHeaders(parseHeaders(e),t);else if(K.isHeaders(e))for(let[t,n]of e.entries())setHeader(n,t,r);else null!=e&&setHeader(t,e,r);return this}get(e,t){if(e=normalizeHeader(e)){let r=K.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(K.isFunction(t))return t.call(this,e,r);if(K.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){let r=K.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||matchHeaderValue(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function deleteHeader(e){if(e=normalizeHeader(e)){let i=K.findKey(r,e);i&&(!t||matchHeaderValue(r,r[i],i,t))&&(delete r[i],n=!0)}}return K.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||matchHeaderValue(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return K.forEach(this,(n,i)=>{let o=K.findKey(r,i);if(o){t[o]=normalizeValue(n),delete t[i];return}let s=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();s!==i&&delete t[i],t[s]=normalizeValue(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return K.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&K.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=this[eu]=this[eu]={accessors:{}},r=t.accessors,n=this.prototype;function defineAccessor(e){let t=normalizeHeader(e);r[t]||(!function(e,t){let r=K.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(n,e),r[t]=!0)}return K.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}};function transformData(e,t){let r=this||eo,n=t||r,i=AxiosHeaders.from(n.headers),o=n.data;return K.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,t,r){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,t,r),this.name="CanceledError"}function settle(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new AxiosError("Request failed with status code "+r.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),K.freezeMethods(AxiosHeaders),K.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var helpers_speedometer=function(e,t){let r;e=e||10;let n=Array(e),i=Array(e),o=0,s=0;return t=void 0!==t?t:1e3,function(u){let a=Date.now(),c=i[s];r||(r=a),n[o]=u,i[o]=a;let f=s,l=0;for(;f!==o;)l+=n[f++],f%=e;if((o=(o+1)%e)===s&&(s=(s+1)%e),a-r{i=o,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?invoke(e,t):(r=e,n||(n=setTimeout(()=>{n=null,invoke(r)},o-s)))},()=>r&&invoke(r)]};let progressEventReducer=(e,t,r=3)=>{let n=0,i=helpers_speedometer(50,250);return helpers_throttle(r=>{let o=r.loaded,s=r.lengthComputable?r.total:void 0,u=o-n,a=i(u),c=o<=s;n=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&c?(s-o)/a:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},progressEventDecorator=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},asyncDecorator=e=>(...t)=>K.asap(()=>e(...t));var ea=ei.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function resolveURL(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=resolveURL(window.location.href),function(t){let r=K.isString(t)?resolveURL(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},ec=ei.hasStandardBrowserEnv?{write(e,t,r,n,i,o){let s=[e+"="+encodeURIComponent(t)];K.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),K.isString(n)&&s.push("path="+n),K.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function buildFullPath(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};let r={};function getMergedValue(e,t,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function mergeDeepProperties(e,t,r){return K.isUndefined(t)?K.isUndefined(e)?void 0:getMergedValue(void 0,e,r):getMergedValue(e,t,r)}function valueFromConfig2(e,t){if(!K.isUndefined(t))return getMergedValue(void 0,t)}function defaultToConfig2(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,t)}function mergeDirectKeys(r,n,i){return i in t?getMergedValue(r,n):i in e?getMergedValue(void 0,r):void 0}let n={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,t)=>mergeDeepProperties(headersToObject(e),headersToObject(t),!0)};return K.forEach(Object.keys(Object.assign({},e,t)),function(i){let o=n[i]||mergeDeepProperties,s=o(e[i],t[i],i);K.isUndefined(s)&&o!==mergeDirectKeys||(r[i]=s)}),r}var resolveConfig=e=>{let t;let r=mergeConfig({},e),{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:u,auth:a}=r;if(r.headers=u=AxiosHeaders.from(u),r.url=buildURL(buildFullPath(r.baseURL,r.url),e.params,e.paramsSerializer),a&&u.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),K.isFormData(n)){if(ei.hasStandardBrowserEnv||ei.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(!1!==(t=u.getContentType())){let[e,...r]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];u.setContentType([e||"multipart/form-data",...r].join("; "))}}if(ei.hasStandardBrowserEnv&&(i&&K.isFunction(i)&&(i=i(r)),i||!1!==i&&ea(r.url))){let e=o&&s&&ec.read(s);e&&u.set(o,e)}return r};let ef="undefined"!=typeof XMLHttpRequest;var el=ef&&function(e){return new Promise(function(t,r){let n,i,o,s,u;let a=resolveConfig(e),c=a.data,f=AxiosHeaders.from(a.headers).normalize(),{responseType:l,onUploadProgress:h,onDownloadProgress:d}=a;function done(){s&&s(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(n),a.signal&&a.signal.removeEventListener("abort",n)}let p=new XMLHttpRequest;function onloadend(){if(!p)return;let n=AxiosHeaders.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),i=l&&"text"!==l&&"json"!==l?p.response:p.responseText,o={data:i,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};settle(function(e){t(e),done()},function(e){r(e),done()},o),p=null}p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout,"onloadend"in p?p.onloadend=onloadend:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(onloadend)},p.onabort=function(){p&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",n=a.transitional||W;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),r(new AxiosError(t,n.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,p)),p=null},void 0===c&&f.setContentType(null),"setRequestHeader"in p&&K.forEach(f.toJSON(),function(e,t){p.setRequestHeader(t,e)}),K.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),l&&"json"!==l&&(p.responseType=a.responseType),d&&([o,u]=progressEventReducer(d,!0),p.addEventListener("progress",o)),h&&p.upload&&([i,s]=progressEventReducer(h),p.upload.addEventListener("progress",i),p.upload.addEventListener("loadend",s)),(a.cancelToken||a.signal)&&(n=t=>{p&&(r(!t||t.type?new CanceledError(null,e,p):t),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(n),a.signal&&(a.signal.aborted?n():a.signal.addEventListener("abort",n)));let y=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(a.url);if(y&&-1===ei.protocols.indexOf(y)){r(new AxiosError("Unsupported protocol "+y+":",AxiosError.ERR_BAD_REQUEST,e));return}p.send(c||null)})},helpers_composeSignals=(e,t)=>{let r,n=new AbortController,onabort=function(e){if(!r){r=!0,unsubscribe();let t=e instanceof Error?e:this.reason;n.abort(t instanceof AxiosError?t:new CanceledError(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{onabort(new AxiosError(`timeout ${t} of ms exceeded`,AxiosError.ETIMEDOUT))},t),unsubscribe=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",onabort):e.unsubscribe(onabort))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",onabort));let{signal:o}=n;return o.unsubscribe=unsubscribe,[o,()=>{i&&clearTimeout(i),i=null}]};let streamChunk=function*(e,t){let r,n=e.byteLength;if(!t||n{let o;let s=readBytes(e,t,i),u=0,_onFinish=e=>{!o&&(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await s.next();if(t){_onFinish(),e.close();return}let i=n.byteLength;if(r){let e=u+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw _onFinish(e),e}},cancel:e=>(_onFinish(e),s.return())},{highWaterMark:2})},eh="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ed=eh&&"function"==typeof ReadableStream,ep=eh&&("function"==typeof TextEncoder?(f=new TextEncoder,e=>f.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),test=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ey=ed&&test(()=>{let e=!1,t=new Request(ei.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ev=ed&&test(()=>K.isReadableStream(new Response("").body)),em={stream:ev&&(e=>e.body)};eh&&(l=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{em[e]||(em[e]=K.isFunction(l[e])?t=>t[e]():(t,r)=>{throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,r)})}));let getBodyLength=async e=>null==e?0:K.isBlob(e)?e.size:K.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e))?(await ep(e)).byteLength:void 0,resolveBodyLength=async(e,t)=>{let r=K.toFiniteNumber(e.getContentLength());return null==r?getBodyLength(t):r};var eg=eh&&(async e=>{let t,r,n,{url:i,method:o,data:s,signal:u,cancelToken:a,timeout:c,onDownloadProgress:f,onUploadProgress:l,responseType:h,headers:d,withCredentials:p="same-origin",fetchOptions:y}=resolveConfig(e);h=h?(h+"").toLowerCase():"text";let[v,m]=u||a||c?helpers_composeSignals([u,a],c):[],onFinish=()=>{t||setTimeout(()=>{v&&v.unsubscribe()}),t=!0};try{if(l&&ey&&"get"!==o&&"head"!==o&&0!==(n=await resolveBodyLength(d,s))){let e,t=new Request(i,{method:"POST",body:s,duplex:"half"});if(K.isFormData(s)&&(e=t.headers.get("content-type"))&&d.setContentType(e),t.body){let[e,r]=progressEventDecorator(n,progressEventReducer(asyncDecorator(l)));s=trackStream(t.body,65536,e,r,ep)}}K.isString(p)||(p=p?"include":"omit"),r=new Request(i,{...y,signal:v,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:s,duplex:"half",credentials:p});let t=await fetch(r),u=ev&&("stream"===h||"response"===h);if(ev&&(f||u)){let e={};["status","statusText","headers"].forEach(r=>{e[r]=t[r]});let r=K.toFiniteNumber(t.headers.get("content-length")),[n,i]=f&&progressEventDecorator(r,progressEventReducer(asyncDecorator(f),!0))||[];t=new Response(trackStream(t.body,65536,n,()=>{i&&i(),u&&onFinish()},ep),e)}h=h||"text";let a=await em[K.findKey(em,h)||"text"](t,e);return u||onFinish(),m&&m(),await new Promise((n,i)=>{settle(n,i,{data:a,headers:AxiosHeaders.from(t.headers),status:t.status,statusText:t.statusText,config:e,request:r})})}catch(t){if(onFinish(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,r),{cause:t.cause||t});throw AxiosError.from(t,t&&t.code,e,r)}});let eb={http:null,xhr:el,fetch:eg};K.forEach(eb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let renderReason=e=>`- ${e}`,isResolvedHandle=e=>K.isFunction(e)||null===e||!1===e;var eE={getAdapter:e=>{let t,r;e=K.isArray(e)?e:[e];let{length:n}=e,i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=n?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:eb};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=eE.getAdapter(e.adapter||eo.adapter);return t(e).then(function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders.from(t.headers),t},function(t){return!isCancel(t)&&(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders.from(t.response.headers))),Promise.reject(t)})}let eO="1.7.3",ew={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ew[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let eC={};ew.transitional=function(e,t,r){function formatMessage(e,t){return"[Axios v"+eO+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new AxiosError(formatMessage(n," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!eC[n]&&(eC[n]=!0,console.warn(formatMessage(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}};var eA={assertOptions:function(e,t,r){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],s=t[o];if(s){let t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new AxiosError("option "+o+" must be "+r,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new AxiosError("Unknown option "+o,AxiosError.ERR_BAD_OPTION)}},validators:ew};let eR=eA.validators;let Axios=class Axios{constructor(e){this.defaults=e,this.interceptors={request:new J,response:new J}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);let{transitional:i,paramsSerializer:o,headers:s}=t;void 0!==i&&eA.assertOptions(i,{silentJSONParsing:eR.transitional(eR.boolean),forcedJSONParsing:eR.transitional(eR.boolean),clarifyTimeoutError:eR.transitional(eR.boolean)},!1),null!=o&&(K.isFunction(o)?t.paramsSerializer={serialize:o}:eA.assertOptions(o,{encode:eR.function,serialize:eR.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let u=s&&K.merge(s.common,s[t.method]);s&&K.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=AxiosHeaders.concat(u,s);let a=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});let f=[];this.interceptors.response.forEach(function(e){f.push(e.fulfilled,e.rejected)});let l=0;if(!c){let e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,f),n=e.length,r=Promise.resolve(t);l{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new CanceledError(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;let t=new CancelToken(function(t){e=t});return{token:t,cancel:e}}};let eS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eS).forEach(([e,t])=>{eS[t]=e});let eB=function createInstance(e){let t=new Axios(e),r=bind(Axios.prototype.request,t);return K.extend(r,Axios.prototype,t,{allOwnKeys:!0}),K.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance(mergeConfig(e,t))},r}(eo);eB.Axios=Axios,eB.CanceledError=CanceledError,eB.CancelToken=CancelToken,eB.isCancel=isCancel,eB.VERSION=eO,eB.toFormData=helpers_toFormData,eB.AxiosError=AxiosError,eB.Cancel=eB.CanceledError,eB.all=function(e){return Promise.all(e)},eB.spread=function(e){return function(t){return e.apply(null,t)}},eB.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},eB.mergeConfig=mergeConfig,eB.AxiosHeaders=AxiosHeaders,eB.formToJSON=e=>helpers_formDataToJSON(K.isHTMLForm(e)?new FormData(e):e),eB.getAdapter=eE.getAdapter,eB.HttpStatusCode=eS,eB.default=eB;var eT=eB},9891:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,o,s){try{var u=e[o](s),a=u.value}catch(e){r(e);return}u.done?t(a):Promise.resolve(a).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function _next(e){asyncGeneratorStep(o,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(o,n,i,_next,_throw,"throw",e)}_next(void 0)})}}r.d(t,{Z:function(){return _asyncToGenerator}})}}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/305-80ab836000a4f9a3.js b/frontend/webapp/dep-out/_next/static/chunks/305-80ab836000a4f9a3.js deleted file mode 100644 index 21b0acb99..000000000 --- a/frontend/webapp/dep-out/_next/static/chunks/305-80ab836000a4f9a3.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[305],{109:function(e,t,r){/** - * @license React - * use-sync-external-store-with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n=r(2265),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=n.useSyncExternalStore,c=n.useRef,i=n.useEffect,l=n.useMemo,s=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,f){var b=c(null);if(null===b.current){var S={hasValue:!1,value:null};b.current=S}else S=b.current;var y=u(e,(b=l(function(){function a(t){if(!c){if(c=!0,e=t,t=n(t),void 0!==f&&S.hasValue){var r=S.value;if(f(r,t))return u=r}return u=t}if(r=u,o(e,t))return r;var i=n(t);return void 0!==f&&f(r,i)?r:(e=t,u=i)}var e,u,c=!1,i=void 0===r?null:r;return[function(){return a(t())},null===i?void 0:function(){return a(i())}]},[t,r,n,f]))[0],b[1]);return i(function(){S.hasValue=!0,S.value=y},[y]),s(y),y}},9688:function(e,t,r){e.exports=r(109)},4667:function(e,t,r){r.d(t,{Z:function(){return _objectDestructuringEmpty}});function _objectDestructuringEmpty(e){if(null==e)throw TypeError("Cannot destructure undefined")}},1600:function(e,t,r){r.d(t,{Z:function(){return _objectWithoutProperties}});function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},941:function(e,t,r){r.d(t,{Z:function(){return _toConsumableArray}});var n=r(6015),o=r(909);function _toConsumableArray(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},3046:function(e,t,r){r.d(t,{I0:function(){return p},v9:function(){return s},zt:function(){return Provider_default}});var n=r(2265),o=r(9688),u=Symbol.for("react-redux-context"),c="undefined"!=typeof globalThis?globalThis:{},i=function(){if(!n.createContext)return{};let e=c[u]??(c[u]=new Map),t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}();function createReduxContextHook(e=i){return function(){let t=n.useContext(e);return t}}var l=createReduxContextHook(),useSyncExternalStoreWithSelector=()=>{throw Error("uSES not initialized!")},refEquality=(e,t)=>e===t,s=function(e=i){let t=e===i?l:createReduxContextHook(e),useSelector2=(e,r={})=>{let{equalityFn:o=refEquality,devModeChecks:u={}}="function"==typeof r?{equalityFn:r}:r,{store:c,subscription:i,getServerState:l,stabilityCheck:s,identityFunctionCheck:f}=t();n.useRef(!0);let b=n.useCallback({[e.name](t){let r=e(t);return r}}[e.name],[e,s,u.stabilityCheck]),S=useSyncExternalStoreWithSelector(i.addNestedSub,c.getState,l||c.getState,b,o);return n.useDebugValue(S),S};return Object.assign(useSelector2,{withTypes:()=>useSelector2}),useSelector2}();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var f={notify(){},get:()=>[]},b=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),S="undefined"!=typeof navigator&&"ReactNative"===navigator.product,y=b||S?n.useLayoutEffect:n.useEffect,Provider_default=function({store:e,context:t,children:r,serverState:o,stabilityCheck:u="once",identityFunctionCheck:c="once"}){let l=n.useMemo(()=>{let t=function(e,t){let r;let n=f,o=0,u=!1;function handleChangeWrapper(){c.onStateChange&&c.onStateChange()}function trySubscribe(){if(o++,!r){let o,u;r=t?t.addNestedSub(handleChangeWrapper):e.subscribe(handleChangeWrapper),o=null,u=null,n={clear(){o=null,u=null},notify(){(()=>{let e=o;for(;e;)e.callback(),e=e.next})()},get(){let e=[],t=o;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,r=u={callback:e,next:null,prev:u};return r.prev?r.prev.next=r:o=r,function(){t&&null!==o&&(t=!1,r.next?r.next.prev=r.prev:u=r.prev,r.prev?r.prev.next=r.next:o=r.next)}}}}}function tryUnsubscribe(){o--,r&&0===o&&(r(),r=void 0,n.clear(),n=f)}let c={addNestedSub:function(e){trySubscribe();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),tryUnsubscribe())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper,isSubscribed:function(){return u},trySubscribe:function(){u||(u=!0,trySubscribe())},tryUnsubscribe:function(){u&&(u=!1,tryUnsubscribe())},getListeners:()=>n};return c}(e);return{store:e,subscription:t,getServerState:o?()=>o:void 0,stabilityCheck:u,identityFunctionCheck:c}},[e,o,u,c]),s=n.useMemo(()=>e.getState(),[e]);return y(()=>{let{subscription:t}=l;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[l,s]),n.createElement((t||i).Provider,{value:l},r)};function createStoreHook(e=i){let t=e===i?l:createReduxContextHook(e),useStore2=()=>{let{store:e}=t();return e};return Object.assign(useStore2,{withTypes:()=>useStore2}),useStore2}var d=createStoreHook(),p=function(e=i){let t=e===i?d:createStoreHook(e),useDispatch2=()=>{let e=t();return e.dispatch};return Object.assign(useDispatch2,{withTypes:()=>useDispatch2}),useDispatch2}();useSyncExternalStoreWithSelector=o.useSyncExternalStoreWithSelector,n.useSyncExternalStore}}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/32-05f69fa51f26447b.js b/frontend/webapp/dep-out/_next/static/chunks/32-05f69fa51f26447b.js new file mode 100644 index 000000000..81ce4f3b5 --- /dev/null +++ b/frontend/webapp/dep-out/_next/static/chunks/32-05f69fa51f26447b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32],{3915:function(t,n,e){e.d(n,{om:function(){return u.om},aO:function(){return u.aO},KY:function(){return E.KY},rV:function(){return E.rV},bl:function(){return E.bl},Of:function(){return u.Of},VR:function(){return E.VR},Fp:function(){return S},Fs:function(){return O},IS:function(){return s},NK:function(){return u.NK},mD:function(){return u.mD},vb:function(){return E.vb},Z6:function(){return c},ye:function(){return u.ye},LV:function(){return getMainContainerLanguage}});var o,r,i,a,c={SETUP:"/setup",OVERVIEW:"/overview",SOURCES:"/sources",INSTRUMENTATION_RULES:"/instrumentation-rules",DESTINATIONS:"/destinations",ACTIONS:"/actions",NEW_DESTINATION:"/setup?state=destinations",MANAGE_DESTINATION:"/create-destination?dest=",UPDATE_DESTINATION:"edit-destination?dest=",CREATE_DESTINATION:"/select-destination",CREATE_SOURCE:"/select-sources",MANAGE_SOURCE:"/edit-source",CHOOSE_DESTINATION:"/choose-destination",CHOOSE_SOURCES:"/choose-sources",CHOOSE_ACTIONS:"/choose-action",EDIT_ACTION:"/edit-action"},s={title:"Odigos",icons:"https://d2q89wckrml3k4.cloudfront.net/logo.png"},u=e(385),E=e(7673),T=e(7022),N="https://d1n7d4xz7fr8b4.cloudfront.net/";(o=a||(a={})).JAVA="java",o.GO="go",o.JAVASCRIPT="javascript",o.PYTHON="python",o.DOTNET="dotnet",o.MYSQL="mysql",o.UNKNOWN="unknown",o.PROCESSING="processing",o.NO_CONTAINERS="no containers",o.NO_RUNNING_PODS="no running pods",o.NGINX="nginx";var O=(r={},(0,T.Z)(r,a.JAVA,"".concat(N,"java.svg")),(0,T.Z)(r,a.GO,"".concat(N,"go.svg")),(0,T.Z)(r,a.JAVASCRIPT,"".concat(N,"nodejs.svg")),(0,T.Z)(r,a.PYTHON,"".concat(N,"python.svg")),(0,T.Z)(r,a.DOTNET,"".concat(N,"dotnet.svg")),(0,T.Z)(r,a.MYSQL,"".concat(N,"mysql.svg")),(0,T.Z)(r,a.UNKNOWN,"".concat(N,"default.svg")),(0,T.Z)(r,a.PROCESSING,"".concat(N,"default.svg")),(0,T.Z)(r,a.NO_CONTAINERS,"".concat(N,"default.svg")),(0,T.Z)(r,a.NO_RUNNING_PODS,"".concat(N,"default.svg")),(0,T.Z)(r,a.NGINX,"".concat(N,"nginx.svg")),r),S=(i={},(0,T.Z)(i,a.JAVA,"#B07219"),(0,T.Z)(i,a.GO,"#00ADD8"),(0,T.Z)(i,a.JAVASCRIPT,"#F7DF1E"),(0,T.Z)(i,a.PYTHON,"#306998"),(0,T.Z)(i,a.DOTNET,"#512BD4"),(0,T.Z)(i,a.MYSQL,"#00758F"),(0,T.Z)(i,a.UNKNOWN,"#8b92a6"),(0,T.Z)(i,a.PROCESSING,"#3367d9"),(0,T.Z)(i,a.NO_CONTAINERS,"#111111"),(0,T.Z)(i,a.NO_RUNNING_PODS,"#666666"),(0,T.Z)(i,a.NGINX,"#009237"),i),getMainContainerLanguage=function(t){var n=null==t?void 0:t.instrumented_application_details;if(!n)return(null==t?void 0:t.number_of_running_instances)>0?a.PROCESSING:a.NO_RUNNING_PODS;var e=n.languages;if(!e)return a.PROCESSING;var o=e.filter(function(t){return"ignored"!==t.language});if(0===o.length)return a.NO_CONTAINERS;var r=o.find(function(t){return"unknown"!==t.language});return r?r.language:a.UNKNOWN}},385:function(t,n,e){e.d(n,{Ar:function(){return r},NK:function(){return u},Of:function(){return s},aO:function(){return c},mD:function(){return i},om:function(){return a},ye:function(){return o}});var o={STEPS:{CHOOSE_SOURCE:"Choose Source",CHOOSE_DESTINATION:"Choose Destination",CREATE_CONNECTION:"Create Connection",STATUS:{ACTIVE:"active",DISABLED:"disabled",DONE:"done"},ID:{CHOOSE_SOURCE:"choose-source",CHOOSE_DESTINATION:"choose-destination",CREATE_CONNECTION:"create-connection"}},HEADER:{CHOOSE_SOURCE_TITLE:"Select applications to connect",CHOOSE_DESTINATION_TITLE:"Add new backend destination from the list"},MENU:{NAMESPACES:"Namespaces",SELECT_ALL:"Select All",FUTURE_APPLY:"Apply for any future apps",TOOLTIP:"Automatically connect any future apps in this namespace",SEARCH_PLACEHOLDER:"Search",TYPE:"Type",MONITORING:"I want to monitor"},NEXT:"Next",BACK:"Back",ALL:"All",CLEAR_SELECTION:"Clear Selection",APPLICATIONS:"Applications",RUNNING_INSTANCES:"Running Instances",SELECTED:"Selected",SOURCE_SELECTED:"Source selected",NONE_SOURCE_SELECTED:"No source selected",MANAGED:"Managed",CREATE_CONNECTION:"Create Connection",UPDATE_CONNECTION:"Update Connection",CONNECTION_MONITORS:"This connection will monitor:",MONITORS:{LOGS:"Logs",METRICS:"Metrics",TRACES:"Traces"},DESTINATION_NAME:"Destination Name",CREATE_DESTINATION:"Create Destination",UPDATE_DESTINATION:"Update Destination",QUICK_HELP:"Quick Help",ERROR:"Something went wrong"},r={INPUT:"input",DROPDOWN:"dropdown",MULTI_INPUT:"multiInput",KEY_VALUE_PAIR:"keyValuePairs",TEXTAREA:"textarea"},i={ODIGOS:"Odigos",MENU:{OVERVIEW:"Overview",SOURCES:"Sources",DESTINATIONS:"Destinations",ACTIONS:"Actions",INSTRUMENTATION_RULES:"Instrumentation Rules"},SEARCH_SOURCE:"Search Source",ADD_NEW_SOURCE:"Add New Source",ADD_NEW_DESTINATION:"Add New Destination",ADD_NEW_ACTION:"Add New Action",EMPTY_DESTINATION:"No destinations found",EMPTY_ACTION:"No actions found",EMPTY_SOURCE:"No sources found in this namespace",DESTINATION_UPDATE_SUCCESS:"Destination updated successfully",DESTINATION_CREATED_SUCCESS:"Destination created successfully",DESTINATION_DELETED_SUCCESS:"Destination deleted successfully",SOURCE_UPDATE_SUCCESS:"Source updated successfully",SOURCE_CREATED_SUCCESS:"Source created successfully",SOURCE_DELETED_SUCCESS:"Source deleted successfully",ACTION_UPDATE_SUCCESS:"Action updated successfully",ACTION_UPDATE_ERROR:"Failed to update action",MANAGE:"Manage",DELETE:"Delete",DELETE_DESTINATION:"Delete Destination",DELETE_SOURCE:"Delete Source",DELETE_ACTION:"Delete Action",SOURCE_DANGER_ZONE_TITLE:"Delete this source",ACTION_DANGER_ZONE_TITLE:"Delete this action",SOURCE_DANGER_ZONE_SUBTITLE:"Uninstrument this source, and delete all odigos associated data. You can always re-instrument this source later with odigos.",ACTION_DANGER_ZONE_SUBTITLE:"This action cannot be undone. This will permanently delete the action and all associated data.",DELETE_MODAL_TITLE:"Delete this destination",DELETE_MODAL_SUBTITLE:"This action cannot be undone. This will permanently delete the destination and all associated data.",DELETE_BUTTON:"I want to delete this destination",CONFIRM_SOURCE_DELETE:"I want to delete this source",CONFIRM_DELETE_ACTION:"I want to delete this action",CONNECT:"Connect",REPORTED_NAME:"Override service.name",CREATE_ACTION:"Create Action",EDIT_ACTION:"Edit Action",ACTION_DESCRIPTION:"Actions are a way to modify the OpenTelemetry data recorded by Odigos Sources, before it is exported to your Odigos Destinations.",CREATE_INSTRUMENTATION_RULE:"Create Instrumentation Rule",EDIT_INSTRUMENTATION_RULE:"Edit Instrumentation Rule",INSTRUMENTATION_RULE_DESCRIPTION:"Instrumentation Rules control how telemetry is recorded from your application."},a={SAVE:"Save",CONTACT_US:"Contact Us",LEARN_MORE:"Learn more",LINK_TO_DOCS:"Link to docs",DISABLE:"Disable",RUNNING:"Running",APPLIED:"Applied",ENABLE:"Enable",DELETE_ALL:"Delete All"},c={MONITORS_TITLE:"Monitors",ACTION_NAME:"Action Name",ACTION_NOTE:"Note",NOTE_PLACEHOLDER:"Add a note to describe the use case of this action",CREATE_ACTION:"Create Action",UPDATE_ACTION:"Update Action",AddClusterInfo:{TITLE:"Add Cluster Info",DESCRIPTION:"The “Add Cluster Info” Odigos Action can be used to add resource attributes to telemetry signals originated from the k8s cluster where the Odigos is running."},DeleteAttribute:{TITLE:"Delete Attribute",DESCRIPTION:"The “Delete Attribute” Odigos Action can be used to delete attributes from telemetry signals originated from the k8s cluster where the Odigos is running."},RenameAttribute:{TITLE:"Rename Attribute",DESCRIPTION:"The “Rename Attribute” Odigos Action can be used to rename attributes from telemetry signals originated from the k8s cluster where the Odigos is running."},ErrorSampler:{TITLE:"Error Sampler",DESCRIPTION:"The “Error Sampler” Odigos Action is a Global Action that supports error sampling by filtering out non-error traces."},ProbabilisticSampler:{TITLE:"Probabilistic Sampler",DESCRIPTION:"The “Probabilistic Sampler” Odigos Action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},LatencySampler:{TITLE:"Latency Sampler",DESCRIPTION:"The “Latency Sampler” Odigos Action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},PiiMasking:{TITLE:"PII Masking",DESCRIPTION:"The “PII Masking” Odigos Action is an Endpoint Action that masks PII (Personally Identifiable Information) attributes from telemetry signals."},SEARCH_ACTION:"Search Action"},s={"payload-collection":{TITLE:"Payload Collection",DESCRIPTION:"Collect span attributes containing payload data to traces."}},u={LOGS:"Logs",METRICS:"Metrics",TRACES:"Traces"}},7673:function(t,n,e){e.d(n,{KY:function(){return c},VR:function(){return u},VZ:function(){return a},bl:function(){return r},rV:function(){return s},vb:function(){return i}});var o="/api",r={EVENTS:"".concat(o,"/events"),CONFIG:"".concat(o,"/config"),NAMESPACES:"".concat(o,"/namespaces"),APPLICATIONS:"".concat(o,"/applications"),DESTINATION_TYPE:"".concat(o,"/destination-types"),DESTINATIONS:"".concat(o,"/destinations"),CHECK_CONNECTION:"".concat(o,"/destinations/testConnection"),SOURCES:"".concat(o,"/sources"),SET_ACTION:function(t){return"".concat(o,"/actions/types/").concat(t)},PUT_ACTION:function(t,n){return"".concat(o,"/actions/types/").concat(t,"/").concat(n)},ACTIONS:"".concat(o,"/actions"),DELETE_ACTION:function(t,n){return"".concat(o,"/actions/types/").concat(t,"/").concat(n)},OVERVIEW_METRICS:"".concat(o,"/metrics/overview"),INSTRUMENTATION_RULES:"".concat(o,"/instrumentation-rules"),INSTRUMENTATION_RULE:function(t){return"".concat(o,"/instrumentation-rules/").concat(t)},DESCRIBE_ODIGOS:"".concat(o,"/describe/odigos"),DESCRIBE_SOURCE:function(t,n,e){return"".concat(o,"/describe/source/namespace/").concat(t,"/kind/").concat(n,"/name/").concat(e)}},i={API_CONFIG:"apiConfig",API_NAMESPACES:"apiNamespaces",API_APPLICATIONS:"apiApplications",API_DESTINATIONS:"apiDestinations",API_SOURCES:"apiSources",API_DESTINATION_TYPE:"apiDestinationType",API_DESTINATION_TYPES:"apiDestinationTypes",API_ACTIONS:"apiActions"},a="https://odigos.slack.com/join/shared_invite/zt-1d7egaz29-Rwv2T8kyzc3mWP8qKobz~A#/shared-invite/email",c="https://docs.odigos.io/pipeline/actions/introduction",s="https://docs.odigos.io/pipeline/actions",u="https://docs.odigos.io/pipeline/rules/overview"},9064:function(t,n,e){e.d(n,{D6:function(){return safeJsonParse},RB:function(){return stringifyNonStringValues},Sy:function(){return timeAgo},fm:function(){return capitalizeFirstLetter},gs:function(){return cleanObjectEmptyStringsValues},p6:function(){return formatDate}});var o=e(8660);function capitalizeFirstLetter(t){return t.charAt(0).toUpperCase()+t.slice(1)}function safeJsonParse(t,n){if(!t)return n;try{return JSON.parse(t)}catch(t){return console.error("Error parsing JSON string:",t),n}}function cleanObjectEmptyStringsValues(t){var cleanArray=function(t){return t.filter(function(t){return"object"==typeof t&&null!==t?""!==t.key&&""!==t.value:""!==t})},cleanObject=function cleanObject(t){return Object.fromEntries(Object.entries(t).filter(function(t){var n=(0,o.Z)(t,2),e=n[0],r=n[1];return""!==e&&""!==r}).map(function(t){var n=(0,o.Z)(t,2),e=n[0],r=n[1];return Array.isArray(r)?[e,cleanArray(r)]:"object"==typeof r&&null!==r?[e,cleanObject(r)]:[e,r]}))};return Object.entries(t).reduce(function(t,n){var e=(0,o.Z)(n,2),r=e[0],i=e[1];try{var a=JSON.parse(i);Array.isArray(a)?t[r]=JSON.stringify(cleanArray(a)):"object"==typeof a&&null!==a?t[r]=JSON.stringify(cleanObject(a)):t[r]=i}catch(n){"object"==typeof i&&null!==i?Array.isArray(i)?t[r]=JSON.stringify(cleanArray(i)):t[r]=JSON.stringify(cleanObject(i)):t[r]=i}return t},{})}function stringifyNonStringValues(t){return Object.entries(t).reduce(function(t,n){var e=(0,o.Z)(n,2),r=e[0],i=e[1];return"string"==typeof i?t[r]=i:t[r]=JSON.stringify(i),t},{})}var timeAgo=function(t){var n=new Date,e=new Date(t);if(isNaN(e.getTime()))return"";var o=Math.floor((n.getTime()-e.getTime())/6e4),r=Math.floor(o/60);return o<60?0===o?"Just now":1===o?"1 minute ago":"".concat(o," minutes ago"):r<24?"".concat(r," hours ago"):"".concat(Math.floor(r/24)," days ago")};function formatDate(t){var n=new Date(t),e=n.getUTCFullYear(),o=n.getUTCMonth(),r=n.getUTCDate(),i=n.getUTCHours(),a=n.getUTCMinutes(),c=n.getUTCSeconds();return"".concat(["January","February","March","April","May","June","July","August","September","October","November","December"][o]," ").concat(r,", ").concat(e," ").concat(i.toString().padStart(2,"0"),":").concat(a.toString().padStart(2,"0"),":").concat(c.toString().padStart(2,"0"))}},1032:function(t,n,e){e.d(n,{om:function(){return o.om},aO:function(){return o.aO},KY:function(){return o.KY},rV:function(){return o.rV},bl:function(){return o.bl},Of:function(){return o.Of},VR:function(){return o.VR},Fp:function(){return o.Fp},Fs:function(){return o.Fs},NK:function(){return o.NK},mD:function(){return o.mD},vb:function(){return o.vb},Z6:function(){return o.Z6},ye:function(){return o.ye},gs:function(){return r.gs},p6:function(){return r.p6},LV:function(){return o.LV},RB:function(){return r.RB},Sy:function(){return r.Sy}});var o=e(3915),r=e(9064)}}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/32-708c0ff33a8c4e4f.js b/frontend/webapp/dep-out/_next/static/chunks/32-708c0ff33a8c4e4f.js deleted file mode 100644 index fa93af511..000000000 --- a/frontend/webapp/dep-out/_next/static/chunks/32-708c0ff33a8c4e4f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32],{3915:function(t,n,e){e.d(n,{om:function(){return E.om},aO:function(){return E.aO},KY:function(){return T.KY},rV:function(){return T.rV},bl:function(){return T.bl},kh:function(){return s},Of:function(){return E.Of},VR:function(){return T.VR},Fp:function(){return I},Fs:function(){return S},IS:function(){return u},NK:function(){return E.NK},mD:function(){return E.mD},vb:function(){return T.vb},Z6:function(){return c},ye:function(){return E.ye},LV:function(){return getMainContainerLanguage}});var o,r,i,a,c={SETUP:"/setup",OVERVIEW:"/overview",SOURCES:"/sources",INSTRUMENTATION_RULES:"/instrumentation-rules",DESTINATIONS:"/destinations",ACTIONS:"/actions",NEW_DESTINATION:"/setup?state=destinations",MANAGE_DESTINATION:"/create-destination?dest=",UPDATE_DESTINATION:"edit-destination?dest=",CREATE_DESTINATION:"/select-destination",CREATE_SOURCE:"/select-sources",MANAGE_SOURCE:"/edit-source",CHOOSE_DESTINATION:"/choose-destination",CHOOSE_SOURCES:"/choose-sources",CHOOSE_ACTIONS:"/choose-action",EDIT_ACTION:"/edit-action"},s={NEW:"NEW",APPS_SELECTED:"APPS_SELECTED",FINISHED:"FINISHED"},u={title:"Odigos",icons:"https://d2q89wckrml3k4.cloudfront.net/logo.png"},E=e(385),T=e(7673),N=e(7022),O="https://d1n7d4xz7fr8b4.cloudfront.net/";(o=a||(a={})).JAVA="java",o.GO="go",o.JAVASCRIPT="javascript",o.PYTHON="python",o.DOTNET="dotnet",o.MYSQL="mysql",o.UNKNOWN="unknown",o.PROCESSING="processing",o.NO_CONTAINERS="no containers",o.NO_RUNNING_PODS="no running pods",o.NGINX="nginx";var S=(r={},(0,N.Z)(r,a.JAVA,"".concat(O,"java.svg")),(0,N.Z)(r,a.GO,"".concat(O,"go.svg")),(0,N.Z)(r,a.JAVASCRIPT,"".concat(O,"nodejs.svg")),(0,N.Z)(r,a.PYTHON,"".concat(O,"python.svg")),(0,N.Z)(r,a.DOTNET,"".concat(O,"dotnet.svg")),(0,N.Z)(r,a.MYSQL,"".concat(O,"mysql.svg")),(0,N.Z)(r,a.UNKNOWN,"".concat(O,"default.svg")),(0,N.Z)(r,a.PROCESSING,"".concat(O,"default.svg")),(0,N.Z)(r,a.NO_CONTAINERS,"".concat(O,"default.svg")),(0,N.Z)(r,a.NO_RUNNING_PODS,"".concat(O,"default.svg")),(0,N.Z)(r,a.NGINX,"".concat(O,"nginx.svg")),r),I=(i={},(0,N.Z)(i,a.JAVA,"#B07219"),(0,N.Z)(i,a.GO,"#00ADD8"),(0,N.Z)(i,a.JAVASCRIPT,"#F7DF1E"),(0,N.Z)(i,a.PYTHON,"#306998"),(0,N.Z)(i,a.DOTNET,"#512BD4"),(0,N.Z)(i,a.MYSQL,"#00758F"),(0,N.Z)(i,a.UNKNOWN,"#8b92a6"),(0,N.Z)(i,a.PROCESSING,"#3367d9"),(0,N.Z)(i,a.NO_CONTAINERS,"#111111"),(0,N.Z)(i,a.NO_RUNNING_PODS,"#666666"),(0,N.Z)(i,a.NGINX,"#009237"),i),getMainContainerLanguage=function(t){var n=null==t?void 0:t.instrumented_application_details;if(!n)return(null==t?void 0:t.number_of_running_instances)>0?a.PROCESSING:a.NO_RUNNING_PODS;var e=n.languages;if(!e)return a.PROCESSING;var o=e.filter(function(t){return"ignored"!==t.language});if(0===o.length)return a.NO_CONTAINERS;var r=o.find(function(t){return"unknown"!==t.language});return r?r.language:a.UNKNOWN}},385:function(t,n,e){e.d(n,{Ar:function(){return r},NK:function(){return u},Of:function(){return s},aO:function(){return c},mD:function(){return i},om:function(){return a},ye:function(){return o}});var o={STEPS:{CHOOSE_SOURCE:"Choose Source",CHOOSE_DESTINATION:"Choose Destination",CREATE_CONNECTION:"Create Connection",STATUS:{ACTIVE:"active",DISABLED:"disabled",DONE:"done"},ID:{CHOOSE_SOURCE:"choose-source",CHOOSE_DESTINATION:"choose-destination",CREATE_CONNECTION:"create-connection"}},HEADER:{CHOOSE_SOURCE_TITLE:"Select applications to connect",CHOOSE_DESTINATION_TITLE:"Add new backend destination from the list"},MENU:{NAMESPACES:"Namespaces",SELECT_ALL:"Select All",FUTURE_APPLY:"Apply for any future apps",TOOLTIP:"Automatically connect any future apps in this namespace",SEARCH_PLACEHOLDER:"Search",TYPE:"Type",MONITORING:"I want to monitor"},NEXT:"Next",BACK:"Back",ALL:"All",CLEAR_SELECTION:"Clear Selection",APPLICATIONS:"Applications",RUNNING_INSTANCES:"Running Instances",SELECTED:"Selected",SOURCE_SELECTED:"Source selected",NONE_SOURCE_SELECTED:"No source selected",MANAGED:"Managed",CREATE_CONNECTION:"Create Connection",UPDATE_CONNECTION:"Update Connection",CONNECTION_MONITORS:"This connection will monitor:",MONITORS:{LOGS:"Logs",METRICS:"Metrics",TRACES:"Traces"},DESTINATION_NAME:"Destination Name",CREATE_DESTINATION:"Create Destination",UPDATE_DESTINATION:"Update Destination",QUICK_HELP:"Quick Help",ERROR:"Something went wrong"},r={INPUT:"input",DROPDOWN:"dropdown",MULTI_INPUT:"multiInput",KEY_VALUE_PAIR:"keyValuePairs",TEXTAREA:"textarea"},i={ODIGOS:"Odigos",MENU:{OVERVIEW:"Overview",SOURCES:"Sources",DESTINATIONS:"Destinations",ACTIONS:"Actions",INSTRUMENTATION_RULES:"Instrumentation Rules"},SEARCH_SOURCE:"Search Source",ADD_NEW_SOURCE:"Add New Source",ADD_NEW_DESTINATION:"Add New Destination",ADD_NEW_ACTION:"Add New Action",EMPTY_DESTINATION:"No destinations found",EMPTY_ACTION:"No actions found",EMPTY_SOURCE:"No sources found in this namespace",DESTINATION_UPDATE_SUCCESS:"Destination updated successfully",DESTINATION_CREATED_SUCCESS:"Destination created successfully",DESTINATION_DELETED_SUCCESS:"Destination deleted successfully",SOURCE_UPDATE_SUCCESS:"Source updated successfully",SOURCE_CREATED_SUCCESS:"Source created successfully",SOURCE_DELETED_SUCCESS:"Source deleted successfully",ACTION_UPDATE_SUCCESS:"Action updated successfully",ACTION_UPDATE_ERROR:"Failed to update action",MANAGE:"Manage",DELETE:"Delete",DELETE_DESTINATION:"Delete Destination",DELETE_SOURCE:"Delete Source",DELETE_ACTION:"Delete Action",SOURCE_DANGER_ZONE_TITLE:"Delete this source",ACTION_DANGER_ZONE_TITLE:"Delete this action",SOURCE_DANGER_ZONE_SUBTITLE:"Uninstrument this source, and delete all odigos associated data. You can always re-instrument this source later with odigos.",ACTION_DANGER_ZONE_SUBTITLE:"This action cannot be undone. This will permanently delete the action and all associated data.",DELETE_MODAL_TITLE:"Delete this destination",DELETE_MODAL_SUBTITLE:"This action cannot be undone. This will permanently delete the destination and all associated data.",DELETE_BUTTON:"I want to delete this destination",CONFIRM_SOURCE_DELETE:"I want to delete this source",CONFIRM_DELETE_ACTION:"I want to delete this action",CONNECT:"Connect",REPORTED_NAME:"Override service.name",CREATE_ACTION:"Create Action",EDIT_ACTION:"Edit Action",ACTION_DESCRIPTION:"Actions are a way to modify the OpenTelemetry data recorded by Odigos Sources, before it is exported to your Odigos Destinations.",CREATE_INSTRUMENTATION_RULE:"Create Instrumentation Rule",EDIT_INSTRUMENTATION_RULE:"Edit Instrumentation Rule",INSTRUMENTATION_RULE_DESCRIPTION:"Instrumentation Rules control how telemetry is recorded from your application."},a={SAVE:"Save",CONTACT_US:"Contact Us",LEARN_MORE:"Learn more",LINK_TO_DOCS:"Link to docs",DISABLE:"Disable",RUNNING:"Running",APPLIED:"Applied",ENABLE:"Enable",DELETE_ALL:"Delete All"},c={MONITORS_TITLE:"Monitors",ACTION_NAME:"Action Name",ACTION_NOTE:"Note",NOTE_PLACEHOLDER:"Add a note to describe the use case of this action",CREATE_ACTION:"Create Action",UPDATE_ACTION:"Update Action",AddClusterInfo:{TITLE:"Add Cluster Info",DESCRIPTION:"The “Add Cluster Info” Odigos Action can be used to add resource attributes to telemetry signals originated from the k8s cluster where the Odigos is running."},DeleteAttribute:{TITLE:"Delete Attribute",DESCRIPTION:"The “Delete Attribute” Odigos Action can be used to delete attributes from telemetry signals originated from the k8s cluster where the Odigos is running."},RenameAttribute:{TITLE:"Rename Attribute",DESCRIPTION:"The “Rename Attribute” Odigos Action can be used to rename attributes from telemetry signals originated from the k8s cluster where the Odigos is running."},ErrorSampler:{TITLE:"Error Sampler",DESCRIPTION:"The “Error Sampler” Odigos Action is a Global Action that supports error sampling by filtering out non-error traces."},ProbabilisticSampler:{TITLE:"Probabilistic Sampler",DESCRIPTION:"The “Probabilistic Sampler” Odigos Action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},LatencySampler:{TITLE:"Latency Sampler",DESCRIPTION:"The “Latency Sampler” Odigos Action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},PiiMasking:{TITLE:"PII Masking",DESCRIPTION:"The “PII Masking” Odigos Action is an Endpoint Action that masks PII (Personally Identifiable Information) attributes from telemetry signals."},SEARCH_ACTION:"Search Action"},s={"payload-collection":{TITLE:"Payload Collection",DESCRIPTION:"Collect span attributes containing payload data to traces."}},u={LOGS:"Logs",METRICS:"Metrics",TRACES:"Traces"}},7673:function(t,n,e){e.d(n,{KY:function(){return c},VR:function(){return u},VZ:function(){return a},bl:function(){return r},rV:function(){return s},vb:function(){return i}});var o="/api",r={EVENTS:"".concat(o,"/events"),CONFIG:"".concat(o,"/config"),NAMESPACES:"".concat(o,"/namespaces"),APPLICATIONS:"".concat(o,"/applications"),DESTINATION_TYPE:"".concat(o,"/destination-types"),DESTINATIONS:"".concat(o,"/destinations"),CHECK_CONNECTION:"".concat(o,"/destinations/testConnection"),SOURCES:"".concat(o,"/sources"),SET_ACTION:function(t){return"".concat(o,"/actions/types/").concat(t)},PUT_ACTION:function(t,n){return"".concat(o,"/actions/types/").concat(t,"/").concat(n)},ACTIONS:"".concat(o,"/actions"),DELETE_ACTION:function(t,n){return"".concat(o,"/actions/types/").concat(t,"/").concat(n)},OVERVIEW_METRICS:"".concat(o,"/metrics/overview"),INSTRUMENTATION_RULES:"".concat(o,"/instrumentation-rules"),INSTRUMENTATION_RULE:function(t){return"".concat(o,"/instrumentation-rules/").concat(t)},DESCRIBE_ODIGOS:"".concat(o,"/describe/odigos"),DESCRIBE_SOURCE:function(t,n,e){return"".concat(o,"/describe/source/namespace/").concat(t,"/kind/").concat(n,"/name/").concat(e)}},i={API_CONFIG:"apiConfig",API_NAMESPACES:"apiNamespaces",API_APPLICATIONS:"apiApplications",API_DESTINATIONS:"apiDestinations",API_SOURCES:"apiSources",API_DESTINATION_TYPE:"apiDestinationType",API_DESTINATION_TYPES:"apiDestinationTypes",API_ACTIONS:"apiActions"},a="https://odigos.slack.com/join/shared_invite/zt-1d7egaz29-Rwv2T8kyzc3mWP8qKobz~A#/shared-invite/email",c="https://docs.odigos.io/pipeline/actions/introduction",s="https://docs.odigos.io/pipeline/actions",u="https://docs.odigos.io/pipeline/rules/overview"},9064:function(t,n,e){e.d(n,{D6:function(){return safeJsonParse},RB:function(){return stringifyNonStringValues},Sy:function(){return timeAgo},fm:function(){return capitalizeFirstLetter},gs:function(){return cleanObjectEmptyStringsValues},p6:function(){return formatDate}});var o=e(8660);function capitalizeFirstLetter(t){return t.charAt(0).toUpperCase()+t.slice(1)}function safeJsonParse(t,n){if(!t)return n;try{return JSON.parse(t)}catch(t){return console.error("Error parsing JSON string:",t),n}}function cleanObjectEmptyStringsValues(t){var cleanArray=function(t){return t.filter(function(t){return"object"==typeof t&&null!==t?""!==t.key&&""!==t.value:""!==t})},cleanObject=function cleanObject(t){return Object.fromEntries(Object.entries(t).filter(function(t){var n=(0,o.Z)(t,2),e=n[0],r=n[1];return""!==e&&""!==r}).map(function(t){var n=(0,o.Z)(t,2),e=n[0],r=n[1];return Array.isArray(r)?[e,cleanArray(r)]:"object"==typeof r&&null!==r?[e,cleanObject(r)]:[e,r]}))};return Object.entries(t).reduce(function(t,n){var e=(0,o.Z)(n,2),r=e[0],i=e[1];try{var a=JSON.parse(i);Array.isArray(a)?t[r]=JSON.stringify(cleanArray(a)):"object"==typeof a&&null!==a?t[r]=JSON.stringify(cleanObject(a)):t[r]=i}catch(n){"object"==typeof i&&null!==i?Array.isArray(i)?t[r]=JSON.stringify(cleanArray(i)):t[r]=JSON.stringify(cleanObject(i)):t[r]=i}return t},{})}function stringifyNonStringValues(t){return Object.entries(t).reduce(function(t,n){var e=(0,o.Z)(n,2),r=e[0],i=e[1];return"string"==typeof i?t[r]=i:t[r]=JSON.stringify(i),t},{})}var timeAgo=function(t){var n=new Date,e=new Date(t);if(isNaN(e.getTime()))return"";var o=Math.floor((n.getTime()-e.getTime())/6e4),r=Math.floor(o/60);return o<60?0===o?"Just now":1===o?"1 minute ago":"".concat(o," minutes ago"):r<24?"".concat(r," hours ago"):"".concat(Math.floor(r/24)," days ago")};function formatDate(t){var n=new Date(t),e=n.getUTCFullYear(),o=n.getUTCMonth(),r=n.getUTCDate(),i=n.getUTCHours(),a=n.getUTCMinutes(),c=n.getUTCSeconds();return"".concat(["January","February","March","April","May","June","July","August","September","October","November","December"][o]," ").concat(r,", ").concat(e," ").concat(i.toString().padStart(2,"0"),":").concat(a.toString().padStart(2,"0"),":").concat(c.toString().padStart(2,"0"))}},1032:function(t,n,e){e.d(n,{om:function(){return o.om},aO:function(){return o.aO},KY:function(){return o.KY},rV:function(){return o.rV},bl:function(){return o.bl},kh:function(){return o.kh},Of:function(){return o.Of},VR:function(){return o.VR},Fp:function(){return o.Fp},Fs:function(){return o.Fs},NK:function(){return o.NK},mD:function(){return o.mD},vb:function(){return o.vb},Z6:function(){return o.Z6},ye:function(){return o.ye},gs:function(){return r.gs},p6:function(){return r.p6},LV:function(){return o.LV},RB:function(){return r.RB},Sy:function(){return r.Sy}});var o=e(3915),r=e(9064)}}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/374-2ba1f41af5190f4d.js b/frontend/webapp/dep-out/_next/static/chunks/374-2ba1f41af5190f4d.js new file mode 100644 index 000000000..c3b47f02c --- /dev/null +++ b/frontend/webapp/dep-out/_next/static/chunks/374-2ba1f41af5190f4d.js @@ -0,0 +1,9 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[374],{109:function(e,t,r){/** + * @license React + * use-sync-external-store-with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var n=r(2265),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,c=n.useRef,u=n.useEffect,s=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,f){var d=c(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var y=i(e,(d=s(function(){function a(t){if(!c){if(c=!0,e=t,t=n(t),void 0!==f&&p.hasValue){var r=p.value;if(f(r,t))return i=r}return i=t}if(r=i,o(e,t))return r;var u=n(t);return void 0!==f&&f(r,u)?r:(e=t,i=u)}var e,i,c=!1,u=void 0===r?null:r;return[function(){return a(t())},null===u?void 0:function(){return a(u())}]},[t,r,n,f]))[0],d[1]);return u(function(){p.hasValue=!0,p.value=y},[y]),l(y),y}},9688:function(e,t,r){e.exports=r(109)},4683:function(e,t,r){r.d(t,{xC:function(){return configureStore},oM:function(){return w}});var n,o,i=r(4483);function createThunkMiddleware(e){return({dispatch:t,getState:r})=>n=>o=>"function"==typeof o?o(t,r,e):n(o)}var c=createThunkMiddleware(),u=Symbol.for("immer-nothing"),s=Symbol.for("immer-draftable"),l=Symbol.for("immer-state");function die(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var f=Object.getPrototypeOf;function immer_isDraft(e){return!!e&&!!e[l]}function isDraftable(e){return!!e&&(immer_isPlainObject(e)||Array.isArray(e)||!!e[s]||!!e.constructor?.[s]||isMap(e)||isSet(e))}var d=Object.prototype.constructor.toString();function immer_isPlainObject(e){if(!e||"object"!=typeof e)return!1;let t=f(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===d}function each(e,t){0===getArchtype(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function getArchtype(e){let t=e[l];return t?t.type_:Array.isArray(e)?1:isMap(e)?2:isSet(e)?3:0}function has(e,t){return 2===getArchtype(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function set(e,t,r){let n=getArchtype(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function isMap(e){return e instanceof Map}function isSet(e){return e instanceof Set}function latest(e){return e.copy_||e.base_}function shallowCopy(e,t){if(isMap(e))return new Map(e);if(isSet(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=immer_isPlainObject(e);if(!0!==t&&("class_only"!==t||r)){let t=f(e);if(null!==t&&r)return{...e};let n=Object.create(t);return Object.assign(n,e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[l];let r=Reflect.ownKeys(t);for(let n=0;n1&&(e.set=e.add=e.clear=e.delete=dontMutateFrozenCollections),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>freeze(t,!0))),e}function dontMutateFrozenCollections(){die(2)}function isFrozen(e){return Object.isFrozen(e)}var p={};function getPlugin(e){let t=p[e];return t||die(0,e),t}function usePatchesInScope(e,t){t&&(getPlugin("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function revokeScope(e){leaveScope(e),e.drafts_.forEach(revokeDraft),e.drafts_=null}function leaveScope(e){e===o&&(o=e.parent_)}function enterScope(e){return o={drafts_:[],parent_:o,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function revokeDraft(e){let t=e[l];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function processResult(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0],n=void 0!==e&&e!==r;return n?(r[l].modified_&&(revokeScope(t),die(4)),isDraftable(e)&&(e=finalize(t,e),t.parent_||maybeFreeze(t,e)),t.patches_&&getPlugin("Patches").generateReplacementPatches_(r[l].base_,e,t.patches_,t.inversePatches_)):e=finalize(t,r,[]),revokeScope(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==u?e:void 0}function finalize(e,t,r){if(isFrozen(t))return t;let n=t[l];if(!n)return each(t,(o,i)=>finalizeProperty(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return maybeFreeze(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,o=t,i=!1;3===n.type_&&(o=new Set(t),t.clear(),i=!0),each(o,(o,c)=>finalizeProperty(e,n,t,o,c,r,i)),maybeFreeze(e,t,!1),r&&e.patches_&&getPlugin("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function finalizeProperty(e,t,r,n,o,i,c){if(immer_isDraft(o)){let c=i&&t&&3!==t.type_&&!has(t.assigned_,n)?i.concat(n):void 0,u=finalize(e,o,c);if(set(r,n,u),!immer_isDraft(u))return;e.canAutoFreeze_=!1}else c&&r.add(o);if(isDraftable(o)&&!isFrozen(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;finalize(e,o),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&maybeFreeze(e,o)}}function maybeFreeze(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&freeze(t,r)}var y={get(e,t){if(t===l)return e;let r=latest(e);if(!has(r,t))return function(e,t,r){let n=getDescriptorFromProto(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);let n=r[t];return e.finalized_||!isDraftable(n)?n:n===peek(e.base_,t)?(prepareCopy(e),e.copy_[t]=createProxy(n,e)):n},has:(e,t)=>t in latest(e),ownKeys:e=>Reflect.ownKeys(latest(e)),set(e,t,r){let n=getDescriptorFromProto(latest(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=peek(latest(e),t),o=n?.[l];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||has(e.base_,t)))return!0;prepareCopy(e),markChanged(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==peek(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,prepareCopy(e),markChanged(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=latest(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){die(11)},getPrototypeOf:e=>f(e.base_),setPrototypeOf(){die(12)}},h={};function peek(e,t){let r=e[l],n=r?latest(r):e;return n[t]}function getDescriptorFromProto(e,t){if(!(t in e))return;let r=f(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=f(r)}}function markChanged(e){!e.modified_&&(e.modified_=!0,e.parent_&&markChanged(e.parent_))}function prepareCopy(e){e.copy_||(e.copy_=shallowCopy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function createProxy(e,t){let r=isMap(e)?getPlugin("MapSet").proxyMap_(e,t):isSet(e)?getPlugin("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:o,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=n,c=y;r&&(i=[n],c=h);let{revoke:u,proxy:s}=Proxy.revocable(i,c);return n.draft_=s,n.revoke_=u,s}(e,t),n=t?t.scope_:o;return n.drafts_.push(r),r}each(y,(e,t)=>{h[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),h.deleteProperty=function(e,t){return h.set.call(this,e,t,void 0)},h.set=function(e,t,r){return y.set.call(this,e[0],t,r,e[0])};var b=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...o){return n.produce(e,e=>t.call(this,e,...o))}}if("function"!=typeof t&&die(6),void 0!==r&&"function"!=typeof r&&die(7),isDraftable(e)){let o=enterScope(this),i=createProxy(e,void 0),c=!0;try{n=t(i),c=!1}finally{c?revokeScope(o):leaveScope(o)}return usePatchesInScope(o,r),processResult(n,o)}if(e&&"object"==typeof e)die(1,e);else{if(void 0===(n=t(e))&&(n=e),n===u&&(n=void 0),this.autoFreeze_&&freeze(n,!0),r){let t=[],o=[];getPlugin("Patches").generateReplacementPatches_(e,n,t,o),r(t,o)}return n}},this.produceWithPatches=(e,t)=>{let r,n;if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let o=this.produce(e,t,(e,t)=>{r=e,n=t});return[o,r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;isDraftable(e)||die(8),immer_isDraft(e)&&(immer_isDraft(t=e)||die(10,t),e=function currentImpl(e){let t;if(!isDraftable(e)||isFrozen(e))return e;let r=e[l];if(r){if(!r.modified_)return r.base_;r.finalized_=!0,t=shallowCopy(e,r.scope_.immer_.useStrictShallowCopy_)}else t=shallowCopy(e,!0);return each(t,(e,r)=>{set(t,e,currentImpl(r))}),r&&(r.finalized_=!1),t}(t));let r=enterScope(this),n=createProxy(e,void 0);return n[l].isManual_=!0,leaveScope(r),n}finishDraft(e,t){let r=e&&e[l];r&&r.isManual_||die(9);let{scope_:n}=r;return usePatchesInScope(n,t),processResult(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=getPlugin("Patches").applyPatches_;return immer_isDraft(e)?n(e,t):this.produce(e,e=>n(e,t))}},m=b.produce;b.produceWithPatches.bind(b),b.setAutoFreeze.bind(b),b.setUseStrictShallowCopy.bind(b),b.applyPatches.bind(b),b.createDraft.bind(b),b.finishDraft.bind(b),r(5566);var _="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?i.qC:i.qC.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function createAction(e,t){function actionCreator(...r){if(t){let n=t(...r);if(!n)throw Error(formatProdErrorMessage(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return actionCreator.toString=()=>`${e}`,actionCreator.type=e,actionCreator.match=t=>(0,i.LG)(t)&&t.type===e,actionCreator}var g=class _Tuple extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,_Tuple.prototype)}static get[Symbol.species](){return _Tuple}concat(...e){return super.concat.apply(this,e)}prepend(...e){return 1===e.length&&Array.isArray(e[0])?new _Tuple(...e[0].concat(this)):new _Tuple(...e.concat(this))}};function freezeDraftable(e){return isDraftable(e)?m(e,()=>{}):e}function emplace(e,t,r){if(e.has(t)){let n=e.get(t);return r.update&&(n=r.update(n,t,e),e.set(t,n)),n}if(!r.insert)throw Error(formatProdErrorMessage(10));let n=r.insert(t,e);return e.set(t,n),n}var buildGetDefaultMiddleware=()=>function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},i=new g;return t&&("boolean"==typeof t?i.push(c):i.push(createThunkMiddleware(t.extraArgument))),i},createQueueWithTimer=e=>t=>{setTimeout(t,e)},S="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,c=!1,u=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?S:"callback"===e.type?e.queueNotification:createQueueWithTimer(e.timeout),notifyListeners=()=>{c=!1,i&&(i=!1,u.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>o&&e());return u.add(e),()=>{t(),u.delete(e)}},dispatch(e){try{return(i=!(o=!e?.meta?.RTK_autoBatch))&&!c&&(c=!0,s(notifyListeners)),n.dispatch(e)}finally{o=!0}}})},buildGetDefaultEnhancers=e=>function(t){let{autoBatch:r=!0}=t??{},n=new g(e);return r&&n.push(autoBatchEnhancer("object"==typeof r?r:void 0)),n};function configureStore(e){let t,r;let n=buildGetDefaultMiddleware(),{reducer:o,middleware:c,devTools:u=!0,preloadedState:s,enhancers:l}=e||{};if("function"==typeof o)t=o;else if((0,i.PO)(o))t=(0,i.UY)(o);else throw Error(formatProdErrorMessage(1));r="function"==typeof c?c(n):n();let f=i.qC;u&&(f=_({trace:!1,..."object"==typeof u&&u}));let d=(0,i.md)(...r),p=buildGetDefaultEnhancers(d),y="function"==typeof l?l(p):p(),h=f(...y);return(0,i.MT)(t,s,h)}function executeReducerBuilderCallback(e){let t;let r={},n=[],o={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(formatProdErrorMessage(28));if(n in r)throw Error(formatProdErrorMessage(29));return r[n]=t,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(t=e,o)};return e(o),[r,n,t]}var nanoid=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},E=Symbol.for("rtk-slice-createasyncthunk"),v=((n=v||{}).reducer="reducer",n.reducerWithPrepare="reducerWithPrepare",n.asyncThunk="asyncThunk",n),w=function({creators:e}={}){let t=e?.asyncThunk?.[E];return function(e){let r;let{name:n,reducerPath:o=n}=e;if(!n)throw Error(formatProdErrorMessage(11));let i=("function"==typeof e.reducers?e.reducers(function(){function asyncThunk(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return asyncThunk.withTypes=()=>asyncThunk,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk}}()):e.reducers)||{},c=Object.keys(i),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(formatProdErrorMessage(12));if(r in u.sliceCaseReducersByType)throw Error(formatProdErrorMessage(13));return u.sliceCaseReducersByType[r]=t,s},addMatcher:(e,t)=>(u.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(u.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(u.sliceCaseReducersByName[e]=t,s)};function buildReducer(){let[t={},r=[],n]="function"==typeof e.extraReducers?executeReducerBuilderCallback(e.extraReducers):[e.extraReducers],o={...t,...u.sliceCaseReducersByType};return function(e,t){let r;let[n,o,i]=executeReducerBuilderCallback(t);if("function"==typeof e)r=()=>freezeDraftable(e());else{let t=freezeDraftable(e);r=()=>t}function reducer(e=r(),t){let c=[n[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===c.filter(e=>!!e).length&&(c=[i]),c.reduce((e,r)=>{if(r){if(immer_isDraft(e)){let n=r(e,t);return void 0===n?e:n}if(isDraftable(e))return m(e,e=>r(e,t));{let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error(formatProdErrorMessage(9))}return n}}return e},e)}return reducer.getInitialState=r,reducer}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of u.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}c.forEach(r=>{let o=i[r],c={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===o._reducerDefinitionType?function({type:e,reducerName:t},r,n,o){if(!o)throw Error(formatProdErrorMessage(18));let{payloadCreator:i,fulfilled:c,pending:u,rejected:s,settled:l,options:f}=r,d=o(e,i,f);n.exposeAction(t,d),c&&n.addCase(d.fulfilled,c),u&&n.addCase(d.pending,u),s&&n.addCase(d.rejected,s),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:c||noop,pending:u||noop,rejected:s||noop,settled:l||noop})}(c,o,s,t):function({type:e,reducerName:t,createNotation:r},n,o){let i,c;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(formatProdErrorMessage(17));i=n.reducer,c=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,c?createAction(e,c):createAction(e))}(c,o,s)});let selectSelf=e=>e,l=new Map;function reducer(e,t){return r||(r=buildReducer()),r(e,t)}function getInitialState(){return r||(r=buildReducer()),r.getInitialState()}function makeSelectorProps(t,r=!1){function selectSlice(e){let n=e[t];return void 0===n&&r&&(n=getInitialState()),n}function getSelectors(t=selectSelf){let n=emplace(l,r,{insert:()=>new WeakMap});return emplace(n,t,{insert:()=>{let n={};for(let[o,i]of Object.entries(e.selectors??{}))n[o]=function(e,t,r,n){function wrapper(o,...i){let c=t(o);return void 0===c&&n&&(c=r()),e(c,...i)}return wrapper.unwrapped=e,wrapper}(i,t,getInitialState,r);return n}})}return{reducerPath:t,getSelectors,get selectors(){return getSelectors(selectSlice)},selectSlice}}let f={name:n,reducer,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState,...makeSelectorProps(o),injectInto(e,{reducerPath:t,...r}={}){let n=t??o;return e.inject({reducerPath:n,reducer},r),{...f,...makeSelectorProps(n,!0)}}};return f}}();function noop(){}var assertFunction=(e,t)=>{if("function"!=typeof e)throw Error(formatProdErrorMessage(32))},{assign:P}=Object,C="listenerMiddleware",getListenerEntryPropsFrom=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=createAction(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(o);else throw Error(formatProdErrorMessage(21));return assertFunction(i,"options.listener"),{predicate:o,type:t,effect:i}},O=P(e=>{let{type:t,predicate:r,effect:n}=getListenerEntryPropsFrom(e),o=nanoid(),i={id:o,effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(formatProdErrorMessage(22))}};return i},{withTypes:()=>O}),M=P(createAction(`${C}/add`),{withTypes:()=>M}),x=P(createAction(`${C}/remove`),{withTypes:()=>x});function formatProdErrorMessage(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original")},4667:function(e,t,r){r.d(t,{Z:function(){return _objectDestructuringEmpty}});function _objectDestructuringEmpty(e){if(null==e)throw TypeError("Cannot destructure undefined")}},1600:function(e,t,r){r.d(t,{Z:function(){return _objectWithoutProperties}});function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},941:function(e,t,r){r.d(t,{Z:function(){return _toConsumableArray}});var n=r(6015),o=r(909);function _toConsumableArray(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},3046:function(e,t,r){r.d(t,{I0:function(){return b},v9:function(){return l},zt:function(){return Provider_default}});var n=r(2265),o=r(9688),i=Symbol.for("react-redux-context"),c="undefined"!=typeof globalThis?globalThis:{},u=function(){if(!n.createContext)return{};let e=c[i]??(c[i]=new Map),t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}();function createReduxContextHook(e=u){return function(){let t=n.useContext(e);return t}}var s=createReduxContextHook(),useSyncExternalStoreWithSelector=()=>{throw Error("uSES not initialized!")},refEquality=(e,t)=>e===t,l=function(e=u){let t=e===u?s:createReduxContextHook(e),useSelector2=(e,r={})=>{let{equalityFn:o=refEquality,devModeChecks:i={}}="function"==typeof r?{equalityFn:r}:r,{store:c,subscription:u,getServerState:s,stabilityCheck:l,identityFunctionCheck:f}=t();n.useRef(!0);let d=n.useCallback({[e.name](t){let r=e(t);return r}}[e.name],[e,l,i.stabilityCheck]),p=useSyncExternalStoreWithSelector(u.addNestedSub,c.getState,s||c.getState,d,o);return n.useDebugValue(p),p};return Object.assign(useSelector2,{withTypes:()=>useSelector2}),useSelector2}();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var f={notify(){},get:()=>[]},d=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),p="undefined"!=typeof navigator&&"ReactNative"===navigator.product,y=d||p?n.useLayoutEffect:n.useEffect,Provider_default=function({store:e,context:t,children:r,serverState:o,stabilityCheck:i="once",identityFunctionCheck:c="once"}){let s=n.useMemo(()=>{let t=function(e,t){let r;let n=f,o=0,i=!1;function handleChangeWrapper(){c.onStateChange&&c.onStateChange()}function trySubscribe(){if(o++,!r){let o,i;r=t?t.addNestedSub(handleChangeWrapper):e.subscribe(handleChangeWrapper),o=null,i=null,n={clear(){o=null,i=null},notify(){(()=>{let e=o;for(;e;)e.callback(),e=e.next})()},get(){let e=[],t=o;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,r=i={callback:e,next:null,prev:i};return r.prev?r.prev.next=r:o=r,function(){t&&null!==o&&(t=!1,r.next?r.next.prev=r.prev:i=r.prev,r.prev?r.prev.next=r.next:o=r.next)}}}}}function tryUnsubscribe(){o--,r&&0===o&&(r(),r=void 0,n.clear(),n=f)}let c={addNestedSub:function(e){trySubscribe();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),tryUnsubscribe())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,trySubscribe())},tryUnsubscribe:function(){i&&(i=!1,tryUnsubscribe())},getListeners:()=>n};return c}(e);return{store:e,subscription:t,getServerState:o?()=>o:void 0,stabilityCheck:i,identityFunctionCheck:c}},[e,o,i,c]),l=n.useMemo(()=>e.getState(),[e]);return y(()=>{let{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[s,l]),n.createElement((t||u).Provider,{value:s},r)};function createStoreHook(e=u){let t=e===u?s:createReduxContextHook(e),useStore2=()=>{let{store:e}=t();return e};return Object.assign(useStore2,{withTypes:()=>useStore2}),useStore2}var h=createStoreHook(),b=function(e=u){let t=e===u?h:createStoreHook(e),useDispatch2=()=>{let e=t();return e.dispatch};return Object.assign(useDispatch2,{withTypes:()=>useDispatch2}),useDispatch2}();useSyncExternalStoreWithSelector=o.useSyncExternalStoreWithSelector,n.useSyncExternalStore},4483:function(e,t,r){function formatProdErrorMessage(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.d(t,{LG:function(){return isAction},MT:function(){return createStore},PO:function(){return isPlainObject},UY:function(){return combineReducers},md:function(){return applyMiddleware},qC:function(){return compose}});var n="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=()=>Math.random().toString(36).substring(7).split("").join("."),o={INIT:`@@redux/INIT${randomString()}`,REPLACE:`@@redux/REPLACE${randomString()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString()}`};function isPlainObject(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function createStore(e,t,r){if("function"!=typeof e)throw Error(formatProdErrorMessage(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(formatProdErrorMessage(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(formatProdErrorMessage(1));return r(createStore)(e,t)}let i=e,c=t,u=new Map,s=u,l=0,f=!1;function ensureCanMutateNextListeners(){s===u&&(s=new Map,u.forEach((e,t)=>{s.set(t,e)}))}function getState(){if(f)throw Error(formatProdErrorMessage(3));return c}function subscribe(e){if("function"!=typeof e)throw Error(formatProdErrorMessage(4));if(f)throw Error(formatProdErrorMessage(5));let t=!0;ensureCanMutateNextListeners();let r=l++;return s.set(r,e),function(){if(t){if(f)throw Error(formatProdErrorMessage(6));t=!1,ensureCanMutateNextListeners(),s.delete(r),u=null}}}function dispatch(e){if(!isPlainObject(e))throw Error(formatProdErrorMessage(7));if(void 0===e.type)throw Error(formatProdErrorMessage(8));if("string"!=typeof e.type)throw Error(formatProdErrorMessage(17));if(f)throw Error(formatProdErrorMessage(9));try{f=!0,c=i(c,e)}finally{f=!1}let t=u=s;return t.forEach(e=>{e()}),e}return dispatch({type:o.INIT}),{dispatch,subscribe,getState,replaceReducer:function(e){if("function"!=typeof e)throw Error(formatProdErrorMessage(10));i=e,dispatch({type:o.REPLACE})},[n]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(formatProdErrorMessage(11));function observeState(){e.next&&e.next(getState())}observeState();let t=subscribe(observeState);return{unsubscribe:t}},[n](){return this}}}}}function combineReducers(e){let t;let r=Object.keys(e),n={};for(let t=0;t{let r=e[t],n=r(void 0,{type:o.INIT});if(void 0===n)throw Error(formatProdErrorMessage(12));if(void 0===r(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw Error(formatProdErrorMessage(13))})}(n)}catch(e){t=e}return function(e={},r){if(t)throw t;let o=!1,c={};for(let t=0;te:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function applyMiddleware(...e){return t=>(r,n)=>{let o=t(r,n),dispatch=()=>{throw Error(formatProdErrorMessage(15))},i={getState:o.getState,dispatch:(e,...t)=>dispatch(e,...t)},c=e.map(e=>e(i));return dispatch=compose(...c)(o.dispatch),{...o,dispatch}}}function isAction(e){return isPlainObject(e)&&"type"in e&&"string"==typeof e.type}}}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/514-b3691d6ac242362e.js b/frontend/webapp/dep-out/_next/static/chunks/514-b3691d6ac242362e.js deleted file mode 100644 index 82d646f1a..000000000 --- a/frontend/webapp/dep-out/_next/static/chunks/514-b3691d6ac242362e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[514],{6140:function(t,e,n){n.d(e,{P3:function(){return httpDelete},U2:function(){return get},gz:function(){return put},r$:function(){return patch},v_:function(){return post}});var r=n(7022),c=n(9891),u=n(6952),a=n.n(u),i=n(4829);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(t){for(var e=1;e1&&void 0!==r[1]?r[1]:{},c.next=3,fetch(t,{method:"GET",headers:_objectSpread(_objectSpread({},e),{},{Accept:"application/json"})});case 3:if((n=c.sent).ok){c.next=6;break}throw Error("Failed to fetch data from ".concat(t));case 6:return c.abrupt("return",n.json());case 7:case"end":return c.stop()}},_callee)}))).apply(this,arguments)}function post(t,e){return _post.apply(this,arguments)}function _post(){return(_post=(0,c.Z)(a().mark(function _callee2(t,e){var n;return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,i.Z.post(t,e);case 3:return n=r.sent,r.abrupt("return",n.data);case 7:throw r.prev=7,r.t0=r.catch(0),r.t0;case 10:case"end":return r.stop()}},_callee2,null,[[0,7]])}))).apply(this,arguments)}function put(t,e){i.Z.put(t,e)}function httpDelete(t){i.Z.delete(t)}function patch(t,e){i.Z.patch(t,e)}},6757:function(t,e,n){n.d(e,{BH:function(){return updateDestination},M:function(){return setDestination},RA:function(){return checkConnection},Y3:function(){return getDestination},c1:function(){return deleteDestination},pw:function(){return getDestinations},rG:function(){return getDestinationsTypes}});var r=n(9891),c=n(6952),u=n.n(c),a=n(3915),i=n(6140);function getDestinationsTypes(){return _getDestinationsTypes.apply(this,arguments)}function _getDestinationsTypes(){return(_getDestinationsTypes=(0,r.Z)(u().mark(function _callee(){return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.U2)(a.bl.DESTINATION_TYPE);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},_callee)}))).apply(this,arguments)}function getDestinations(){return _getDestinations.apply(this,arguments)}function _getDestinations(){return(_getDestinations=(0,r.Z)(u().mark(function _callee2(){return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.U2)(a.bl.DESTINATIONS);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},_callee2)}))).apply(this,arguments)}function getDestination(t){return _getDestination.apply(this,arguments)}function _getDestination(){return(_getDestination=(0,r.Z)(u().mark(function _callee3(t){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.U2)("".concat(a.bl.DESTINATION_TYPE,"/").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee3)}))).apply(this,arguments)}function setDestination(t){return _setDestination.apply(this,arguments)}function _setDestination(){return(_setDestination=(0,r.Z)(u().mark(function _callee4(t){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.v_)(a.bl.DESTINATIONS,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee4)}))).apply(this,arguments)}function updateDestination(t,e){return _updateDestination.apply(this,arguments)}function _updateDestination(){return(_updateDestination=(0,r.Z)(u().mark(function _callee5(t,e){return u().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,i.gz)("".concat(a.bl.DESTINATIONS,"/").concat(e),t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},_callee5)}))).apply(this,arguments)}function deleteDestination(t){return _deleteDestination.apply(this,arguments)}function _deleteDestination(){return(_deleteDestination=(0,r.Z)(u().mark(function _callee6(t){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.P3)("".concat(a.bl.DESTINATIONS,"/").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee6)}))).apply(this,arguments)}function checkConnection(t){return _checkConnection.apply(this,arguments)}function _checkConnection(){return(_checkConnection=(0,r.Z)(u().mark(function _callee7(t){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.v_)(a.bl.CHECK_CONNECTION,t));case 1:case"end":return e.stop()}},_callee7)}))).apply(this,arguments)}},3785:function(t,e,n){n.d(e,{RA:function(){return r.RA},w9:function(){return createInstrumentationRule},mn:function(){return deleteAction},Yx:function(){return deleteInstrumentationRule},JN:function(){return deleteSource},Sv:function(){return getActions},i6:function(){return getApplication},iE:function(){return getConfig},Y3:function(){return r.Y3},pw:function(){return r.pw},rG:function(){return r.rG},m1:function(){return getInstrumentationRules},rY:function(){return getNamespaces},c6:function(){return getOdigosDescription},b5:function(){return getSource},b9:function(){return getSourceDescription},e6:function(){return getSources},QA:function(){return patchSources},Zw:function(){return putAction},mW:function(){return setAction},M:function(){return r.M},rI:function(){return setNamespaces},BH:function(){return r.BH},DX:function(){return updateInstrumentationRule}});var r=n(6757),c=n(9891),u=n(6952),a=n.n(u),i=n(3915),o=n(6140);function getNamespaces(){return _getNamespaces.apply(this,arguments)}function _getNamespaces(){return(_getNamespaces=(0,c.Z)(a().mark(function _callee(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.U2)(i.bl.NAMESPACES);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},_callee)}))).apply(this,arguments)}function getApplication(t){return _getApplication.apply(this,arguments)}function _getApplication(){return(_getApplication=(0,c.Z)(a().mark(function _callee2(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.U2)("".concat(i.bl.APPLICATIONS,"/").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee2)}))).apply(this,arguments)}function setNamespaces(t){return _setNamespaces.apply(this,arguments)}function _setNamespaces(){return(_setNamespaces=(0,c.Z)(a().mark(function _callee3(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.v_)(i.bl.NAMESPACES,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee3)}))).apply(this,arguments)}function getSources(){return _getSources.apply(this,arguments)}function _getSources(){return(_getSources=(0,c.Z)(a().mark(function _callee4(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.U2)(i.bl.SOURCES);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},_callee4)}))).apply(this,arguments)}function getSource(t,e,n){return _getSource.apply(this,arguments)}function _getSource(){return(_getSource=(0,c.Z)(a().mark(function _callee5(t,e,n){return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o.U2)("".concat(i.bl.SOURCES,"/namespace/").concat(t,"/kind/").concat(e,"/name/").concat(n));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},_callee5)}))).apply(this,arguments)}function deleteSource(t,e,n){return _deleteSource.apply(this,arguments)}function _deleteSource(){return(_deleteSource=(0,c.Z)(a().mark(function _callee6(t,e,n){return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o.P3)("".concat(i.bl.SOURCES,"/namespace/").concat(t,"/kind/").concat(e,"/name/").concat(n));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},_callee6)}))).apply(this,arguments)}function patchSources(t,e,n,r){return _patchSources.apply(this,arguments)}function _patchSources(){return(_patchSources=(0,c.Z)(a().mark(function _callee7(t,e,n,r){return a().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:(0,o.r$)("".concat(i.bl.SOURCES,"/namespace/").concat(t,"/kind/").concat(e,"/name/").concat(n),r);case 1:case"end":return c.stop()}},_callee7)}))).apply(this,arguments)}function getConfig(){return _getConfig.apply(this,arguments)}function _getConfig(){return(_getConfig=(0,c.Z)(a().mark(function _callee(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.U2)(i.bl.CONFIG);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},_callee)}))).apply(this,arguments)}var s=n(1032);function setAction(t,e){return _setAction.apply(this,arguments)}function _setAction(){return(_setAction=(0,c.Z)(a().mark(function _callee(t,e){return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.v_)(s.bl.SET_ACTION(e),t));case 1:case"end":return n.stop()}},_callee)}))).apply(this,arguments)}function putAction(){return _putAction.apply(this,arguments)}function _putAction(){return(_putAction=(0,c.Z)(a().mark(function _callee2(){var t,e,n,r=arguments;return a().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:"",e=r.length>1?r[1]:void 0,n=r.length>2?r[2]:void 0,c.abrupt("return",(0,o.gz)(s.bl.PUT_ACTION(n,t),e));case 4:case"end":return c.stop()}},_callee2)}))).apply(this,arguments)}function deleteAction(t){return _deleteAction.apply(this,arguments)}function _deleteAction(){return(_deleteAction=(0,c.Z)(a().mark(function _callee3(t){var e,n=arguments;return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return e=n.length>1&&void 0!==n[1]?n[1]:"AddClusterInfo",r.abrupt("return",(0,o.P3)(s.bl.DELETE_ACTION(e,t)));case 2:case"end":return r.stop()}},_callee3)}))).apply(this,arguments)}function getActions(){return _getActions.apply(this,arguments)}function _getActions(){return(_getActions=(0,c.Z)(a().mark(function _callee4(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.U2)(s.bl.ACTIONS));case 1:case"end":return t.stop()}},_callee4)}))).apply(this,arguments)}function getInstrumentationRules(){return _getInstrumentationRules.apply(this,arguments)}function _getInstrumentationRules(){return(_getInstrumentationRules=(0,c.Z)(a().mark(function _callee(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.U2)(s.bl.INSTRUMENTATION_RULES));case 1:case"end":return t.stop()}},_callee)}))).apply(this,arguments)}function createInstrumentationRule(t){return _createInstrumentationRule.apply(this,arguments)}function _createInstrumentationRule(){return(_createInstrumentationRule=(0,c.Z)(a().mark(function _callee3(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.v_)(s.bl.INSTRUMENTATION_RULES,t));case 1:case"end":return e.stop()}},_callee3)}))).apply(this,arguments)}function updateInstrumentationRule(t,e){return _updateInstrumentationRule.apply(this,arguments)}function _updateInstrumentationRule(){return(_updateInstrumentationRule=(0,c.Z)(a().mark(function _callee4(t,e){return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.gz)(s.bl.INSTRUMENTATION_RULE(t),e));case 1:case"end":return n.stop()}},_callee4)}))).apply(this,arguments)}function deleteInstrumentationRule(t){return _deleteInstrumentationRule.apply(this,arguments)}function _deleteInstrumentationRule(){return(_deleteInstrumentationRule=(0,c.Z)(a().mark(function _callee5(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.P3)(s.bl.INSTRUMENTATION_RULE(t)));case 1:case"end":return e.stop()}},_callee5)}))).apply(this,arguments)}function getOdigosDescription(){return _getOdigosDescription.apply(this,arguments)}function _getOdigosDescription(){return(_getOdigosDescription=(0,c.Z)(a().mark(function _callee(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.U2)(s.bl.DESCRIBE_ODIGOS));case 1:case"end":return t.stop()}},_callee)}))).apply(this,arguments)}function getSourceDescription(t,e,n){return _getSourceDescription.apply(this,arguments)}function _getSourceDescription(){return(_getSourceDescription=(0,c.Z)(a().mark(function _callee2(t,e,n){return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,o.U2)(s.bl.DESCRIBE_SOURCE(t,e,n)));case 1:case"end":return r.stop()}},_callee2)}))).apply(this,arguments)}},9608:function(t,e,n){n.d(e,{wN:function(){return p},_A:function(){return f},y5:function(){return l},ed:function(){return u},h:function(){return d}});var r=n(4683),c=(0,r.oM)({name:"app",initialState:{sources:{}},reducers:{setSources:function(t,e){t.sources=e.payload}}}),u=c.actions.setSources,a=c.reducer,i=n(7022);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(t){for(var e=1;e0?s-4:s;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7133:function(e,t,r){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var n=r(4699),i=r(2305),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Buffer.prototype),t}function Buffer(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(e)}return from(e,t,r)}function from(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!Buffer.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|byteLength(e,t),n=createBuffer(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(isInstance(e,Uint8Array)){var t=new Uint8Array(e);return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength)}return fromArrayLike(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer)))return fromArrayBuffer(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return Buffer.from(n,t,r);var i=function(e){if(Buffer.isBuffer(e)){var t,r=0|checked(e.length),n=createBuffer(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?createBuffer(0):fromArrayLike(e):"Buffer"===e.type&&Array.isArray(e.data)?fromArrayLike(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return Buffer.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function assertSize(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function allocUnsafe(e){return assertSize(e),createBuffer(e<0?0:0|checked(e))}function fromArrayLike(e){for(var t=e.length<0?0:0|checked(e.length),r=createBuffer(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(i)return n?-1:utf8ToBytes(e).length;t=(""+t).toLowerCase(),i=!0}}function slowToString(e,t,r){var i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=Buffer.from(t,n)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,u/=2,r/=2}function read(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){for(var f=!0,l=0;l239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,n,i,o){if(!Buffer.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function checkIEEE754(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function writeFloat(e,t,r,n,o){return t=+t,r>>>=0,o||checkIEEE754(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function writeDouble(e,t,r,n,o){return t=+t,r>>>=0,o||checkIEEE754(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=Buffer,t.h2=50,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(e,t,r){return from(e,t,r)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(e,t,r){return(assertSize(e),e<=0)?createBuffer(e):void 0!==t?"string"==typeof r?createBuffer(e).fill(t,r):createBuffer(e).fill(t):createBuffer(e)},Buffer.allocUnsafe=function(e){return allocUnsafe(e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)},Buffer.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Buffer.prototype},Buffer.compare=function(e,t){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?Buffer.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(Buffer.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(Buffer.prototype[o]=Buffer.prototype.inspect),Buffer.prototype.compare=function(e,t,r,n,i){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),!Buffer.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,a=Math.min(o,s),u=this.slice(n,i),c=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,u,c,f,l,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s>8,i.push(r%256),i.push(n);return i}(e,this.length-f),this,f,l);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},Buffer.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Buffer.prototype.readInt8=function(e,t){return(e>>>=0,t||checkOffset(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},Buffer.prototype.readInt16LE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),i.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),i.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),i.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),i.read(this,e,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;checkInt(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;checkInt(this,e,t,r,i,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,255,0),this[t]=255&e,t+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeFloatLE=function(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,n){if(!Buffer.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function base64ToBytes(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(s,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function isInstance(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var a=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},2305:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=a;f>0;o=256*o+e[t+l],l+=h,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=256*s+e[t+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:(d?-1:1)*(1/0);s+=Math.pow(2,n),o-=c}return(d?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,f=(1<>1,h=23===i?5960464477539062e-23:0,d=n?0:o-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+l>=1?t+=h/u:t+=h*Math.pow(2,1-l),t*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<0;e[r+d]=255&s,d+=p,s/=256,c-=8);e[r+d-p]|=128*y}},8220:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(3142),i=r(1761),o=r(8172),s=new(function(e){function FocusManager(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var listener=function(){return e()};return window.addEventListener("visibilitychange",listener,!1),window.addEventListener("focus",listener,!1),function(){window.removeEventListener("visibilitychange",listener),window.removeEventListener("focus",listener)}}},t}(0,n.Z)(FocusManager,e);var t=FocusManager.prototype;return t.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},t.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},t.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?r.setFocused(e):r.onFocus()})},t.setFocused=function(e){this.focused=e,e&&this.onFocus()},t.onFocus=function(){this.listeners.forEach(function(e){e()})},t.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},FocusManager}(i.l))},7086:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.S}});var n=r(216),i=r(6897);r.o(i,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),r.o(i,"useMutation")&&r.d(t,{useMutation:function(){return i.useMutation}}),r.o(i,"useQuery")&&r.d(t,{useQuery:function(){return i.useQuery}})},1442:function(e,t,r){"use strict";r.d(t,{E:function(){return setLogger},j:function(){return getLogger}});var n=console;function getLogger(){return n}function setLogger(e){n=e}},2578:function(e,t,r){"use strict";r.d(t,{R:function(){return getDefaultState},m:function(){return u}});var n=r(3428),i=r(1442),o=r(4622),s=r(6800),a=r(8172),u=function(){function Mutation(e){this.options=(0,n.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||getDefaultState(),this.meta=e.meta}var e=Mutation.prototype;return e.setState=function(e){this.dispatch({type:"setState",state:e})},e.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},e.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(a.ZT).catch(a.ZT)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),n.then(function(){return t.executeMutation()}).then(function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,i.j)().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},e.executeMutation=function(){var e,t=this;return this.retryer=new s.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"loading":return(0,n.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.Z)({},e,t.state);default:return e}}(this.state,e),o.V.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},Mutation}();function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},4622:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(8172),i=new(function(){function NotifyManager(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var e=NotifyManager.prototype;return e.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},e.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n.A4)(function(){t.notifyFn(e)})},e.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=Array(r),i=0;i0?this.queries.filter(function(e){return(0,i._x)(r,e)}):this.queries},t.notify=function(e){var t=this;s.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},t.onFocus=function(){var e=this;s.V.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},t.onOnline=function(){var e=this;s.V.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},QueryCache}(f.l),h=r(2578),d=function(e){function MutationCache(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,o.Z)(MutationCache,e);var t=MutationCache.prototype;return t.build=function(e,t,r){var n=new h.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},t.add=function(e){this.mutations.push(e),this.notify(e)},t.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},t.clear=function(){var e=this;s.V.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},t.getAll=function(){return this.mutations},t.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return(0,i.X7)(e,t)})},t.findAll=function(e){return this.mutations.filter(function(t){return(0,i.X7)(e,t)})},t.notify=function(e){var t=this;s.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},t.onFocus=function(){this.resumePausedMutations()},t.onOnline=function(){this.resumePausedMutations()},t.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPaused});return s.V.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(i.ZT)})},Promise.resolve())})},MutationCache}(f.l),p=r(8220),y=r(9977);function getNextPageParam(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var m=function(){function QueryClient(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new l,this.mutationCache=e.mutationCache||new d,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=QueryClient.prototype;return e.mount=function(){var e=this;this.unsubscribeFocus=p.j.subscribe(function(){p.j.isFocused()&&y.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=y.N.subscribe(function(){p.j.isFocused()&&y.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},e.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},e.isFetching=function(e,t){var r=(0,i.I6)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},e.isMutating=function(e){return this.mutationCache.findAll((0,n.Z)({},e,{fetching:!0})).length},e.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},e.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},e.setQueryData=function(e,t,r){var n=(0,i._v)(e),o=this.defaultQueryOptions(n);return this.queryCache.build(this,o).setData(t,r)},e.setQueriesData=function(e,t,r){var n=this;return s.V.batch(function(){return n.getQueryCache().findAll(e).map(function(e){var i=e.queryKey;return[i,n.setQueryData(i,t,r)]})})},e.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},e.removeQueries=function(e,t){var r=(0,i.I6)(e,t)[0],n=this.queryCache;s.V.batch(function(){n.findAll(r).forEach(function(e){n.remove(e)})})},e.resetQueries=function(e,t,r){var o=this,a=(0,i.I6)(e,t,r),u=a[0],c=a[1],f=this.queryCache,l=(0,n.Z)({},u,{active:!0});return s.V.batch(function(){return f.findAll(u).forEach(function(e){e.reset()}),o.refetchQueries(l,c)})},e.cancelQueries=function(e,t,r){var n=this,o=(0,i.I6)(e,t,r),a=o[0],u=o[1],c=void 0===u?{}:u;return void 0===c.revert&&(c.revert=!0),Promise.all(s.V.batch(function(){return n.queryCache.findAll(a).map(function(e){return e.cancel(c)})})).then(i.ZT).catch(i.ZT)},e.invalidateQueries=function(e,t,r){var o,a,u,c=this,f=(0,i.I6)(e,t,r),l=f[0],h=f[1],d=(0,n.Z)({},l,{active:null==(o=null!=(a=l.refetchActive)?a:l.active)||o,inactive:null!=(u=l.refetchInactive)&&u});return s.V.batch(function(){return c.queryCache.findAll(l).forEach(function(e){e.invalidate()}),c.refetchQueries(d,h)})},e.refetchQueries=function(e,t,r){var o=this,a=(0,i.I6)(e,t,r),u=a[0],c=a[1],f=Promise.all(s.V.batch(function(){return o.queryCache.findAll(u).map(function(e){return e.fetch(void 0,(0,n.Z)({},c,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))})})).then(i.ZT);return(null==c?void 0:c.throwOnError)||(f=f.catch(i.ZT)),f},e.fetchQuery=function(e,t,r){var n=(0,i._v)(e,t,r),o=this.defaultQueryOptions(n);void 0===o.retry&&(o.retry=!1);var s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)},e.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(i.ZT).catch(i.ZT)},e.fetchInfiniteQuery=function(e,t,r){var n=(0,i._v)(e,t,r);return n.behavior={onFetch:function(e){e.fetchFn=function(){var t,r,n,o,s,a,c,f=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,l=null==(n=e.fetchOptions)?void 0:null==(o=n.meta)?void 0:o.fetchMore,h=null==l?void 0:l.pageParam,d=(null==l?void 0:l.direction)==="forward",p=(null==l?void 0:l.direction)==="backward",y=(null==(s=e.state.data)?void 0:s.pages)||[],m=(null==(a=e.state.data)?void 0:a.pageParams)||[],g=(0,i.G9)(),v=null==g?void 0:g.signal,b=m,E=!1,w=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},buildNewPages=function(e,t,r,n){return b=n?[t].concat(b):[].concat(b,[t]),n?[r].concat(e):[].concat(e,[r])},fetchPage=function(t,r,n,i){if(E)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);var o=w({queryKey:e.queryKey,signal:v,pageParam:n,meta:e.meta}),s=Promise.resolve(o).then(function(e){return buildNewPages(t,n,e,i)});return(0,u.LE)(o)&&(s.cancel=o.cancel),s};if(y.length){if(d){var O=void 0!==h,C=O?h:getNextPageParam(e.options,y);c=fetchPage(y,O,C)}else if(p){var S,A=void 0!==h,R=A?h:null==(S=e.options).getPreviousPageParam?void 0:S.getPreviousPageParam(y[0],y);c=fetchPage(y,A,R,!0)}else!function(){b=[];var t=void 0===e.options.getNextPageParam;c=!f||!y[0]||f(y[0],0,y)?fetchPage([],t,m[0]):Promise.resolve(buildNewPages([],m[0],y[0]));for(var _loop=function(r){c=c.then(function(n){if(!f||!y[r]||f(y[r],r,y)){var i=t?m[r]:getNextPageParam(e.options,n);return fetchPage(n,t,i)}return Promise.resolve(buildNewPages(n,m[r],y[r]))})},r=1;r0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},Subscribable}()},6897:function(){},8172:function(e,t,r){"use strict";r.d(t,{A4:function(){return scheduleMicrotask},G9:function(){return getAbortController},Gh:function(){return sleep},I6:function(){return parseFilterArgs},Kp:function(){return timeUntilStale},PN:function(){return isValidTimeout},Q$:function(){return function replaceEqualDeep(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||isPlainObject(e)&&isPlainObject(t)){for(var n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,s=r?[]:{},a=0,u=0;u=0&&e!==1/0}function ensureQueryKeyArray(e){return Array.isArray(e)?e:[e]}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function parseQueryArgs(e,t,r){return isQueryKey(e)?"function"==typeof t?(0,n.Z)({},r,{queryKey:e,queryFn:t}):(0,n.Z)({},t,{queryKey:e}):e}function parseMutationArgs(e,t,r){return isQueryKey(e)?"function"==typeof t?(0,n.Z)({},r,{mutationKey:e,mutationFn:t}):(0,n.Z)({},t,{mutationKey:e}):"function"==typeof e?(0,n.Z)({},t,{mutationFn:e}):(0,n.Z)({},e)}function parseFilterArgs(e,t,r){return isQueryKey(e)?[(0,n.Z)({},t,{queryKey:e}),r]:[e||{},t]}function matchQuery(e,t){var r=e.active,n=e.exact,i=e.fetching,o=e.inactive,s=e.predicate,a=e.queryKey,u=e.stale;if(isQueryKey(a)){if(n){if(t.queryHash!==hashQueryKeyByOptions(a,t.options))return!1}else if(!partialMatchKey(t.queryKey,a))return!1}var c=!0===r&&!0===o||null==r&&null==o?"all":!1===r&&!1===o?"none":(null!=r?r:!o)?"active":"inactive";if("none"===c)return!1;if("all"!==c){var f=t.isActive();if("active"===c&&!f||"inactive"===c&&f)return!1}return("boolean"!=typeof u||t.isStale()===u)&&("boolean"!=typeof i||t.isFetching()===i)&&(!s||!!s(t))}function matchMutation(e,t){var r=e.exact,n=e.fetching,i=e.predicate,o=e.mutationKey;if(isQueryKey(o)){if(!t.options.mutationKey)return!1;if(r){if(hashQueryKey(t.options.mutationKey)!==hashQueryKey(o))return!1}else if(!partialMatchKey(t.options.mutationKey,o))return!1}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!i||!!i(t))}function hashQueryKeyByOptions(e,t){return((null==t?void 0:t.queryKeyHashFn)||hashQueryKey)(e)}function hashQueryKey(e){return JSON.stringify(ensureQueryKeyArray(e),function(e,t){return isPlainObject(t)?Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{}):t})}function partialMatchKey(e,t){return function partialDeepEqual(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(function(r){return!partialDeepEqual(e[r],t[r])})}(ensureQueryKeyArray(e),ensureQueryKeyArray(t))}function shallowEqualObjects(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;var t=e.constructor;if(void 0===t)return!0;var r=t.prototype;return!!(hasObjectPrototype(r)&&r.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(e){return"[object Object]"===Object.prototype.toString.call(e)}function isQueryKey(e){return"string"==typeof e||Array.isArray(e)}function sleep(e){return new Promise(function(t){setTimeout(t,e)})}function scheduleMicrotask(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function getAbortController(){if("function"==typeof AbortController)return new AbortController}},9077:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useMutation:function(){return i.useMutation},useQuery:function(){return i.useQuery}});var n=r(7086);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useMutation")&&r.d(t,{useMutation:function(){return n.useMutation}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}});var i=r(1327)},1327:function(e,t,r){"use strict";r.d(t,{QueryClientProvider:function(){return QueryClientProvider},useMutation:function(){return useMutation},useQuery:function(){return useQuery}});var n,i=r(4622),o=r(4887).unstable_batchedUpdates;i.V.setBatchNotifyFunction(o);var s=r(1442),a=console;(0,s.E)(a);var u=r(2265),c=u.createContext(void 0),f=u.createContext(!1);function getQueryClientContext(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}var useQueryClient=function(){var e=u.useContext(getQueryClientContext(u.useContext(f)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},QueryClientProvider=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,i=e.children;u.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var o=getQueryClientContext(n);return u.createElement(f.Provider,{value:n},u.createElement(o.Provider,{value:t},i))},l=r(3428),h=r(8172),d=r(3142),p=r(2578),y=r(1761),m=function(e){function MutationObserver(t,r){var n;return(n=e.call(this)||this).client=t,n.setOptions(r),n.bindMethods(),n.updateResult(),n}(0,d.Z)(MutationObserver,e);var t=MutationObserver.prototype;return t.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},t.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},t.onUnsubscribe=function(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}},t.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},t.getCurrentResult=function(){return this.currentResult},t.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},t.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,l.Z)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},t.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,p.R)(),t=(0,l.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},t.notify=function(e){var t=this;i.V.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)})})},MutationObserver}(y.l);function shouldThrowError(e,t,r){return"function"==typeof t?t.apply(void 0,r):"boolean"==typeof t?t:!!e}function useMutation(e,t,r){var n=u.useRef(!1),o=u.useState(0)[1],s=(0,h.lV)(e,t,r),a=useQueryClient(),c=u.useRef();c.current?c.current.setOptions(s):c.current=new m(a,s);var f=c.current.getCurrentResult();u.useEffect(function(){n.current=!0;var e=c.current.subscribe(i.V.batchCalls(function(){n.current&&o(function(e){return e+1})}));return function(){n.current=!1,e()}},[]);var d=u.useCallback(function(e,t){c.current.mutate(e,t).catch(h.ZT)},[]);if(f.error&&shouldThrowError(void 0,c.current.options.useErrorBoundary,[f.error]))throw f.error;return(0,l.Z)({},f,{mutate:d,mutateAsync:f.mutate})}var g=r(8220),v=r(6800),b=function(e){function QueryObserver(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.selectError=null,n.bindMethods(),n.setOptions(r),n}(0,d.Z)(QueryObserver,e);var t=QueryObserver.prototype;return t.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},t.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},t.onUnsubscribe=function(){this.listeners.length||this.destroy()},t.shouldFetchOnReconnect=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)},t.shouldFetchOnWindowFocus=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},t.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},t.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var i=this.hasListeners();i&&shouldFetchOptionally(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();var o=this.computeRefetchInterval();i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)},t.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},t.getCurrentResult=function(){return this.currentResult},t.trackResult=function(e,t){var r=this,n={},trackProp=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return trackProp(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&trackProp("error"),n},t.getNextResult=function(e){var t=this;return new Promise(function(r,n){var i=t.subscribe(function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))})})},t.getCurrentQuery=function(){return this.currentQuery},t.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},t.refetch=function(e){return this.fetch((0,l.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},t.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then(function(){return t.createResult(n,r)})},t.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},t.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(h.ZT)),t},t.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!h.sk&&!this.currentResult.isStale&&(0,h.PN)(this.options.staleTime)){var t=(0,h.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t+1)}},t.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},t.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!h.sk&&!1!==this.options.enabled&&(0,h.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackground||g.j.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},t.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},t.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},t.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},t.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},t.createResult=function(e,t){var r,n,i=this.currentQuery,o=this.options,a=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,f=e!==i,l=f?e.state:this.currentQueryInitialState,d=f?this.currentResult:this.previousQueryResult,p=e.state,y=p.dataUpdatedAt,m=p.error,g=p.errorUpdatedAt,v=p.isFetching,b=p.status,E=!1,w=!1;if(t.optimisticResults){var O=this.hasListeners(),C=!O&&shouldFetchOnMount(e,t),S=O&&shouldFetchOptionally(e,i,t,o);(C||S)&&(v=!0,y||(b="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==b)r=d.data,y=d.dataUpdatedAt,b=d.status,E=!0;else if(t.select&&void 0!==p.data){if(a&&p.data===(null==u?void 0:u.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(p.data),!1!==t.structuralSharing&&(r=(0,h.Q$)(null==a?void 0:a.data,r)),this.selectResult=r,this.selectError=null}catch(e){(0,s.j)().error(e),this.selectError=e}}else r=p.data;if(void 0!==t.placeholderData&&void 0===r&&("loading"===b||"idle"===b)){if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==c?void 0:c.placeholderData))n=a.data;else if(n="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==n)try{n=t.select(n),!1!==t.structuralSharing&&(n=(0,h.Q$)(null==a?void 0:a.data,n)),this.selectError=null}catch(e){(0,s.j)().error(e),this.selectError=e}void 0!==n&&(b="success",r=n,w=!0)}return this.selectError&&(m=this.selectError,r=this.selectResult,g=Date.now(),b="error"),{status:b,isLoading:"loading"===b,isSuccess:"success"===b,isError:"error"===b,isIdle:"idle"===b,data:r,dataUpdatedAt:y,error:m,errorUpdatedAt:g,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&"loading"!==b,isLoadingError:"error"===b&&0===p.dataUpdatedAt,isPlaceholderData:w,isPreviousData:E,isRefetchError:"error"===b&&0!==p.dataUpdatedAt,isStale:isStale(e,t),refetch:this.refetch,remove:this.remove}},t.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,i=r.notifyOnChangePropsExclusions;if(!n&&!i||"tracked"===n&&!this.trackedProps.length)return!0;var o="tracked"===n?this.trackedProps:n;return Object.keys(e).some(function(r){var n=e[r]!==t[r],s=null==o?void 0:o.some(function(e){return e===r}),a=null==i?void 0:i.some(function(e){return e===r});return n&&!a&&(!o||s)})},t.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,h.VS)(this.currentResult,t)){var r={cache:!0};(null==e?void 0:e.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,l.Z)({},r,e))}},t.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},t.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,v.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},t.notify=function(e){var t=this;i.V.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},QueryObserver}(y.l);function shouldFetchOnMount(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,r){if(!1!==t.enabled){var n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&isStale(e,t)}return!1}function shouldFetchOptionally(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&isStale(e,r)}function isStale(e,t){return e.isStaleByTime(t.staleTime)}var E=u.createContext((n=!1,{clearReset:function(){n=!1},reset:function(){n=!0},isReset:function(){return n}}));function useQuery(e,t,r){return function(e,t){var r=u.useRef(!1),n=u.useState(0)[1],o=useQueryClient(),s=u.useContext(E),a=o.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=i.V.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=i.V.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=i.V.batchCalls(a.onSettled)),a.suspense&&("number"!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&!s.isReset()&&(a.retryOnMount=!1);var c=u.useState(function(){return new t(o,a)})[0],f=c.getOptimisticResult(a);if(u.useEffect(function(){r.current=!0,s.clearReset();var e=c.subscribe(i.V.batchCalls(function(){r.current&&n(function(e){return e+1})}));return c.updateResult(),function(){r.current=!1,e()}},[s,c]),u.useEffect(function(){c.setOptions(a,{listeners:!1})},[a,c]),a.suspense&&f.isLoading)throw c.fetchOptimistic(a).then(function(e){var t=e.data;null==a.onSuccess||a.onSuccess(t),null==a.onSettled||a.onSettled(t,null)}).catch(function(e){s.clearReset(),null==a.onError||a.onError(e),null==a.onSettled||a.onSettled(void 0,e)});if(f.isError&&!s.isReset()&&!f.isFetching&&shouldThrowError(a.suspense,a.useErrorBoundary,[f.error,c.getCurrentQuery()]))throw f.error;return"tracked"===a.notifyOnChangeProps&&(f=c.trackResult(f,a)),f}((0,h._v)(e,t,r),b)}},3428:function(e,t,r){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;tn=>i=>"function"==typeof i?i(t,r,e):n(i)}var s=createThunkMiddleware(),a=Symbol.for("immer-nothing"),u=Symbol.for("immer-draftable"),c=Symbol.for("immer-state");function die(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var f=Object.getPrototypeOf;function immer_isDraft(e){return!!e&&!!e[c]}function isDraftable(e){return!!e&&(immer_isPlainObject(e)||Array.isArray(e)||!!e[u]||!!e.constructor?.[u]||isMap(e)||isSet(e))}var l=Object.prototype.constructor.toString();function immer_isPlainObject(e){if(!e||"object"!=typeof e)return!1;let t=f(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===l}function each(e,t){0===getArchtype(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function getArchtype(e){let t=e[c];return t?t.type_:Array.isArray(e)?1:isMap(e)?2:isSet(e)?3:0}function has(e,t){return 2===getArchtype(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function set(e,t,r){let n=getArchtype(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function isMap(e){return e instanceof Map}function isSet(e){return e instanceof Set}function latest(e){return e.copy_||e.base_}function shallowCopy(e,t){if(isMap(e))return new Map(e);if(isSet(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=immer_isPlainObject(e);if(!0!==t&&("class_only"!==t||r)){let t=f(e);if(null!==t&&r)return{...e};let n=Object.create(t);return Object.assign(n,e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[c];let r=Reflect.ownKeys(t);for(let n=0;n1&&(e.set=e.add=e.clear=e.delete=dontMutateFrozenCollections),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>freeze(t,!0))),e}function dontMutateFrozenCollections(){die(2)}function isFrozen(e){return Object.isFrozen(e)}var h={};function getPlugin(e){let t=h[e];return t||die(0,e),t}function usePatchesInScope(e,t){t&&(getPlugin("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function revokeScope(e){leaveScope(e),e.drafts_.forEach(revokeDraft),e.drafts_=null}function leaveScope(e){e===i&&(i=e.parent_)}function enterScope(e){return i={drafts_:[],parent_:i,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function revokeDraft(e){let t=e[c];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function processResult(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0],n=void 0!==e&&e!==r;return n?(r[c].modified_&&(revokeScope(t),die(4)),isDraftable(e)&&(e=finalize(t,e),t.parent_||maybeFreeze(t,e)),t.patches_&&getPlugin("Patches").generateReplacementPatches_(r[c].base_,e,t.patches_,t.inversePatches_)):e=finalize(t,r,[]),revokeScope(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==a?e:void 0}function finalize(e,t,r){if(isFrozen(t))return t;let n=t[c];if(!n)return each(t,(i,o)=>finalizeProperty(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return maybeFreeze(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,i=t,o=!1;3===n.type_&&(i=new Set(t),t.clear(),o=!0),each(i,(i,s)=>finalizeProperty(e,n,t,i,s,r,o)),maybeFreeze(e,t,!1),r&&e.patches_&&getPlugin("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function finalizeProperty(e,t,r,n,i,o,s){if(immer_isDraft(i)){let s=o&&t&&3!==t.type_&&!has(t.assigned_,n)?o.concat(n):void 0,a=finalize(e,i,s);if(set(r,n,a),!immer_isDraft(a))return;e.canAutoFreeze_=!1}else s&&r.add(i);if(isDraftable(i)&&!isFrozen(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;finalize(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&maybeFreeze(e,i)}}function maybeFreeze(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&freeze(t,r)}var d={get(e,t){if(t===c)return e;let r=latest(e);if(!has(r,t))return function(e,t,r){let n=getDescriptorFromProto(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);let n=r[t];return e.finalized_||!isDraftable(n)?n:n===peek(e.base_,t)?(prepareCopy(e),e.copy_[t]=createProxy(n,e)):n},has:(e,t)=>t in latest(e),ownKeys:e=>Reflect.ownKeys(latest(e)),set(e,t,r){let n=getDescriptorFromProto(latest(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=peek(latest(e),t),i=n?.[c];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||has(e.base_,t)))return!0;prepareCopy(e),markChanged(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==peek(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,prepareCopy(e),markChanged(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=latest(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){die(11)},getPrototypeOf:e=>f(e.base_),setPrototypeOf(){die(12)}},p={};function peek(e,t){let r=e[c],n=r?latest(r):e;return n[t]}function getDescriptorFromProto(e,t){if(!(t in e))return;let r=f(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=f(r)}}function markChanged(e){!e.modified_&&(e.modified_=!0,e.parent_&&markChanged(e.parent_))}function prepareCopy(e){e.copy_||(e.copy_=shallowCopy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function createProxy(e,t){let r=isMap(e)?getPlugin("MapSet").proxyMap_(e,t):isSet(e)?getPlugin("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:i,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=n,s=d;r&&(o=[n],s=p);let{revoke:a,proxy:u}=Proxy.revocable(o,s);return n.draft_=u,n.revoke_=a,u}(e,t),n=t?t.scope_:i;return n.drafts_.push(r),r}each(d,(e,t)=>{p[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),p.deleteProperty=function(e,t){return p.set.call(this,e,t,void 0)},p.set=function(e,t,r){return d.set.call(this,e[0],t,r,e[0])};var y=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&die(6),void 0!==r&&"function"!=typeof r&&die(7),isDraftable(e)){let i=enterScope(this),o=createProxy(e,void 0),s=!0;try{n=t(o),s=!1}finally{s?revokeScope(i):leaveScope(i)}return usePatchesInScope(i,r),processResult(n,i)}if(e&&"object"==typeof e)die(1,e);else{if(void 0===(n=t(e))&&(n=e),n===a&&(n=void 0),this.autoFreeze_&&freeze(n,!0),r){let t=[],i=[];getPlugin("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let i=this.produce(e,t,(e,t)=>{r=e,n=t});return[i,r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;isDraftable(e)||die(8),immer_isDraft(e)&&(immer_isDraft(t=e)||die(10,t),e=function currentImpl(e){let t;if(!isDraftable(e)||isFrozen(e))return e;let r=e[c];if(r){if(!r.modified_)return r.base_;r.finalized_=!0,t=shallowCopy(e,r.scope_.immer_.useStrictShallowCopy_)}else t=shallowCopy(e,!0);return each(t,(e,r)=>{set(t,e,currentImpl(r))}),r&&(r.finalized_=!1),t}(t));let r=enterScope(this),n=createProxy(e,void 0);return n[c].isManual_=!0,leaveScope(r),n}finishDraft(e,t){let r=e&&e[c];r&&r.isManual_||die(9);let{scope_:n}=r;return usePatchesInScope(n,t),processResult(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=getPlugin("Patches").applyPatches_;return immer_isDraft(e)?n(e,t):this.produce(e,e=>n(e,t))}},m=y.produce;y.produceWithPatches.bind(y),y.setAutoFreeze.bind(y),y.setUseStrictShallowCopy.bind(y),y.applyPatches.bind(y),y.createDraft.bind(y),y.finishDraft.bind(y),r(5566);var g="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?o.qC:o.qC.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function createAction(e,t){function actionCreator(...r){if(t){let n=t(...r);if(!n)throw Error(formatProdErrorMessage(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return actionCreator.toString=()=>`${e}`,actionCreator.type=e,actionCreator.match=t=>(0,o.LG)(t)&&t.type===e,actionCreator}var v=class _Tuple extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,_Tuple.prototype)}static get[Symbol.species](){return _Tuple}concat(...e){return super.concat.apply(this,e)}prepend(...e){return 1===e.length&&Array.isArray(e[0])?new _Tuple(...e[0].concat(this)):new _Tuple(...e.concat(this))}};function freezeDraftable(e){return isDraftable(e)?m(e,()=>{}):e}function emplace(e,t,r){if(e.has(t)){let n=e.get(t);return r.update&&(n=r.update(n,t,e),e.set(t,n)),n}if(!r.insert)throw Error(formatProdErrorMessage(10));let n=r.insert(t,e);return e.set(t,n),n}var buildGetDefaultMiddleware=()=>function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{},o=new v;return t&&("boolean"==typeof t?o.push(s):o.push(createThunkMiddleware(t.extraArgument))),o},createQueueWithTimer=e=>t=>{setTimeout(t,e)},b="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,s=!1,a=new Set,u="tick"===e.type?queueMicrotask:"raf"===e.type?b:"callback"===e.type?e.queueNotification:createQueueWithTimer(e.timeout),notifyListeners=()=>{s=!1,o&&(o=!1,a.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>i&&e());return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return(o=!(i=!e?.meta?.RTK_autoBatch))&&!s&&(s=!0,u(notifyListeners)),n.dispatch(e)}finally{i=!0}}})},buildGetDefaultEnhancers=e=>function(t){let{autoBatch:r=!0}=t??{},n=new v(e);return r&&n.push(autoBatchEnhancer("object"==typeof r?r:void 0)),n};function configureStore(e){let t,r;let n=buildGetDefaultMiddleware(),{reducer:i,middleware:s,devTools:a=!0,preloadedState:u,enhancers:c}=e||{};if("function"==typeof i)t=i;else if((0,o.PO)(i))t=(0,o.UY)(i);else throw Error(formatProdErrorMessage(1));r="function"==typeof s?s(n):n();let f=o.qC;a&&(f=g({trace:!1,..."object"==typeof a&&a}));let l=(0,o.md)(...r),h=buildGetDefaultEnhancers(l),d="function"==typeof c?c(h):h(),p=f(...d);return(0,o.MT)(t,u,p)}function executeReducerBuilderCallback(e){let t;let r={},n=[],i={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(formatProdErrorMessage(28));if(n in r)throw Error(formatProdErrorMessage(29));return r[n]=t,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}var nanoid=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},E=Symbol.for("rtk-slice-createasyncthunk"),w=((n=w||{}).reducer="reducer",n.reducerWithPrepare="reducerWithPrepare",n.asyncThunk="asyncThunk",n),O=function({creators:e}={}){let t=e?.asyncThunk?.[E];return function(e){let r;let{name:n,reducerPath:i=n}=e;if(!n)throw Error(formatProdErrorMessage(11));let o=("function"==typeof e.reducers?e.reducers(function(){function asyncThunk(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return asyncThunk.withTypes=()=>asyncThunk,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk}}()):e.reducers)||{},s=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(formatProdErrorMessage(12));if(r in a.sliceCaseReducersByType)throw Error(formatProdErrorMessage(13));return a.sliceCaseReducersByType[r]=t,u},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),u),exposeAction:(e,t)=>(a.actionCreators[e]=t,u),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,u)};function buildReducer(){let[t={},r=[],n]="function"==typeof e.extraReducers?executeReducerBuilderCallback(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e,t){let r;let[n,i,o]=executeReducerBuilderCallback(t);if("function"==typeof e)r=()=>freezeDraftable(e());else{let t=freezeDraftable(e);r=()=>t}function reducer(e=r(),t){let s=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===s.filter(e=>!!e).length&&(s=[o]),s.reduce((e,r)=>{if(r){if(immer_isDraft(e)){let n=r(e,t);return void 0===n?e:n}if(isDraftable(e))return m(e,e=>r(e,t));{let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error(formatProdErrorMessage(9))}return n}}return e},e)}return reducer.getInitialState=r,reducer}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}s.forEach(r=>{let i=o[r],s={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(formatProdErrorMessage(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:u,settled:c,options:f}=r,l=i(e,o,f);n.exposeAction(t,l),s&&n.addCase(l.fulfilled,s),a&&n.addCase(l.pending,a),u&&n.addCase(l.rejected,u),c&&n.addMatcher(l.settled,c),n.exposeCaseReducer(t,{fulfilled:s||noop,pending:a||noop,rejected:u||noop,settled:c||noop})}(s,i,u,t):function({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(formatProdErrorMessage(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?createAction(e,s):createAction(e))}(s,i,u)});let selectSelf=e=>e,c=new Map;function reducer(e,t){return r||(r=buildReducer()),r(e,t)}function getInitialState(){return r||(r=buildReducer()),r.getInitialState()}function makeSelectorProps(t,r=!1){function selectSlice(e){let n=e[t];return void 0===n&&r&&(n=getInitialState()),n}function getSelectors(t=selectSelf){let n=emplace(c,r,{insert:()=>new WeakMap});return emplace(n,t,{insert:()=>{let n={};for(let[i,o]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function wrapper(i,...o){let s=t(i);return void 0===s&&n&&(s=r()),e(s,...o)}return wrapper.unwrapped=e,wrapper}(o,t,getInitialState,r);return n}})}return{reducerPath:t,getSelectors,get selectors(){return getSelectors(selectSlice)},selectSlice}}let f={name:n,reducer,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState,...makeSelectorProps(i),injectInto(e,{reducerPath:t,...r}={}){let n=t??i;return e.inject({reducerPath:n,reducer},r),{...f,...makeSelectorProps(n,!0)}}};return f}}();function noop(){}var assertFunction=(e,t)=>{if("function"!=typeof e)throw Error(formatProdErrorMessage(32))},{assign:C}=Object,S="listenerMiddleware",getListenerEntryPropsFrom=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=createAction(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(formatProdErrorMessage(21));return assertFunction(o,"options.listener"),{predicate:i,type:t,effect:o}},A=C(e=>{let{type:t,predicate:r,effect:n}=getListenerEntryPropsFrom(e),i=nanoid(),o={id:i,effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(formatProdErrorMessage(22))}};return o},{withTypes:()=>A}),R=C(createAction(`${S}/add`),{withTypes:()=>R}),P=C(createAction(`${S}/remove`),{withTypes:()=>P});function formatProdErrorMessage(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original")},4829:function(e,t,r){"use strict";r.d(t,{Z:function(){return eT}});var n,i,o,s,a,u,c,f,l,h={};function bind(e,t){return function(){return e.apply(t,arguments)}}r.r(h),r.d(h,{hasBrowserEnv:function(){return ee},hasStandardBrowserEnv:function(){return et},hasStandardBrowserWebWorkerEnv:function(){return er},origin:function(){return en}});var d=r(5566);let{toString:p}=Object.prototype,{getPrototypeOf:y}=Object,m=(a=Object.create(null),e=>{let t=p.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),kindOfTest=e=>(e=e.toLowerCase(),t=>m(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:g}=Array,v=typeOfTest("undefined"),b=kindOfTest("ArrayBuffer"),E=typeOfTest("string"),w=typeOfTest("function"),O=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==m(e))return!1;let t=y(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},C=kindOfTest("Date"),S=kindOfTest("File"),A=kindOfTest("Blob"),R=kindOfTest("FileList"),P=kindOfTest("URLSearchParams"),[T,_,B,x]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),g(e))for(n=0,i=e.length;n0;)if(t===(r=n[i]).toLowerCase())return r;return null}let M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!v(e)&&e!==M,F=(u="undefined"!=typeof Uint8Array&&y(Uint8Array),e=>u&&e instanceof u),k=kindOfTest("HTMLFormElement"),D=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),U=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};forEach(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},j="abcdefghijklmnopqrstuvwxyz",I="0123456789",L={DIGIT:I,ALPHA:j,ALPHA_DIGIT:j+j.toUpperCase()+I},N=kindOfTest("AsyncFunction"),q=(n="function"==typeof setImmediate,i=w(M.postMessage),n?setImmediate:i?(o=`axios@${Math.random()}`,s=[],M.addEventListener("message",({source:e,data:t})=>{e===M&&t===o&&s.length&&s.shift()()},!1),e=>{s.push(e),M.postMessage(o,"*")}):e=>setTimeout(e)),Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(M):void 0!==d&&d.nextTick||q;var z={isArray:g,isArrayBuffer:b,isBuffer:function(e){return null!==e&&!v(e)&&null!==e.constructor&&!v(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||w(e.append)&&("formdata"===(t=m(e))||"object"===t&&w(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer)},isString:E,isNumber:O,isBoolean:e=>!0===e||!1===e,isObject,isPlainObject,isReadableStream:T,isRequest:_,isResponse:B,isHeaders:x,isUndefined:v,isDate:C,isFile:S,isBlob:A,isRegExp:U,isFunction:w,isStream:e=>isObject(e)&&w(e.pipe),isURLSearchParams:P,isTypedArray:F,isFileList:R,forEach,merge:function merge(){let{caseless:e}=isContextDefined(this)&&this||{},t={},assignValue=(r,n)=>{let i=e&&findKey(t,n)||n;isPlainObject(t[i])&&isPlainObject(r)?t[i]=merge(t[i],r):isPlainObject(r)?t[i]=merge({},r):g(r)?t[i]=r.slice():t[i]=r};for(let e=0,t=arguments.length;e(forEach(t,(t,n)=>{r&&w(t)?e[n]=bind(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s;let a={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==r&&y(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:m,kindOfTest,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(g(e))return e;let t=e.length;if(!O(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=e&&e[Symbol.iterator],i=n.call(e);for(;(r=i.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:k,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,(t,r)=>{if(w(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=e[r];if(w(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(g(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey,global:M,isContextDefined,ALPHABET:L,generateString:(e=16,t=L.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&w(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),visit=(e,r)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let n=g(e)?[]:{};return forEach(e,(e,t)=>{let i=visit(e,r+1);v(i)||(n[t]=i)}),t[r]=void 0,n}}return e};return visit(e,0)},isAsyncFn:N,isThenable:e=>e&&(isObject(e)||w(e))&&w(e.then)&&w(e.catch),setImmediate:q,asap:Q};function AxiosError(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}z.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let K=AxiosError.prototype,V={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{V[e]={value:e}}),Object.defineProperties(AxiosError,V),Object.defineProperty(K,"isAxiosError",{value:!0}),AxiosError.from=(e,t,r,n,i,o)=>{let s=Object.create(K);return z.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),AxiosError.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var H=r(7133).lW;function isVisitable(e){return z.isPlainObject(e)||z.isArray(e)}function removeBrackets(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map(function(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let Z=z.toFlatObject(z,{},null,function(e){return/^is[A-Z]/.test(e)});var helpers_toFormData=function(e,t,r){if(!z.isObject(e))throw TypeError("target must be an object");t=t||new FormData,r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!z.isUndefined(t[e])});let n=r.metaTokens,i=r.visitor||defaultVisitor,o=r.dots,s=r.indexes,a=r.Blob||"undefined"!=typeof Blob&&Blob,u=a&&z.isSpecCompliantForm(t);if(!z.isFunction(i))throw TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(z.isDate(e))return e.toISOString();if(!u&&z.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(e)||z.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):H.from(e):e}function defaultVisitor(e,r,i){let a=e;if(e&&!i&&"object"==typeof e){if(z.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(z.isArray(e)&&(u=e,z.isArray(u)&&!u.some(isVisitable))||(z.isFileList(e)||z.endsWith(r,"[]"))&&(a=z.toArray(e)))return r=removeBrackets(r),a.forEach(function(e,n){z.isUndefined(e)||null===e||t.append(!0===s?renderKey([r],n,o):null===s?r:r+"[]",convertValue(e))}),!1}}return!!isVisitable(e)||(t.append(renderKey(i,r,o),convertValue(e)),!1)}let c=[],f=Object.assign(Z,{defaultVisitor,convertValue,isVisitable});if(!z.isObject(e))throw TypeError("data must be an object");return!function build(e,r){if(!z.isUndefined(e)){if(-1!==c.indexOf(e))throw Error("Circular reference detected in "+r.join("."));c.push(e),z.forEach(e,function(e,n){let o=!(z.isUndefined(e)||null===e)&&i.call(t,e,z.isString(n)?n.trim():n,r,f);!0===o&&build(e,r?r.concat(n):[n])}),c.pop()}}(e),t};function encode(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&helpers_toFormData(e,this,t)}let W=AxiosURLSearchParams.prototype;function buildURL_encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,r){let n;if(!t)return e;let i=r&&r.encode||buildURL_encode,o=r&&r.serialize;if(n=o?o(t,r):z.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}W.append=function(e,t){this._pairs.push([e,t])},W.toString=function(e){let t=e?function(t){return e.call(this,t,encode)}:encode;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var G=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){z.forEach(this.handlers,function(t){null!==t&&e(t)})}},$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},J="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,X="undefined"!=typeof FormData?FormData:null,Y="undefined"!=typeof Blob?Blob:null;let ee="undefined"!=typeof window&&"undefined"!=typeof document,et=(c="undefined"!=typeof navigator&&navigator.product,ee&&0>["ReactNative","NativeScript","NS"].indexOf(c)),er="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,en=ee&&window.location.href||"http://localhost";var ei={...h,isBrowser:!0,classes:{URLSearchParams:J,FormData:X,Blob:Y},protocols:["http","https","file","blob","url","data"]},helpers_formDataToJSON=function(e){if(z.isFormData(e)&&z.isFunction(e.entries)){let t={};return z.forEachEntry(e,(e,r)=>{!function buildPath(e,t,r,n){let i=e[n++];if("__proto__"===i)return!0;let o=Number.isFinite(+i),s=n>=e.length;if(i=!i&&z.isArray(r)?r.length:i,s)return z.hasOwnProp(r,i)?r[i]=[r[i],t]:r[i]=t,!o;r[i]&&z.isObject(r[i])||(r[i]=[]);let a=buildPath(e,t,r[i],n);return a&&z.isArray(r[i])&&(r[i]=function(e){let t,r;let n={},i=Object.keys(e),o=i.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let eo={transitional:$,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=z.isObject(e);o&&z.isHTMLForm(e)&&(e=new FormData(e));let s=z.isFormData(e);if(s)return i?JSON.stringify(helpers_formDataToJSON(e)):e;if(z.isArrayBuffer(e)||z.isBuffer(e)||z.isStream(e)||z.isFile(e)||z.isBlob(e)||z.isReadableStream(e))return e;if(z.isArrayBufferView(e))return e.buffer;if(z.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){var a,u;return(a=e,u=this.formSerializer,helpers_toFormData(a,new ei.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ei.isNode&&z.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},u))).toString()}if((r=z.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return helpers_toFormData(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,r){if(z.isString(e))try{return(0,JSON.parse)(e),z.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eo.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(z.isResponse(e)||z.isReadableStream(e))return e;if(e&&z.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ei.classes.FormData,Blob:ei.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{eo.headers[e]={}});let es=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&es[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let ea=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:z.isArray(e)?e.map(normalizeValue):String(e)}let isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,n,i){if(z.isFunction(n))return n.call(this,t,r);if(i&&(t=r),z.isString(t)){if(z.isString(n))return -1!==t.indexOf(n);if(z.isRegExp(n))return n.test(t)}}let AxiosHeaders=class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function setHeader(e,t,r){let i=normalizeHeader(t);if(!i)throw Error("header name must be a non-empty string");let o=z.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=normalizeValue(e))}let setHeaders=(e,t)=>z.forEach(e,(e,r)=>setHeader(e,r,t));if(z.isPlainObject(e)||e instanceof this.constructor)setHeaders(e,t);else if(z.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))setHeaders(parseHeaders(e),t);else if(z.isHeaders(e))for(let[t,n]of e.entries())setHeader(n,t,r);else null!=e&&setHeader(t,e,r);return this}get(e,t){if(e=normalizeHeader(e)){let r=z.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(z.isFunction(t))return t.call(this,e,r);if(z.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){let r=z.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||matchHeaderValue(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function deleteHeader(e){if(e=normalizeHeader(e)){let i=z.findKey(r,e);i&&(!t||matchHeaderValue(r,r[i],i,t))&&(delete r[i],n=!0)}}return z.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||matchHeaderValue(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return z.forEach(this,(n,i)=>{let o=z.findKey(r,i);if(o){t[o]=normalizeValue(n),delete t[i];return}let s=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();s!==i&&delete t[i],t[s]=normalizeValue(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return z.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&z.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=this[ea]=this[ea]={accessors:{}},r=t.accessors,n=this.prototype;function defineAccessor(e){let t=normalizeHeader(e);r[t]||(!function(e,t){let r=z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(n,e),r[t]=!0)}return z.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}};function transformData(e,t){let r=this||eo,n=t||r,i=AxiosHeaders.from(n.headers),o=n.data;return z.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,t,r){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,t,r),this.name="CanceledError"}function settle(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new AxiosError("Request failed with status code "+r.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),z.freezeMethods(AxiosHeaders),z.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var helpers_speedometer=function(e,t){let r;e=e||10;let n=Array(e),i=Array(e),o=0,s=0;return t=void 0!==t?t:1e3,function(a){let u=Date.now(),c=i[s];r||(r=u),n[o]=a,i[o]=u;let f=s,l=0;for(;f!==o;)l+=n[f++],f%=e;if((o=(o+1)%e)===s&&(s=(s+1)%e),u-r{i=o,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?invoke(e,t):(r=e,n||(n=setTimeout(()=>{n=null,invoke(r)},o-s)))},()=>r&&invoke(r)]};let progressEventReducer=(e,t,r=3)=>{let n=0,i=helpers_speedometer(50,250);return helpers_throttle(r=>{let o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,u=i(a),c=o<=s;n=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},progressEventDecorator=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},asyncDecorator=e=>(...t)=>z.asap(()=>e(...t));var eu=ei.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function resolveURL(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=resolveURL(window.location.href),function(t){let r=z.isString(t)?resolveURL(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},ec=ei.hasStandardBrowserEnv?{write(e,t,r,n,i,o){let s=[e+"="+encodeURIComponent(t)];z.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),z.isString(n)&&s.push("path="+n),z.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function buildFullPath(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};let r={};function getMergedValue(e,t,r){return z.isPlainObject(e)&&z.isPlainObject(t)?z.merge.call({caseless:r},e,t):z.isPlainObject(t)?z.merge({},t):z.isArray(t)?t.slice():t}function mergeDeepProperties(e,t,r){return z.isUndefined(t)?z.isUndefined(e)?void 0:getMergedValue(void 0,e,r):getMergedValue(e,t,r)}function valueFromConfig2(e,t){if(!z.isUndefined(t))return getMergedValue(void 0,t)}function defaultToConfig2(e,t){return z.isUndefined(t)?z.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,t)}function mergeDirectKeys(r,n,i){return i in t?getMergedValue(r,n):i in e?getMergedValue(void 0,r):void 0}let n={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,t)=>mergeDeepProperties(headersToObject(e),headersToObject(t),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(i){let o=n[i]||mergeDeepProperties,s=o(e[i],t[i],i);z.isUndefined(s)&&o!==mergeDirectKeys||(r[i]=s)}),r}var resolveConfig=e=>{let t;let r=mergeConfig({},e),{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:u}=r;if(r.headers=a=AxiosHeaders.from(a),r.url=buildURL(buildFullPath(r.baseURL,r.url),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),z.isFormData(n)){if(ei.hasStandardBrowserEnv||ei.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(t=a.getContentType())){let[e,...r]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...r].join("; "))}}if(ei.hasStandardBrowserEnv&&(i&&z.isFunction(i)&&(i=i(r)),i||!1!==i&&eu(r.url))){let e=o&&s&&ec.read(s);e&&a.set(o,e)}return r};let ef="undefined"!=typeof XMLHttpRequest;var el=ef&&function(e){return new Promise(function(t,r){let n,i,o,s,a;let u=resolveConfig(e),c=u.data,f=AxiosHeaders.from(u.headers).normalize(),{responseType:l,onUploadProgress:h,onDownloadProgress:d}=u;function done(){s&&s(),a&&a(),u.cancelToken&&u.cancelToken.unsubscribe(n),u.signal&&u.signal.removeEventListener("abort",n)}let p=new XMLHttpRequest;function onloadend(){if(!p)return;let n=AxiosHeaders.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),i=l&&"text"!==l&&"json"!==l?p.response:p.responseText,o={data:i,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};settle(function(e){t(e),done()},function(e){r(e),done()},o),p=null}p.open(u.method.toUpperCase(),u.url,!0),p.timeout=u.timeout,"onloadend"in p?p.onloadend=onloadend:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(onloadend)},p.onabort=function(){p&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",n=u.transitional||$;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new AxiosError(t,n.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,p)),p=null},void 0===c&&f.setContentType(null),"setRequestHeader"in p&&z.forEach(f.toJSON(),function(e,t){p.setRequestHeader(t,e)}),z.isUndefined(u.withCredentials)||(p.withCredentials=!!u.withCredentials),l&&"json"!==l&&(p.responseType=u.responseType),d&&([o,a]=progressEventReducer(d,!0),p.addEventListener("progress",o)),h&&p.upload&&([i,s]=progressEventReducer(h),p.upload.addEventListener("progress",i),p.upload.addEventListener("loadend",s)),(u.cancelToken||u.signal)&&(n=t=>{p&&(r(!t||t.type?new CanceledError(null,e,p):t),p.abort(),p=null)},u.cancelToken&&u.cancelToken.subscribe(n),u.signal&&(u.signal.aborted?n():u.signal.addEventListener("abort",n)));let y=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u.url);if(y&&-1===ei.protocols.indexOf(y)){r(new AxiosError("Unsupported protocol "+y+":",AxiosError.ERR_BAD_REQUEST,e));return}p.send(c||null)})},helpers_composeSignals=(e,t)=>{let r,n=new AbortController,onabort=function(e){if(!r){r=!0,unsubscribe();let t=e instanceof Error?e:this.reason;n.abort(t instanceof AxiosError?t:new CanceledError(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{onabort(new AxiosError(`timeout ${t} of ms exceeded`,AxiosError.ETIMEDOUT))},t),unsubscribe=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",onabort):e.unsubscribe(onabort))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",onabort));let{signal:o}=n;return o.unsubscribe=unsubscribe,[o,()=>{i&&clearTimeout(i),i=null}]};let streamChunk=function*(e,t){let r,n=e.byteLength;if(!t||n{let o;let s=readBytes(e,t,i),a=0,_onFinish=e=>{!o&&(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await s.next();if(t){_onFinish(),e.close();return}let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw _onFinish(e),e}},cancel:e=>(_onFinish(e),s.return())},{highWaterMark:2})},eh="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ed=eh&&"function"==typeof ReadableStream,ep=eh&&("function"==typeof TextEncoder?(f=new TextEncoder,e=>f.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),test=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ey=ed&&test(()=>{let e=!1,t=new Request(ei.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),em=ed&&test(()=>z.isReadableStream(new Response("").body)),eg={stream:em&&(e=>e.body)};eh&&(l=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{eg[e]||(eg[e]=z.isFunction(l[e])?t=>t[e]():(t,r)=>{throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,r)})}));let getBodyLength=async e=>null==e?0:z.isBlob(e)?e.size:z.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:z.isArrayBufferView(e)||z.isArrayBuffer(e)?e.byteLength:(z.isURLSearchParams(e)&&(e+=""),z.isString(e))?(await ep(e)).byteLength:void 0,resolveBodyLength=async(e,t)=>{let r=z.toFiniteNumber(e.getContentLength());return null==r?getBodyLength(t):r};var ev=eh&&(async e=>{let t,r,n,{url:i,method:o,data:s,signal:a,cancelToken:u,timeout:c,onDownloadProgress:f,onUploadProgress:l,responseType:h,headers:d,withCredentials:p="same-origin",fetchOptions:y}=resolveConfig(e);h=h?(h+"").toLowerCase():"text";let[m,g]=a||u||c?helpers_composeSignals([a,u],c):[],onFinish=()=>{t||setTimeout(()=>{m&&m.unsubscribe()}),t=!0};try{if(l&&ey&&"get"!==o&&"head"!==o&&0!==(n=await resolveBodyLength(d,s))){let e,t=new Request(i,{method:"POST",body:s,duplex:"half"});if(z.isFormData(s)&&(e=t.headers.get("content-type"))&&d.setContentType(e),t.body){let[e,r]=progressEventDecorator(n,progressEventReducer(asyncDecorator(l)));s=trackStream(t.body,65536,e,r,ep)}}z.isString(p)||(p=p?"include":"omit"),r=new Request(i,{...y,signal:m,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:s,duplex:"half",credentials:p});let t=await fetch(r),a=em&&("stream"===h||"response"===h);if(em&&(f||a)){let e={};["status","statusText","headers"].forEach(r=>{e[r]=t[r]});let r=z.toFiniteNumber(t.headers.get("content-length")),[n,i]=f&&progressEventDecorator(r,progressEventReducer(asyncDecorator(f),!0))||[];t=new Response(trackStream(t.body,65536,n,()=>{i&&i(),a&&onFinish()},ep),e)}h=h||"text";let u=await eg[z.findKey(eg,h)||"text"](t,e);return a||onFinish(),g&&g(),await new Promise((n,i)=>{settle(n,i,{data:u,headers:AxiosHeaders.from(t.headers),status:t.status,statusText:t.statusText,config:e,request:r})})}catch(t){if(onFinish(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,r),{cause:t.cause||t});throw AxiosError.from(t,t&&t.code,e,r)}});let eb={http:null,xhr:el,fetch:ev};z.forEach(eb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let renderReason=e=>`- ${e}`,isResolvedHandle=e=>z.isFunction(e)||null===e||!1===e;var eE={getAdapter:e=>{let t,r;e=z.isArray(e)?e:[e];let{length:n}=e,i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=n?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:eb};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=eE.getAdapter(e.adapter||eo.adapter);return t(e).then(function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders.from(t.headers),t},function(t){return!isCancel(t)&&(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders.from(t.response.headers))),Promise.reject(t)})}let ew="1.7.3",eO={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{eO[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let eC={};eO.transitional=function(e,t,r){function formatMessage(e,t){return"[Axios v"+ew+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new AxiosError(formatMessage(n," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!eC[n]&&(eC[n]=!0,console.warn(formatMessage(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}};var eS={assertOptions:function(e,t,r){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],s=t[o];if(s){let t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new AxiosError("option "+o+" must be "+r,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new AxiosError("Unknown option "+o,AxiosError.ERR_BAD_OPTION)}},validators:eO};let eA=eS.validators;let Axios=class Axios{constructor(e){this.defaults=e,this.interceptors={request:new G,response:new G}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);let{transitional:i,paramsSerializer:o,headers:s}=t;void 0!==i&&eS.assertOptions(i,{silentJSONParsing:eA.transitional(eA.boolean),forcedJSONParsing:eA.transitional(eA.boolean),clarifyTimeoutError:eA.transitional(eA.boolean)},!1),null!=o&&(z.isFunction(o)?t.paramsSerializer={serialize:o}:eS.assertOptions(o,{encode:eA.function,serialize:eA.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&z.merge(s.common,s[t.method]);s&&z.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=AxiosHeaders.concat(a,s);let u=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,u.unshift(e.fulfilled,e.rejected))});let f=[];this.interceptors.response.forEach(function(e){f.push(e.fulfilled,e.rejected)});let l=0;if(!c){let e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,u),e.push.apply(e,f),n=e.length,r=Promise.resolve(t);l{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new CanceledError(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;let t=new CancelToken(function(t){e=t});return{token:t,cancel:e}}};let eR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eR).forEach(([e,t])=>{eR[t]=e});let eP=function createInstance(e){let t=new Axios(e),r=bind(Axios.prototype.request,t);return z.extend(r,Axios.prototype,t,{allOwnKeys:!0}),z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance(mergeConfig(e,t))},r}(eo);eP.Axios=Axios,eP.CanceledError=CanceledError,eP.CancelToken=CancelToken,eP.isCancel=isCancel,eP.VERSION=ew,eP.toFormData=helpers_toFormData,eP.AxiosError=AxiosError,eP.Cancel=eP.CanceledError,eP.all=function(e){return Promise.all(e)},eP.spread=function(e){return function(t){return e.apply(null,t)}},eP.isAxiosError=function(e){return z.isObject(e)&&!0===e.isAxiosError},eP.mergeConfig=mergeConfig,eP.AxiosHeaders=AxiosHeaders,eP.formToJSON=e=>helpers_formDataToJSON(z.isHTMLForm(e)?new FormData(e):e),eP.getAdapter=eE.getAdapter,eP.HttpStatusCode=eR,eP.default=eP;var eT=eP},9891:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(e){r(e);return}a.done?t(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function _next(e){asyncGeneratorStep(o,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(o,n,i,_next,_throw,"throw",e)}_next(void 0)})}}r.d(t,{Z:function(){return _asyncToGenerator}})},4483:function(e,t,r){"use strict";function formatProdErrorMessage(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.d(t,{LG:function(){return isAction},MT:function(){return createStore},PO:function(){return isPlainObject},UY:function(){return combineReducers},md:function(){return applyMiddleware},qC:function(){return compose}});var n="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${randomString()}`,REPLACE:`@@redux/REPLACE${randomString()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString()}`};function isPlainObject(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function createStore(e,t,r){if("function"!=typeof e)throw Error(formatProdErrorMessage(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(formatProdErrorMessage(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(formatProdErrorMessage(1));return r(createStore)(e,t)}let o=e,s=t,a=new Map,u=a,c=0,f=!1;function ensureCanMutateNextListeners(){u===a&&(u=new Map,a.forEach((e,t)=>{u.set(t,e)}))}function getState(){if(f)throw Error(formatProdErrorMessage(3));return s}function subscribe(e){if("function"!=typeof e)throw Error(formatProdErrorMessage(4));if(f)throw Error(formatProdErrorMessage(5));let t=!0;ensureCanMutateNextListeners();let r=c++;return u.set(r,e),function(){if(t){if(f)throw Error(formatProdErrorMessage(6));t=!1,ensureCanMutateNextListeners(),u.delete(r),a=null}}}function dispatch(e){if(!isPlainObject(e))throw Error(formatProdErrorMessage(7));if(void 0===e.type)throw Error(formatProdErrorMessage(8));if("string"!=typeof e.type)throw Error(formatProdErrorMessage(17));if(f)throw Error(formatProdErrorMessage(9));try{f=!0,s=o(s,e)}finally{f=!1}let t=a=u;return t.forEach(e=>{e()}),e}return dispatch({type:i.INIT}),{dispatch,subscribe,getState,replaceReducer:function(e){if("function"!=typeof e)throw Error(formatProdErrorMessage(10));o=e,dispatch({type:i.REPLACE})},[n]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(formatProdErrorMessage(11));function observeState(){e.next&&e.next(getState())}observeState();let t=subscribe(observeState);return{unsubscribe:t}},[n](){return this}}}}}function combineReducers(e){let t;let r=Object.keys(e),n={};for(let t=0;t{let r=e[t],n=r(void 0,{type:i.INIT});if(void 0===n)throw Error(formatProdErrorMessage(12));if(void 0===r(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw Error(formatProdErrorMessage(13))})}(n)}catch(e){t=e}return function(e={},r){if(t)throw t;let i=!1,s={};for(let t=0;te:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function applyMiddleware(...e){return t=>(r,n)=>{let i=t(r,n),dispatch=()=>{throw Error(formatProdErrorMessage(15))},o={getState:i.getState,dispatch:(e,...t)=>dispatch(e,...t)},s=e.map(e=>e(o));return dispatch=compose(...s)(i.dispatch),{...i,dispatch}}}function isAction(e){return isPlainObject(e)&&"type"in e&&"string"==typeof e.type}}}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/785-a83a8c06b8294aa1.js b/frontend/webapp/dep-out/_next/static/chunks/785-a83a8c06b8294aa1.js new file mode 100644 index 000000000..d55b8dd6f --- /dev/null +++ b/frontend/webapp/dep-out/_next/static/chunks/785-a83a8c06b8294aa1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[785],{6140:function(t,e,n){n.d(e,{P3:function(){return httpDelete},U2:function(){return get},gz:function(){return put},r$:function(){return patch},v_:function(){return post}});var r=n(7022),c=n(9891),u=n(6952),a=n.n(u),o=n(4829);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(t){for(var e=1;e1&&void 0!==r[1]?r[1]:{},c.next=3,fetch(t,{method:"GET",headers:_objectSpread(_objectSpread({},e),{},{Accept:"application/json"})});case 3:if((n=c.sent).ok){c.next=6;break}throw Error("Failed to fetch data from ".concat(t));case 6:return c.abrupt("return",n.json());case 7:case"end":return c.stop()}},_callee)}))).apply(this,arguments)}function post(t,e){return _post.apply(this,arguments)}function _post(){return(_post=(0,c.Z)(a().mark(function _callee2(t,e){var n;return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,o.Z.post(t,e);case 3:return n=r.sent,r.abrupt("return",n.data);case 7:throw r.prev=7,r.t0=r.catch(0),r.t0;case 10:case"end":return r.stop()}},_callee2,null,[[0,7]])}))).apply(this,arguments)}function put(t,e){o.Z.put(t,e)}function httpDelete(t){o.Z.delete(t)}function patch(t,e){o.Z.patch(t,e)}},6757:function(t,e,n){n.d(e,{BH:function(){return updateDestination},M:function(){return setDestination},RA:function(){return checkConnection},Y3:function(){return getDestination},c1:function(){return deleteDestination},pw:function(){return getDestinations},rG:function(){return getDestinationsTypes}});var r=n(9891),c=n(6952),u=n.n(c),a=n(3915),o=n(6140);function getDestinationsTypes(){return _getDestinationsTypes.apply(this,arguments)}function _getDestinationsTypes(){return(_getDestinationsTypes=(0,r.Z)(u().mark(function _callee(){return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.U2)(a.bl.DESTINATION_TYPE);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},_callee)}))).apply(this,arguments)}function getDestinations(){return _getDestinations.apply(this,arguments)}function _getDestinations(){return(_getDestinations=(0,r.Z)(u().mark(function _callee2(){return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.U2)(a.bl.DESTINATIONS);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},_callee2)}))).apply(this,arguments)}function getDestination(t){return _getDestination.apply(this,arguments)}function _getDestination(){return(_getDestination=(0,r.Z)(u().mark(function _callee3(t){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.U2)("".concat(a.bl.DESTINATION_TYPE,"/").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee3)}))).apply(this,arguments)}function setDestination(t){return _setDestination.apply(this,arguments)}function _setDestination(){return(_setDestination=(0,r.Z)(u().mark(function _callee4(t){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.v_)(a.bl.DESTINATIONS,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee4)}))).apply(this,arguments)}function updateDestination(t,e){return _updateDestination.apply(this,arguments)}function _updateDestination(){return(_updateDestination=(0,r.Z)(u().mark(function _callee5(t,e){return u().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o.gz)("".concat(a.bl.DESTINATIONS,"/").concat(e),t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},_callee5)}))).apply(this,arguments)}function deleteDestination(t){return _deleteDestination.apply(this,arguments)}function _deleteDestination(){return(_deleteDestination=(0,r.Z)(u().mark(function _callee6(t){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.P3)("".concat(a.bl.DESTINATIONS,"/").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee6)}))).apply(this,arguments)}function checkConnection(t){return _checkConnection.apply(this,arguments)}function _checkConnection(){return(_checkConnection=(0,r.Z)(u().mark(function _callee7(t){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.v_)(a.bl.CHECK_CONNECTION,t));case 1:case"end":return e.stop()}},_callee7)}))).apply(this,arguments)}},3785:function(t,e,n){n.d(e,{RA:function(){return r.RA},w9:function(){return createInstrumentationRule},mn:function(){return deleteAction},Yx:function(){return deleteInstrumentationRule},JN:function(){return deleteSource},Sv:function(){return getActions},i6:function(){return getApplication},Y3:function(){return r.Y3},pw:function(){return r.pw},rG:function(){return r.rG},m1:function(){return getInstrumentationRules},rY:function(){return getNamespaces},c6:function(){return getOdigosDescription},b5:function(){return getSource},b9:function(){return getSourceDescription},e6:function(){return getSources},QA:function(){return patchSources},Zw:function(){return putAction},mW:function(){return setAction},M:function(){return r.M},rI:function(){return setNamespaces},BH:function(){return r.BH},DX:function(){return updateInstrumentationRule}});var r=n(6757),c=n(9891),u=n(6952),a=n.n(u),o=n(3915),i=n(6140);function getNamespaces(){return _getNamespaces.apply(this,arguments)}function _getNamespaces(){return(_getNamespaces=(0,c.Z)(a().mark(function _callee(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.U2)(o.bl.NAMESPACES);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},_callee)}))).apply(this,arguments)}function getApplication(t){return _getApplication.apply(this,arguments)}function _getApplication(){return(_getApplication=(0,c.Z)(a().mark(function _callee2(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.U2)("".concat(o.bl.APPLICATIONS,"/").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee2)}))).apply(this,arguments)}function setNamespaces(t){return _setNamespaces.apply(this,arguments)}function _setNamespaces(){return(_setNamespaces=(0,c.Z)(a().mark(function _callee3(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.v_)(o.bl.NAMESPACES,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee3)}))).apply(this,arguments)}function getSources(){return _getSources.apply(this,arguments)}function _getSources(){return(_getSources=(0,c.Z)(a().mark(function _callee4(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.U2)(o.bl.SOURCES);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},_callee4)}))).apply(this,arguments)}function getSource(t,e,n){return _getSource.apply(this,arguments)}function _getSource(){return(_getSource=(0,c.Z)(a().mark(function _callee5(t,e,n){return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,i.U2)("".concat(o.bl.SOURCES,"/namespace/").concat(t,"/kind/").concat(e,"/name/").concat(n));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},_callee5)}))).apply(this,arguments)}function deleteSource(t,e,n){return _deleteSource.apply(this,arguments)}function _deleteSource(){return(_deleteSource=(0,c.Z)(a().mark(function _callee6(t,e,n){return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,i.P3)("".concat(o.bl.SOURCES,"/namespace/").concat(t,"/kind/").concat(e,"/name/").concat(n));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},_callee6)}))).apply(this,arguments)}function patchSources(t,e,n,r){return _patchSources.apply(this,arguments)}function _patchSources(){return(_patchSources=(0,c.Z)(a().mark(function _callee7(t,e,n,r){return a().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:(0,i.r$)("".concat(o.bl.SOURCES,"/namespace/").concat(t,"/kind/").concat(e,"/name/").concat(n),r);case 1:case"end":return c.stop()}},_callee7)}))).apply(this,arguments)}var s=n(1032);function setAction(t,e){return _setAction.apply(this,arguments)}function _setAction(){return(_setAction=(0,c.Z)(a().mark(function _callee(t,e){return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.v_)(s.bl.SET_ACTION(e),t));case 1:case"end":return n.stop()}},_callee)}))).apply(this,arguments)}function putAction(){return _putAction.apply(this,arguments)}function _putAction(){return(_putAction=(0,c.Z)(a().mark(function _callee2(){var t,e,n,r=arguments;return a().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:"",e=r.length>1?r[1]:void 0,n=r.length>2?r[2]:void 0,c.abrupt("return",(0,i.gz)(s.bl.PUT_ACTION(n,t),e));case 4:case"end":return c.stop()}},_callee2)}))).apply(this,arguments)}function deleteAction(t){return _deleteAction.apply(this,arguments)}function _deleteAction(){return(_deleteAction=(0,c.Z)(a().mark(function _callee3(t){var e,n=arguments;return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return e=n.length>1&&void 0!==n[1]?n[1]:"AddClusterInfo",r.abrupt("return",(0,i.P3)(s.bl.DELETE_ACTION(e,t)));case 2:case"end":return r.stop()}},_callee3)}))).apply(this,arguments)}function getActions(){return _getActions.apply(this,arguments)}function _getActions(){return(_getActions=(0,c.Z)(a().mark(function _callee4(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,i.U2)(s.bl.ACTIONS));case 1:case"end":return t.stop()}},_callee4)}))).apply(this,arguments)}function getInstrumentationRules(){return _getInstrumentationRules.apply(this,arguments)}function _getInstrumentationRules(){return(_getInstrumentationRules=(0,c.Z)(a().mark(function _callee(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,i.U2)(s.bl.INSTRUMENTATION_RULES));case 1:case"end":return t.stop()}},_callee)}))).apply(this,arguments)}function createInstrumentationRule(t){return _createInstrumentationRule.apply(this,arguments)}function _createInstrumentationRule(){return(_createInstrumentationRule=(0,c.Z)(a().mark(function _callee3(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.v_)(s.bl.INSTRUMENTATION_RULES,t));case 1:case"end":return e.stop()}},_callee3)}))).apply(this,arguments)}function updateInstrumentationRule(t,e){return _updateInstrumentationRule.apply(this,arguments)}function _updateInstrumentationRule(){return(_updateInstrumentationRule=(0,c.Z)(a().mark(function _callee4(t,e){return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.gz)(s.bl.INSTRUMENTATION_RULE(t),e));case 1:case"end":return n.stop()}},_callee4)}))).apply(this,arguments)}function deleteInstrumentationRule(t){return _deleteInstrumentationRule.apply(this,arguments)}function _deleteInstrumentationRule(){return(_deleteInstrumentationRule=(0,c.Z)(a().mark(function _callee5(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.P3)(s.bl.INSTRUMENTATION_RULE(t)));case 1:case"end":return e.stop()}},_callee5)}))).apply(this,arguments)}function getOdigosDescription(){return _getOdigosDescription.apply(this,arguments)}function _getOdigosDescription(){return(_getOdigosDescription=(0,c.Z)(a().mark(function _callee(){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,i.U2)(s.bl.DESCRIBE_ODIGOS));case 1:case"end":return t.stop()}},_callee)}))).apply(this,arguments)}function getSourceDescription(t,e,n){return _getSourceDescription.apply(this,arguments)}function _getSourceDescription(){return(_getSourceDescription=(0,c.Z)(a().mark(function _callee2(t,e,n){return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,i.U2)(s.bl.DESCRIBE_SOURCE(t,e,n)));case 1:case"end":return r.stop()}},_callee2)}))).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/actions/page-af959a944ba0107f.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/actions/page-c88b8d4bf03c17b2.js similarity index 75% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/actions/page-af959a944ba0107f.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/actions/page-c88b8d4bf03c17b2.js index 2eb9e7415..a2295aeae 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/actions/page-af959a944ba0107f.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/actions/page-c88b8d4bf03c17b2.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[280],{2906:function(n,e,t){Promise.resolve().then(t.bind(t,3178))},3178:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ActionsPage}}),t(2265);var r=t(1032),s=t(3024),u=t(9628),c=t(7437);function ActionsPage(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.rc,{title:r.mD.MENU.ACTIONS}),(0,c.jsx)(u.aF,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=2906)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[280],{2906:function(n,e,t){Promise.resolve().then(t.bind(t,3178))},3178:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ActionsPage}}),t(2265);var r=t(1032),s=t(3024),u=t(9628),c=t(7437);function ActionsPage(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.rc,{title:r.mD.MENU.ACTIONS}),(0,c.jsx)(u.aF,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=2906)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/choose-action/page-26ce9c40e6e811e7.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/choose-action/page-9d2c2a74322e30fa.js similarity index 78% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/choose-action/page-26ce9c40e6e811e7.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/choose-action/page-9d2c2a74322e30fa.js index 109a91b0b..9b05aca49 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/choose-action/page-26ce9c40e6e811e7.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/choose-action/page-9d2c2a74322e30fa.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8],{1715:function(n,e,t){Promise.resolve().then(t.bind(t,464))},464:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ChooseActionPage}}),t(2265);var c=t(1032),o=t(4033),u=t(3024),r=t(9628),i=t(7437);function ChooseActionPage(){var n=(0,o.useRouter)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.rc,{onBackClick:function(){n.back()},title:c.mD.MENU.ACTIONS}),(0,i.jsx)(r.M3,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=1715)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8],{1715:function(n,e,t){Promise.resolve().then(t.bind(t,464))},464:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ChooseActionPage}}),t(2265);var c=t(1032),o=t(4033),u=t(3024),r=t(9628),i=t(7437);function ChooseActionPage(){var n=(0,o.useRouter)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.rc,{onBackClick:function(){n.back()},title:c.mD.MENU.ACTIONS}),(0,i.jsx)(r.M3,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=1715)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/create-action/page-5115370b0328843e.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/create-action/page-9925ce5e449c4aa0.js similarity index 89% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/create-action/page-5115370b0328843e.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/create-action/page-9925ce5e449c4aa0.js index 66bbae18d..9383aa7c2 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/create-action/page-5115370b0328843e.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/create-action/page-9925ce5e449c4aa0.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[472],{8224:function(n,e,t){Promise.resolve().then(t.bind(t,6678))},6678:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return CreateActionPage}}),t(2265);var r=t(1032),c=t(4033),u=t(3024),i=t(9628),o=t(7437);function CreateActionPage(){var n=(0,c.useRouter)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.rc,{onBackClick:function(){n.back()},title:r.mD.CREATE_ACTION}),(0,o.jsx)(i.Pn,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=8224)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[472],{8224:function(n,e,t){Promise.resolve().then(t.bind(t,6678))},6678:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return CreateActionPage}}),t(2265);var r=t(1032),c=t(4033),u=t(3024),i=t(9628),o=t(7437);function CreateActionPage(){var n=(0,c.useRouter)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.rc,{onBackClick:function(){n.back()},title:r.mD.CREATE_ACTION}),(0,o.jsx)(i.Pn,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=8224)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/edit-action/page-06d6c829640e7021.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/edit-action/page-421d5e831a7b4a6f.js similarity index 78% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/edit-action/page-06d6c829640e7021.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/edit-action/page-421d5e831a7b4a6f.js index 0d483167c..af9b6f4d1 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/edit-action/page-06d6c829640e7021.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(actions)/edit-action/page-421d5e831a7b4a6f.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[832],{1194:function(n,t,e){Promise.resolve().then(e.bind(e,6376))},6376:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return EditActionPage}}),e(2265);var c=e(1032),i=e(4033),u=e(3024),r=e(9628),o=e(7437);function EditActionPage(){var n=(0,i.useRouter)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.rc,{onBackClick:function(){n.back()},title:c.mD.EDIT_ACTION}),(0,o.jsx)(r.bI,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=1194)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[832],{1194:function(n,t,e){Promise.resolve().then(e.bind(e,6376))},6376:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return EditActionPage}}),e(2265);var c=e(1032),i=e(4033),u=e(3024),r=e(9628),o=e(7437);function EditActionPage(){var n=(0,i.useRouter)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.rc,{onBackClick:function(){n.back()},title:c.mD.EDIT_ACTION}),(0,o.jsx)(r.bI,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=1194)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/create-destination/page-0eadb87435470f70.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/create-destination/page-456bd48471b4b7a3.js similarity index 85% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/create-destination/page-0eadb87435470f70.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/create-destination/page-456bd48471b4b7a3.js index 7acabaabd..059c5d394 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/create-destination/page-0eadb87435470f70.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/create-destination/page-456bd48471b4b7a3.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[814],{4282:function(e,n,t){Promise.resolve().then(t.bind(t,2769))},2769:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return CreateNewDestinationPage}});var u=t(3884),i=t(7437);function CreateNewDestinationPage(){return(0,i.jsx)(u.kt,{})}}},function(e){e.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return e(e.s=4282)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[814],{4282:function(e,n,t){Promise.resolve().then(t.bind(t,2769))},2769:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return CreateNewDestinationPage}});var u=t(3884),i=t(7437);function CreateNewDestinationPage(){return(0,i.jsx)(u.kt,{})}}},function(e){e.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return e(e.s=4282)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/destinations/page-1833cc7f15dd29a2.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/destinations/page-6919d35a2eea53be.js similarity index 88% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/destinations/page-1833cc7f15dd29a2.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/destinations/page-6919d35a2eea53be.js index ee8cdeab7..9c99b696f 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/destinations/page-1833cc7f15dd29a2.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/destinations/page-6919d35a2eea53be.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[668],{2426:function(n,e,t){Promise.resolve().then(t.bind(t,8584))},8584:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return DestinationDashboardPage}});var r=t(1032),s=t(3024),i=t(9628),u=t(7437);function DestinationDashboardPage(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.rc,{title:r.mD.MENU.DESTINATIONS}),(0,u.jsx)(i.Z9,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=2426)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[668],{2426:function(n,e,t){Promise.resolve().then(t.bind(t,8584))},8584:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return DestinationDashboardPage}});var r=t(1032),s=t(3024),i=t(9628),u=t(7437);function DestinationDashboardPage(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.rc,{title:r.mD.MENU.DESTINATIONS}),(0,u.jsx)(i.Z9,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=2426)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/edit-destination/page-2e571d1dabad07ae.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/edit-destination/page-cef48ef1b3b0c33f.js similarity index 85% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/edit-destination/page-2e571d1dabad07ae.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/edit-destination/page-cef48ef1b3b0c33f.js index e3826cc6f..54d8a9e3a 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/edit-destination/page-2e571d1dabad07ae.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/edit-destination/page-cef48ef1b3b0c33f.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[729],{5482:function(n,e,t){Promise.resolve().then(t.bind(t,2427))},2427:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ManageDestinationPage}});var u=t(3884),i=t(7437);function ManageDestinationPage(){return(0,i.jsx)(u.On,{})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=5482)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[729],{5482:function(n,e,t){Promise.resolve().then(t.bind(t,2427))},2427:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ManageDestinationPage}});var u=t(3884),i=t(7437);function ManageDestinationPage(){return(0,i.jsx)(u.On,{})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=5482)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/select-destination/page-6eaf124c19be38be.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/select-destination/page-a8b34a4a7118de62.js similarity index 86% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/select-destination/page-6eaf124c19be38be.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/select-destination/page-a8b34a4a7118de62.js index bbe8f4213..c95d70331 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/select-destination/page-6eaf124c19be38be.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(destinations)/select-destination/page-a8b34a4a7118de62.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[117],{1459:function(e,n,t){Promise.resolve().then(t.bind(t,3078))},3078:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return CreateDestinationPage}});var i=t(3884),r=t(7437);function CreateDestinationPage(){return(0,r.jsx)("div",{style:{height:"100vh"},children:(0,r.jsx)(i.HU,{})})}}},function(e){e.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return e(e.s=1459)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[117],{1459:function(e,n,t){Promise.resolve().then(t.bind(t,3078))},3078:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return CreateDestinationPage}});var i=t(3884),r=t(7437);function CreateDestinationPage(){return(0,r.jsx)("div",{style:{height:"100vh"},children:(0,r.jsx)(i.HU,{})})}}},function(e){e.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return e(e.s=1459)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/choose-rule/page-5fd56409951fea1c.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/choose-rule/page-b47c17fdea99760d.js similarity index 89% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/choose-rule/page-5fd56409951fea1c.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/choose-rule/page-b47c17fdea99760d.js index 5416d88d0..b7e0f27b8 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/choose-rule/page-5fd56409951fea1c.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/choose-rule/page-b47c17fdea99760d.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[626],{1231:function(n,e,t){Promise.resolve().then(t.bind(t,5999))},5999:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ChooseInstrumentationRulesPage}}),t(2265);var u=t(1032),s=t(4033),r=t(3024),o=t(9628),c=t(7437);function ChooseInstrumentationRulesPage(){var n=(0,s.useRouter)();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.rc,{onBackClick:function(){n.back()},title:u.mD.MENU.INSTRUMENTATION_RULES}),(0,c.jsx)(o.s0,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=1231)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[626],{1231:function(n,e,t){Promise.resolve().then(t.bind(t,5999))},5999:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ChooseInstrumentationRulesPage}}),t(2265);var u=t(1032),s=t(4033),r=t(3024),o=t(9628),c=t(7437);function ChooseInstrumentationRulesPage(){var n=(0,s.useRouter)();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.rc,{onBackClick:function(){n.back()},title:u.mD.MENU.INSTRUMENTATION_RULES}),(0,c.jsx)(o.s0,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=1231)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/create-rule/page-9a2ad782b0241039.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/create-rule/page-f0b192b8eded7b66.js similarity index 89% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/create-rule/page-9a2ad782b0241039.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/create-rule/page-f0b192b8eded7b66.js index 5752973e9..b369c08ef 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/create-rule/page-9a2ad782b0241039.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/create-rule/page-f0b192b8eded7b66.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[741],{5987:function(n,e,t){Promise.resolve().then(t.bind(t,6706))},6706:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return CreateActionPage}}),t(2265);var r=t(1032),c=t(4033),u=t(3024),i=t(9628),o=t(7437);function CreateActionPage(){var n=(0,c.useRouter)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.rc,{onBackClick:function(){n.back()},title:r.mD.CREATE_INSTRUMENTATION_RULE}),(0,o.jsx)(i.Jg,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=5987)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[741],{5987:function(n,e,t){Promise.resolve().then(t.bind(t,6706))},6706:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return CreateActionPage}}),t(2265);var r=t(1032),c=t(4033),u=t(3024),i=t(9628),o=t(7437);function CreateActionPage(){var n=(0,c.useRouter)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.rc,{onBackClick:function(){n.back()},title:r.mD.CREATE_INSTRUMENTATION_RULE}),(0,o.jsx)(i.Jg,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=5987)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/edit-rule/page-f89f31f8bad14da8.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/edit-rule/page-1ef5e1f10295d805.js similarity index 89% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/edit-rule/page-f89f31f8bad14da8.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/edit-rule/page-1ef5e1f10295d805.js index 424bd23cb..8093e308a 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/edit-rule/page-f89f31f8bad14da8.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/edit-rule/page-1ef5e1f10295d805.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99],{6497:function(n,t,e){Promise.resolve().then(e.bind(e,7461))},7461:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return EditInstrumentationRulePage}}),e(2265);var u=e(4033),i=e(3024),r=e(9628),c=e(7437);function EditInstrumentationRulePage(){var n=(0,u.useRouter)();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i.rc,{onBackClick:function(){n.back()},title:"Edit Instrumentation Rule"}),(0,c.jsx)(r.cA,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=6497)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99],{6497:function(n,t,e){Promise.resolve().then(e.bind(e,7461))},7461:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return EditInstrumentationRulePage}}),e(2265);var u=e(4033),i=e(3024),r=e(9628),c=e(7437);function EditInstrumentationRulePage(){var n=(0,u.useRouter)();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i.rc,{onBackClick:function(){n.back()},title:"Edit Instrumentation Rule"}),(0,c.jsx)(r.cA,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=6497)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/instrumentation-rules/page-ac4a294b9fa9bcdb.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/instrumentation-rules/page-9859babba926961d.js similarity index 88% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/instrumentation-rules/page-ac4a294b9fa9bcdb.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/instrumentation-rules/page-9859babba926961d.js index dae2f57af..73ede3c5f 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/instrumentation-rules/page-ac4a294b9fa9bcdb.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(instrumentation-rules)/instrumentation-rules/page-9859babba926961d.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[365],{9788:function(n,e,t){Promise.resolve().then(t.bind(t,3509))},3509:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return InstrumentationRulesPage}}),t(2265);var u=t(1032),r=t(3024),s=t(8078),i=t(7437);function InstrumentationRulesPage(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.rc,{title:u.mD.MENU.INSTRUMENTATION_RULES}),(0,i.jsx)(s.Nc,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=9788)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[365],{9788:function(n,e,t){Promise.resolve().then(t.bind(t,3509))},3509:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return InstrumentationRulesPage}}),t(2265);var u=t(1032),r=t(3024),s=t(8078),i=t(7437);function InstrumentationRulesPage(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.rc,{title:u.mD.MENU.INSTRUMENTATION_RULES}),(0,i.jsx)(s.Nc,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=9788)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/edit-source/page-1d830d5816b1cb98.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/edit-source/page-ac30dc7538b65a92.js similarity index 84% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/edit-source/page-1d830d5816b1cb98.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/edit-source/page-ac30dc7538b65a92.js index f8f9a9014..3ed9f8dfd 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/edit-source/page-1d830d5816b1cb98.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/edit-source/page-ac30dc7538b65a92.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[761],{5280:function(n,e,u){Promise.resolve().then(u.bind(u,7334))},7334:function(n,e,u){"use strict";u.r(e),u.d(e,{default:function(){return EditSourcePage}}),u(2265);var t=u(9628),r=u(7437);function EditSourcePage(){return(0,r.jsx)(t.ZJ,{})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=5280)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[761],{5280:function(n,e,u){Promise.resolve().then(u.bind(u,7334))},7334:function(n,e,u){"use strict";u.r(e),u.d(e,{default:function(){return EditSourcePage}}),u(2265);var t=u(9628),r=u(7437);function EditSourcePage(){return(0,r.jsx)(t.ZJ,{})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=5280)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/select-sources/page-2ae36bdb7f956858.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/select-sources/page-7aee0d475614971c.js similarity index 85% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/select-sources/page-2ae36bdb7f956858.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/select-sources/page-7aee0d475614971c.js index 9341ff518..9c988a756 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/select-sources/page-2ae36bdb7f956858.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/select-sources/page-7aee0d475614971c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[440],{9127:function(e,n,u){Promise.resolve().then(u.bind(u,8393))},8393:function(e,n,u){"use strict";u.r(n),u.d(n,{default:function(){return CreateNewSourcesPage}});var r=u(9628),t=u(7437);function CreateNewSourcesPage(){return(0,t.jsx)(r.$G,{})}}},function(e){e.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return e(e.s=9127)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[440],{9127:function(e,n,u){Promise.resolve().then(u.bind(u,8393))},8393:function(e,n,u){"use strict";u.r(n),u.d(n,{default:function(){return CreateNewSourcesPage}});var r=u(9628),t=u(7437);function CreateNewSourcesPage(){return(0,t.jsx)(r.$G,{})}}},function(e){e.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return e(e.s=9127)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/sources/page-371b1242364c18fe.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/sources/page-a2185e7c3a28f3ba.js similarity index 75% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/sources/page-371b1242364c18fe.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/sources/page-a2185e7c3a28f3ba.js index 6b9e95caa..35b33c66c 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/sources/page-371b1242364c18fe.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/(sources)/sources/page-a2185e7c3a28f3ba.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{159:function(n,e,r){Promise.resolve().then(r.bind(r,927))},927:function(n,e,r){"use strict";r.r(e),r.d(e,{default:function(){return SourcesPage}}),r(2265);var t=r(1032),u=r(3024),s=r(9628),c=r(7437);function SourcesPage(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u.rc,{title:t.mD.MENU.SOURCES}),(0,c.jsx)(s.mj,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=159)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{159:function(n,e,r){Promise.resolve().then(r.bind(r,927))},927:function(n,e,r){"use strict";r.r(e),r.d(e,{default:function(){return SourcesPage}}),r(2265);var t=r(1032),u=r(3024),s=r(9628),c=r(7437);function SourcesPage(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u.rc,{title:t.mD.MENU.SOURCES}),(0,c.jsx)(s.mj,{})]})}}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=159)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/layout-22935cb374432dc2.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/layout-6a84a7ad7a1e10cf.js similarity index 100% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/layout-22935cb374432dc2.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/layout-6a84a7ad7a1e10cf.js diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/overview/page-d7e119724b8233eb.js b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/overview/page-83263148b9ae3804.js similarity index 75% rename from frontend/webapp/dep-out/_next/static/chunks/app/(overview)/overview/page-d7e119724b8233eb.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(overview)/overview/page-83263148b9ae3804.js index a42a79b3b..25375e5e1 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/overview/page-d7e119724b8233eb.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(overview)/overview/page-83263148b9ae3804.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[202],{869:function(e,n,r){Promise.resolve().then(r.bind(r,7740))},7740:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return OverviewPage}}),r(2265);var t=r(1032),u=r(3024),i=r(9628),s=r(7437);function OverviewPage(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.rc,{title:t.mD.MENU.OVERVIEW}),(0,s.jsx)(i.F0,{})]})}}},function(e){e.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return e(e.s=869)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[202],{869:function(e,n,r){Promise.resolve().then(r.bind(r,7740))},7740:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return OverviewPage}}),r(2265);var t=r(1032),u=r(3024),i=r(9628),s=r(7437);function OverviewPage(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.rc,{title:t.mD.MENU.OVERVIEW}),(0,s.jsx)(i.F0,{})]})}}},function(e){e.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return e(e.s=869)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-destination/page-38fa555f414d3df1.js b/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-destination/page-c026dd87394bfd9d.js similarity index 96% rename from frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-destination/page-38fa555f414d3df1.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-destination/page-c026dd87394bfd9d.js index 34d852a3e..ac624b6ef 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-destination/page-38fa555f414d3df1.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-destination/page-c026dd87394bfd9d.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831],{4599:function(n,e,i){Promise.resolve().then(i.bind(i,999))},999:function(n,e,i){"use strict";i.r(e),i.d(e,{default:function(){return ChooseDestinationPage}}),i(2265);var t=i(3024),r=i(9628),o=i(8823),s=i(7437);function ChooseDestinationPage(){return(0,s.jsxs)(o._z,{children:[(0,s.jsx)(o.qe,{children:(0,s.jsx)(t.YH,{currentStepIndex:1})}),(0,s.jsx)(o.UK,{children:(0,s.jsx)(r.aM,{})})]})}},8823:function(n,e,i){"use strict";i.d(e,{K7:function(){return o},UK:function(){return d},_z:function(){return a},lV:function(){return r},qe:function(){return s}});var t=i(3587),r=t.ZP.div.withConfig({displayName:"styled__SetupPageContainer",componentId:"sc-fisy1u-0"})(["width:100vw;height:100vh;background:var( --gradient-dark,radial-gradient( 44.09% 58.18% at 100% -14%,rgba(150,242,255,0.4) 0%,rgba(150,242,255,0) 61.91% ),linear-gradient(181deg,#091824 0%,#2b2f56 100%) );display:flex;flex-direction:column;align-items:center;"]),o=t.ZP.div.withConfig({displayName:"styled__LogoWrapper",componentId:"sc-fisy1u-1"})(["position:absolute;top:20px;left:20px;"]),s=t.ZP.div.withConfig({displayName:"styled__StepListWrapper",componentId:"sc-fisy1u-2"})(["height:5%;padding:32px;width:100%;display:inline-flex;justify-content:center;"]),a=t.ZP.div.withConfig({displayName:"styled__PageContainer",componentId:"sc-fisy1u-3"})(["height:100vh;"]),d=t.ZP.div.withConfig({displayName:"styled__CardWrapper",componentId:"sc-fisy1u-4"})(["height:85%;"])}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=4599)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831],{4599:function(n,e,i){Promise.resolve().then(i.bind(i,999))},999:function(n,e,i){"use strict";i.r(e),i.d(e,{default:function(){return ChooseDestinationPage}}),i(2265);var t=i(3024),r=i(9628),o=i(8823),s=i(7437);function ChooseDestinationPage(){return(0,s.jsxs)(o._z,{children:[(0,s.jsx)(o.qe,{children:(0,s.jsx)(t.YH,{currentStepIndex:1})}),(0,s.jsx)(o.UK,{children:(0,s.jsx)(r.aM,{})})]})}},8823:function(n,e,i){"use strict";i.d(e,{K7:function(){return o},UK:function(){return d},_z:function(){return a},lV:function(){return r},qe:function(){return s}});var t=i(3587),r=t.ZP.div.withConfig({displayName:"styled__SetupPageContainer",componentId:"sc-fisy1u-0"})(["width:100vw;height:100vh;background:var( --gradient-dark,radial-gradient( 44.09% 58.18% at 100% -14%,rgba(150,242,255,0.4) 0%,rgba(150,242,255,0) 61.91% ),linear-gradient(181deg,#091824 0%,#2b2f56 100%) );display:flex;flex-direction:column;align-items:center;"]),o=t.ZP.div.withConfig({displayName:"styled__LogoWrapper",componentId:"sc-fisy1u-1"})(["position:absolute;top:20px;left:20px;"]),s=t.ZP.div.withConfig({displayName:"styled__StepListWrapper",componentId:"sc-fisy1u-2"})(["height:5%;padding:32px;width:100%;display:inline-flex;justify-content:center;"]),a=t.ZP.div.withConfig({displayName:"styled__PageContainer",componentId:"sc-fisy1u-3"})(["height:100vh;"]),d=t.ZP.div.withConfig({displayName:"styled__CardWrapper",componentId:"sc-fisy1u-4"})(["height:85%;"])}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=4599)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-sources/page-bd300024a2ea40a8.js b/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-sources/page-83436b0604dba7c3.js similarity index 92% rename from frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-sources/page-bd300024a2ea40a8.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-sources/page-83436b0604dba7c3.js index 133d05769..930573f7f 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-sources/page-bd300024a2ea40a8.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/choose-sources/page-83436b0604dba7c3.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[742],{5444:function(e,n,i){Promise.resolve().then(i.bind(i,1863))},1863:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return ChooseSourcesPage}}),i(2265);var t=i(3024),r=i(9628),s=i(8823),o=i(7437);function ChooseSourcesPage(){return(0,o.jsxs)(s._z,{children:[(0,o.jsx)(s.qe,{children:(0,o.jsx)(t.YH,{currentStepIndex:0})}),(0,o.jsx)(s.UK,{children:(0,o.jsx)(r.Ks,{})})]})}},8823:function(e,n,i){"use strict";i.d(n,{K7:function(){return s},UK:function(){return a},_z:function(){return d},lV:function(){return r},qe:function(){return o}});var t=i(3587),r=t.ZP.div.withConfig({displayName:"styled__SetupPageContainer",componentId:"sc-fisy1u-0"})(["width:100vw;height:100vh;background:var( --gradient-dark,radial-gradient( 44.09% 58.18% at 100% -14%,rgba(150,242,255,0.4) 0%,rgba(150,242,255,0) 61.91% ),linear-gradient(181deg,#091824 0%,#2b2f56 100%) );display:flex;flex-direction:column;align-items:center;"]),s=t.ZP.div.withConfig({displayName:"styled__LogoWrapper",componentId:"sc-fisy1u-1"})(["position:absolute;top:20px;left:20px;"]),o=t.ZP.div.withConfig({displayName:"styled__StepListWrapper",componentId:"sc-fisy1u-2"})(["height:5%;padding:32px;width:100%;display:inline-flex;justify-content:center;"]),d=t.ZP.div.withConfig({displayName:"styled__PageContainer",componentId:"sc-fisy1u-3"})(["height:100vh;"]),a=t.ZP.div.withConfig({displayName:"styled__CardWrapper",componentId:"sc-fisy1u-4"})(["height:85%;"])}},function(e){e.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return e(e.s=5444)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[742],{5444:function(e,n,i){Promise.resolve().then(i.bind(i,1863))},1863:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return ChooseSourcesPage}}),i(2265);var t=i(3024),r=i(9628),s=i(8823),o=i(7437);function ChooseSourcesPage(){return(0,o.jsxs)(s._z,{children:[(0,o.jsx)(s.qe,{children:(0,o.jsx)(t.YH,{currentStepIndex:0})}),(0,o.jsx)(s.UK,{children:(0,o.jsx)(r.Ks,{})})]})}},8823:function(e,n,i){"use strict";i.d(n,{K7:function(){return s},UK:function(){return a},_z:function(){return d},lV:function(){return r},qe:function(){return o}});var t=i(3587),r=t.ZP.div.withConfig({displayName:"styled__SetupPageContainer",componentId:"sc-fisy1u-0"})(["width:100vw;height:100vh;background:var( --gradient-dark,radial-gradient( 44.09% 58.18% at 100% -14%,rgba(150,242,255,0.4) 0%,rgba(150,242,255,0) 61.91% ),linear-gradient(181deg,#091824 0%,#2b2f56 100%) );display:flex;flex-direction:column;align-items:center;"]),s=t.ZP.div.withConfig({displayName:"styled__LogoWrapper",componentId:"sc-fisy1u-1"})(["position:absolute;top:20px;left:20px;"]),o=t.ZP.div.withConfig({displayName:"styled__StepListWrapper",componentId:"sc-fisy1u-2"})(["height:5%;padding:32px;width:100%;display:inline-flex;justify-content:center;"]),d=t.ZP.div.withConfig({displayName:"styled__PageContainer",componentId:"sc-fisy1u-3"})(["height:100vh;"]),a=t.ZP.div.withConfig({displayName:"styled__CardWrapper",componentId:"sc-fisy1u-4"})(["height:85%;"])}},function(e){e.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return e(e.s=5444)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/connect-destination/page-2636c70e13aa6522.js b/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/connect-destination/page-b3f4e9ebeba02698.js similarity index 92% rename from frontend/webapp/dep-out/_next/static/chunks/app/(setup)/connect-destination/page-2636c70e13aa6522.js rename to frontend/webapp/dep-out/_next/static/chunks/app/(setup)/connect-destination/page-b3f4e9ebeba02698.js index 8c1631d54..3bbf314e4 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/connect-destination/page-2636c70e13aa6522.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/(setup)/connect-destination/page-b3f4e9ebeba02698.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[263],{7032:function(n,e,t){Promise.resolve().then(t.bind(t,74))},74:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ConnectDestinationPage}});var i=t(3024),r=t(9628),o=t(8823),s=t(7437);function ConnectDestinationPage(){return(0,s.jsxs)(o._z,{children:[(0,s.jsx)(o.qe,{children:(0,s.jsx)(i.YH,{currentStepIndex:2})}),(0,s.jsx)(o.UK,{children:(0,s.jsx)(r.mn,{})})]})}},8823:function(n,e,t){"use strict";t.d(e,{K7:function(){return o},UK:function(){return d},_z:function(){return a},lV:function(){return r},qe:function(){return s}});var i=t(3587),r=i.ZP.div.withConfig({displayName:"styled__SetupPageContainer",componentId:"sc-fisy1u-0"})(["width:100vw;height:100vh;background:var( --gradient-dark,radial-gradient( 44.09% 58.18% at 100% -14%,rgba(150,242,255,0.4) 0%,rgba(150,242,255,0) 61.91% ),linear-gradient(181deg,#091824 0%,#2b2f56 100%) );display:flex;flex-direction:column;align-items:center;"]),o=i.ZP.div.withConfig({displayName:"styled__LogoWrapper",componentId:"sc-fisy1u-1"})(["position:absolute;top:20px;left:20px;"]),s=i.ZP.div.withConfig({displayName:"styled__StepListWrapper",componentId:"sc-fisy1u-2"})(["height:5%;padding:32px;width:100%;display:inline-flex;justify-content:center;"]),a=i.ZP.div.withConfig({displayName:"styled__PageContainer",componentId:"sc-fisy1u-3"})(["height:100vh;"]),d=i.ZP.div.withConfig({displayName:"styled__CardWrapper",componentId:"sc-fisy1u-4"})(["height:85%;"])}},function(n){n.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return n(n.s=7032)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[263],{7032:function(n,e,t){Promise.resolve().then(t.bind(t,74))},74:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ConnectDestinationPage}});var i=t(3024),r=t(9628),o=t(8823),s=t(7437);function ConnectDestinationPage(){return(0,s.jsxs)(o._z,{children:[(0,s.jsx)(o.qe,{children:(0,s.jsx)(i.YH,{currentStepIndex:2})}),(0,s.jsx)(o.UK,{children:(0,s.jsx)(r.mn,{})})]})}},8823:function(n,e,t){"use strict";t.d(e,{K7:function(){return o},UK:function(){return d},_z:function(){return a},lV:function(){return r},qe:function(){return s}});var i=t(3587),r=i.ZP.div.withConfig({displayName:"styled__SetupPageContainer",componentId:"sc-fisy1u-0"})(["width:100vw;height:100vh;background:var( --gradient-dark,radial-gradient( 44.09% 58.18% at 100% -14%,rgba(150,242,255,0.4) 0%,rgba(150,242,255,0) 61.91% ),linear-gradient(181deg,#091824 0%,#2b2f56 100%) );display:flex;flex-direction:column;align-items:center;"]),o=i.ZP.div.withConfig({displayName:"styled__LogoWrapper",componentId:"sc-fisy1u-1"})(["position:absolute;top:20px;left:20px;"]),s=i.ZP.div.withConfig({displayName:"styled__StepListWrapper",componentId:"sc-fisy1u-2"})(["height:5%;padding:32px;width:100%;display:inline-flex;justify-content:center;"]),a=i.ZP.div.withConfig({displayName:"styled__PageContainer",componentId:"sc-fisy1u-3"})(["height:100vh;"]),d=i.ZP.div.withConfig({displayName:"styled__CardWrapper",componentId:"sc-fisy1u-4"})(["height:85%;"])}},function(n){n.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return n(n.s=7032)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/layout-c0a6904761fd962b.js b/frontend/webapp/dep-out/_next/static/chunks/app/layout-f1bf1bb53a8c1c88.js similarity index 94% rename from frontend/webapp/dep-out/_next/static/chunks/app/layout-c0a6904761fd962b.js rename to frontend/webapp/dep-out/_next/static/chunks/app/layout-f1bf1bb53a8c1c88.js index 8a9884583..09434d329 100644 --- a/frontend/webapp/dep-out/_next/static/chunks/app/layout-c0a6904761fd962b.js +++ b/frontend/webapp/dep-out/_next/static/chunks/app/layout-f1bf1bb53a8c1c88.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{868:function(e,n,r){Promise.resolve().then(r.bind(r,9228))},9228:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return RootLayout}}),r(2265);var i=r(3103),t=r(3672),o=r(3587),s=r(3024),u=r(9608),d=r(3046),c=r(7437);function ReduxProvider(e){var n=e.children;return(0,c.jsx)(d.zt,{store:u.h,children:n})}var l=r(9077),h=r(8727),a={margin:0,position:"fixed",scrollbarWidth:"none",width:"100vw",height:"100vh",backgroundColor:t.Z.colors.dark};function RootLayout(e){var n=e.children,r=new l.QueryClient({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!1}}});return(0,i.D_)(),(0,c.jsx)("html",{lang:"en",children:(0,c.jsx)(ReduxProvider,{children:(0,c.jsx)(l.QueryClientProvider,{client:r,children:(0,c.jsx)(o.f6,{theme:t.Z,children:(0,c.jsx)(h.nH,{children:(0,c.jsxs)("body",{suppressHydrationWarning:!0,style:a,children:[n,(0,c.jsx)(s.fn,{})]})})})})})})}}},function(e){e.O(0,[573,727,28,845,320,433,611,305,32,585,514,152,971,650,744],function(){return e(e.s=868)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{868:function(e,n,r){Promise.resolve().then(r.bind(r,9228))},9228:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return RootLayout}}),r(2265);var i=r(3103),t=r(3672),o=r(3587),s=r(3024),u=r(9608),d=r(3046),c=r(7437);function ReduxProvider(e){var n=e.children;return(0,c.jsx)(d.zt,{store:u.h,children:n})}var l=r(9077),h=r(8727),a={margin:0,position:"fixed",scrollbarWidth:"none",width:"100vw",height:"100vh",backgroundColor:t.Z.colors.dark};function RootLayout(e){var n=e.children,r=new l.QueryClient({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!1}}});return(0,i.D_)(),(0,c.jsx)("html",{lang:"en",children:(0,c.jsx)(ReduxProvider,{children:(0,c.jsx)(l.QueryClientProvider,{client:r,children:(0,c.jsx)(o.f6,{theme:t.Z,children:(0,c.jsx)(h.nH,{children:(0,c.jsxs)("body",{suppressHydrationWarning:!0,style:a,children:[n,(0,c.jsx)(s.fn,{})]})})})})})})}}},function(e){e.O(0,[573,727,28,845,320,433,267,374,32,585,785,152,971,650,744],function(){return e(e.s=868)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/page-04459fb298503811.js b/frontend/webapp/dep-out/_next/static/chunks/app/page-04459fb298503811.js deleted file mode 100644 index 2a3c5aa05..000000000 --- a/frontend/webapp/dep-out/_next/static/chunks/app/page-04459fb298503811.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{7690:function(e,n,t){Promise.resolve().then(t.bind(t,6692))},6692:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return App}});var r=t(2265),i=t(9077),o=t(4033),s=t(1032),u=t(8727),a=t(3785),c=t(9608),E=t(7437);function App(){var e=(0,o.useRouter)(),n=(0,i.useQuery)([s.vb.API_CONFIG],a.iE),t=n.data,f=n.isLoading,h=(0,i.useQuery)([s.vb.API_DESTINATIONS],a.pw),p=h.isLoading,d=h.data,l=h.error;return(0,r.useEffect)(function(){e.push(s.Z6.OVERVIEW)},[t,d]),(0,r.useEffect)(function(){console.log({data:t,destinationList:d,isConfigLoading:f}),f||p||function(){var n=t.installation;if(d.length>0){e.push(s.Z6.OVERVIEW);return}switch(n){case s.kh.NEW:case s.kh.APPS_SELECTED:e.push(s.Z6.CHOOSE_SOURCES);break;case s.kh.FINISHED:e.push(s.Z6.OVERVIEW)}}()},[t,d,f]),(0,r.useEffect)(function(){console.log({error:l}),l&&(c.h.dispatch((0,c.wN)({id:"1",message:"An error occurred",title:"Error",type:"error",target:"notification",crdType:"notification"})),e.push(s.Z6.OVERVIEW))},[l]),(0,E.jsx)(u.aN,{})}}},function(e){e.O(0,[573,727,28,845,320,611,32,514,971,650,744],function(){return e(e.s=7690)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/_next/static/chunks/app/page-eba236dcf5f0096e.js b/frontend/webapp/dep-out/_next/static/chunks/app/page-eba236dcf5f0096e.js new file mode 100644 index 000000000..4c3571ac9 --- /dev/null +++ b/frontend/webapp/dep-out/_next/static/chunks/app/page-eba236dcf5f0096e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{7690:function(n,e,t){Promise.resolve().then(t.bind(t,6692))},6692:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return App}});var u=t(2265),i=t(9077),s=t(4033),o=t(1032),r=t(8727),f=t(3785),c=t(7437);function App(){var n=(0,s.useRouter)(),e=(0,i.useQuery)([o.vb.API_DESTINATIONS],f.pw),t=e.isLoading,a=e.data;return e.error,(0,u.useEffect)(function(){console.log({destinationList:a,isDestinationLoading:t}),t||function(){if(a.length>0){n.push(o.Z6.OVERVIEW);return}n.push(o.Z6.CHOOSE_SOURCES)}()},[t]),(0,c.jsx)(r.aN,{})}}},function(n){n.O(0,[573,727,28,845,320,267,32,785,971,650,744],function(){return n(n.s=7690)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/frontend/webapp/dep-out/actions.html b/frontend/webapp/dep-out/actions.html index ca1faddea..62ec682e5 100644 --- a/frontend/webapp/dep-out/actions.html +++ b/frontend/webapp/dep-out/actions.html @@ -7,4 +7,4 @@ data-styled.g48[id="sc-cUfYYG"]{content:"bgpcdm,"}/*!sc*/ .gdJDXJ{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;}/*!sc*/ data-styled.g137[id="sc-iJABxv"]{content:"gdJDXJ,"}/*!sc*/ -Actions
Actions