Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

54 lines
24 KiB

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[100],{2428:function(e,t,r){var n=r(8169),i=r(5893);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add")},2026:function(e,t,r){var n=r(8169),i=r(5893);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},1797:function(e,t,r){var n=r(8169),i=r(5893);t.Z=(0,n.Z)((0,i.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit")},8128:function(e,t,r){r.d(t,{Z:function(){return x}});var n=r(3366),i=r(7462),o=r(7294),a=r(7192),u=r(1796),c=r(1964),s=r(8169),l=r(5893),d=(0,s.Z)((0,l.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),f=(0,s.Z)((0,l.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),h=(0,s.Z)((0,l.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),p=r(8216),v=r(7623),b=r(1496),m=r(3631);const g=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],y=(0,b.ZP)(c.Z,{shouldForwardProp:e=>(0,b.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,"default"!==r.color&&t[`color${(0,p.Z)(r.color)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({color:e.palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:(0,u.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${m.Z.checked}, &.${m.Z.indeterminate}`]:{color:e.palette[t.color].main},[`&.${m.Z.disabled}`]:{color:e.palette.action.disabled}}))),w=(0,l.jsx)(f,{}),Z=(0,l.jsx)(d,{}),k=(0,l.jsx)(h,{});var x=o.forwardRef((function(e,t){var r,u;const c=(0,v.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=w,color:d="primary",icon:f=Z,indeterminate:h=!1,indeterminateIcon:b=k,inputProps:x,size:C="medium"}=c,S=(0,n.Z)(c,g),P=h?b:f,O=h?b:s,B=(0,i.Z)({},c,{color:d,indeterminate:h,size:C}),R=(e=>{const{classes:t,indeterminate:r,color:n}=e,o={root:["root",r&&"indeterminate",`color${(0,p.Z)(n)}`]},u=(0,a.Z)(o,m.y,t);return(0,i.Z)({},t,u)})(B);return(0,l.jsx)(y,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":h},x),icon:o.cloneElement(P,{fontSize:null!=(r=P.props.fontSize)?r:C}),checkedIcon:o.cloneElement(O,{fontSize:null!=(u=O.props.fontSize)?u:C}),ownerState:B,ref:t},S,{classes:R}))}))},3631:function(e,t,r){r.d(t,{y:function(){return i}});var n=r(8979);function i(e){return(0,n.Z)("MuiCheckbox",e)}const o=(0,r(6087).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);t.Z=o},7167:function(e,t,r){const n=r(7294).createContext();t.Z=n},4423:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(7294),i=r(7167);function o(){return n.useContext(i.Z)}},1458:function(e,t,r){r.d(t,{Z:function(){return z}});var n=r(3366),i=r(7462),o=r(7294),a=r(6010),u=r(7192),c=r(917),s=r(1796),l=r(8216),d=r(2734),f=r(1496),h=r(7623),p=r(8979);function v(e){return(0,p.Z)("MuiLinearProgress",e)}(0,r(6087).Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var b=r(5893);const m=["className","color","value","valueBuffer","variant"];let g,y,w,Z,k,x,C=e=>e;const S=(0,c.F4)(g||(g=C`
0% {
left: -35%;
right: 100%;
}
60% {
left: 100%;
right: -90%;
}
100% {
left: 100%;
right: -90%;
}
`)),P=(0,c.F4)(y||(y=C`
0% {
left: -200%;
right: 100%;
}
60% {
left: 107%;
right: -8%;
}
100% {
left: 107%;
right: -8%;
}
`)),O=(0,c.F4)(w||(w=C`
0% {
opacity: 1;
background-position: 0 -23px;
}
60% {
opacity: 0;
background-position: 0 -23px;
}
100% {
opacity: 1;
background-position: -200px -23px;
}
`)),B=(e,t)=>"inherit"===t?"currentColor":"light"===e.palette.mode?(0,s.$n)(e.palette[t].main,.62):(0,s._j)(e.palette[t].main,.5),R=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${(0,l.Z)(r.color)}`],t[r.variant]]}})((({ownerState:e,theme:t})=>(0,i.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:B(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),M=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${(0,l.Z)(r.color)}`]]}})((({ownerState:e,theme:t})=>{const r=B(t,e.color);return(0,i.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,c.iv)(Z||(Z=C`
animation: ${0} 3s infinite linear;
`),O)),I=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,l.Z)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,i.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.iv)(k||(k=C`
width: auto;
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
`),S))),j=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,l.Z)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,i.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:B(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.iv)(x||(x=C`
width: auto;
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
`),P)));var z=o.forwardRef((function(e,t){const r=(0,h.Z)({props:e,name:"MuiLinearProgress"}),{className:o,color:c="primary",value:s,valueBuffer:f,variant:p="indeterminate"}=r,g=(0,n.Z)(r,m),y=(0,i.Z)({},r,{color:c,variant:p}),w=(e=>{const{classes:t,variant:r,color:n}=e,i={root:["root",`color${(0,l.Z)(n)}`,r],dashed:["dashed",`dashedColor${(0,l.Z)(n)}`],bar1:["bar",`barColor${(0,l.Z)(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&`barColor${(0,l.Z)(n)}`,"buffer"===r&&`color${(0,l.Z)(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,u.Z)(i,v,t)})(y),Z=(0,d.Z)(),k={},x={bar1:{},bar2:{}};if("determinate"===p||"buffer"===p)if(void 0!==s){k["aria-valuenow"]=Math.round(s),k["aria-valuemin"]=0,k["aria-valuemax"]=100;let e=s-100;"rtl"===Z.direction&&(e=-e),x.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===p)if(void 0!==f){let e=(f||0)-100;"rtl"===Z.direction&&(e=-e),x.bar2.transform=`translateX(${e}%)`}else 0;return(0,b.jsxs)(R,(0,i.Z)({className:(0,a.Z)(w.root,o),ownerState:y,role:"progressbar"},k,{ref:t},g,{children:["buffer"===p?(0,b.jsx)(M,{className:w.dashed,ownerState:y}):null,(0,b.jsx)(I,{className:w.bar1,ownerState:y,style:x.bar1}),"determinate"===p?null:(0,b.jsx)(j,{className:w.bar2,ownerState:y,style:x.bar2})]}))}))},1964:function(e,t,r){r.d(t,{Z:function(){return y}});var n=r(3366),i=r(7462),o=r(7294),a=r(6010),u=r(7192),c=r(8216),s=r(1496),l=r(2627),d=r(4423),f=r(7739),h=r(8979);function p(e){return(0,h.Z)("PrivateSwitchBase",e)}(0,r(6087).Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var v=r(5893);const b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],m=(0,s.ZP)(f.Z)((({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),g=(0,s.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var y=o.forwardRef((function(e,t){const{autoFocus:r,checked:o,checkedIcon:s,className:f,defaultChecked:h,disabled:y,disableFocusRipple:w=!1,edge:Z=!1,icon:k,id:x,inputProps:C,inputRef:S,name:P,onBlur:O,onChange:B,onFocus:R,readOnly:M,required:I,tabIndex:j,type:z,value:E}=e,F=(0,n.Z)(e,b),[$,L]=(0,l.Z)({controlled:o,default:Boolean(h),name:"SwitchBase",state:"checked"}),T=(0,d.Z)();let V=y;T&&"undefined"===typeof V&&(V=T.disabled);const D="checkbox"===z||"radio"===z,N=(0,i.Z)({},e,{checked:$,disabled:V,disableFocusRipple:w,edge:Z}),q=(e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,o={root:["root",r&&"checked",n&&"disabled",i&&`edge${(0,c.Z)(i)}`],input:["input"]};return(0,u.Z)(o,p,t)})(N);return(0,v.jsxs)(m,(0,i.Z)({component:"span",className:(0,a.Z)(q.root,f),centerRipple:!0,focusRipple:!w,disabled:V,tabIndex:null,role:void 0,onFocus:e=>{R&&R(e),T&&T.onFocus&&T.onFocus(e)},onBlur:e=>{O&&O(e),T&&T.onBlur&&T.onBlur(e)},ownerState:N,ref:t},F,{children:[(0,v.jsx)(g,(0,i.Z)({autoFocus:r,checked:o,defaultChecked:h,className:q.input,disabled:V,id:D&&x,name:P,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),B&&B(e,t)},readOnly:M,ref:S,required:I,ownerState:N,tabIndex:j,type:z},"checkbox"===z&&void 0===E?{}:{value:E},C)),$?s:k]}))}))},8600:function(e){const t=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],n=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],i=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],o=(e,t,r)=>{let n=e;return"string"===typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):!0!==t&&void 0===r||(n=e.toLocaleString(void 0,r)),n};e.exports=(e,a)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const u=(a=Object.assign({bits:!1,binary:!1},a)).bits?a.binary?i:n:a.binary?r:t;if(a.signed&&0===e)return` 0 ${u[0]}`;const c=e<0,s=c?"-":a.signed?"+":"";let l;if(c&&(e=-e),void 0!==a.minimumFractionDigits&&(l={minimumFractionDigits:a.minimumFractionDigits}),void 0!==a.maximumFractionDigits&&(l=Object.assign({maximumFractionDigits:a.maximumFractionDigits},l)),e<1){return s+o(e,a.locale,l)+" "+u[0]}const d=Math.min(Math.floor(a.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),u.length-1);e/=Math.pow(a.binary?1024:1e3,d),l||(e=e.toPrecision(3));return s+o(Number(e),a.locale,l)+" "+u[d]}},2515:function(e,t,r){r.d(t,{ZP:function(){return F}});var n=r(7294),i=Object.prototype.hasOwnProperty;var o=new WeakMap,a=0;var u=function(){function e(e){void 0===e&&(e={}),this.cache=new Map(Object.entries(e)),this.subs=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.cache.get(t)},e.prototype.set=function(e,t){var r=this.serializeKey(e)[0];this.cache.set(r,t),this.notify()},e.prototype.keys=function(){return Array.from(this.cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.cache.has(t)},e.prototype.clear=function(){this.cache.clear(),this.notify()},e.prototype.delete=function(e){var t=this.serializeKey(e)[0];this.cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"===typeof e)try{e=e()}catch(r){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",r=0;r<e.length;++r)if(null!==e[r]){var n=void 0;"object"!==typeof e[r]&&"function"!==typeof e[r]?n="string"===typeof e[r]?'"'+e[r]+'"':String(e[r]):o.has(e[r])?n=o.get(e[r]):(n=a,o.set(e[r],a++)),t+="@"+n}else t+="@null";return t}(e)):e=String(e||""),[e,t,e?"err@"+e:"",e?"validating@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!==typeof e)throw new Error("Expected the listener to be a function.");var r=!0;return this.subs.push(e),function(){if(r){r=!1;var n=t.subs.indexOf(e);n>-1&&(t.subs[n]=t.subs[t.subs.length-1],t.subs.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.subs;e<t.length;e++){(0,t[e])()}},e}(),c=!0,s={isOnline:function(){return c},isDocumentVisible:function(){return"undefined"===typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState},fetcher:function(e){return fetch(e).then((function(e){return e.json()}))},registerOnFocus:function(e){"undefined"!==typeof window&&void 0!==window.addEventListener&&"undefined"!==typeof document&&void 0!==document.addEventListener&&(document.addEventListener("visibilitychange",(function(){return e()}),!1),window.addEventListener("focus",(function(){return e()}),!1))},registerOnReconnect:function(e){"undefined"!==typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",(function(){c=!0,e()}),!1),window.addEventListener("offline",(function(){return c=!1}),!1))}},l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)},d=new u;var f="undefined"!==typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),h=l({onLoadingSlow:function(){},onSuccess:function(){},onError:function(){},onErrorRetry:function(e,t,r,n,i){if(r.isDocumentVisible()&&!("number"===typeof r.errorRetryCount&&i.retryCount>r.errorRetryCount)){var o=Math.min(i.retryCount,8),a=~~((Math.random()+.5)*(1<<o))*r.errorRetryInterval;setTimeout(n,a,i)}},errorRetryInterval:1e3*(f?10:5),focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:1e3*(f?5:3),refreshInterval:0,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshWhenHidden:!1,refreshWhenOffline:!1,shouldRetryOnError:!0,suspense:!1,compare:function e(t,r){var n,o;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((o=t.length)===r.length)for(;o--&&e(t[o],r[o]););return-1===o}if(!n||"object"===typeof t){for(n in o=0,t){if(i.call(t,n)&&++o&&!i.call(r,n))return!1;if(!(n in r)||!e(t[n],r[n]))return!1}return Object.keys(r).length===o}}return t!==t&&r!==r},isPaused:function(){return!1}},s),p=h,v="undefined"===typeof window||!!("undefined"!==typeof Deno&&Deno&&Deno.version&&Deno.version.deno),b=v?null:window.requestAnimationFrame?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(e,1)},m=v?n.useEffect:n.useLayoutEffect,g=(0,n.createContext)({});g.displayName="SWRConfigContext";var y=g,w=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function u(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},Z=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},k={},x={},C={},S={},P={},O={},B={},R=function(){var e=0;return function(){return++e}}();if(!v){var M=function(e){if(p.isDocumentVisible()&&p.isOnline())for(var t in e)e[t][0]&&e[t][0]()};"function"===typeof p.registerOnFocus&&p.registerOnFocus((function(){return M(C)})),"function"===typeof p.registerOnReconnect&&p.registerOnReconnect((function(){return M(S)}))}var I=function(e,t){void 0===t&&(t=!0);var r=d.serializeKey(e),n=r[0],i=r[2],o=r[3];if(!n)return Promise.resolve();var a=P[n];if(n&&a){for(var u=d.get(n),c=d.get(i),s=d.get(o),l=[],f=0;f<a.length;++f)l.push(a[f](t,u,c,s,f>0));return Promise.all(l).then((function(){return d.get(n)}))}return Promise.resolve(d.get(n))},j=function(e,t,r,n){var i=P[e];if(e&&i)for(var o=0;o<i.length;++o)i[o](!1,t,r,n)},z=function(e,t,r){return void 0===r&&(r=!0),w(void 0,void 0,void 0,(function(){var n,i,o,a,u,c,s,l,f,h,p,v,b;return Z(this,(function(m){switch(m.label){case 0:if(n=d.serializeKey(e),i=n[0],o=n[2],!i)return[2];if("undefined"===typeof t)return[2,I(e,r)];if(O[i]=R()-1,B[i]=0,a=O[i],u=x[i],l=!1,t&&"function"===typeof t)try{t=t(d.get(i))}catch(g){t=void 0,s=g}if(!t||"function"!==typeof t.then)return[3,5];l=!0,m.label=1;case 1:return m.trys.push([1,3,,4]),[4,t];case 2:return c=m.sent(),[3,4];case 3:return f=m.sent(),s=f,[3,4];case 4:return[3,6];case 5:c=t,m.label=6;case 6:if((h=function(){if(a!==O[i]||u!==x[i]){if(s)throw s;return!0}})())return[2,c];if("undefined"!==typeof c&&d.set(i,c),d.set(o,s),B[i]=R()-1,!l&&h())return[2,c];if(p=P[i]){for(v=[],b=0;b<p.length;++b)v.push(p[b](!!r,c,s,void 0,b>0));return[2,Promise.all(v).then((function(){if(s)throw s;return d.get(i)}))]}if(s)throw s;return[2,c]}}))}))};Object.defineProperty(y.Provider,"default",{value:p});y.Provider;var E=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t[0],o=Object.assign({},p,(0,n.useContext)(y),t.length>2?t[2]:2===t.length&&"object"===typeof t[1]?t[1]:{}),a=t.length>2||2===t.length&&"function"===typeof t[1]||null===t[1]?t[1]:o.fetcher,u=d.serializeKey(i),c=u[0],s=u[1],l=u[2],f=u[3],h=(0,n.useRef)(o);m((function(){h.current=o}));var g=function(){return o.revalidateOnMount||!o.initialData&&void 0===o.revalidateOnMount},M=function(){var e=d.get(c);return"undefined"===typeof e?o.initialData:e},I=function(){return!!d.get(f)||c&&g()},E=M(),F=d.get(l),$=I(),L=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),T=(0,n.useRef)({data:E,error:F,isValidating:$});(0,n.useDebugValue)(T.current.data);var V,D,N=(0,n.useState)({})[1],q=(0,n.useCallback)((function(e){var t=!1;for(var r in e)T.current[r]!==e[r]&&(T.current[r]=e[r],L.current[r]&&(t=!0));if(t){if(A.current||!K.current)return;N({})}}),[]),A=(0,n.useRef)(!1),H=(0,n.useRef)(c),K=(0,n.useRef)(!1),W=(0,n.useCallback)((function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];A.current||K.current&&c===H.current&&(t=h.current)[e].apply(t,r)}),[c]),G=(0,n.useCallback)((function(e,t){return z(H.current,e,t)}),[]),_=function(e,t){return e[c]?e[c].push(t):e[c]=[t],function(){var r=e[c],n=r.indexOf(t);n>=0&&(r[n]=r[r.length-1],r.pop())}},Y=(0,n.useCallback)((function(t){return void 0===t&&(t={}),w(e,void 0,void 0,(function(){var e,r,n,i,u,p,v,b,m,g;return Z(this,(function(y){switch(y.label){case 0:if(!c||!a)return[2,!1];if(A.current)return[2,!1];if(h.current.isPaused())return[2,!1];e=t.retryCount,r=void 0===e?0:e,n=t.dedupe,i=void 0!==n&&n,u=!0,p="undefined"!==typeof k[c]&&i,y.label=1;case 1:return y.trys.push([1,6,,7]),q({isValidating:!0}),d.set(f,!0),p||j(c,T.current.data,T.current.error,!0),v=void 0,b=void 0,p?(b=x[c],[4,k[c]]):[3,3];case 2:return v=y.sent(),[3,5];case 3:return o.loadingTimeout&&!d.get(c)&&setTimeout((function(){u&&W("onLoadingSlow",c,o)}),o.loadingTimeout),k[c]=null!==s?a.apply(void 0,s):a(c),x[c]=b=R(),[4,k[c]];case 4:v=y.sent(),setTimeout((function(){delete k[c],delete x[c]}),o.dedupingInterval),W("onSuccess",v,c,o),y.label=5;case 5:return x[c]>b?[2,!1]:O[c]&&(b<=O[c]||b<=B[c]||0===B[c])?(q({isValidating:!1}),[2,!1]):(d.set(l,void 0),d.set(f,!1),m={isValidating:!1},"undefined"!==typeof T.current.error&&(m.error=void 0),o.compare(T.current.data,v)||(m.data=v),o.compare(d.get(c),v)||d.set(c,v),q(m),p||j(c,v,m.error,!1),[3,7]);case 6:return g=y.sent(),delete k[c],delete x[c],h.current.isPaused()?(q({isValidating:!1}),[2,!1]):(d.set(l,g),T.current.error!==g&&(q({isValidating:!1,error:g}),p||j(c,void 0,g,!1)),W("onError",g,c,o),o.shouldRetryOnError&&W("onErrorRetry",g,c,o,Y,{retryCount:r+1,dedupe:!0}),[3,7]);case 7:return u=!1,[2,!0]}}))}))}),[c]);if(m((function(){if(c){A.current=!1;var e=K.current;K.current=!0;var t=T.current.data,r=M();H.current=c,o.compare(t,r)||q({data:r});var n=function(){return Y({dedupe:!0})};(e||g())&&("undefined"===typeof r||v?n():b(n));var i=!1,a=_(C,(function(){!i&&h.current.revalidateOnFocus&&(i=!0,n(),setTimeout((function(){return i=!1}),h.current.focusThrottleInterval))})),u=_(S,(function(){h.current.revalidateOnReconnect&&n()})),s=_(P,(function(e,t,r,i,a){void 0===e&&(e=!0),void 0===a&&(a=!0);var u={},c=!1;return"undefined"===typeof t||o.compare(T.current.data,t)||(u.data=t,c=!0),T.current.error!==r&&(u.error=r,c=!0),"undefined"!==typeof i&&T.current.isValidating!==i&&(u.isValidating=i,c=!0),c&&q(u),!!e&&(a?n():Y())}));return function(){q=function(){return null},A.current=!0,a(),u(),s()}}}),[c,Y]),m((function(){var t=null,r=function(){return w(e,void 0,void 0,(function(){return Z(this,(function(e){switch(e.label){case 0:return T.current.error||!h.current.refreshWhenHidden&&!h.current.isDocumentVisible()||!h.current.refreshWhenOffline&&!h.current.isOnline()?[3,2]:[4,Y({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return h.current.refreshInterval&&t&&(t=setTimeout(r,h.current.refreshInterval)),[2]}}))}))};return h.current.refreshInterval&&(t=setTimeout(r,h.current.refreshInterval)),function(){t&&(clearTimeout(t),t=null)}}),[o.refreshInterval,o.refreshWhenHidden,o.refreshWhenOffline,Y]),o.suspense){if(V=d.get(c),D=d.get(l),"undefined"===typeof V&&(V=E),"undefined"===typeof D&&(D=F),"undefined"===typeof V&&"undefined"===typeof D){if(k[c]||Y(),k[c]&&"function"===typeof k[c].then)throw k[c];V=k[c]}if("undefined"===typeof V&&D)throw D}var X=(0,n.useMemo)((function(){var e={revalidate:Y,mutate:G};return Object.defineProperties(e,{error:{get:function(){return L.current.error=!0,o.suspense?D:H.current===c?T.current.error:F},enumerable:!0},data:{get:function(){return L.current.data=!0,o.suspense?V:H.current===c?T.current.data:E},enumerable:!0},isValidating:{get:function(){return L.current.isValidating=!0,!!c&&T.current.isValidating},enumerable:!0}}),e}),[Y,E,F,G,c,o.suspense,D,V]);return X};var F=E}}]);