var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
  let window = _____WB$wombat$assign$function_____("window");
  let self = _____WB$wombat$assign$function_____("self");
  let document = _____WB$wombat$assign$function_____("document");
  let location = _____WB$wombat$assign$function_____("location");
  let top = _____WB$wombat$assign$function_____("top");
  let parent = _____WB$wombat$assign$function_____("parent");
  let frames = _____WB$wombat$assign$function_____("frames");
  let opener = _____WB$wombat$assign$function_____("opener");

(globalThis.webpackChunkcalypso=globalThis.webpackChunkcalypso||[]).push([[96235],{"../node_modules/@wordpress/react-i18n/build-module/index.js":(e,t,n)=>{"use strict";n.d(t,{bd:()=>u,QT:()=>a});var r=n("../node_modules/react/index.js"),i=n("../node_modules/@wordpress/i18n/build-module/index.js");function s(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}const o=(0,r.createContext)(s(i.i$));function u(e){const{children:t,i18n:n=i.i$}=e,[u,a]=(0,r.useReducer)((()=>[]),[]);(0,r.useEffect)((()=>n.subscribe(a)),[n]);const c=(0,r.useMemo)((()=>s(n)),[n,u]);return(0,r.createElement)(o.Provider,{value:c},t)}const a=()=>(0,r.useContext)(o)},"../node_modules/prop-types/factoryWithThrowingShims.js":(e,t,n)=>{"use strict";var r=n("../node_modules/prop-types/lib/ReactPropTypesSecret.js");function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,s,o){if(o!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return n.PropTypes=n,n}},"../node_modules/prop-types/index.js":(e,t,n)=>{e.exports=n("../node_modules/prop-types/factoryWithThrowingShims.js")()},"../node_modules/prop-types/lib/ReactPropTypesSecret.js":e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"../node_modules/react-query/es/core/focusManager.js":(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n("../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),i=n("../node_modules/react-query/es/core/subscribable.js"),s=n("../node_modules/react-query/es/core/utils.js"),o=new(function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(e){var t=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=e((function(e){"boolean"==typeof e?t.setFocused(e):t.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},n.setDefaultEventListener=function(){var e;!s.sk&&(null==(e=window)?void 0:e.addEventListener)&&this.setEventListener((function(e){var t=function(){return e()};return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),function(){window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}))},t}(i.l))},"../node_modules/react-query/es/core/hydration.js":(e,t,n)=>{"use strict";n.d(t,{D:()=>o,Z:()=>u});var r=n("../node_modules/@babel/runtime/helpers/esm/extends.js");function i(e){return e.state.isPaused}function s(e){return"success"===e.state.status}function o(e,t){var n,r,o=[],u=[];if(!1!==(null==(n=t=t||{})?void 0:n.dehydrateMutations)){var a=t.shouldDehydrateMutation||i;e.getMutationCache().getAll().forEach((function(e){a(e)&&o.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==(null==(r=t)?void 0:r.dehydrateQueries)){var c=t.shouldDehydrateQuery||s;e.getQueryCache().getAll().forEach((function(e){c(e)&&u.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:o,queries:u}}function u(e,t,n){if("object"==typeof t&&null!==t){var i=e.getMutationCache(),s=e.getQueryCache(),o=t.mutations||[],u=t.queries||[];o.forEach((function(t){var s;i.build(e,(0,r.Z)({},null==n||null==(s=n.defaultOptions)?void 0:s.mutations,{mutationKey:t.mutationKey}),t.state)})),u.forEach((function(t){var i,o=s.get(t.queryHash);o?o.state.dataUpdatedAt<t.state.dataUpdatedAt&&o.setState(t.state):s.build(e,(0,r.Z)({},null==n||null==(i=n.defaultOptions)?void 0:i.queries,{queryKey:t.queryKey,queryHash:t.queryHash}),t.state)}))}}},"../node_modules/react-query/es/core/index.js":(e,t,n)=>{"use strict";n.d(t,{Su:()=>r.S,D:()=>i.D,ZB:()=>i.Z});var r=n("../node_modules/react-query/es/core/queryClient.js"),i=n("../node_modules/react-query/es/core/hydration.js"),s=n("../node_modules/react-query/es/core/types.js");n.o(s,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return s.QueryClientProvider}}),n.o(s,"useInfiniteQuery")&&n.d(t,{useInfiniteQuery:function(){return s.useInfiniteQuery}}),n.o(s,"useMutation")&&n.d(t,{useMutation:function(){return s.useMutation}}),n.o(s,"useQuery")&&n.d(t,{useQuery:function(){return s.useQuery}}),n.o(s,"useQueryClient")&&n.d(t,{useQueryClient:function(){return s.useQueryClient}})},"../node_modules/react-query/es/core/infiniteQueryBehavior.js":(e,t,n)=>{"use strict";n.d(t,{Gm:()=>s,Qy:()=>a,ZF:()=>c});var r=n("../node_modules/react-query/es/core/retryer.js"),i=n("../node_modules/react-query/es/core/utils.js");function s(){return{onFetch:function(e){e.fetchFn=function(){var t,n,s,a,c,l,h,f=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(s=e.fetchOptions)||null==(a=s.meta)?void 0:a.fetchMore,v=null==d?void 0:d.pageParam,y="forward"===(null==d?void 0:d.direction),p="backward"===(null==d?void 0:d.direction),m=(null==(c=e.state.data)?void 0:c.pages)||[],b=(null==(l=e.state.data)?void 0:l.pageParams)||[],g=(0,i.G9)(),q=null==g?void 0:g.signal,O=b,C=!1,P=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},R=function(e,t,n,r){return O=r?[t].concat(O):[].concat(O,[t]),r?[n].concat(e):[].concat(e,[n])},S=function(t,n,i,s){if(C)return Promise.reject("Cancelled");if(void 0===i&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:q,pageParam:i,meta:e.meta},u=P(o),a=Promise.resolve(u).then((function(e){return R(t,i,e,s)}));(0,r.LE)(u)&&(a.cancel=u.cancel);return a};if(m.length)if(y){var Q=void 0!==v,E=Q?v:o(e.options,m);h=S(m,Q,E)}else if(p){var _=void 0!==v,j=_?v:u(e.options,m);h=S(m,_,j,!0)}else!function(){O=[];var t=void 0===e.options.getNextPageParam,n=!f||!m[0]||f(m[0],0,m);h=n?S([],t,b[0]):Promise.resolve(R([],b[0],m[0]));for(var r=function(n){h=h.then((function(r){if(!f||!m[n]||f(m[n],n,m)){var i=t?b[n]:o(e.options,r);return S(r,t,i)}return Promise.resolve(R(r,b[n],m[n]))}))},i=1;i<m.length;i++)r(i)}();else h=S([]);var F=h.then((function(e){return{pages:e,pageParams:O}}));return F.cancel=function(){C=!0,null==g||g.abort(),(0,r.LE)(h)&&h.cancel()},F}}}}function o(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function u(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function a(e,t){if(e.getNextPageParam&&Array.isArray(t)){var n=o(e,t);return null!=n&&!1!==n}}function c(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){var n=u(e,t);return null!=n&&!1!==n}}},"../node_modules/react-query/es/core/logger.js":(e,t,n)=>{"use strict";n.d(t,{j:()=>s,E:()=>o});var r=n("../node_modules/react-query/es/core/utils.js"),i=console||{error:r.ZT,warn:r.ZT,log:r.ZT};function s(){return i}function o(e){i=e}},"../node_modules/react-query/es/core/mutation.js":(e,t,n)=>{"use strict";n.d(t,{m:()=>a,R:()=>c});var r=n("../node_modules/@babel/runtime/helpers/esm/extends.js"),i=n("../node_modules/react-query/es/core/logger.js"),s=n("../node_modules/react-query/es/core/notifyManager.js"),o=n("../node_modules/react-query/es/core/retryer.js"),u=n("../node_modules/react-query/es/core/utils.js"),a=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c()}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(u.ZT).catch(u.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,i.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new o.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),s.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},"../node_modules/react-query/es/core/notifyManager.js":(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n("../node_modules/react-query/es/core/utils.js"),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){this.transactions++;var t=e();return this.transactions--,this.transactions||this.flush(),t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},"../node_modules/react-query/es/core/onlineManager.js":(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n("../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),i=n("../node_modules/react-query/es/core/subscribable.js"),s=n("../node_modules/react-query/es/core/utils.js"),o=new(function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(e){var t=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=e((function(e){"boolean"==typeof e?t.setOnline(e):t.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},n.setDefaultEventListener=function(){var e;!s.sk&&(null==(e=window)?void 0:e.addEventListener)&&this.setEventListener((function(e){var t=function(){return e()};return window.addEventListener("online",t,!1),window.addEventListener("offline",t,!1),function(){window.removeEventListener("online",t),window.removeEventListener("offline",t)}}))},t}(i.l))},"../node_modules/react-query/es/core/queryClient.js":(e,t,n)=>{"use strict";n.d(t,{S:()=>m});var r=n("../node_modules/@babel/runtime/helpers/esm/extends.js"),i=n("../node_modules/react-query/es/core/utils.js"),s=n("../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),o=n("../node_modules/react-query/es/core/notifyManager.js"),u=n("../node_modules/react-query/es/core/logger.js"),a=n("../node_modules/react-query/es/core/retryer.js"),c=function(){function e(e){this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||this.state.isFetching||this.cache.remove(this)},t.setData=function(e,t){var n,r,s=this.state.data,o=(0,i.SE)(e,s);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,s,o))?o=s:!1!==this.options.structuralSharing&&(o=(0,i.Q$)(s,o)),this.dispatch({data:o,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),o},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,s,o=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return this.promise;if(e&&this.setOptions(e),!this.options.queryFn){var c=this.observers.find((function(e){return e.options.queryFn}));c&&this.setOptions(c.options)}var l=(0,i.mc)(this.queryKey),h=(0,i.G9)(),f={queryKey:l,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(h)return o.abortSignalConsumed=!0,h.signal}});var d,v,y={fetchOptions:t,options:this.options,queryKey:l,state:this.state,fetchFn:function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(d=this.options.behavior)||d.onFetch(y));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=y.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(v=y.fetchOptions)?void 0:v.meta});return this.retryer=new a.m4({fn:y.fetchFn,abort:null==h||null==(s=h.abort)?void 0:s.bind(h),onSuccess:function(e){o.setData(e),null==o.cache.config.onSuccess||o.cache.config.onSuccess(e,o),0===o.cacheTime&&o.optionalRemove()},onError:function(e){(0,a.DV)(e)&&e.silent||o.dispatch({type:"error",error:e}),(0,a.DV)(e)||(null==o.cache.config.onError||o.cache.config.onError(e,o),(0,u.j)().error(e)),0===o.cacheTime&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),o.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,i;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1,status:e.dataUpdatedAt?e.status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=t.error;return(0,a.DV)(s)&&s.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},e,{error:s,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),l=n("../node_modules/react-query/es/core/subscribable.js"),h=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,s.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,s=t.queryKey,o=null!=(r=t.queryHash)?r:(0,i.Rm)(s,t),u=this.get(o);return u||(u=new c({cache:this,queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s),meta:t.meta}),this.add(u)),u},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;o.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,i.I6)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,i._x)(n,e)}))},n.findAll=function(e,t){var n=(0,i.I6)(e,t)[0];return n?this.queries.filter((function(e){return(0,i._x)(n,e)})):this.queries},n.notify=function(e){var t=this;o.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;o.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;o.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(l.l),f=n("../node_modules/react-query/es/core/mutation.js"),d=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,s.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new f.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;o.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,i.X7)(e,t)}))},n.notify=function(e){var t=this;o.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return o.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.ZT)}))}),Promise.resolve())}))},t}(l.l),v=n("../node_modules/react-query/es/core/focusManager.js"),y=n("../node_modules/react-query/es/core/onlineManager.js"),p=n("../node_modules/react-query/es/core/infiniteQueryBehavior.js"),m=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new h,this.mutationCache=e.mutationCache||new d,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=v.j.subscribe((function(){v.j.isFocused()&&y.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=y.N.subscribe((function(){v.j.isFocused()&&y.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,i._v)(e),s=this.defaultQueryOptions(r);return this.queryCache.build(this,s).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return o.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],r=this.queryCache;o.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var s=this,u=(0,i.I6)(e,t,n),a=u[0],c=u[1],l=this.queryCache,h=(0,r.Z)({},a,{active:!0});return o.V.batch((function(){return l.findAll(a).forEach((function(e){e.reset()})),s.refetchQueries(h,c)}))},t.cancelQueries=function(e,t,n){var r=this,s=(0,i.I6)(e,t,n),u=s[0],a=s[1],c=void 0===a?{}:a;void 0===c.revert&&(c.revert=!0);var l=o.V.batch((function(){return r.queryCache.findAll(u).map((function(e){return e.cancel(c)}))}));return Promise.all(l).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var s,u,a,c=this,l=(0,i.I6)(e,t,n),h=l[0],f=l[1],d=(0,r.Z)({},h,{active:null==(s=null!=(u=h.refetchActive)?u:h.active)||s,inactive:null!=(a=h.refetchInactive)&&a});return o.V.batch((function(){return c.queryCache.findAll(h).forEach((function(e){e.invalidate()})),c.refetchQueries(d,f)}))},t.refetchQueries=function(e,t,n){var s=this,u=(0,i.I6)(e,t,n),a=u[0],c=u[1],l=o.V.batch((function(){return s.queryCache.findAll(a).map((function(e){return e.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==a?void 0:a.refetchPage}}))}))})),h=Promise.all(l).then(i.ZT);return(null==c?void 0:c.throwOnError)||(h=h.catch(i.ZT)),h},t.fetchQuery=function(e,t,n){var r=(0,i._v)(e,t,n),s=this.defaultQueryOptions(r);void 0===s.retry&&(s.retry=!1);var o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,i._v)(e,t,n);return r.behavior=(0,p.Gm)(),this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this,t=o.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,i.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,i.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},"../node_modules/react-query/es/core/retryer.js":(e,t,n)=>{"use strict";n.d(t,{LE:()=>u,DV:()=>c,m4:()=>l});var r=n("../node_modules/react-query/es/core/focusManager.js"),i=n("../node_modules/react-query/es/core/onlineManager.js"),s=n("../node_modules/react-query/es/core/utils.js");function o(e){return Math.min(1e3*Math.pow(2,e),3e4)}function u(e){return"function"==typeof(null==e?void 0:e.cancel)}var a=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof a}var l=function(e){var t,n,c,l,h=this,f=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){f=!0},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var d=function(t){h.isResolved||(h.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},v=function(t){h.isResolved||(h.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!h.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!h.isResolved&&(v(new a(e)),null==h.abort||h.abort(),u(l)))try{l.cancel()}catch(e){}},h.isTransportCancelable=u(l),Promise.resolve(l).then(d).catch((function(t){var u,a;if(!h.isResolved){var l=null!=(u=e.retry)?u:3,d=null!=(a=e.retryDelay)?a:o,y="function"==typeof d?d(h.failureCount,t):d,p=!0===l||"number"==typeof l&&h.failureCount<l||"function"==typeof l&&l(h.failureCount,t);!f&&p?(h.failureCount++,null==e.onFail||e.onFail(h.failureCount,t),(0,s.Gh)(y).then((function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise((function(t){n=t,h.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,h.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){f?v(t):c()}))):v(t)}}))}}()}},"../node_modules/react-query/es/core/subscribable.js":(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},"../node_modules/react-query/es/core/types.js":()=>{},"../node_modules/react-query/es/core/utils.js":(e,t,n)=>{"use strict";n.d(t,{sk:()=>i,ZT:()=>s,SE:()=>o,PN:()=>u,mc:()=>a,Kp:()=>c,_v:()=>l,lV:()=>h,I6:()=>f,_x:()=>d,X7:()=>v,Rm:()=>y,yF:()=>p,to:()=>m,Q$:()=>g,VS:()=>q,Gh:()=>R,A4:()=>S,G9:()=>Q});var r=n("../node_modules/@babel/runtime/helpers/esm/extends.js"),i="undefined"==typeof window;function s(){}function o(e,t){return"function"==typeof e?e(t):e}function u(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return P(e)?"function"==typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function h(e,t,n){return P(e)?"function"==typeof t?(0,r.Z)({},n,{mutationKey:e,mutationFn:t}):(0,r.Z)({},t,{mutationKey:e}):"function"==typeof e?(0,r.Z)({},t,{mutationFn:e}):(0,r.Z)({},e)}function f(e,t,n){return P(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function d(e,t){var n=e.active,r=e.exact,i=e.fetching,s=e.inactive,o=e.predicate,u=e.queryKey,a=e.stale;if(P(u))if(r){if(t.queryHash!==y(u,t.options))return!1}else if(!m(t.queryKey,u))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,s);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(o&&!o(t)))}function v(e,t){var n=e.exact,r=e.fetching,i=e.predicate,s=e.mutationKey;if(P(s)){if(!t.options.mutationKey)return!1;if(n){if(p(t.options.mutationKey)!==p(s))return!1}else if(!m(t.options.mutationKey,s))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function y(e,t){return((null==t?void 0:t.queryKeyHashFn)||p)(e)}function p(e){var t,n=a(e);return t=n,JSON.stringify(t,(function(e,t){return O(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function m(e,t){return b(a(e),a(t))}function b(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!b(e[n],t[n])})))}function g(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||O(e)&&O(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),s=i.length,o=n?[]:{},u=0,a=0;a<s;a++){var c=n?a:i[a];o[c]=g(e[c],t[c]),o[c]===e[c]&&u++}return r===s&&u===r?e:o}return t}function q(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function O(e){if(!C(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!C(n)&&!!n.hasOwnProperty("isPrototypeOf")}function C(e){return"[object Object]"===Object.prototype.toString.call(e)}function P(e){return"string"==typeof e||Array.isArray(e)}function R(e){return new Promise((function(t){setTimeout(t,e)}))}function S(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function Q(){if("function"==typeof AbortController)return new AbortController}},"../node_modules/react-query/es/index.js":(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.Su,dehydrate:()=>r.D,hydrate:()=>r.ZB,QueryClientProvider:()=>i.aH,useInfiniteQuery:()=>i.NS,useMutation:()=>i.Db,useQuery:()=>i.aM,useQueryClient:()=>i.NL});var r=n("../node_modules/react-query/es/core/index.js");n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useInfiniteQuery")&&n.d(t,{useInfiniteQuery:function(){return r.useInfiniteQuery}}),n.o(r,"useMutation")&&n.d(t,{useMutation:function(){return r.useMutation}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}}),n.o(r,"useQueryClient")&&n.d(t,{useQueryClient:function(){return r.useQueryClient}});var i=n("../node_modules/react-query/es/react/index.js")},"../node_modules/react-query/es/react/index.js":(e,t,n)=>{"use strict";n.d(t,{aH:()=>f,NS:()=>x,Db:()=>q,aM:()=>F,NL:()=>h});var r=n("../node_modules/react-query/es/core/notifyManager.js"),i=n("../node_modules/react-dom/index.js").unstable_batchedUpdates;r.V.setBatchNotifyFunction(i);var s=n("../node_modules/react-query/es/core/logger.js"),o=console;(0,s.E)(o);var u=n("../node_modules/react/index.js"),a=u.createContext(void 0),c=u.createContext(!1);function l(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=a),window.ReactQueryClientContext):a}var h=function(){var e=u.useContext(l(u.useContext(c)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},f=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;u.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var s=l(r);return u.createElement(c.Provider,{value:r},u.createElement(s.Provider,{value:t},i))},d=n("../node_modules/@babel/runtime/helpers/esm/extends.js"),v=n("../node_modules/react-query/es/core/utils.js"),y=n("../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),p=n("../node_modules/react-query/es/core/mutation.js"),m=n("../node_modules/react-query/es/core/subscribable.js"),b=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}(0,y.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,d.Z)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,p.R)(),t=(0,d.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;r.V.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(m.l);function g(e,t,n){return"function"==typeof t?t(n):"boolean"==typeof t?t:!!e}function q(e,t,n){var i=u.useRef(!1),s=u.useState(0)[1],o=(0,v.lV)(e,t,n),a=h(),c=u.useRef();c.current?c.current.setOptions(o):c.current=new b(a,o);var l=c.current.getCurrentResult();u.useEffect((function(){i.current=!0;var e=c.current.subscribe(r.V.batchCalls((function(){i.current&&s((function(e){return e+1}))})));return function(){i.current=!1,e()}}),[]);var f=u.useCallback((function(e,t){c.current.mutate(e,t).catch(v.ZT)}),[]);if(l.error&&g(void 0,c.current.options.useErrorBoundary,l.error))throw l.error;return(0,d.Z)({},l,{mutate:f,mutateAsync:l.mutate})}var O=n("../node_modules/react-query/es/core/focusManager.js"),C=n("../node_modules/react-query/es/core/retryer.js"),P=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.previousSelectError=null,r.bindMethods(),r.setOptions(n),r}(0,y.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),R(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return e=this.currentQuery,!1!==(t=this.options).enabled&&("always"===t.refetchOnReconnect||!1!==t.refetchOnReconnect&&Q(e,t));var e,t},n.shouldFetchOnWindowFocus=function(){return e=this.currentQuery,!1!==(t=this.options).enabled&&("always"===t.refetchOnWindowFocus||!1!==t.refetchOnWindowFocus&&Q(e,t));var e,t},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&S(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var s=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&s===this.currentRefetchInterval||this.updateRefetchInterval(s)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e){var t=this,n={};return Object.keys(e).forEach((function(r){Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:function(){var n=r;return t.trackedProps.includes(n)||t.trackedProps.push(n),e[n]}})})),n},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,d.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(v.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!v.sk&&!this.currentResult.isStale&&(0,v.PN)(this.options.staleTime)){var t=(0,v.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!v.sk&&!1!==this.options.enabled&&(0,v.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||O.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,o=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,c=e!==r,l=c?e.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,f=e.state,d=f.dataUpdatedAt,y=f.error,p=f.errorUpdatedAt,m=f.isFetching,b=f.status,g=!1,q=!1;if(t.optimisticResults){var O=this.hasListeners(),C=!O&&R(e,t),P=O&&S(e,r,t,i);(C||P)&&(m=!0,d||(b="loading"))}if(t.keepPreviousData&&!f.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==b)n=h.data,d=h.dataUpdatedAt,b=h.status,g=!0;else if(t.select&&void 0!==f.data)if(o&&f.data===(null==u?void 0:u.data)&&t.select===(null==a?void 0:a.select)&&!this.previousSelectError)n=o.data;else try{n=t.select(f.data),!1!==t.structuralSharing&&(n=(0,v.Q$)(null==o?void 0:o.data,n)),this.previousSelectError=null}catch(e){(0,s.j)().error(e),y=e,this.previousSelectError=e,p=Date.now(),b="error"}else n=f.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===b||"idle"===b)){var E;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==a?void 0:a.placeholderData))E=o.data;else if(E="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==E)try{E=t.select(E),!1!==t.structuralSharing&&(E=(0,v.Q$)(null==o?void 0:o.data,E)),this.previousSelectError=null}catch(e){(0,s.j)().error(e),y=e,this.previousSelectError=e,p=Date.now(),b="error"}void 0!==E&&(b="success",n=E,q=!0)}return{status:b,isLoading:"loading"===b,isSuccess:"success"===b,isError:"error"===b,isIdle:"idle"===b,data:n,dataUpdatedAt:d,error:y,errorUpdatedAt:p,failureCount:f.fetchFailureCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==b,isLoadingError:"error"===b&&0===f.dataUpdatedAt,isPlaceholderData:q,isPreviousData:g,isRefetchError:"error"===b&&0!==f.dataUpdatedAt,isStale:Q(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;if(e===t)return!1;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var s="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,o=e[r]!==t[r],u=null==s?void 0:s.some((function(e){return e===n})),a=null==i?void 0:i.some((function(e){return e===n}));return o&&!a&&(!s||u)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,v.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,d.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,C.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(m.l);function R(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||function(e,t){return!1!==t.enabled&&e.state.dataUpdatedAt>0&&("always"===t.refetchOnMount||!1!==t.refetchOnMount&&Q(e,t))}(e,t)}function S(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status||!1===r.enabled)&&Q(e,n)}function Q(e,t){return e.isStaleByTime(t.staleTime)}function E(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var _=u.createContext(E());function j(e,t){var n=u.useRef(!1),i=u.useState(0)[1],s=h(),o=u.useContext(_),a=s.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=r.V.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=r.V.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=r.V.batchCalls(a.onSettled)),a.suspense&&("number"!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(o.isReset()||(a.retryOnMount=!1));var c=u.useState((function(){return new t(s,a)}))[0],l=c.getOptimisticResult(a);if(u.useEffect((function(){n.current=!0,o.clearReset();var e=c.subscribe(r.V.batchCalls((function(){n.current&&i((function(e){return e+1}))})));return c.updateResult(),function(){n.current=!1,e()}}),[o,c]),u.useEffect((function(){c.setOptions(a,{listeners:!1})}),[a,c]),a.suspense&&l.isLoading)throw c.fetchOptimistic(a).then((function(e){var t=e.data;null==a.onSuccess||a.onSuccess(t),null==a.onSettled||a.onSettled(t,null)})).catch((function(e){o.clearReset(),null==a.onError||a.onError(e),null==a.onSettled||a.onSettled(void 0,e)}));if(l.isError&&!l.isFetching&&g(a.suspense,a.useErrorBoundary,l.error))throw l.error;return"tracked"===a.notifyOnChangeProps&&(l=c.trackResult(l)),l}function F(e,t,n){return j((0,v._v)(e,t,n),P)}var w=n("../node_modules/react-query/es/core/infiniteQueryBehavior.js"),T=function(e){function t(t,n){return e.call(this,t,n)||this}(0,y.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(t){e.prototype.setOptions.call(this,(0,d.Z)({},t,{behavior:(0,w.Gm)()}))},n.getOptimisticResult=function(t){return t.behavior=(0,w.Gm)(),e.prototype.getOptimisticResult.call(this,t)},n.fetchNextPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==e?void 0:e.pageParam}}})},n.fetchPreviousPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==e?void 0:e.pageParam}}})},n.createResult=function(t,n){var r,i,s,o,u,a,c=t.state,l=e.prototype.createResult.call(this,t,n);return(0,d.Z)({},l,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,w.Qy)(n,null==(r=c.data)?void 0:r.pages),hasPreviousPage:(0,w.ZF)(n,null==(i=c.data)?void 0:i.pages),isFetchingNextPage:c.isFetching&&"forward"===(null==(s=c.fetchMeta)||null==(o=s.fetchMore)?void 0:o.direction),isFetchingPreviousPage:c.isFetching&&"backward"===(null==(u=c.fetchMeta)||null==(a=u.fetchMore)?void 0:a.direction)})},t}(P);function x(e,t,n){return j((0,v._v)(e,t,n),T)}},"../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>i})}}]);

}
/*
     FILE ARCHIVED ON 16:48:55 Jun 07, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 04:52:03 Nov 19, 2024.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.428
  exclusion.robots: 0.018
  exclusion.robots.policy: 0.012
  esindex: 0.009
  cdx.remote: 7.567
  LoadShardBlock: 64.632 (3)
  PetaboxLoader3.datanode: 120.319 (5)
  load_resource: 266.409 (2)
  PetaboxLoader3.resolve: 155.343 (2)
*/