@perses-dev/prometheus-plugin 0.51.0-rc.1 → 0.51.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{622.d6ff9685.js → 622.f8d6828c.js} +1 -1
- package/__mf/js/{Prometheus.bee3ab4b.js → Prometheus.b8130f02.js} +3 -3
- package/__mf/js/async/212.bd5d617a.js +1 -0
- package/__mf/js/async/3057.e568f9b6.js +7 -0
- package/__mf/js/async/{1407.a7511546.js.LICENSE.txt → 3057.e568f9b6.js.LICENSE.txt} +1 -17
- package/__mf/js/async/3090.9fb5fe73.js +2 -0
- package/__mf/js/async/3818.dde21d04.js +1 -0
- package/__mf/js/async/3980.7cea5715.js +2 -0
- package/__mf/js/async/{6333.865a46e0.js.LICENSE.txt → 3980.7cea5715.js.LICENSE.txt} +2 -2
- package/__mf/js/async/{4421.d4715b5f.js → 4421.42e889f6.js} +1 -1
- package/__mf/js/async/528.d364bb0e.js +1 -0
- package/__mf/js/async/{5345.05718f02.js → 5345.2e531d76.js} +1 -1
- package/__mf/js/async/537.6911ea2e.js +1 -0
- package/__mf/js/async/5503.7153681d.js +1 -0
- package/__mf/js/async/5913.4e5abd09.js +73 -0
- package/__mf/js/async/684.ca510333.js +1 -0
- package/__mf/js/async/8587.4891ea90.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusDatasource.f9c8cf41.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusExplorer.f3fe63da.js +1 -0
- package/__mf/js/async/{__federation_expose_PrometheusLabelNamesVariable.93231b2e.js → __federation_expose_PrometheusLabelNamesVariable.873e5f4d.js} +1 -1
- package/__mf/js/async/{__federation_expose_PrometheusLabelValuesVariable.f216888c.js → __federation_expose_PrometheusLabelValuesVariable.6696e340.js} +1 -1
- package/__mf/js/async/{__federation_expose_PrometheusPromQLVariable.0060ab26.js → __federation_expose_PrometheusPromQLVariable.ab45c7cc.js} +1 -1
- package/__mf/js/async/{__federation_expose_PrometheusTimeSeriesQuery.4e934fa1.js → __federation_expose_PrometheusTimeSeriesQuery.66611c9d.js} +1 -1
- package/__mf/js/main.855882c0.js +1 -0
- package/mf-manifest.json +189 -254
- package/mf-stats.json +192 -257
- package/package.json +7 -7
- package/__mf/css/async/8909.dacad691.css +0 -1
- package/__mf/css/async/9263.dacad691.css +0 -1
- package/__mf/js/async/1407.a7511546.js +0 -7
- package/__mf/js/async/1742.c468cb18.js +0 -1
- package/__mf/js/async/1959.ad668ff3.js +0 -23
- package/__mf/js/async/2292.37cc6c8f.js +0 -2
- package/__mf/js/async/232.f3523a60.js +0 -1
- package/__mf/js/async/2581.7c85a457.js +0 -1
- package/__mf/js/async/2641.1cd3c706.js +0 -1
- package/__mf/js/async/4425.4a89f3b8.js +0 -1
- package/__mf/js/async/4659.c56181df.js +0 -1
- package/__mf/js/async/4665.70feb200.js +0 -1
- package/__mf/js/async/4800.e23c630f.js +0 -1
- package/__mf/js/async/5409.d646c006.js +0 -1
- package/__mf/js/async/5913.c7536be1.js +0 -73
- package/__mf/js/async/6333.865a46e0.js +0 -2
- package/__mf/js/async/6386.d92b974a.js +0 -1
- package/__mf/js/async/6712.341e962a.js +0 -1
- package/__mf/js/async/7488.e0afae27.js +0 -23
- package/__mf/js/async/8909.a5d96930.js +0 -1
- package/__mf/js/async/9216.7a78af54.js +0 -1
- package/__mf/js/async/9263.2c4799b2.js +0 -1
- package/__mf/js/async/9611.58220d82.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusDatasource.19952f82.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusExplorer.035ddd24.js +0 -1
- package/__mf/js/main.8b69f3f7.js +0 -1
- /package/__mf/js/async/{2292.37cc6c8f.js.LICENSE.txt → 3090.9fb5fe73.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5913.c7536be1.js.LICENSE.txt → 5913.4e5abd09.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkPrometheus=self.webpackChunkPrometheus||[]).push([["3818"],{79119:function(e,t,o){o.d(t,{Z:()=>g});var n=o(54538),r=o(90496),i=o(82267),l=o(16838),s=o(12709),a=o(82319),u=o(51751),d=o(38062),c=o(24246);let h=e=>{let{absolute:t,children:o,classes:n,flexItem:r,light:l,orientation:s,textAlign:a,variant:u}=e;return(0,i.Z)({root:["root",t&&"absolute",u,l&&"light","vertical"===s&&"vertical",r&&"flexItem",o&&"withChildren",o&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},d.V,n)},m=(0,s.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.absolute&&t.absolute,t[o.variant],o.light&&t.light,"vertical"===o.orientation&&t.vertical,o.flexItem&&t.flexItem,o.children&&t.withChildren,o.children&&"vertical"===o.orientation&&t.withChildrenVertical,"right"===o.textAlign&&"vertical"!==o.orientation&&t.textAlignRight,"left"===o.textAlign&&"vertical"!==o.orientation&&t.textAlignLeft]}})((0,a.Z)(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,l.Fq)(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),f=(0,s.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.wrapper,"vertical"===o.orientation&&t.wrapperVertical]}})((0,a.Z)(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),p=n.forwardRef(function(e,t){let o=(0,u.i)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:i,className:l,orientation:s="horizontal",component:a=i||"vertical"===s?"div":"hr",flexItem:d=!1,light:p=!1,role:g="hr"!==a?"separator":void 0,textAlign:v="center",variant:x="fullWidth",...I}=o,T={...o,absolute:n,component:a,flexItem:d,light:p,orientation:s,role:g,textAlign:v,variant:x},w=h(T);return(0,c.jsx)(m,{as:a,className:(0,r.Z)(w.root,l),role:g,ref:t,ownerState:T,"aria-orientation":"separator"===g&&("hr"!==a||"vertical"===s)?s:void 0,...I,children:i?(0,c.jsx)(f,{className:w.wrapper,ownerState:T,children:i}):null})});p&&(p.muiSkipListHighlight=!0);let g=p},76992:function(e,t,o){o.d(t,{Z:()=>w});var n,r=o(54538),i=o(90496),l=o(82267),s=o(51640),a=o(52054),u=o(29992),d=o(36683),c=o(12709),h=o(82319),m=o(51751),f=o(44124),p=o(6749);function g(e){return(0,p.ZP)("MuiInputAdornment",e)}let v=(0,f.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var x=o(24246);let I=e=>{let{classes:t,disablePointerEvents:o,hiddenLabel:n,position:r,size:i,variant:a}=e,u={root:["root",o&&"disablePointerEvents",r&&`position${(0,s.Z)(r)}`,a,n&&"hiddenLabel",i&&`size${(0,s.Z)(i)}`]};return(0,l.Z)(u,g,t)},T=(0,c.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[`position${(0,s.Z)(o.position)}`],!0===o.disablePointerEvents&&t.disablePointerEvents,t[o.variant]]}})((0,h.Z)(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${v.positionStart}&:not(.${v.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),w=r.forwardRef(function(e,t){let o=(0,m.i)({props:e,name:"MuiInputAdornment"}),{children:l,className:s,component:c="div",disablePointerEvents:h=!1,disableTypography:f=!1,position:p,variant:g,...v}=o,w=(0,d.Z)()||{},S=g;g&&w.variant,w&&!S&&(S=w.variant);let C={...o,hiddenLabel:w.hiddenLabel,size:w.size,disablePointerEvents:h,position:p,variant:S},b=I(C);return(0,x.jsx)(u.Z.Provider,{value:null,children:(0,x.jsx)(T,{as:c,ownerState:C,className:(0,i.Z)(b.root,s),ref:t,...v,children:"string"!=typeof l||f?(0,x.jsxs)(r.Fragment,{children:["start"===p?n||(n=(0,x.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):null,l]}):(0,x.jsx)(a.Z,{color:"textSecondary",children:l})})})})},76439:function(e,t,o){o.d(t,{Z:()=>u});var n=o(54538),r=o(96858),i=o(49267),l=o(24105);let s={...n}.useSyncExternalStore;function a(e={}){let{themeId:t}=e;return function(e,o={}){let a=(0,l.Z)();a&&t&&(a=a[t]||a);let u="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:d=!1,matchMedia:c=u?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:m=!1}=(0,i.Z)({name:"MuiUseMediaQuery",props:o,theme:a}),f="function"==typeof e?e(a):e;return(void 0!==s?function(e,t,o,r,i){let l=n.useCallback(()=>t,[t]),a=n.useMemo(()=>{if(i&&o)return()=>o(e).matches;if(null!==r){let{matches:t}=r(e);return()=>t}return l},[l,e,r,i,o]),[u,d]=n.useMemo(()=>{if(null===o)return[l,()=>()=>{}];let t=o(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[l,o,e]);return s(d,u,a)}:function(e,t,o,i,l){let[s,a]=n.useState(()=>l&&o?o(e).matches:i?i(e).matches:t);return(0,r.Z)(()=>{if(!o)return;let t=o(e),n=()=>{a(t.matches)};return n(),t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e,o]),s})(f=f.replace(/^@media( ?)/m,""),d,c,h,m)}}a();let u=a({themeId:o(92994).Z})},80354:function(e,t,o){t.default=void 0;var n,r=(n=o(30265))&&n.__esModule?n:{default:n};t.default=(0,r.default)("M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z","Delete")},83675:function(e,t,o){let n;o.d(t,{OO:()=>tW,_n:()=>t1});var r=o(24246),i=o(54538),l=o(6085);function s(e){e()}function a(e,t){return o=>e(t(o))}function u(e){return void 0!==e}function d(){}function c(e,t){return t(e)}function h(...e){return e}function m(e,t){e(0,t)}function f(e){e(2)}function p(e){return e(4)}function g(e,t){return e(1,e=>t(0,e))}function v(e,t){let o=e(1,e=>{o(),t(e)});return o}function x(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function I(e,t){return e===t}function T(e=I){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function w(e){return t=>o=>{e(o)&&t(o)}}function S(e){return t=>a(t,e)}function C(e){return t=>()=>{t(e)}}function b(e,...t){let o=function(...e){return t=>e.reduceRight(c,t)}(...t);return(t,n)=>{switch(t){case 2:f(e);return;case 1:return e(1,o(n))}}}function y(e,t){return o=>n=>{o(t=e(t,n))}}function H(e){return t=>o=>{e>0?e--:t(o)}}function R(e){let t=null,o;return n=>r=>{t=r,o||(o=setTimeout(()=>{o=void 0,n(t)},e))}}function z(...e){let t=Array(e.length),o=0,n=null,r=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{let l=Math.pow(2,i);e(1,e=>{let s=o;o|=l,t[i]=e,s!==r&&o===r&&n&&(n(),n=null)})}),e=>i=>{let l=()=>{e([i].concat(t))};o===r?l():n=l}}function E(e){let t=e,o=k();return(e,n)=>{switch(e){case 0:t=n;break;case 1:n(t);break;case 4:return t}return o(e,n)}}function B(e,t){var o;return g(e,o=E(t)),o}function k(){let e=[];return(t,o)=>{switch(t){case 0:e.slice().forEach(e=>{e(o)});return;case 2:e.splice(0,e.length);return;case 1:return e.push(o),()=>{let t=e.indexOf(o);t>-1&&e.splice(t,1)}}}}function L(e){var t;return g(e,t=k()),t}function M(e,t=[],{singleton:o}={singleton:!0}){return{constructor:e,dependencies:t,id:P(),singleton:o}}let P=()=>Symbol();function F(...e){let t=k(),o=Array(e.length),n=0,r=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{let l=Math.pow(2,i);e(1,e=>{o[i]=e,(n|=l)===r&&t(0,o)})}),function(e,i){switch(e){case 2:f(t);return;case 1:return n===r&&i(o),t(1,i)}}}function O(e,t=I){return b(e,T(t))}function j(...e){return function(t,o){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(s)}}(...e.map(e=>e(1,o)))}}}var A=((n=A||{})[n.DEBUG=0]="DEBUG",n[n.INFO=1]="INFO",n[n.WARN=2]="WARN",n[n.ERROR=3]="ERROR",n);let W={0:"debug",3:"error",1:"log",2:"warn"},V=()=>typeof globalThis>"u"?window:globalThis,D=M(()=>{let e=E(3);return{log:E((t,o,n=1)=>{var r;n>=(null!=(r=V().VIRTUOSO_LOG_LEVEL)?r:p(e))&&console[W[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0});function N(e,t,o){return Z(e,t,o).callbackRef}function Z(e,t,o){let n=i.useRef(null),r=e=>{};if("u">typeof ResizeObserver){let l=i.useMemo(()=>new ResizeObserver(t=>{let n=()=>{let o=t[0].target;null!==o.offsetParent&&e(o)};o?n():requestAnimationFrame(n)}),[e]);r=e=>{e&&t?(l.observe(e),n.current=e):(n.current&&l.unobserve(n.current),n.current=null)}}return{callbackRef:r,ref:n}}function G(e,t,o,n,r,l,s,a,u){return Z(i.useCallback(o=>{let i=function(e,t,o,n){let r=e.length;if(0===r)return null;let i=[];for(let l=0;l<r;l++){let r=e.item(l);if(void 0===r.dataset.index)continue;let s=parseInt(r.dataset.index),a=parseFloat(r.dataset.knownSize),u=t(r,o);if(0===u&&n("Zero-sized element, this should not happen",{child:r},A.ERROR),u===a)continue;let d=i[i.length-1];0===i.length||d.size!==u||d.endIndex!==s-1?i.push({endIndex:s,size:u,startIndex:s}):i[i.length-1].endIndex++}return i}(o.children,t,a?"offsetWidth":"offsetHeight",r),u=o.parentElement;for(;!u.dataset.virtuosoScroller;)u=u.parentElement;let d="window"===u.lastElementChild.dataset.viewportType,c=s?a?s.scrollLeft:s.scrollTop:d?a?window.pageXOffset||document.documentElement.scrollLeft:window.pageYOffset||document.documentElement.scrollTop:a?u.scrollLeft:u.scrollTop;n({scrollHeight:s?a?s.scrollWidth:s.scrollHeight:d?a?document.documentElement.scrollWidth:document.documentElement.scrollHeight:a?u.scrollWidth:u.scrollHeight,scrollTop:Math.max(c,0),viewportHeight:s?a?s.offsetWidth:s.offsetHeight:d?a?window.innerWidth:window.innerHeight:a?u.offsetWidth:u.offsetHeight}),null==l||l(a?_("column-gap",getComputedStyle(o).columnGap,r):_("row-gap",getComputedStyle(o).rowGap,r)),null!==i&&e(i)},[e,t,r,l,s,n]),o,u)}function _(e,t,o){return"normal"===t||null!=t&&t.endsWith("px")||o(`${e} was not resolved to pixel value correctly`,t,A.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}function $(e,t,o){let n=i.useRef(null),r=i.useCallback(o=>{let r,i;if(!(null!=o&&o.offsetParent))return;let l=o.getBoundingClientRect(),s=l.width;if(t){let e=t.getBoundingClientRect(),o=l.top-e.top;i=e.height-Math.max(0,o),r=o+t.scrollTop}else i=window.innerHeight-Math.max(0,l.top),r=l.top+window.pageYOffset;n.current={offsetTop:r,visibleHeight:i,visibleWidth:s},e(n.current)},[e,t]),{callbackRef:l,ref:s}=Z(r,!0,o),a=i.useCallback(()=>{r(s.current)},[r,s]);return i.useEffect(()=>{if(!t)return window.addEventListener("scroll",a),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)};{t.addEventListener("scroll",a);let e=new ResizeObserver(()=>{requestAnimationFrame(a)});return e.observe(t),()=>{t.removeEventListener("scroll",a),e.unobserve(t)}}},[a,t]),l}let U=M(()=>{let e=k(),t=k(),o=E(0),n=k(),r=E(0),i=k(),l=k(),s=E(0),a=E(0),u=E(0),d=E(0),c=k(),h=k(),m=E(!1),f=E(!1),p=E(!1);return g(b(e,S(({scrollTop:e})=>e)),t),g(b(e,S(({scrollHeight:e})=>e)),l),g(t,r),{deviation:o,fixedFooterHeight:u,fixedHeaderHeight:a,footerHeight:d,headerHeight:s,horizontalDirection:f,scrollBy:h,scrollContainerState:e,scrollHeight:l,scrollingInProgress:m,scrollTo:c,scrollTop:t,skipAnimationFrameInResizeObserver:p,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:i}},[],{singleton:!0}),K={lvl:0};function q(e,t){let o=e.length;if(0===o)return[];let{index:n,value:r}=t(e[0]),i=[];for(let l=1;l<o;l++){let{index:o,value:s}=t(e[l]);i.push({end:o-1,start:n,value:r}),n=o,r=s}return i.push({end:1/0,start:n,value:r}),i}function Y(e){return e===K}function X(e,t){if(!Y(e))return t===e.k?e.v:t<e.k?X(e.l,t):X(e.r,t)}function J(e,t,o="k"){if(Y(e))return[-1/0,void 0];if(Number(e[o])===t)return[e.k,e.v];if(Number(e[o])<t){let n=J(e.r,t,o);return n[0]===-1/0?[e.k,e.v]:n}return J(e.l,t,o)}function Q(e,t,o){return Y(e)?ei(t,o,1):t===e.k?en(e,{k:t,v:o}):t<e.k?es(el(en(e,{l:Q(e.l,t,o)}))):es(el(en(e,{r:Q(e.r,t,o)})))}function ee(e,t,o){if(Y(e))return[];let n=J(e,t)[0];return q(function e(t,o,n){if(Y(t))return[];let{k:r,l:i,r:l,v:s}=t,a=[];return r>o&&(a=a.concat(e(i,o,n))),r>=o&&r<=n&&a.push({k:r,v:s}),r<=n&&(a=a.concat(e(l,o,n))),a}(e,n,o),({k:e,v:t})=>({index:e,value:t}))}function et(e){return Y(e)?[]:[...et(e.l),{k:e.k,v:e.v},...et(e.r)]}function eo(e){let{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(er(t))return el(en(e,{lvl:o-1}));if(!Y(t)&&!Y(t.r))return en(t.r,{l:en(t,{r:t.r.l}),lvl:o,r:en(e,{l:t.r.r,lvl:o-1})});throw Error("Unexpected empty nodes")}if(er(e))return es(en(e,{lvl:o-1}));if(Y(n)||Y(n.l))throw Error("Unexpected empty nodes");{let t=n.l,r=er(t)?n.lvl-1:n.lvl;return en(t,{l:en(e,{lvl:o-1,r:t.l}),lvl:t.lvl+1,r:es(en(n,{l:t.r,lvl:r}))})}}function en(e,t){return ei(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function er(e){return Y(e)||e.lvl>e.r.lvl}function ei(e,t,o,n=K,r=K){return{k:e,l:n,lvl:o,r,v:t}}function el(e){let{l:t}=e;return Y(t)||t.lvl!==e.lvl?e:en(t,{r:en(e,{l:t.r})})}function es(e){let{lvl:t,r:o}=e;return Y(o)||Y(o.r)||o.lvl!==t||o.r.lvl!==t?e:en(o,{l:en(e,{r:o.l}),lvl:t+1})}function ea(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function eu(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}let ed=M(()=>({recalcInProgress:E(!1)}),[],{singleton:!0});function ec(e,t,o,n=0){let r=e.length-1;for(;n<=r;){let i=Math.floor((n+r)/2),l=o(e[i],t);if(0===l)return i;if(-1===l){if(r-n<2)return i-1;r=i-1}else{if(r===n)return i;n=i+1}}throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function eh(e,t){return Math.round(e.getBoundingClientRect()[t])}function em(e){return!Y(e.groupOffsetTree)}function ef({index:e},t){return t===e?0:t<e?-1:1}function ep({offset:e},t){return t===e?0:t<e?-1:1}function eg(e,t,o){if(0===t.length)return 0;let{index:n,offset:r,size:i}=t[ec(t,e,ef)],l=e-n,s=i*l+(l-1)*o+r;return s>0?s+o:s}function ev(e,t){if(!em(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function ex(e,t,o){if("u">typeof e.groupIndex)return t.groupIndices[e.groupIndex]+1;{let n=ev("LAST"===e.index?o:e.index,t);return Math.max(0,n,Math.min(o,n))}}function eI(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,A.DEBUG);let i=e.sizeTree,l=i,s=0;if(o.length>0&&Y(i)&&2===t.length){let e=t[0].size,n=t[1].size;l=o.reduce((t,o)=>Q(Q(t,o,e),o+1,n),l)}else[l,s]=function(e,t){let o=Y(e)?0:1/0;for(let n of t){let{endIndex:t,size:r,startIndex:i}=n;if(o=Math.min(o,i),Y(e)){e=Q(e,0,r);continue}let l=ee(e,i-1,t+1);if(l.some(function(e){let{endIndex:t,size:o,startIndex:n}=e;return e=>e.start===n&&(e.end===t||e.end===1/0)&&e.value===o}(n)))continue;let s=!1,a=!1;for(let{end:o,start:n,value:i}of l)s?(t>=n||r===i)&&(e=function e(t,o){if(Y(t))return K;let{k:n,l:r,r:i}=t;if(o!==n)return o<n?eo(en(t,{l:e(r,o)})):eo(en(t,{r:e(i,o)}));if(Y(r))return i;if(Y(i))return r;{let[e,o]=function e(t){return Y(t.r)?[t.k,t.v]:e(t.r)}(r);return eo(en(t,{k:e,l:function e(t){return Y(t.r)?t.l:eo(en(t,{r:e(t.r)}))}(r),v:o}))}}(e,n)):(a=i!==r,s=!0),o>t&&t>=n&&i!==r&&(e=Q(e,t+1,i));a&&(e=Q(e,i,r))}return[e,o]}(l,t);if(l===i)return e;let{lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c}=ew(e.offsetTree,s,l,r);return{groupIndices:o,groupOffsetTree:o.reduce((e,t)=>Q(e,t,eg(t,c,r)),K),lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c,sizeTree:l}}function eT(e,t){let o=0,n=0;for(;o<e;)o+=t[n+1]-t[n]-1,n++;return n-+(o!==e)}function ew(e,t,o,n){let r=e,i=0,l=0,s=0,a=0;if(0!==t){a=ec(r,t-1,ef),s=r[a].offset;let e=J(o,t-1);i=e[0],l=e[1],r.length&&r[a].size===J(o,t)[1]&&(a-=1),r=r.slice(0,a+1)}else r=[];for(let{start:e,value:a}of ee(o,t,1/0)){let t=e-i,o=t*l+s+t*n;r.push({index:e,offset:o,size:a}),i=e,s=o,l=a}return{lastIndex:i,lastOffset:s,lastSize:l,offsetTree:r}}function eS(e){return{index:e.index,value:e}}let eC={offsetHeight:"height",offsetWidth:"width"},eb=M(([{log:e},{recalcInProgress:t}])=>{let o=k(),n=k(),r=B(n,0),i=k(),l=k(),s=E(0),a=E([]),u=E(void 0),d=E(void 0),c=E((e,t)=>eh(e,eC[t])),h=E(void 0),m=E(0),f={groupIndices:[],groupOffsetTree:K,lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:K},v=B(b(o,z(a,e,m),y(eI,f),T()),f),x=B(b(a,T(),y((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),S(({prev:e})=>e)),[]);g(b(a,w(e=>e.length>0),z(v,m),S(([e,t,o])=>{let n=e.reduce((e,n,r)=>Q(e,n,eg(n,t.offsetTree,o)||r),K);return{...t,groupIndices:e,groupOffsetTree:n}})),v),g(b(n,z(v),w(([e,{lastIndex:t}])=>e<t),S(([e,{lastIndex:t,lastSize:o}])=>[{endIndex:t,size:o,startIndex:e}])),o),g(u,d);let I=B(b(u,S(e=>void 0===e)),!0);g(b(d,w(e=>void 0!==e&&Y(p(v).sizeTree)),S(e=>[{endIndex:0,size:e,startIndex:0}])),o);let C=L(b(o,z(v),y(({sizes:e},[t,o])=>({changed:o!==e,sizes:o}),{changed:!1,sizes:f}),S(e=>e.changed)));b(s,y((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),S(e=>e.diff))(1,e=>{let{groupIndices:o}=p(v);if(e>0)t(0,!0),i(0,e+eT(e,o));else if(e<0){let t=p(x);t.length>0&&(e-=eT(-e,t)),l(0,e)}}),b(s,z(e))(1,([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},A.ERROR)});let H=L(i);g(b(i,z(v),S(([e,t])=>{let o=t.groupIndices.length>0,n=[],r=t.lastSize;if(o){let o=X(t.sizeTree,0),i=0,l=0;for(;i<e;){let e=t.groupIndices[l],s=t.groupIndices.length===l+1?1/0:t.groupIndices[l+1]-e-1;n.push({endIndex:e,size:o,startIndex:e}),n.push({endIndex:e+1+s-1,size:r,startIndex:e+1}),l++,i+=s+1}let s=et(t.sizeTree);return i!==e&&s.shift(),s.reduce((t,{k:o,v:n})=>{let r=t.ranges;return 0!==t.prevSize&&(r=[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:o+e,prevSize:n,ranges:r}},{prevIndex:e,prevSize:0,ranges:n}).ranges}return et(t.sizeTree).reduce((t,{k:o,v:n})=>({prevIndex:o+e,prevSize:n,ranges:[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:r,ranges:[]}).ranges})),o);let R=L(b(l,z(v,m),S(([e,{offsetTree:t},o])=>eg(-e,t,o))));return g(b(l,z(v,m),S(([e,t,o])=>{if(t.groupIndices.length>0){if(Y(t.sizeTree))return t;let n=K,r=p(x),i=0,l=0,s=0;for(;i<-e;){s=r[l];let e=r[l+1]-s-1;l++,i+=e+1}return n=et(t.sizeTree).reduce((t,{k:o,v:n})=>Q(t,Math.max(0,o+e),n),n),i!==-e&&(n=Q(n,0,X(t.sizeTree,s)),n=Q(n,1,J(t.sizeTree,-e+1)[1])),{...t,sizeTree:n,...ew(t.offsetTree,0,n,o)}}{let n=et(t.sizeTree).reduce((t,{k:o,v:n})=>Q(t,Math.max(0,o+e),n),K);return{...t,sizeTree:n,...ew(t.offsetTree,0,n,o)}}})),v),{beforeUnshiftWith:H,data:h,defaultItemSize:d,firstItemIndex:s,fixedItemSize:u,gap:m,groupIndices:a,itemSize:c,listRefresh:C,shiftWith:l,shiftWithOffset:R,sizeRanges:o,sizes:v,statefulTotalCount:r,totalCount:n,trackItemSizes:I,unshiftWith:i}},h(D,ed),{singleton:!0});function ey(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}let eH=M(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{let i=k(),l=k(),s=L(b(i,S(ey)));return g(b(s,S(e=>e.totalCount)),o),g(b(s,S(e=>e.groupIndices)),e),g(b(F(r,t,n),w(([e,t])=>em(t)),S(([e,t,o])=>J(t.groupOffsetTree,Math.max(e-o,0),"v")[0]),T(),S(e=>[e])),l),{groupCounts:i,topItemsIndexes:l}},h(eb,U)),eR=M(([{log:e}])=>{let t=E(!1),o=L(b(t,w(e=>e),T()));return t(1,t=>{t&&p(e)("props updated",{},A.DEBUG)}),{didMount:o,propsReady:t}},h(D),{singleton:!0}),ez="u">typeof document&&"scrollBehavior"in document.documentElement.style;function eE(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&ez||(t.behavior="auto"),t.offset||(t.offset=0),t}let eB=M(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,footerHeight:l,headerHeight:s,scrollingInProgress:a,scrollTo:u,smoothScrollTargetReached:d,viewportHeight:c},{log:h}])=>{let m=k(),f=k(),p=E(0),x=null,I=null,T=null;function w(){x&&(x(),x=null),T&&(T(),T=null),I&&(clearTimeout(I),I=null),a(0,!1)}return g(b(m,z(o,c,n,p,s,l,h),z(e,i,r),S(([[e,o,n,r,i,l,s,u],c,h,p])=>{let g=eE(e),{align:S,behavior:C,offset:y}=g,H=r-1,R=ex(g,o,H),z=eg(R,o.offsetTree,c)+l;"end"===S?(z+=h+J(o.sizeTree,R)[1]-n+p,R===H&&(z+=s)):"center"===S?z+=(h+J(o.sizeTree,R)[1]-n+p)/2:z-=i,y&&(z+=y);let E=t=>{w(),t?(u("retrying to scroll to",{location:e},A.DEBUG),m(0,e)):(f(0,!0),u("list did not change, scroll successful",{},A.DEBUG))};if(w(),"smooth"===C){let e=!1;T=t(1,t=>{e=e||t}),x=v(d,()=>{E(e)})}else x=v(b(t,e=>{let t=setTimeout(()=>{e(!1)},150);return o=>{o&&(e(!0),clearTimeout(t))}}),E);return I=setTimeout(()=>{w()},1200),a(0,!0),u("scrolling from index to",{behavior:C,index:R,top:z},A.DEBUG),{behavior:C,top:z}})),u),{scrollTargetReached:f,scrollToIndex:m,topListHeight:p}},h(eb,U,D),{singleton:!0});function ek(e,t){0==e?t():requestAnimationFrame(()=>{ek(e-1,t)})}function eL(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}let eM=M(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:i},{didMount:l}])=>{let s=E(!0),a=E(0),d=E(!0);return g(b(l,z(a),w(([e,t])=>!!t),C(!1)),s),g(b(l,z(a),w(([e,t])=>!!t),C(!1)),d),b(F(t,l),z(s,o,e,d),w(([[,e],t,{sizeTree:o},n,r])=>e&&(!Y(o)||u(n))&&!t&&!r),z(a))(1,([,e])=>{v(r,()=>{d(0,!0)}),ek(4,()=>{v(n,()=>{s(0,!0)}),i(0,e)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:a,scrolledToInitialItem:s}},h(eb,U,eB,eR),{singleton:!0});function eP(e,t){return 1.01>Math.abs(e-t)}let eF="down",eO={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},ej=M(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:i}])=>{let l=E(!1),s=E(!0),a=k(),u=k(),d=E(4),c=E(0),h=B(b(j(b(O(r),H(1),C(!0)),b(O(r),H(1),C(!1),x(100))),T()),!1),m=B(b(j(b(o,C(!0)),b(o,C(!1),x(200))),T()),!1);g(b(F(O(r),O(c)),S(([e,t])=>e<=t),T()),s),g(b(s,R(50)),u);let f=L(b(F(n,O(i),O(t),O(e),O(d)),y((e,[{scrollHeight:t,scrollTop:o},n,r,i,l])=>{let s;let a={scrollHeight:t,scrollTop:o,viewportHeight:n};if(o+n-t>-l){let t,n;return o>e.state.scrollTop?(t="SCROLLED_DOWN",n=e.state.scrollTop-o):(t="SIZE_DECREASED",n=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:n,state:a}}return{atBottom:!1,notAtBottomBecause:a.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":n<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":o<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:a}},eO),T((e,t)=>e&&e.atBottom===t.atBottom))),v=B(b(n,y((e,{scrollHeight:t,scrollTop:o,viewportHeight:n})=>{if(eP(e.scrollHeight,t))return{changed:!1,jump:0,scrollHeight:t,scrollTop:o};{let r=t-(o+n)<1;return e.scrollTop!==o&&r?{changed:!0,jump:e.scrollTop-o,scrollHeight:t,scrollTop:o}:{changed:!0,jump:0,scrollHeight:t,scrollTop:o}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),w(e=>e.changed),S(e=>e.jump)),0);g(b(f,S(e=>e.atBottom)),l),g(b(l,R(50)),a);let I=E(eF);g(b(n,S(({scrollTop:e})=>e),T(),y((e,t)=>p(m)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":eF,prevScrollTop:t},{direction:eF,prevScrollTop:0}),S(e=>e.direction)),I),g(b(n,R(50),C("none")),I);let M=E(0);return g(b(h,w(e=>!e),C(0)),M),g(b(r,R(100),z(h),w(([e,t])=>!!t),y(([e,t],[o])=>[t,o],[0,0]),S(([e,t])=>t-e)),M),{atBottomState:f,atBottomStateChange:a,atBottomThreshold:d,atTopStateChange:u,atTopThreshold:c,isAtBottom:l,isAtTop:s,isScrolling:h,lastJumpDueToItemResize:v,scrollDirection:I,scrollVelocity:M}},h(U)),eA="bottom",eW="none";function eV(e,t,o){return"number"==typeof e?"up"===o&&"top"===t||o===eF&&t===eA?e:0:"up"===o?"top"===t?e.main:e.reverse:t===eA?e.main:e.reverse}function eD(e,t){var o;return"number"==typeof e?e:null!=(o=e[t])?o:0}let eN=M(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHeight:r}])=>{let i=k(),l=E(0),s=E(0),a=E(0),u=B(b(F(O(n),O(r),O(o),O(i,eu),O(a),O(l),O(t),O(e),O(s)),S(([e,t,o,[n,r],i,l,s,a,u])=>{let d=e-a,c=Math.max(o-d,0),h=eW,m=eD(u,"top"),f=eD(u,eA);return n-=a,n+=o+s,r+=o+s,n>e+(l+s)-m&&(h="up"),(r-=a)<e-c+t+f&&(h=eF),h!==eW?[Math.max(d-o-eV(i,"top",h)-m,0),d-c-s+t+eV(i,eA,h)+f]:null}),w(e=>null!=e),T(eu)),[0,0]);return{increaseViewportBy:s,listBoundary:i,overscan:a,topListHeight:l,visibleRange:u}},h(U),{singleton:!0}),eZ={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function eG(e,t,o,n,r,i){let{lastIndex:l,lastOffset:s,lastSize:a}=r,u=0,d=0;if(e.length>0){u=e[0].offset;let t=e[e.length-1];d=t.offset+t.size}let c=o-l,h=u,m=s+c*a+(c-1)*n-d;return{bottom:d,firstItemIndex:i,items:e$(e,r,i),offsetBottom:m,offsetTop:u,top:h,topItems:e$(t,r,i),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:o}}function e_(e,t,o,n,r,i){let l=0;if(o.groupIndices.length>0)for(let t of o.groupIndices){if(t-l>=e)break;l++}let s=e+l,a=eL(t,s);return eG(Array.from({length:s}).map((e,t)=>({data:i[t+a],index:t+a,offset:0,size:0})),[],s,r,o,n)}function e$(e,t,o){if(0===e.length)return[];if(!em(t))return e.map(e=>({...e,index:e.index+o,originalIndex:e.index}));let n=e[0].index,r=e[e.length-1].index,i=[],l=ee(t.groupOffsetTree,n,r),s,a=0;for(let n of e){let e;(!s||s.end<n.index)&&(s=l.shift(),a=t.groupIndices.indexOf(s.start)),e=n.index===s.start?{index:a,type:"group"}:{groupIndex:a,index:n.index-(a+1)+o},i.push({...e,data:n.data,offset:n.offset,originalIndex:n.index,size:n.size})}return i}let eU=M(([{data:e,firstItemIndex:t,gap:o,sizes:n,totalCount:r},i,{listBoundary:l,topListHeight:s,visibleRange:a},{initialTopMostItemIndex:d,scrolledToInitialItem:c},{topListHeight:h},m,{didMount:f},{recalcInProgress:v}])=>{let x=E([]),I=E(0),C=k();g(i.topItemsIndexes,x);let y=B(b(F(f,v,O(a,eu),O(r),O(n),O(d),c,O(x),O(t),O(o),e),w(([e,t,,o,,,,,,,n])=>{let r=n&&n.length!==o;return e&&!t&&!r}),S(([,,[e,t],o,n,r,i,l,s,a,u])=>{var d;let{offsetTree:c,sizeTree:h}=n,m=p(I);if(0===o)return{...eZ,totalCount:o};if(0===e&&0===t)return 0===m?{...eZ,totalCount:o}:e_(m,r,n,s,a,u||[]);if(Y(h))return m>0?null:eG(function(e,t,o){if(em(t)){let n=ev(e,t);return[{index:J(t.groupOffsetTree,n)[0],offset:0,size:0},{data:null==o?void 0:o[0],index:n,offset:0,size:0}]}return[{data:null==o?void 0:o[0],index:e,offset:0,size:0}]}(eL(r,o),n,u),[],o,a,n,s);let f=[];if(l.length>0){let e=l[0],t=l[l.length-1],o=0;for(let n of ee(h,e,t)){let r=n.value,i=Math.max(n.start,e),l=Math.min(n.end,t);for(let e=i;e<=l;e++)f.push({data:null==u?void 0:u[e],index:e,offset:o,size:r}),o+=r}}if(!i)return eG([],f,o,a,n,s);let g=l.length>0?l[l.length-1]+1:0,v=function(e,t,o,n=0){return n>0&&(t=Math.max(t,e[ec(e,n,ef)].offset)),q(function(e,t,o,n){let r=ec(e,t,n),i=ec(e,o,n,r);return e.slice(r,i+1)}(e,t,o,ep),eS)}(c,e,t,g);if(0===v.length)return null;let x=o-1;return eG(((o=>{for(let n of v){let r=n.value,i=r.offset,l=n.start,s=r.size;if(r.offset<e){let t=(l+=Math.floor((e-r.offset+a)/(s+a)))-n.start;i+=t*s+t*a}l<g&&(i+=(g-l)*s,l=g);let d=Math.min(n.end,x);for(let e=l;e<=d&&!(i>=t);e++)o.push({data:null==u?void 0:u[e],index:e,offset:i,size:s}),i+=s+a}})(d=[]),d),f,o,a,n,s)}),w(e=>null!==e),T()),eZ);g(b(e,w(u),S(e=>null==e?void 0:e.length)),r),g(b(y,S(e=>e.topListHeight)),h),g(h,s),g(b(y,S(e=>[e.top,e.bottom])),l),g(b(y,S(e=>e.items)),C);let H=L(b(y,w(({items:e})=>e.length>0),z(r,e),w(([{items:e},t])=>e[e.length-1].originalIndex===t-1),S(([,e,t])=>[e-1,t]),T(eu),S(([e])=>e))),M=L(b(y,R(200),w(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),S(({items:e})=>e[0].index),T())),P=L(b(y,w(({items:e})=>e.length>0),S(({items:e})=>{let t=0,o=e.length-1;for(;"group"===e[t].type&&t<o;)t++;for(;"group"===e[o].type&&o>t;)o--;return{endIndex:e[o].index,startIndex:e[t].index}}),T(ea)));return{endReached:H,initialItemCount:I,itemsRendered:C,listState:y,rangeChanged:P,startReached:M,topItemsIndexes:x,...m}},h(eb,eH,eN,eM,eB,ej,eR,ed),{singleton:!0}),eK=M(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{let i=k(),l=B(b(F(o,e,n,t,r),S(([e,t,o,n,r])=>e+t+o+n+r.offsetBottom+r.bottom)),0);return g(O(l),i),{totalListHeight:l,totalListHeightChanged:i}},h(U,eU),{singleton:!0}),eq=M(([{viewportHeight:e},{totalListHeight:t}])=>{let o=E(!1),n=B(b(F(o,e,t),w(([e])=>e),S(([,e,t])=>Math.max(0,e-t)),R(0),T()),0);return{alignToBottom:o,paddingTopAddition:n}},h(U,eK),{singleton:!0});function eY(e){return!!e&&("smooth"===e?"smooth":"auto")}let eX=(e,t)=>"function"==typeof e?eY(e(t)):t&&eY(e),eJ=M(([{listRefresh:e,totalCount:t},{atBottomState:o,isAtBottom:n},{scrollToIndex:r},{scrolledToInitialItem:i},{didMount:l,propsReady:s},{log:a},{scrollingInProgress:u}])=>{let d=E(!1),c=k(),h=null;function m(e){r(0,{align:"end",behavior:e,index:"LAST"})}function f(e){setTimeout(v(o,t=>{!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||h||(p(a)("scrolling to bottom due to increased size",{},A.DEBUG),m("auto"))}),100)}return b(F(b(O(t),H(1)),l),z(O(d),n,i,u),S(([[e,t],o,n,r,i])=>{let l=t&&r,s="auto";return l&&(s=eX(o,n||i),l=l&&!!s),{followOutputBehavior:s,shouldFollow:l,totalCount:e}}),w(({shouldFollow:e})=>e))(1,({followOutputBehavior:t,totalCount:o})=>{h&&(h(),h=null),h=v(e,()=>{p(a)("following output to ",{totalCount:o},A.DEBUG),m(t),h=null})}),b(F(O(d),t,s),w(([e,,t])=>e&&t),y(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),w(({refreshed:e})=>e),z(d,t))(1,([,e])=>{p(i)&&f(!1!==e)}),c(1,()=>{f(!1!==p(d))}),F(O(d),o)(1,([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&m("auto")}),{autoscrollToBottom:c,followOutput:d}},h(eb,ej,eB,eM,eR,D,U)),eQ=M(([{data:e,firstItemIndex:t,gap:o,sizes:n},{initialTopMostItemIndex:r},{initialItemCount:i,listState:l},{didMount:s}])=>(g(b(s,z(i),w(([,e])=>0!==e),z(r,n,t,o,e),S(([[,e],t,o,n,r,i=[]])=>e_(e,t,o,n,r,i))),l),{}),h(eb,eM,eU,eR),{singleton:!0}),e0=M(([{didMount:e},{scrollTo:t},{listState:o}])=>{let n=E(0);return b(e,z(n),w(([,e])=>0!==e),S(([,e])=>({top:e})))(1,e=>{v(b(o,H(1),w(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:n}},h(eR,U,eU),{singleton:!0}),e1=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:i,viewportTop:l})=>t<l?{...r,align:null!=o?o:"start",behavior:n}:e>i?{...r,align:null!=o?o:"end",behavior:n}:null,e2=M(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:i,scrollingInProgress:l,scrollTop:s,viewportHeight:a},{scrollToIndex:u}])=>{let d=k();return g(b(d,z(t,a,o,i,r,n,s),z(e),S(([[e,t,o,n,r,i,s,a],u])=>{let{align:d,behavior:c,calculateViewLocation:h=e1,done:m,...f}=e,g=ex(e,t,n-1),x=eg(g,t.offsetTree,u)+r+i,I=h({itemBottom:x+J(t.sizeTree,g)[1],itemTop:x,locationParams:{align:d,behavior:c,...f},viewportBottom:a+o-s,viewportTop:a+i});return I?m&&v(b(l,w(e=>!e),H(p(l)?1:2)),m):m&&m(),I}),w(e=>null!==e)),u),{scrollIntoView:d}},h(eb,U,eB,eU,D),{singleton:!0}),e5=M(([{scrollVelocity:e}])=>{let t=E(!1),o=k(),n=E(!1);return g(b(e,z(n,t,o),w(([e,t])=>!!t),S(([e,t,o,n])=>{let{enter:r,exit:i}=t;if(o){if(i(e,n))return!1}else if(r(e,n))return!0;return o}),T()),t),b(F(t,e,o),z(n))(1,([[e,t,o],n])=>{e&&n&&n.change&&n.change(t,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},h(ej),{singleton:!0}),e4=M(([{scrollContainerState:e,scrollTo:t}])=>{let o=k(),n=k(),r=k(),i=E(!1),l=E(void 0);return g(b(F(o,n),S(([{scrollHeight:e,scrollTop:t,viewportHeight:o},{offsetTop:n}])=>({scrollHeight:e,scrollTop:Math.max(0,t-n),viewportHeight:o}))),e),g(b(t,z(n),S(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),r),{customScrollParent:l,useWindowScroll:i,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},h(U)),e9=M(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:l,windowScrollContainerState:s,windowViewportRect:a}])=>{let d=k(),c=E(void 0),h=E(null),m=E(null);return g(s,h),g(a,m),b(d,z(t,n,l,h,m,o))(1,([e,t,o,n,r,i,l])=>{let s=et(t.sizeTree).map(({k:e,v:t},o,n)=>{let r=n[o+1];return{endIndex:r?r.k-1:1/0,size:t,startIndex:e}});n&&null!==r&&null!==i&&(o=r.scrollTop-i.offsetTop),e({ranges:s,scrollTop:o-=l})}),g(b(c,w(u),S(e8)),r),g(b(i,z(c),w(([,e])=>void 0!==e),T(),S(([,e])=>e.ranges)),e),{getState:d,restoreStateFrom:c}},h(eb,U,eM,eR,e4));function e8(e){return{align:"start",index:0,offset:e.scrollTop}}let e6=M(([{topItemsIndexes:e}])=>{let t=E(0);return g(b(t,w(e=>e>=0),S(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},h(eU));function e3(e){let t=!1,o;return()=>(t||(t=!0,o=e()),o)}let e7=e3(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),te=M(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:i,lastJumpDueToItemResize:l,scrollDirection:s},{listState:a},{beforeUnshiftWith:u,gap:d,shiftWithOffset:c,sizes:h},{log:m},{recalcInProgress:f}])=>{let p=L(b(a,z(l),y(([,e,t,o],[{bottom:n,items:r,offsetBottom:i,totalCount:l},s])=>{let a=n+i,u=0;return t===l&&e.length>0&&r.length>0&&(0===r[0].originalIndex&&0===e[0].originalIndex||0!=(u=a-o)&&(u+=s)),[u,r,l,a]},[0,[],0,0]),w(([e])=>0!==e),z(n,s,o,r,m,f),w(([,e,t,o,,,n])=>!n&&!o&&0!==e&&"up"===t),S(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},A.DEBUG),e))));function v(o){var n,r;o>0?(t(0,{behavior:"auto",top:-o}),n=0,e(0,0)):(r=0,e(0,0),t(0,{behavior:"auto",top:-o}))}return b(p,z(e,i))(1,([t,o,n])=>{n&&e7()?e(0,o-t):v(-t)}),b(F(B(i,!1),e,f),w(([e,t,o])=>!e&&!o&&0!==t),S(([e,t])=>t),R(1))(1,v),g(b(c,S(e=>({top:-e}))),t),b(u,z(h,d),S(([e,{groupIndices:t,lastSize:o,sizeTree:n},r])=>{if(0===t.length)return e*(o+r);{let i=0,l=X(n,0),s=0,a=0;for(;s<e;){s++,i+=l;let n=t.length===a+1?1/0:t[a+1]-t[a]-1;s+n>e&&(i-=l,n=e-s+1),s+=n,i+=n*(o+r),a++}return i}}))(1,o=>{e(0,o),requestAnimationFrame(()=>{t(0,{top:o}),requestAnimationFrame(()=>{var t;t=0,e(0,0),f(0,!1)})})}),{deviation:e}},h(U,ej,eU,eb,D,ed)),tt=M(([e,t,o,n,r,i,l,s,a,u])=>({...e,...t,...o,...n,...r,...i,...l,...s,...a,...u}),h(eN,eQ,eR,e5,eK,e0,eq,e4,e2,D)),to=M(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,gap:r,groupIndices:i,itemSize:l,sizeRanges:s,sizes:a,statefulTotalCount:u,totalCount:d,trackItemSizes:c},{initialItemFinalLocationReached:h,initialTopMostItemIndex:m,scrolledToInitialItem:f},p,v,x,{listState:I,topItemsIndexes:T,...w},{scrollToIndex:C},y,{topItemCount:H},{groupCounts:R},z])=>(g(w.rangeChanged,z.scrollSeekRangeChanged),g(b(z.windowViewportRect,S(e=>e.visibleHeight)),p.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,gap:r,groupCounts:R,initialItemFinalLocationReached:h,initialTopMostItemIndex:m,scrolledToInitialItem:f,sizeRanges:s,topItemCount:H,topItemsIndexes:T,totalCount:d,...x,groupIndices:i,itemSize:l,listState:I,scrollToIndex:C,statefulTotalCount:u,trackItemSizes:c,...w,...z,...p,sizes:a,...v}),h(eb,eM,U,e9,eJ,eU,eB,te,e6,eH,tt)),tn="u">typeof document?i.useLayoutEffect:i.useEffect;function tr(e,t,o){let n=Object.keys(t.required||{}),l=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),u=i.createContext({});function c(e,o){var r,i,s,a;for(let l of(e.propsReady&&(r=e.propsReady,r(0,!1)),n)){i=e[t.required[l]],i(0,o[l])}for(let n of l){n in o&&(s=e[t.optional[n]],s(0,o[n]))}e.propsReady&&(a=e.propsReady,a(0,!0))}function h(e){return a.reduce((o,n)=>(o[n]=function(e){let t,o;let n=()=>null==t?void 0:t();return function(r,i){switch(r){case 1:return i?o===i?void 0:(n(),o=i,t=e(1,i)):(n(),d);case 2:n(),o=null;return}}}(e[t.events[n]]),o),{})}return{Component:i.forwardRef((d,m)=>{var p;let{children:g,...v}=d,[x]=i.useState(()=>{var t;return c(t=function(e){let t=new Map,o=({constructor:e,dependencies:n,id:r,singleton:i})=>{if(i&&t.has(r))return t.get(r);let l=e(n.map(e=>o(e)));return i&&t.set(r,l),l};return o(e)}(e),v),t}),[I]=i.useState(()=>h(x));return tn(()=>{for(let e of a)e in v&&(0,I[e])(1,v[e]);return()=>{Object.values(I).map(f)}},[v,I,x]),tn(()=>{c(x,v)}),i.useImperativeHandle(m,(p=s.reduce((e,o)=>(e[o]=e=>{var n;n=x[t.methods[o]],n(0,e)},e),{}),()=>p)),(0,r.jsx)(u.Provider,{value:x,children:o?(0,r.jsx)(o,{...function(e,t){let o={},n={},r=0,i=e.length;for(;r<i;)n[e[r]]=1,r+=1;for(let e in t)Object.hasOwn(n,e)||(o[e]=t[e]);return o}([...n,...l,...a],v),children:g}):g})}),useEmitter:(e,t)=>{let o=i.useContext(u)[e];tn(()=>o(1,t),[t,o])},useEmitterValue:i.version.startsWith("18")?e=>{let t=i.useContext(u)[e],o=i.useCallback(e=>t(1,e),[t]);return i.useSyncExternalStore(o,()=>p(t),()=>p(t))}:e=>{let t=i.useContext(u)[e],[o,n]=i.useState(()=>p(t));return tn(()=>t(1,e=>{e!==o&&n(()=>e)}),[t,o]),o},usePublisher:e=>{var t;return i.useCallback((t=i.useContext(u)[e],e=>(function(e,t){e(0,t)})(t,e)),[e])}}}let ti=i.createContext(void 0),tl=i.createContext(void 0),ts="u">typeof document?i.useLayoutEffect:i.useEffect;function ta(e,t,o,n=d,r,s){let a=i.useRef(null),u=i.useRef(null),c=i.useRef(null),h=i.useCallback(o=>{let n=o.target,r=n===window||n===document,i=s?r?window.pageXOffset||document.documentElement.scrollLeft:n.scrollLeft:r?window.pageYOffset||document.documentElement.scrollTop:n.scrollTop,a=s?r?document.documentElement.scrollWidth:n.scrollWidth:r?document.documentElement.scrollHeight:n.scrollHeight,d=s?r?window.innerWidth:n.offsetWidth:r?window.innerHeight:n.offsetHeight,h=()=>{e({scrollHeight:a,scrollTop:Math.max(i,0),viewportHeight:d})};o.suppressFlushSync?h():l.flushSync(h),null!==u.current&&(i===u.current||i<=0||i===a-d)&&(u.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t]);return i.useEffect(()=>{let e=r||a.current;return n(r||a.current),h({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",h,{passive:!0}),()=>{n(null),e.removeEventListener("scroll",h)}},[a,h,o,n,r]),{scrollByCallback:function(e){s&&(e={behavior:e.behavior,left:e.top}),a.current.scrollBy(e)},scrollerRef:a,scrollToCallback:function(o){let n,r,i;let l=a.current;if(!l||(s?"offsetWidth"in l&&0===l.offsetWidth:"offsetHeight"in l&&0===l.offsetHeight))return;let d="smooth"===o.behavior;l===window?(r=Math.max(eh(document.documentElement,s?"width":"height"),s?document.documentElement.scrollWidth:document.documentElement.scrollHeight),n=s?window.innerWidth:window.innerHeight,i=s?document.documentElement.scrollLeft:document.documentElement.scrollTop):(r=l[s?"scrollWidth":"scrollHeight"],n=eh(l,s?"width":"height"),i=l[s?"scrollLeft":"scrollTop"]);let h=r-n;if(o.top=Math.ceil(Math.max(Math.min(h,o.top),0)),eP(n,r)||o.top===i){e({scrollHeight:r,scrollTop:i,viewportHeight:n}),d&&t(!0);return}d?(u.current=o.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,u.current=null,t(!0)},1e3)):u.current=null,s&&(o={behavior:o.behavior,left:o.top}),l.scrollTo(o)}}}let tu="-webkit-sticky",td="sticky",tc=e3(()=>{if(typeof document>"u")return td;let e=document.createElement("div");return e.style.position=tu,e.style.position===tu?tu:td});function th(e){return e}let tm=M(()=>{let e=E(e=>`Item ${e}`),t=E(null),o=E(e=>`Group ${e}`),n=E({}),r=E(th),i=E("div"),l=E(d),s=(e,t=null)=>B(b(n,S(t=>t[e]),T()),t);return{components:n,computeItemKey:r,context:t,EmptyPlaceholder:s("EmptyPlaceholder"),FooterComponent:s("Footer"),GroupComponent:s("Group","div"),groupContent:o,HeaderComponent:s("Header"),HeaderFooterTag:i,ItemComponent:s("Item","div"),itemContent:e,ListComponent:s("List","div"),ScrollerComponent:s("Scroller","div"),scrollerRef:l,ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),TopItemListComponent:s("TopItemList")}}),tf=M(([e,t])=>({...e,...t}),h(to,tm)),tp=({height:e})=>(0,r.jsx)("div",{style:{height:e}}),tg={overflowAnchor:"none",position:tc(),zIndex:1},tv={overflowAnchor:"none"},tx={...tv,display:"inline-block",height:"100%"},tI=i.memo(function({showTopList:e=!1}){let t=tF("listState"),o=tO("sizeRanges"),n=tF("useWindowScroll"),l=tF("customScrollParent"),s=tO("windowScrollContainerState"),a=tO("scrollContainerState"),u=tF("itemContent"),c=tF("context"),h=tF("groupContent"),m=tF("trackItemSizes"),f=tF("itemSize"),p=tF("log"),g=tO("gap"),v=tF("horizontalDirection"),{callbackRef:x}=G(o,f,m,e?d:l||n?s:a,p,g,l,v,tF("skipAnimationFrameInResizeObserver")),[I,T]=i.useState(0);tP("deviation",e=>{I!==e&&T(e)});let w=tF("EmptyPlaceholder"),S=tF("ScrollSeekPlaceholder")||tp,C=tF("ListComponent"),b=tF("ItemComponent"),y=tF("GroupComponent"),H=tF("computeItemKey"),R=tF("isSeeking"),z=tF("groupIndices").length>0,E=tF("alignToBottom"),B=tF("initialItemFinalLocationReached"),k=e?{}:{boxSizing:"border-box",...v?{display:"inline-block",height:"100%",marginLeft:0!==I?I:E?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:0!==I?I:E?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...B?{}:{visibility:"hidden"}};return!e&&0===t.totalCount&&w?(0,r.jsx)(w,{...tb(w,c)}):(0,r.jsx)(C,{...tb(C,c),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:x,style:k,children:(e?t.topItems:t.items).map(e=>{let o=e.originalIndex,n=H(o+t.firstItemIndex,e.data,c);return R?(0,i.createElement)(S,{...tb(S,c),height:e.size,index:e.index,key:n,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,i.createElement)(y,{...tb(y,c),"data-index":o,"data-item-index":e.index,"data-known-size":e.size,key:n,style:tg},h(e.index,c)):(0,i.createElement)(b,{...tb(b,c),...ty(b,e.data),"data-index":o,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:n,style:v?tx:tv},z?u(e.index,e.groupIndex,e.data,c):u(e.index,e.data,c))})})}),tT={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tw={outline:"none",overflowX:"auto",position:"relative"},tS=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:{}}),tC={position:tc(),top:0,width:"100%",zIndex:1};function tb(e,t){if("string"!=typeof e)return{context:t}}function ty(e,t){return{item:"string"==typeof e?void 0:t}}let tH=i.memo(function(){let e=tF("HeaderComponent"),t=tO("headerHeight"),o=tF("HeaderFooterTag"),n=N(i.useMemo(()=>e=>{t(eh(e,"height"))},[t]),!0,tF("skipAnimationFrameInResizeObserver")),l=tF("context");return e?(0,r.jsx)(o,{ref:n,children:(0,r.jsx)(e,{...tb(e,l)})}):null}),tR=i.memo(function(){let e=tF("FooterComponent"),t=tO("footerHeight"),o=tF("HeaderFooterTag"),n=N(i.useMemo(()=>e=>{t(eh(e,"height"))},[t]),!0,tF("skipAnimationFrameInResizeObserver")),l=tF("context");return e?(0,r.jsx)(o,{ref:n,children:(0,r.jsx)(e,{...tb(e,l)})}):null});function tz({useEmitter:e,useEmitterValue:t,usePublisher:o}){return i.memo(function({children:n,style:i,...l}){let s=o("scrollContainerState"),a=t("ScrollerComponent"),u=o("smoothScrollTargetReached"),d=t("scrollerRef"),c=t("context"),h=t("horizontalDirection")||!1,{scrollByCallback:m,scrollerRef:f,scrollToCallback:p}=ta(s,u,a,d,void 0,h);return e("scrollTo",p),e("scrollBy",m),(0,r.jsx)(a,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:f,style:{...h?tw:tT,...i},tabIndex:0,...l,...tb(a,c),children:n})})}function tE({useEmitter:e,useEmitterValue:t,usePublisher:o}){return i.memo(function({children:n,style:i,...l}){let s=o("windowScrollContainerState"),a=t("ScrollerComponent"),u=o("smoothScrollTargetReached"),c=t("totalListHeight"),h=t("deviation"),m=t("customScrollParent"),f=t("context"),{scrollByCallback:p,scrollerRef:g,scrollToCallback:v}=ta(s,u,a,d,m);return ts(()=>(g.current=m||window,()=>{g.current=null}),[g,m]),e("windowScrollTo",v),e("scrollBy",p),(0,r.jsx)(a,{"data-virtuoso-scroller":!0,style:{position:"relative",...i,...0!==c?{height:c+h}:{}},...l,...tb(a,f),children:n})})}let tB=({children:e})=>{let t=i.useContext(ti),o=tO("viewportHeight"),n=tO("fixedItemHeight"),l=tF("alignToBottom"),s=tF("horizontalDirection"),u=N(i.useMemo(()=>a(o,e=>eh(e,s?"width":"height")),[o,s]),!0,tF("skipAnimationFrameInResizeObserver"));return i.useEffect(()=>{t&&(o(t.viewportHeight),n(t.itemHeight))},[t,o,n]),(0,r.jsx)("div",{"data-viewport-type":"element",ref:u,style:tS(l),children:e})},tk=({children:e})=>{let t=i.useContext(ti),o=tO("windowViewportRect"),n=tO("fixedItemHeight"),l=$(o,tF("customScrollParent"),tF("skipAnimationFrameInResizeObserver")),s=tF("alignToBottom");return i.useEffect(()=>{t&&(n(t.itemHeight),o({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,n]),(0,r.jsx)("div",{"data-viewport-type":"window",ref:l,style:tS(s),children:e})},tL=({children:e})=>{let t=tF("TopItemListComponent")||"div",o=tF("headerHeight"),n={...tC,marginTop:`${o}px`},i=tF("context");return(0,r.jsx)(t,{style:n,...tb(t,i),children:e})},{Component:tM,useEmitter:tP,useEmitterValue:tF,usePublisher:tO}=tr(tf,{events:{atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",endReached:"endReached",groupIndices:"groupIndices",isScrolling:"isScrolling",itemsRendered:"itemsRendered",rangeChanged:"rangeChanged",startReached:"startReached",totalListHeightChanged:"totalListHeightChanged"},methods:{autoscrollToBottom:"autoscrollToBottom",getState:"getState",scrollBy:"scrollBy",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollToIndex:"scrollToIndex"},optional:{alignToBottom:"alignToBottom",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",components:"components",computeItemKey:"computeItemKey",context:"context",customScrollParent:"customScrollParent",data:"data",defaultItemHeight:"defaultItemHeight",firstItemIndex:"firstItemIndex",fixedItemHeight:"fixedItemHeight",followOutput:"followOutput",groupContent:"groupContent",groupCounts:"groupCounts",headerFooterTag:"HeaderFooterTag",horizontalDirection:"horizontalDirection",increaseViewportBy:"increaseViewportBy",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",initialTopMostItemIndex:"initialTopMostItemIndex",itemContent:"itemContent",itemSize:"itemSize",logLevel:"logLevel",overscan:"overscan",restoreStateFrom:"restoreStateFrom",scrollerRef:"scrollerRef",scrollSeekConfiguration:"scrollSeekConfiguration",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver",topItemCount:"topItemCount",totalCount:"totalCount",useWindowScroll:"useWindowScroll"},required:{}},i.memo(function(e){let t=tF("useWindowScroll"),o=tF("topItemsIndexes").length>0,n=tF("customScrollParent"),i=tF("context"),l=n||t?tA:tj,s=n||t?tk:tB;return(0,r.jsxs)(l,{...e,...tb(l,i),children:[o&&(0,r.jsx)(tL,{children:(0,r.jsx)(tI,{showTopList:!0})}),(0,r.jsxs)(s,{children:[(0,r.jsx)(tH,{}),(0,r.jsx)(tI,{}),(0,r.jsx)(tR,{})]})]})})),tj=tz({useEmitter:tP,useEmitterValue:tF,usePublisher:tO}),tA=tE({useEmitter:tP,useEmitterValue:tF,usePublisher:tO}),tW=tM,tV=M(()=>{let e=E(e=>(0,r.jsxs)("td",{children:["Item $",e]})),t=E(null),o=E(null),n=E(null),i=E({}),l=E(th),s=E(d),a=(e,t=null)=>B(b(i,S(t=>t[e]),T()),t);return{components:i,computeItemKey:l,context:t,EmptyPlaceholder:a("EmptyPlaceholder"),FillerRow:a("FillerRow"),fixedFooterContent:n,fixedHeaderContent:o,itemContent:e,ScrollerComponent:a("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder"),TableBodyComponent:a("TableBody","tbody"),TableComponent:a("Table","table"),TableFooterComponent:a("TableFoot","tfoot"),TableHeadComponent:a("TableHead","thead"),TableRowComponent:a("TableRow","tr")}}),tD=M(([e,t])=>({...e,...t}),h(to,tV)),tN=({height:e})=>(0,r.jsx)("tr",{children:(0,r.jsx)("td",{style:{height:e}})}),tZ=({height:e})=>(0,r.jsx)("tr",{children:(0,r.jsx)("td",{style:{border:0,height:e,padding:0}})}),tG={overflowAnchor:"none"},t_=i.memo(function({showTopList:e=!1}){let t=tX("listState"),o=tX("computeItemKey"),n=tX("firstItemIndex"),l=tX("isSeeking"),s=tX("ScrollSeekPlaceholder")||tN,a=tX("context"),u=tX("TableRowComponent"),d=tX("fixedHeaderHeight"),c=tX("itemContent"),h=(e?t.topItems:[]).reduce((e,t,o)=>(0===o?e.push(t.size):e.push(e[o-1]+t.size),e),[]),m=(e?t.topItems:t.items).map(t=>{let r=t.originalIndex,m=o(r+n,t.data,a),f=e?0===r?0:h[r-1]:0;return l?(0,i.createElement)(s,{...tb(s,a),height:t.size,index:t.index,key:m,type:t.type||"item"}):(0,i.createElement)(u,{...tb(u,a),...ty(u,t.data),"data-index":r,"data-item-index":t.index,"data-known-size":t.size,key:m,style:e?{overflowAnchor:"none",position:"sticky",top:d+f,zIndex:2}:tG},c(t.index,t.data,a))});return(0,r.jsx)(r.Fragment,{children:m})}),t$=i.memo(function(){let e=tX("listState"),t=tX("topItemsIndexes").length>0,o=tJ("sizeRanges"),n=tX("useWindowScroll"),l=tX("customScrollParent"),s=tJ("windowScrollContainerState"),a=tJ("scrollContainerState"),u=tX("trackItemSizes"),{callbackRef:d,ref:c}=G(o,tX("itemSize"),u,l||n?s:a,tX("log"),void 0,l,!1,tX("skipAnimationFrameInResizeObserver")),[h,m]=i.useState(0);tY("deviation",e=>{h!==e&&(c.current.style.marginTop=`${e}px`,m(e))});let f=tX("EmptyPlaceholder"),p=tX("FillerRow")||tZ,g=tX("TableBodyComponent"),v=tX("paddingTopAddition"),x=tX("statefulTotalCount"),I=tX("context");if(0===x&&f)return(0,r.jsx)(f,{...tb(f,I)});let T=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),w=e.offsetTop+v+h-T,S=e.offsetBottom,C=w>0?(0,r.jsx)(p,{context:I,height:w},"padding-top"):null,b=S>0?(0,r.jsx)(p,{context:I,height:S},"padding-bottom"):null;return(0,r.jsxs)(g,{"data-testid":"virtuoso-item-list",ref:d,...tb(g,I),children:[C,t&&(0,r.jsx)(t_,{showTopList:!0}),(0,r.jsx)(t_,{}),b]})}),tU=({children:e})=>{let t=i.useContext(ti),o=tJ("viewportHeight"),n=tJ("fixedItemHeight"),l=N(i.useMemo(()=>a(o,e=>eh(e,"height")),[o]),!0,tX("skipAnimationFrameInResizeObserver"));return i.useEffect(()=>{t&&(o(t.viewportHeight),n(t.itemHeight))},[t,o,n]),(0,r.jsx)("div",{"data-viewport-type":"element",ref:l,style:tS(!1),children:e})},tK=({children:e})=>{let t=i.useContext(ti),o=tJ("windowViewportRect"),n=tJ("fixedItemHeight"),l=$(o,tX("customScrollParent"),tX("skipAnimationFrameInResizeObserver"));return i.useEffect(()=>{t&&(n(t.itemHeight),o({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,n]),(0,r.jsx)("div",{"data-viewport-type":"window",ref:l,style:tS(!1),children:e})},{Component:tq,useEmitter:tY,useEmitterValue:tX,usePublisher:tJ}=tr(tD,{events:{atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",endReached:"endReached",groupIndices:"groupIndices",isScrolling:"isScrolling",itemsRendered:"itemsRendered",rangeChanged:"rangeChanged",startReached:"startReached",totalListHeightChanged:"totalListHeightChanged"},methods:{getState:"getState",scrollBy:"scrollBy",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollToIndex:"scrollToIndex"},optional:{alignToBottom:"alignToBottom",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",components:"components",computeItemKey:"computeItemKey",context:"context",customScrollParent:"customScrollParent",data:"data",defaultItemHeight:"defaultItemHeight",firstItemIndex:"firstItemIndex",fixedFooterContent:"fixedFooterContent",fixedHeaderContent:"fixedHeaderContent",fixedItemHeight:"fixedItemHeight",followOutput:"followOutput",groupCounts:"groupCounts",increaseViewportBy:"increaseViewportBy",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",initialTopMostItemIndex:"initialTopMostItemIndex",itemContent:"itemContent",itemSize:"itemSize",logLevel:"logLevel",overscan:"overscan",restoreStateFrom:"restoreStateFrom",scrollerRef:"scrollerRef",scrollSeekConfiguration:"scrollSeekConfiguration",topItemCount:"topItemCount",totalCount:"totalCount",useWindowScroll:"useWindowScroll"},required:{}},i.memo(function(e){let t=tX("useWindowScroll"),o=tX("customScrollParent"),n=tJ("fixedHeaderHeight"),l=tJ("fixedFooterHeight"),s=tX("fixedHeaderContent"),u=tX("fixedFooterContent"),d=tX("context"),c=N(i.useMemo(()=>a(n,e=>eh(e,"height")),[n]),!0,tX("skipAnimationFrameInResizeObserver")),h=N(i.useMemo(()=>a(l,e=>eh(e,"height")),[l]),!0,tX("skipAnimationFrameInResizeObserver")),m=o||t?t0:tQ,f=o||t?tK:tU,p=tX("TableComponent"),g=tX("TableHeadComponent"),v=tX("TableFooterComponent"),x=s?(0,r.jsx)(g,{ref:c,style:{position:"sticky",top:0,zIndex:2},...tb(g,d),children:s()},"TableHead"):null,I=u?(0,r.jsx)(v,{ref:h,style:{bottom:0,position:"sticky",zIndex:1},...tb(v,d),children:u()},"TableFoot"):null;return(0,r.jsx)(m,{...e,...tb(m,d),children:(0,r.jsx)(f,{children:(0,r.jsxs)(p,{style:{borderSpacing:0,overflowAnchor:"none"},...tb(p,d),children:[x,(0,r.jsx)(t$,{},"TableBody"),I]})})})})),tQ=tz({useEmitter:tY,useEmitterValue:tX,usePublisher:tJ}),t0=tE({useEmitter:tY,useEmitterValue:tX,usePublisher:tJ}),t1=tq,t2={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},t5={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:t4,floor:t9,max:t8,min:t6,round:t3}=Math;function t7(e,t,o){return Array.from({length:t-e+1}).map((t,n)=>({data:null===o?null:o[n+e],index:n+e}))}function oe(e,t){return e&&e.width===t.width&&e.height===t.height}function ot(e,t){return e&&e.column===t.column&&e.row===t.row}let oo=M(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n},{footerHeight:r,headerHeight:i,scrollBy:l,scrollContainerState:s,scrollTo:a,scrollTop:u,smoothScrollTargetReached:d,viewportHeight:c},h,m,{didMount:f,propsReady:p},{customScrollParent:x,useWindowScroll:I,windowScrollContainerState:y,windowScrollTo:M,windowViewportRect:P},j])=>{let A=E(0),W=E(0),V=E(t2),D=E({height:0,width:0}),N=E({height:0,width:0}),Z=k(),G=k(),_=E(0),$=E(null),U=E({column:0,row:0}),K=k(),q=k(),Y=E(!1),X=E(0),J=E(!0),Q=E(!1),ee=E(!1);b(f,z(X),w(([e,t])=>!!t))(1,()=>{J(0,!1)}),b(F(f,J,N,D,X,Q),w(([e,t,o,n,,r])=>e&&!t&&0!==o.height&&0!==n.height&&!r))(1,([,,,,e])=>{Q(0,!0),ek(1,()=>{Z(0,e)}),v(b(u),()=>{t(0,[0,0]),J(0,!0)})}),g(b(q,w(e=>null!=e&&e.scrollTop>0),C(0)),W),b(f,z(q),w(([,e])=>null!=e))(1,([,e])=>{e&&(D(0,e.viewport),N(0,e.item),U(0,e.gap),e.scrollTop>0&&(Y(0,!0),v(b(u,H(1)),e=>{Y(0,!1)}),a(0,{top:e.scrollTop})))}),g(b(D,S(({height:e})=>e)),c),g(b(F(O(D,oe),O(N,oe),O(U,(e,t)=>e&&e.column===t.column&&e.row===t.row),O(u)),S(([e,t,o,n])=>({gap:o,item:t,scrollTop:n,viewport:e}))),K),g(b(F(O(A),n,O(U,ot),O(N,oe),O(D,oe),O($),O(W),O(Y),O(J),O(X)),w(([,,,,,,,e])=>!e),S(([e,[t,o],n,r,i,l,s,,a,u])=>{let d,c;let{column:h,row:m}=n,{height:f,width:p}=r,{width:g}=i;if(0===s&&(0===e||0===g))return t2;if(0===p){var v;let t=eL(u,e),o=t+Math.max(s-1,0);return v=t7(t,o,l),{...t5,items:v}}let x=on(g,p,h);a?0===t&&0===o&&s>0?(d=0,c=s-1):(d=x*t9((t+m)/(f+m)),c=t6(e-1,t8(c=x*t4((o+m)/(f+m))-1,x-1)),d=t6(c,t8(0,d))):(d=0,c=-1);let I=t7(d,c,l),{bottom:T,top:w}=or(i,n,r,I),S=t4(e/x);return{bottom:T,itemHeight:f,items:I,itemWidth:p,offsetBottom:S*f+(S-1)*m-T,offsetTop:w,top:w}})),V),g(b($,w(e=>null!==e),S(e=>e.length)),A),g(b(F(D,N,V,U),w(([e,t,{items:o}])=>o.length>0&&0!==t.height&&0!==e.height),S(([e,t,{items:o},n])=>{let{bottom:r,top:i}=or(e,n,t,o);return[i,r]}),T(eu)),t);let et=E(!1);g(b(u,z(et),S(([e,t])=>t||0!==e)),et);let eo=L(b(F(V,A),w(([{items:e}])=>e.length>0),z(et),w(([[e,t],o])=>{let n=e.items[e.items.length-1].index===t-1;return(o||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&n}),S(([[,e]])=>e-1),T())),en=L(b(O(V),w(({items:e})=>e.length>0&&0===e[0].index),C(0),T())),er=L(b(O(V),z(Y),w(([{items:e},t])=>e.length>0&&!t),S(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),T(ea),R(0)));g(er,m.scrollSeekRangeChanged),g(b(Z,z(D,N,A,U),S(([e,t,o,n,r])=>{let i=eE(e),{align:l,behavior:s,offset:a}=i,u=i.index;"LAST"===u&&(u=n-1);let d=oi(t,r,o,u=t8(0,u,t6(n-1,u)));return"end"===l?d=t3(d-t.height+o.height):"center"===l&&(d=t3(d-t.height/2+o.height/2)),a&&(d+=a),{behavior:s,top:d}})),a);let ei=B(b(V,S(e=>e.offsetBottom+e.bottom)),0);return g(b(P,S(e=>({height:e.visibleHeight,width:e.visibleWidth}))),D),{customScrollParent:x,data:$,deviation:_,footerHeight:r,gap:U,headerHeight:i,increaseViewportBy:e,initialItemCount:W,itemDimensions:N,overscan:o,restoreStateFrom:q,scrollBy:l,scrollContainerState:s,scrollHeight:G,scrollTo:a,scrollToIndex:Z,scrollTop:u,smoothScrollTargetReached:d,totalCount:A,useWindowScroll:I,viewportDimensions:D,windowScrollContainerState:y,windowScrollTo:M,windowViewportRect:P,...m,gridState:V,horizontalDirection:ee,initialTopMostItemIndex:X,totalListHeight:ei,...h,endReached:eo,propsReady:p,rangeChanged:er,startReached:en,stateChanged:K,stateRestoreInProgress:Y,...j}},h(eN,U,ej,e5,eR,e4,D));function on(e,t,o){return t8(1,t9((e+o)/(t9(t)+o)))}function or(e,t,o,n){let{height:r}=o;if(void 0===r||0===n.length)return{bottom:0,top:0};let i=oi(e,t,o,n[0].index);return{bottom:oi(e,t,o,n[n.length-1].index)+r,top:i}}function oi(e,t,o,n){let r=t9(n/on(e.width,o.width,t.column)),i=r*o.height+t8(0,r-1)*t.row;return i>0?i+t.row:i}let ol=M(()=>{let e=E(e=>`Item ${e}`),t=E({}),o=E(null),n=E("virtuoso-grid-item"),r=E("virtuoso-grid-list"),i=E(th),l=E("div"),s=E(d),a=(e,o=null)=>B(b(t,S(t=>t[e]),T()),o),u=E(!1),c=E(!1);return g(O(c),u),{components:t,computeItemKey:i,context:o,FooterComponent:a("Footer"),HeaderComponent:a("Header"),headerFooterTag:l,itemClassName:n,ItemComponent:a("Item","div"),itemContent:e,listClassName:r,ListComponent:a("List","div"),readyStateChanged:u,reportReadyState:c,ScrollerComponent:a("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder","div")}}),os=M(([e,t])=>({...e,...t}),h(oo,ol)),oa=i.memo(function(){let e=of("gridState"),t=of("listClassName"),o=of("itemClassName"),n=of("itemContent"),l=of("computeItemKey"),s=of("isSeeking"),a=op("scrollHeight"),u=of("ItemComponent"),d=of("ListComponent"),c=of("ScrollSeekPlaceholder"),h=of("context"),m=op("itemDimensions"),f=op("gap"),p=of("log"),g=of("stateRestoreInProgress"),v=op("reportReadyState"),x=N(i.useMemo(()=>e=>{a(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(t){let{height:e,width:o}=t.getBoundingClientRect();m({height:e,width:o})}f({column:ox("column-gap",getComputedStyle(e).columnGap,p),row:ox("row-gap",getComputedStyle(e).rowGap,p)})},[a,m,f,p]),!0,!1);return ts(()=>{e.itemHeight>0&&e.itemWidth>0&&v(!0)},[e]),g?null:(0,r.jsx)(d,{className:t,ref:x,...tb(d,h),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let a=l(t.index,t.data,h);return s?(0,r.jsx)(c,{...tb(c,h),height:e.itemHeight,index:t.index,width:e.itemWidth},a):(0,i.createElement)(u,{...tb(u,h),className:o,"data-index":t.index,key:a},n(t.index,t.data,h))})})}),ou=i.memo(function(){let e=of("HeaderComponent"),t=op("headerHeight"),o=of("headerFooterTag"),n=N(i.useMemo(()=>e=>{t(eh(e,"height"))},[t]),!0,!1),l=of("context");return e?(0,r.jsx)(o,{ref:n,children:(0,r.jsx)(e,{...tb(e,l)})}):null}),od=i.memo(function(){let e=of("FooterComponent"),t=op("footerHeight"),o=of("headerFooterTag"),n=N(i.useMemo(()=>e=>{t(eh(e,"height"))},[t]),!0,!1),l=of("context");return e?(0,r.jsx)(o,{ref:n,children:(0,r.jsx)(e,{...tb(e,l)})}):null}),oc=({children:e})=>{let t=i.useContext(tl),o=op("itemDimensions"),n=op("viewportDimensions"),l=N(i.useMemo(()=>e=>{n(e.getBoundingClientRect())},[n]),!0,!1);return i.useEffect(()=>{t&&(n({height:t.viewportHeight,width:t.viewportWidth}),o({height:t.itemHeight,width:t.itemWidth}))},[t,n,o]),(0,r.jsx)("div",{ref:l,style:tS(!1),children:e})},oh=({children:e})=>{let t=i.useContext(tl),o=op("windowViewportRect"),n=op("itemDimensions"),l=$(o,of("customScrollParent"),!1);return i.useEffect(()=>{t&&(n({height:t.itemHeight,width:t.itemWidth}),o({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,o,n]),(0,r.jsx)("div",{ref:l,style:tS(!1),children:e})},{useEmitter:om,useEmitterValue:of,usePublisher:op}=tr(os,{events:{atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",endReached:"endReached",isScrolling:"isScrolling",rangeChanged:"rangeChanged",readyStateChanged:"readyStateChanged",startReached:"startReached",stateChanged:"stateChanged"},methods:{scrollBy:"scrollBy",scrollTo:"scrollTo",scrollToIndex:"scrollToIndex"},optional:{components:"components",computeItemKey:"computeItemKey",context:"context",customScrollParent:"customScrollParent",data:"data",headerFooterTag:"headerFooterTag",increaseViewportBy:"increaseViewportBy",initialItemCount:"initialItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",itemClassName:"itemClassName",itemContent:"itemContent",listClassName:"listClassName",logLevel:"logLevel",overscan:"overscan",restoreStateFrom:"restoreStateFrom",scrollerRef:"scrollerRef",scrollSeekConfiguration:"scrollSeekConfiguration",totalCount:"totalCount",useWindowScroll:"useWindowScroll"}},i.memo(function({...e}){let t=of("useWindowScroll"),o=of("customScrollParent"),n=o||t?ov:og,i=o||t?oh:oc,l=of("context");return(0,r.jsx)(n,{...e,...tb(n,l),children:(0,r.jsxs)(i,{children:[(0,r.jsx)(ou,{}),(0,r.jsx)(oa,{}),(0,r.jsx)(od,{})]})})})),og=tz({useEmitter:om,useEmitterValue:of,usePublisher:op}),ov=tE({useEmitter:om,useEmitterValue:of,usePublisher:op});function ox(e,t,o){return"normal"===t||null!=t&&t.endsWith("px")||o(`${e} was not resolved to pixel value correctly`,t,A.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 3980.7cea5715.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkPrometheus=self.webpackChunkPrometheus||[]).push([["3980"],{33834:function(t,e,s){var i=s(54538),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=i.useState,u=i.useEffect,a=i.useLayoutEffect,o=i.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!r(t,s)}catch(t){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),i=n({inst:{value:s,getSnapshot:e}}),r=i[0].inst,h=i[1];return a(function(){r.value=s,r.getSnapshot=e,l(r)&&h({inst:r})},[t,s,e]),u(function(){return l(r)&&h({inst:r}),t(function(){l(r)&&h({inst:r})})},[t]),o(s),s};e.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:h},70644:function(t,e,s){t.exports=s(33834)},27474:function(t,e,s){s.r(e),s.d(e,{useIsRestoring:()=>tp,useSuspenseQuery:()=>tx,QueryClientProvider:()=>td,matchQuery:()=>f,useHydrate:()=>tA,IsRestoringProvider:()=>ty,replaceEqualDeep:()=>b,useSuspenseQueries:()=>tD,defaultShouldDehydrateQuery:()=>ti,hashQueryKey:()=>v,notifyManager:()=>k,useInfiniteQuery:()=>tL,defaultContext:()=>to,MutationObserver:()=>te,Hydrate:()=>tI,defaultShouldDehydrateMutation:()=>ts,parseMutationFilterArgs:()=>d,onlineManager:()=>F,Query:()=>L,useQueries:()=>tP,hydrate:()=>tn,parseFilterArgs:()=>c,dehydrate:()=>tr,QueryCache:()=>j,QueryClient:()=>W,CancelledError:()=>A,isCancelledError:()=>I,parseMutationArgs:()=>h,QueryObserver:()=>J,focusManager:()=>P,useQueryErrorResetBoundary:()=>tb,useMutation:()=>tk,useIsFetching:()=>tU,QueryErrorResetBoundary:()=>tg,useQueryClient:()=>tc,useIsMutating:()=>tT,parseQueryArgs:()=>l,InfiniteQueryObserver:()=>tt,isError:()=>Q,useQuery:()=>tF,MutationCache:()=>N,QueriesObserver:()=>$,isServer:()=>r,queryOptions:()=>tj});class i{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let r="undefined"==typeof window||"Deno"in window;function n(){}function u(t){return"number"==typeof t&&t>=0&&t!==1/0}function a(t,e){return t.filter(t=>!e.includes(t))}function o(t,e){return Math.max(t+(e||0)-Date.now(),0)}function l(t,e,s){return S(t)?"function"==typeof e?{...s,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function h(t,e,s){return S(t)?"function"==typeof e?{...s,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function c(t,e,s){return S(t)?[{...e,queryKey:t},s]:[t||{},e]}function d(t,e,s){return S(t)?[{...e,mutationKey:t},s]:[t||{},e]}function f(t,e){let{type:s="all",exact:i,fetchStatus:r,predicate:n,queryKey:u,stale:a}=t;if(S(u)){if(i){if(e.queryHash!==y(u,e.options))return!1}else{var o;if(o=e.queryKey,!m(o,u))return!1}}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(void 0===r||r===e.state.fetchStatus)&&(!n||!!n(e))}function p(t,e){let{exact:s,fetching:i,predicate:r,mutationKey:n}=t;if(S(n)){if(!e.options.mutationKey)return!1;if(s){if(v(e.options.mutationKey)!==v(n))return!1}else{var u;if(u=e.options.mutationKey,!m(u,n))return!1}}return("boolean"!=typeof i||"loading"===e.state.status===i)&&(!r||!!r(e))}function y(t,e){return((null==e?void 0:e.queryKeyHashFn)||v)(t)}function v(t){return JSON.stringify(t,(t,e)=>C(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function m(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(s=>!m(t[s],e[s]))}function b(t,e){if(t===e)return t;let s=O(t)&&O(e);if(s||C(t)&&C(e)){let i=s?t.length:Object.keys(t).length,r=s?e:Object.keys(e),n=r.length,u=s?[]:{},a=0;for(let i=0;i<n;i++){let n=s?i:r[i];u[n]=b(t[n],e[n]),u[n]===t[n]&&a++}return i===n&&a===i?t:u}return e}function g(t,e){if(t&&!e||e&&!t)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function O(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function C(t){if(!R(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!(R(s)&&s.hasOwnProperty("isPrototypeOf"))}function R(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return Array.isArray(t)}function Q(t){return t instanceof Error}function w(t){return new Promise(e=>{setTimeout(e,t)})}function q(t){w(0).then(t)}function E(t,e,s){return null!=s.isDataEqual&&s.isDataEqual(t,e)?t:"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?b(t,e):e}let P=new class extends i{constructor(){super(),this.setup=t=>{if(!r&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},M=["online","offline"],F=new class extends i{constructor(){super(),this.setup=t=>{if(!r&&window.addEventListener){let e=()=>t();return M.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{M.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function x(t){return Math.min(1e3*2**t,3e4)}function D(t){return(null!=t?t:"online")!=="online"||F.isOnline()}class A{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function I(t){return t instanceof A}function U(t){let e,s,i,r=!1,n=0,u=!1,a=new Promise((t,e)=>{s=t,i=e}),o=()=>!P.isFocused()||"always"!==t.networkMode&&!F.isOnline(),l=i=>{u||(u=!0,null==t.onSuccess||t.onSuccess(i),null==e||e(),s(i))},h=s=>{u||(u=!0,null==t.onError||t.onError(s),null==e||e(),i(s))},c=()=>new Promise(s=>{e=t=>{let e=u||!o();return e&&s(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,u||null==t.onContinue||t.onContinue()}),d=()=>{let e;if(!u){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(l).catch(e=>{var s,i;if(u)return;let a=null!=(s=t.retry)?s:3,l=null!=(i=t.retryDelay)?i:x,f="function"==typeof l?l(n,e):l,p=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,e);if(r||!p){h(e);return}n++,null==t.onFail||t.onFail(n,e),w(f).then(()=>{if(o())return c()}).then(()=>{r?h(e):d()})})}};return D(t.networkMode)?d():c().then(d),{promise:a,cancel:e=>{u||(h(new A(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1}}}let T=console,k=function(){let t=[],e=0,s=t=>{t()},i=t=>{t()},r=i=>{e?t.push(i):q(()=>{s(i)})},n=()=>{let e=t;t=[],e.length&&q(()=>{i(()=>{e.forEach(t=>{s(t)})})})};return{batch:t=>{let s;e++;try{s=t()}finally{--e||n()}return s},batchCalls:t=>(...e)=>{r(()=>{t(...e)})},schedule:r,setNotifyFunction:t=>{s=t},setBatchNotifyFunction:t=>{i=t}}}();class K{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),u(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:r?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class L extends K{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||T,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,i=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let s=E(this.state.data,t,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let s=this.promise;return null==(e=this.retryer)||e.cancel(t),s?s.then(n).catch(n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!o(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var s,i,r,n;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(r=this.retryer)||r.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let u=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};o(a);let l={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};o(l),null==(s=this.options.behavior)||s.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=l.fetchOptions)?void 0:i.meta))&&this.dispatch({type:"fetch",meta:null==(n=l.fetchOptions)?void 0:n.meta});let h=t=>{if(I(t)&&t.silent||this.dispatch({type:"error",error:t}),!I(t)){var e,s,i,r;null==(e=(s=this.cache.config).onError)||e.call(s,t,this),null==(i=(r=this.cache.config).onSettled)||i.call(r,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=U({fn:l.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:t=>{var e,s,i,r;if(void 0===t){h(Error(this.queryHash+" data is undefined"));return}this.setData(t),null==(e=(s=this.cache.config).onSuccess)||e.call(s,t,this),null==(i=(r=this.cache.config).onSettled)||i.call(r,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){this.state=(e=>{var s,i;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(s=t.meta)?s:null,fetchStatus:D(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=t.error;if(I(r)&&r.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),k.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class j extends i{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,s){var i;let r=e.queryKey,n=null!=(i=e.queryHash)?i:y(r,e),u=this.get(n);return u||(u=new L({cache:this,logger:t.getLogger(),queryKey:r,queryHash:n,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){k.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[s]=c(t,e);return void 0===s.exact&&(s.exact=!0),this.queries.find(t=>f(s,t))}findAll(t,e){let[s]=c(t,e);return Object.keys(s).length>0?this.queries.filter(t=>f(s,t)):this.queries}notify(t){k.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){k.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){k.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class H extends K{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||T,this.observers=[],this.state=t.state||B(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,s,i,r,n,u,a,o,l,h,c,d,f,p,y,v,m,b,g;let O="loading"===this.state.status;try{if(!O){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(l=this.mutationCache.config).onMutate)?void 0:o.call(l,this.state.variables,this));let t=await (null==(h=(c=this.options).onMutate)?void 0:h.call(c,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let d=await (()=>{var t;return this.retryer=U({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,d,this.state.variables,this.state.context,this)),await (null==(s=(i=this.options).onSuccess)?void 0:s.call(i,d,this.state.variables,this.state.context)),await (null==(r=(n=this.mutationCache.config).onSettled)?void 0:r.call(n,d,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,d,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:d}),d}catch(t){try{throw await (null==(d=(f=this.mutationCache.config).onError)?void 0:d.call(f,t,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,t,this.state.variables,this.state.context)),await (null==(v=(m=this.mutationCache.config).onSettled)?void 0:v.call(m,void 0,t,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onSettled)?void 0:b.call(g,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!D(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}})(this.state),k.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function B(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class N extends i{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,s){let i=new H({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:s,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){k.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>p(t,e))}findAll(t){return this.mutations.filter(e=>p(t,e))}notify(t){k.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return k.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(n)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function G(){return{onFetch:t=>{t.fetchFn=()=>{var e,s,i,r,n,u;let a;let o=null==(e=t.fetchOptions)?void 0:null==(s=e.meta)?void 0:s.refetchPage,l=null==(i=t.fetchOptions)?void 0:null==(r=i.meta)?void 0:r.fetchMore,h=null==l?void 0:l.pageParam,c=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",f=(null==(n=t.state.data)?void 0:n.pages)||[],p=(null==(u=t.state.data)?void 0:u.pageParams)||[],y=p,v=!1,m=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{var e,s;return null!=(e=t.signal)&&e.aborted?v=!0:null==(s=t.signal)||s.addEventListener("abort",()=>{v=!0}),t.signal}})},b=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),g=(t,e,s,i)=>(y=i?[e,...y]:[...y,e],i?[s,...t]:[...t,s]),O=(e,s,i,r)=>{if(v)return Promise.reject("Cancelled");if(void 0===i&&!s&&e.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:i,meta:t.options.meta};return m(n),Promise.resolve(b(n)).then(t=>g(e,i,t,r))};if(f.length){if(c){let e=void 0!==h,s=e?h:_(t.options,f);a=O(f,e,s)}else if(d){let e=void 0!==h,s=e?h:z(t.options,f);a=O(f,e,s,!0)}else{y=[];let e=void 0===t.options.getNextPageParam;a=!o||!f[0]||o(f[0],0,f)?O([],e,p[0]):Promise.resolve(g([],p[0],f[0]));for(let s=1;s<f.length;s++)a=a.then(i=>{if(!o||!f[s]||o(f[s],s,f)){let r=e?p[s]:_(t.options,i);return O(i,e,r)}return Promise.resolve(g(i,p[s],f[s]))})}}else a=O([]);return a.then(t=>({pages:t,pageParams:y}))}}}}function _(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function z(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}class W{constructor(t={}){this.queryCache=t.queryCache||new j,this.mutationCache=t.mutationCache||new N,this.logger=t.logger||T,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=P.subscribe(()=>{P.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=F.subscribe(()=>{F.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[s]=c(t,e);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state.data}ensureQueryData(t,e,s){let i=l(t,e,s),r=this.getQueryData(i.queryKey);return r?Promise.resolve(r):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let i=this.queryCache.find(t),r=null==i?void 0:i.state.data,n="function"==typeof e?e(r):e;if(void 0===n)return;let u=l(t),a=this.defaultQueryOptions(u);return this.queryCache.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return k.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state}removeQueries(t,e){let[s]=c(t,e),i=this.queryCache;k.batch(()=>{i.findAll(s).forEach(t=>{i.remove(t)})})}resetQueries(t,e,s){let[i,r]=c(t,e,s),n=this.queryCache,u={type:"active",...i};return k.batch(()=>(n.findAll(i).forEach(t=>{t.reset()}),this.refetchQueries(u,r)))}cancelQueries(t,e,s){let[i,r={}]=c(t,e,s);return void 0===r.revert&&(r.revert=!0),Promise.all(k.batch(()=>this.queryCache.findAll(i).map(t=>t.cancel(r)))).then(n).catch(n)}invalidateQueries(t,e,s){let[i,r]=c(t,e,s);return k.batch(()=>{var t,e;if(this.queryCache.findAll(i).forEach(t=>{t.invalidate()}),"none"===i.refetchType)return Promise.resolve();let s={...i,type:null!=(t=null!=(e=i.refetchType)?e:i.type)?t:"active"};return this.refetchQueries(s,r)})}refetchQueries(t,e,s){let[i,r]=c(t,e,s),u=Promise.all(k.batch(()=>this.queryCache.findAll(i).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...r,cancelRefetch:null==(e=null==r?void 0:r.cancelRefetch)||e,meta:{refetchPage:i.refetchPage}})}))).then(n);return null!=r&&r.throwOnError||(u=u.catch(n)),u}fetchQuery(t,e,s){let i=l(t,e,s),r=this.defaultQueryOptions(i);void 0===r.retry&&(r.retry=!1);let n=this.queryCache.build(this,r);return n.isStaleByTime(r.staleTime)?n.fetch(r):Promise.resolve(n.state.data)}prefetchQuery(t,e,s){return this.fetchQuery(t,e,s).then(n).catch(n)}fetchInfiniteQuery(t,e,s){let i=l(t,e,s);return i.behavior=G(),this.fetchQuery(i)}prefetchInfiniteQuery(t,e,s){return this.fetchInfiniteQuery(t,e,s).then(n).catch(n)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let s=this.queryDefaults.find(e=>v(t)===v(e.queryKey));s?s.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>m(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let s=this.mutationDefaults.find(e=>v(t)===v(e.mutationKey));s?s.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>m(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=y(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class J extends i{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),V(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return X(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return X(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let s=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),g(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();let r=this.hasListeners();r&&Y(this.currentQuery,i,this.options,s)&&this.executeFetch(),this.updateResult(e),r&&(this.currentQuery!==i||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();let n=this.computeRefetchInterval();r&&(this.currentQuery!==i||this.options.enabled!==s.enabled||n!==this.currentRefetchInterval)&&this.updateRefetchInterval(n)}getOptimisticResult(t){var e,s,i;let r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return e=this,s=n,(i=t).keepPreviousData||(void 0!==i.placeholderData?!s.isPlaceholderData:g(e.getCurrentResult(),s))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(n)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),r||this.currentResult.isStale||!u(this.options.staleTime))return;let t=o(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!r&&!1!==this.options.enabled&&u(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||P.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let s;let i=this.currentQuery,r=this.options,n=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,o=t!==i,l=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:c}=t,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:y,status:v}=c,m=!1,b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&V(t,e),u=s&&Y(t,i,e,r);(n||u)&&(y=D(t.options.networkMode)?"fetching":"paused",d||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!c.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==v)s=h.data,d=h.dataUpdatedAt,v=h.status,m=!0;else if(e.select&&void 0!==c.data){if(n&&c.data===(null==u?void 0:u.data)&&e.select===this.selectFn)s=this.selectResult;else try{this.selectFn=e.select,s=e.select(c.data),s=E(null==n?void 0:n.data,s,e),this.selectResult=s,this.selectError=null}catch(t){this.selectError=t}}else s=c.data;if(void 0!==e.placeholderData&&void 0===s&&"loading"===v){let t;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==a?void 0:a.placeholderData))t=n.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",s=E(null==n?void 0:n.data,t,e),b=!0)}this.selectError&&(f=this.selectError,s=this.selectResult,p=Date.now(),v="error");let g="fetching"===y,O="loading"===v,C="error"===v;return{status:v,fetchStatus:y,isLoading:O,isSuccess:"success"===v,isError:C,isInitialLoading:O&&g,data:s,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&0===c.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:m,isRefetchError:C&&0!==c.dataUpdatedAt,isStale:Z(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,g(s,e))return;this.currentResult=s;let i={cache:!0};(null==t?void 0:t.listeners)!==!1&&(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.trackedProps.size)return!0;let i=new Set(null!=s?s:this.trackedProps);return this.options.useErrorBoundary&&i.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&i.has(t))})()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||I(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){k.batch(()=>{var e,s,i,r,n,u,a,o;t.onSuccess?(null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(i=(r=this.options).onSettled)||i.call(r,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(a=(o=this.options).onSettled)||a.call(o,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function V(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&("error"!==t.state.status||!1!==e.retryOnMount)||t.state.dataUpdatedAt>0&&X(t,e,e.refetchOnMount)}function X(t,e,s){if(!1!==e.enabled){let i="function"==typeof s?s(t):s;return"always"===i||!1!==i&&Z(t,e)}return!1}function Y(t,e,s,i){return!1!==s.enabled&&(t!==e||!1===i.enabled)&&(!s.suspense||"error"!==t.state.status)&&Z(t,s)}function Z(t,e){return t.isStaleByTime(e.staleTime)}class $ extends i{constructor(t,e){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},e&&this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,e){this.queries=t,k.batch(()=>{let t=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions,e));let i=s.map(t=>t.observer),r=Object.fromEntries(i.map(t=>[t.options.queryHash,t])),n=i.map(t=>t.getCurrentResult()),u=i.some((e,s)=>e!==t[s]);if(t.length!==i.length||u)this.observers=i,this.observersMap=r,this.result=n,this.hasListeners()&&(a(t,i).forEach(t=>{t.destroy()}),a(i,t).forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})}),this.notify())})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions))}findMatchingObservers(t){let e=this.observers,s=new Map(e.map(t=>[t.options.queryHash,t])),i=t.map(t=>this.client.defaultQueryOptions(t)),r=i.flatMap(t=>{let e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),n=new Set(r.map(t=>t.defaultedQueryOptions.queryHash)),u=i.filter(t=>!n.has(t.queryHash)),a=new Set(r.map(t=>t.observer)),o=e.filter(t=>!a.has(t)),l=t=>{let e=this.client.defaultQueryOptions(t),s=this.observersMap[e.queryHash];return null!=s?s:new J(this.client,e)},h=u.map((t,e)=>{if(t.keepPreviousData){let s=o[e];if(void 0!==s)return{defaultedQueryOptions:t,observer:s}}return{defaultedQueryOptions:t,observer:l(t)}});return r.concat(h).sort((t,e)=>i.indexOf(t.defaultedQueryOptions)-i.indexOf(e.defaultedQueryOptions))}onUpdate(t,e){let s=this.observers.indexOf(t);-1!==s&&(this.result=function(t,e,s){let i=t.slice(0);return i[e]=s,i}(this.result,s,e),this.notify())}notify(){k.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class tt extends J{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:G()},e)}getOptimisticResult(t){return t.behavior=G(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,e){var s,i,r,n,u,a;let{state:o}=t,l=super.createResult(t,e),{isFetching:h,isRefetching:c}=l,d=h&&(null==(s=o.fetchMeta)?void 0:null==(i=s.fetchMore)?void 0:i.direction)==="forward",f=h&&(null==(r=o.fetchMeta)?void 0:null==(n=r.fetchMore)?void 0:n.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(t,e){if(t.getNextPageParam&&Array.isArray(e)){let s=_(t,e);return null!=s&&!1!==s}}(e,null==(u=o.data)?void 0:u.pages),hasPreviousPage:function(t,e){if(t.getPreviousPageParam&&Array.isArray(e)){let s=z(t,e);return null!=s&&!1!==s}}(e,null==(a=o.data)?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:c&&!d&&!f}}}class te extends i{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),g(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:B(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){k.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,i,r,n,u,a,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(i=(r=this.mutateOptions).onSettled)||i.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}function ts(t){return t.state.isPaused}function ti(t){return"success"===t.state.status}function tr(t,e={}){let s=[],i=[];if(!1!==e.dehydrateMutations){let i=e.shouldDehydrateMutation||ts;t.getMutationCache().getAll().forEach(t=>{if(i(t))s.push({mutationKey:t.options.mutationKey,state:t.state})})}if(!1!==e.dehydrateQueries){let s=e.shouldDehydrateQuery||ti;t.getQueryCache().getAll().forEach(t=>{if(s(t))i.push({state:t.state,queryKey:t.queryKey,queryHash:t.queryHash})})}return{mutations:s,queries:i}}function tn(t,e,s){if("object"!=typeof e||null===e)return;let i=t.getMutationCache(),r=t.getQueryCache(),n=e.mutations||[],u=e.queries||[];n.forEach(e=>{var r;i.build(t,{...null==s?void 0:null==(r=s.defaultOptions)?void 0:r.mutations,mutationKey:e.mutationKey},e.state)}),u.forEach(({queryKey:e,state:i,queryHash:n})=>{var u;let a=r.get(n);if(a){if(a.state.dataUpdatedAt<i.dataUpdatedAt){let{fetchStatus:t,...e}=i;a.setState(e)}return}r.build(t,{...null==s?void 0:null==(u=s.defaultOptions)?void 0:u.queries,queryKey:e,queryHash:n},{...i,fetchStatus:"idle"})})}var tu=s(54538);let ta=s(70644).useSyncExternalStore,to=tu.createContext(void 0),tl=tu.createContext(!1);function th(t,e){return t||(e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=to),window.ReactQueryClientContext):to)}let tc=({context:t}={})=>{let e=tu.useContext(th(t,tu.useContext(tl)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},td=({client:t,children:e,context:s,contextSharing:i=!1})=>{tu.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let r=th(s,i);return tu.createElement(tl.Provider,{value:!s&&i},tu.createElement(r.Provider,{value:t},e))},tf=tu.createContext(!1),tp=()=>tu.useContext(tf),ty=tf.Provider;function tv(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}let tm=tu.createContext(tv()),tb=()=>tu.useContext(tm),tg=({children:t})=>{let[e]=tu.useState(()=>tv());return tu.createElement(tm.Provider,{value:e},"function"==typeof t?t(e):t)};function tO(t,e){return"function"==typeof t?t(...e):!!t}let tC=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},tR=t=>{tu.useEffect(()=>{t.clearReset()},[t])},tS=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&tO(s,[t.error,i]),tQ=t=>{t.suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3)},tw=(t,e)=>t.isLoading&&t.isFetching&&!e,tq=(t,e,s)=>(null==t?void 0:t.suspense)&&tw(e,s),tE=(t,e,s)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function tP({queries:t,context:e}){let s=tc({context:e}),i=tp(),r=tb(),n=tu.useMemo(()=>t.map(t=>{let e=s.defaultQueryOptions(t);return e._optimisticResults=i?"isRestoring":"optimistic",e}),[t,s,i]);n.forEach(t=>{tQ(t),tC(t,r)}),tR(r);let[u]=tu.useState(()=>new $(s,n)),a=u.getOptimisticResult(n);ta(tu.useCallback(t=>i?()=>void 0:u.subscribe(k.batchCalls(t)),[u,i]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),tu.useEffect(()=>{u.setQueries(n,{listeners:!1})},[n,u]);let o=a.some((t,e)=>tq(n[e],t,i))?a.flatMap((t,e)=>{let s=n[e],a=u.getObservers()[e];if(s&&a){if(tq(s,t,i))return tE(s,a,r);tw(t,i)&&tE(s,a,r)}return[]}):[];if(o.length>0)throw Promise.all(o);let l=u.getQueries(),h=a.find((t,e)=>{var s,i;return tS({result:t,errorResetBoundary:r,useErrorBoundary:null!=(s=null==(i=n[e])?void 0:i.useErrorBoundary)&&s,query:l[e]})});if(null!=h&&h.error)throw h.error;return a}function tM(t,e){let s=tc({context:t.context}),i=tp(),r=tb(),n=s.defaultQueryOptions(t);n._optimisticResults=i?"isRestoring":"optimistic",n.onError&&(n.onError=k.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=k.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=k.batchCalls(n.onSettled)),tQ(n),tC(n,r),tR(r);let[u]=tu.useState(()=>new e(s,n)),a=u.getOptimisticResult(n);if(ta(tu.useCallback(t=>{let e=i?()=>void 0:u.subscribe(k.batchCalls(t));return u.updateResult(),e},[u,i]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),tu.useEffect(()=>{u.setOptions(n,{listeners:!1})},[n,u]),tq(n,a,i))throw tE(n,u,r);if(tS({result:a,errorResetBoundary:r,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw a.error;return n.notifyOnChangeProps?a:u.trackResult(a)}function tF(t,e,s){return tM(l(t,e,s),J)}function tx(t){return tM({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"},J)}function tD({queries:t,context:e}){return tP({queries:t.map(t=>({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"})),context:e})}function tA(t,e={}){let s=tc({context:e.context}),i=tu.useRef(e);i.current=e,tu.useMemo(()=>{t&&tn(s,t,i.current)},[s,t])}let tI=({children:t,options:e,state:s})=>(tA(s,e),t);function tU(t,e,s){let[i,r={}]=c(t,e,s),n=tc({context:r.context}),u=n.getQueryCache();return ta(tu.useCallback(t=>u.subscribe(k.batchCalls(t)),[u]),()=>n.isFetching(i),()=>n.isFetching(i))}function tT(t,e,s){let[i,r={}]=d(t,e,s),n=tc({context:r.context}),u=n.getMutationCache();return ta(tu.useCallback(t=>u.subscribe(k.batchCalls(t)),[u]),()=>n.isMutating(i),()=>n.isMutating(i))}function tk(t,e,s){let i=h(t,e,s),r=tc({context:i.context}),[n]=tu.useState(()=>new te(r,i));tu.useEffect(()=>{n.setOptions(i)},[n,i]);let u=ta(tu.useCallback(t=>n.subscribe(k.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=tu.useCallback((t,e)=>{n.mutate(t,e).catch(tK)},[n]);if(u.error&&tO(n.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:a,mutateAsync:u.mutate}}function tK(){}function tL(t,e,s){return tM(l(t,e,s),tt)}function tj(t){return t}}}]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license React
|
|
3
|
-
*
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkPrometheus=self.webpackChunkPrometheus||[]).push([["4421"],{76439:function(e,t,r){"use strict";r.d(t,{Z:()=>p});var o=r(54538),n=r(96858),i=r(49267),a=r(24105);let c={...o}.useSyncExternalStore;function l(e={}){let{themeId:t}=e;return function(e,r={}){let l=(0,a.Z)();l&&t&&(l=l[t]||l);let p="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:u=!1,matchMedia:f=p?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:y=!1}=(0,i.Z)({name:"MuiUseMediaQuery",props:r,theme:l}),d="function"==typeof e?e(l):e;return(void 0!==c?function(e,t,r,n,i){let a=o.useCallback(()=>t,[t]),l=o.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return a},[a,e,n,i,r]),[p,u]=o.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,r,e]);return c(u,p,l)}:function(e,t,r,i,a){let[c,l]=o.useState(()=>a&&r?r(e).matches:i?i(e).matches:t);return(0,n.Z)(()=>{if(!r)return;let t=r(e),o=()=>{l(t.matches)};return o(),t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}},[e,r]),c})(d=d.replace(/^@media( ?)/m,""),u,f,s,y)}}l();let p=l({themeId:r(92994).Z})},66694:function(e,t,r){"use strict";r.d(t,{Q:()=>n,U:()=>o});let o="1h",n="0s"},73223:function(e,t,r){"use strict";r.r(t),r.d(t,{useExplorerQueryParams:()=>I,ExplorerManagerProvider:()=>b,useExplorerManagerContext:()=>v,ExploreManager:()=>x,ViewExplore:()=>P,ExploreToolbar:()=>m,explorerQueryConfig:()=>E});var o=r(24246),n=r(36372),i=r(74128),a=r(66694),c=r(90775),l=r(44197),p=r(54538),u=r(76439),f=r(25283),s=r(51781),y=r(49408),d=r(84954),h=r(94776);let m=e=>{let{exploreTitleComponent:t}=e,r=(0,u.Z)((0,h.Z)().breakpoints.up("lg"));return(0,o.jsx)(f.Z,{"data-testid":"explore-toolbar",children:(0,o.jsxs)(n.Z,{sx:{display:"flex",width:"100%"},children:[t,(0,o.jsx)(f.Z,{direction:"row",spacing:1,ml:"auto",flexWrap:r?"nowrap":"wrap-reverse",justifyContent:"end",children:(0,o.jsx)(i.TimeRangeControls,{})})]})})},g=(0,p.createContext)(void 0);function b({children:e,store:t}){let[r,n]=(0,p.useState)({}),i=(0,p.useState)({explorer:void 0,data:{}}),[a,c]=t||i,{explorer:l,data:u}=a;return(0,o.jsx)(g.Provider,{value:{explorer:l,data:u,setExplorer:function(e){l&&(r[l]={data:u},n(r));let t=r[e]??{data:{}};c({explorer:e,data:t.data})},setData:function(e){c({explorer:l,data:e})}},children:e})}function v(){let e=(0,p.useContext)(g);if(void 0===e)throw Error("No ExplorerManagerContext found. Did you forget a Provider?");return e}function x(e){let{exploreTitleComponent:t}=e,{explorer:r,setExplorer:n}=v(),a=(0,i.useListPluginMetadata)(["Explore"]),c=(0,u.Z)("(max-width: 768px)"),l=(0,p.useMemo)(()=>Object.fromEntries(a.data?.map(e=>[`${e.module.name}-${e.spec.name}`,e])??[]),[a.data]);(0,p.useEffect)(()=>{let e=Object.keys(l);!r&&e?.[0]&&n(e[0])},[l,r,n]);let h=r?l[r]:void 0;return r?(0,o.jsxs)(f.Z,{sx:{width:"100%"},px:2,pb:2,pt:1.5,gap:3,children:[(0,o.jsx)(m,{exploreTitleComponent:t}),(0,o.jsxs)(f.Z,{direction:c?"column":"row",gap:2,sx:{width:"100%"},children:[(0,o.jsx)(s.Z,{orientation:c?"horizontal":"vertical",value:r,onChange:(e,t)=>n(t),variant:c?"fullWidth":"scrollable",sx:{borderRight:+!c,borderBottom:+!!c,borderColor:"divider",minWidth:"100px"},children:a.data?.map(e=>o.jsx(y.Z,{value:`${e.module.name}-${e.spec.name}`,label:e.spec.display.name},`${e.module.name}-${e.spec.name}`))}),(0,o.jsx)(d.Z,{sx:{padding:"10px",width:"100%"},children:h&&(0,o.jsx)(i.PluginLoaderComponent,{plugin:{name:h.spec.name,moduleName:h.module.name}},`${h.module.name}-${h.spec.name}`)})]})]}):(0,o.jsx)("div",{children:"No explorer plugin available"})}var S=r(51564);let w={explorer:(0,S.withDefault)(S.StringParam,void 0),data:(0,S.withDefault)(S.JsonParam,{})};function j({children:e}){let[t,r]=(0,S.useQueryParams)(w);return(0,o.jsx)(b,{store:[t,r],children:e})}function A(e){let{exploreTitleComponent:t}=e,r=(0,c.useChartsTheme)();return(0,o.jsx)(n.Z,{sx:{flexGrow:1,overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column"},children:(0,o.jsx)(c.ChartsProvider,{chartsTheme:r,enablePinning:!1,children:(0,o.jsx)(j,{children:(0,o.jsx)(x,{exploreTitleComponent:t})})})})}function P(e){let{datasourceApi:t,externalVariableDefinitions:r,sx:p,exploreTitleComponent:u,...f}=e,s=(0,i.useInitialTimeRange)(a.U),y=(0,i.useInitialRefreshInterval)(a.Q);return(0,o.jsx)(l.DatasourceStoreProvider,{datasourceApi:t,children:(0,o.jsx)(i.TimeRangeProviderWithQueryParams,{initialTimeRange:s,initialRefreshInterval:y,children:(0,o.jsx)(l.VariableProvider,{externalVariableDefinitions:r,children:(0,o.jsx)(n.Z,{sx:(0,c.combineSx)({display:"flex",width:"100%",height:"100%",position:"relative",overflow:"hidden"},p),...f,children:(0,o.jsx)(c.ErrorBoundary,{FallbackComponent:c.ErrorAlert,children:(0,o.jsx)(A,{exploreTitleComponent:u})})})})})})}var O=r(8139);let E={refresh:i.TimeRangeParam,start:i.TimeRangeParam,end:i.TimeRangeParam,explorer:S.StringParam,data:S.JsonParam};function I(e){let[t]=(0,S.useQueryParams)(E,{updateType:"replaceIn"});return(0,O.stringify)((0,S.encodeQueryParams)(E,{...t,...e}))}},6088:function(e,t,r){"use strict";var o=r(20132),n=r(52453),i=r(31720),a=r(68273);e.exports=a||o.call(i,n)},52453:function(e){"use strict";e.exports=Function.prototype.apply},31720:function(e){"use strict";e.exports=Function.prototype.call},11519:function(e,t,r){"use strict";var o=r(20132),n=r(31805),i=r(31720),a=r(6088);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return a(o,i,e)}},68273:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},75343:function(e,t,r){"use strict";var o=r(68750),n=r(11519),i=n([o("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n([r]):r}},97755:function(e,t,r){"use strict";var o,n=r(11519),i=r(77502);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!o&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;e.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(e){return l(null==e?e:c(e))}},51544:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},73573:function(e){"use strict";e.exports=EvalError},85513:function(e){"use strict";e.exports=Error},77679:function(e){"use strict";e.exports=RangeError},39269:function(e){"use strict";e.exports=ReferenceError},74329:function(e){"use strict";e.exports=SyntaxError},31805:function(e){"use strict";e.exports=TypeError},99491:function(e){"use strict";e.exports=URIError},19767:function(e){"use strict";e.exports=Object},68458:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,o=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},n=function(e,t){for(var r=[],o=t||0,n=0;o<e.length;o+=1,n+=1)r[n]=e[o];return r},i=function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r};e.exports=function(e){var a,c=this;if("function"!=typeof c||"[object Function]"!==t.apply(c))throw TypeError("Function.prototype.bind called on incompatible "+c);for(var l=n(arguments,1),p=r(0,c.length-l.length),u=[],f=0;f<p;f++)u[f]="$"+f;if(a=Function("binder","return function ("+i(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=c.apply(this,o(l,arguments));return Object(t)===t?t:this}return c.apply(e,o(l,arguments))}),c.prototype){var s=function(){};s.prototype=c.prototype,a.prototype=new s,s.prototype=null}return a}},20132:function(e,t,r){"use strict";var o=r(68458);e.exports=Function.prototype.bind||o},68750:function(e,t,r){"use strict";var o,n=r(19767),i=r(85513),a=r(73573),c=r(77679),l=r(39269),p=r(74329),u=r(31805),f=r(99491),s=r(36354),y=r(72244),d=r(24268),h=r(55139),m=r(89544),g=r(56298),b=r(87558),v=Function,x=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(77502),w=r(51544),j=function(){throw new u},A=S?function(){try{return arguments.callee,j}catch(e){try{return S(arguments,"callee").get}catch(e){return j}}}():j,P=r(40679)(),O=r(87778),E=r(77819),I=r(84578),R=r(52453),D=r(31720),M={},k="undefined"!=typeof Uint8Array&&O?O(Uint8Array):o,F={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":P&&O?O([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":M,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&O?O(O([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P&&O?O(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P&&O?O(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&O?O(""[Symbol.iterator]()):o,"%Symbol%":P?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":A,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":R,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":E,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(O)try{null.error}catch(e){var T=O(O(e));F["%Error.prototype%"]=T}var N=function e(t){var r;if("%AsyncFunction%"===t)r=x("async function () {}");else if("%GeneratorFunction%"===t)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=x("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&O&&(r=O(n.prototype))}return F[t]=r,r},_={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=r(20132),U=r(71712),B=C.call(D,Array.prototype.concat),W=C.call(R,Array.prototype.splice),L=C.call(D,String.prototype.replace),$=C.call(D,String.prototype.slice),K=C.call(D,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,G=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return L(e,Q,function(e,t,r,n){o[o.length]=r?L(n,Z,"$1"):t||e}),o},H=function(e,t){var r,o=e;if(U(_,o)&&(o="%"+(r=_[o])[0]+"%"),U(F,o)){var n=F[o];if(n===M&&(n=N(o)),void 0===n&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,e))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G(e),o=r.length>0?r[0]:"",n=H("%"+o+"%",t),i=n.name,a=n.value,c=!1,l=n.alias;l&&(o=l[0],W(r,B([0,1],l)));for(var f=1,s=!0;f<r.length;f+=1){var y=r[f],d=$(y,0,1),h=$(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&s||(c=!0),o+="."+y,U(F,i="%"+o+"%"))a=F[i];else if(null!=a){if(!(y in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&f+1>=r.length){var m=S(a,y);a=(s=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else s=U(a,y),a=a[y];s&&!c&&(F[i]=a)}}return a}},77819:function(e,t,r){"use strict";var o=r(19767);e.exports=o.getPrototypeOf||null},84578:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},87778:function(e,t,r){"use strict";var o=r(84578),n=r(77819),i=r(97755);e.exports=o?function(e){return o(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:i?function(e){return i(e)}:null},76158:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},77502:function(e,t,r){"use strict";var o=r(76158);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},40679:function(e,t,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(8186);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},8186:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},71712:function(e,t,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(20132);e.exports=i.call(o,n)},36354:function(e){"use strict";e.exports=Math.abs},72244:function(e){"use strict";e.exports=Math.floor},77890:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},24268:function(e){"use strict";e.exports=Math.max},55139:function(e){"use strict";e.exports=Math.min},89544:function(e){"use strict";e.exports=Math.pow},56298:function(e){"use strict";e.exports=Math.round},87558:function(e,t,r){"use strict";var o=r(77890);e.exports=function(e){return o(e)||0===e?e:e<0?-1:1}},86524:function(e,t,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&l&&"function"==typeof l.get?l.get:null,u=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,x=String.prototype.toUpperCase,S=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,A=Array.prototype.join,P=Array.prototype.slice,O=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,M="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D?"object":"symbol")?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-O(-e):O(e);if(o!==e){var n=String(o),i=b.call(t,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var N=r(56050),_=N.custom,C=Q(_)?_:null,U={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function W(e,t,r){var o=U[r.quoteStyle||t];return o+e+o}function L(e){return!M||!("object"==typeof e&&(M in e||void 0!==e[M]))}function $(e){return"[object Array]"===H(e)&&L(e)}function K(e){return"[object RegExp]"===H(e)&&L(e)}function Q(e){if(D)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,n,c){var l,h,x,w,O,I=o||{};if(G(I,"quoteStyle")&&!G(U,I.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(G(I,"maxStringLength")&&("number"==typeof I.maxStringLength?I.maxStringLength<0&&I.maxStringLength!==1/0:null!==I.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _=!G(I,"customInspect")||I.customInspect;if("boolean"!=typeof _&&"symbol"!==_)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(I,"indent")&&null!==I.indent&&" "!==I.indent&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(I,"numericSeparator")&&"boolean"!=typeof I.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Z=I.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var o=t.length-r.maxStringLength;return e(b.call(t,0,r.maxStringLength),r)+("... "+o)+" more character"+(o>1?"s":"")}var n=B[r.quoteStyle||"single"];return n.lastIndex=0,W(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,z),"single",r)}(t,I);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return Z?T(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return Z?T(t,er):er}var eo=void 0===I.depth?5:I.depth;if(void 0===n&&(n=0),n>=eo&&eo>0&&"object"==typeof t)return $(t)?"[Array]":"[Object]";var en=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(I,n);if(void 0===c)c=[];else if(V(c,t)>=0)return"[Circular]";function ei(t,r,o){if(r&&(c=P.call(c)).push(r),o){var i={depth:I.depth};return G(I,"quoteStyle")&&(i.quoteStyle=I.quoteStyle),e(t,i,n+1,c)}return e(t,I,n+1,c)}if("function"==typeof t&&!K(t)){var ea=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ec=ee(t,ei);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(ec.length>0?" { "+A.call(ec,", ")+" }":"")}if(Q(t)){var el=D?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||D?el:q(el)}if((ep=t)&&"object"==typeof ep&&("undefined"!=typeof HTMLElement&&ep instanceof HTMLElement||"string"==typeof ep.nodeName&&"function"==typeof ep.getAttribute)){for(var ep,eu,ef="<"+S.call(String(t.nodeName)),es=t.attributes||[],ey=0;ey<es.length;ey++){ef+=" "+es[ey].name+"="+W((eu=es[ey].value,v.call(String(eu),/"/g,""")),"double",I)}return ef+=">",t.childNodes&&t.childNodes.length&&(ef+="..."),ef+="</"+S.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var ed=ee(t,ei);return en&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ed)?"["+Y(ed,en)+"]":"[ "+A.call(ed,", ")+" ]"}if("[object Error]"===H(l=t)&&L(l)){var eh=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||k.call(t,"cause")?0===eh.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(eh,", ")+" }":"{ ["+String(t)+"] "+A.call(j.call("[cause]: "+ei(t.cause),eh),", ")+" }"}if("object"==typeof t&&_){if(C&&"function"==typeof t[C]&&N)return N(t,{depth:eo-n});if("symbol"!==_&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var em=[];return a&&a.call(t,function(e,r){em.push(ei(r,t,!0)+" => "+ei(e,t))}),X("Map",i.call(t),em,en)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eg=[];return u&&u.call(t,function(e){eg.push(ei(e,t))}),X("Set",p.call(t),eg,en)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if("[object Number]"===H(h=t)&&L(h))return q(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return q(ei(E.call(t)));if("[object Boolean]"===H(x=t)&&L(x))return q(d.call(t));if("[object String]"===H(w=t)&&L(w))return q(ei(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===H(O=t)&&L(O))&&!K(t)){var eb=ee(t,ei),ev=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,ex=t instanceof Object?"":"null prototype",eS=!ev&&M&&Object(t)===t&&M in t?b.call(H(t),8,-1):ex?"Object":"",ew=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eS||ex?"["+A.call(j.call([],eS||[],ex||[]),": ")+"] ":"");return 0===eb.length?ew+"{}":en?ew+"{"+Y(eb,en)+"}":ew+"{ "+A.call(eb,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return Z.call(e,t)}function H(e){return h.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return -1}function z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function q(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,r,o){return e+" ("+t+") {"+(o?Y(r,o):A.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,o=$(e),n=[];if(o){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=G(e,i)?t(e[i],e):""}var a="function"==typeof I?I(e):[];if(D){r={};for(var c=0;c<a.length;c++)r["$"+a[c]]=a[c]}for(var l in e){if(G(e,l)&&(!o||String(Number(l))!==l||!(l<e.length)))!(D&&r["$"+l]instanceof Symbol)&&(w.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e)))}if("function"==typeof I)for(var p=0;p<a.length;p++)k.call(e,a[p])&&n.push("["+t(a[p])+"]: "+t(e[a[p]],e));return n}},69771:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},8139:function(e,t,r){"use strict";var o=r(56360),n=r(19520),i=r(69771);e.exports={formats:i,parse:n,stringify:o}},19520:function(e,t,r){"use strict";var o=r(54330),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,p),f=-1,s=t.charset;if(t.charsetSentinel)for(y=0;y<u.length;++y)0===u[y].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[y]?s="utf-8":"utf8=%26%2310003%3B"===u[y]&&(s="iso-8859-1"),f=y,y=u.length);for(y=0;y<u.length;++y)if(y!==f){var y,d,h,m=u[y],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(d=t.decoder(m,a.decoder,s,"key"),h=t.strictNullHandling?null:""):(d=t.decoder(m.slice(0,b),a.decoder,s,"key"),h=o.maybeMap(c(m.slice(b+1),t),function(e){return t.decoder(e,a.decoder,s,"value")})),h&&t.interpretNumericEntities&&"iso-8859-1"===s&&(h=h.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(h=i(h)?[h]:h);var v=n.call(r,d);v&&"combine"===t.duplicates?r[d]=o.combine(r[d],h):v&&"last"!==t.duplicates||(r[d]=h)}return r},p=function(e,t,r,o){for(var n=o?t:c(t,r),i=e.length-1;i>=0;--i){var a,l=e[i];if("[]"===l&&r.parseArrays)a=r.allowEmptyArrays&&(""===n||r.strictNullHandling&&null===n)?[]:[].concat(n);else{a=r.plainObjects?Object.create(null):{};var p="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,u=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&l!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=n:"__proto__"!==u&&(a[u]=n):a={0:n}}n=a}return n},u=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=c?i.slice(0,c.index):i,u=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var f=0;r.depth>0&&null!==(c=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(c[1])}if(c){if(!0===r.strictDepth)throw RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(c.index)+"]")}return p(u,t,r,o)}},f=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?l(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),c=0;c<a.length;++c){var p=a[c],s=u(p,n[p],r,"string"==typeof e);i=o.merge(i,s,r)}return!0===r.allowSparse?i:o.compact(i)}},56360:function(e,t,r){"use strict";var o=r(95337),n=r(54330),i=r(69771),a=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,p=Array.prototype.push,u=function(e,t){p.apply(e,l(t)?t:[t])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},h=function e(t,r,i,a,c,p,f,s,h,m,g,b,v,x,S,w,j,A){for(var P,O,E=t,I=A,R=0,D=!1;void 0!==(I=I.get(d))&&!D;){var M=I.get(t);if(R+=1,void 0!==M){if(M===R)throw RangeError("Cyclic object value");D=!0}void 0===I.get(d)&&(R=0)}if("function"==typeof m?E=m(r,E):E instanceof Date?E=v(E):"comma"===i&&l(E)&&(E=n.maybeMap(E,function(e){return e instanceof Date?v(e):e})),null===E){if(p)return h&&!w?h(r,y.encoder,j,"key",x):r;E=""}if("string"==typeof(P=E)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||n.isBuffer(E))return h?[S(w?r:h(r,y.encoder,j,"key",x))+"="+S(h(E,y.encoder,j,"value",x))]:[S(r)+"="+S(String(E))];var k=[];if(void 0===E)return k;if("comma"===i&&l(E))w&&h&&(E=n.maybeMap(E,h)),O=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(m))O=m;else{var F=Object.keys(E);O=g?F.sort(g):F}var T=s?r.replace(/\./g,"%2E"):r,N=a&&l(E)&&1===E.length?T+"[]":T;if(c&&l(E)&&0===E.length)return N+"[]";for(var _=0;_<O.length;++_){var C=O[_],U="object"==typeof C&&void 0!==C.value?C.value:E[C];if(!f||null!==U){var B=b&&s?C.replace(/\./g,"%2E"):C,W=l(E)?"function"==typeof i?i(N,B):N:N+(b?"."+B:"["+B+"]");A.set(t,R);var L=o();L.set(d,A),u(k,e(U,W,i,a,c,p,f,s,"comma"===i&&w&&l(E)?null:h,m,g,b,v,x,S,w,j,L))}}return k},m=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");o=e.format}var n=i.formatters[o],p=y.filter;if(("function"==typeof e.filter||l(e.filter))&&(p=e.filter),t=e.arrayFormat in c?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:o,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}};e.exports=function(e,t){var r,n,i=e,a=m(t);"function"==typeof a.filter?i=(0,a.filter)("",i):l(a.filter)&&(r=a.filter);var p=[];if("object"!=typeof i||null===i)return"";var f=c[a.arrayFormat],s="comma"===f&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var y=o(),d=0;d<r.length;++d){var g=r[d];(!a.skipNulls||null!==i[g])&&u(p,h(i[g],g,f,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,y))}var b=p.join(a.delimiter),v=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},54330:function(e,t,r){"use strict";var o=r(69771),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}},l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],a=Object.keys(i),l=0;l<a.length;++l){var p=a[l],u=i[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:p}),r.push(u))}return c(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r,n,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",p=0;p<c.length;p+=1024){for(var u=c.length>=1024?c.slice(p,p+1024):c,f=[],s=0;s<u.length;++s){var y=u.charCodeAt(s);if(45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===o.RFC1738&&(40===y||41===y)){f[f.length]=u.charAt(s);continue}if(y<128){f[f.length]=a[y];continue}if(y<2048){f[f.length]=a[192|y>>6]+a[128|63&y];continue}if(y<55296||y>=57344){f[f.length]=a[224|y>>12]+a[128|y>>6&63]+a[128|63&y];continue}s+=1,y=65536+((1023&y)<<10|1023&u.charCodeAt(s)),f[f.length]=a[240|y>>18]+a[128|y>>12&63]+a[128|y>>6&63]+a[128|63&y]}l+=f.join("")}return l},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=l(t,o)),i(t)&&i(r))?(r.forEach(function(r,i){if(n.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,o):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},98842:function(e,t,r){"use strict";var o=r(86524),n=r(31805),i=function(e,t,r){for(var o,n=e;null!=(o=n.next);n=o)if(o.key===t)return n.next=o.next,r||(o.next=e.next,e.next=o),o},a=function(e,t){if(e){var r=i(e,t);return r&&r.value}},c=function(e,t,r){var o=i(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}},l=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){var r=e&&e.next,o=l(e,t);return o&&r&&r===o&&(e=void 0),!!o},get:function(t){return a(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),c(e,t,r)}};return t}},4249:function(e,t,r){"use strict";var o=r(68750),n=r(75343),i=r(86524),a=r(31805),c=o("%Map%",!0),l=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),f=n("Map.prototype.delete",!0),s=n("Map.prototype.size",!0);e.exports=!!c&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=f(e,t);return 0===s(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,r){e||(e=new c),p(e,t,r)}};return t}},16725:function(e,t,r){"use strict";var o=r(68750),n=r(75343),i=r(86524),a=r(4249),c=r(31805),l=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),f=n("WeakMap.prototype.has",!0),s=n("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new c("Side channel does not contain "+i(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return s(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?p(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),u(e,r,o)):a&&(t||(t=a()),t.set(r,o))}};return r}:a},95337:function(e,t,r){"use strict";var o=r(31805),n=r(86524),i=r(98842),a=r(4249),c=r(16725)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=c()),e.set(t,r)}};return t}}}]);
|
|
1
|
+
(self.webpackChunkPrometheus=self.webpackChunkPrometheus||[]).push([["4421"],{76439:function(e,t,r){"use strict";r.d(t,{Z:()=>p});var o=r(54538),n=r(96858),i=r(49267),a=r(24105);let c={...o}.useSyncExternalStore;function l(e={}){let{themeId:t}=e;return function(e,r={}){let l=(0,a.Z)();l&&t&&(l=l[t]||l);let p="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:u=!1,matchMedia:f=p?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:y=!1}=(0,i.Z)({name:"MuiUseMediaQuery",props:r,theme:l}),d="function"==typeof e?e(l):e;return(void 0!==c?function(e,t,r,n,i){let a=o.useCallback(()=>t,[t]),l=o.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return a},[a,e,n,i,r]),[p,u]=o.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,r,e]);return c(u,p,l)}:function(e,t,r,i,a){let[c,l]=o.useState(()=>a&&r?r(e).matches:i?i(e).matches:t);return(0,n.Z)(()=>{if(!r)return;let t=r(e),o=()=>{l(t.matches)};return o(),t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}},[e,r]),c})(d=d.replace(/^@media( ?)/m,""),u,f,s,y)}}l();let p=l({themeId:r(92994).Z})},66694:function(e,t,r){"use strict";r.d(t,{Q:()=>n,U:()=>o});let o="1h",n="0s"},73223:function(e,t,r){"use strict";r.r(t),r.d(t,{useExplorerQueryParams:()=>I,ExplorerManagerProvider:()=>b,useExplorerManagerContext:()=>v,ExploreManager:()=>x,ViewExplore:()=>P,ExploreToolbar:()=>m,explorerQueryConfig:()=>E});var o=r(24246),n=r(36372),i=r(71141),a=r(66694),c=r(20370),l=r(76006),p=r(54538),u=r(76439),f=r(25283),s=r(51781),y=r(49408),d=r(84954),h=r(94776);let m=e=>{let{exploreTitleComponent:t}=e,r=(0,u.Z)((0,h.Z)().breakpoints.up("lg"));return(0,o.jsx)(f.Z,{"data-testid":"explore-toolbar",children:(0,o.jsxs)(n.Z,{sx:{display:"flex",width:"100%"},children:[t,(0,o.jsx)(f.Z,{direction:"row",spacing:1,ml:"auto",flexWrap:r?"nowrap":"wrap-reverse",justifyContent:"end",children:(0,o.jsx)(i.TimeRangeControls,{})})]})})},g=(0,p.createContext)(void 0);function b({children:e,store:t}){let[r,n]=(0,p.useState)({}),i=(0,p.useState)({explorer:void 0,data:{}}),[a,c]=t||i,{explorer:l,data:u}=a;return(0,o.jsx)(g.Provider,{value:{explorer:l,data:u,setExplorer:function(e){l&&(r[l]={data:u},n(r));let t=r[e]??{data:{}};c({explorer:e,data:t.data})},setData:function(e){c({explorer:l,data:e})}},children:e})}function v(){let e=(0,p.useContext)(g);if(void 0===e)throw Error("No ExplorerManagerContext found. Did you forget a Provider?");return e}function x(e){let{exploreTitleComponent:t}=e,{explorer:r,setExplorer:n}=v(),a=(0,i.useListPluginMetadata)(["Explore"]),c=(0,u.Z)("(max-width: 768px)"),l=(0,p.useMemo)(()=>Object.fromEntries(a.data?.map(e=>[`${e.module.name}-${e.spec.name}`,e])??[]),[a.data]);(0,p.useEffect)(()=>{let e=Object.keys(l);!r&&e?.[0]&&n(e[0])},[l,r,n]);let h=r?l[r]:void 0;return r?(0,o.jsxs)(f.Z,{sx:{width:"100%"},px:2,pb:2,pt:1.5,gap:3,children:[(0,o.jsx)(m,{exploreTitleComponent:t}),(0,o.jsxs)(f.Z,{direction:c?"column":"row",gap:2,sx:{width:"100%"},children:[(0,o.jsx)(s.Z,{orientation:c?"horizontal":"vertical",value:r,onChange:(e,t)=>n(t),variant:c?"fullWidth":"scrollable",sx:{borderRight:+!c,borderBottom:+!!c,borderColor:"divider",minWidth:"100px"},children:a.data?.map(e=>o.jsx(y.Z,{value:`${e.module.name}-${e.spec.name}`,label:e.spec.display.name},`${e.module.name}-${e.spec.name}`))}),(0,o.jsx)(d.Z,{sx:{padding:"10px",width:"100%"},children:h&&(0,o.jsx)(i.PluginLoaderComponent,{plugin:{name:h.spec.name,moduleName:h.module.name}},`${h.module.name}-${h.spec.name}`)})]})]}):(0,o.jsx)("div",{children:"No explorer plugin available"})}var S=r(51564);let w={explorer:(0,S.withDefault)(S.StringParam,void 0),data:(0,S.withDefault)(S.JsonParam,{})};function j({children:e}){let[t,r]=(0,S.useQueryParams)(w);return(0,o.jsx)(b,{store:[t,r],children:e})}function A(e){let{exploreTitleComponent:t}=e,r=(0,c.useChartsTheme)();return(0,o.jsx)(n.Z,{sx:{flexGrow:1,overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column"},children:(0,o.jsx)(c.ChartsProvider,{chartsTheme:r,enablePinning:!1,children:(0,o.jsx)(j,{children:(0,o.jsx)(x,{exploreTitleComponent:t})})})})}function P(e){let{datasourceApi:t,externalVariableDefinitions:r,sx:p,exploreTitleComponent:u,...f}=e,s=(0,i.useInitialTimeRange)(a.U),y=(0,i.useInitialRefreshInterval)(a.Q);return(0,o.jsx)(l.DatasourceStoreProvider,{datasourceApi:t,children:(0,o.jsx)(i.TimeRangeProviderWithQueryParams,{initialTimeRange:s,initialRefreshInterval:y,children:(0,o.jsx)(l.VariableProvider,{externalVariableDefinitions:r,children:(0,o.jsx)(n.Z,{sx:(0,c.combineSx)({display:"flex",width:"100%",height:"100%",position:"relative",overflow:"hidden"},p),...f,children:(0,o.jsx)(c.ErrorBoundary,{FallbackComponent:c.ErrorAlert,children:(0,o.jsx)(A,{exploreTitleComponent:u})})})})})})}var O=r(8139);let E={refresh:i.TimeRangeParam,start:i.TimeRangeParam,end:i.TimeRangeParam,explorer:S.StringParam,data:S.JsonParam};function I(e){let[t]=(0,S.useQueryParams)(E,{updateType:"replaceIn"});return(0,O.stringify)((0,S.encodeQueryParams)(E,{...t,...e}))}},6088:function(e,t,r){"use strict";var o=r(20132),n=r(52453),i=r(31720),a=r(68273);e.exports=a||o.call(i,n)},52453:function(e){"use strict";e.exports=Function.prototype.apply},31720:function(e){"use strict";e.exports=Function.prototype.call},11519:function(e,t,r){"use strict";var o=r(20132),n=r(31805),i=r(31720),a=r(6088);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return a(o,i,e)}},68273:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},75343:function(e,t,r){"use strict";var o=r(68750),n=r(11519),i=n([o("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n([r]):r}},97755:function(e,t,r){"use strict";var o,n=r(11519),i=r(77502);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!o&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;e.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(e){return l(null==e?e:c(e))}},51544:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},73573:function(e){"use strict";e.exports=EvalError},85513:function(e){"use strict";e.exports=Error},77679:function(e){"use strict";e.exports=RangeError},39269:function(e){"use strict";e.exports=ReferenceError},74329:function(e){"use strict";e.exports=SyntaxError},31805:function(e){"use strict";e.exports=TypeError},99491:function(e){"use strict";e.exports=URIError},19767:function(e){"use strict";e.exports=Object},68458:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,o=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},n=function(e,t){for(var r=[],o=t||0,n=0;o<e.length;o+=1,n+=1)r[n]=e[o];return r},i=function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r};e.exports=function(e){var a,c=this;if("function"!=typeof c||"[object Function]"!==t.apply(c))throw TypeError("Function.prototype.bind called on incompatible "+c);for(var l=n(arguments,1),p=r(0,c.length-l.length),u=[],f=0;f<p;f++)u[f]="$"+f;if(a=Function("binder","return function ("+i(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=c.apply(this,o(l,arguments));return Object(t)===t?t:this}return c.apply(e,o(l,arguments))}),c.prototype){var s=function(){};s.prototype=c.prototype,a.prototype=new s,s.prototype=null}return a}},20132:function(e,t,r){"use strict";var o=r(68458);e.exports=Function.prototype.bind||o},68750:function(e,t,r){"use strict";var o,n=r(19767),i=r(85513),a=r(73573),c=r(77679),l=r(39269),p=r(74329),u=r(31805),f=r(99491),s=r(36354),y=r(72244),d=r(24268),h=r(55139),m=r(89544),g=r(56298),b=r(87558),v=Function,x=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(77502),w=r(51544),j=function(){throw new u},A=S?function(){try{return arguments.callee,j}catch(e){try{return S(arguments,"callee").get}catch(e){return j}}}():j,P=r(40679)(),O=r(87778),E=r(77819),I=r(84578),R=r(52453),D=r(31720),M={},k="undefined"!=typeof Uint8Array&&O?O(Uint8Array):o,F={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":P&&O?O([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":M,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&O?O(O([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P&&O?O(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P&&O?O(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&O?O(""[Symbol.iterator]()):o,"%Symbol%":P?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":A,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":R,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":E,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(O)try{null.error}catch(e){var T=O(O(e));F["%Error.prototype%"]=T}var N=function e(t){var r;if("%AsyncFunction%"===t)r=x("async function () {}");else if("%GeneratorFunction%"===t)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=x("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&O&&(r=O(n.prototype))}return F[t]=r,r},_={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=r(20132),U=r(71712),B=C.call(D,Array.prototype.concat),W=C.call(R,Array.prototype.splice),L=C.call(D,String.prototype.replace),$=C.call(D,String.prototype.slice),K=C.call(D,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,G=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return L(e,Q,function(e,t,r,n){o[o.length]=r?L(n,Z,"$1"):t||e}),o},H=function(e,t){var r,o=e;if(U(_,o)&&(o="%"+(r=_[o])[0]+"%"),U(F,o)){var n=F[o];if(n===M&&(n=N(o)),void 0===n&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,e))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G(e),o=r.length>0?r[0]:"",n=H("%"+o+"%",t),i=n.name,a=n.value,c=!1,l=n.alias;l&&(o=l[0],W(r,B([0,1],l)));for(var f=1,s=!0;f<r.length;f+=1){var y=r[f],d=$(y,0,1),h=$(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&s||(c=!0),o+="."+y,U(F,i="%"+o+"%"))a=F[i];else if(null!=a){if(!(y in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&f+1>=r.length){var m=S(a,y);a=(s=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else s=U(a,y),a=a[y];s&&!c&&(F[i]=a)}}return a}},77819:function(e,t,r){"use strict";var o=r(19767);e.exports=o.getPrototypeOf||null},84578:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},87778:function(e,t,r){"use strict";var o=r(84578),n=r(77819),i=r(97755);e.exports=o?function(e){return o(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:i?function(e){return i(e)}:null},76158:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},77502:function(e,t,r){"use strict";var o=r(76158);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},40679:function(e,t,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(8186);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},8186:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},71712:function(e,t,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(20132);e.exports=i.call(o,n)},36354:function(e){"use strict";e.exports=Math.abs},72244:function(e){"use strict";e.exports=Math.floor},77890:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},24268:function(e){"use strict";e.exports=Math.max},55139:function(e){"use strict";e.exports=Math.min},89544:function(e){"use strict";e.exports=Math.pow},56298:function(e){"use strict";e.exports=Math.round},87558:function(e,t,r){"use strict";var o=r(77890);e.exports=function(e){return o(e)||0===e?e:e<0?-1:1}},86524:function(e,t,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&l&&"function"==typeof l.get?l.get:null,u=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,x=String.prototype.toUpperCase,S=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,A=Array.prototype.join,P=Array.prototype.slice,O=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,M="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D?"object":"symbol")?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-O(-e):O(e);if(o!==e){var n=String(o),i=b.call(t,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var N=r(56050),_=N.custom,C=Q(_)?_:null,U={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function W(e,t,r){var o=U[r.quoteStyle||t];return o+e+o}function L(e){return!M||!("object"==typeof e&&(M in e||void 0!==e[M]))}function $(e){return"[object Array]"===H(e)&&L(e)}function K(e){return"[object RegExp]"===H(e)&&L(e)}function Q(e){if(D)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,n,c){var l,h,x,w,O,I=o||{};if(G(I,"quoteStyle")&&!G(U,I.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(G(I,"maxStringLength")&&("number"==typeof I.maxStringLength?I.maxStringLength<0&&I.maxStringLength!==1/0:null!==I.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _=!G(I,"customInspect")||I.customInspect;if("boolean"!=typeof _&&"symbol"!==_)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(I,"indent")&&null!==I.indent&&" "!==I.indent&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(I,"numericSeparator")&&"boolean"!=typeof I.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Z=I.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var o=t.length-r.maxStringLength;return e(b.call(t,0,r.maxStringLength),r)+("... "+o)+" more character"+(o>1?"s":"")}var n=B[r.quoteStyle||"single"];return n.lastIndex=0,W(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,z),"single",r)}(t,I);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return Z?T(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return Z?T(t,er):er}var eo=void 0===I.depth?5:I.depth;if(void 0===n&&(n=0),n>=eo&&eo>0&&"object"==typeof t)return $(t)?"[Array]":"[Object]";var en=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(I,n);if(void 0===c)c=[];else if(V(c,t)>=0)return"[Circular]";function ei(t,r,o){if(r&&(c=P.call(c)).push(r),o){var i={depth:I.depth};return G(I,"quoteStyle")&&(i.quoteStyle=I.quoteStyle),e(t,i,n+1,c)}return e(t,I,n+1,c)}if("function"==typeof t&&!K(t)){var ea=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ec=ee(t,ei);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(ec.length>0?" { "+A.call(ec,", ")+" }":"")}if(Q(t)){var el=D?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||D?el:q(el)}if((ep=t)&&"object"==typeof ep&&("undefined"!=typeof HTMLElement&&ep instanceof HTMLElement||"string"==typeof ep.nodeName&&"function"==typeof ep.getAttribute)){for(var ep,eu,ef="<"+S.call(String(t.nodeName)),es=t.attributes||[],ey=0;ey<es.length;ey++){ef+=" "+es[ey].name+"="+W((eu=es[ey].value,v.call(String(eu),/"/g,""")),"double",I)}return ef+=">",t.childNodes&&t.childNodes.length&&(ef+="..."),ef+="</"+S.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var ed=ee(t,ei);return en&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ed)?"["+Y(ed,en)+"]":"[ "+A.call(ed,", ")+" ]"}if("[object Error]"===H(l=t)&&L(l)){var eh=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||k.call(t,"cause")?0===eh.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(eh,", ")+" }":"{ ["+String(t)+"] "+A.call(j.call("[cause]: "+ei(t.cause),eh),", ")+" }"}if("object"==typeof t&&_){if(C&&"function"==typeof t[C]&&N)return N(t,{depth:eo-n});if("symbol"!==_&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var em=[];return a&&a.call(t,function(e,r){em.push(ei(r,t,!0)+" => "+ei(e,t))}),X("Map",i.call(t),em,en)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eg=[];return u&&u.call(t,function(e){eg.push(ei(e,t))}),X("Set",p.call(t),eg,en)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if("[object Number]"===H(h=t)&&L(h))return q(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return q(ei(E.call(t)));if("[object Boolean]"===H(x=t)&&L(x))return q(d.call(t));if("[object String]"===H(w=t)&&L(w))return q(ei(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===H(O=t)&&L(O))&&!K(t)){var eb=ee(t,ei),ev=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,ex=t instanceof Object?"":"null prototype",eS=!ev&&M&&Object(t)===t&&M in t?b.call(H(t),8,-1):ex?"Object":"",ew=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eS||ex?"["+A.call(j.call([],eS||[],ex||[]),": ")+"] ":"");return 0===eb.length?ew+"{}":en?ew+"{"+Y(eb,en)+"}":ew+"{ "+A.call(eb,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return Z.call(e,t)}function H(e){return h.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return -1}function z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function q(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,r,o){return e+" ("+t+") {"+(o?Y(r,o):A.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,o=$(e),n=[];if(o){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=G(e,i)?t(e[i],e):""}var a="function"==typeof I?I(e):[];if(D){r={};for(var c=0;c<a.length;c++)r["$"+a[c]]=a[c]}for(var l in e){if(G(e,l)&&(!o||String(Number(l))!==l||!(l<e.length)))!(D&&r["$"+l]instanceof Symbol)&&(w.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e)))}if("function"==typeof I)for(var p=0;p<a.length;p++)k.call(e,a[p])&&n.push("["+t(a[p])+"]: "+t(e[a[p]],e));return n}},69771:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},8139:function(e,t,r){"use strict";var o=r(56360),n=r(19520),i=r(69771);e.exports={formats:i,parse:n,stringify:o}},19520:function(e,t,r){"use strict";var o=r(54330),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,p),f=-1,s=t.charset;if(t.charsetSentinel)for(y=0;y<u.length;++y)0===u[y].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[y]?s="utf-8":"utf8=%26%2310003%3B"===u[y]&&(s="iso-8859-1"),f=y,y=u.length);for(y=0;y<u.length;++y)if(y!==f){var y,d,h,m=u[y],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(d=t.decoder(m,a.decoder,s,"key"),h=t.strictNullHandling?null:""):(d=t.decoder(m.slice(0,b),a.decoder,s,"key"),h=o.maybeMap(c(m.slice(b+1),t),function(e){return t.decoder(e,a.decoder,s,"value")})),h&&t.interpretNumericEntities&&"iso-8859-1"===s&&(h=h.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(h=i(h)?[h]:h);var v=n.call(r,d);v&&"combine"===t.duplicates?r[d]=o.combine(r[d],h):v&&"last"!==t.duplicates||(r[d]=h)}return r},p=function(e,t,r,o){for(var n=o?t:c(t,r),i=e.length-1;i>=0;--i){var a,l=e[i];if("[]"===l&&r.parseArrays)a=r.allowEmptyArrays&&(""===n||r.strictNullHandling&&null===n)?[]:[].concat(n);else{a=r.plainObjects?Object.create(null):{};var p="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,u=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&l!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=n:"__proto__"!==u&&(a[u]=n):a={0:n}}n=a}return n},u=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=c?i.slice(0,c.index):i,u=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var f=0;r.depth>0&&null!==(c=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(c[1])}if(c){if(!0===r.strictDepth)throw RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(c.index)+"]")}return p(u,t,r,o)}},f=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?l(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),c=0;c<a.length;++c){var p=a[c],s=u(p,n[p],r,"string"==typeof e);i=o.merge(i,s,r)}return!0===r.allowSparse?i:o.compact(i)}},56360:function(e,t,r){"use strict";var o=r(95337),n=r(54330),i=r(69771),a=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,p=Array.prototype.push,u=function(e,t){p.apply(e,l(t)?t:[t])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},h=function e(t,r,i,a,c,p,f,s,h,m,g,b,v,x,S,w,j,A){for(var P,O,E=t,I=A,R=0,D=!1;void 0!==(I=I.get(d))&&!D;){var M=I.get(t);if(R+=1,void 0!==M){if(M===R)throw RangeError("Cyclic object value");D=!0}void 0===I.get(d)&&(R=0)}if("function"==typeof m?E=m(r,E):E instanceof Date?E=v(E):"comma"===i&&l(E)&&(E=n.maybeMap(E,function(e){return e instanceof Date?v(e):e})),null===E){if(p)return h&&!w?h(r,y.encoder,j,"key",x):r;E=""}if("string"==typeof(P=E)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||n.isBuffer(E))return h?[S(w?r:h(r,y.encoder,j,"key",x))+"="+S(h(E,y.encoder,j,"value",x))]:[S(r)+"="+S(String(E))];var k=[];if(void 0===E)return k;if("comma"===i&&l(E))w&&h&&(E=n.maybeMap(E,h)),O=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(m))O=m;else{var F=Object.keys(E);O=g?F.sort(g):F}var T=s?r.replace(/\./g,"%2E"):r,N=a&&l(E)&&1===E.length?T+"[]":T;if(c&&l(E)&&0===E.length)return N+"[]";for(var _=0;_<O.length;++_){var C=O[_],U="object"==typeof C&&void 0!==C.value?C.value:E[C];if(!f||null!==U){var B=b&&s?C.replace(/\./g,"%2E"):C,W=l(E)?"function"==typeof i?i(N,B):N:N+(b?"."+B:"["+B+"]");A.set(t,R);var L=o();L.set(d,A),u(k,e(U,W,i,a,c,p,f,s,"comma"===i&&w&&l(E)?null:h,m,g,b,v,x,S,w,j,L))}}return k},m=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");o=e.format}var n=i.formatters[o],p=y.filter;if(("function"==typeof e.filter||l(e.filter))&&(p=e.filter),t=e.arrayFormat in c?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:o,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}};e.exports=function(e,t){var r,n,i=e,a=m(t);"function"==typeof a.filter?i=(0,a.filter)("",i):l(a.filter)&&(r=a.filter);var p=[];if("object"!=typeof i||null===i)return"";var f=c[a.arrayFormat],s="comma"===f&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var y=o(),d=0;d<r.length;++d){var g=r[d];(!a.skipNulls||null!==i[g])&&u(p,h(i[g],g,f,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,y))}var b=p.join(a.delimiter),v=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},54330:function(e,t,r){"use strict";var o=r(69771),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}},l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],a=Object.keys(i),l=0;l<a.length;++l){var p=a[l],u=i[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:p}),r.push(u))}return c(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r,n,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",p=0;p<c.length;p+=1024){for(var u=c.length>=1024?c.slice(p,p+1024):c,f=[],s=0;s<u.length;++s){var y=u.charCodeAt(s);if(45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===o.RFC1738&&(40===y||41===y)){f[f.length]=u.charAt(s);continue}if(y<128){f[f.length]=a[y];continue}if(y<2048){f[f.length]=a[192|y>>6]+a[128|63&y];continue}if(y<55296||y>=57344){f[f.length]=a[224|y>>12]+a[128|y>>6&63]+a[128|63&y];continue}s+=1,y=65536+((1023&y)<<10|1023&u.charCodeAt(s)),f[f.length]=a[240|y>>18]+a[128|y>>12&63]+a[128|y>>6&63]+a[128|63&y]}l+=f.join("")}return l},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=l(t,o)),i(t)&&i(r))?(r.forEach(function(r,i){if(n.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,o):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},98842:function(e,t,r){"use strict";var o=r(86524),n=r(31805),i=function(e,t,r){for(var o,n=e;null!=(o=n.next);n=o)if(o.key===t)return n.next=o.next,r||(o.next=e.next,e.next=o),o},a=function(e,t){if(e){var r=i(e,t);return r&&r.value}},c=function(e,t,r){var o=i(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}},l=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){var r=e&&e.next,o=l(e,t);return o&&r&&r===o&&(e=void 0),!!o},get:function(t){return a(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),c(e,t,r)}};return t}},4249:function(e,t,r){"use strict";var o=r(68750),n=r(75343),i=r(86524),a=r(31805),c=o("%Map%",!0),l=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),f=n("Map.prototype.delete",!0),s=n("Map.prototype.size",!0);e.exports=!!c&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=f(e,t);return 0===s(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,r){e||(e=new c),p(e,t,r)}};return t}},16725:function(e,t,r){"use strict";var o=r(68750),n=r(75343),i=r(86524),a=r(4249),c=r(31805),l=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),f=n("WeakMap.prototype.has",!0),s=n("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new c("Side channel does not contain "+i(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return s(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?p(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),u(e,r,o)):a&&(t||(t=a()),t.set(r,o))}};return r}:a},95337:function(e,t,r){"use strict";var o=r(31805),n=r(86524),i=r(98842),a=r(4249),c=r(16725)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=c()),e.set(t,r)}};return t}}}]);
|