1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7936],{13144:(t,e,s)=>{s.d(e,{n:()=>c});var i=s(34448),n=s(99020),r=s(51825),o=s(96458),a=s(32912),u=class extends o.Q{#t;#e=void 0;#s;#i;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.EN)(e.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#r(t)}getCurrentResult(){return this.#e}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#n(),this.#r()}mutate(t,e){return this.#i=e,this.#s?.removeObserver(this),this.#s=this.#t.getMutationCache().build(this.#t,this.options),this.#s.addObserver(this),this.#s.execute(t)}#n(){let t=this.#s?.state??(0,n.$)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#r(t){r.jG.batch(()=>{if(this.#i&&this.hasListeners()){let e=this.#e.variables,s=this.#e.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,e,s,i),this.#i.onSettled?.(t.data,null,e,s,i)):t?.type==="error"&&(this.#i.onError?.(t.error,e,s,i),this.#i.onSettled?.(void 0,t.error,e,s,i))}this.listeners.forEach(t=>{t(this.#e)})})}},l=s(50600);function c(t,e){let s=(0,l.jE)(e),[n]=i.useState(()=>new u(s,t));i.useEffect(()=>{n.setOptions(t)},[n,t]);let o=i.useSyncExternalStore(i.useCallback(t=>n.subscribe(r.jG.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),c=i.useCallback((t,e)=>{n.mutate(t,e).catch(a.lQ)},[n]);if(o.error&&(0,a.GU)(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}},14783:(t,e,s)=>{s.d(e,{A:()=>i});let i=(0,s(60946).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},88527:(t,e,s)=>{s.d(e,{G$:()=>Q,Hs:()=>x,UC:()=>ts,VY:()=>tn,ZL:()=>tt,bL:()=>z,bm:()=>tr,hE:()=>ti,hJ:()=>te,l9:()=>X});var i=s(34448),n=s(68221),r=s(65976),o=s(24386),a=s(76043),u=s(74647),l=s(85659),c=s(20005),h=s(47986),d=s(49987),p=s(81676),f=s(41853),m=s(20684),v=s(9705),g=s(18864),y=s(67228),b="Dialog",[C,x]=(0,o.A)(b),[R,w]=C(b),O=t=>{let{__scopeDialog:e,children:s,open:n,defaultOpen:r,onOpenChange:o,modal:l=!0}=t,c=i.useRef(null),h=i.useRef(null),[d,p]=(0,u.i)({prop:n,defaultProp:null!=r&&r,onChange:o,caller:b});return(0,y.jsx)(R,{scope:e,triggerRef:c,contentRef:h,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(t=>!t),[p]),modal:l,children:s})};O.displayName=b;var D="DialogTrigger",M=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,o=w(D,s),a=(0,r.s)(e,o.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$(o.open),...i,ref:a,onClick:(0,n.mK)(t.onClick,o.onOpenToggle)})});M.displayName=D;var j="DialogPortal",[E,I]=C(j,{forceMount:void 0}),N=t=>{let{__scopeDialog:e,forceMount:s,children:n,container:r}=t,o=w(j,e);return(0,y.jsx)(E,{scope:e,forceMount:s,children:i.Children.map(n,t=>(0,y.jsx)(d.C,{present:s||o.open,children:(0,y.jsx)(h.Z,{asChild:!0,container:r,children:t})}))})};N.displayName=j;var P="DialogOverlay",k=i.forwardRef((t,e)=>{let s=I(P,t.__scopeDialog),{forceMount:i=s.forceMount,...n}=t,r=w(P,t.__scopeDialog);return r.modal?(0,y.jsx)(d.C,{present:i||r.open,children:(0,y.jsx)(S,{...n,ref:e})}):null});k.displayName=P;var F=(0,g.TL)("DialogOverlay.RemoveScroll"),S=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,n=w(P,s);return(0,y.jsx)(m.A,{as:F,allowPinchZoom:!0,shards:[n.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":$(n.open),...i,ref:e,style:{pointerEvents:"auto",...i.style}})})}),_="DialogContent",A=i.forwardRef((t,e)=>{let s=I(_,t.__scopeDialog),{forceMount:i=s.forceMount,...n}=t,r=w(_,t.__scopeDialog);return(0,y.jsx)(d.C,{present:i||r.open,children:r.modal?(0,y.jsx)(G,{...n,ref:e}):(0,y.jsx)(K,{...n,ref:e})})});A.displayName=_;var G=i.forwardRef((t,e)=>{let s=w(_,t.__scopeDialog),o=i.useRef(null),a=(0,r.s)(e,s.contentRef,o);return i.useEffect(()=>
1{let t=o.current;if(t)return(0,v.Eq)(t)},[]),(0,y.jsx)(T,{...t,ref:a,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.mK)(t.onCloseAutoFocus,t=>{var e;t.preventDefault(),null==(e=s.triggerRef.current)||e.focus()}),onPointerDownOutside:(0,n.mK)(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,s=0===e.button&&!0===e.ctrlKey;(2===e.button||s)&&t.preventDefault()}),onFocusOutside:(0,n.mK)(t.onFocusOutside,t=>t.preventDefault())})}),K=i.forwardRef((t,e)=>{let s=w(_,t.__scopeDialog),n=i.useRef(!1),r=i.useRef(!1);return(0,y.jsx)(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var i,o;null==(i=t.onCloseAutoFocus)||i.call(t,e),e.defaultPrevented||(n.current||null==(o=s.triggerRef.current)||o.focus(),e.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:e=>{var i,o;null==(i=t.onInteractOutside)||i.call(t,e),e.defaultPrevented||(n.current=!0,"pointerdown"===e.detail.originalEvent.type&&(r.current=!0));let a=e.target;(null==(o=s.triggerRef.current)?void 0:o.contains(a))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&r.current&&e.preventDefault()}})}),T=i.forwardRef((t,e)=>{let{__scopeDialog:s,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=t,h=w(_,s),d=i.useRef(null),p=(0,r.s)(e,d);return(0,f.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,y.jsx)(l.qW,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":$(h.open),...u,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(J,{titleId:h.titleId}),(0,y.jsx)(Y,{contentRef:d,descriptionId:h.descriptionId})]})]})}),U="DialogTitle",B=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,n=w(U,s);return(0,y.jsx)(p.sG.h2,{id:n.titleId,...i,ref:e})});B.displayName=U;var L="DialogDescription",q=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,n=w(L,s);return(0,y.jsx)(p.sG.p,{id:n.descriptionId,...i,ref:e})});q.displayName=L;var W="DialogClose",Z=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,r=w(W,s);return(0,y.jsx)(p.sG.button,{type:"button",...i,ref:e,onClick:(0,n.mK)(t.onClick,()=>r.onOpenChange(!1))})});function $(t){return t?"open":"closed"}Z.displayName=W;var H="DialogTitleWarning",[Q,V]=(0,o.q)(H,{contentName:_,titleName:U,docsSlug:"dialog"}),J=t=>{let{titleId:e}=t,s=V(H),n="`".concat(s.contentName,"` requires a `").concat(s.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(s.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(s.docsSlug);return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Y=t=>{let{contentRef:e,descriptionId:s}=t,n=V("DialogDescriptionWarning"),r="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(n.contentName,"}.");return i.useEffect(()=>{var t;let i=null==(t=e.current)?void 0:t.getAttribute("aria-describedby");s&&i&&(document.getElementById(s)||console.warn(r))},[r,e,s]),null},z=O,X=M,tt=N,te=k,ts=A,ti=B,tn=q,tr=Z},99020:(t,e,s)=>{s.d(e,{$:()=>a,s:()=>o});var i=s(51825),n=s(15968),r=s(50684),o=class extends n.k{#t;#o;#a;#u;
1constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#a=t.mutationCache,this.#o=[],this.state=t.state||a(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#o.includes(t)||(this.#o.push(t),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#o=this.#o.filter(e=>e!==t),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#o.length||("pending"===this.state.status?this.scheduleGc():this.#a.remove(this))}continue(){return this.#u?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#l({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#u=(0,r.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#l({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#l({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});let i="pending"===this.state.status,n=!this.#u.canStart();try{if(i)e();else{this.#l({type:"pending",variables:t,isPaused:n}),await this.#a.config.onMutate?.(t,this,s);let e=await this.options.onMutate?.(t,s);e!==this.state.context&&this.#l({type:"pending",context:e,variables:t,isPaused:n})}let r=await this.#u.start();return await this.#a.config.onSuccess?.(r,t,this.state.context,this,s),await this.options.onSuccess?.(r,t,this.state.context,s),await this.#a.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(r,null,t,this.state.context,s),this.#l({type:"success",data:r}),r}catch(e){try{throw await this.#a.config.onError?.(e,t,this.state.context,this,s),await this.options.onError?.(e,t,this.state.context,s),await this.#a.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(void 0,e,t,this.state.context,s),e}finally{this.#l({type:"error",error:e})}}finally{this.#a.runNext(this)}}#l(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"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};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"}}})(this.state),i.jG.batch(()=>{this.#o.forEach(e=>{e.onMutationUpdate(t)}),this.#a.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}}}]);
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.