1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[524],{1640:function(t,e,s){var i,r,n;void 0!==(r="function"==typeof(i=n=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var s=arguments[t];for(var i in s)e[i]=s[i]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function s(i){function r(){}function n(e,s,n){if("undefined"!=typeof document){"number"==typeof(n=t({path:"/"},r.defaults,n)).expires&&(n.expires=new Date(new Date*1+864e5*n.expires)),n.expires=n.expires?n.expires.toUTCString():"";try{var a=JSON.stringify(s);/^[\{\[]/.test(a)&&(s=a)}catch(t){}s=i.write?i.write(s,e):encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var o="";for(var u in n)n[u]&&(o+="; "+u,!0!==n[u]&&(o+="="+n[u].split(";")[0]));return document.cookie=e+"="+s+o}}function a(t,s){if("undefined"!=typeof document){for(var r={},n=document.cookie?document.cookie.split("; "):[],a=0;a<n.length;a++){var o=n[a].split("="),u=o.slice(1).join("=");s||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=e(o[0]);if(u=(i.read||i)(u,c)||e(u),s)try{u=JSON.parse(u)}catch(t){}if(r[c]=u,t===c)break}catch(t){}}return t?r[t]:r}}return r.set=n,r.get=function(t){return a(t,!1)},r.getJSON=function(t){return a(t,!0)},r.remove=function(e,s){n(e,"",t(s,{expires:-1}))},r.defaults={},r.withConverter=s,r}(function(){})})?i.call(e,s,e,t):i)&&(t.exports=r),t.exports=n()},2729:function(t,e,s){s.d(e,{_:function(){return i}});let i=console},1553:function(t,e,s){s.d(e,{R:function(){return u},m:function(){return o}});var i=s(2729),r=s(850),n=s(9511),a=s(6095);class o extends n.F{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,o,u,c,l,h,d,p,v,f,m,b,y,C,g;let R="loading"===this.state.status;try{if(!R){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(c=(l=this.mutationCache.config).onMutate)?void 0:c.call(l,this.state.variables,this));let t=await (null==(h=(d=this.options).onMutate)?void 0:h.call(d,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let p=await (()=>{var t;return this.retryer=(0,a.Mz)({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,p,this.state.variables,this.state.context,this)),await (null==(s=(i=this.options).onSuccess)?void 0:s.call(i,p,this.state.variables,this.state.context)),await (null==(r=(n=this.mutationCache.config).onSettled)?void 0:r.call(n,p,null,this.state.variables,this.state.context,this)),await (null==(o=(u=this.options).onSettled)?void 0:o.call(u,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(t){try{throw await (null==(p=(v=this.mutationCache.config).onError)?void 0:p.call(v,t,this.state.variables,this.state.context,this)),await (null==(f=(m=this.options).onError)?void 0:f.call(m,t,this.state.variables,this.state.context)),await (null==(b=(y=this.mutationCache.config).onSettled)?void 0:b.call(y,void 0,t,this.state.variables,this.state.context,this)),await (null==(C=(g=this.options).onSettled)?void 0:C.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};
1case"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:!(0,a.Kw)(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),r.V.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||i._,this.observers=[],this.state=t.state||u(),this.setOptions(t.options),this.scheduleGc()}}function u(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},9511:function(t,e,s){s.d(e,{F:function(){return r}});var i=s(2965);class r{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:i.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},7236:function(t,e,s){s.r(e),s.d(e,{useMutation:function(){return d}});var i=s(3759),r=s(2965),n=s(1553),a=s(850),o=s(9714);class u extends o.l{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),(0,r.VS)(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:(0,n.R)(),e={...t,isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=e}notify(t){a.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,i,r,n,a,o,u;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=(a=this.mutateOptions).onError)||n.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(o=(u=this.mutateOptions).onSettled)||o.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(t=>{let{listener:e}=t;e(this.currentResult)})})}constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}}var c=s(1282),l=s(6749),h=s(98);function d(t,e,s){let n=(0,r.lV)(t,e,s),o=(0,l.useQueryClient)({context:n.context}),[d]=i.useState(()=>new u(o,n));i.useEffect(()=>{d.setOptions(n)},[d,n]);let v=(0,c.$)(i.useCallback(t=>d.subscribe(a.V.batchCalls(t)),[d]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),f=i.useCallback((t,e)=>{d.mutate(t,e).catch(p)},[d]);if(v.error&&(0,h.L)(d.options.useErrorBoundary,[v.error]))throw v.error;return{...v,mutate:f,mutateAsync:v.mutate}}function p(){}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.