mobileboost-cli 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/index-wAXRnbNo.js +520 -0
- package/.output/public/assets/{main-BbUrvuLL.js → main-CeoNGsUp.js} +1 -1
- package/.output/server/chunks/_/{_tanstack-start-manifest_v-CCgm5JAL.mjs → _tanstack-start-manifest_v-DA-9ufHl.mjs} +1 -1
- package/.output/server/chunks/_/actions-CszEX8Wv.mjs +1 -0
- package/.output/server/chunks/_/{agent-CUyzfc4e.mjs → agent-CYjOntOE.mjs} +1 -1
- package/.output/server/chunks/_/ai-client-B037VO11.mjs +1 -0
- package/.output/server/chunks/_/{appium-CMKpXGap.mjs → appium-CB7q1F7-.mjs} +1 -1
- package/.output/server/chunks/_/appium-client-NLCErNZG.mjs +1 -0
- package/.output/server/chunks/_/{client-CM5hUS2d.mjs → client-B14sS6WP.mjs} +1 -1
- package/.output/server/chunks/_/{describe-BfbyupMJ.mjs → describe-BN5m4F-F.mjs} +1 -1
- package/.output/server/chunks/_/device-CFbX4Slf.mjs +1 -0
- package/.output/server/chunks/_/files-D27pPBly.mjs +1 -0
- package/.output/server/chunks/_/hierarchy-RZUZWmuO.mjs +1 -0
- package/.output/server/chunks/_/hierarchy-helpers-CR7kKS69.mjs +3 -0
- package/.output/server/chunks/_/index-BwPMhGOi.mjs +502 -0
- package/.output/server/chunks/_/{router-DYcFhNaL.mjs → router-BkeWjFXo.mjs} +1 -1
- package/.output/server/chunks/_/{screenshot-Csbvymnl.mjs → screenshot-BR2gF_yP.mjs} +1 -1
- package/.output/server/chunks/_/server.mjs +3 -3
- package/.output/server/chunks/_/step-BuczzV1F.mjs +1 -0
- package/.output/server/chunks/_/stores-k5WcYw_y.mjs +1 -0
- package/.output/server/index.mjs +4 -4
- package/.output/server/package.json +2 -0
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/package.json +2 -1
- package/.output/public/assets/index-D7JF4301.js +0 -492
- package/.output/server/chunks/_/actions-CvabQsJo.mjs +0 -1
- package/.output/server/chunks/_/ai-client-waGeh-P8.mjs +0 -1
- package/.output/server/chunks/_/appium-client-DiTTrl8p.mjs +0 -1
- package/.output/server/chunks/_/device-CWFVkH1s.mjs +0 -1
- package/.output/server/chunks/_/files-CB9WpUb0.mjs +0 -1
- package/.output/server/chunks/_/hierarchy-DfPTUh7F.mjs +0 -1
- package/.output/server/chunks/_/hierarchy-helpers-BaGN7WBn.mjs +0 -3
- package/.output/server/chunks/_/index-BZ9EyYaV.mjs +0 -474
- package/.output/server/chunks/_/step-D2WQqd4J.mjs +0 -1
- package/.output/server/chunks/_/stores-2rWNmXVj.mjs +0 -1
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
import{S as If,p as Yu,r as nn,s as Ni,a as $o,n as Fi,i as Ss,b as Qu,t as Gx,c as ui,f as Kx,d as qx,e as ed,g as fa,h as td,j as Jx,k as b,l as kf,u as Yr,m as Cf,o as ws,q as _f,v as Xx,w as p,x as Y,y as fr,z as Yx,A as Qx,B as eS,C as Ef,T as ol,D as ye,E as N,F as yn,R as Ve,G as go,_ as il,H as tS,I as nd,J as rd,K as Zo,L as Pf,M as $r,N as nS,O as al,P as sl,Q as rS,U as jf,V as oS,W as Of,X as ll,Y as od,Z as iS,$ as aS,a0 as cl,a1 as Ee,a2 as id,a3 as sS,a4 as lS,a5 as cS,a6 as nt,a7 as Ze}from"./main-CeoNGsUp.js";function Rf(e){if(Array.isArray(e))return e.flatMap(u=>Rf(u));if(typeof e!="string")return[];const t=[];let r=0,o,n,i,a,s;const l=()=>{for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length},c=()=>(n=e.charAt(r),n!=="="&&n!==";"&&n!==",");for(;r<e.length;){for(o=r,s=!1;l();)if(n=e.charAt(r),n===","){for(i=r,r+=1,l(),a=r;r<e.length&&c();)r+=1;r<e.length&&e.charAt(r)==="="?(s=!0,r=a,t.push(e.slice(o,i)),o=r):r=i+1}else r+=1;(!s||r>=e.length)&&t.push(e.slice(o))}return t}function uS(e){return e instanceof Headers?new Headers(e):Array.isArray(e)?new Headers(e):typeof e=="object"?new Headers(e):new Headers}function dS(...e){return e.reduce((t,r)=>{const o=uS(r);for(const[n,i]of o.entries())n==="set-cookie"?Rf(i).forEach(s=>t.append("set-cookie",s)):t.set(n,i);return t},new Headers)}var pS=class extends If{constructor(e,t){super(),this.options=t,this.#n=e,this.#c=null,this.#i=Yu(),this.bindMethods(),this.setOptions(t)}#n;#e=void 0;#t=void 0;#r=void 0;#o;#a;#i;#c;#p;#f;#s;#u;#l;#d;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),ad(this.#e,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $s(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $s(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#n.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof nn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!Ni(this.options,t)&&this.#n.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&sd(this.#e,r,this.options,t)&&this.#h(),this.updateResult(),o&&(this.#e!==r||nn(this.options.enabled,this.#e)!==nn(t.enabled,this.#e)||$o(this.options.staleTime,this.#e)!==$o(t.staleTime,this.#e))&&this.#g();const n=this.#v();o&&(this.#e!==r||nn(this.options.enabled,this.#e)!==nn(t.enabled,this.#e)||n!==this.#d)&&this.#b(n)}getOptimisticResult(e){const t=this.#n.getQueryCache().build(this.#n,e),r=this.createResult(t,e);return mS(this,r)&&(this.#r=r,this.#a=this.options,this.#o=this.#e.state),r}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(r,o)=>(this.trackProp(o),t?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#n.defaultQueryOptions(e),r=this.#n.getQueryCache().build(this.#n,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Fi)),t}#g(){this.#x();const e=$o(this.options.staleTime,this.#e);if(Ss||this.#r.isStale||!Qu(e))return;const r=Gx(this.#r.dataUpdatedAt,e)+1;this.#u=ui.setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#S(),this.#d=e,!(Ss||nn(this.options.enabled,this.#e)===!1||!Qu(this.#d)||this.#d===0)&&(this.#l=ui.setInterval(()=>{(this.options.refetchIntervalInBackground||Kx.isFocused())&&this.#h()},this.#d))}#y(){this.#g(),this.#b(this.#v())}#x(){this.#u&&(ui.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#l&&(ui.clearInterval(this.#l),this.#l=void 0)}createResult(e,t){const r=this.#e,o=this.options,n=this.#r,i=this.#o,a=this.#a,l=e!==r?e.state:this.#t,{state:c}=e;let u={...c},d=!1,f;if(t._optimisticResults){const k=this.hasListeners(),T=!k&&ad(e,t),R=k&&sd(e,r,t,o);(T||R)&&(u={...u,...qx(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:m,errorUpdatedAt:h,status:g}=u;f=u.data;let v=!1;if(t.placeholderData!==void 0&&f===void 0&&g==="pending"){let k;n?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(k=n.data,v=!0):k=typeof t.placeholderData=="function"?t.placeholderData(this.#s?.state.data,this.#s):t.placeholderData,k!==void 0&&(g="success",f=ed(n?.data,k,t),d=!0)}if(t.select&&f!==void 0&&!v)if(n&&f===i?.data&&t.select===this.#p)f=this.#f;else try{this.#p=t.select,f=t.select(f),f=ed(n?.data,f,t),this.#f=f,this.#c=null}catch(k){this.#c=k}this.#c&&(m=this.#c,f=this.#f,h=Date.now(),g="error");const y=u.fetchStatus==="fetching",x=g==="pending",w=g==="error",S=x&&y,$=f!==void 0,j={status:g,fetchStatus:u.fetchStatus,isPending:x,isSuccess:g==="success",isError:w,isInitialLoading:S,isLoading:S,data:f,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:w&&!$,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&$,isStale:ul(e,t),refetch:this.refetch,promise:this.#i,isEnabled:nn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const k=E=>{j.status==="error"?E.reject(j.error):j.data!==void 0&&E.resolve(j.data)},T=()=>{const E=this.#i=j.promise=Yu();k(E)},R=this.#i;switch(R.status){case"pending":e.queryHash===r.queryHash&&k(R);break;case"fulfilled":(j.status==="error"||j.data!==R.value)&&T();break;case"rejected":(j.status!=="error"||j.error!==R.reason)&&T();break}}return j}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#o=this.#e.state,this.#a=this.options,this.#o.data!==void 0&&(this.#s=this.#e),Ni(t,e))return;this.#r=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,n=typeof o=="function"?o():o;if(n==="all"||!n&&!this.#m.size)return!0;const i=new Set(n??this.#m);return this.options.throwOnError&&i.add("error"),Object.keys(this.#r).some(a=>{const s=a;return this.#r[s]!==e[s]&&i.has(s)})};this.#$({listeners:r()})}#w(){const e=this.#n.getQueryCache().build(this.#n,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#t=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#$(e){fa.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#n.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function fS(e,t){return nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ad(e,t){return fS(e,t)||e.state.data!==void 0&&$s(e,t,t.refetchOnMount)}function $s(e,t,r){if(nn(t.enabled,e)!==!1&&$o(t.staleTime,e)!=="static"){const o=typeof r=="function"?r(e):r;return o==="always"||o!==!1&&ul(e,t)}return!1}function sd(e,t,r,o){return(e!==t||nn(o.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&ul(e,r)}function ul(e,t){return nn(t.enabled,e)!==!1&&e.isStaleByTime($o(t.staleTime,e))}function mS(e,t){return!Ni(e.getCurrentResult(),t)}var hS=class extends If{#n;#e=void 0;#t;#r;constructor(e,t){super(),this.#n=e,this.setOptions(t),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#n.defaultMutationOptions(e),Ni(this.options,t)||this.#n.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),t?.mutationKey&&this.options.mutationKey&&td(t.mutationKey)!==td(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#a(e)}getCurrentResult(){return this.#e}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#o(),this.#a()}mutate(e,t){return this.#r=t,this.#t?.removeObserver(this),this.#t=this.#n.getMutationCache().build(this.#n,this.options),this.#t.addObserver(this),this.#t.execute(e)}#o(){const e=this.#t?.state??Jx();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#a(e){fa.batch(()=>{if(this.#r&&this.hasListeners()){const t=this.#e.variables,r=this.#e.context,o={client:this.#n,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#r.onSuccess?.(e.data,t,r,o),this.#r.onSettled?.(e.data,null,t,r,o)):e?.type==="error"&&(this.#r.onError?.(e.error,t,r,o),this.#r.onSettled?.(void 0,e.error,t,r,o))}this.listeners.forEach(t=>{t(this.#e)})})}},Df=b.createContext(!1),gS=()=>b.useContext(Df);Df.Provider;function vS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bS=b.createContext(vS()),yS=()=>b.useContext(bS),xS=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},SS=e=>{b.useEffect(()=>{e.clearReset()},[e])},wS=({result:e,errorResetBoundary:t,throwOnError:r,query:o,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(n&&e.data===void 0||kf(r,[e.error,o])),$S=e=>{if(e.suspense){const r=n=>n==="static"?n:Math.max(n??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...n)=>r(o(...n)):r(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},IS=(e,t)=>e.isLoading&&e.isFetching&&!t,kS=(e,t)=>e?.suspense&&t.isPending,ld=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function CS(e,t,r){const o=gS(),n=yS(),i=Yr(),a=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=o?"isRestoring":"optimistic",$S(a),xS(a,n),SS(n);const s=!i.getQueryCache().get(a.queryHash),[l]=b.useState(()=>new t(i,a)),c=l.getOptimisticResult(a),u=!o&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(d=>{const f=u?l.subscribe(fa.batchCalls(d)):Fi;return l.updateResult(),f},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),b.useEffect(()=>{l.setOptions(a)},[a,l]),kS(a,c))throw ld(a,l,n);if(wS({result:c,errorResetBoundary:n,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(a,c),a.experimental_prefetchInRender&&!Ss&&IS(c,o)&&(s?ld(a,l,n):i.getQueryCache().get(a.queryHash)?.promise)?.catch(Fi).finally(()=>{l.updateResult()}),a.notifyOnChangeProps?c:l.trackResult(c)}function vn(e,t){return CS(e,pS)}function et(e,t){const r=Yr(),[o]=b.useState(()=>new hS(r,e));b.useEffect(()=>{o.setOptions(e)},[o,e]);const n=b.useSyncExternalStore(b.useCallback(a=>o.subscribe(fa.batchCalls(a)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),i=b.useCallback((a,s)=>{o.mutate(a,s).catch(Fi)},[o]);if(n.error&&kf(o.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:i,mutateAsync:n.mutate}}const cd=e=>e,_S=()=>{let e=cd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cd}}},Tf=_S();function ES(e={}){const{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:n}=e,i=Cf("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(ws);return b.forwardRef(function(l,c){const u=_f(r),{className:d,component:f="div",...m}=Xx(l);return p.jsx(i,{as:f,ref:c,className:Y(d,n?n(o):o),theme:t&&u[t]||u,...m})})}const PS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function pe(e,t,r="Mui"){const o=PS[t];return o?`${r}-${o}`:`${Tf.generate(e)}-${t}`}function ue(e,t,r="Mui"){const o={};return t.forEach(n=>{o[n]=pe(e,n,r)}),o}function zf(e){const{variants:t,...r}=e,o={variants:t,style:fr(r),isProcessed:!0};return o.style===r||t&&t.forEach(n=>{typeof n.style!="function"&&(n.style=fr(n.style))}),o}const jS=Yx();function qa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function lr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function OS(e){return e?(t,r)=>r[e]:null}function RS(e,t,r){e.theme=zS(e.theme)?r:e.theme[t]||e.theme}function Oi(e,t,r){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(n=>Oi(e,n,r));if(Array.isArray(o?.variants)){let n;if(o.isProcessed)n=r?lr(o.style,r):o.style;else{const{variants:i,...a}=o;n=r?lr(fr(a),r):a}return Af(e,o.variants,[n],r)}return o?.isProcessed?r?lr(fr(o.style),r):o.style:r?lr(fr(o),r):o}function Af(e,t,r=[],o=void 0){let n;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(n??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(n))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(n??={...e,...e.ownerState,ownerState:e.ownerState},r.push(o?lr(fr(a.style(n)),o):a.style(n))):r.push(o?lr(fr(a.style),o):a.style)}return r}function DS(e={}){const{themeId:t,defaultTheme:r=jS,rootShouldForwardProp:o=qa,slotShouldForwardProp:n=qa}=e;function i(s){RS(s,t,r)}return(s,l={})=>{Qx(s,I=>I.filter(j=>j!==ws));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:m=OS(MS(u)),...h}=l,g=c&&c.startsWith("Mui")||u?"components":"custom",v=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=f||!1;let x=qa;u==="Root"||u==="root"?x=o:u?x=n:AS(s)&&(x=void 0);const w=Cf(s,{shouldForwardProp:x,label:TS(),...h}),S=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(k){return Oi(k,I,k.theme.modularCssLayers?g:void 0)};if(eS(I)){const j=zf(I);return function(T){return j.variants?Oi(T,j,T.theme.modularCssLayers?g:void 0):T.theme.modularCssLayers?lr(j.style,g):j.style}}return I},$=(...I)=>{const j=[],k=I.map(S),T=[];if(j.push(i),c&&m&&T.push(function(C){const _=C.theme.components?.[c]?.styleOverrides;if(!_)return null;const O={};for(const M in _)O[M]=Oi(C,_[M],C.theme.modularCssLayers?"theme":void 0);return m(C,O)}),c&&!v&&T.push(function(C){const _=C.theme?.components?.[c]?.variants;return _?Af(C,_,[],C.theme.modularCssLayers?"theme":void 0):null}),y||T.push(ws),Array.isArray(k[0])){const A=k.shift(),C=new Array(j.length).fill(""),z=new Array(T.length).fill("");let _;_=[...C,...A,...z],_.raw=[...C,...A.raw,...z],j.unshift(_)}const R=[...j,...k,...T],E=w(...R);return s.muiName&&(E.muiName=s.muiName),E};return w.withConfig&&($.withConfig=w.withConfig),$}}function TS(e,t){return void 0}function zS(e){for(const t in e)return!1;return!0}function AS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function MS(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ud={theme:void 0};function NS(e){let t,r;return function(n){let i=t;return(i===void 0||n.theme!==r)&&(ud.theme=n.theme,i=zf(e(ud)),t=i,r=n.theme),i}}function fe(e,t,r=void 0){const o={};for(const n in e){const i=e[n];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(a+=" "+r[c]))}o[n]=a}return o}function Ri(e,t){return b.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Ir(){const e=_f(Ef);return e[ol]||e}function Mf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gt=e=>Mf(e)&&e!=="classes",F=DS({themeId:ol,defaultTheme:Ef,rootShouldForwardProp:gt});function Is(...e){return e.reduce((t,r)=>r==null?t:function(...n){t.apply(this,n),r.apply(this,n)},()=>{})}const ve=NS;function FS(e){return pe("MuiSvgIcon",e)}ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const LS=e=>{const{color:t,fontSize:r,classes:o}=e,n={root:["root",t!=="inherit"&&`color${N(t)}`,`fontSize${N(r)}`]};return fe(n,FS,o)},US=F("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${N(r.color)}`],t[`fontSize${N(r.fontSize)}`]]}})(ve(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),ks=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiSvgIcon"}),{children:n,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...m}=o,h=b.isValidElement(n)&&n.type==="svg",g={...o,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h},v={};u||(v.viewBox=f);const y=LS(g);return p.jsxs(US,{as:s,className:Y(y.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...v,...m,...h&&n.props,ownerState:g,children:[h?n.props.children:n,d?p.jsx("title",{children:d}):null]})});ks.muiName="SvgIcon";function De(e,t){function r(o,n){return p.jsx(ks,{"data-testid":void 0,ref:n,...o,children:e})}return r.muiName=ks.muiName,b.memo(b.forwardRef(r))}function Nf(e,t=166){let r;function o(...n){const i=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(i,t)}return o.clear=()=>{clearTimeout(r)},o}function xt(e){return e&&e.ownerDocument||document}function Nn(e){return xt(e).defaultView||window}function dd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Oo(e){const{controlled:t,default:r,name:o,state:n="value"}=e,{current:i}=b.useRef(t!==void 0),[a,s]=b.useState(r),l=i?t:a,c=b.useCallback(u=>{i||s(u)},[]);return[l,c]}function Zt(e){const t=b.useRef(e);return yn(()=>{t.current=e}),b.useRef((...r)=>(0,t.current)(...r)).current}function lt(...e){const t=b.useRef(void 0),r=b.useCallback(o=>{const n=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,s=a(o);return typeof s=="function"?s:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{n.forEach(i=>i?.())}},e);return b.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=r(o))},e)}function BS(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Ff(e,t){if(!e)return t;function r(a,s){const l={};return Object.keys(s).forEach(c=>{BS(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=Y(a?.className,s?.className,l?.className),u=r(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const o=t,n=r(e,o),i=Y(o?.className,e?.className);return{...t,...e,...n,...!!i&&{className:i},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Lf(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Cs(e,t){return Cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Cs(e,t)}function Uf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cs(e,t)}const pd={disabled:!1},Li=Ve.createContext(null);var VS=function(t){return t.scrollTop},vo="unmounted",ir="exited",ar="entering",Rr="entered",_s="exiting",cn=(function(e){Uf(t,e);function t(o,n){var i;i=e.call(this,o,n)||this;var a=n,s=a&&!a.isMounting?o.enter:o.appear,l;return i.appearStatus=null,o.in?s?(l=ir,i.appearStatus=ar):l=Rr:o.unmountOnExit||o.mountOnEnter?l=vo:l=ir,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(n,i){var a=n.in;return a&&i.status===vo?{status:ir}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var i=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==ar&&a!==Rr&&(i=ar):(a===ar||a===Rr)&&(i=_s)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,i,a,s;return i=a=s=n,n!=null&&typeof n!="number"&&(i=n.exit,a=n.enter,s=n.appear!==void 0?n.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(n,i){if(n===void 0&&(n=!1),i!==null)if(this.cancelNextCallback(),i===ar){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:go.findDOMNode(this);a&&VS(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ir&&this.setState({status:vo})},r.performEnter=function(n){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:n,l=this.props.nodeRef?[s]:[go.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!n&&!a||pd.disabled){this.safeSetState({status:Rr},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ar},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Rr},function(){i.props.onEntered(c,u)})})})},r.performExit=function(){var n=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:go.findDOMNode(this);if(!i||pd.disabled){this.safeSetState({status:ir},function(){n.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:_s},function(){n.props.onExiting(s),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:ir},function(){n.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,i){i=this.setNextCallback(i),this.setState(n,i)},r.setNextCallback=function(n){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,n(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(n,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:go.findDOMNode(this),s=n==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===vo)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Lf(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ve.createElement(Li.Provider,{value:null},typeof a=="function"?a(n,s):Ve.cloneElement(Ve.Children.only(a),s))},t})(Ve.Component);cn.contextType=Li;cn.propTypes={};function Pr(){}cn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pr,onEntering:Pr,onEntered:Pr,onExit:Pr,onExiting:Pr,onExited:Pr};cn.UNMOUNTED=vo;cn.EXITED=ir;cn.ENTERING=ar;cn.ENTERED=Rr;cn.EXITING=_s;function WS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dl(e,t){var r=function(i){return t&&b.isValidElement(i)?t(i):i},o=Object.create(null);return e&&b.Children.map(e,function(n){return n}).forEach(function(n){o[n.key]=r(n)}),o}function ZS(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var o=Object.create(null),n=[];for(var i in e)i in t?n.length&&(o[i]=n,n=[]):n.push(i);var a,s={};for(var l in t){if(o[l])for(a=0;a<o[l].length;a++){var c=o[l][a];s[o[l][a]]=r(c)}s[l]=r(l)}for(a=0;a<n.length;a++)s[n[a]]=r(n[a]);return s}function cr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function HS(e,t){return dl(e.children,function(r){return b.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:cr(r,"appear",e),enter:cr(r,"enter",e),exit:cr(r,"exit",e)})})}function GS(e,t,r){var o=dl(e.children),n=ZS(t,o);return Object.keys(n).forEach(function(i){var a=n[i];if(b.isValidElement(a)){var s=i in t,l=i in o,c=t[i],u=b.isValidElement(c)&&!c.props.in;l&&(!s||u)?n[i]=b.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:cr(a,"exit",e),enter:cr(a,"enter",e)}):!l&&s&&!u?n[i]=b.cloneElement(a,{in:!1}):l&&s&&b.isValidElement(c)&&(n[i]=b.cloneElement(a,{onExited:r.bind(null,a),in:c.props.in,exit:cr(a,"exit",e),enter:cr(a,"enter",e)}))}}),n}var KS=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},qS={component:"div",childFactory:function(t){return t}},pl=(function(e){Uf(t,e);function t(o,n){var i;i=e.call(this,o,n)||this;var a=i.handleExited.bind(WS(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(n,i){var a=i.children,s=i.handleExited,l=i.firstRender;return{children:l?HS(n,s):GS(n,a,s),firstRender:!1}},r.handleExited=function(n,i){var a=dl(this.props.children);n.key in a||(n.props.onExited&&n.props.onExited(i),this.mounted&&this.setState(function(s){var l=il({},s.children);return delete l[n.key],{children:l}}))},r.render=function(){var n=this.props,i=n.component,a=n.childFactory,s=Lf(n,["component","childFactory"]),l=this.state.contextValue,c=KS(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?Ve.createElement(Li.Provider,{value:l},c):Ve.createElement(Li.Provider,{value:l},Ve.createElement(i,s,c))},t})(Ve.Component);pl.propTypes={};pl.defaultProps=qS;const fd={};function Bf(e,t){const r=b.useRef(fd);return r.current===fd&&(r.current=e(t)),r}const JS=[];function XS(e){b.useEffect(e,JS)}class ma{static create(){return new ma}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Zn(){const e=Bf(ma.create).current;return XS(e.disposeEffect),e}const Vf=e=>e.scrollTop;function Mr(e,t){const{timeout:r,easing:o,style:n={}}=e;return{duration:n.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:n.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:n.transitionDelay}}function Nr(e){return typeof e=="string"}function Wf(e,t,r){return e===void 0||Nr(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Zf(e,t,r){return typeof e=="function"?e(t,r):e}function Ui(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{r[o]=e[o]}),r}function md(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Hf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:n,className:i}=e;if(!t){const m=Y(r?.className,i,n?.className,o?.className),h={...r?.style,...n?.style,...o?.style},g={...r,...n,...o};return m.length>0&&(g.className=m),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:void 0}}const a=Ui({...n,...o}),s=md(o),l=md(n),c=t(a),u=Y(c?.className,r?.className,i,n?.className,o?.className),d={...c?.style,...r?.style,...n?.style,...o?.style},f={...c,...r,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function he(e,t){const{className:r,elementType:o,ownerState:n,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,m=u[e]||o,h=Zf(d[e],n),{props:{component:g,...v},internalRef:y}=Hf({className:r,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h}),x=lt(y,h?.ref,t.ref),w=e==="root"?g||c:g,S=Wf(m,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...v,...w&&!s&&{as:w},...w&&s&&{component:w},ref:x},n);return[m,S]}function YS(e){return pe("MuiCollapse",e)}ue("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const QS=e=>{const{orientation:t,classes:r}=e,o={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return fe(o,YS,r)},ew=F("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(ve(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),tw=F("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),nw=F("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Es=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiCollapse"}),{addEndListener:n,children:i,className:a,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:h,onExited:g,onExiting:v,orientation:y="vertical",slots:x={},slotProps:w={},style:S,timeout:$=tS.standard,TransitionComponent:I=cn,...j}=o,k={...o,orientation:y,collapsedSize:s},T=QS(k),R=Ir(),E=Zn(),A=b.useRef(null),C=b.useRef(),z=typeof s=="number"?`${s}px`:s,_=y==="horizontal",O=_?"width":"height",M=b.useRef(null),G=lt(r,M),U=Z=>ae=>{if(Z){const de=M.current;ae===void 0?Z(de):Z(de,ae)}},Q=()=>A.current?A.current[_?"clientWidth":"clientHeight"]:0,ee=U((Z,ae)=>{A.current&&_&&(A.current.style.position="absolute"),Z.style[O]=z,d&&d(Z,ae)}),oe=U((Z,ae)=>{const de=Q();A.current&&_&&(A.current.style.position="");const{duration:se,easing:be}=Mr({style:S,timeout:$,easing:c},{mode:"enter"});if($==="auto"){const ke=R.transitions.getAutoHeightDuration(de);Z.style.transitionDuration=`${ke}ms`,C.current=ke}else Z.style.transitionDuration=typeof se=="string"?se:`${se}ms`;Z.style[O]=`${de}px`,Z.style.transitionTimingFunction=be,m&&m(Z,ae)}),X=U((Z,ae)=>{Z.style[O]="auto",f&&f(Z,ae)}),le=U(Z=>{Z.style[O]=`${Q()}px`,h&&h(Z)}),J=U(g),q=U(Z=>{const ae=Q(),{duration:de,easing:se}=Mr({style:S,timeout:$,easing:c},{mode:"exit"});if($==="auto"){const be=R.transitions.getAutoHeightDuration(ae);Z.style.transitionDuration=`${be}ms`,C.current=be}else Z.style.transitionDuration=typeof de=="string"?de:`${de}ms`;Z.style[O]=z,Z.style.transitionTimingFunction=se,v&&v(Z)}),xe=Z=>{$==="auto"&&E.start(C.current||0,Z),n&&n(M.current,Z)},Me={slots:x,slotProps:w,component:l},[Pe,ie]=he("root",{ref:G,className:Y(T.root,a),elementType:ew,externalForwardedProps:Me,ownerState:k,additionalProps:{style:{[_?"minWidth":"minHeight"]:z,...S}}}),[Se,P]=he("wrapper",{ref:A,className:T.wrapper,elementType:tw,externalForwardedProps:Me,ownerState:k}),[V,B]=he("wrapperInner",{className:T.wrapperInner,elementType:nw,externalForwardedProps:Me,ownerState:k});return p.jsx(I,{in:u,onEnter:ee,onEntered:X,onEntering:oe,onExit:le,onExited:J,onExiting:q,addEndListener:xe,nodeRef:M,timeout:$==="auto"?null:$,...j,children:(Z,{ownerState:ae,...de})=>{const se={...k,state:Z};return p.jsx(Pe,{...ie,className:Y(ie.className,{entered:T.entered,exited:!u&&z==="0px"&&T.hidden}[Z]),ownerState:se,...de,children:p.jsx(Se,{...P,ownerState:se,children:p.jsx(V,{...B,ownerState:se,children:i})})})}})});Es&&(Es.muiSupportAuto=!0);function rw(e){return pe("MuiPaper",e)}ue("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const ow=e=>{const{square:t,elevation:r,variant:o,classes:n}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return fe(i,rw,n)},iw=F("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(ve(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),kr=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiPaper"}),n=Ir(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=o,d={...o,component:a,elevation:s,square:l,variant:c},f=ow(d);return p.jsx(iw,{as:a,ownerState:d,className:Y(f.root,i),ref:r,...u,style:{...c==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[s],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[s]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${nd("#fff",rd(s))}, ${nd("#fff",rd(s))})`}},...u.style}})});function Bi(e){try{return e.matches(":focus-visible")}catch{}return!1}class Vi{static create(){return new Vi}static use(){const t=Bf(Vi.create).current,[r,o]=b.useState(!1);return t.shouldMount=r,t.setShouldMount=o,b.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=sw(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function aw(){return Vi.use()}function sw(){let e,t;const r=new Promise((o,n)=>{e=o,t=n});return r.resolve=e,r.reject=t,r}function lw(e){const{className:t,classes:r,pulsate:o=!1,rippleX:n,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=b.useState(!1),f=Y(t,r.ripple,r.rippleVisible,o&&r.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+n},h=Y(r.child,u&&r.childLeaving,o&&r.childPulsate);return!s&&!u&&d(!0),b.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),p.jsx("span",{className:f,style:m,children:p.jsx("span",{className:h})})}const Bt=ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ps=550,cw=80,uw=Zo`
|
|
2
|
+
0% {
|
|
3
|
+
transform: scale(0);
|
|
4
|
+
opacity: 0.1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
100% {
|
|
8
|
+
transform: scale(1);
|
|
9
|
+
opacity: 0.3;
|
|
10
|
+
}
|
|
11
|
+
`,dw=Zo`
|
|
12
|
+
0% {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
100% {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
}
|
|
19
|
+
`,pw=Zo`
|
|
20
|
+
0% {
|
|
21
|
+
transform: scale(1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
50% {
|
|
25
|
+
transform: scale(0.92);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
100% {
|
|
29
|
+
transform: scale(1);
|
|
30
|
+
}
|
|
31
|
+
`,fw=F("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),mw=F(lw,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
32
|
+
opacity: 0;
|
|
33
|
+
position: absolute;
|
|
34
|
+
|
|
35
|
+
&.${Bt.rippleVisible} {
|
|
36
|
+
opacity: 0.3;
|
|
37
|
+
transform: scale(1);
|
|
38
|
+
animation-name: ${uw};
|
|
39
|
+
animation-duration: ${Ps}ms;
|
|
40
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.${Bt.ripplePulsate} {
|
|
44
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
& .${Bt.child} {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
display: block;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
background-color: currentColor;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
& .${Bt.childLeaving} {
|
|
57
|
+
opacity: 0;
|
|
58
|
+
animation-name: ${dw};
|
|
59
|
+
animation-duration: ${Ps}ms;
|
|
60
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& .${Bt.childPulsate} {
|
|
64
|
+
position: absolute;
|
|
65
|
+
/* @noflip */
|
|
66
|
+
left: 0px;
|
|
67
|
+
top: 0;
|
|
68
|
+
animation-name: ${pw};
|
|
69
|
+
animation-duration: 2500ms;
|
|
70
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
71
|
+
animation-iteration-count: infinite;
|
|
72
|
+
animation-delay: 200ms;
|
|
73
|
+
}
|
|
74
|
+
`,hw=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiTouchRipple"}),{center:n=!1,classes:i={},className:a,...s}=o,[l,c]=b.useState([]),u=b.useRef(0),d=b.useRef(null);b.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=b.useRef(!1),m=Zn(),h=b.useRef(null),g=b.useRef(null),v=b.useCallback(S=>{const{pulsate:$,rippleX:I,rippleY:j,rippleSize:k,cb:T}=S;c(R=>[...R,p.jsx(mw,{classes:{ripple:Y(i.ripple,Bt.ripple),rippleVisible:Y(i.rippleVisible,Bt.rippleVisible),ripplePulsate:Y(i.ripplePulsate,Bt.ripplePulsate),child:Y(i.child,Bt.child),childLeaving:Y(i.childLeaving,Bt.childLeaving),childPulsate:Y(i.childPulsate,Bt.childPulsate)},timeout:Ps,pulsate:$,rippleX:I,rippleY:j,rippleSize:k},u.current)]),u.current+=1,d.current=T},[i]),y=b.useCallback((S={},$={},I=()=>{})=>{const{pulsate:j=!1,center:k=n||$.pulsate,fakeElement:T=!1}=$;if(S?.type==="mousedown"&&f.current){f.current=!1;return}S?.type==="touchstart"&&(f.current=!0);const R=T?null:g.current,E=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,C,z;if(k||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)A=Math.round(E.width/2),C=Math.round(E.height/2);else{const{clientX:_,clientY:O}=S.touches&&S.touches.length>0?S.touches[0]:S;A=Math.round(_-E.left),C=Math.round(O-E.top)}if(k)z=Math.sqrt((2*E.width**2+E.height**2)/3),z%2===0&&(z+=1);else{const _=Math.max(Math.abs((R?R.clientWidth:0)-A),A)*2+2,O=Math.max(Math.abs((R?R.clientHeight:0)-C),C)*2+2;z=Math.sqrt(_**2+O**2)}S?.touches?h.current===null&&(h.current=()=>{v({pulsate:j,rippleX:A,rippleY:C,rippleSize:z,cb:I})},m.start(cw,()=>{h.current&&(h.current(),h.current=null)})):v({pulsate:j,rippleX:A,rippleY:C,rippleSize:z,cb:I})},[n,v,m]),x=b.useCallback(()=>{y({},{pulsate:!0})},[y]),w=b.useCallback((S,$)=>{if(m.clear(),S?.type==="touchend"&&h.current){h.current(),h.current=null,m.start(0,()=>{w(S,$)});return}h.current=null,c(I=>I.length>0?I.slice(1):I),d.current=$},[m]);return b.useImperativeHandle(r,()=>({pulsate:x,start:y,stop:w}),[x,y,w]),p.jsx(fw,{className:Y(Bt.root,i.root,a),ref:g,...s,children:p.jsx(pl,{component:null,exit:!0,children:l})})});function gw(e){return pe("MuiButtonBase",e)}const vw=ue("MuiButtonBase",["root","disabled","focusVisible"]),bw=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:o,classes:n}=e,a=fe({root:["root",t&&"disabled",r&&"focusVisible"]},gw,n);return r&&o&&(a.root+=` ${o}`),a},yw=F("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${vw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kn=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiButtonBase"}),{action:n,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:m,LinkComponent:h="a",onBlur:g,onClick:v,onContextMenu:y,onDragLeave:x,onFocus:w,onFocusVisible:S,onKeyDown:$,onKeyUp:I,onMouseDown:j,onMouseLeave:k,onMouseUp:T,onTouchEnd:R,onTouchMove:E,onTouchStart:A,tabIndex:C=0,TouchRippleProps:z,touchRippleRef:_,type:O,...M}=o,G=b.useRef(null),U=aw(),Q=lt(U.ref,_),[ee,oe]=b.useState(!1);c&&ee&&oe(!1),b.useImperativeHandle(n,()=>({focusVisible:()=>{oe(!0),G.current.focus()}}),[]);const X=U.shouldMount&&!u&&!c;b.useEffect(()=>{ee&&f&&!u&&U.pulsate()},[u,f,ee,U]);const le=Rn(U,"start",j,d),J=Rn(U,"stop",y,d),q=Rn(U,"stop",x,d),xe=Rn(U,"stop",T,d),Me=Rn(U,"stop",W=>{ee&&W.preventDefault(),k&&k(W)},d),Pe=Rn(U,"start",A,d),ie=Rn(U,"stop",R,d),Se=Rn(U,"stop",E,d),P=Rn(U,"stop",W=>{Bi(W.target)||oe(!1),g&&g(W)},!1),V=Zt(W=>{G.current||(G.current=W.currentTarget),Bi(W.target)&&(oe(!0),S&&S(W)),w&&w(W)}),B=()=>{const W=G.current;return l&&l!=="button"&&!(W.tagName==="A"&&W.href)},Z=Zt(W=>{f&&!W.repeat&&ee&&W.key===" "&&U.stop(W,()=>{U.start(W)}),W.target===W.currentTarget&&B()&&W.key===" "&&W.preventDefault(),$&&$(W),W.target===W.currentTarget&&B()&&W.key==="Enter"&&!c&&(W.preventDefault(),v&&v(W))}),ae=Zt(W=>{f&&W.key===" "&&ee&&!W.defaultPrevented&&U.stop(W,()=>{U.pulsate(W)}),I&&I(W),v&&W.target===W.currentTarget&&B()&&W.key===" "&&!W.defaultPrevented&&v(W)});let de=l;de==="button"&&(M.href||M.to)&&(de=h);const se={};if(de==="button"){const W=!!M.formAction;se.type=O===void 0&&!W?"button":O,se.disabled=c}else!M.href&&!M.to&&(se.role="button"),c&&(se["aria-disabled"]=c);const be=lt(r,G),ke={...o,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:C,focusVisible:ee},we=bw(ke);return p.jsxs(yw,{as:de,className:Y(we.root,s),ownerState:ke,onBlur:P,onClick:v,onContextMenu:J,onFocus:V,onKeyDown:Z,onKeyUp:ae,onMouseDown:le,onMouseLeave:Me,onMouseUp:xe,onDragLeave:q,onTouchEnd:ie,onTouchMove:Se,onTouchStart:Pe,ref:be,tabIndex:c?-1:C,type:O,...se,...M,children:[a,X?p.jsx(hw,{ref:Q,center:i,...z}):null]})});function Rn(e,t,r,o=!1){return Zt(n=>(r&&r(n),o||e[t](n),!0))}function xw(e){return typeof e.main=="string"}function Sw(e,t=[]){if(!xw(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function st(e=[]){return([,t])=>t&&Sw(t,e)}function ww(e){return pe("MuiAlert",e)}const hd=ue("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function $w(e){return pe("MuiCircularProgress",e)}ue("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const tn=44,js=Zo`
|
|
75
|
+
0% {
|
|
76
|
+
transform: rotate(0deg);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
100% {
|
|
80
|
+
transform: rotate(360deg);
|
|
81
|
+
}
|
|
82
|
+
`,Os=Zo`
|
|
83
|
+
0% {
|
|
84
|
+
stroke-dasharray: 1px, 200px;
|
|
85
|
+
stroke-dashoffset: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
50% {
|
|
89
|
+
stroke-dasharray: 100px, 200px;
|
|
90
|
+
stroke-dashoffset: -15px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
100% {
|
|
94
|
+
stroke-dasharray: 1px, 200px;
|
|
95
|
+
stroke-dashoffset: -126px;
|
|
96
|
+
}
|
|
97
|
+
`,Iw=typeof js!="string"?Pf`
|
|
98
|
+
animation: ${js} 1.4s linear infinite;
|
|
99
|
+
`:null,kw=typeof Os!="string"?Pf`
|
|
100
|
+
animation: ${Os} 1.4s ease-in-out infinite;
|
|
101
|
+
`:null,Cw=e=>{const{classes:t,variant:r,color:o,disableShrink:n}=e,i={root:["root",r,`color${N(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${N(r)}`,n&&"circleDisableShrink"]};return fe(i,$w,t)},_w=F("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${N(r.color)}`]]}})(ve(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Iw||{animation:`${js} 1.4s linear infinite`}},...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ew=F("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Pw=F("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${N(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ve(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:kw||{animation:`${Os} 1.4s ease-in-out infinite`}}]}))),jw=F("circle",{name:"MuiCircularProgress",slot:"Track"})(ve(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),ha=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiCircularProgress"}),{className:n,color:i="primary",disableShrink:a=!1,enableTrackSlot:s=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate",...m}=o,h={...o,color:i,disableShrink:a,size:l,thickness:u,value:d,variant:f,enableTrackSlot:s},g=Cw(h),v={},y={},x={};if(f==="determinate"){const w=2*Math.PI*((tn-u)/2);v.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*w).toFixed(3)}px`,y.transform="rotate(-90deg)"}return p.jsx(_w,{className:Y(g.root,n),style:{width:l,height:l,...y,...c},ownerState:h,ref:r,role:"progressbar",...x,...m,children:p.jsxs(Ew,{className:g.svg,ownerState:h,viewBox:`${tn/2} ${tn/2} ${tn} ${tn}`,children:[s?p.jsx(jw,{className:g.track,ownerState:h,cx:tn,cy:tn,r:(tn-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,p.jsx(Pw,{className:g.circle,style:v,ownerState:h,cx:tn,cy:tn,r:(tn-u)/2,fill:"none",strokeWidth:u})]})})});function Ow(e){return pe("MuiIconButton",e)}const gd=ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Rw=e=>{const{classes:t,disabled:r,color:o,edge:n,size:i,loading:a}=e,s={root:["root",a&&"loading",r&&"disabled",o!=="default"&&`color${N(o)}`,n&&`edge${N(n)}`,`size${N(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return fe(s,Ow,t)},Dw=F(Kn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${N(r.color)}`],r.edge&&t[`edge${N(r.edge)}`],t[`size${N(r.size)}`]]}})(ve(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ve(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${gd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${gd.loading}`]:{color:"transparent"}}))),Tw=F("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ge=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiIconButton"}),{edge:n=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:f=null,loadingIndicator:m,...h}=o,g=$r(d),v=m??p.jsx(ha,{"aria-labelledby":g,color:"inherit",size:16}),y={...o,edge:n,color:s,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:v,size:u},x=Rw(y);return p.jsxs(Dw,{id:f?g:d,className:Y(x.root,a),centerRipple:!0,focusRipple:!c,disabled:l||f,ref:r,...h,ownerState:y,children:[typeof f=="boolean"&&p.jsx("span",{className:x.loadingWrapper,style:{display:"contents"},children:p.jsx(Tw,{className:x.loadingIndicator,ownerState:y,children:f&&v})}),i]})}),zw=De(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),Aw=De(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),Mw=De(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Nw=De(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),Fw=De(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Lw=e=>{const{variant:t,color:r,severity:o,classes:n}=e,i={root:["root",`color${N(r||o)}`,`${t}${N(r||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return fe(i,ww,n)},Uw=F(kr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${N(r.color||r.severity)}`]]}})(ve(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,r=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(st(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${hd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(st(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${hd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(st(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),Bw=F("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Vw=F("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ww=F("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),vd={success:p.jsx(zw,{fontSize:"inherit"}),warning:p.jsx(Aw,{fontSize:"inherit"}),error:p.jsx(Mw,{fontSize:"inherit"}),info:p.jsx(Nw,{fontSize:"inherit"})},Zw=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiAlert"}),{action:n,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=vd,onClose:m,role:h="alert",severity:g="success",slotProps:v={},slots:y={},variant:x="standard",...w}=o,S={...o,color:l,severity:g,variant:x,colorSeverity:l||g},$=Lw(S),I={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...y},slotProps:{...u,...v}},[j,k]=he("root",{ref:r,shouldForwardComponentProp:!0,className:Y($.root,a),elementType:Uw,externalForwardedProps:{...I,...w},ownerState:S,additionalProps:{role:h,elevation:0}}),[T,R]=he("icon",{className:$.icon,elementType:Bw,externalForwardedProps:I,ownerState:S}),[E,A]=he("message",{className:$.message,elementType:Vw,externalForwardedProps:I,ownerState:S}),[C,z]=he("action",{className:$.action,elementType:Ww,externalForwardedProps:I,ownerState:S}),[_,O]=he("closeButton",{elementType:ge,externalForwardedProps:I,ownerState:S}),[M,G]=he("closeIcon",{elementType:Fw,externalForwardedProps:I,ownerState:S});return p.jsxs(j,{...k,children:[d!==!1?p.jsx(T,{...R,children:d||f[g]||vd[g]}):null,p.jsx(E,{...A,children:i}),n!=null?p.jsx(C,{...z,children:n}):null,n==null&&m?p.jsx(C,{...z,children:p.jsx(_,{size:"small","aria-label":s,title:s,color:"inherit",onClick:m,...O,children:p.jsx(M,{fontSize:"small",...G})})}):null]})});function Hw(e){return pe("MuiTypography",e)}const bd=ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Gw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Kw=nS(),qw=e=>{const{align:t,gutterBottom:r,noWrap:o,paragraph:n,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${N(t)}`,r&&"gutterBottom",o&&"noWrap",n&&"paragraph"]};return fe(s,Hw,a)},Jw=F("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${N(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(ve(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${N(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),yd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ce=b.forwardRef(function(t,r){const{color:o,...n}=ye({props:t,name:"MuiTypography"}),i=!Gw[o],a=Kw({...n,...i&&{color:o}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:m="body1",variantMapping:h=yd,...g}=a,v={...a,align:s,color:o,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:m,variantMapping:h},y=c||(f?"p":h[m]||yd[m])||"span",x=qw(v);return p.jsx(Jw,{as:y,ref:r,className:Y(x.root,l),...g,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...g.style}})});function Xw(e){return pe("MuiAlertTitle",e)}ue("MuiAlertTitle",["root"]);const Yw=e=>{const{classes:t}=e;return fe({root:["root"]},Xw,t)},Qw=F(Ce,{name:"MuiAlertTitle",slot:"Root"})(ve(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),e$=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiAlertTitle"}),{className:n,...i}=o,a=o,s=Yw(a);return p.jsx(Qw,{gutterBottom:!0,component:"div",ownerState:a,ref:r,className:Y(s.root,n),...i})});function Gf(e){const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current}var Et="top",Kt="bottom",qt="right",Pt="left",fl="auto",Ho=[Et,Kt,qt,Pt],Fr="start",Ro="end",t$="clippingParents",Kf="viewport",oo="popper",n$="reference",xd=Ho.reduce(function(e,t){return e.concat([t+"-"+Fr,t+"-"+Ro])},[]),qf=[].concat(Ho,[fl]).reduce(function(e,t){return e.concat([t,t+"-"+Fr,t+"-"+Ro])},[]),r$="beforeRead",o$="read",i$="afterRead",a$="beforeMain",s$="main",l$="afterMain",c$="beforeWrite",u$="write",d$="afterWrite",p$=[r$,o$,i$,a$,s$,l$,c$,u$,d$];function xn(e){return e?(e.nodeName||"").toLowerCase():null}function Mt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gr(e){var t=Mt(e).Element;return e instanceof t||e instanceof Element}function Ht(e){var t=Mt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ml(e){if(typeof ShadowRoot>"u")return!1;var t=Mt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function f$(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},i=t.elements[r];!Ht(i)||!xn(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(a){var s=n[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function m$(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=a.reduce(function(l,c){return l[c]="",l},{});!Ht(n)||!xn(n)||(Object.assign(n.style,s),Object.keys(i).forEach(function(l){n.removeAttribute(l)}))})}}const h$={name:"applyStyles",enabled:!0,phase:"write",fn:f$,effect:m$,requires:["computeStyles"]};function bn(e){return e.split("-")[0]}var mr=Math.max,Wi=Math.min,Lr=Math.round;function Rs(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Jf(){return!/^((?!chrome|android).)*safari/i.test(Rs())}function Ur(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,i=1;t&&Ht(e)&&(n=e.offsetWidth>0&&Lr(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Lr(o.height)/e.offsetHeight||1);var a=gr(e)?Mt(e):window,s=a.visualViewport,l=!Jf()&&r,c=(o.left+(l&&s?s.offsetLeft:0))/n,u=(o.top+(l&&s?s.offsetTop:0))/i,d=o.width/n,f=o.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function hl(e){var t=Ur(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Xf(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ml(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Fn(e){return Mt(e).getComputedStyle(e)}function g$(e){return["table","td","th"].indexOf(xn(e))>=0}function Jn(e){return((gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ga(e){return xn(e)==="html"?e:e.assignedSlot||e.parentNode||(ml(e)?e.host:null)||Jn(e)}function Sd(e){return!Ht(e)||Fn(e).position==="fixed"?null:e.offsetParent}function v$(e){var t=/firefox/i.test(Rs()),r=/Trident/i.test(Rs());if(r&&Ht(e)){var o=Fn(e);if(o.position==="fixed")return null}var n=ga(e);for(ml(n)&&(n=n.host);Ht(n)&&["html","body"].indexOf(xn(n))<0;){var i=Fn(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Go(e){for(var t=Mt(e),r=Sd(e);r&&g$(r)&&Fn(r).position==="static";)r=Sd(r);return r&&(xn(r)==="html"||xn(r)==="body"&&Fn(r).position==="static")?t:r||v$(e)||t}function gl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Io(e,t,r){return mr(e,Wi(t,r))}function b$(e,t,r){var o=Io(e,t,r);return o>r?r:o}function Yf(){return{top:0,right:0,bottom:0,left:0}}function Qf(e){return Object.assign({},Yf(),e)}function em(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var y$=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Qf(typeof t!="number"?t:em(t,Ho))};function x$(e){var t,r=e.state,o=e.name,n=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=bn(r.placement),l=gl(s),c=[Pt,qt].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=y$(n.padding,r),f=hl(i),m=l==="y"?Et:Pt,h=l==="y"?Kt:qt,g=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],v=a[l]-r.rects.reference[l],y=Go(i),x=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,w=g/2-v/2,S=d[m],$=x-f[u]-d[h],I=x/2-f[u]/2+w,j=Io(S,I,$),k=l;r.modifiersData[o]=(t={},t[k]=j,t.centerOffset=j-I,t)}}function S$(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Xf(t.elements.popper,n)&&(t.elements.arrow=n))}const w$={name:"arrow",enabled:!0,phase:"main",fn:x$,effect:S$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Br(e){return e.split("-")[1]}var $$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function I$(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:Lr(r*n)/n||0,y:Lr(o*n)/n||0}}function wd(e){var t,r=e.popper,o=e.popperRect,n=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,m=f===void 0?0:f,h=a.y,g=h===void 0?0:h,v=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var y=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),w=Pt,S=Et,$=window;if(c){var I=Go(r),j="clientHeight",k="clientWidth";if(I===Mt(r)&&(I=Jn(r),Fn(I).position!=="static"&&s==="absolute"&&(j="scrollHeight",k="scrollWidth")),I=I,n===Et||(n===Pt||n===qt)&&i===Ro){S=Kt;var T=d&&I===$&&$.visualViewport?$.visualViewport.height:I[j];g-=T-o.height,g*=l?1:-1}if(n===Pt||(n===Et||n===Kt)&&i===Ro){w=qt;var R=d&&I===$&&$.visualViewport?$.visualViewport.width:I[k];m-=R-o.width,m*=l?1:-1}}var E=Object.assign({position:s},c&&$$),A=u===!0?I$({x:m,y:g},Mt(r)):{x:m,y:g};if(m=A.x,g=A.y,l){var C;return Object.assign({},E,(C={},C[S]=x?"0":"",C[w]=y?"0":"",C.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",C))}return Object.assign({},E,(t={},t[S]=x?g+"px":"",t[w]=y?m+"px":"",t.transform="",t))}function k$(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:bn(t.placement),variation:Br(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wd(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wd(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const C$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k$,data:{}};var di={passive:!0};function _$(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,i=n===void 0?!0:n,a=o.resize,s=a===void 0?!0:a,l=Mt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",r.update,di)}),s&&l.addEventListener("resize",r.update,di),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",r.update,di)}),s&&l.removeEventListener("resize",r.update,di)}}const E$={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_$,data:{}};var P$={left:"right",right:"left",bottom:"top",top:"bottom"};function Di(e){return e.replace(/left|right|bottom|top/g,function(t){return P$[t]})}var j$={start:"end",end:"start"};function $d(e){return e.replace(/start|end/g,function(t){return j$[t]})}function vl(e){var t=Mt(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function bl(e){return Ur(Jn(e)).left+vl(e).scrollLeft}function O$(e,t){var r=Mt(e),o=Jn(e),n=r.visualViewport,i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(n){i=n.width,a=n.height;var c=Jf();(c||!c&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:i,height:a,x:s+bl(e),y:l}}function R$(e){var t,r=Jn(e),o=vl(e),n=(t=e.ownerDocument)==null?void 0:t.body,i=mr(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=mr(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+bl(e),l=-o.scrollTop;return Fn(n||r).direction==="rtl"&&(s+=mr(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function yl(e){var t=Fn(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function tm(e){return["html","body","#document"].indexOf(xn(e))>=0?e.ownerDocument.body:Ht(e)&&yl(e)?e:tm(ga(e))}function ko(e,t){var r;t===void 0&&(t=[]);var o=tm(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),i=Mt(o),a=n?[i].concat(i.visualViewport||[],yl(o)?o:[]):o,s=t.concat(a);return n?s:s.concat(ko(ga(a)))}function Ds(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function D$(e,t){var r=Ur(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Id(e,t,r){return t===Kf?Ds(O$(e,r)):gr(t)?D$(t,r):Ds(R$(Jn(e)))}function T$(e){var t=ko(ga(e)),r=["absolute","fixed"].indexOf(Fn(e).position)>=0,o=r&&Ht(e)?Go(e):e;return gr(o)?t.filter(function(n){return gr(n)&&Xf(n,o)&&xn(n)!=="body"}):[]}function z$(e,t,r,o){var n=t==="clippingParents"?T$(e):[].concat(t),i=[].concat(n,[r]),a=i[0],s=i.reduce(function(l,c){var u=Id(e,c,o);return l.top=mr(u.top,l.top),l.right=Wi(u.right,l.right),l.bottom=Wi(u.bottom,l.bottom),l.left=mr(u.left,l.left),l},Id(e,a,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function nm(e){var t=e.reference,r=e.element,o=e.placement,n=o?bn(o):null,i=o?Br(o):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(n){case Et:l={x:a,y:t.y-r.height};break;case Kt:l={x:a,y:t.y+t.height};break;case qt:l={x:t.x+t.width,y:s};break;case Pt:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=n?gl(n):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Fr:l[c]=l[c]-(t[u]/2-r[u]/2);break;case Ro:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function Do(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?t$:s,c=r.rootBoundary,u=c===void 0?Kf:c,d=r.elementContext,f=d===void 0?oo:d,m=r.altBoundary,h=m===void 0?!1:m,g=r.padding,v=g===void 0?0:g,y=Qf(typeof v!="number"?v:em(v,Ho)),x=f===oo?n$:oo,w=e.rects.popper,S=e.elements[h?x:f],$=z$(gr(S)?S:S.contextElement||Jn(e.elements.popper),l,u,a),I=Ur(e.elements.reference),j=nm({reference:I,element:w,placement:n}),k=Ds(Object.assign({},w,j)),T=f===oo?k:I,R={top:$.top-T.top+y.top,bottom:T.bottom-$.bottom+y.bottom,left:$.left-T.left+y.left,right:T.right-$.right+y.right},E=e.modifiersData.offset;if(f===oo&&E){var A=E[n];Object.keys(R).forEach(function(C){var z=[qt,Kt].indexOf(C)>=0?1:-1,_=[Et,Kt].indexOf(C)>=0?"y":"x";R[C]+=A[_]*z})}return R}function A$(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?qf:l,u=Br(o),d=u?s?xd:xd.filter(function(h){return Br(h)===u}):Ho,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var m=f.reduce(function(h,g){return h[g]=Do(e,{placement:g,boundary:n,rootBoundary:i,padding:a})[bn(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function M$(e){if(bn(e)===fl)return[];var t=Di(e);return[$d(e),t,$d(t)]}function N$(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,m=r.flipVariations,h=m===void 0?!0:m,g=r.allowedAutoPlacements,v=t.options.placement,y=bn(v),x=y===v,w=l||(x||!h?[Di(v)]:M$(v)),S=[v].concat(w).reduce(function(le,J){return le.concat(bn(J)===fl?A$(t,{placement:J,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):J)},[]),$=t.rects.reference,I=t.rects.popper,j=new Map,k=!0,T=S[0],R=0;R<S.length;R++){var E=S[R],A=bn(E),C=Br(E)===Fr,z=[Et,Kt].indexOf(A)>=0,_=z?"width":"height",O=Do(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),M=z?C?qt:Pt:C?Kt:Et;$[_]>I[_]&&(M=Di(M));var G=Di(M),U=[];if(i&&U.push(O[A]<=0),s&&U.push(O[M]<=0,O[G]<=0),U.every(function(le){return le})){T=E,k=!1;break}j.set(E,U)}if(k)for(var Q=h?3:1,ee=function(J){var q=S.find(function(xe){var Me=j.get(xe);if(Me)return Me.slice(0,J).every(function(Pe){return Pe})});if(q)return T=q,"break"},oe=Q;oe>0;oe--){var X=ee(oe);if(X==="break")break}t.placement!==T&&(t.modifiersData[o]._skip=!0,t.placement=T,t.reset=!0)}}const F$={name:"flip",enabled:!0,phase:"main",fn:N$,requiresIfExists:["offset"],data:{_skip:!1}};function kd(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Cd(e){return[Et,qt,Kt,Pt].some(function(t){return e[t]>=0})}function L$(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,a=Do(t,{elementContext:"reference"}),s=Do(t,{altBoundary:!0}),l=kd(a,o),c=kd(s,n,i),u=Cd(l),d=Cd(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const U$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:L$};function B$(e,t,r){var o=bn(e),n=[Pt,Et].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*n,[Pt,qt].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}function V$(e){var t=e.state,r=e.options,o=e.name,n=r.offset,i=n===void 0?[0,0]:n,a=qf.reduce(function(u,d){return u[d]=B$(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}const W$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:V$};function Z$(e){var t=e.state,r=e.name;t.modifiersData[r]=nm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const H$={name:"popperOffsets",enabled:!0,phase:"read",fn:Z$,data:{}};function G$(e){return e==="x"?"y":"x"}function K$(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,i=n===void 0?!0:n,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,m=f===void 0?!0:f,h=r.tetherOffset,g=h===void 0?0:h,v=Do(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=bn(t.placement),x=Br(t.placement),w=!x,S=gl(y),$=G$(S),I=t.modifiersData.popperOffsets,j=t.rects.reference,k=t.rects.popper,T=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(I){if(i){var C,z=S==="y"?Et:Pt,_=S==="y"?Kt:qt,O=S==="y"?"height":"width",M=I[S],G=M+v[z],U=M-v[_],Q=m?-k[O]/2:0,ee=x===Fr?j[O]:k[O],oe=x===Fr?-k[O]:-j[O],X=t.elements.arrow,le=m&&X?hl(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Yf(),q=J[z],xe=J[_],Me=Io(0,j[O],le[O]),Pe=w?j[O]/2-Q-Me-q-R.mainAxis:ee-Me-q-R.mainAxis,ie=w?-j[O]/2+Q+Me+xe+R.mainAxis:oe+Me+xe+R.mainAxis,Se=t.elements.arrow&&Go(t.elements.arrow),P=Se?S==="y"?Se.clientTop||0:Se.clientLeft||0:0,V=(C=E?.[S])!=null?C:0,B=M+Pe-V-P,Z=M+ie-V,ae=Io(m?Wi(G,B):G,M,m?mr(U,Z):U);I[S]=ae,A[S]=ae-M}if(s){var de,se=S==="x"?Et:Pt,be=S==="x"?Kt:qt,ke=I[$],we=$==="y"?"height":"width",W=ke+v[se],Re=ke-v[be],me=[Et,Pt].indexOf(y)!==-1,We=(de=E?.[$])!=null?de:0,Fe=me?W:ke-j[we]-k[we]-We+R.altAxis,Ye=me?ke+j[we]+k[we]-We-R.altAxis:Re,vt=m&&me?b$(Fe,ke,Ye):Io(m?Fe:W,ke,m?Ye:Re);I[$]=vt,A[$]=vt-ke}t.modifiersData[o]=A}}const q$={name:"preventOverflow",enabled:!0,phase:"main",fn:K$,requiresIfExists:["offset"]};function J$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function X$(e){return e===Mt(e)||!Ht(e)?vl(e):J$(e)}function Y$(e){var t=e.getBoundingClientRect(),r=Lr(t.width)/e.offsetWidth||1,o=Lr(t.height)/e.offsetHeight||1;return r!==1||o!==1}function Q$(e,t,r){r===void 0&&(r=!1);var o=Ht(t),n=Ht(t)&&Y$(t),i=Jn(t),a=Ur(e,n,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((xn(t)!=="body"||yl(i))&&(s=X$(t)),Ht(t)?(l=Ur(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=bl(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function e0(e){var t=new Map,r=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function n(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&n(l)}}),o.push(i)}return e.forEach(function(i){r.has(i.name)||n(i)}),o}function t0(e){var t=e0(e);return p$.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function n0(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function r0(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var _d={placement:"bottom",modifiers:[],strategy:"absolute"};function Ed(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function o0(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,n=t.defaultOptions,i=n===void 0?_d:n;return function(s,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},_d,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,m={state:u,setOptions:function(y){var x=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},i,u.options,x),u.scrollParents={reference:gr(s)?ko(s):s.contextElement?ko(s.contextElement):[],popper:ko(l)};var w=t0(r0([].concat(o,u.options.modifiers)));return u.orderedModifiers=w.filter(function(S){return S.enabled}),h(),m.update()},forceUpdate:function(){if(!f){var y=u.elements,x=y.reference,w=y.popper;if(Ed(x,w)){u.rects={reference:Q$(x,Go(w),u.options.strategy==="fixed"),popper:hl(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var $=u.orderedModifiers[S],I=$.fn,j=$.options,k=j===void 0?{}:j,T=$.name;typeof I=="function"&&(u=I({state:u,options:k,name:T,instance:m})||u)}}}},update:n0(function(){return new Promise(function(v){m.forceUpdate(),v(u)})}),destroy:function(){g(),f=!0}};if(!Ed(s,l))return m;m.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function h(){u.orderedModifiers.forEach(function(v){var y=v.name,x=v.options,w=x===void 0?{}:x,S=v.effect;if(typeof S=="function"){var $=S({state:u,name:y,instance:m,options:w}),I=function(){};d.push($||I)}})}function g(){d.forEach(function(v){return v()}),d=[]}return m}}var i0=[E$,H$,C$,h$,W$,F$,q$,w$,U$],a0=o0({defaultModifiers:i0});function rm(e){const{elementType:t,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:n=!1,...i}=e,a=n?{}:Zf(r,o),{props:s,internalRef:l}=Hf({...i,externalSlotProps:a}),c=lt(l,a?.ref,e.additionalProps?.ref);return Wf(t,{...s,ref:c},o)}function Cr(e){return parseInt(b.version,10)>=19?e?.props?.ref||null:e?.ref||null}function s0(e){return typeof e=="function"?e():e}const om=b.forwardRef(function(t,r){const{children:o,container:n,disablePortal:i=!1}=t,[a,s]=b.useState(null),l=lt(b.isValidElement(o)?Cr(o):null,r);if(yn(()=>{i||s(s0(n)||document.body)},[n,i]),yn(()=>{if(a&&!i)return dd(r,a),()=>{dd(r,null)}},[r,a,i]),i){if(b.isValidElement(o)){const c={ref:l};return b.cloneElement(o,c)}return o}return a&&al.createPortal(o,a)});function l0(e){return pe("MuiPopper",e)}ue("MuiPopper",["root"]);function c0(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ts(e){return typeof e=="function"?e():e}function u0(e){return e.nodeType!==void 0}const d0=e=>{const{classes:t}=e;return fe({root:["root"]},l0,t)},p0={},f0=b.forwardRef(function(t,r){const{anchorEl:o,children:n,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:m={},TransitionProps:h,ownerState:g,...v}=t,y=b.useRef(null),x=lt(y,r),w=b.useRef(null),S=lt(w,d),$=b.useRef(S);yn(()=>{$.current=S},[S]),b.useImperativeHandle(d,()=>w.current,[]);const I=c0(c,i),[j,k]=b.useState(I),[T,R]=b.useState(Ts(o));b.useEffect(()=>{w.current&&w.current.forceUpdate()}),b.useEffect(()=>{o&&R(Ts(o))},[o]),yn(()=>{if(!T||!l)return;const _=G=>{k(G.placement)};let O=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{_(G)}}];s!=null&&(O=O.concat(s)),u&&u.modifiers!=null&&(O=O.concat(u.modifiers));const M=a0(T,y.current,{placement:I,...u,modifiers:O});return $.current(M),()=>{M.destroy(),$.current(null)}},[T,a,s,l,u,I]);const E={placement:j};h!==null&&(E.TransitionProps=h);const A=d0(t),C=m.root??"div",z=rm({elementType:C,externalSlotProps:f.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:A.root});return p.jsx(C,{...z,children:typeof n=="function"?n(E):n})}),m0=b.forwardRef(function(t,r){const{anchorEl:o,children:n,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=p0,popperRef:m,style:h,transition:g=!1,slotProps:v={},slots:y={},...x}=t,[w,S]=b.useState(!0),$=()=>{S(!1)},I=()=>{S(!0)};if(!l&&!u&&(!g||w))return null;let j;if(i)j=i;else if(o){const R=Ts(o);j=R&&u0(R)?xt(R).body:xt(null).body}const k=!u&&l&&(!g||w)?"none":void 0,T=g?{in:u,onEnter:$,onExited:I}:void 0;return p.jsx(om,{disablePortal:s,container:j,children:p.jsx(f0,{anchorEl:o,direction:a,disablePortal:s,modifiers:c,ref:r,open:g?!w:u,placement:d,popperOptions:f,popperRef:m,slotProps:v,slots:y,...x,style:{position:"fixed",top:0,left:0,display:k,...h},TransitionProps:T,children:n})})}),h0=F(m0,{name:"MuiPopper",slot:"Root"})({}),im=b.forwardRef(function(t,r){const o=sl(),n=ye({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:m,placement:h,popperOptions:g,popperRef:v,transition:y,slots:x,slotProps:w,...S}=n,$=x?.root??s?.Root,I={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:m,placement:h,popperOptions:g,popperRef:v,transition:y,...S};return p.jsx(h0,{as:a,direction:o?"rtl":"ltr",slots:{root:$},slotProps:w??l,...I,ref:r})}),g0=De(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function v0(e){return pe("MuiChip",e)}const Le=ue("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),b0=e=>{const{classes:t,disabled:r,size:o,color:n,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,r&&"disabled",`size${N(o)}`,`color${N(n)}`,s&&"clickable",s&&`clickableColor${N(n)}`,a&&"deletable",a&&`deletableColor${N(n)}`,`${l}${N(n)}`],label:["label",`label${N(o)}`],avatar:["avatar",`avatar${N(o)}`,`avatarColor${N(n)}`],icon:["icon",`icon${N(o)}`,`iconColor${N(i)}`],deleteIcon:["deleteIcon",`deleteIcon${N(o)}`,`deleteIconColor${N(n)}`,`deleteIcon${N(l)}Color${N(n)}`]};return fe(c,v0,t)},y0=F("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:o,iconColor:n,clickable:i,onDelete:a,size:s,variant:l}=r;return[{[`& .${Le.avatar}`]:t.avatar},{[`& .${Le.avatar}`]:t[`avatar${N(s)}`]},{[`& .${Le.avatar}`]:t[`avatarColor${N(o)}`]},{[`& .${Le.icon}`]:t.icon},{[`& .${Le.icon}`]:t[`icon${N(s)}`]},{[`& .${Le.icon}`]:t[`iconColor${N(n)}`]},{[`& .${Le.deleteIcon}`]:t.deleteIcon},{[`& .${Le.deleteIcon}`]:t[`deleteIcon${N(s)}`]},{[`& .${Le.deleteIcon}`]:t[`deleteIconColor${N(o)}`]},{[`& .${Le.deleteIcon}`]:t[`deleteIcon${N(l)}Color${N(o)}`]},t.root,t[`size${N(s)}`],t[`color${N(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${N(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${N(o)}`],t[l],t[`${l}${N(o)}`]]}})(ve(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Le.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Le.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Le.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Le.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Le.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Le.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Le.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Le.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Le.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(st(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Le.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Le.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Le.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Le.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(st(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Le.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Le.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(st(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Le.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Le.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Le.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Le.avatar}`]:{marginLeft:4},[`& .${Le.avatarSmall}`]:{marginLeft:2},[`& .${Le.icon}`]:{marginLeft:4},[`& .${Le.iconSmall}`]:{marginLeft:2},[`& .${Le.deleteIcon}`]:{marginRight:5},[`& .${Le.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(st()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${Le.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Le.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Le.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),x0=F("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:o}=r;return[t.label,t[`label${N(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Pd(e){return e.key==="Backspace"||e.key==="Delete"}const Ne=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiChip"}),{avatar:n,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:m,onDelete:h,onKeyDown:g,onKeyUp:v,size:y="medium",variant:x="filled",tabIndex:w,skipFocusWhenDisabled:S=!1,slots:$={},slotProps:I={},...j}=o,k=b.useRef(null),T=lt(k,r),R=q=>{q.stopPropagation(),h&&h(q)},E=q=>{q.currentTarget===q.target&&Pd(q)&&q.preventDefault(),g&&g(q)},A=q=>{q.currentTarget===q.target&&h&&Pd(q)&&h(q),v&&v(q)},C=a!==!1&&m?!0:a,z=C||h?Kn:l||"div",_={...o,component:z,disabled:u,size:y,color:s,iconColor:b.isValidElement(d)&&d.props.color||s,onDelete:!!h,clickable:C,variant:x},O=b0(_),M=z===Kn?{component:l||"div",focusVisibleClassName:O.focusVisible,...h&&{disableRipple:!0}}:{};let G=null;h&&(G=c&&b.isValidElement(c)?b.cloneElement(c,{className:Y(c.props.className,O.deleteIcon),onClick:R}):p.jsx(g0,{className:O.deleteIcon,onClick:R}));let U=null;n&&b.isValidElement(n)&&(U=b.cloneElement(n,{className:Y(O.avatar,n.props.className)}));let Q=null;d&&b.isValidElement(d)&&(Q=b.cloneElement(d,{className:Y(O.icon,d.props.className)}));const ee={slots:$,slotProps:I},[oe,X]=he("root",{elementType:y0,externalForwardedProps:{...ee,...j},ownerState:_,shouldForwardComponentProp:!0,ref:T,className:Y(O.root,i),additionalProps:{disabled:C&&u?!0:void 0,tabIndex:S&&u?-1:w,...M},getSlotProps:q=>({...q,onClick:xe=>{q.onClick?.(xe),m?.(xe)},onKeyDown:xe=>{q.onKeyDown?.(xe),E(xe)},onKeyUp:xe=>{q.onKeyUp?.(xe),A(xe)}})}),[le,J]=he("label",{elementType:x0,externalForwardedProps:ee,ownerState:_,className:O.label});return p.jsxs(oe,{as:z,...X,children:[U||Q,p.jsx(le,{...J,children:f}),G]})});function pi(e){return parseInt(e,10)||0}const S0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function w0(e){for(const t in e)return!1;return!0}function jd(e){return w0(e)||e.outerHeightStyle===0&&!e.overflowing}const $0=b.forwardRef(function(t,r){const{onChange:o,maxRows:n,minRows:i=1,style:a,value:s,...l}=t,{current:c}=b.useRef(s!=null),u=b.useRef(null),d=lt(r,u),f=b.useRef(null),m=b.useRef(null),h=b.useCallback(()=>{const w=u.current,S=m.current;if(!w||!S)return;const I=Nn(w).getComputedStyle(w);if(I.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=I.width,S.value=w.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
102
|
+
`&&(S.value+=" ");const j=I.boxSizing,k=pi(I.paddingBottom)+pi(I.paddingTop),T=pi(I.borderBottomWidth)+pi(I.borderTopWidth),R=S.scrollHeight;S.value="x";const E=S.scrollHeight;let A=R;i&&(A=Math.max(Number(i)*E,A)),n&&(A=Math.min(Number(n)*E,A)),A=Math.max(A,E);const C=A+(j==="border-box"?k+T:0),z=Math.abs(A-R)<=1;return{outerHeightStyle:C,overflowing:z}},[n,i,t.placeholder]),g=Zt(()=>{const w=u.current,S=h();if(!w||!S||jd(S))return!1;const $=S.outerHeightStyle;return f.current!=null&&f.current!==$}),v=b.useCallback(()=>{const w=u.current,S=h();if(!w||!S||jd(S))return;const $=S.outerHeightStyle;f.current!==$&&(f.current=$,w.style.height=`${$}px`),w.style.overflow=S.overflowing?"hidden":""},[h]),y=b.useRef(-1);yn(()=>{const w=Nf(v),S=u?.current;if(!S)return;const $=Nn(S);$.addEventListener("resize",w);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(()=>{g()&&(I.unobserve(S),cancelAnimationFrame(y.current),v(),y.current=requestAnimationFrame(()=>{I.observe(S)}))}),I.observe(S)),()=>{w.clear(),cancelAnimationFrame(y.current),$.removeEventListener("resize",w),I&&I.disconnect()}},[h,v,g]),yn(()=>{v()});const x=w=>{c||v();const S=w.target,$=S.value.length,I=S.value.endsWith(`
|
|
103
|
+
`),j=S.selectionStart===$;I&&j&&S.setSelectionRange($,$),o&&o(w)};return p.jsxs(b.Fragment,{children:[p.jsx("textarea",{value:s,onChange:x,ref:d,rows:i,style:a,...l}),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...S0.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Xn({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const va=b.createContext(void 0);function un(){return b.useContext(va)}function Od(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zi(e,t=!1){return e&&(Od(e.value)&&e.value!==""||t&&Od(e.defaultValue)&&e.defaultValue!=="")}function I0(e){return e.startAdornment}function k0(e){return pe("MuiInputBase",e)}const Vr=ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Rd;const ba=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${N(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ya=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},C0=e=>{const{classes:t,color:r,disabled:o,error:n,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:m,type:h}=e,g={root:["root",`color${N(r)}`,o&&"disabled",n&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${N(f)}`,u&&"multiline",m&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",o&&"disabled",h==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return fe(g,k0,t)},xa=F("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ba})(ve(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Sa=F("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ya})(ve(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},n=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":n,"&:focus::-moz-placeholder":n,"&:focus::-ms-input-placeholder":n},[`&.${Vr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Dd=rS({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),xl=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":n,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:m,endAdornment:h,error:g,fullWidth:v=!1,id:y,inputComponent:x="input",inputProps:w={},inputRef:S,margin:$,maxRows:I,minRows:j,multiline:k=!1,name:T,onBlur:R,onChange:E,onClick:A,onFocus:C,onKeyDown:z,onKeyUp:_,placeholder:O,readOnly:M,renderSuffix:G,rows:U,size:Q,slotProps:ee={},slots:oe={},startAdornment:X,type:le="text",value:J,...q}=o,xe=w.value!=null?w.value:J,{current:Me}=b.useRef(xe!=null),Pe=b.useRef(),ie=b.useCallback(Te=>{},[]),Se=lt(Pe,S,w.ref,ie),[P,V]=b.useState(!1),B=un(),Z=Xn({props:o,muiFormControl:B,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=B?B.focused:P,b.useEffect(()=>{!B&&f&&P&&(V(!1),R&&R())},[B,f,P,R]);const ae=B&&B.onFilled,de=B&&B.onEmpty,se=b.useCallback(Te=>{Zi(Te)?ae&&ae():de&&de()},[ae,de]);yn(()=>{Me&&se({value:xe})},[xe,se,Me]);const be=Te=>{C&&C(Te),w.onFocus&&w.onFocus(Te),B&&B.onFocus?B.onFocus(Te):V(!0)},ke=Te=>{R&&R(Te),w.onBlur&&w.onBlur(Te),B&&B.onBlur?B.onBlur(Te):V(!1)},we=(Te,...Je)=>{if(!Me){const it=Te.target||Pe.current;if(it==null)throw new Error(jf(1));se({value:it.value})}w.onChange&&w.onChange(Te,...Je),E&&E(Te,...Je)};b.useEffect(()=>{se(Pe.current)},[]);const W=Te=>{Pe.current&&Te.currentTarget===Te.target&&Pe.current.focus(),A&&A(Te)};let Re=x,me=w;k&&Re==="input"&&(U?me={type:void 0,minRows:U,maxRows:U,...me}:me={type:void 0,maxRows:I,minRows:j,...me},Re=$0);const We=Te=>{se(Te.animationName==="mui-auto-fill-cancel"?Pe.current:{value:"x"})};b.useEffect(()=>{B&&B.setAdornedStart(!!X)},[B,X]);const Fe={...o,color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:B,fullWidth:v,hiddenLabel:Z.hiddenLabel,multiline:k,size:Z.size,startAdornment:X,type:le},Ye=C0(Fe),vt=oe.root||c.Root||xa,ft=ee.root||u.root||{},bt=oe.input||c.Input||Sa;return me={...me,...ee.input??u.input},p.jsxs(b.Fragment,{children:[!m&&typeof Dd=="function"&&(Rd||(Rd=p.jsx(Dd,{}))),p.jsxs(vt,{...ft,ref:r,onClick:W,...q,...!Nr(vt)&&{ownerState:{...Fe,...ft.ownerState}},className:Y(Ye.root,ft.className,s,M&&"MuiInputBase-readOnly"),children:[X,p.jsx(va.Provider,{value:null,children:p.jsx(bt,{"aria-invalid":Z.error,"aria-describedby":n,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:y,onAnimationStart:We,name:T,placeholder:O,readOnly:M,required:Z.required,rows:U,value:xe,onKeyDown:z,onKeyUp:_,type:le,...me,...!Nr(bt)&&{as:Re,ownerState:{...Fe,...me.ownerState}},ref:Se,className:Y(Ye.input,me.className,M&&"MuiInputBase-readOnly"),onBlur:ke,onChange:we,onFocus:be})}),h,G?G({...Z,startAdornment:X}):null]})]})});function _0(e){return pe("MuiInput",e)}const io={...Vr,...ue("MuiInput",["root","underline","input"])};function E0(e){return pe("MuiOutlinedInput",e)}const fn={...Vr,...ue("MuiOutlinedInput",["root","notchedOutline","input"])};function P0(e){return pe("MuiFilledInput",e)}const nr={...Vr,...ue("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},j0=De(p.jsx("path",{d:"M7 10l5 5 5-5z"})),O0={entering:{opacity:1},entered:{opacity:1}},zs=b.forwardRef(function(t,r){const o=Ir(),n={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:m,onExited:h,onExiting:g,style:v,timeout:y=n,TransitionComponent:x=cn,...w}=t,S=b.useRef(null),$=lt(S,Cr(s),r),I=z=>_=>{if(z){const O=S.current;_===void 0?z(O):z(O,_)}},j=I(f),k=I((z,_)=>{Vf(z);const O=Mr({style:v,timeout:y,easing:l},{mode:"enter"});z.style.webkitTransition=o.transitions.create("opacity",O),z.style.transition=o.transitions.create("opacity",O),u&&u(z,_)}),T=I(d),R=I(g),E=I(z=>{const _=Mr({style:v,timeout:y,easing:l},{mode:"exit"});z.style.webkitTransition=o.transitions.create("opacity",_),z.style.transition=o.transitions.create("opacity",_),m&&m(z)}),A=I(h),C=z=>{i&&i(S.current,z)};return p.jsx(x,{appear:a,in:c,nodeRef:S,onEnter:k,onEntered:T,onEntering:j,onExit:E,onExited:A,onExiting:R,addEndListener:C,timeout:y,...w,children:(z,{ownerState:_,...O})=>b.cloneElement(s,{style:{opacity:0,visibility:z==="exited"&&!c?"hidden":void 0,...O0[z],...v,...s.props.style},ref:$,...O})})});function R0(e){return pe("MuiBackdrop",e)}ue("MuiBackdrop",["root","invisible"]);const D0=e=>{const{classes:t,invisible:r}=e;return fe({root:["root",r&&"invisible"]},R0,t)},T0=F("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),am=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiBackdrop"}),{children:n,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:m,transitionDuration:h,...g}=o,v={...o,component:a,invisible:s},y=D0(v),x={transition:m,root:c.Root,...f},w={...u,...d},S={component:a,slots:x,slotProps:w},[$,I]=he("root",{elementType:T0,externalForwardedProps:S,className:Y(y.root,i),ownerState:v}),[j,k]=he("transition",{elementType:zs,externalForwardedProps:S,ownerState:v});return p.jsx(j,{in:l,timeout:h,...g,...k,children:p.jsx($,{"aria-hidden":!0,...I,classes:y,ref:r,children:n})})});function z0(e){const{badgeContent:t,invisible:r=!1,max:o=99,showZero:n=!1}=e,i=Gf({badgeContent:t,max:o});let a=r;r===!1&&t===0&&!n&&(a=!0);const{badgeContent:s,max:l=o}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function A0(e){return pe("MuiBadge",e)}const Vn=ue("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Ja=10,Xa=4,M0=e=>{const{color:t,anchorOrigin:r,invisible:o,overlap:n,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,o&&"invisible",`anchorOrigin${N(r.vertical)}${N(r.horizontal)}`,`anchorOrigin${N(r.vertical)}${N(r.horizontal)}${N(n)}`,`overlap${N(n)}`,t!=="default"&&`color${N(t)}`]};return fe(s,A0,a)},N0=F("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),F0=F("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.badge,t[r.variant],t[`anchorOrigin${N(r.anchorOrigin.vertical)}${N(r.anchorOrigin.horizontal)}${N(r.overlap)}`],r.color!=="default"&&t[`color${N(r.color)}`],r.invisible&&t.invisible]}})(ve(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Ja*2,lineHeight:1,padding:"0 6px",height:Ja*2,borderRadius:Ja,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(st(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Xa,height:Xa*2,minWidth:Xa*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Td(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const L0=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiBadge"}),{anchorOrigin:n,className:i,classes:a,component:s,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:f="default",invisible:m=!1,max:h=99,badgeContent:g,slots:v,slotProps:y,showZero:x=!1,variant:w="standard",...S}=o,{badgeContent:$,invisible:I,max:j,displayValue:k}=z0({max:h,invisible:m,badgeContent:g,showZero:x}),T=Gf({anchorOrigin:Td(n),color:f,overlap:d,variant:w,badgeContent:g}),R=I||$==null&&w!=="dot",{color:E=f,overlap:A=d,anchorOrigin:C,variant:z=w}=R?T:o,_=Td(C),O=z!=="dot"?k:void 0,M={...o,badgeContent:$,invisible:R,max:j,displayValue:O,showZero:x,anchorOrigin:_,color:E,overlap:A,variant:z},G=M0(M),U={slots:{root:v?.root??l.Root,badge:v?.badge??l.Badge},slotProps:{root:y?.root??c.root,badge:y?.badge??c.badge}},[Q,ee]=he("root",{elementType:N0,externalForwardedProps:{...U,...S},ownerState:M,className:Y(G.root,i),ref:r,additionalProps:{as:s}}),[oe,X]=he("badge",{elementType:F0,externalForwardedProps:U,ownerState:M,className:G.badge});return p.jsxs(Q,{...ee,children:[u,p.jsx(oe,{...X,children:O})]})}),U0=ue("MuiBox",["root"]),B0=oS(),He=ES({themeId:ol,defaultTheme:B0,defaultClassName:U0.root,generateClassName:Tf.generate});function V0(e){return pe("MuiButton",e)}const rr=ue("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),W0=b.createContext({}),Z0=b.createContext(void 0),H0=e=>{const{color:t,disableElevation:r,fullWidth:o,size:n,variant:i,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",i,`${i}${N(t)}`,`size${N(n)}`,`${i}Size${N(n)}`,`color${N(t)}`,r&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${N(s)}`],startIcon:["icon","startIcon",`iconSize${N(n)}`],endIcon:["icon","endIcon",`iconSize${N(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=fe(c,V0,l);return{...l,...u}},sm=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],G0=F(Kn,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${N(r.color)}`],t[`size${N(r.size)}`],t[`${r.variant}Size${N(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(ve(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${rr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${rr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${rr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${rr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(st()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${rr.loading}`]:{color:"transparent"}}}]}})),K0=F("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${N(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...sm]})),q0=F("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${N(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...sm]})),J0=F("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),zd=F("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Rt=b.forwardRef(function(t,r){const o=b.useContext(W0),n=b.useContext(Z0),i=Of(o,t),a=ye({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:m=!1,endIcon:h,focusVisibleClassName:g,fullWidth:v=!1,id:y,loading:x=null,loadingIndicator:w,loadingPosition:S="center",size:$="medium",startIcon:I,type:j,variant:k="text",...T}=a,R=$r(y),E=w??p.jsx(ha,{"aria-labelledby":R,color:"inherit",size:16}),A={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:m,fullWidth:v,loading:x,loadingIndicator:E,loadingPosition:S,size:$,type:j,variant:k},C=H0(A),z=(I||x&&S==="start")&&p.jsx(K0,{className:C.startIcon,ownerState:A,children:I||p.jsx(zd,{className:C.loadingIconPlaceholder,ownerState:A})}),_=(h||x&&S==="end")&&p.jsx(q0,{className:C.endIcon,ownerState:A,children:h||p.jsx(zd,{className:C.loadingIconPlaceholder,ownerState:A})}),O=n||"",M=typeof x=="boolean"?p.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:x&&p.jsx(J0,{className:C.loadingIndicator,ownerState:A,children:E})}):null;return p.jsxs(G0,{ownerState:A,className:Y(o.className,C.root,u,O),component:c,disabled:d||x,focusRipple:!m,focusVisibleClassName:Y(C.focusVisible,g),ref:r,type:j,id:x?R:y,...T,classes:C,children:[z,S!=="end"&&M,s,S==="end"&&M,_]})});function X0(e){return b.Children.toArray(e).filter(t=>b.isValidElement(t))}function Y0(e){return pe("PrivateSwitchBase",e)}ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Q0=e=>{const{classes:t,checked:r,disabled:o,edge:n}=e,i={root:["root",r&&"checked",o&&"disabled",n&&`edge${N(n)}`],input:["input"]};return fe(i,Y0,t)},eI=F(Kn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),tI=F("input",{name:"MuiSwitchBase",shouldForwardProp:gt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lm=b.forwardRef(function(t,r){const{autoFocus:o,checked:n,checkedIcon:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:f,inputRef:m,name:h,onBlur:g,onChange:v,onFocus:y,readOnly:x,required:w=!1,tabIndex:S,type:$,value:I,slots:j={},slotProps:k={},...T}=t,[R,E]=Oo({controlled:n,default:!!a,name:"SwitchBase",state:"checked"}),A=un(),C=J=>{y&&y(J),A&&A.onFocus&&A.onFocus(J)},z=J=>{g&&g(J),A&&A.onBlur&&A.onBlur(J)},_=J=>{if(J.nativeEvent.defaultPrevented)return;const q=J.target.checked;E(q),v&&v(J,q)};let O=s;A&&typeof O>"u"&&(O=A.disabled);const M=$==="checkbox"||$==="radio",G={...t,checked:R,disabled:O,disableFocusRipple:l,edge:c},U=Q0(G),Q={slots:j,slotProps:{input:f,...k}},[ee,oe]=he("root",{ref:r,elementType:eI,className:U.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Q,component:"span",...T},getSlotProps:J=>({...J,onFocus:q=>{J.onFocus?.(q),C(q)},onBlur:q=>{J.onBlur?.(q),z(q)}}),ownerState:G,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:O,role:void 0,tabIndex:null}}),[X,le]=he("input",{ref:m,elementType:tI,className:U.input,externalForwardedProps:Q,getSlotProps:J=>({...J,onChange:q=>{J.onChange?.(q),_(q)}}),ownerState:G,additionalProps:{autoFocus:o,checked:n,defaultChecked:a,disabled:O,id:M?d:void 0,name:h,readOnly:x,required:w,tabIndex:S,type:$,...$==="checkbox"&&I===void 0?{}:{value:I}}});return p.jsxs(ee,{...oe,children:[p.jsx(X,{...le}),R?i:u]})}),nI=De(p.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"})),rI=De(p.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"})),oI=De(p.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"}));function iI(e){return pe("MuiCheckbox",e)}const Ya=ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),aI=e=>{const{classes:t,indeterminate:r,color:o,size:n}=e,i={root:["root",r&&"indeterminate",`color${N(o)}`,`size${N(n)}`]},a=fe(i,iI,t);return{...t,...a}},sI=F(lm,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${N(r.size)}`],r.color!=="default"&&t[`color${N(r.color)}`]]}})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t},style:{[`&.${Ya.checked}, &.${Ya.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ya.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),lI=p.jsx(rI,{}),cI=p.jsx(nI,{}),uI=p.jsx(oI,{}),Sl=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiCheckbox"}),{checkedIcon:n=lI,color:i="primary",icon:a=cI,indeterminate:s=!1,indeterminateIcon:l=uI,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,slots:m={},slotProps:h={},...g}=o,v=s?l:a,y=s?l:n,x={...o,disableRipple:d,color:i,indeterminate:s,size:u},w=aI(x),S=h.input??c,[$,I]=he("root",{ref:r,elementType:sI,className:Y(w.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:h,...g},ownerState:x,additionalProps:{type:"checkbox",icon:b.cloneElement(v,{fontSize:v.props.fontSize??u}),checkedIcon:b.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:d,slots:m,slotProps:{input:Ff(typeof S=="function"?S(x):S,{"data-indeterminate":s})}}});return p.jsx($,{...I,classes:w})});function Ad(e){return e.substring(2).toLowerCase()}function dI(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function pI(e){const{children:t,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:n,touchEvent:i="onTouchEnd"}=e,a=b.useRef(!1),s=b.useRef(null),l=b.useRef(!1),c=b.useRef(!1);b.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=lt(Cr(t),s),d=Zt(h=>{const g=c.current;c.current=!1;const v=xt(s.current);if(!l.current||!s.current||"clientX"in h&&dI(h,v))return;if(a.current){a.current=!1;return}let y;h.composedPath?y=h.composedPath().includes(s.current):y=!v.documentElement.contains(h.target)||s.current.contains(h.target),!y&&(r||!g)&&n(h)}),f=h=>g=>{c.current=!0;const v=t.props[h];v&&v(g)},m={ref:u};return i!==!1&&(m[i]=f(i)),b.useEffect(()=>{if(i!==!1){const h=Ad(i),g=xt(s.current),v=()=>{a.current=!0};return g.addEventListener(h,d),g.addEventListener("touchmove",v),()=>{g.removeEventListener(h,d),g.removeEventListener("touchmove",v)}}},[d,i]),o!==!1&&(m[o]=f(o)),b.useEffect(()=>{if(o!==!1){const h=Ad(o),g=xt(s.current);return g.addEventListener(h,d),()=>{g.removeEventListener(h,d)}}},[d,o]),b.cloneElement(t,m)}function cm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function fI(e){const t=xt(e);return t.body===e?Nn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Co(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Md(e){return parseInt(Nn(e).getComputedStyle(e).paddingRight,10)||0}function mI(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function Nd(e,t,r,o,n){const i=[t,r,...o];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!mI(a);s&&l&&Co(a,n)})}function Qa(e,t){let r=-1;return e.some((o,n)=>t(o)?(r=n,!0):!1),r}function hI(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(fI(o)){const a=cm(Nn(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Md(o)+a}px`;const s=xt(o).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Md(l)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=xt(o).body;else{const a=o.parentElement,s=Nn(o);i=a?.nodeName==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:o}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function gI(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class vI{constructor(){this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Co(t.modalRef,!1);const n=gI(r);Nd(r,t.mount,t.modalRef,n,!0);const i=Qa(this.containers,a=>a.container===r);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:n}),o)}mount(t,r){const o=Qa(this.containers,i=>i.modals.includes(t)),n=this.containers[o];n.restore||(n.restore=hI(n,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const n=Qa(this.containers,a=>a.modals.includes(t)),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Co(t.modalRef,r),Nd(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Co(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function bo(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const bI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function yI(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function xI(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function SI(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||xI(e))}function wI(e){const t=[],r=[];return Array.from(e.querySelectorAll(bI)).forEach((o,n)=>{const i=yI(o);i===-1||!SI(o)||(i===0?t.push(o):r.push({documentOrder:n,tabIndex:i,node:o}))}),r.sort((o,n)=>o.tabIndex===n.tabIndex?o.documentOrder-n.documentOrder:o.tabIndex-n.tabIndex).map(o=>o.node).concat(t)}function $I(){return!0}function II(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:n=!1,getTabbable:i=wI,isEnabled:a=$I,open:s}=e,l=b.useRef(!1),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),f=b.useRef(null),m=b.useRef(!1),h=b.useRef(null),g=lt(Cr(t),h),v=b.useRef(null);b.useEffect(()=>{!s||!h.current||(m.current=!r)},[r,s]),b.useEffect(()=>{if(!s||!h.current)return;const w=xt(h.current),S=bo(w);return h.current.contains(S)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{n||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),b.useEffect(()=>{if(!s||!h.current)return;const w=xt(h.current),S=bo(w),$=k=>{v.current=k,!(o||!a()||k.key!=="Tab")&&S===h.current&&k.shiftKey&&(l.current=!0,u.current&&u.current.focus())},I=()=>{const k=h.current;if(k===null)return;const T=bo(w);if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if(k.contains(T)||o&&T!==c.current&&T!==u.current)return;if(T!==f.current)f.current=null;else if(f.current!==null)return;if(!m.current)return;let R=[];if((T===c.current||T===u.current)&&(R=i(h.current)),R.length>0){const E=!!(v.current?.shiftKey&&v.current?.key==="Tab"),A=R[0],C=R[R.length-1];typeof A!="string"&&typeof C!="string"&&(E?C.focus():A.focus())}else k.focus()};w.addEventListener("focusin",I),w.addEventListener("keydown",$,!0);const j=setInterval(()=>{const k=bo(w);k&&k.tagName==="BODY"&&I()},50);return()=>{clearInterval(j),w.removeEventListener("focusin",I),w.removeEventListener("keydown",$,!0)}},[r,o,n,a,s,i]);const y=w=>{d.current===null&&(d.current=w.relatedTarget),m.current=!0,f.current=w.target;const S=t.props.onFocus;S&&S(w)},x=w=>{d.current===null&&(d.current=w.relatedTarget),m.current=!0};return p.jsxs(b.Fragment,{children:[p.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:c,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:g,onFocus:y}),p.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:u,"data-testid":"sentinelEnd"})]})}function kI(e){return typeof e=="function"?e():e}function CI(e){return e?e.props.hasOwnProperty("in"):!1}const Fd=()=>{},fi=new vI;function _I(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,closeAfterTransition:n=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=b.useRef({}),f=b.useRef(null),m=b.useRef(null),h=lt(m,u),[g,v]=b.useState(!c),y=CI(s);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const w=()=>xt(f.current),S=()=>(d.current.modalRef=m.current,d.current.mount=f.current,d.current),$=()=>{fi.mount(S(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},I=Zt(()=>{const _=kI(t)||w().body;fi.add(S(),_),m.current&&$()}),j=()=>fi.isTopModal(S()),k=Zt(_=>{f.current=_,_&&(c&&j()?$():m.current&&Co(m.current,x))}),T=b.useCallback(()=>{fi.remove(S(),x)},[x]);b.useEffect(()=>()=>{T()},[T]),b.useEffect(()=>{c?I():(!y||!n)&&T()},[c,T,y,n,I]);const R=_=>O=>{_.onKeyDown?.(O),!(O.key!=="Escape"||O.which===229||!j())&&(r||(O.stopPropagation(),l&&l(O,"escapeKeyDown")))},E=_=>O=>{_.onClick?.(O),O.target===O.currentTarget&&l&&l(O,"backdropClick")};return{getRootProps:(_={})=>{const O=Ui(e);delete O.onTransitionEnter,delete O.onTransitionExited;const M={...O,..._};return{role:"presentation",...M,onKeyDown:R(M),ref:h}},getBackdropProps:(_={})=>{const O=_;return{"aria-hidden":!0,...O,onClick:E(O),open:c}},getTransitionProps:()=>{const _=()=>{v(!1),i&&i()},O=()=>{v(!0),a&&a(),n&&T()};return{onEnter:Is(_,s?.props.onEnter??Fd),onExited:Is(O,s?.props.onExited??Fd)}},rootRef:h,portalRef:k,isTopModal:j,exited:g,hasTransition:y}}function EI(e){return pe("MuiModal",e)}ue("MuiModal",["root","hidden","backdrop"]);const PI=e=>{const{open:t,exited:r,classes:o}=e;return fe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},EI,o)},jI=F("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(ve(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),OI=F(am,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),um=b.forwardRef(function(t,r){const o=ye({name:"MuiModal",props:t}),{BackdropComponent:n=OI,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:m={},disableAutoFocus:h=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:v=!1,disablePortal:y=!1,disableRestoreFocus:x=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:$=!1,onClose:I,onTransitionEnter:j,onTransitionExited:k,open:T,slotProps:R={},slots:E={},theme:A,...C}=o,z={...o,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:g,disableEscapeKeyDown:v,disablePortal:y,disableRestoreFocus:x,disableScrollLock:w,hideBackdrop:S,keepMounted:$},{getRootProps:_,getBackdropProps:O,getTransitionProps:M,portalRef:G,isTopModal:U,exited:Q,hasTransition:ee}=_I({...z,rootRef:r}),oe={...z,exited:Q},X=PI(oe),le={};if(c.props.tabIndex===void 0&&(le.tabIndex="-1"),ee){const{onEnter:ie,onExited:Se}=M();le.onEnter=ie,le.onExited=Se}const J={slots:{root:f.Root,backdrop:f.Backdrop,...E},slotProps:{...m,...R}},[q,xe]=he("root",{ref:r,elementType:jI,externalForwardedProps:{...J,...C,component:d},getSlotProps:_,ownerState:oe,className:Y(s,X?.root,!oe.open&&oe.exited&&X?.hidden)}),[Me,Pe]=he("backdrop",{ref:i?.ref,elementType:n,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:ie=>O({...ie,onClick:Se=>{ie?.onClick&&ie.onClick(Se)}}),className:Y(i?.className,X?.backdrop),ownerState:oe});return!$&&!T&&(!ee||Q)?null:p.jsx(om,{ref:G,container:u,disablePortal:y,children:p.jsxs(q,{...xe,children:[!S&&n?p.jsx(Me,{...Pe}):null,p.jsx(II,{disableEnforceFocus:g,disableAutoFocus:h,disableRestoreFocus:x,isEnabled:U,open:T,children:b.cloneElement(c,le)})]})})});function RI(e){return pe("MuiDialog",e)}const es=ue("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),dm=b.createContext({}),DI=F(am,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),TI=e=>{const{classes:t,scroll:r,maxWidth:o,fullWidth:n,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${N(r)}`],paper:["paper",`paperScroll${N(r)}`,`paperWidth${N(String(o))}`,n&&"paperFullWidth",i&&"paperFullScreen"]};return fe(a,RI,t)},zI=F(um,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),AI=F("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${N(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),MI=F(kr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${N(r.scroll)}`],t[`paperWidth${N(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(ve(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${es.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${es.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${es.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wl=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiDialog"}),n=Ir(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:m=!1,fullScreen:h=!1,fullWidth:g=!1,maxWidth:v="sm",onClick:y,onClose:x,open:w,PaperComponent:S=kr,PaperProps:$={},scroll:I="paper",slots:j={},slotProps:k={},TransitionComponent:T=zs,transitionDuration:R=i,TransitionProps:E,...A}=o,C={...o,disableEscapeKeyDown:m,fullScreen:h,fullWidth:g,maxWidth:v,scroll:I},z=TI(C),_=b.useRef(),O=V=>{_.current=V.target===V.currentTarget},M=V=>{y&&y(V),_.current&&(_.current=null,x&&x(V,"backdropClick"))},G=$r(s),U=b.useMemo(()=>({titleId:G}),[G]),Q={transition:T,...j},ee={transition:E,paper:$,backdrop:u,...k},oe={slots:Q,slotProps:ee},[X,le]=he("root",{elementType:zI,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:C,className:Y(z.root,f),ref:r}),[J,q]=he("backdrop",{elementType:DI,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:C}),[xe,Me]=he("paper",{elementType:MI,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:C,className:Y(z.paper,$.className)}),[Pe,ie]=he("container",{elementType:AI,externalForwardedProps:oe,ownerState:C,className:z.container}),[Se,P]=he("transition",{elementType:zs,externalForwardedProps:oe,ownerState:C,additionalProps:{appear:!0,in:w,timeout:R,role:"presentation"}});return p.jsx(X,{closeAfterTransition:!0,slots:{backdrop:J},slotProps:{backdrop:{transitionDuration:R,as:c,...q}},disableEscapeKeyDown:m,onClose:x,open:w,onClick:M,...le,...A,children:p.jsx(Se,{...P,children:p.jsx(Pe,{onMouseDown:O,...ie,children:p.jsx(xe,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":G,"aria-modal":l,...Me,children:p.jsx(dm.Provider,{value:U,children:d})})})})})});function NI(e){return pe("MuiDialogActions",e)}ue("MuiDialogActions",["root","spacing"]);const FI=e=>{const{classes:t,disableSpacing:r}=e;return fe({root:["root",!r&&"spacing"]},NI,t)},LI=F("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),pm=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiDialogActions"}),{className:n,disableSpacing:i=!1,...a}=o,s={...o,disableSpacing:i},l=FI(s);return p.jsx(LI,{className:Y(l.root,n),ownerState:s,ref:r,...a})});function UI(e){return pe("MuiDialogContent",e)}ue("MuiDialogContent",["root","dividers"]);function BI(e){return pe("MuiDialogTitle",e)}const VI=ue("MuiDialogTitle",["root"]),WI=e=>{const{classes:t,dividers:r}=e;return fe({root:["root",r&&"dividers"]},UI,t)},ZI=F("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(ve(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${VI.root} + &`]:{paddingTop:0}}}]}))),$l=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiDialogContent"}),{className:n,dividers:i=!1,...a}=o,s={...o,dividers:i},l=WI(s);return p.jsx(ZI,{className:Y(l.root,n),ownerState:s,ref:r,...a})}),HI=e=>{const{classes:t}=e;return fe({root:["root"]},BI,t)},GI=F(Ce,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),fm=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiDialogTitle"}),{className:n,id:i,...a}=o,s=o,l=HI(s),{titleId:c=i}=b.useContext(dm);return p.jsx(GI,{component:"h2",className:Y(l.root,n),ownerState:s,ref:r,variant:"h6",id:i??c,...a})});function KI(e){return pe("MuiDivider",e)}const Ld=ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),qI=e=>{const{absolute:t,children:r,classes:o,flexItem:n,light:i,orientation:a,textAlign:s,variant:l}=e;return fe({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",n&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},KI,o)},JI=F("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(ve(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),XI=F("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(ve(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),vr=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiDivider"}),{absolute:n=!1,children:i,className:a,orientation:s="horizontal",component:l=i||s==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:m="fullWidth",...h}=o,g={...o,absolute:n,component:l,flexItem:c,light:u,orientation:s,role:d,textAlign:f,variant:m},v=qI(g);return p.jsx(JI,{as:l,className:Y(v.root,a),role:d,ref:r,ownerState:g,"aria-orientation":d==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...h,children:i?p.jsx(XI,{className:v.wrapper,ownerState:g,children:i}):null})});vr&&(vr.muiSkipListHighlight=!0);function YI(e){return pe("MuiFab",e)}const Ud=ue("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),QI=e=>{const{color:t,variant:r,classes:o,size:n}=e,i={root:["root",r,`size${N(n)}`,t==="inherit"?"colorInherit":t]},a=fe(i,YI,o);return{...o,...a}},e1=F(Kn,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>gt(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${N(r.size)}`],r.color==="inherit"&&t.colorInherit,t[N(r.size)],t[r.color]]}})(ve(({theme:e})=>({...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Ud.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),ve(({theme:e})=>({variants:[...Object.entries(e.palette).filter(st(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),ve(({theme:e})=>({[`&.${Ud.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),t1=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiFab"}),{children:n,className:i,color:a="default",component:s="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:d="large",variant:f="circular",...m}=o,h={...o,color:a,component:s,disabled:l,disableFocusRipple:c,size:d,variant:f},g=QI(h);return p.jsx(e1,{className:Y(g.root,i),component:s,disabled:l,focusRipple:!c,focusVisibleClassName:Y(g.focusVisible,u),ownerState:h,ref:r,...m,classes:g,children:n})}),n1=e=>{const{classes:t,disableUnderline:r,startAdornment:o,endAdornment:n,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!r&&"underline",o&&"adornedStart",n&&"adornedEnd",i==="small"&&`size${N(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=fe(l,P0,t);return{...t,...c}},r1=F(xa,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ba(e,t),!r.disableUnderline&&t.underline]}})(ve(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",n=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:n,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${nr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${nr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${nr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${nr.disabled}, .${nr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${nr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(st()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),o1=F(Sa,{name:"MuiFilledInput",slot:"Input",overridesResolver:ya})(ve(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Il=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiFilledInput"}),{disableUnderline:n=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:m="text",...h}=o,g={...o,disableUnderline:n,fullWidth:s,inputComponent:c,multiline:u,type:m},v=n1(o),y={root:{ownerState:g},input:{ownerState:g}},x=d??a?ll(y,d??a):y,w=f.root??i.Root??r1,S=f.input??i.Input??o1;return p.jsx(xl,{slots:{root:w,input:S},slotProps:x,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:m,...h,classes:v})});Il.muiName="Input";function i1(e){return pe("MuiFormControl",e)}ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const a1=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${N(r)}`,o&&"fullWidth"]};return fe(n,i1,t)},s1=F("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${N(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Yn=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiFormControl"}),{children:n,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:m="none",required:h=!1,size:g="medium",variant:v="outlined",...y}=o,x={...o,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:m,required:h,size:g,variant:v},w=a1(x),[S,$]=b.useState(()=>{let _=!1;return n&&b.Children.forEach(n,O=>{if(!Ri(O,["Input","Select"]))return;const M=Ri(O,["Select"])?O.props.input:O;M&&I0(M.props)&&(_=!0)}),_}),[I,j]=b.useState(()=>{let _=!1;return n&&b.Children.forEach(n,O=>{Ri(O,["Input","Select"])&&(Zi(O.props,!0)||Zi(O.props.inputProps,!0))&&(_=!0)}),_}),[k,T]=b.useState(!1);l&&k&&T(!1);const R=u!==void 0&&!l?u:k;let E;b.useRef(!1);const A=b.useCallback(()=>{j(!0)},[]),C=b.useCallback(()=>{j(!1)},[]),z=b.useMemo(()=>({adornedStart:S,setAdornedStart:$,color:a,disabled:l,error:c,filled:I,focused:R,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{T(!1)},onFocus:()=>{T(!0)},onEmpty:C,onFilled:A,registerEffect:E,required:h,variant:v}),[S,a,l,c,I,R,d,f,E,C,A,h,g,v]);return p.jsx(va.Provider,{value:z,children:p.jsx(s1,{as:s,ownerState:x,className:Y(w.root,i),ref:r,...y,children:n})})});function l1(e){return pe("MuiFormControlLabel",e)}const yo=ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),c1=e=>{const{classes:t,disabled:r,labelPlacement:o,error:n,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${N(o)}`,n&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",n&&"error"]};return fe(a,l1,t)},u1=F("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${yo.label}`]:t.label},t.root,t[`labelPlacement${N(r.labelPlacement)}`]]}})(ve(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${yo.disabled}`]:{cursor:"default"},[`& .${yo.label}`]:{[`&.${yo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),d1=F("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ve(({theme:e})=>({[`&.${yo.error}`]:{color:(e.vars||e).palette.error.main}}))),wa=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiFormControlLabel"}),{checked:n,className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:m,onChange:h,required:g,slots:v={},slotProps:y={},value:x,...w}=o,S=un(),$=l??s.props.disabled??S?.disabled,I=g??s.props.required,j={disabled:$,required:I};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof s.props[_]>"u"&&typeof o[_]<"u"&&(j[_]=o[_])});const k=Xn({props:o,muiFormControl:S,states:["error"]}),T={...o,disabled:$,labelPlacement:f,required:I,error:k.error},R=c1(T),E={slots:v,slotProps:{...a,...y}},[A,C]=he("typography",{elementType:Ce,externalForwardedProps:E,ownerState:T});let z=d;return z!=null&&z.type!==Ce&&!c&&(z=p.jsx(A,{component:"span",...C,className:Y(R.label,C?.className),children:z})),p.jsxs(u1,{className:Y(R.root,i),ownerState:T,ref:r,...w,children:[b.cloneElement(s,j),I?p.jsxs("div",{children:[z,p.jsxs(d1,{ownerState:T,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):z]})});function p1(e){return pe("MuiFormGroup",e)}ue("MuiFormGroup",["root","row","error"]);const f1=e=>{const{classes:t,row:r,error:o}=e;return fe({root:["root",r&&"row",o&&"error"]},p1,t)},m1=F("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),h1=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiFormGroup"}),{className:n,row:i=!1,...a}=o,s=un(),l=Xn({props:o,muiFormControl:s,states:["error"]}),c={...o,row:i,error:l.error},u=f1(c);return p.jsx(m1,{className:Y(u.root,n),ownerState:c,ref:r,...a})});function g1(e){return pe("MuiFormHelperText",e)}const Bd=ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Vd;const v1=e=>{const{classes:t,contained:r,size:o,disabled:n,error:i,filled:a,focused:s,required:l}=e,c={root:["root",n&&"disabled",i&&"error",o&&`size${N(o)}`,r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return fe(c,g1,t)},b1=F("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${N(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Bd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Bd.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qr=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiFormHelperText"}),{children:n,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:m,...h}=o,g=un(),v=Xn({props:o,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete y.ownerState;const x=v1(y);return p.jsx(b1,{as:a,className:Y(x.root,i),ref:r,...h,ownerState:y,children:n===" "?Vd||(Vd=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):n})});function y1(e){return pe("MuiFormLabel",e)}const _o=ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),x1=e=>{const{classes:t,color:r,focused:o,disabled:n,error:i,filled:a,required:s}=e,l={root:["root",`color${N(r)}`,n&&"disabled",i&&"error",a&&"filled",o&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return fe(l,y1,t)},S1=F("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t},style:{[`&.${_o.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${_o.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_o.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),w1=F("span",{name:"MuiFormLabel",slot:"Asterisk"})(ve(({theme:e})=>({[`&.${_o.error}`]:{color:(e.vars||e).palette.error.main}}))),$1=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiFormLabel"}),{children:n,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...m}=o,h=un(),g=Xn({props:o,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),v={...o,color:g.color||"primary",component:s,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},y=x1(v);return p.jsxs(S1,{as:s,ownerState:v,className:Y(y.root,i),ref:r,...m,children:[n,g.required&&p.jsxs(w1,{ownerState:v,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function As(e){return`scale(${e}, ${e**2})`}const I1={entering:{opacity:1,transform:As(1)},entered:{opacity:1,transform:"none"}},ts=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),To=b.forwardRef(function(t,r){const{addEndListener:o,appear:n=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:m,style:h,timeout:g="auto",TransitionComponent:v=cn,...y}=t,x=Zn(),w=b.useRef(),S=Ir(),$=b.useRef(null),I=lt($,Cr(i),r),j=_=>O=>{if(_){const M=$.current;O===void 0?_(M):_(M,O)}},k=j(u),T=j((_,O)=>{Vf(_);const{duration:M,delay:G,easing:U}=Mr({style:h,timeout:g,easing:a},{mode:"enter"});let Q;g==="auto"?(Q=S.transitions.getAutoHeightDuration(_.clientHeight),w.current=Q):Q=M,_.style.transition=[S.transitions.create("opacity",{duration:Q,delay:G}),S.transitions.create("transform",{duration:ts?Q:Q*.666,delay:G,easing:U})].join(","),l&&l(_,O)}),R=j(c),E=j(m),A=j(_=>{const{duration:O,delay:M,easing:G}=Mr({style:h,timeout:g,easing:a},{mode:"exit"});let U;g==="auto"?(U=S.transitions.getAutoHeightDuration(_.clientHeight),w.current=U):U=O,_.style.transition=[S.transitions.create("opacity",{duration:U,delay:M}),S.transitions.create("transform",{duration:ts?U:U*.666,delay:ts?M:M||U*.333,easing:G})].join(","),_.style.opacity=0,_.style.transform=As(.75),d&&d(_)}),C=j(f),z=_=>{g==="auto"&&x.start(w.current||0,_),o&&o($.current,_)};return p.jsx(v,{appear:n,in:s,nodeRef:$,onEnter:T,onEntered:R,onEntering:k,onExit:A,onExited:C,onExiting:E,addEndListener:z,timeout:g==="auto"?null:g,...y,children:(_,{ownerState:O,...M})=>b.cloneElement(i,{style:{opacity:0,transform:As(.75),visibility:_==="exited"&&!s?"hidden":void 0,...I1[_],...h,...i.props.style},ref:I,...M})})});To&&(To.muiSupportAuto=!0);const k1=e=>{const{classes:t,disableUnderline:r}=e,n=fe({root:["root",!r&&"underline"],input:["input"]},_0,t);return{...t,...n}},C1=F(xa,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ba(e,t),!r.disableUnderline&&t.underline]}})(ve(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${io.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${io.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${io.disabled}, .${io.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${io.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(st()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),_1=F(Sa,{name:"MuiInput",slot:"Input",overridesResolver:ya})({}),kl=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiInput"}),{disableUnderline:n=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...m}=o,h=k1(o),v={root:{ownerState:{disableUnderline:n}}},y=u??a?ll(u??a,v):v,x=d.root??i.Root??C1,w=d.input??i.Input??_1;return p.jsx(xl,{slots:{root:x,input:w},slotProps:y,fullWidth:s,inputComponent:l,multiline:c,ref:r,type:f,...m,classes:h})});kl.muiName="Input";function E1(e){return pe("MuiInputAdornment",e)}const Wd=ue("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Zd;const P1=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${N(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},j1=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:o,position:n,size:i,variant:a}=e,s={root:["root",r&&"disablePointerEvents",n&&`position${N(n)}`,a,o&&"hiddenLabel",i&&`size${N(i)}`]};return fe(s,E1,t)},O1=F("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:P1})(ve(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Wd.positionStart}&:not(.${Wd.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),R1=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiInputAdornment"}),{children:n,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=o,f=un()||{};let m=u;u&&f.variant,f&&!m&&(m=f.variant);const h={...o,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:m},g=j1(h);return p.jsx(va.Provider,{value:null,children:p.jsx(O1,{as:a,ownerState:h,className:Y(g.root,i),ref:r,...d,children:typeof n=="string"&&!l?p.jsx(Ce,{color:"textSecondary",children:n}):p.jsxs(b.Fragment,{children:[c==="start"?Zd||(Zd=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,n]})})})});function D1(e){return pe("MuiInputLabel",e)}ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const T1=e=>{const{classes:t,formControl:r,size:o,shrink:n,disableAnimation:i,variant:a,required:s}=e,l={root:["root",r&&"formControl",!i&&"animated",n&&"shrink",o&&o!=="medium"&&`size${N(o)}`,a],asterisk:[s&&"asterisk"]},c=fe(l,D1,t);return{...t,...c}},z1=F($1,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${_o.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(ve(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),_r=b.forwardRef(function(t,r){const o=ye({name:"MuiInputLabel",props:t}),{disableAnimation:n=!1,margin:i,shrink:a,variant:s,className:l,...c}=o,u=un();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=Xn({props:o,muiFormControl:u,states:["size","variant","required","focused"]}),m={...o,disableAnimation:n,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},h=T1(m);return p.jsx(z1,{"data-shrink":d,ref:r,className:Y(h.root,l),...c,ownerState:m,classes:h})}),zn=b.createContext({});function A1(e){return pe("MuiList",e)}ue("MuiList",["root","padding","dense","subheader"]);const M1=e=>{const{classes:t,disablePadding:r,dense:o,subheader:n}=e;return fe({root:["root",!r&&"padding",o&&"dense",n&&"subheader"]},A1,t)},N1=F("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Cl=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiList"}),{children:n,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=o,d=b.useMemo(()=>({dense:s}),[s]),f={...o,component:a,dense:s,disablePadding:l},m=M1(f);return p.jsx(zn.Provider,{value:d,children:p.jsxs(N1,{as:a,className:Y(m.root,i),ref:r,ownerState:f,...u,children:[c,n]})})});function F1(e){return pe("MuiListItem",e)}ue("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const L1=ue("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function U1(e){return pe("MuiListItemSecondaryAction",e)}ue("MuiListItemSecondaryAction",["root","disableGutters"]);const B1=e=>{const{disableGutters:t,classes:r}=e;return fe({root:["root",t&&"disableGutters"]},U1,r)},V1=F("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),mm=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiListItemSecondaryAction"}),{className:n,...i}=o,a=b.useContext(zn),s={...o,disableGutters:a.disableGutters},l=B1(s);return p.jsx(V1,{className:Y(l.root,n),ownerState:s,ref:r,...i})});mm.muiName="ListItemSecondaryAction";const W1=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},Z1=e=>{const{alignItems:t,classes:r,dense:o,disableGutters:n,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return fe({root:["root",o&&"dense",!n&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},F1,r)},H1=F("div",{name:"MuiListItem",slot:"Root",overridesResolver:W1})(ve(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${L1.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),G1=F("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),ns=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiListItem"}),{alignItems:n="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:m=!1,disableGutters:h=!1,disablePadding:g=!1,divider:v=!1,secondaryAction:y,slotProps:x={},slots:w={},...S}=o,$=b.useContext(zn),I=b.useMemo(()=>({dense:m||$.dense||!1,alignItems:n,disableGutters:h}),[n,$.dense,m,h]),j=b.useRef(null),k=b.Children.toArray(i),T=k.length&&Ri(k[k.length-1],["ListItemSecondaryAction"]),R={...o,alignItems:n,dense:I.dense,disableGutters:h,disablePadding:g,divider:v,hasSecondaryAction:T},E=Z1(R),A=lt(j,r),C={slots:w,slotProps:x},[z,_]=he("secondaryAction",{elementType:mm,externalForwardedProps:C,ownerState:R,className:E.secondaryAction}),O=w.root||l.Root||H1,M=x.root||c.root||{},G={className:Y(E.root,M.className,a),...S};let U=s||"li";return T?(U=!G.component&&!s?"div":U,u==="li"&&(U==="li"?U="div":G.component==="li"&&(G.component="div")),p.jsx(zn.Provider,{value:I,children:p.jsxs(G1,{as:u,className:Y(E.container,d),ref:A,ownerState:R,...f,children:[p.jsx(O,{...M,...!Nr(O)&&{as:U,ownerState:{...R,...M.ownerState}},...G,children:k}),k.pop()]})})):p.jsx(zn.Provider,{value:I,children:p.jsxs(O,{...M,as:U,ref:A,...!Nr(O)&&{ownerState:{...R,...M.ownerState}},...G,children:[k,y&&p.jsx(z,{..._,children:y})]})})});function K1(e){return pe("MuiListItemIcon",e)}const Hd=ue("MuiListItemIcon",["root","alignItemsFlexStart"]),q1=e=>{const{alignItems:t,classes:r}=e;return fe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},K1,r)},J1=F("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(ve(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Gd=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiListItemIcon"}),{className:n,...i}=o,a=b.useContext(zn),s={...o,alignItems:a.alignItems},l=q1(s);return p.jsx(J1,{className:Y(l.root,n),ownerState:s,ref:r,...i})});function X1(e){return pe("MuiListItemText",e)}const Dr=ue("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Y1=e=>{const{classes:t,inset:r,primary:o,secondary:n,dense:i}=e;return fe({root:["root",r&&"inset",i&&"dense",o&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},X1,t)},Q1=F("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Dr.primary}`]:t.primary},{[`& .${Dr.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${bd.root}:where(& .${Dr.primary})`]:{display:"block"},[`.${bd.root}:where(& .${Dr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Kd=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiListItemText"}),{children:n,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:f={},slotProps:m={},...h}=o,{dense:g}=b.useContext(zn);let v=l??n,y=u;const x={...o,disableTypography:a,inset:s,primary:!!v,secondary:!!y,dense:g},w=Y1(x),S={slots:f,slotProps:{primary:c,secondary:d,...m}},[$,I]=he("root",{className:Y(w.root,i),elementType:Q1,externalForwardedProps:{...S,...h},ownerState:x,ref:r}),[j,k]=he("primary",{className:w.primary,elementType:Ce,externalForwardedProps:S,ownerState:x}),[T,R]=he("secondary",{className:w.secondary,elementType:Ce,externalForwardedProps:S,ownerState:x});return v!=null&&v.type!==Ce&&!a&&(v=p.jsx(j,{variant:g?"body2":"body1",component:k?.variant?void 0:"span",...k,children:v})),y!=null&&y.type!==Ce&&!a&&(y=p.jsx(T,{variant:"body2",color:"textSecondary",...R,children:y})),p.jsxs($,{...I,children:[v,y]})});function rs(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function qd(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function hm(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function ao(e,t,r,o,n,i){let a=!1,s=n(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=o?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!hm(s,i)||l)s=n(e,s,r);else return s.focus(),!0}return!1}const ek=b.forwardRef(function(t,r){const{actions:o,autoFocus:n=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,m=b.useRef(null),h=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{n&&m.current.focus()},[n]),b.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(w,{direction:S})=>{const $=!m.current.style.width;if(w.clientHeight<m.current.clientHeight&&$){const I=`${cm(Nn(w))}px`;m.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=I,m.current.style.width=`calc(100% + ${I})`}return m.current}}),[]);const g=w=>{const S=m.current,$=w.key;if(w.ctrlKey||w.metaKey||w.altKey){u&&u(w);return}const j=bo(xt(S));if($==="ArrowDown")w.preventDefault(),ao(S,j,c,l,rs);else if($==="ArrowUp")w.preventDefault(),ao(S,j,c,l,qd);else if($==="Home")w.preventDefault(),ao(S,null,c,l,rs);else if($==="End")w.preventDefault(),ao(S,null,c,l,qd);else if($.length===1){const k=h.current,T=$.toLowerCase(),R=performance.now();k.keys.length>0&&(R-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&T!==k.keys[0]&&(k.repeating=!1)),k.lastTime=R,k.keys.push(T);const E=j&&!k.repeating&&hm(j,k);k.previousKeyMatched&&(E||ao(S,j,!1,l,rs,k))?w.preventDefault():k.previousKeyMatched=!1}u&&u(w)},v=lt(m,r);let y=-1;b.Children.forEach(a,(w,S)=>{if(!b.isValidElement(w)){y===S&&(y+=1,y>=a.length&&(y=-1));return}w.props.disabled||(d==="selectedMenu"&&w.props.selected||y===-1)&&(y=S),y===S&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const x=b.Children.map(a,(w,S)=>{if(S===y){const $={};return i&&($.autoFocus=!0),w.props.tabIndex===void 0&&d==="selectedMenu"&&($.tabIndex=0),b.cloneElement(w,$)}return w});return p.jsx(Cl,{role:"menu",ref:v,className:s,onKeyDown:g,tabIndex:n?0:-1,...f,children:x})});function tk(e){return pe("MuiPopover",e)}ue("MuiPopover",["root","paper"]);function Jd(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Xd(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Yd(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function mi(e){return typeof e=="function"?e():e}const nk=e=>{const{classes:t}=e;return fe({root:["root"],paper:["paper"]},tk,t)},rk=F(um,{name:"MuiPopover",slot:"Root"})({}),gm=F(kr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ok=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiPopover"}),{action:n,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:m=16,open:h,PaperProps:g={},slots:v={},slotProps:y={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:S="auto",TransitionProps:$={},disableScrollLock:I=!1,...j}=o,k=b.useRef(),T={...o,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:m,transformOrigin:x,TransitionComponent:w,transitionDuration:S,TransitionProps:$},R=nk(T),E=b.useCallback(()=>{if(l==="anchorPosition")return s;const ie=mi(i),P=(ie&&ie.nodeType===1?ie:xt(k.current).body).getBoundingClientRect();return{top:P.top+Jd(P,a.vertical),left:P.left+Xd(P,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),A=b.useCallback(ie=>({vertical:Jd(ie,x.vertical),horizontal:Xd(ie,x.horizontal)}),[x.horizontal,x.vertical]),C=b.useCallback(ie=>{const Se={width:ie.offsetWidth,height:ie.offsetHeight},P=A(Se);if(l==="none")return{top:null,left:null,transformOrigin:Yd(P)};const V=E();let B=V.top-P.vertical,Z=V.left-P.horizontal;const ae=B+Se.height,de=Z+Se.width,se=Nn(mi(i)),be=se.innerHeight-m,ke=se.innerWidth-m;if(m!==null&&B<m){const we=B-m;B-=we,P.vertical+=we}else if(m!==null&&ae>be){const we=ae-be;B-=we,P.vertical+=we}if(m!==null&&Z<m){const we=Z-m;Z-=we,P.horizontal+=we}else if(de>ke){const we=de-ke;Z-=we,P.horizontal+=we}return{top:`${Math.round(B)}px`,left:`${Math.round(Z)}px`,transformOrigin:Yd(P)}},[i,l,E,A,m]),[z,_]=b.useState(h),O=b.useCallback(()=>{const ie=k.current;if(!ie)return;const Se=C(ie);Se.top!==null&&ie.style.setProperty("top",Se.top),Se.left!==null&&(ie.style.left=Se.left),ie.style.transformOrigin=Se.transformOrigin,_(!0)},[C]);b.useEffect(()=>(I&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[i,I,O]);const M=()=>{O()},G=()=>{_(!1)};b.useEffect(()=>{h&&O()}),b.useImperativeHandle(n,()=>h?{updatePosition:()=>{O()}}:null,[h,O]),b.useEffect(()=>{if(!h)return;const ie=Nf(()=>{O()}),Se=Nn(mi(i));return Se.addEventListener("resize",ie),()=>{ie.clear(),Se.removeEventListener("resize",ie)}},[i,h,O]);let U=S;const Q={slots:{transition:w,...v},slotProps:{transition:$,paper:g,...y}},[ee,oe]=he("transition",{elementType:To,externalForwardedProps:Q,ownerState:T,getSlotProps:ie=>({...ie,onEntering:(Se,P)=>{ie.onEntering?.(Se,P),M()},onExited:Se=>{ie.onExited?.(Se),G()}}),additionalProps:{appear:!0,in:h}});S==="auto"&&!ee.muiSupportAuto&&(U=void 0);const X=d||(i?xt(mi(i)).body:void 0),[le,{slots:J,slotProps:q,...xe}]=he("root",{ref:r,elementType:rk,externalForwardedProps:{...Q,...j},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:Ff(typeof y.backdrop=="function"?y.backdrop(T):y.backdrop,{invisible:!0})},container:X,open:h},ownerState:T,className:Y(R.root,u)}),[Me,Pe]=he("paper",{ref:k,className:R.paper,elementType:gm,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:z?void 0:{opacity:0}},ownerState:T});return p.jsx(le,{...xe,...!Nr(le)&&{slots:J,slotProps:q,disableScrollLock:I},children:p.jsx(ee,{...oe,timeout:U,children:p.jsx(Me,{...Pe,children:c})})})});function ik(e){return pe("MuiMenu",e)}ue("MuiMenu",["root","paper","list"]);const ak={vertical:"top",horizontal:"right"},sk={vertical:"top",horizontal:"left"},lk=e=>{const{classes:t}=e;return fe({root:["root"],paper:["paper"],list:["list"]},ik,t)},ck=F(ok,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),uk=F(gm,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dk=F(ek,{name:"MuiMenu",slot:"List"})({outline:0}),pk=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiMenu"}),{autoFocus:n=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h,...g}={},variant:v="selectedMenu",slots:y={},slotProps:x={},...w}=o,S=sl(),$={...o,autoFocus:n,disableAutoFocusItem:s,MenuListProps:l,onEntering:h,PaperProps:d,transitionDuration:m,TransitionProps:g,variant:v},I=lk($),j=n&&!s&&u,k=b.useRef(null),T=(U,Q)=>{k.current&&k.current.adjustStyleForScrollbar(U,{direction:S?"rtl":"ltr"}),h&&h(U,Q)},R=U=>{U.key==="Tab"&&(U.preventDefault(),c&&c(U,"tabKeyDown"))};let E=-1;b.Children.map(i,(U,Q)=>{b.isValidElement(U)&&(U.props.disabled||(v==="selectedMenu"&&U.props.selected||E===-1)&&(E=Q))});const A={slots:y,slotProps:{list:l,transition:g,paper:d,...x}},C=rm({elementType:y.root,externalSlotProps:x.root,ownerState:$,className:[I.root,a]}),[z,_]=he("paper",{className:I.paper,elementType:uk,externalForwardedProps:A,shouldForwardComponentProp:!0,ownerState:$}),[O,M]=he("list",{className:Y(I.list,l.className),elementType:dk,shouldForwardComponentProp:!0,externalForwardedProps:A,getSlotProps:U=>({...U,onKeyDown:Q=>{R(Q),U.onKeyDown?.(Q)}}),ownerState:$}),G=typeof A.slotProps.transition=="function"?A.slotProps.transition($):A.slotProps.transition;return p.jsx(ck,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?ak:sk,slots:{root:y.root,paper:z,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:C,paper:_,backdrop:typeof x.backdrop=="function"?x.backdrop($):x.backdrop,transition:{...G,onEntering:(...U)=>{T(...U),G?.onEntering?.(...U)}}},open:u,ref:r,transitionDuration:m,ownerState:$,...w,classes:f,children:p.jsx(O,{actions:k,autoFocus:n&&(E===-1||s),autoFocusItem:j,variant:v,...M,children:i})})});function fk(e){return pe("MuiMenuItem",e)}const so=ue("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),mk=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},hk=e=>{const{disabled:t,dense:r,divider:o,disableGutters:n,selected:i,classes:a}=e,l=fe({root:["root",r&&"dense",t&&"disabled",!n&&"gutters",o&&"divider",i&&"selected"]},fk,a);return{...a,...l}},gk=F(Kn,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:mk})(ve(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${so.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${so.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${so.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${so.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${so.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ld.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ld.inset}`]:{marginLeft:52},[`& .${Dr.root}`]:{marginTop:0,marginBottom:0},[`& .${Dr.inset}`]:{paddingLeft:36},[`& .${Hd.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Hd.root} svg`]:{fontSize:"1.25rem"}}}]}))),Sn=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiMenuItem"}),{autoFocus:n=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...m}=o,h=b.useContext(zn),g=b.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),v=b.useRef(null);yn(()=>{n&&v.current&&v.current.focus()},[n]);const y={...o,dense:g.dense,divider:s,disableGutters:l},x=hk(o),w=lt(v,r);let S;return o.disabled||(S=d!==void 0?d:-1),p.jsx(zn.Provider,{value:g,children:p.jsx(gk,{ref:w,role:u,tabIndex:S,component:i,focusVisibleClassName:Y(x.focusVisible,c),className:Y(x.root,f),...m,ownerState:y,classes:x})})});function vk(e){return pe("MuiNativeSelect",e)}const _l=ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),bk=e=>{const{classes:t,variant:r,disabled:o,multiple:n,open:i,error:a}=e,s={select:["select",r,o&&"disabled",n&&"multiple",a&&"error"],icon:["icon",`icon${N(r)}`,i&&"iconOpen",o&&"disabled"]};return fe(s,vk,t)},vm=F("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${_l.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),yk=F(vm,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:gt,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${_l.multiple}`]:t.multiple}]}})({}),bm=F("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${_l.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),xk=F(bm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${N(r.variant)}`],r.open&&t.iconOpen]}})({}),Sk=b.forwardRef(function(t,r){const{className:o,disabled:n,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:n,variant:l,error:i},d=bk(u);return p.jsxs(b.Fragment,{children:[p.jsx(yk,{ownerState:u,className:Y(d.select,o),disabled:n,ref:s||r,...c}),t.multiple?null:p.jsx(xk,{as:a,ownerState:u,className:d.icon})]})});var Qd;const wk=F("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:gt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),$k=F("legend",{name:"MuiNotchedOutlined",shouldForwardProp:gt})(ve(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Ik(e){const{children:t,classes:r,className:o,label:n,notched:i,...a}=e,s=n!=null&&n!=="",l={...e,notched:i,withLabel:s};return p.jsx(wk,{"aria-hidden":!0,className:o,ownerState:l,...a,children:p.jsx($k,{ownerState:l,children:s?p.jsx("span",{children:n}):Qd||(Qd=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const kk=e=>{const{classes:t}=e,o=fe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},E0,t);return{...t,...o}},Ck=F(xa,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ba})(ve(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${fn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${fn.focused} .${fn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(st()).map(([r])=>({props:{color:r},style:{[`&.${fn.focused} .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${fn.error} .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${fn.disabled} .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:o})=>r.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),_k=F(Ik,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ve(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Ek=F(Sa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ya})(ve(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),El=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiOutlinedInput"}),{components:n={},fullWidth:i=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:f="text",...m}=o,h=kk(o),g=un(),v=Xn({props:o,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...o,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:g,fullWidth:i,hiddenLabel:v.hiddenLabel,multiline:l,size:v.size,type:f},x=u.root??n.Root??Ck,w=u.input??n.Input??Ek,[S,$]=he("notchedOutline",{elementType:_k,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:s!=null&&s!==""&&v.required?p.jsxs(b.Fragment,{children:[s," ","*"]}):s}});return p.jsx(xl,{slots:{root:x,input:w},slotProps:d,renderSuffix:I=>p.jsx(S,{...$,notched:typeof c<"u"?c:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:i,inputComponent:a,multiline:l,ref:r,type:f,...m,classes:{...h,notchedOutline:null}})});El.muiName="Input";const Pk=De(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),jk=De(p.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),Ok=F("span",{name:"MuiRadioButtonIcon",shouldForwardProp:gt})({position:"relative",display:"flex"}),Rk=F(Pk,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Dk=F(jk,{name:"MuiRadioButtonIcon"})(ve(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function ym(e){const{checked:t=!1,classes:r={},fontSize:o}=e,n={...e,checked:t};return p.jsxs(Ok,{className:r.root,ownerState:n,children:[p.jsx(Rk,{fontSize:o,className:r.background,ownerState:n}),p.jsx(Dk,{fontSize:o,className:r.dot,ownerState:n})]})}const xm=b.createContext(void 0);function Tk(){return b.useContext(xm)}function zk(e){return pe("MuiRadio",e)}const ep=ue("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Ak=e=>{const{classes:t,color:r,size:o}=e,n={root:["root",`color${N(r)}`,o!=="medium"&&`size${N(o)}`]};return{...t,...fe(n,zk,t)}},Mk=F(lm,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${N(r.size)}`],t[`color${N(r.color)}`]]}})(ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${ep.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${ep.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function Nk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Fk=p.jsx(ym,{checked:!0}),Lk=p.jsx(ym,{}),Uk=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiRadio"}),{checked:n,checkedIcon:i=Fk,color:a="primary",icon:s=Lk,name:l,onChange:c,size:u="medium",className:d,disabled:f,disableRipple:m=!1,slots:h={},slotProps:g={},inputProps:v,...y}=o,x=un();let w=f;x&&typeof w>"u"&&(w=x.disabled),w??=!1;const S={...o,disabled:w,disableRipple:m,color:a,size:u},$=Ak(S),I=Tk();let j=n;const k=Is(c,I&&I.onChange);let T=l;I&&(typeof j>"u"&&(j=Nk(I.value,o.value)),typeof T>"u"&&(T=I.name));const R=g.input??v,[E,A]=he("root",{ref:r,elementType:Mk,className:Y($.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...y},getSlotProps:C=>({...C,onChange:(z,..._)=>{C.onChange?.(z,..._),k(z,..._)}}),ownerState:S,additionalProps:{type:"radio",icon:b.cloneElement(s,{fontSize:s.props.fontSize??u}),checkedIcon:b.cloneElement(i,{fontSize:i.props.fontSize??u}),disabled:w,name:T,checked:j,slots:h,slotProps:{input:typeof R=="function"?R(S):R}}});return p.jsx(E,{...A,classes:$})});function Bk(e){return pe("MuiRadioGroup",e)}ue("MuiRadioGroup",["root","row","error"]);const Vk=e=>{const{classes:t,row:r,error:o}=e;return fe({root:["root",r&&"row",o&&"error"]},Bk,t)},Wk=b.forwardRef(function(t,r){const{actions:o,children:n,className:i,defaultValue:a,name:s,onChange:l,value:c,...u}=t,d=b.useRef(null),f=Vk(t),[m,h]=Oo({controlled:c,default:a,name:"RadioGroup"});b.useImperativeHandle(o,()=>({focus:()=>{let x=d.current.querySelector("input:not(:disabled):checked");x||(x=d.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const g=lt(r,d),v=$r(s),y=b.useMemo(()=>({name:v,onChange(x){h(x.target.value),l&&l(x,x.target.value)},value:m}),[v,l,h,m]);return p.jsx(xm.Provider,{value:y,children:p.jsx(h1,{role:"radiogroup",ref:g,className:Y(f.root,i),...u,children:n})})});function Sm(e){return pe("MuiSelect",e)}const lo=ue("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var tp;const Zk=F(vm,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${lo.select}`]:t.select},{[`&.${lo.select}`]:t[r.variant]},{[`&.${lo.error}`]:t.error},{[`&.${lo.multiple}`]:t.multiple}]}})({[`&.${lo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Hk=F(bm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${N(r.variant)}`],r.open&&t.iconOpen]}})({}),Gk=F("input",{shouldForwardProp:e=>Mf(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function np(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Kk(e){return e==null||typeof e=="string"&&!e.trim()}const qk=e=>{const{classes:t,variant:r,disabled:o,multiple:n,open:i,error:a}=e,s={select:["select",r,o&&"disabled",n&&"multiple",a&&"error"],icon:["icon",`icon${N(r)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return fe(s,Sm,t)},Jk=b.forwardRef(function(t,r){const{"aria-describedby":o,"aria-label":n,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:m=!1,IconComponent:h,inputRef:g,labelId:v,MenuProps:y={},multiple:x,name:w,onBlur:S,onChange:$,onClose:I,onFocus:j,onKeyDown:k,onMouseDown:T,onOpen:R,open:E,readOnly:A,renderValue:C,required:z,SelectDisplayProps:_={},tabIndex:O,type:M,value:G,variant:U="standard",...Q}=t,[ee,oe]=Oo({controlled:G,default:u,name:"Select"}),[X,le]=Oo({controlled:E,default:c,name:"Select"}),J=b.useRef(null),q=b.useRef(null),[xe,Me]=b.useState(null),{current:Pe}=b.useRef(E!=null),[ie,Se]=b.useState(),P=lt(r,g),V=b.useCallback(ne=>{q.current=ne,ne&&Me(ne)},[]),B=xe?.parentNode;b.useImperativeHandle(P,()=>({focus:()=>{q.current.focus()},node:J.current,value:ee}),[ee]),b.useEffect(()=>{c&&X&&xe&&!Pe&&(Se(a?null:B.clientWidth),q.current.focus())},[xe,a]),b.useEffect(()=>{i&&q.current.focus()},[i]),b.useEffect(()=>{if(!v)return;const ne=xt(q.current).getElementById(v);if(ne){const re=()=>{getSelection().isCollapsed&&q.current.focus()};return ne.addEventListener("click",re),()=>{ne.removeEventListener("click",re)}}},[v]);const Z=(ne,re)=>{ne?R&&R(re):I&&I(re),Pe||(Se(a?null:B.clientWidth),le(ne))},ae=ne=>{T?.(ne),ne.button===0&&(ne.preventDefault(),q.current.focus(),Z(!0,ne))},de=ne=>{Z(!1,ne)},se=b.Children.toArray(s),be=ne=>{const re=se.find($e=>$e.props.value===ne.target.value);re!==void 0&&(oe(re.props.value),$&&$(ne,re))},ke=ne=>re=>{let $e;if(re.currentTarget.hasAttribute("tabindex")){if(x){$e=Array.isArray(ee)?ee.slice():[];const yt=ee.indexOf(ne.props.value);yt===-1?$e.push(ne.props.value):$e.splice(yt,1)}else $e=ne.props.value;if(ne.props.onClick&&ne.props.onClick(re),ee!==$e&&(oe($e),$)){const yt=re.nativeEvent||re,jt=new yt.constructor(yt.type,yt);Object.defineProperty(jt,"target",{writable:!0,value:{value:$e,name:w}}),$(jt,ne)}x||Z(!1,re)}},we=ne=>{A||([" ","ArrowUp","ArrowDown","Enter"].includes(ne.key)&&(ne.preventDefault(),Z(!0,ne)),k?.(ne))},W=xe!==null&&X,Re=ne=>{!W&&S&&(Object.defineProperty(ne,"target",{writable:!0,value:{value:ee,name:w}}),S(ne))};delete Q["aria-invalid"];let me,We;const Fe=[];let Ye=!1;(Zi({value:ee})||f)&&(C?me=C(ee):Ye=!0);const vt=se.map(ne=>{if(!b.isValidElement(ne))return null;let re;if(x){if(!Array.isArray(ee))throw new Error(jf(2));re=ee.some($e=>np($e,ne.props.value)),re&&Ye&&Fe.push(ne.props.children)}else re=np(ee,ne.props.value),re&&Ye&&(We=ne.props.children);return b.cloneElement(ne,{"aria-selected":re?"true":"false",onClick:ke(ne),onKeyUp:$e=>{$e.key===" "&&$e.preventDefault(),ne.props.onKeyUp&&ne.props.onKeyUp($e)},role:"option",selected:re,value:void 0,"data-value":ne.props.value})});Ye&&(x?Fe.length===0?me=null:me=Fe.reduce((ne,re,$e)=>(ne.push(re),$e<Fe.length-1&&ne.push(", "),ne),[]):me=We);let ft=ie;!a&&Pe&&xe&&(ft=B.clientWidth);let bt;typeof O<"u"?bt=O:bt=d?null:0;const Te=_.id||(w?`mui-component-select-${w}`:void 0),Je={...t,variant:U,value:ee,open:W,error:m},it=qk(Je),ut={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(Je):y.slotProps?.paper},kt={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(Je):y.slotProps?.list},ze=$r();return p.jsxs(b.Fragment,{children:[p.jsx(Zk,{as:"div",ref:V,tabIndex:bt,role:"combobox","aria-controls":W?ze:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":W?"true":"false","aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[v,Te].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":z?"true":void 0,"aria-invalid":m?"true":void 0,onKeyDown:we,onMouseDown:d||A?null:ae,onBlur:Re,onFocus:j,..._,ownerState:Je,className:Y(_.className,it.select,l),id:Te,children:Kk(me)?tp||(tp=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):me}),p.jsx(Gk,{"aria-invalid":m,value:Array.isArray(ee)?ee.join(","):ee,name:w,ref:J,"aria-hidden":!0,onChange:be,tabIndex:-1,disabled:d,className:it.nativeInput,autoFocus:i,required:z,...Q,ownerState:Je}),p.jsx(Hk,{as:h,className:it.icon,ownerState:Je}),p.jsx(pk,{id:`menu-${w||""}`,anchorEl:B,open:W,onClose:de,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:ze,...kt},paper:{...ut,style:{minWidth:ft,...ut!=null?ut.style:null}}},children:vt})]})}),Xk=e=>{const{classes:t}=e,o=fe({root:["root"]},Sm,t);return{...t,...o}},Pl={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>gt(e)&&e!=="variant"},Yk=F(kl,Pl)(""),Qk=F(El,Pl)(""),eC=F(Il,Pl)(""),Qn=b.forwardRef(function(t,r){const o=ye({name:"MuiSelect",props:t}),{autoWidth:n=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=j0,id:d,input:f,inputProps:m,label:h,labelId:g,MenuProps:v,multiple:y=!1,native:x=!1,onClose:w,onOpen:S,open:$,renderValue:I,SelectDisplayProps:j,variant:k="outlined",...T}=o,R=x?Sk:Jk,E=un(),A=Xn({props:o,muiFormControl:E,states:["variant","error"]}),C=A.variant||k,z={...o,variant:C,classes:a},_=Xk(z),{root:O,...M}=_,G=f||{standard:p.jsx(Yk,{ownerState:z}),outlined:p.jsx(Qk,{label:h,ownerState:z}),filled:p.jsx(eC,{ownerState:z})}[C],U=lt(r,Cr(G));return p.jsx(b.Fragment,{children:b.cloneElement(G,{inputComponent:R,inputProps:{children:i,error:A.error,IconComponent:u,variant:C,type:void 0,multiple:y,...x?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:v,onClose:w,onOpen:S,open:$,renderValue:I,SelectDisplayProps:{id:d,...j}},...m,classes:m?ll(M,m.classes):M,...f?f.props.inputProps:{}},...(y&&x||c)&&C==="outlined"?{notched:!0}:{},ref:U,className:Y(G.props.className,s,_.root),...!f&&{variant:C},...T})})});Qn.muiName="Select";function tC(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:o,open:n,resumeHideDuration:i}=e,a=Zn();b.useEffect(()=>{if(!n)return;function y(x){x.defaultPrevented||x.key==="Escape"&&o?.(x,"escapeKeyDown")}return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[n,o]);const s=Zt((y,x)=>{o?.(y,x)}),l=Zt(y=>{!o||y==null||a.start(y,()=>{s(null,"timeout")})});b.useEffect(()=>(n&&l(t),a.clear),[n,t,l,a]);const c=y=>{o?.(y,"clickaway")},u=a.clear,d=b.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=y=>x=>{const w=y.onBlur;w?.(x),d()},m=y=>x=>{const w=y.onFocus;w?.(x),u()},h=y=>x=>{const w=y.onMouseEnter;w?.(x),u()},g=y=>x=>{const w=y.onMouseLeave;w?.(x),d()};return b.useEffect(()=>{if(!r&&n)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[r,n,d,u]),{getRootProps:(y={})=>{const x={...Ui(e),...Ui(y)};return{role:"presentation",...y,...x,onBlur:f(x),onFocus:m(x),onMouseEnter:h(x),onMouseLeave:g(x)}},onClickAway:c}}function nC(e){return pe("MuiSnackbarContent",e)}ue("MuiSnackbarContent",["root","message","action"]);const rC=e=>{const{classes:t}=e;return fe({root:["root"],action:["action"],message:["message"]},nC,t)},oC=F(kr,{name:"MuiSnackbarContent",slot:"Root"})(ve(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(od(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:od(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),iC=F("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),aC=F("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),sC=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiSnackbarContent"}),{action:n,className:i,message:a,role:s="alert",...l}=o,c=o,u=rC(c);return p.jsxs(oC,{role:s,elevation:6,className:Y(u.root,i),ownerState:c,ref:r,...l,children:[p.jsx(iC,{className:u.message,ownerState:c,children:a}),n?p.jsx(aC,{className:u.action,ownerState:c,children:n}):null]})});function lC(e){return pe("MuiSnackbar",e)}ue("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const cC=e=>{const{classes:t,anchorOrigin:r}=e,o={root:["root",`anchorOrigin${N(r.vertical)}${N(r.horizontal)}`]};return fe(o,lC,t)},uC=F("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${N(r.anchorOrigin.vertical)}${N(r.anchorOrigin.horizontal)}`]]}})(ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),dC=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiSnackbar"}),n=Ir(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:m,disableWindowBlurListener:h=!1,message:g,onBlur:v,onClose:y,onFocus:x,onMouseEnter:w,onMouseLeave:S,open:$,resumeHideDuration:I,slots:j={},slotProps:k={},TransitionComponent:T,transitionDuration:R=i,TransitionProps:{onEnter:E,onExited:A,...C}={},...z}=o,_={...o,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:h,TransitionComponent:T,transitionDuration:R},O=cC(_),{getRootProps:M,onClickAway:G}=tC(_),[U,Q]=b.useState(!0),ee=V=>{Q(!0),A&&A(V)},oe=(V,B)=>{Q(!1),E&&E(V,B)},X={slots:{transition:T,...j},slotProps:{content:m,clickAwayListener:f,transition:C,...k}},[le,J]=he("root",{ref:r,className:[O.root,d],elementType:uC,getSlotProps:M,externalForwardedProps:{...X,...z},ownerState:_}),[q,{ownerState:xe,...Me}]=he("clickAwayListener",{elementType:pI,externalForwardedProps:X,getSlotProps:V=>({onClickAway:(...B)=>{const Z=B[0];V.onClickAway?.(...B),!Z?.defaultMuiPrevented&&G(...B)}}),ownerState:_}),[Pe,ie]=he("content",{elementType:sC,shouldForwardComponentProp:!0,externalForwardedProps:X,additionalProps:{message:g,action:a},ownerState:_}),[Se,P]=he("transition",{elementType:To,externalForwardedProps:X,getSlotProps:V=>({onEnter:(...B)=>{V.onEnter?.(...B),oe(...B)},onExited:(...B)=>{V.onExited?.(...B),ee(...B)}}),additionalProps:{appear:!0,in:$,timeout:R,direction:s==="top"?"down":"up"},ownerState:_});return!$&&U?null:p.jsx(q,{...Me,...j.clickAwayListener&&{ownerState:xe},children:p.jsx(le,{...J,children:p.jsx(Se,{...P,children:u||p.jsx(Pe,{...ie})})})})});function pC(e){return pe("MuiTooltip",e)}const ct=ue("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function fC(e){return Math.round(e*1e5)/1e5}const mC=e=>{const{classes:t,disableInteractive:r,arrow:o,touch:n,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${N(i.split("-")[0])}`],arrow:["arrow"]};return fe(a,pC,t)},hC=F(im,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${ct.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ct.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ct.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ct.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${ct.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${ct.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${ct.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${ct.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),gC=F("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${N(r.placement.split("-")[0])}`]]}})(ve(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${ct.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${ct.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${ct.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${fC(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${ct.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${ct.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),vC=F("span",{name:"MuiTooltip",slot:"Arrow"})(ve(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hi=!1;const rp=new ma;let co={x:0,y:0};function gi(e,t){return(r,...o)=>{t&&t(r,...o),e(r,...o)}}const An=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiTooltip"}),{arrow:n=!1,children:i,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:m=!1,enterDelay:h=100,enterNextDelay:g=0,enterTouchDelay:v=700,followCursor:y=!1,id:x,leaveDelay:w=0,leaveTouchDelay:S=1500,onClose:$,onOpen:I,open:j,placement:k="bottom",PopperComponent:T,PopperProps:R={},slotProps:E={},slots:A={},title:C,TransitionComponent:z,TransitionProps:_,...O}=o,M=b.isValidElement(i)?i:p.jsx("span",{children:i}),G=Ir(),U=sl(),[Q,ee]=b.useState(),[oe,X]=b.useState(null),le=b.useRef(!1),J=f||y,q=Zn(),xe=Zn(),Me=Zn(),Pe=Zn(),[ie,Se]=Oo({controlled:j,default:!1,name:"Tooltip",state:"open"});let P=ie;const V=$r(x),B=b.useRef(),Z=Zt(()=>{B.current!==void 0&&(document.body.style.WebkitUserSelect=B.current,B.current=void 0),Pe.clear()});b.useEffect(()=>Z,[Z]);const ae=je=>{rp.clear(),hi=!0,Se(!0),I&&!P&&I(je)},de=Zt(je=>{rp.start(800+w,()=>{hi=!1}),Se(!1),$&&P&&$(je),q.start(G.transitions.duration.shortest,()=>{le.current=!1})}),se=je=>{le.current&&je.type!=="touchstart"||(Q&&Q.removeAttribute("title"),xe.clear(),Me.clear(),h||hi&&g?xe.start(hi?g:h,()=>{ae(je)}):ae(je))},be=je=>{xe.clear(),Me.start(w,()=>{de(je)})},[,ke]=b.useState(!1),we=je=>{Bi(je.target)||(ke(!1),be(je))},W=je=>{Q||ee(je.currentTarget),Bi(je.target)&&(ke(!0),se(je))},Re=je=>{le.current=!0;const Ot=M.props;Ot.onTouchStart&&Ot.onTouchStart(je)},me=je=>{Re(je),Me.clear(),q.clear(),Z(),B.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pe.start(v,()=>{document.body.style.WebkitUserSelect=B.current,se(je)})},We=je=>{M.props.onTouchEnd&&M.props.onTouchEnd(je),Z(),Me.start(S,()=>{de(je)})};b.useEffect(()=>{if(!P)return;function je(Ot){Ot.key==="Escape"&&de(Ot)}return document.addEventListener("keydown",je),()=>{document.removeEventListener("keydown",je)}},[de,P]);const Fe=lt(Cr(M),ee,r);!C&&C!==0&&(P=!1);const Ye=b.useRef(),vt=je=>{const Ot=M.props;Ot.onMouseMove&&Ot.onMouseMove(je),co={x:je.clientX,y:je.clientY},Ye.current&&Ye.current.update()},ft={},bt=typeof C=="string";c?(ft.title=!P&&bt&&!d?C:null,ft["aria-describedby"]=P?V:null):(ft["aria-label"]=bt?C:null,ft["aria-labelledby"]=P&&!bt?V:null);const Te={...ft,...O,...M.props,className:Y(O.className,M.props.className),onTouchStart:Re,ref:Fe,...y?{onMouseMove:vt}:{}},Je={};m||(Te.onTouchStart=me,Te.onTouchEnd=We),d||(Te.onMouseOver=gi(se,Te.onMouseOver),Te.onMouseLeave=gi(be,Te.onMouseLeave),J||(Je.onMouseOver=se,Je.onMouseLeave=be)),u||(Te.onFocus=gi(W,Te.onFocus),Te.onBlur=gi(we,Te.onBlur),J||(Je.onFocus=W,Je.onBlur=we));const it={...o,isRtl:U,arrow:n,disableInteractive:J,placement:k,PopperComponentProp:T,touch:le.current},ut=typeof E.popper=="function"?E.popper(it):E.popper,kt=b.useMemo(()=>{let je=[{name:"arrow",enabled:!!oe,options:{element:oe,padding:4}}];return R.popperOptions?.modifiers&&(je=je.concat(R.popperOptions.modifiers)),ut?.popperOptions?.modifiers&&(je=je.concat(ut.popperOptions.modifiers)),{...R.popperOptions,...ut?.popperOptions,modifiers:je}},[oe,R.popperOptions,ut?.popperOptions]),ze=mC(it),ne=typeof E.transition=="function"?E.transition(it):E.transition,re={slots:{popper:s.Popper,transition:s.Transition??z,tooltip:s.Tooltip,arrow:s.Arrow,...A},slotProps:{arrow:E.arrow??l.arrow,popper:{...R,...ut??l.popper},tooltip:E.tooltip??l.tooltip,transition:{..._,...ne??l.transition}}},[$e,yt]=he("popper",{elementType:hC,externalForwardedProps:re,ownerState:it,className:Y(ze.popper,R?.className)}),[jt,Xe]=he("transition",{elementType:To,externalForwardedProps:re,ownerState:it}),[Ct,Qt]=he("tooltip",{elementType:gC,className:ze.tooltip,externalForwardedProps:re,ownerState:it}),[en,Xu]=he("arrow",{elementType:vC,className:ze.arrow,externalForwardedProps:re,ownerState:it,ref:X});return p.jsxs(b.Fragment,{children:[b.cloneElement(M,Te),p.jsx($e,{as:T??im,placement:k,anchorEl:y?{getBoundingClientRect:()=>({top:co.y,left:co.x,right:co.x,bottom:co.y,width:0,height:0})}:Q,popperRef:Ye,open:Q?P:!1,id:V,transition:!0,...Je,...yt,popperOptions:kt,children:({TransitionProps:je})=>p.jsx(jt,{timeout:G.transitions.duration.shorter,...je,...Xe,children:p.jsxs(Ct,{...Qt,children:[C,n?p.jsx(en,{...Xu}):null]})})})]})});function bC(e){return pe("MuiTextField",e)}ue("MuiTextField",["root"]);const yC={standard:kl,filled:Il,outlined:El},xC=e=>{const{classes:t}=e;return fe({root:["root"]},bC,t)},SC=F(Yn,{name:"MuiTextField",slot:"Root"})({}),Ke=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiTextField"}),{autoComplete:n,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:h,id:g,InputLabelProps:v,inputProps:y,InputProps:x,inputRef:w,label:S,maxRows:$,minRows:I,multiline:j=!1,name:k,onBlur:T,onChange:R,onFocus:E,placeholder:A,required:C=!1,rows:z,select:_=!1,SelectProps:O,slots:M={},slotProps:G={},type:U,value:Q,variant:ee="outlined",...oe}=o,X={...o,autoFocus:i,color:l,disabled:u,error:d,fullWidth:m,multiline:j,required:C,select:_,variant:ee},le=xC(X),J=$r(g),q=h&&J?`${J}-helper-text`:void 0,xe=S&&J?`${J}-label`:void 0,Me=yC[ee],Pe={slots:M,slotProps:{input:x,inputLabel:v,htmlInput:y,formHelperText:f,select:O,...G}},ie={},Se=Pe.slotProps.inputLabel;ee==="outlined"&&(Se&&typeof Se.shrink<"u"&&(ie.notched=Se.shrink),ie.label=S),_&&((!O||!O.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const[P,V]=he("root",{elementType:SC,shouldForwardComponentProp:!0,externalForwardedProps:{...Pe,...oe},ownerState:X,className:Y(le.root,s),ref:r,additionalProps:{disabled:u,error:d,fullWidth:m,required:C,color:l,variant:ee}}),[B,Z]=he("input",{elementType:Me,externalForwardedProps:Pe,additionalProps:ie,ownerState:X}),[ae,de]=he("inputLabel",{elementType:_r,externalForwardedProps:Pe,ownerState:X}),[se,be]=he("htmlInput",{elementType:"input",externalForwardedProps:Pe,ownerState:X}),[ke,we]=he("formHelperText",{elementType:Qr,externalForwardedProps:Pe,ownerState:X}),[W,Re]=he("select",{elementType:Qn,externalForwardedProps:Pe,ownerState:X}),me=p.jsx(B,{"aria-describedby":q,autoComplete:n,autoFocus:i,defaultValue:c,fullWidth:m,multiline:j,name:k,rows:z,maxRows:$,minRows:I,type:U,value:Q,id:J,inputRef:w,onBlur:T,onChange:R,onFocus:E,placeholder:A,inputProps:be,slots:{input:M.htmlInput?se:void 0},...Z});return p.jsxs(P,{...V,children:[S!=null&&S!==""&&p.jsx(ae,{htmlFor:J,id:xe,...de,children:S}),_?p.jsx(W,{"aria-describedby":q,id:J,labelId:xe,value:Q,input:me,...Re,children:a}):me,h&&p.jsx(ke,{id:q,...we,children:h})]})});function wC(e){return pe("MuiToggleButton",e)}const ur=ue("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),wm=b.createContext({}),$m=b.createContext(void 0);function $C(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const IC=e=>{const{classes:t,fullWidth:r,selected:o,disabled:n,size:i,color:a}=e,s={root:["root",o&&"selected",n&&"disabled",r&&"fullWidth",`size${N(i)}`,a]};return fe(s,wC,t)},kC=F(Kn,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`size${N(r.size)}`]]}})(ve(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${ur.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${ur.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(st()).map(([t])=>({props:{color:t},style:{[`&.${ur.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),op=b.forwardRef(function(t,r){const{value:o,...n}=b.useContext(wm),i=b.useContext($m),a=Of({...n,selected:$C(t.value,o)},t),s=ye({props:a,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:d=!1,disableFocusRipple:f=!1,fullWidth:m=!1,onChange:h,onClick:g,selected:v,size:y="medium",value:x,...w}=s,S={...s,color:u,disabled:d,disableFocusRipple:f,fullWidth:m,size:y},$=IC(S),I=k=>{g&&(g(k,x),k.defaultPrevented)||h&&h(k,x)},j=i||"";return p.jsx(kC,{className:Y(n.className,$.root,c,j),disabled:d,focusRipple:!f,ref:r,onClick:I,onChange:h,value:x,ownerState:S,"aria-pressed":v,...w,children:l})});function CC(e){return pe("MuiToggleButtonGroup",e)}const ot=ue("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),_C=e=>{const{classes:t,orientation:r,fullWidth:o,disabled:n}=e,i={root:["root",r,o&&"fullWidth"],grouped:["grouped",`grouped${N(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return fe(i,CC,t)},EC=F("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ot.grouped}`]:t.grouped},{[`& .${ot.grouped}`]:t[`grouped${N(r.orientation)}`]},{[`& .${ot.firstButton}`]:t.firstButton},{[`& .${ot.lastButton}`]:t.lastButton},{[`& .${ot.middleButton}`]:t.middleButton},t.root,r.orientation==="vertical"&&t.vertical,r.fullWidth&&t.fullWidth]}})(ve(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${ot.grouped}`]:{[`&.${ot.selected} + .${ot.grouped}.${ot.selected}`]:{borderTop:0,marginTop:0}},[`& .${ot.firstButton},& .${ot.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${ot.lastButton},& .${ot.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${ot.lastButton}.${ur.disabled},& .${ot.middleButton}.${ur.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${ot.grouped}`]:{[`&.${ot.selected} + .${ot.grouped}.${ot.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${ot.firstButton},& .${ot.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${ot.lastButton},& .${ot.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${ot.lastButton}.${ur.disabled},& .${ot.middleButton}.${ur.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),PC=b.forwardRef(function(t,r){const o=ye({props:t,name:"MuiToggleButtonGroup"}),{children:n,className:i,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:f="medium",value:m,...h}=o,g={...o,disabled:s,fullWidth:c,orientation:d,size:f},v=_C(g),y=b.useCallback((j,k)=>{if(!u)return;const T=m&&m.indexOf(k);let R;m&&T>=0?(R=m.slice(),R.splice(T,1)):R=m?m.concat(k):[k],u(j,R)},[u,m]),x=b.useCallback((j,k)=>{u&&u(j,m===k?null:k)},[u,m]),w=b.useMemo(()=>({className:v.grouped,onChange:l?x:y,value:m,size:f,fullWidth:c,color:a,disabled:s}),[v.grouped,l,x,y,m,f,c,a,s]),S=X0(n),$=S.length,I=j=>{const k=j===0,T=j===$-1;return k&&T?"":k?v.firstButton:T?v.lastButton:v.middleButton};return p.jsx(EC,{role:"group",className:Y(v.root,i),ref:r,ownerState:g,...h,children:p.jsx(wm.Provider,{value:w,children:S.map((j,k)=>p.jsx($m.Provider,{value:I(k),children:j},k))})})}),Im=De(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),jC=De(p.jsx("path",{d:"M15 2c-2.71 0-5.05 1.54-6.22 3.78-1.28.67-2.34 1.72-3 3C3.54 9.95 2 12.29 2 15c0 3.87 3.13 7 7 7 2.71 0 5.05-1.54 6.22-3.78 1.28-.67 2.34-1.72 3-3C20.46 14.05 22 11.71 22 9c0-3.87-3.13-7-7-7M9 20c-2.76 0-5-2.24-5-5 0-1.12.37-2.16 1-3 0 3.87 3.13 7 7 7-.84.63-1.88 1-3 1m3-3c-2.76 0-5-2.24-5-5 0-1.12.37-2.16 1-3 0 3.86 3.13 6.99 7 7-.84.63-1.88 1-3 1m4.7-3.3c-.53.19-1.1.3-1.7.3-2.76 0-5-2.24-5-5 0-.6.11-1.17.3-1.7.53-.19 1.1-.3 1.7-.3 2.76 0 5 2.24 5 5 0 .6-.11 1.17-.3 1.7M19 12c0-3.86-3.13-6.99-7-7 .84-.63 1.87-1 3-1 2.76 0 5 2.24 5 5 0 1.12-.37 2.16-1 3"})),OC=De([p.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),p.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")]),RC=De(p.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),DC=De(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),km=De(p.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),TC=De(p.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"})),dn=De(p.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),wn=De(p.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),zC=De(p.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),AC=De(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),MC=De(p.jsx("path",{fillRule:"evenodd",d:"M20 3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M10 17H5v-2h5zm0-4H5v-2h5zm0-4H5V7h5zm4.82 6L12 12.16l1.41-1.41 1.41 1.42L17.99 9l1.42 1.42z"})),$n=De(p.jsx("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"})),NC=De(p.jsx("circle",{cx:"12",cy:"12",r:"8"})),FC=De(p.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),LC=De(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),UC=De(p.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"})),BC=De(p.jsx("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-1 2H5v-2h2zm0-3H5V8h2zm9 7H8v-2h8zm0-4h-2v-2h2zm0-3h-2V8h2zm3 3h-2v-2h2zm0-3h-2V8h2z"})),VC=De(p.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27z"})),WC=De(p.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"})),ZC=De(p.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"})),pn=De(p.jsx("path",{d:"M8 5v14l11-7z"})),HC=De(p.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),GC=De(p.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),KC=De(p.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),qC=De(p.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"})),Cm=De(p.jsx("path",{d:"M6 6h12v12H6z"})),_m=De(p.jsx("path",{d:"M1 3.5h2.02C1.13 5.82 0 8.78 0 12s1.13 6.18 3.02 8.5H1V22h5v-5H4.5v2.91c-1.86-2.11-3-4.88-3-7.91s1.14-5.79 3-7.91V7H6V2H1zm12.85 8.12-2.68-5.37c-.37-.74-1.27-1.04-2.01-.67-.75.38-1.05 1.28-.68 2.02l4.81 9.6-3.24.8c-.33.09-.59.33-.7.66L9 19.78l6.19 2.25c.5.17 1.28.02 1.75-.22l5.51-2.75c.89-.45 1.32-1.48 1-2.42l-1.43-4.27c-.27-.82-1.04-1.37-1.9-1.37h-4.56c-.31 0-.62.07-.89.21z"})),JC=De(p.jsx("path",{d:"M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74m9.84 4.63-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74c-3.6-.76-3.54-.75-3.67-.75-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38"})),XC=De(p.jsx("path",{d:"M9 9V3H7v2.59L3.91 2.5 2.5 3.91 5.59 7H3v2zm12 0V7h-2.59l3.09-3.09-1.41-1.41L17 5.59V3h-2v6zM3 15v2h2.59L2.5 20.09l1.41 1.41L7 18.41V21h2v-6zm12 0v6h2v-2.59l3.09 3.09 1.41-1.41L18.41 17H21v-2z"}));function $t(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var YC=typeof Symbol=="function"&&Symbol.observable||"@@observable",ip=YC,ap=()=>Math.random().toString(36).substring(7).split("").join("."),QC={INIT:`@@redux/INIT${ap()}`,REPLACE:`@@redux/REPLACE${ap()}`},sp=QC;function e_(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Em(e,t,r){if(typeof e!="function")throw new Error($t(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error($t(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error($t(1));return r(Em)(e,t)}let o=e,n=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((v,y)=>{a.set(y,v)}))}function u(){if(l)throw new Error($t(3));return n}function d(v){if(typeof v!="function")throw new Error($t(4));if(l)throw new Error($t(5));let y=!0;c();const x=s++;return a.set(x,v),function(){if(y){if(l)throw new Error($t(6));y=!1,c(),a.delete(x),i=null}}}function f(v){if(!e_(v))throw new Error($t(7));if(typeof v.type>"u")throw new Error($t(8));if(typeof v.type!="string")throw new Error($t(17));if(l)throw new Error($t(9));try{l=!0,n=o(n,v)}finally{l=!1}return(i=a).forEach(x=>{x()}),v}function m(v){if(typeof v!="function")throw new Error($t(10));o=v,f({type:sp.REPLACE})}function h(){const v=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error($t(11));function x(){const S=y;S.next&&S.next(u())}return x(),{unsubscribe:v(x)}},[ip](){return this}}}return f({type:sp.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:m,[ip]:h}}function lp(e,t){return function(...r){return t(e.apply(this,r))}}function cp(e,t){if(typeof e=="function")return lp(e,t);if(typeof e!="object"||e===null)throw new Error($t(16));const r={};for(const o in e){const n=e[o];typeof n=="function"&&(r[o]=lp(n,t))}return r}function Pm(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...o)=>t(r(...o)))}function t_(...e){return t=>(r,o)=>{const n=t(r,o);let i=()=>{throw new Error($t(15))};const a={getState:n.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=Pm(...s)(n.dispatch),{...n,dispatch:i}}}var os={exports:{}},is={};var up;function n_(){if(up)return is;up=1;var e=iS();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,o=e.useSyncExternalStore,n=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return is.useSyncExternalStoreWithSelector=function(l,c,u,d,f){var m=n(null);if(m.current===null){var h={hasValue:!1,value:null};m.current=h}else h=m.current;m=a(function(){function v($){if(!y){if(y=!0,x=$,$=d($),f!==void 0&&h.hasValue){var I=h.value;if(f(I,$))return w=I}return w=$}if(I=w,r(x,$))return I;var j=d($);return f!==void 0&&f(I,j)?(x=$,I):(x=$,w=j)}var y=!1,x,w,S=u===void 0?null:u;return[function(){return v(c())},S===null?void 0:function(){return v(S())}]},[c,u,d,f]);var g=o(l,m[0],m[1]);return i(function(){h.hasValue=!0,h.value=g},[g]),s(g),g},is}var dp;function r_(){return dp||(dp=1,os.exports=n_()),os.exports}r_();var o_=b.version.startsWith("19"),i_=Symbol.for(o_?"react.transitional.element":"react.element"),a_=Symbol.for("react.portal"),s_=Symbol.for("react.fragment"),l_=Symbol.for("react.strict_mode"),c_=Symbol.for("react.profiler"),u_=Symbol.for("react.consumer"),d_=Symbol.for("react.context"),jm=Symbol.for("react.forward_ref"),p_=Symbol.for("react.suspense"),f_=Symbol.for("react.suspense_list"),jl=Symbol.for("react.memo"),m_=Symbol.for("react.lazy"),h_=jm,g_=jl;function v_(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case i_:switch(e=e.type,e){case s_:case c_:case l_:case p_:case f_:return e;default:switch(e=e&&e.$$typeof,e){case d_:case jm:case m_:case jl:return e;case u_:return e;default:return t}}case a_:return t}}}function b_(e){return v_(e)===jl}function y_(e,t,r,o,{areStatesEqual:n,areOwnPropsEqual:i,areStatePropsEqual:a}){let s=!1,l,c,u,d,f;function m(x,w){return l=x,c=w,u=e(l,c),d=t(o,c),f=r(u,d,c),s=!0,f}function h(){return u=e(l,c),t.dependsOnOwnProps&&(d=t(o,c)),f=r(u,d,c),f}function g(){return e.dependsOnOwnProps&&(u=e(l,c)),t.dependsOnOwnProps&&(d=t(o,c)),f=r(u,d,c),f}function v(){const x=e(l,c),w=!a(x,u);return u=x,w&&(f=r(u,d,c)),f}function y(x,w){const S=!i(w,c),$=!n(x,l,w,c);return l=x,c=w,S&&$?h():S?g():$?v():f}return function(w,S){return s?y(w,S):m(w,S)}}function x_(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:o,...n}){const i=t(e,n),a=r(e,n),s=o(e,n);return y_(i,a,s,e,n)}function S_(e,t){const r={};for(const o in e){const n=e[o];typeof n=="function"&&(r[o]=(...i)=>t(n(...i)))}return r}function Ms(e){return function(r){const o=e(r);function n(){return o}return n.dependsOnOwnProps=!1,n}}function pp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Om(e,t){return function(o,{displayName:n}){const i=function(s,l){return i.dependsOnOwnProps?i.mapToProps(s,l):i.mapToProps(s,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(s,l){i.mapToProps=e,i.dependsOnOwnProps=pp(e);let c=i(s,l);return typeof c=="function"&&(i.mapToProps=c,i.dependsOnOwnProps=pp(c),c=i(s,l)),c},i}}function Ol(e,t){return(r,o)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${o.wrappedComponentName}.`)}}function w_(e){return e&&typeof e=="object"?Ms(t=>S_(e,t)):e?typeof e=="function"?Om(e):Ol(e,"mapDispatchToProps"):Ms(t=>({dispatch:t}))}function $_(e){return e?typeof e=="function"?Om(e):Ol(e,"mapStateToProps"):Ms(()=>({}))}function I_(e,t,r){return{...r,...e,...t}}function k_(e){return function(r,{displayName:o,areMergedPropsEqual:n}){let i=!1,a;return function(l,c,u){const d=e(l,c,u);return i?n(d,a)||(a=d):(i=!0,a=d),a}}}function C_(e){return e?typeof e=="function"?k_(e):Ol(e,"mergeProps"):()=>I_}function __(e){e()}function E_(){let e=null,t=null;return{clear(){e=null,t=null},notify(){__(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let o=e;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0;const n=t={callback:r,next:null,prev:t};return n.prev?n.prev.next=n:e=n,function(){!o||e===null||(o=!1,n.next?n.next.prev=n.prev:t=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var fp={notify(){},get:()=>[]};function Rm(e,t){let r,o=fp,n=0,i=!1;function a(g){u();const v=o.subscribe(g);let y=!1;return()=>{y||(y=!0,v(),d())}}function s(){o.notify()}function l(){h.onStateChange&&h.onStateChange()}function c(){return i}function u(){n++,r||(r=t?t.addNestedSub(l):e.subscribe(l),o=E_())}function d(){n--,r&&n===0&&(r(),r=void 0,o.clear(),o=fp)}function f(){i||(i=!0,u())}function m(){i&&(i=!1,d())}const h={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:m,getListeners:()=>o};return h}var P_=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j_=P_(),O_=()=>typeof navigator<"u"&&navigator.product==="ReactNative",R_=O_(),D_=()=>j_||R_?b.useLayoutEffect:b.useEffect,Hi=D_();function mp(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function as(e,t){if(mp(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!mp(e[r[n]],t[r[n]]))return!1;return!0}var T_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},A_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Dm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},M_={[h_]:A_,[g_]:Dm};function hp(e){return b_(e)?Dm:M_[e.$$typeof]||T_}var N_=Object.defineProperty,F_=Object.getOwnPropertyNames,gp=Object.getOwnPropertySymbols,L_=Object.getOwnPropertyDescriptor,U_=Object.getPrototypeOf,vp=Object.prototype;function Ns(e,t){if(typeof t!="string"){if(vp){const i=U_(t);i&&i!==vp&&Ns(e,i)}let r=F_(t);gp&&(r=r.concat(gp(t)));const o=hp(e),n=hp(t);for(let i=0;i<r.length;++i){const a=r[i];if(!z_[a]&&!(n&&n[a])&&!(o&&o[a])){const s=L_(t,a);try{N_(e,a,s)}catch{}}}}return e}var B_=Symbol.for("react-redux-context"),V_=typeof globalThis<"u"?globalThis:{};function W_(){if(!b.createContext)return{};const e=V_[B_]??=new Map;let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Tm=W_(),Z_=[null,null];function H_(e,t,r){Hi(()=>e(...t),r)}function G_(e,t,r,o,n,i){e.current=o,r.current=!1,n.current&&(n.current=null,i())}function K_(e,t,r,o,n,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const m=()=>{if(d||!s.current)return;const g=t.getState();let v,y;try{v=o(g,n.current)}catch(x){y=x,f=x}y||(f=null),v===i.current?a.current||c():(i.current=v,l.current=v,a.current=!0,u())};return r.onStateChange=m,r.trySubscribe(),m(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,f)throw f}}function q_(e,t){return e===t}function J_(e,t,r,{pure:o,areStatesEqual:n=q_,areOwnPropsEqual:i=as,areStatePropsEqual:a=as,areMergedPropsEqual:s=as,forwardRef:l=!1,context:c=Tm}={}){const u=c,d=$_(e),f=w_(t),m=C_(r),h=!!e;return v=>{const y=v.displayName||v.name||"Component",x=`Connect(${y})`,w={shouldHandleStateChanges:h,displayName:x,wrappedComponentName:y,WrappedComponent:v,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:m,areStatesEqual:n,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function S(j){const[k,T,R]=b.useMemo(()=>{const{reactReduxForwardedRef:P,...V}=j;return[j.context,P,V]},[j]),E=b.useMemo(()=>{let P=u;return k?.Consumer,P},[k,u]),A=b.useContext(E),C=!!j.store&&!!j.store.getState&&!!j.store.dispatch,z=!!A&&!!A.store,_=C?j.store:A.store,O=z?A.getServerState:_.getState,M=b.useMemo(()=>x_(_.dispatch,w),[_]),[G,U]=b.useMemo(()=>{if(!h)return Z_;const P=Rm(_,C?void 0:A.subscription),V=P.notifyNestedSubs.bind(P);return[P,V]},[_,C,A]),Q=b.useMemo(()=>C?A:{...A,subscription:G},[C,A,G]),ee=b.useRef(void 0),oe=b.useRef(R),X=b.useRef(void 0),le=b.useRef(!1),J=b.useRef(!1),q=b.useRef(void 0);Hi(()=>(J.current=!0,()=>{J.current=!1}),[]);const xe=b.useMemo(()=>()=>X.current&&R===oe.current?X.current:M(_.getState(),R),[_,R]),Me=b.useMemo(()=>V=>G?K_(h,_,G,M,oe,ee,le,J,X,U,V):()=>{},[G]);H_(G_,[oe,ee,le,R,X,U]);let Pe;try{Pe=b.useSyncExternalStore(Me,xe,O?()=>M(O(),R):xe)}catch(P){throw q.current&&(P.message+=`
|
|
104
|
+
The error may be correlated with this previous error:
|
|
105
|
+
${q.current.stack}
|
|
106
|
+
|
|
107
|
+
`),P}Hi(()=>{q.current=void 0,X.current=void 0,ee.current=Pe});const ie=b.useMemo(()=>b.createElement(v,{...Pe,ref:T}),[T,v,Pe]);return b.useMemo(()=>h?b.createElement(E.Provider,{value:Q},ie):ie,[E,ie,Q])}const I=b.memo(S);if(I.WrappedComponent=v,I.displayName=S.displayName=x,l){const k=b.forwardRef(function(R,E){return b.createElement(I,{...R,reactReduxForwardedRef:E})});return k.displayName=x,k.WrappedComponent=v,Ns(k,v)}return Ns(I,v)}}var zm=J_;function X_(e){const{children:t,context:r,serverState:o,store:n}=e,i=b.useMemo(()=>{const l=Rm(n);return{store:n,subscription:l,getServerState:o?()=>o:void 0}},[n,o]),a=b.useMemo(()=>n.getState(),[n]);Hi(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==n.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]);const s=r||Tm;return b.createElement(s.Provider,{value:i},t)}var Y_=X_,rn=function(t){var r=t.top,o=t.right,n=t.bottom,i=t.left,a=o-i,s=n-r,l={top:r,right:o,bottom:n,left:i,width:a,height:s,x:i,y:r,center:{x:(o+i)/2,y:(n+r)/2}};return l},Rl=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},bp=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},Q_=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},ss={top:0,right:0,bottom:0,left:0},Dl=function(t){var r=t.borderBox,o=t.margin,n=o===void 0?ss:o,i=t.border,a=i===void 0?ss:i,s=t.padding,l=s===void 0?ss:s,c=rn(Rl(r,n)),u=rn(bp(r,a)),d=rn(bp(u,l));return{marginBox:c,borderBox:rn(r),paddingBox:u,contentBox:d,margin:n,border:a,padding:l}},Lt=function(t){var r=t.slice(0,-2),o=t.slice(-2);if(o!=="px")return 0;var n=Number(r);return isNaN(n)&&aS(!1),n},eE=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Gi=function(t,r){var o=t.borderBox,n=t.border,i=t.margin,a=t.padding,s=Q_(o,r);return Dl({borderBox:s,border:n,margin:i,padding:a})},Ki=function(t,r){return r===void 0&&(r=eE()),Gi(t,r)},Am=function(t,r){var o={top:Lt(r.marginTop),right:Lt(r.marginRight),bottom:Lt(r.marginBottom),left:Lt(r.marginLeft)},n={top:Lt(r.paddingTop),right:Lt(r.paddingRight),bottom:Lt(r.paddingBottom),left:Lt(r.paddingLeft)},i={top:Lt(r.borderTopWidth),right:Lt(r.borderRightWidth),bottom:Lt(r.borderBottomWidth),left:Lt(r.borderLeftWidth)};return Dl({borderBox:t,margin:o,padding:n,border:i})},Mm=function(t){var r=t.getBoundingClientRect(),o=window.getComputedStyle(t);return Am(r,o)},zo=function(t){var r=[],o=null,n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r=s,!o&&(o=requestAnimationFrame(function(){o=null,t.apply(void 0,r)}))};return n.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},n};function Nm(e,t){}Nm.bind(null,"warn");Nm.bind(null,"error");function Hn(){}function tE(e,t){return{...e,...t}}function Wt(e,t,r){const o=t.map(n=>{const i=tE(r,n.options);return e.addEventListener(n.eventName,n.fn,i),function(){e.removeEventListener(n.eventName,n.fn,i)}});return function(){o.forEach(i=>{i()})}}const nE="Invariant failed";class qi extends Error{}qi.prototype.toString=function(){return this.message};function K(e,t){throw new qi(nE)}class rE extends Ve.Component{constructor(...t){super(...t),this.callbacks=null,this.unbind=Hn,this.onWindowError=r=>{const o=this.getCallbacks();o.isDragging()&&o.tryAbort(),r.error instanceof qi&&r.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=r=>{this.callbacks=r}}componentDidMount(){this.unbind=Wt(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof qi){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const oE=`
|
|
108
|
+
Press space bar to start a drag.
|
|
109
|
+
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
110
|
+
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
111
|
+
`,Ji=e=>e+1,iE=e=>`
|
|
112
|
+
You have lifted an item in position ${Ji(e.source.index)}
|
|
113
|
+
`,Fm=(e,t)=>{const r=e.droppableId===t.droppableId,o=Ji(e.index),n=Ji(t.index);return r?`
|
|
114
|
+
You have moved the item from position ${o}
|
|
115
|
+
to position ${n}
|
|
116
|
+
`:`
|
|
117
|
+
You have moved the item from position ${o}
|
|
118
|
+
in list ${e.droppableId}
|
|
119
|
+
to list ${t.droppableId}
|
|
120
|
+
in position ${n}
|
|
121
|
+
`},Lm=(e,t,r)=>t.droppableId===r.droppableId?`
|
|
122
|
+
The item ${e}
|
|
123
|
+
has been combined with ${r.draggableId}`:`
|
|
124
|
+
The item ${e}
|
|
125
|
+
in list ${t.droppableId}
|
|
126
|
+
has been combined with ${r.draggableId}
|
|
127
|
+
in list ${r.droppableId}
|
|
128
|
+
`,aE=e=>{const t=e.destination;if(t)return Fm(e.source,t);const r=e.combine;return r?Lm(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},yp=e=>`
|
|
129
|
+
The item has returned to its starting position
|
|
130
|
+
of ${Ji(e.index)}
|
|
131
|
+
`,sE=e=>{if(e.reason==="CANCEL")return`
|
|
132
|
+
Movement cancelled.
|
|
133
|
+
${yp(e.source)}
|
|
134
|
+
`;const t=e.destination,r=e.combine;return t?`
|
|
135
|
+
You have dropped the item.
|
|
136
|
+
${Fm(e.source,t)}
|
|
137
|
+
`:r?`
|
|
138
|
+
You have dropped the item.
|
|
139
|
+
${Lm(e.draggableId,e.source,r)}
|
|
140
|
+
`:`
|
|
141
|
+
The item has been dropped while not over a drop area.
|
|
142
|
+
${yp(e.source)}
|
|
143
|
+
`},Ti={dragHandleUsageInstructions:oE,onDragStart:iE,onDragUpdate:aE,onDragEnd:sE};function lE(e,t){return!!(e===t||Number.isNaN(e)&&Number.isNaN(t))}function Um(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!lE(e[r],t[r]))return!1;return!0}function Be(e,t){const r=b.useState(()=>({inputs:t,result:e()}))[0],o=b.useRef(!0),n=b.useRef(r),a=o.current||!!(t&&n.current.inputs&&Um(t,n.current.inputs))?n.current:{inputs:t,result:e()};return b.useEffect(()=>{o.current=!1,n.current=a},[a]),a.result}function ce(e,t){return Be(()=>e,t)}const pt={x:0,y:0},mt=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Tt=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Gn=(e,t)=>e.x===t.x&&e.y===t.y,eo=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),br=(e,t,r=0)=>e==="x"?{x:t,y:r}:{x:r,y:t},Ao=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),xp=(e,t)=>Math.min(...t.map(r=>Ao(e,r))),Bm=e=>t=>({x:e(t.x),y:e(t.y)});var cE=(e,t)=>{const r=rn({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const Ko=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Sp=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],uE={top:0,right:0,bottom:0,left:0},dE=(e,t)=>t?Ko(e,t.scroll.diff.displacement):e,pE=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,fE=(e,t)=>t&&t.shouldClipSubject?cE(t.pageMarginBox,e):rn(e);var Wr=({page:e,withPlaceholder:t,axis:r,frame:o})=>{const n=dE(e.marginBox,o),i=pE(n,r,t),a=fE(i,o);return{page:e,withPlaceholder:t,active:a}},Tl=(e,t)=>{e.frame||K();const r=e.frame,o=Tt(t,r.scroll.initial),n=eo(o),i={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:o,displacement:n},max:r.scroll.max}},a=Wr({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};function dt(e,t=Um){let r=null;function o(...n){if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;const i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return o.clear=function(){r=null},o}const Vm=dt(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),Wm=dt(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),$a=dt(e=>Object.values(e)),mE=dt(e=>Object.values(e));var to=dt((e,t)=>mE(t).filter(o=>e===o.descriptor.droppableId).sort((o,n)=>o.descriptor.index-n.descriptor.index));function zl(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Ia(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var ka=dt((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),hE=({isMovingForward:e,draggable:t,destination:r,insideDestination:o,previousImpact:n})=>{if(!r.isCombineEnabled||!zl(n))return null;function a(m){const h={type:"COMBINE",combine:{draggableId:m,droppableId:r.descriptor.id}};return{...n,at:h}}const s=n.displaced.all,l=s.length?s[0]:null;if(e)return l?a(l):null;const c=ka(t,o);if(!l){if(!c.length)return null;const m=c[c.length-1];return a(m.descriptor.id)}const u=c.findIndex(m=>m.descriptor.id===l);u===-1&&K();const d=u-1;if(d<0)return null;const f=c[d];return a(f.descriptor.id)},no=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const Zm={point:pt,value:0},Mo={invisible:{},visible:{},all:[]},gE={displaced:Mo,displacedBy:Zm,at:null};var Gt=(e,t)=>r=>e<=r&&r<=t,Hm=e=>{const t=Gt(e.top,e.bottom),r=Gt(e.left,e.right);return o=>{if(t(o.top)&&t(o.bottom)&&r(o.left)&&r(o.right))return!0;const i=t(o.top)||t(o.bottom),a=r(o.left)||r(o.right);if(i&&a)return!0;const l=o.top<e.top&&o.bottom>e.bottom,c=o.left<e.left&&o.right>e.right;return l&&c?!0:l&&a||c&&i}},vE=e=>{const t=Gt(e.top,e.bottom),r=Gt(e.left,e.right);return o=>t(o.top)&&t(o.bottom)&&r(o.left)&&r(o.right)};const Al={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Gm={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var bE=e=>t=>{const r=Gt(t.top,t.bottom),o=Gt(t.left,t.right);return n=>e===Al?r(n.top)&&r(n.bottom):o(n.left)&&o(n.right)};const yE=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:pt;return Ko(e,r)},xE=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,SE=(e,t,r)=>r(t)(e),Ml=({target:e,destination:t,viewport:r,withDroppableDisplacement:o,isVisibleThroughFrameFn:n})=>{const i=o?yE(e,t):e;return xE(i,t,n)&&SE(i,r,n)},wE=e=>Ml({...e,isVisibleThroughFrameFn:Hm}),Km=e=>Ml({...e,isVisibleThroughFrameFn:vE}),$E=e=>Ml({...e,isVisibleThroughFrameFn:bE(e.destination.axis)}),IE=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:o,visible:n}=t;if(o[e])return!1;const i=n[e];return i?i.shouldAnimate:!0};function kE(e,t){const r=e.page.marginBox,o={top:t.point.y,right:0,bottom:0,left:t.point.x};return rn(Rl(r,o))}function No({afterDragging:e,destination:t,displacedBy:r,viewport:o,forceShouldAnimate:n,last:i}){return e.reduce(function(s,l){const c=kE(l,r),u=l.descriptor.id;if(s.all.push(u),!wE({target:c,destination:t,viewport:o,withDroppableDisplacement:!0}))return s.invisible[l.descriptor.id]=!0,s;const f=IE(u,i,n),m={draggableId:u,shouldAnimate:f};return s.visible[u]=m,s},{all:[],visible:{},invisible:{}})}function CE(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function wp({insideDestination:e,inHomeList:t,displacedBy:r,destination:o}){const n=CE(e,{inHomeList:t});return{displaced:Mo,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:n}}}}function Xi({draggable:e,insideDestination:t,destination:r,viewport:o,displacedBy:n,last:i,index:a,forceShouldAnimate:s}){const l=no(e,r);if(a==null)return wp({insideDestination:t,inHomeList:l,displacedBy:n,destination:r});const c=t.find(h=>h.descriptor.index===a);if(!c)return wp({insideDestination:t,inHomeList:l,displacedBy:n,destination:r});const u=ka(e,t),d=t.indexOf(c),f=u.slice(d);return{displaced:No({afterDragging:f,destination:r,displacedBy:n,last:i,viewport:o.frame,forceShouldAnimate:s}),displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function qn(e,t){return!!t.effected[e]}var _E=({isMovingForward:e,destination:t,draggables:r,combine:o,afterCritical:n})=>{if(!t.isCombineEnabled)return null;const i=o.draggableId,s=r[i].descriptor.index;return qn(i,n)?e?s:s-1:e?s+1:s},EE=({isMovingForward:e,isInHomeList:t,insideDestination:r,location:o})=>{if(!r.length)return null;const n=o.index,i=e?n+1:n-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index,l=t?s:s+1;return i<a||i>l?null:i},PE=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:o,destination:n,insideDestination:i,previousImpact:a,viewport:s,afterCritical:l})=>{const c=a.at;if(c||K(),c.type==="REORDER"){const d=EE({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:i});return d==null?null:Xi({draggable:r,insideDestination:i,destination:n,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})}const u=_E({isMovingForward:e,destination:n,displaced:a.displaced,draggables:o,combine:c.combine,afterCritical:l});return u==null?null:Xi({draggable:r,insideDestination:i,destination:n,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:u})},jE=({displaced:e,afterCritical:t,combineWith:r,displacedBy:o})=>{const n=!!(e.visible[r]||e.invisible[r]);return qn(r,t)?n?pt:eo(o.point):n?o.point:pt},OE=({afterCritical:e,impact:t,draggables:r})=>{const o=Ia(t);o||K();const n=o.draggableId,i=r[n].page.borderBox.center,a=jE({displaced:t.displaced,afterCritical:e,combineWith:n,displacedBy:t.displacedBy});return mt(i,a)};const qm=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,RE=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,Nl=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,$p=({axis:e,moveRelativeTo:t,isMoving:r})=>br(e.line,t.marginBox[e.end]+qm(e,r),Nl(e,t.marginBox,r)),Ip=({axis:e,moveRelativeTo:t,isMoving:r})=>br(e.line,t.marginBox[e.start]-RE(e,r),Nl(e,t.marginBox,r)),DE=({axis:e,moveInto:t,isMoving:r})=>br(e.line,t.contentBox[e.start]+qm(e,r),Nl(e,t.contentBox,r));var TE=({impact:e,draggable:t,draggables:r,droppable:o,afterCritical:n})=>{const i=to(o.descriptor.id,r),a=t.page,s=o.axis;if(!i.length)return DE({axis:s,moveInto:o.page,isMoving:a});const{displaced:l,displacedBy:c}=e,u=l.all[0];if(u){const f=r[u];if(qn(u,n))return Ip({axis:s,moveRelativeTo:f.page,isMoving:a});const m=Gi(f.page,c.point);return Ip({axis:s,moveRelativeTo:m,isMoving:a})}const d=i[i.length-1];if(d.descriptor.id===t.descriptor.id)return a.borderBox.center;if(qn(d.descriptor.id,n)){const f=Gi(d.page,eo(n.displacedBy.point));return $p({axis:s,moveRelativeTo:f,isMoving:a})}return $p({axis:s,moveRelativeTo:d.page,isMoving:a})},Fs=(e,t)=>{const r=e.frame;return r?mt(t,r.scroll.diff.displacement):t};const zE=({impact:e,draggable:t,droppable:r,draggables:o,afterCritical:n})=>{const i=t.page.borderBox.center,a=e.at;return!r||!a?i:a.type==="REORDER"?TE({impact:e,draggable:t,draggables:o,droppable:r,afterCritical:n}):OE({impact:e,draggables:o,afterCritical:n})};var Ca=e=>{const t=zE(e),r=e.droppable;return r?Fs(r,t):t},Jm=(e,t)=>{const r=Tt(t,e.scroll.initial),o=eo(r);return{frame:rn({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:o}}}};function kp(e,t){return e.map(r=>t[r])}function AE(e,t){for(let r=0;r<t.length;r++){const o=t[r].visible[e];if(o)return o}return null}var ME=({impact:e,viewport:t,destination:r,draggables:o,maxScrollChange:n})=>{const i=Jm(t,mt(t.scroll.current,n)),a=r.frame?Tl(r,mt(r.frame.scroll.current,n)):r,s=e.displaced,l=No({afterDragging:kp(s.all,o),destination:r,displacedBy:e.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),c=No({afterDragging:kp(s.all,o),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),u={},d={},f=[s,l,c];return s.all.forEach(h=>{const g=AE(h,f);if(g){d[h]=g;return}u[h]=!0}),{...e,displaced:{all:s.all,invisible:u,visible:d}}},NE=(e,t)=>mt(e.scroll.diff.displacement,t),Fl=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{const o=NE(r,e),n=Tt(o,t.page.borderBox.center);return mt(t.client.borderBox.center,n)},Xm=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:o,withDroppableDisplacement:n,onlyOnMainAxis:i=!1})=>{const a=Tt(r,e.page.borderBox.center),l={target:Ko(e.page.borderBox,a),destination:t,withDroppableDisplacement:n,viewport:o};return i?$E(l):Km(l)},FE=({isMovingForward:e,draggable:t,destination:r,draggables:o,previousImpact:n,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:l})=>{if(!r.isEnabled)return null;const c=to(r.descriptor.id,o),u=no(t,r),d=hE({isMovingForward:e,draggable:t,destination:r,insideDestination:c,previousImpact:n})||PE({isMovingForward:e,isInHomeList:u,draggable:t,draggables:o,destination:r,insideDestination:c,previousImpact:n,viewport:i,afterCritical:l});if(!d)return null;const f=Ca({impact:d,draggable:t,droppable:r,draggables:o,afterCritical:l});if(Xm({draggable:t,destination:r,newPageBorderBoxCenter:f,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Fl({pageBorderBoxCenter:f,draggable:t,viewport:i}),impact:d,scrollJumpRequest:null};const h=Tt(f,a),g=ME({impact:d,viewport:i,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:s,impact:g,scrollJumpRequest:h}};const St=e=>{const t=e.subject.active;return t||K(),t};var LE=({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:o,viewport:n})=>{const i=r.subject.active;if(!i)return null;const a=r.axis,s=Gt(i[a.start],i[a.end]),l=$a(o).filter(u=>u!==r).filter(u=>u.isEnabled).filter(u=>!!u.subject.active).filter(u=>Hm(n.frame)(St(u))).filter(u=>{const d=St(u);return e?i[a.crossAxisEnd]<d[a.crossAxisEnd]:d[a.crossAxisStart]<i[a.crossAxisStart]}).filter(u=>{const d=St(u),f=Gt(d[a.start],d[a.end]);return s(d[a.start])||s(d[a.end])||f(i[a.start])||f(i[a.end])}).sort((u,d)=>{const f=St(u)[a.crossAxisStart],m=St(d)[a.crossAxisStart];return e?f-m:m-f}).filter((u,d,f)=>St(u)[a.crossAxisStart]===St(f[0])[a.crossAxisStart]);if(!l.length)return null;if(l.length===1)return l[0];const c=l.filter(u=>Gt(St(u)[a.start],St(u)[a.end])(t[a.line]));return c.length===1?c[0]:c.length>1?c.sort((u,d)=>St(u)[a.start]-St(d)[a.start])[0]:l.sort((u,d)=>{const f=xp(t,Sp(St(u))),m=xp(t,Sp(St(d)));return f!==m?f-m:St(u)[a.start]-St(d)[a.start]})[0]};const Cp=(e,t)=>{const r=e.page.borderBox.center;return qn(e.descriptor.id,t)?Tt(r,t.displacedBy.point):r},UE=(e,t)=>{const r=e.page.borderBox;return qn(e.descriptor.id,t)?Ko(r,eo(t.displacedBy.point)):r};var BE=({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:o,afterCritical:n})=>o.filter(a=>Km({target:UE(a,n),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const l=Ao(e,Fs(r,Cp(a,n))),c=Ao(e,Fs(r,Cp(s,n)));return l<c?-1:c<l?1:a.descriptor.index-s.descriptor.index})[0]||null,qo=dt(function(t,r){const o=r[t.line];return{value:o,point:br(t.line,o)}});const VE=(e,t,r)=>{const o=e.axis;if(e.descriptor.mode==="virtual")return br(o.line,t[o.line]);const n=e.subject.page.contentBox[o.size],l=to(e.descriptor.id,r).reduce((c,u)=>c+u.client.marginBox[o.size],0)+t[o.line]-n;return l<=0?null:br(o.line,l)},Ym=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Qm=(e,t,r)=>{const o=e.frame;no(t,e)&&K(),e.subject.withPlaceholder&&K();const n=qo(e.axis,t.displaceBy).point,i=VE(e,n,r),a={placeholderSize:n,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!o){const u=Wr({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:u}}const s=i?mt(o.scroll.max,i):o.scroll.max,l=Ym(o,s),c=Wr({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:c,frame:l}},WE=e=>{const t=e.subject.withPlaceholder;t||K();const r=e.frame;if(!r){const a=Wr({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const o=t.oldFrameMaxScroll;o||K();const n=Ym(r,o),i=Wr({page:e.subject.page,axis:e.axis,frame:n,withPlaceholder:null});return{...e,subject:i,frame:n}};var ZE=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:o,draggables:n,destination:i,viewport:a,afterCritical:s})=>{if(!t){if(r.length)return null;const d={displaced:Mo,displacedBy:Zm,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},f=Ca({impact:d,draggable:o,droppable:i,draggables:n,afterCritical:s}),m=no(o,i)?i:Qm(i,o,n);return Xm({draggable:o,destination:m,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const l=e[i.axis.line]<=t.page.borderBox.center[i.axis.line],c=(()=>{const d=t.descriptor.index;return t.descriptor.id===o.descriptor.id||l?d:d+1})(),u=qo(i.axis,o.displaceBy);return Xi({draggable:o,insideDestination:r,destination:i,viewport:a,displacedBy:u,last:Mo,index:c})},HE=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:o,draggables:n,droppables:i,viewport:a,afterCritical:s})=>{const l=LE({isMovingForward:e,pageBorderBoxCenter:t,source:o,droppables:i,viewport:a});if(!l)return null;const c=to(l.descriptor.id,n),u=BE({pageBorderBoxCenter:t,viewport:a,destination:l,insideDestination:c,afterCritical:s}),d=ZE({previousPageBorderBoxCenter:t,destination:l,draggable:r,draggables:n,moveRelativeTo:u,insideDestination:c,viewport:a,afterCritical:s});if(!d)return null;const f=Ca({impact:d,draggable:r,droppable:l,draggables:n,afterCritical:s});return{clientSelection:Fl({pageBorderBoxCenter:f,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null}},zt=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const GE=(e,t)=>{const r=zt(e);return r?t[r]:null};var KE=({state:e,type:t})=>{const r=GE(e.impact,e.dimensions.droppables),o=!!r,n=e.dimensions.droppables[e.critical.droppable.id],i=r||n,a=i.axis.direction,s=a==="vertical"&&(t==="MOVE_UP"||t==="MOVE_DOWN")||a==="horizontal"&&(t==="MOVE_LEFT"||t==="MOVE_RIGHT");if(s&&!o)return null;const l=t==="MOVE_DOWN"||t==="MOVE_RIGHT",c=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:f}=e.dimensions;return s?FE({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,destination:i,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):HE({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,isOver:i,draggables:d,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function sr(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function eh(e){const t=Gt(e.top,e.bottom),r=Gt(e.left,e.right);return function(n){return t(n.y)&&r(n.x)}}function qE(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function JE({pageBorderBox:e,draggable:t,candidates:r}){const o=t.page.borderBox.center,n=r.map(i=>{const a=i.axis,s=br(i.axis.line,e.center[a.line],i.page.borderBox.center[a.crossAxisLine]);return{id:i.descriptor.id,distance:Ao(o,s)}}).sort((i,a)=>a.distance-i.distance);return n[0]?n[0].id:null}function XE({pageBorderBox:e,draggable:t,droppables:r}){const o=$a(r).filter(n=>{if(!n.isEnabled)return!1;const i=n.subject.active;if(!i||!qE(e,i))return!1;if(eh(i)(e.center))return!0;const a=n.axis,s=i.center[a.crossAxisLine],l=e[a.crossAxisStart],c=e[a.crossAxisEnd],u=Gt(i[a.crossAxisStart],i[a.crossAxisEnd]),d=u(l),f=u(c);return!d&&!f?!0:d?l<s:c>s});return o.length?o.length===1?o[0].descriptor.id:JE({pageBorderBox:e,draggable:t,candidates:o}):null}const th=(e,t)=>rn(Ko(e,t));var YE=(e,t)=>{const r=e.frame;return r?th(t,r.scroll.diff.value):t};function nh({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function QE({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var eP=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:o,last:n,viewport:i,afterCritical:a})=>{const s=r.axis,l=qo(r.axis,t.displaceBy),c=l.value,u=e[s.start],d=e[s.end],m=ka(t,o).find(g=>{const v=g.descriptor.id,y=g.page.borderBox.center[s.line],x=qn(v,a),w=nh({displaced:n,id:v});return x?w?d<=y:u<y-c:w?d<=y+c:u<y})||null,h=QE({draggable:t,closest:m,inHomeList:no(t,r)});return Xi({draggable:t,insideDestination:o,destination:r,viewport:i,last:n,displacedBy:l,index:h})};const tP=4;var nP=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:o,insideDestination:n,afterCritical:i})=>{if(!o.isCombineEnabled)return null;const a=o.axis,s=qo(o.axis,e.displaceBy),l=s.value,c=t[a.start],u=t[a.end],f=ka(e,n).find(h=>{const g=h.descriptor.id,v=h.page.borderBox,x=v[a.size]/tP,w=qn(g,i),S=nh({displaced:r.displaced,id:g});return w?S?u>v[a.start]+x&&u<v[a.end]-x:c>v[a.start]-l+x&&c<v[a.end]-l-x:S?u>v[a.start]+l+x&&u<v[a.end]+l-x:c>v[a.start]+x&&c<v[a.end]-x});return f?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null},rh=({pageOffset:e,draggable:t,draggables:r,droppables:o,previousImpact:n,viewport:i,afterCritical:a})=>{const s=th(t.page.borderBox,e),l=XE({pageBorderBox:s,draggable:t,droppables:o});if(!l)return gE;const c=o[l],u=to(c.descriptor.id,r),d=YE(c,s);return nP({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:n,destination:c,insideDestination:u,afterCritical:a})||eP({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:c,insideDestination:u,last:n.displaced,viewport:i,afterCritical:a})},Ll=(e,t)=>({...e,[t.descriptor.id]:t});const rP=({previousImpact:e,impact:t,droppables:r})=>{const o=zt(e),n=zt(t);if(!o||o===n)return r;const i=r[o];if(!i.subject.withPlaceholder)return r;const a=WE(i);return Ll(r,a)};var oP=({draggable:e,draggables:t,droppables:r,previousImpact:o,impact:n})=>{const i=rP({previousImpact:o,impact:n,droppables:r}),a=zt(n);if(!a)return i;const s=r[a];if(no(e,s)||s.subject.withPlaceholder)return i;const l=Qm(s,e,t);return Ll(i,l)},Eo=({state:e,clientSelection:t,dimensions:r,viewport:o,impact:n,scrollJumpRequest:i})=>{const a=o||e.viewport,s=r||e.dimensions,l=t||e.current.client.selection,c=Tt(l,e.initial.client.selection),u={offset:c,selection:l,borderBoxCenter:mt(e.initial.client.borderBoxCenter,c)},d={selection:mt(u.selection,a.scroll.current),borderBoxCenter:mt(u.borderBoxCenter,a.scroll.current),offset:mt(u.offset,a.scroll.diff.value)},f={client:u,page:d};if(e.phase==="COLLECTING")return{...e,dimensions:s,viewport:a,current:f};const m=s.draggables[e.critical.draggable.id],h=n||rh({pageOffset:d.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),g=oP({draggable:m,impact:h,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:f,dimensions:{draggables:s.draggables,droppables:g},impact:h,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:i?!1:null}};function iP(e,t){return e.map(r=>t[r])}var oh=({impact:e,viewport:t,draggables:r,destination:o,forceShouldAnimate:n})=>{const i=e.displaced,a=iP(i.all,r),s=No({afterDragging:a,destination:o,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:n,last:i});return{...e,displaced:s}},ih=({impact:e,draggable:t,droppable:r,draggables:o,viewport:n,afterCritical:i})=>{const a=Ca({impact:e,draggable:t,draggables:o,droppable:r,afterCritical:i});return Fl({pageBorderBoxCenter:a,draggable:t,viewport:n})},ah=({state:e,dimensions:t,viewport:r})=>{e.movementMode!=="SNAP"&&K();const o=e.impact,n=r||e.viewport,i=t||e.dimensions,{draggables:a,droppables:s}=i,l=a[e.critical.draggable.id],c=zt(o);c||K();const u=s[c],d=oh({impact:o,viewport:n,destination:u,draggables:a}),f=ih({impact:d,draggable:l,droppable:u,draggables:a,viewport:n,afterCritical:e.afterCritical});return Eo({impact:d,clientSelection:f,state:e,dimensions:i,viewport:n})},aP=e=>({index:e.index,droppableId:e.droppableId}),sh=({draggable:e,home:t,draggables:r,viewport:o})=>{const n=qo(t.axis,e.displaceBy),i=to(t.descriptor.id,r),a=i.indexOf(e);a===-1&&K();const s=i.slice(a+1),l=s.reduce((f,m)=>(f[m.descriptor.id]=!0,f),{}),c={inVirtualList:t.descriptor.mode==="virtual",displacedBy:n,effected:l};return{impact:{displaced:No({afterDragging:s,destination:t,displacedBy:n,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:n,at:{type:"REORDER",destination:aP(e.descriptor)}},afterCritical:c}},sP=(e,t)=>({draggables:e.draggables,droppables:Ll(e.droppables,t)}),lP=({draggable:e,offset:t,initialWindowScroll:r})=>{const o=Gi(e.client,t),n=Ki(o,r);return{...e,placeholder:{...e.placeholder,client:o},client:o,page:n}},cP=e=>{const t=e.frame;return t||K(),t},uP=({additions:e,updatedDroppables:t,viewport:r})=>{const o=r.scroll.diff.value;return e.map(n=>{const i=n.descriptor.droppableId,a=t[i],l=cP(a).scroll.diff.value,c=mt(o,l);return lP({draggable:n,offset:c,initialWindowScroll:r.scroll.initial})})},dP=({state:e,published:t})=>{const r=t.modified.map(y=>{const x=e.dimensions.droppables[y.droppableId];return Tl(x,y.scroll)}),o={...e.dimensions.droppables,...Vm(r)},n=Wm(uP({additions:t.additions,updatedDroppables:o,viewport:e.viewport})),i={...e.dimensions.draggables,...n};t.removals.forEach(y=>{delete i[y]});const a={droppables:o,draggables:i},s=zt(e.impact),l=s?a.droppables[s]:null,c=a.draggables[e.critical.draggable.id],u=a.droppables[e.critical.droppable.id],{impact:d,afterCritical:f}=sh({draggable:c,home:u,draggables:i,viewport:e.viewport}),m=l&&l.isCombineEnabled?e.impact:d,h=rh({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:m,viewport:e.viewport,afterCritical:f}),g={...e,phase:"DRAGGING",impact:h,onLiftImpact:d,dimensions:a,afterCritical:f,forceShouldAnimate:!1};return e.phase==="COLLECTING"?g:{...g,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}};const Ls=e=>e.movementMode==="SNAP",ls=(e,t,r)=>{const o=sP(e.dimensions,t);return!Ls(e)||r?Eo({state:e,dimensions:o}):ah({state:e,dimensions:o})};function cs(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const _p={phase:"IDLE",completed:null,shouldFlush:!1};var pP=(e=_p,t)=>{if(t.type==="FLUSH")return{..._p,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&K();const{critical:r,clientSelection:o,viewport:n,dimensions:i,movementMode:a}=t.payload,s=i.draggables[r.draggable.id],l=i.droppables[r.droppable.id],c={selection:o,borderBoxCenter:s.client.borderBox.center,offset:pt},u={client:c,page:{selection:mt(c.selection,n.scroll.initial),borderBoxCenter:mt(c.selection,n.scroll.initial),offset:mt(c.selection,n.scroll.diff.value)}},d=$a(i.droppables).every(g=>!g.isFixedOnPage),{impact:f,afterCritical:m}=sh({draggable:s,home:l,draggables:i.draggables,viewport:n});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:i,initial:u,current:u,isWindowScrollAllowed:d,impact:f,afterCritical:m,onLiftImpact:f,viewport:n,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&K(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||K(),dP({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;sr(e)||K();const{client:r}=t.payload;return Gn(r,e.current.client.selection)?e:Eo({state:e,clientSelection:r,impact:Ls(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return cs(e);sr(e)||K();const{id:r,newScroll:o}=t.payload,n=e.dimensions.droppables[r];if(!n)return e;const i=Tl(n,o);return ls(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;sr(e)||K();const{id:r,isEnabled:o}=t.payload,n=e.dimensions.droppables[r];n||K(),n.isEnabled===o&&K();const i={...n,isEnabled:o};return ls(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;sr(e)||K();const{id:r,isCombineEnabled:o}=t.payload,n=e.dimensions.droppables[r];n||K(),n.isCombineEnabled===o&&K();const i={...n,isCombineEnabled:o};return ls(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;sr(e)||K(),e.isWindowScrollAllowed||K();const r=t.payload.newScroll;if(Gn(e.viewport.scroll.current,r))return cs(e);const o=Jm(e.viewport,r);return Ls(e)?ah({state:e,viewport:o}):Eo({state:e,viewport:o})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!sr(e))return e;const r=t.payload.maxScroll;if(Gn(r,e.viewport.scroll.max))return e;const o={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:o}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&K();const r=KE({state:e,type:t.type});return r?Eo({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&K(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:o,newHomeClientOffset:n}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||K(),{phase:"DROP_ANIMATING",completed:r,dropDuration:o,newHomeClientOffset:n,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};function Ge(e,t){return e instanceof Object&&"type"in e&&e.type===t}const fP=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),mP=e=>({type:"LIFT",payload:e}),hP=e=>({type:"INITIAL_PUBLISH",payload:e}),gP=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),vP=()=>({type:"COLLECTION_STARTING",payload:null}),bP=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),yP=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),xP=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),lh=e=>({type:"MOVE",payload:e}),SP=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),wP=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),$P=()=>({type:"MOVE_UP",payload:null}),IP=()=>({type:"MOVE_DOWN",payload:null}),kP=()=>({type:"MOVE_RIGHT",payload:null}),CP=()=>({type:"MOVE_LEFT",payload:null}),Ul=()=>({type:"FLUSH",payload:null}),_P=e=>({type:"DROP_ANIMATE",payload:e}),Bl=e=>({type:"DROP_COMPLETE",payload:e}),ch=e=>({type:"DROP",payload:e}),EP=e=>({type:"DROP_PENDING",payload:e}),uh=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var PP=e=>({getState:t,dispatch:r})=>o=>n=>{if(!Ge(n,"LIFT")){o(n);return}const{id:i,clientSelection:a,movementMode:s}=n.payload,l=t();l.phase==="DROP_ANIMATING"&&r(Bl({completed:l.completed})),t().phase!=="IDLE"&&K(),r(Ul()),r(fP({draggableId:i,movementMode:s}));const u={draggableId:i,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:d,dimensions:f,viewport:m}=e.startPublishing(u);r(hP({critical:d,dimensions:f,clientSelection:a,movementMode:s,viewport:m}))},jP=e=>()=>t=>r=>{Ge(r,"INITIAL_PUBLISH")&&e.dragging(),Ge(r,"DROP_ANIMATE")&&e.dropping(r.payload.completed.result.reason),(Ge(r,"FLUSH")||Ge(r,"DROP_COMPLETE"))&&e.resting(),t(r)};const Vl={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Fo={opacity:{drop:0,combining:.7},scale:{drop:.75}},dh={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},or=`${dh.outOfTheWay}s ${Vl.outOfTheWay}`,Po={fluid:`opacity ${or}`,snap:`transform ${or}, opacity ${or}`,drop:e=>{const t=`${e}s ${Vl.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${or}`,placeholder:`height ${or}, width ${or}, margin ${or}`},Ep=e=>Gn(e,pt)?void 0:`translate(${e.x}px, ${e.y}px)`,Us={moveTo:Ep,drop:(e,t)=>{const r=Ep(e);if(r)return t?`${r} scale(${Fo.scale.drop})`:r}},{minDropTime:Bs,maxDropTime:ph}=dh,OP=ph-Bs,Pp=1500,RP=.6;var DP=({current:e,destination:t,reason:r})=>{const o=Ao(e,t);if(o<=0)return Bs;if(o>=Pp)return ph;const n=o/Pp,i=Bs+OP*n,a=r==="CANCEL"?i*RP:i;return Number(a.toFixed(2))},TP=({impact:e,draggable:t,dimensions:r,viewport:o,afterCritical:n})=>{const{draggables:i,droppables:a}=r,s=zt(e),l=s?a[s]:null,c=a[t.descriptor.droppableId],u=ih({impact:e,draggable:t,draggables:i,afterCritical:n,droppable:l||c,viewport:o});return Tt(u,t.client.borderBox.center)},zP=({draggables:e,reason:t,lastImpact:r,home:o,viewport:n,onLiftImpact:i})=>!r.at||t!=="DROP"?{impact:oh({draggables:e,impact:i,destination:o,viewport:n,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Mo},didDropInsideDroppable:!0};const AP=({getState:e,dispatch:t})=>r=>o=>{if(!Ge(o,"DROP")){r(o);return}const n=e(),i=o.payload.reason;if(n.phase==="COLLECTING"){t(EP({reason:i}));return}if(n.phase==="IDLE")return;n.phase==="DROP_PENDING"&&n.isWaiting&&K(),n.phase==="DRAGGING"||n.phase==="DROP_PENDING"||K();const s=n.critical,l=n.dimensions,c=l.draggables[n.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=zP({reason:i,lastImpact:n.impact,afterCritical:n.afterCritical,onLiftImpact:n.onLiftImpact,home:n.dimensions.droppables[n.critical.droppable.id],viewport:n.viewport,draggables:n.dimensions.draggables}),f=d?zl(u):null,m=d?Ia(u):null,h={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:h,reason:i,mode:n.movementMode,destination:f,combine:m},v=TP({impact:u,draggable:c,dimensions:l,viewport:n.viewport,afterCritical:n.afterCritical}),y={critical:n.critical,afterCritical:n.afterCritical,result:g,impact:u};if(!(!Gn(n.current.client.offset,v)||!!g.combine)){t(Bl({completed:y}));return}const w=DP({current:n.current.client.offset,destination:v,reason:i});t(_P({newHomeClientOffset:v,dropDuration:w,completed:y}))};var fh=()=>({x:window.pageXOffset,y:window.pageYOffset});function MP(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function NP({onWindowScroll:e}){function t(){e(fh())}const r=zo(t),o=MP(r);let n=Hn;function i(){return n!==Hn}function a(){i()&&K(),n=Wt(window,[o])}function s(){i()||K(),r.cancel(),n(),n=Hn}return{start:a,stop:s,isActive:i}}const FP=e=>Ge(e,"DROP_COMPLETE")||Ge(e,"DROP_ANIMATE")||Ge(e,"FLUSH"),LP=e=>{const t=NP({onWindowScroll:r=>{e.dispatch(SP({newScroll:r}))}});return r=>o=>{!t.isActive()&&Ge(o,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&FP(o)&&t.stop(),r(o)}};var UP=e=>{let t=!1,r=!1;const o=setTimeout(()=>{r=!0}),n=i=>{t||r||(t=!0,e(i),clearTimeout(o))};return n.wasCalled=()=>t,n},BP=()=>{const e=[],t=n=>{const i=e.findIndex(s=>s.timerId===n);i===-1&&K();const[a]=e.splice(i,1);a.callback()};return{add:n=>{const i=setTimeout(()=>t(i)),a={timerId:i,callback:n};e.push(a)},flush:()=>{if(!e.length)return;const n=[...e];e.length=0,n.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const VP=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,WP=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,ZP=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,o=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&o},uo=(e,t)=>{t()},vi=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function us(e,t,r,o){if(!e){r(o(t));return}const n=UP(r);e(t,{announce:n}),n.wasCalled()||r(o(t))}var HP=(e,t)=>{const r=BP();let o=null;const n=(d,f)=>{o&&K(),uo("onBeforeCapture",()=>{const m=e().onBeforeCapture;m&&m({draggableId:d,mode:f})})},i=(d,f)=>{o&&K(),uo("onBeforeDragStart",()=>{const m=e().onBeforeDragStart;m&&m(vi(d,f))})},a=(d,f)=>{o&&K();const m=vi(d,f);o={mode:f,lastCritical:d,lastLocation:m.source,lastCombine:null},r.add(()=>{uo("onDragStart",()=>us(e().onDragStart,m,t,Ti.onDragStart))})},s=(d,f)=>{const m=zl(f),h=Ia(f);o||K();const g=!ZP(d,o.lastCritical);g&&(o.lastCritical=d);const v=!VP(o.lastLocation,m);v&&(o.lastLocation=m);const y=!WP(o.lastCombine,h);if(y&&(o.lastCombine=h),!g&&!v&&!y)return;const x={...vi(d,o.mode),combine:h,destination:m};r.add(()=>{uo("onDragUpdate",()=>us(e().onDragUpdate,x,t,Ti.onDragUpdate))})},l=()=>{o||K(),r.flush()},c=d=>{o||K(),o=null,uo("onDragEnd",()=>us(e().onDragEnd,d,t,Ti.onDragEnd))};return{beforeCapture:n,beforeStart:i,start:a,update:s,flush:l,drop:c,abort:()=>{if(!o)return;const d={...vi(o.lastCritical,o.mode),combine:null,destination:null,reason:"CANCEL"};c(d)}}},GP=(e,t)=>{const r=HP(e,t);return o=>n=>i=>{if(Ge(i,"BEFORE_INITIAL_CAPTURE")){r.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(Ge(i,"INITIAL_PUBLISH")){const s=i.payload.critical;r.beforeStart(s,i.payload.movementMode),n(i),r.start(s,i.payload.movementMode);return}if(Ge(i,"DROP_COMPLETE")){const s=i.payload.completed.result;r.flush(),n(i),r.drop(s);return}if(n(i),Ge(i,"FLUSH")){r.abort();return}const a=o.getState();a.phase==="DRAGGING"&&r.update(a.critical,a.impact)}};const KP=e=>t=>r=>{if(!Ge(r,"DROP_ANIMATION_FINISHED")){t(r);return}const o=e.getState();o.phase!=="DROP_ANIMATING"&&K(),e.dispatch(Bl({completed:o.completed}))},qP=e=>{let t=null,r=null;function o(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return n=>i=>{if((Ge(i,"FLUSH")||Ge(i,"DROP_COMPLETE")||Ge(i,"DROP_ANIMATION_FINISHED"))&&o(),n(i),!Ge(i,"DROP_ANIMATE"))return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(uh())}};r=requestAnimationFrame(()=>{r=null,t=Wt(window,[a])})}};var JP=e=>()=>t=>r=>{(Ge(r,"DROP_COMPLETE")||Ge(r,"FLUSH")||Ge(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)},XP=e=>{let t=!1;return()=>r=>o=>{if(Ge(o,"INITIAL_PUBLISH")){t=!0,e.tryRecordFocus(o.payload.critical.draggable.id),r(o),e.tryRestoreFocusRecorded();return}if(r(o),!!t){if(Ge(o,"FLUSH")){t=!1,e.tryRestoreFocusRecorded();return}if(Ge(o,"DROP_COMPLETE")){t=!1;const n=o.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const YP=e=>Ge(e,"DROP_COMPLETE")||Ge(e,"DROP_ANIMATE")||Ge(e,"FLUSH");var QP=e=>t=>r=>o=>{if(YP(o)){e.stop(),r(o);return}if(Ge(o,"INITIAL_PUBLISH")){r(o);const n=t.getState();n.phase!=="DRAGGING"&&K(),e.start(n);return}r(o),e.scroll(t.getState())};const ej=e=>t=>r=>{if(t(r),!Ge(r,"PUBLISH_WHILE_DRAGGING"))return;const o=e.getState();o.phase==="DROP_PENDING"&&(o.isWaiting||e.dispatch(ch({reason:o.reason})))},tj=Pm;var nj=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:o,announce:n,autoScroller:i})=>Em(pP,tj(t_(jP(r),JP(e),PP(e),AP,KP,qP,ej,QP(i),LP,XP(t),GP(o,n))));const ds=()=>({additions:{},removals:{},modified:{}});function rj({registry:e,callbacks:t}){let r=ds(),o=null;const n=()=>{o||(t.collectionStarting(),o=requestAnimationFrame(()=>{o=null;const{additions:l,removals:c,modified:u}=r,d=Object.keys(l).map(h=>e.draggable.getById(h).getDimension(pt)).sort((h,g)=>h.descriptor.index-g.descriptor.index),f=Object.keys(u).map(h=>{const v=e.droppable.getById(h).callbacks.getScrollWhileDragging();return{droppableId:h,scroll:v}}),m={additions:d,removals:Object.keys(c),modified:f};r=ds(),t.publish(m)}))};return{add:l=>{const c=l.descriptor.id;r.additions[c]=l,r.modified[l.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],n()},remove:l=>{const c=l.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],n()},stop:()=>{o&&(cancelAnimationFrame(o),o=null,r=ds())}}}var mh=({scrollHeight:e,scrollWidth:t,height:r,width:o})=>{const n=Tt({x:t,y:e},{x:o,y:r});return{x:Math.max(0,n.x),y:Math.max(0,n.y)}},hh=()=>{const e=document.documentElement;return e||K(),e},gh=()=>{const e=hh();return mh({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},oj=()=>{const e=fh(),t=gh(),r=e.y,o=e.x,n=hh(),i=n.clientWidth,a=n.clientHeight,s=o+i,l=r+a;return{frame:rn({top:r,left:o,right:s,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:pt,displacement:pt}}}},ij=({critical:e,scrollOptions:t,registry:r})=>{const o=oj(),n=o.scroll.current,i=e.droppable,a=r.droppable.getAllByType(i.type).map(u=>u.callbacks.getDimensionAndWatchScroll(n,t)),s=r.draggable.getAllByType(e.draggable.type).map(u=>u.getDimension(n));return{dimensions:{draggables:Wm(s),droppables:Vm(a)},critical:e,viewport:o}};function jp(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var aj=(e,t)=>{let r=null;const o=rj({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),n=(f,m)=>{e.droppable.exists(f)||K(),r&&t.updateDroppableIsEnabled({id:f,isEnabled:m})},i=(f,m)=>{r&&(e.droppable.exists(f)||K(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:m}))},a=(f,m)=>{r&&(e.droppable.exists(f)||K(),t.updateDroppableScroll({id:f,newScroll:m}))},s=(f,m)=>{r&&e.droppable.getById(f).callbacks.scroll(m)},l=()=>{if(!r)return;o.stop();const f=r.critical.droppable;e.droppable.getAllByType(f.type).forEach(m=>m.callbacks.dragStopped()),r.unsubscribe(),r=null},c=f=>{r||K();const m=r.critical.draggable;f.type==="ADDITION"&&jp(e,m,f.value)&&o.add(f.value),f.type==="REMOVAL"&&jp(e,m,f.value)&&o.remove(f.value)};return{updateDroppableIsEnabled:n,updateDroppableIsCombineEnabled:i,scrollDroppable:s,updateDroppableScroll:a,startPublishing:f=>{r&&K();const m=e.draggable.getById(f.draggableId),h=e.droppable.getById(m.descriptor.droppableId),g={draggable:m.descriptor,droppable:h.descriptor},v=e.subscribe(c);return r={critical:g,unsubscribe:v},ij({critical:g,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:l}},vh=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",sj=e=>{window.scrollBy(e.x,e.y)};const lj=dt(e=>$a(e).filter(t=>!(!t.isEnabled||!t.frame))),cj=(e,t)=>lj(t).find(o=>(o.frame||K(),eh(o.frame.pageMarginBox)(e)))||null;var uj=({center:e,destination:t,droppables:r})=>{if(t){const n=r[t];return n.frame?n:null}return cj(e,r)};const Lo={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var dj=(e,t,r=()=>Lo)=>{const o=r(),n=e[t.size]*o.startFromPercentage,i=e[t.size]*o.maxScrollAtPercentage;return{startScrollingFrom:n,maxScrollValueAt:i}},bh=({startOfRange:e,endOfRange:t,current:r})=>{const o=t-e;return o===0?0:(r-e)/o},Wl=1,pj=(e,t,r=()=>Lo)=>{const o=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return o.maxPixelScroll;if(e===t.startScrollingFrom)return Wl;const i=1-bh({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=o.maxPixelScroll*o.ease(i);return Math.ceil(a)},fj=(e,t,r)=>{const o=r(),n=o.durationDampening.accelerateAt,i=o.durationDampening.stopDampeningAt,a=t,s=i,c=Date.now()-a;if(c>=i)return e;if(c<n)return Wl;const u=bh({startOfRange:n,endOfRange:s,current:c}),d=e*o.ease(u);return Math.ceil(d)},Op=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:n})=>{const i=pj(e,t,n);return i===0?0:o?Math.max(fj(i,r,n),Wl):i},Rp=({container:e,distanceToEdges:t,dragStartTime:r,axis:o,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{const a=dj(e,o,i);return t[o.end]<t[o.start]?Op({distanceToEdge:t[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i}):-1*Op({distanceToEdge:t[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i})},mj=({container:e,subject:t,proposedScroll:r})=>{const o=t.height>e.height,n=t.width>e.width;return!n&&!o?r:n&&o?null:{x:n?0:r.x,y:o?0:r.y}};const hj=Bm(e=>e===0?0:e);var yh=({dragStartTime:e,container:t,subject:r,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{const a={top:o.y-t.top,right:t.right-o.x,bottom:t.bottom-o.y,left:o.x-t.left},s=Rp({container:t,distanceToEdges:a,dragStartTime:e,axis:Al,shouldUseTimeDampening:n,getAutoScrollerOptions:i}),l=Rp({container:t,distanceToEdges:a,dragStartTime:e,axis:Gm,shouldUseTimeDampening:n,getAutoScrollerOptions:i}),c=hj({x:l,y:s});if(Gn(c,pt))return null;const u=mj({container:t,subject:r,proposedScroll:c});return u?Gn(u,pt)?null:u:null};const gj=Bm(e=>e===0?0:e>0?1:-1),Zl=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return({current:t,max:r,change:o})=>{const n=mt(t,o),i={x:e(n.x,r.x),y:e(n.y,r.y)};return Gn(i,pt)?null:i}})(),xh=({max:e,current:t,change:r})=>{const o={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},n=gj(r),i=Zl({max:o,current:t,change:n});return!i||n.x!==0&&i.x===0||n.y!==0&&i.y===0},Hl=(e,t)=>xh({current:e.scroll.current,max:e.scroll.max,change:t}),vj=(e,t)=>{if(!Hl(e,t))return null;const r=e.scroll.max,o=e.scroll.current;return Zl({current:o,max:r,change:t})},Gl=(e,t)=>{const r=e.frame;return r?xh({current:r.scroll.current,max:r.scroll.max,change:t}):!1},bj=(e,t)=>{const r=e.frame;return!r||!Gl(e,t)?null:Zl({current:r.scroll.current,max:r.scroll.max,change:t})};var yj=({viewport:e,subject:t,center:r,dragStartTime:o,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{const a=yh({dragStartTime:o,container:e.frame,subject:t,center:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i});return a&&Hl(e,a)?a:null},xj=({droppable:e,subject:t,center:r,dragStartTime:o,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{const a=e.frame;if(!a)return null;const s=yh({dragStartTime:o,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i});return s&&Gl(e,s)?s:null},Dp=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:o,scrollDroppable:n,getAutoScrollerOptions:i})=>{const a=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const d=e.viewport,f=yj({dragStartTime:t,viewport:d,subject:l,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});if(f){o(f);return}}const c=uj({center:a,destination:zt(e.impact),droppables:e.dimensions.droppables});if(!c)return;const u=xj({dragStartTime:t,droppable:c,subject:l,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});u&&n(c.descriptor.id,u)},Sj=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>Lo})=>{const o=zo(e),n=zo(t);let i=null;const a=c=>{i||K();const{shouldUseTimeDampening:u,dragStartTime:d}=i;Dp({state:c,scrollWindow:o,scrollDroppable:n,dragStartTime:d,shouldUseTimeDampening:u,getAutoScrollerOptions:r})};return{start:c=>{i&&K();const u=Date.now();let d=!1;const f=()=>{d=!0};Dp({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:f,scrollDroppable:f,getAutoScrollerOptions:r}),i={dragStartTime:u,shouldUseTimeDampening:d},d&&a(c)},stop:()=>{i&&(o.cancel(),n.cancel(),i=null)},scroll:a}},wj=({move:e,scrollDroppable:t,scrollWindow:r})=>{const o=(s,l)=>{const c=mt(s.current.client.selection,l);e({client:c})},n=(s,l)=>{if(!Gl(s,l))return l;const c=bj(s,l);if(!c)return t(s.descriptor.id,l),null;const u=Tt(l,c);return t(s.descriptor.id,u),Tt(l,u)},i=(s,l,c)=>{if(!s||!Hl(l,c))return c;const u=vj(l,c);if(!u)return r(c),null;const d=Tt(c,u);return r(d),Tt(c,d)};return s=>{const l=s.scrollJumpRequest;if(!l)return;const c=zt(s.impact);c||K();const u=n(s.dimensions.droppables[c],l);if(!u)return;const d=s.viewport,f=i(s.isWindowScrollAllowed,d,u);f&&o(s,f)}},$j=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:o})=>{const n=Sj({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:o}),i=wj({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:l=>{if(!(o().disabled||l.phase!=="DRAGGING")){if(l.movementMode==="FLUID"){n.scroll(l);return}l.scrollJumpRequest&&i(l)}},start:n.start,stop:n.stop}};const Zr="data-rfd",Hr=(()=>{const e=`${Zr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),Vs=(()=>{const e=`${Zr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Ij=(()=>{const e=`${Zr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Tp={contextId:`${Zr}-scroll-container-context-id`},kj=e=>t=>`[${t}="${e}"]`,po=(e,t)=>e.map(r=>{const o=r.styles[t];return o?`${r.selector} { ${o} }`:""}).join(" "),Cj="pointer-events: none;";var _j=e=>{const t=kj(e),r=(()=>{const s=`
|
|
144
|
+
cursor: -webkit-grab;
|
|
145
|
+
cursor: grab;
|
|
146
|
+
`;return{selector:t(Hr.contextId),styles:{always:`
|
|
147
|
+
-webkit-touch-callout: none;
|
|
148
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
149
|
+
touch-action: manipulation;
|
|
150
|
+
`,resting:s,dragging:Cj,dropAnimating:s}}})(),o=(()=>{const s=`
|
|
151
|
+
transition: ${Po.outOfTheWay};
|
|
152
|
+
`;return{selector:t(Vs.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}})(),n={selector:t(Ij.contextId),styles:{always:"overflow-anchor: none;"}},a=[o,r,n,{selector:"body",styles:{dragging:`
|
|
153
|
+
cursor: grabbing;
|
|
154
|
+
cursor: -webkit-grabbing;
|
|
155
|
+
user-select: none;
|
|
156
|
+
-webkit-user-select: none;
|
|
157
|
+
-moz-user-select: none;
|
|
158
|
+
-ms-user-select: none;
|
|
159
|
+
overflow-anchor: none;
|
|
160
|
+
`}}];return{always:po(a,"always"),resting:po(a,"resting"),dragging:po(a,"dragging"),dropAnimating:po(a,"dropAnimating"),userCancel:po(a,"userCancel")}};const At=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?b.useLayoutEffect:b.useEffect,ps=()=>{const e=document.querySelector("head");return e||K(),e},zp=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Ej(e,t){const r=Be(()=>_j(e),[e]),o=b.useRef(null),n=b.useRef(null),i=ce(dt(d=>{const f=n.current;f||K(),f.textContent=d}),[]),a=ce(d=>{const f=o.current;f||K(),f.textContent=d},[]);At(()=>{!o.current&&!n.current||K();const d=zp(t),f=zp(t);return o.current=d,n.current=f,d.setAttribute(`${Zr}-always`,e),f.setAttribute(`${Zr}-dynamic`,e),ps().appendChild(d),ps().appendChild(f),a(r.always),i(r.resting),()=>{const m=h=>{const g=h.current;g||K(),ps().removeChild(g),h.current=null};m(o),m(n)}},[t,a,i,r.always,r.resting,e]);const s=ce(()=>i(r.dragging),[i,r.dragging]),l=ce(d=>{if(d==="DROP"){i(r.dropAnimating);return}i(r.userCancel)},[i,r.dropAnimating,r.userCancel]),c=ce(()=>{n.current&&i(r.resting)},[i,r.resting]);return Be(()=>({dragging:s,dropping:l,resting:c}),[s,l,c])}function Sh(e,t){return Array.from(e.querySelectorAll(t))}var wh=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function _a(e){return e instanceof wh(e).HTMLElement}function Pj(e,t){const r=`[${Hr.contextId}="${e}"]`,o=Sh(document,r);if(!o.length)return null;const n=o.find(i=>i.getAttribute(Hr.draggableId)===t);return!n||!_a(n)?null:n}function jj(e){const t=b.useRef({}),r=b.useRef(null),o=b.useRef(null),n=b.useRef(!1),i=ce(function(f,m){const h={id:f,focus:m};return t.current[f]=h,function(){const v=t.current;v[f]!==h&&delete v[f]}},[]),a=ce(function(f){const m=Pj(e,f);m&&m!==document.activeElement&&m.focus()},[e]),s=ce(function(f,m){r.current===f&&(r.current=m)},[]),l=ce(function(){o.current||n.current&&(o.current=requestAnimationFrame(()=>{o.current=null;const f=r.current;f&&a(f)}))},[a]),c=ce(function(f){r.current=null;const m=document.activeElement;m&&m.getAttribute(Hr.draggableId)===f&&(r.current=f)},[]);return At(()=>(n.current=!0,function(){n.current=!1;const f=o.current;f&&cancelAnimationFrame(f)}),[]),Be(()=>({register:i,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}),[i,c,l,s])}function Oj(){const e={draggables:{},droppables:{}},t=[];function r(d){return t.push(d),function(){const m=t.indexOf(d);m!==-1&&t.splice(m,1)}}function o(d){t.length&&t.forEach(f=>f(d))}function n(d){return e.draggables[d]||null}function i(d){const f=n(d);return f||K(),f}const a={register:d=>{e.draggables[d.descriptor.id]=d,o({type:"ADDITION",value:d})},update:(d,f)=>{const m=e.draggables[f.descriptor.id];m&&m.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const f=d.descriptor.id,m=n(f);m&&d.uniqueId===m.uniqueId&&(delete e.draggables[f],e.droppables[d.descriptor.droppableId]&&o({type:"REMOVAL",value:d}))},getById:i,findById:n,exists:d=>!!n(d),getAllByType:d=>Object.values(e.draggables).filter(f=>f.descriptor.type===d)};function s(d){return e.droppables[d]||null}function l(d){const f=s(d);return f||K(),f}const c={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const f=s(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:l,findById:s,exists:d=>!!s(d),getAllByType:d=>Object.values(e.droppables).filter(f=>f.descriptor.type===d)};function u(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:c,subscribe:r,clean:u}}function Rj(){const e=Be(Oj,[]);return b.useEffect(()=>function(){e.clean()},[e]),e}var Kl=Ve.createContext(null),Yi=()=>{const e=document.body;return e||K(),e};const Dj={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Tj=e=>`rfd-announcement-${e}`;function zj(e){const t=Be(()=>Tj(e),[e]),r=b.useRef(null);return b.useEffect(function(){const i=document.createElement("div");return r.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),il(i.style,Dj),Yi().appendChild(i),function(){setTimeout(function(){const l=Yi();l.contains(i)&&l.removeChild(i),i===r.current&&(r.current=null)})}},[t]),ce(n=>{const i=r.current;if(i){i.textContent=n;return}},[])}const Aj={separator:"::"};function ql(e,t=Aj){const r=Ve.useId();return Be(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}function Mj({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function Nj({contextId:e,text:t}){const r=ql("hidden-text",{separator:"-"}),o=Be(()=>Mj({contextId:e,uniqueId:r}),[r,e]);return b.useEffect(function(){const i=document.createElement("div");return i.id=o,i.textContent=t,i.style.display="none",Yi().appendChild(i),function(){const s=Yi();s.contains(i)&&s.removeChild(i)}},[o,t]),o}var Ea=Ve.createContext(null);function $h(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),t}function Fj(){let e=null;function t(){return!!e}function r(a){return a===e}function o(a){e&&K();const s={abandon:a};return e=s,s}function n(){e||K(),e=null}function i(){e&&(e.abandon(),n())}return{isClaimed:t,isActive:r,claim:o,release:n,tryAbandon:i}}function Uo(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const Lj=9,Uj=13,Jl=27,Ih=32,Bj=33,Vj=34,Wj=35,Zj=36,Hj=37,Gj=38,Kj=39,qj=40,Jj={[Uj]:!0,[Lj]:!0};var kh=e=>{Jj[e.keyCode]&&e.preventDefault()};const Pa=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(o=>`on${o}`in document)||e})(),Ch=0,Ap=5;function Xj(e,t){return Math.abs(t.x-e.x)>=Ap||Math.abs(t.y-e.y)>=Ap}const Mp={type:"IDLE"};function Yj({cancel:e,completed:t,getPhase:r,setPhase:o}){return[{eventName:"mousemove",fn:n=>{const{button:i,clientX:a,clientY:s}=n;if(i!==Ch)return;const l={x:a,y:s},c=r();if(c.type==="DRAGGING"){n.preventDefault(),c.actions.move(l);return}c.type!=="PENDING"&&K();const u=c.point;if(!Xj(u,l))return;n.preventDefault();const d=c.actions.fluidLift(l);o({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:n=>{const i=r();if(i.type!=="DRAGGING"){e();return}n.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:n=>{r().type==="DRAGGING"&&n.preventDefault(),e()}},{eventName:"keydown",fn:n=>{if(r().type==="PENDING"){e();return}if(n.keyCode===Jl){n.preventDefault(),e();return}kh(n)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:n=>{const i=r();if(i.type==="IDLE"&&K(),i.actions.shouldRespectForcePress()){e();return}n.preventDefault()}},{eventName:Pa,fn:e}]}function Qj(e){const t=b.useRef(Mp),r=b.useRef(Hn),o=Be(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==Ch||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const f=e.findClosestDraggableId(d);if(!f)return;const m=e.tryGetLock(f,a,{sourceEvent:d});if(!m)return;d.preventDefault();const h={x:d.clientX,y:d.clientY};r.current(),c(m,h)}}),[e]),n=Be(()=>({eventName:"webkitmouseforcewillbegin",fn:u=>{if(u.defaultPrevented)return;const d=e.findClosestDraggableId(u);if(!d)return;const f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&u.preventDefault())}}),[e]),i=ce(function(){const d={passive:!1,capture:!0};r.current=Wt(window,[n,o],d)},[n,o]),a=ce(()=>{t.current.type!=="IDLE"&&(t.current=Mp,r.current(),i())},[i]),s=ce(()=>{const u=t.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),l=ce(function(){const d={capture:!0,passive:!1},f=Yj({cancel:s,completed:a,getPhase:()=>t.current,setPhase:m=>{t.current=m}});r.current=Wt(window,f,d)},[s,a]),c=ce(function(d,f){t.current.type!=="IDLE"&&K(),t.current={type:"PENDING",point:f,actions:d},l()},[l]);At(function(){return i(),function(){r.current()}},[i])}function eO(){}const tO={[Vj]:!0,[Bj]:!0,[Zj]:!0,[Wj]:!0};function nO(e,t){function r(){t(),e.cancel()}function o(){t(),e.drop()}return[{eventName:"keydown",fn:n=>{if(n.keyCode===Jl){n.preventDefault(),r();return}if(n.keyCode===Ih){n.preventDefault(),o();return}if(n.keyCode===qj){n.preventDefault(),e.moveDown();return}if(n.keyCode===Gj){n.preventDefault(),e.moveUp();return}if(n.keyCode===Kj){n.preventDefault(),e.moveRight();return}if(n.keyCode===Hj){n.preventDefault(),e.moveLeft();return}if(tO[n.keyCode]){n.preventDefault();return}kh(n)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Pa,fn:r}]}function rO(e){const t=b.useRef(eO),r=Be(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==Ih)return;const a=e.findClosestDraggableId(i);if(!a)return;const s=e.tryGetLock(a,u,{sourceEvent:i});if(!s)return;i.preventDefault();let l=!0;const c=s.snapLift();t.current();function u(){l||K(),l=!1,t.current(),o()}t.current=Wt(window,nO(c,u),{capture:!0,passive:!1})}}),[e]),o=ce(function(){const i={passive:!1,capture:!0};t.current=Wt(window,[r],i)},[r]);At(function(){return o(),function(){t.current()}},[o])}const fs={type:"IDLE"},oO=120,iO=.15;function aO({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(t().type!=="DRAGGING"){e();return}r.keyCode===Jl&&r.preventDefault(),e()}},{eventName:Pa,fn:e}]}function sO({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:o=>{const n=r();if(n.type!=="DRAGGING"){e();return}n.hasMoved=!0;const{clientX:i,clientY:a}=o.touches[0],s={x:i,y:a};o.preventDefault(),n.actions.move(s)}},{eventName:"touchend",fn:o=>{const n=r();if(n.type!=="DRAGGING"){e();return}o.preventDefault(),n.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:o=>{if(r().type!=="DRAGGING"){e();return}o.preventDefault(),e()}},{eventName:"touchforcechange",fn:o=>{const n=r();n.type==="IDLE"&&K();const i=o.touches[0];if(!i||!(i.force>=iO))return;const s=n.actions.shouldRespectForcePress();if(n.type==="PENDING"){s&&e();return}if(s){if(n.hasMoved){o.preventDefault();return}e();return}o.preventDefault()}},{eventName:Pa,fn:e}]}function lO(e){const t=b.useRef(fs),r=b.useRef(Hn),o=ce(function(){return t.current},[]),n=ce(function(m){t.current=m},[]),i=Be(()=>({eventName:"touchstart",fn:function(m){if(m.defaultPrevented)return;const h=e.findClosestDraggableId(m);if(!h)return;const g=e.tryGetLock(h,s,{sourceEvent:m});if(!g)return;const v=m.touches[0],{clientX:y,clientY:x}=v,w={x:y,y:x};r.current(),d(g,w)}}),[e]),a=ce(function(){const m={capture:!0,passive:!1};r.current=Wt(window,[i],m)},[i]),s=ce(()=>{const f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),n(fs),r.current(),a())},[a,n]),l=ce(()=>{const f=t.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),c=ce(function(){const m={capture:!0,passive:!1},h={cancel:l,completed:s,getPhase:o},g=Wt(window,sO(h),m),v=Wt(window,aO(h),m);r.current=function(){g(),v()}},[l,o,s]),u=ce(function(){const m=o();m.type!=="PENDING"&&K();const h=m.actions.fluidLift(m.point);n({type:"DRAGGING",actions:h,hasMoved:!1})},[o,n]),d=ce(function(m,h){o().type!=="IDLE"&&K();const g=setTimeout(u,oO);n({type:"PENDING",point:h,actions:m,longPressTimerId:g}),c()},[c,o,n,u]);At(function(){return a(),function(){r.current();const h=o();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),n(fs))}},[o,a,n]),At(function(){return Wt(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const cO=["input","button","textarea","select","option","optgroup","video","audio"];function _h(e,t){if(t==null)return!1;if(cO.includes(t.tagName.toLowerCase()))return!0;const o=t.getAttribute("contenteditable");return o==="true"||o===""?!0:t===e?!1:_h(e,t.parentElement)}function uO(e,t){const r=t.target;return _a(r)?_h(e,r):!1}var dO=e=>rn(e.getBoundingClientRect()).center;function pO(e){return e instanceof wh(e).Element}const fO=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(o=>o in Element.prototype)||e})();function Eh(e,t){return e==null?null:e[fO](t)?e:Eh(e.parentElement,t)}function mO(e,t){return e.closest?e.closest(t):Eh(e,t)}function hO(e){return`[${Hr.contextId}="${e}"]`}function gO(e,t){const r=t.target;if(!pO(r))return null;const o=hO(e),n=mO(r,o);return!n||!_a(n)?null:n}function vO(e,t){const r=gO(e,t);return r?r.getAttribute(Hr.draggableId):null}function bO(e,t){const r=`[${Vs.contextId}="${e}"]`,n=Sh(document,r).find(i=>i.getAttribute(Vs.id)===t);return!n||!_a(n)?null:n}function yO(e){e.preventDefault()}function bi({expected:e,phase:t,isLockActive:r,shouldWarn:o}){return!(!r()||e!==t)}function Ph({lockAPI:e,store:t,registry:r,draggableId:o}){if(e.isClaimed())return!1;const n=r.draggable.findById(o);return!(!n||!n.options.isEnabled||!vh(t.getState(),o))}function xO({lockAPI:e,contextId:t,store:r,registry:o,draggableId:n,forceSensorStop:i,sourceEvent:a}){if(!Ph({lockAPI:e,store:r,registry:o,draggableId:n}))return null;const l=o.draggable.getById(n),c=bO(t,l.descriptor.id);if(!c||a&&!l.options.canDragInteractiveElements&&uO(c,a))return null;const u=e.claim(i||Hn);let d="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function m(){return e.isActive(u)}function h($,I){bi({expected:$,phase:d,isLockActive:m,shouldWarn:!0})&&r.dispatch(I())}const g=h.bind(null,"DRAGGING");function v($){function I(){e.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(I(),K()),r.dispatch(mP($.liftActionArgs)),d="DRAGGING";function j(k,T={shouldBlockNextClick:!1}){if($.cleanup(),T.shouldBlockNextClick){const R=Wt(window,[{eventName:"click",fn:yO,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(R)}I(),r.dispatch(ch({reason:k}))}return{isActive:()=>bi({expected:"DRAGGING",phase:d,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:f,drop:k=>j("DROP",k),cancel:k=>j("CANCEL",k),...$.actions}}function y($){const I=zo(k=>{g(()=>lh({client:k}))});return{...v({liftActionArgs:{id:n,clientSelection:$,movementMode:"FLUID"},cleanup:()=>I.cancel(),actions:{move:I}}),move:I}}function x(){const $={moveUp:()=>g($P),moveRight:()=>g(kP),moveDown:()=>g(IP),moveLeft:()=>g(CP)};return v({liftActionArgs:{id:n,clientSelection:dO(c),movementMode:"SNAP"},cleanup:Hn,actions:$})}function w(){bi({expected:"PRE_DRAG",phase:d,isLockActive:m,shouldWarn:!0})&&e.release()}return{isActive:()=>bi({expected:"PRE_DRAG",phase:d,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:y,snapLift:x,abort:w}}const SO=[Qj,rO,lO];function wO({contextId:e,store:t,registry:r,customSensors:o,enableDefaultSensors:n}){const i=[...n?SO:[],...o||[]],a=b.useState(()=>Fj())[0],s=ce(function(v,y){Uo(v)&&!Uo(y)&&a.tryAbandon()},[a]);At(function(){let v=t.getState();return t.subscribe(()=>{const x=t.getState();s(v,x),v=x})},[a,t,s]),At(()=>a.tryAbandon,[a.tryAbandon]);const l=ce(g=>Ph({lockAPI:a,registry:r,store:t,draggableId:g}),[a,r,t]),c=ce((g,v,y)=>xO({lockAPI:a,registry:r,contextId:e,store:t,draggableId:g,forceSensorStop:v||null,sourceEvent:y&&y.sourceEvent?y.sourceEvent:null}),[e,a,r,t]),u=ce(g=>vO(e,g),[e]),d=ce(g=>{const v=r.draggable.findById(g);return v?v.options:null},[r.draggable]),f=ce(function(){a.isClaimed()&&(a.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(Ul()))},[a,t]),m=ce(()=>a.isClaimed(),[a]),h=Be(()=>({canGetLock:l,tryGetLock:c,findClosestDraggableId:u,findOptionsForDraggable:d,tryReleaseLock:f,isLockClaimed:m}),[l,c,u,d,f,m]);for(let g=0;g<i.length;g++)i[g](h)}const $O=e=>({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};al.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),IO=e=>({...Lo,...e.autoScrollerOptions,durationDampening:{...Lo.durationDampening,...e.autoScrollerOptions}});function fo(e){return e.current||K(),e.current}function kO(e){const{contextId:t,setCallbacks:r,sensors:o,nonce:n,dragHandleUsageInstructions:i}=e,a=b.useRef(null),s=$h(e),l=ce(()=>$O(s.current),[s]),c=ce(()=>IO(s.current),[s]),u=zj(t),d=Nj({contextId:t,text:i}),f=Ej(t,n),m=ce(R=>{fo(a).dispatch(R)},[]),h=Be(()=>cp({publishWhileDragging:gP,updateDroppableScroll:bP,updateDroppableIsEnabled:yP,updateDroppableIsCombineEnabled:xP,collectionStarting:vP},m),[m]),g=Rj(),v=Be(()=>aj(g,h),[g,h]),y=Be(()=>$j({scrollWindow:sj,scrollDroppable:v.scrollDroppable,getAutoScrollerOptions:c,...cp({move:lh},m)}),[v.scrollDroppable,m,c]),x=jj(t),w=Be(()=>nj({announce:u,autoScroller:y,dimensionMarshal:v,focusMarshal:x,getResponders:l,styleMarshal:f}),[u,y,v,x,l,f]);a.current=w;const S=ce(()=>{const R=fo(a);R.getState().phase!=="IDLE"&&R.dispatch(Ul())},[]),$=ce(()=>{const R=fo(a).getState();return R.phase==="DROP_ANIMATING"?!0:R.phase==="IDLE"?!1:R.isDragging},[]),I=Be(()=>({isDragging:$,tryAbort:S}),[$,S]);r(I);const j=ce(R=>vh(fo(a).getState(),R),[]),k=ce(()=>sr(fo(a).getState()),[]),T=Be(()=>({marshal:v,focus:x,contextId:t,canLift:j,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:g}),[t,v,d,x,j,k,g]);return wO({contextId:t,store:w,registry:g,customSensors:o||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),b.useEffect(()=>S,[S]),Ve.createElement(Ea.Provider,{value:T},Ve.createElement(Y_,{context:Kl,store:w},e.children))}function CO(){return Ve.useId()}function jh(e){const t=CO(),r=e.dragHandleUsageInstructions||Ti.dragHandleUsageInstructions;return Ve.createElement(rE,null,o=>Ve.createElement(kO,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const Np={dragging:5e3,dropAnimating:4500},_O=(e,t)=>t?Po.drop(t.duration):e?Po.snap:Po.fluid,EO=(e,t)=>{if(e)return t?Fo.opacity.drop:Fo.opacity.combining},PO=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function jO(e){const r=e.dimension.client,{offset:o,combineWith:n,dropping:i}=e,a=!!n,s=PO(e),l=!!i,c=l?Us.drop(o,a):Us.moveTo(o);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:_O(s,i),transform:c,opacity:EO(a,l),zIndex:l?Np.dropAnimating:Np.dragging,pointerEvents:"none"}}function OO(e){return{transform:Us.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function RO(e){return e.type==="DRAGGING"?jO(e):OO(e)}function DO(e,t,r=pt){const o=window.getComputedStyle(t),n=t.getBoundingClientRect(),i=Am(n,o),a=Ki(i,r),s={client:i,tagName:t.tagName.toLowerCase(),display:o.display},l={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:s,displaceBy:l,client:i,page:a}}function TO(e){const t=ql("draggable"),{descriptor:r,registry:o,getDraggableRef:n,canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}=e,l=Be(()=>({canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}),[i,s,a]),c=ce(m=>{const h=n();return h||K(),DO(r,h,m)},[r,n]),u=Be(()=>({uniqueId:t,descriptor:r,options:l,getDimension:c}),[r,c,l,t]),d=b.useRef(u),f=b.useRef(!0);At(()=>(o.draggable.register(d.current),()=>o.draggable.unregister(d.current)),[o.draggable]),At(()=>{if(f.current){f.current=!1;return}const m=d.current;d.current=u,o.draggable.update(u,m)},[u,o.draggable])}var Xl=Ve.createContext(null);function Qi(e){const t=b.useContext(e);return t||K(),t}function zO(e){e.preventDefault()}const AO=e=>{const t=b.useRef(null),r=ce((I=null)=>{t.current=I},[]),o=ce(()=>t.current,[]),{contextId:n,dragHandleUsageInstructionsId:i,registry:a}=Qi(Ea),{type:s,droppableId:l}=Qi(Xl),c=Be(()=>({id:e.draggableId,index:e.index,type:s,droppableId:l}),[e.draggableId,e.index,s,l]),{children:u,draggableId:d,isEnabled:f,shouldRespectForcePress:m,canDragInteractiveElements:h,isClone:g,mapped:v,dropAnimationFinished:y}=e;if(!g){const I=Be(()=>({descriptor:c,registry:a,getDraggableRef:o,canDragInteractiveElements:h,shouldRespectForcePress:m,isEnabled:f}),[c,a,o,h,m,f]);TO(I)}const x=Be(()=>f?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":n,draggable:!1,onDragStart:zO}:null,[n,i,d,f]),w=ce(I=>{v.type==="DRAGGING"&&v.dropping&&I.propertyName==="transform"&&al.flushSync(y)},[y,v]),S=Be(()=>{const I=RO(v),j=v.type==="DRAGGING"&&v.dropping?w:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":n,"data-rfd-draggable-id":d,style:I,onTransitionEnd:j},dragHandleProps:x}},[n,x,d,v,w,r]),$=Be(()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}}),[c.droppableId,c.id,c.index,c.type]);return Ve.createElement(Ve.Fragment,null,u(S,v.snapshot,$))};var Oh=(e,t)=>e===t,Rh=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const MO=e=>e.combine?e.combine.draggableId:null,NO=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function FO(){const e=dt((n,i)=>({x:n,y:i})),t=dt((n,i,a=null,s=null,l=null)=>({isDragging:!0,isClone:i,isDropAnimating:!!l,dropAnimation:l,mode:n,draggingOver:a,combineWith:s,combineTargetFor:null})),r=dt((n,i,a,s,l=null,c=null,u=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:c,mode:i,offset:n,dimension:a,forceShouldAnimate:u,snapshot:t(i,s,l,c,null)}}));return(n,i)=>{if(Uo(n)){if(n.critical.draggable.id!==i.draggableId)return null;const a=n.current.client.offset,s=n.dimensions.draggables[i.draggableId],l=zt(n.impact),c=NO(n.impact),u=n.forceShouldAnimate;return r(e(a.x,a.y),n.movementMode,s,i.isClone,l,c,u)}if(n.phase==="DROP_ANIMATING"){const a=n.completed;if(a.result.draggableId!==i.draggableId)return null;const s=i.isClone,l=n.dimensions.draggables[i.draggableId],c=a.result,u=c.mode,d=Rh(c),f=MO(c),h={duration:n.dropDuration,curve:Vl.drop,moveTo:n.newHomeClientOffset,opacity:f?Fo.opacity.drop:null,scale:f?Fo.scale.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:l,dropping:h,draggingOver:d,combineWith:f,mode:u,forceShouldAnimate:null,snapshot:t(u,s,d,f,h)}}}return null}}function Dh(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const LO={mapped:{type:"SECONDARY",offset:pt,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Dh(null)}};function UO(){const e=dt((a,s)=>({x:a,y:s})),t=dt(Dh),r=dt((a,s=null,l)=>({mapped:{type:"SECONDARY",offset:a,combineTargetFor:s,shouldAnimateDisplacement:l,snapshot:t(s)}})),o=a=>a?r(pt,a,!0):null,n=(a,s,l,c)=>{const u=l.displaced.visible[a],d=!!(c.inVirtualList&&c.effected[a]),f=Ia(l),m=f&&f.draggableId===a?s:null;if(!u){if(!d)return o(m);if(l.displaced.invisible[a])return null;const v=eo(c.displacedBy.point),y=e(v.x,v.y);return r(y,m,!0)}if(d)return o(m);const h=l.displacedBy.point,g=e(h.x,h.y);return r(g,m,u.shouldAnimate)};return(a,s)=>{if(Uo(a))return a.critical.draggable.id===s.draggableId?null:n(s.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===s.draggableId?null:n(s.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const BO=()=>{const e=FO(),t=UO();return(o,n)=>e(o,n)||t(o,n)||LO},VO={dropAnimationFinished:uh},WO=zm(BO,VO,null,{context:Kl,areStatePropsEqual:Oh})(AO);function Th(e){return Qi(Xl).isUsingCloneFor===e.draggableId&&!e.isClone?null:Ve.createElement(WO,e)}function Yl(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,o=!!e.shouldRespectForcePress;return Ve.createElement(Th,il({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const zh=e=>t=>e===t,ZO=zh("scroll"),HO=zh("auto"),Fp=(e,t)=>t(e.overflowX)||t(e.overflowY),GO=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return Fp(r,ZO)||Fp(r,HO)},KO=()=>!1,Ah=e=>e==null?null:e===document.body?KO()?e:null:e===document.documentElement?null:GO(e)?e:Ah(e.parentElement);var Ws=e=>({x:e.scrollLeft,y:e.scrollTop});const Mh=e=>e?window.getComputedStyle(e).position==="fixed"?!0:Mh(e.parentElement):!1;var qO=e=>{const t=Ah(e),r=Mh(e);return{closestScrollable:t,isFixedOnPage:r}},JO=({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:o,direction:n,client:i,page:a,closest:s})=>{const l=(()=>{if(!s)return null;const{scrollSize:f,client:m}=s,h=mh({scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth,height:m.paddingBox.height,width:m.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:m,scrollSize:f,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:h,diff:{value:pt,displacement:pt}}}})(),c=n==="vertical"?Al:Gm,u=Wr({page:a,withPlaceholder:null,axis:c,frame:l});return{descriptor:e,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:t,client:i,page:a,frame:l,subject:u}};const XO=(e,t)=>{const r=Mm(e);if(!t||e!==t)return r;const o=r.paddingBox.top-t.scrollTop,n=r.paddingBox.left-t.scrollLeft,i=o+t.scrollHeight,a=n+t.scrollWidth,l=Rl({top:o,right:a,bottom:i,left:n},r.border);return Dl({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var YO=({ref:e,descriptor:t,env:r,windowScroll:o,direction:n,isDropDisabled:i,isCombineEnabled:a,shouldClipSubject:s})=>{const l=r.closestScrollable,c=XO(e,l),u=Ki(c,o),d=(()=>{if(!l)return null;const m=Mm(l),h={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:m,page:Ki(m,o),scroll:Ws(l),scrollSize:h,shouldClipSubject:s}})();return JO({descriptor:t,isEnabled:!i,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:n,client:c,page:u,closest:d})};const QO={passive:!1},eR={passive:!0};var Lp=e=>e.shouldPublishImmediately?QO:eR;const yi=e=>e&&e.env.closestScrollable||null;function tR(e){const t=b.useRef(null),r=Qi(Ea),o=ql("droppable"),{registry:n,marshal:i}=r,a=$h(e),s=Be(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=b.useRef(s),c=Be(()=>dt((S,$)=>{t.current||K();const I={x:S,y:$};i.updateDroppableScroll(s.id,I)}),[s.id,i]),u=ce(()=>{const S=t.current;return!S||!S.env.closestScrollable?pt:Ws(S.env.closestScrollable)},[]),d=ce(()=>{const S=u();c(S.x,S.y)},[u,c]),f=Be(()=>zo(d),[d]),m=ce(()=>{const S=t.current,$=yi(S);if(S&&$||K(),S.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),h=ce((S,$)=>{t.current&&K();const I=a.current,j=I.getDroppableRef();j||K();const k=qO(j),T={ref:j,descriptor:s,env:k,scrollOptions:$};t.current=T;const R=YO({ref:j,descriptor:s,env:k,windowScroll:S,direction:I.direction,isDropDisabled:I.isDropDisabled,isCombineEnabled:I.isCombineEnabled,shouldClipSubject:!I.ignoreContainerClipping}),E=k.closestScrollable;return E&&(E.setAttribute(Tp.contextId,r.contextId),E.addEventListener("scroll",m,Lp(T.scrollOptions))),R},[r.contextId,s,m,a]),g=ce(()=>{const S=t.current,$=yi(S);return S&&$||K(),Ws($)},[]),v=ce(()=>{const S=t.current;S||K();const $=yi(S);t.current=null,$&&(f.cancel(),$.removeAttribute(Tp.contextId),$.removeEventListener("scroll",m,Lp(S.scrollOptions)))},[m,f]),y=ce(S=>{const $=t.current;$||K();const I=yi($);I||K(),I.scrollTop+=S.y,I.scrollLeft+=S.x},[]),x=Be(()=>({getDimensionAndWatchScroll:h,getScrollWhileDragging:g,dragStopped:v,scroll:y}),[v,h,g,y]),w=Be(()=>({uniqueId:o,descriptor:s,callbacks:x}),[x,s,o]);At(()=>(l.current=w.descriptor,n.droppable.register(w),()=>{t.current&&v(),n.droppable.unregister(w)}),[x,s,v,w,i,n.droppable]),At(()=>{t.current&&i.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),At(()=>{t.current&&i.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function ms(){}const Up={width:0,height:0,margin:uE},nR=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||r==="close"?Up:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},rR=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{const o=nR({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Po.placeholder:null}},oR=e=>{const t=b.useRef(null),r=ce(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:o,onTransitionEnd:n,onClose:i,contextId:a}=e,[s,l]=b.useState(e.animate==="open");b.useEffect(()=>s?o!=="open"?(r(),l(!1),ms):t.current?ms:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):ms,[o,s,r]);const c=ce(d=>{d.propertyName==="height"&&(n(),o==="close"&&i())},[o,i,n]),u=rR({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return Ve.createElement(e.placeholder.tagName,{style:u,"data-rfd-placeholder-context-id":a,onTransitionEnd:c,ref:e.innerRef})};var iR=Ve.memo(oR);class aR extends Ve.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const sR=e=>{const t=b.useContext(Ea);t||K();const{contextId:r,isMovementAllowed:o}=t,n=b.useRef(null),i=b.useRef(null),{children:a,droppableId:s,type:l,mode:c,direction:u,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:m,snapshot:h,useClone:g,updateViewportMaxScroll:v,getContainerForClone:y}=e,x=ce(()=>n.current,[]),w=ce((E=null)=>{n.current=E},[]);ce(()=>i.current,[]);const S=ce((E=null)=>{i.current=E},[]),$=ce(()=>{o()&&v({maxScroll:gh()})},[o,v]);tR({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:f,isCombineEnabled:m,ignoreContainerClipping:d,getDroppableRef:x});const I=Be(()=>Ve.createElement(aR,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:E,data:A,animate:C})=>Ve.createElement(iR,{placeholder:A,onClose:E,innerRef:S,animate:C,contextId:r,onTransitionEnd:$})),[r,$,e.placeholder,e.shouldAnimatePlaceholder,S]),j=Be(()=>({innerRef:w,placeholder:I,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":r}}),[r,s,I,w]),k=g?g.dragging.draggableId:null,T=Be(()=>({droppableId:s,type:l,isUsingCloneFor:k}),[s,k,l]);function R(){if(!g)return null;const{dragging:E,render:A}=g,C=Ve.createElement(Th,{draggableId:E.draggableId,index:E.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(z,_)=>A(z,_,E));return go.createPortal(C,y())}return Ve.createElement(Xl.Provider,{value:T},a(j,h),R())};function lR(){return document.body||K(),document.body}const Bp={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:lR},Nh=e=>{let t={...e},r;for(r in Bp)e[r]===void 0&&(t={...t,[r]:Bp[r]});return t},hs=(e,t)=>e===t.droppable.type,Vp=(e,t)=>t.draggables[e.draggable.id],cR=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=dt(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),o=dt((i,a,s,l,c,u)=>{const d=c.descriptor.id;if(c.descriptor.droppableId===i){const h=u?{render:u,dragging:r(c.descriptor)}:null,g={isDraggingOver:s,draggingOverWith:s?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:h}}if(!a)return t;if(!l)return e;const m={isDraggingOver:s,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:m,useClone:null}});return(i,a)=>{const s=Nh(a),l=s.droppableId,c=s.type,u=!s.isDropDisabled,d=s.renderClone;if(Uo(i)){const f=i.critical;if(!hs(c,f))return t;const m=Vp(f,i.dimensions),h=zt(i.impact)===l;return o(l,u,h,h,m,d)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!hs(c,f.critical))return t;const m=Vp(f.critical,i.dimensions);return o(l,u,Rh(f.result)===l,zt(f.impact)===l,m,d)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!hs(c,f.critical))return t;const m=zt(f.impact)===l,h=!!(f.impact.at&&f.impact.at.type==="COMBINE"),g=f.critical.droppable.id===l;return m?h?e:t:g?e:t}return t}},uR={updateViewportMaxScroll:wP},ea=zm(cR,uR,(e,t,r)=>({...Nh(r),...e,...t}),{context:Kl,areStatePropsEqual:Oh})(sR),Fh=Object.freeze({status:"aborted"});function D(e,t,r){function o(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);const c=a.prototype,u=Object.keys(c);for(let d=0;d<u.length;d++){const f=u[d];f in s||(s[f]=c[f].bind(s))}}const n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var l;const c=r?.Parent?new i:this;o(c,s),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}const Lh=Symbol("zod_brand");class hr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ja extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const ta={};function It(e){return e&&Object.assign(ta,e),ta}function dR(e){return e}function pR(e){return e}function fR(e){}function mR(e){throw new Error}function hR(e){}function Ql(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function H(e,t="|"){return e.map(r=>Ie(r)).join(t)}function na(e,t){return typeof t=="bigint"?t.toString():t}function Jo(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Er(e){return e==null}function Oa(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Uh(e,t){const r=(e.toString().split(".")[1]||"").length,o=t.toString();let n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){const l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}const i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}const Wp=Symbol("evaluating");function Ue(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Wp)return o===void 0&&(o=Wp,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function gR(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function er(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Un(...e){const t={};for(const r of e){const o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function vR(e){return Un(e._zod.def)}function bR(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function yR(e){const t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{const n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function xR(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Zs(e){return JSON.stringify(e)}function Bh(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ec="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Vh=Jo(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function yr(e){if(Gr(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(Gr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Ra(e){return yr(e)?{...e}:Array.isArray(e)?[...e]:e}function SR(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const wR=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},ra=new Set(["string","number","symbol"]),Wh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ln(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xt(e,t,r){const o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function L(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function $R(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function Ie(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Zh(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Hh={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Gh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Kh(e,t){const r=e._zod.def,o=Un(e._zod.def,{get shape(){const n={};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(n[i]=r.shape[i])}return er(this,"shape",n),n},checks:[]});return Xt(e,o)}function qh(e,t){const r=e._zod.def,o=Un(e._zod.def,{get shape(){const n={...e._zod.def.shape};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete n[i]}return er(this,"shape",n),n},checks:[]});return Xt(e,o)}function Jh(e,t){if(!yr(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const n=Un(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return er(this,"shape",i),i},checks:[]});return Xt(e,n)}function Xh(e,t){if(!yr(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const o={...e._zod.def.shape,...t};return er(this,"shape",o),o},checks:e._zod.def.checks};return Xt(e,r)}function Yh(e,t){const r=Un(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return er(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return Xt(e,r)}function Qh(e,t,r){const o=Un(t._zod.def,{get shape(){const n=t._zod.def.shape,i={...n};if(r)for(const a in r){if(!(a in n))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=e?new e({type:"optional",innerType:n[a]}):n[a])}else for(const a in n)i[a]=e?new e({type:"optional",innerType:n[a]}):n[a];return er(this,"shape",i),i},checks:[]});return Xt(t,o)}function eg(e,t,r){const o=Un(t._zod.def,{get shape(){const n=t._zod.def.shape,i={...n};if(r)for(const a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(const a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return er(this,"shape",i),i},checks:[]});return Xt(t,o)}function dr(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function on(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function xo(e){return typeof e=="string"?e:e?.message}function ln(e,t,r){const o={...e,path:e.path??[]};if(!e.message){const n=xo(e.inst?._zod.def?.error?.(e))??xo(t?.error?.(e))??xo(r.customError?.(e))??xo(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function Da(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ta(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Kr(...e){const[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function IR(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function tg(e){const t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function ng(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function kR(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return tg(t+r)}function CR(e){return ng(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function _R(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function ER(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class PR{constructor(...t){}}const rg=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Gh,Class:PR,NUMBER_FORMAT_RANGES:Hh,aborted:dr,allowsEval:Vh,assert:hR,assertEqual:dR,assertIs:fR,assertNever:mR,assertNotEqual:pR,assignProp:er,base64ToUint8Array:tg,base64urlToUint8Array:kR,cached:Jo,captureStackTrace:ec,cleanEnum:IR,cleanRegex:Oa,clone:Xt,cloneDef:vR,createTransparentProxy:$R,defineLazy:Ue,esc:Zs,escapeRegex:Ln,extend:Jh,finalizeIssue:ln,floatSafeRemainder:Uh,getElementAtPath:bR,getEnumValues:Ql,getLengthableOrigin:Ta,getParsedType:wR,getSizableOrigin:Da,hexToUint8Array:_R,isObject:Gr,isPlainObject:yr,issue:Kr,joinValues:H,jsonStringifyReplacer:na,merge:Yh,mergeDefs:Un,normalizeParams:L,nullish:Er,numKeys:SR,objectClone:gR,omit:qh,optionalKeys:Zh,partial:Qh,pick:Kh,prefixIssues:on,primitiveTypes:Wh,promiseAllObject:yR,propertyKeyTypes:ra,randomString:xR,required:eg,safeExtend:Xh,shallowClone:Ra,slugify:Bh,stringifyPrimitive:Ie,uint8ArrayToBase64:ng,uint8ArrayToBase64url:CR,uint8ArrayToHex:ER,unwrapMessage:xo},Symbol.toStringTag,{value:"Module"})),og=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,na,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tc=D("$ZodError",og),Nt=D("$ZodError",og,{Parent:Error});function nc(e,t=r=>r.message){const r={},o=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function rc(e,t=r=>r.message){const r={_errors:[]},o=n=>{for(const i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,s=0;for(;s<i.path.length;){const l=i.path[s];s===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(i))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return o(e),r}function ig(e,t=r=>r.message){const r={errors:[]},o=(n,i=[])=>{var a,s;for(const l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>o({issues:c},l.path));else if(l.code==="invalid_key")o({issues:l.issues},l.path);else if(l.code==="invalid_element")o({issues:l.issues},l.path);else{const c=[...i,...l.path];if(c.length===0){r.errors.push(t(l));continue}let u=r,d=0;for(;d<c.length;){const f=c[d],m=d===c.length-1;typeof f=="string"?(u.properties??(u.properties={}),(a=u.properties)[f]??(a[f]={errors:[]}),u=u.properties[f]):(u.items??(u.items=[]),(s=u.items)[f]??(s[f]={errors:[]}),u=u.items[f]),m&&u.errors.push(t(l)),d++}}};return o(e),r}function ag(e){const t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(const o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function sg(e){const t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(const o of r)t.push(`✖ ${o.message}`),o.path?.length&&t.push(` → at ${ag(o.path)}`);return t.join(`
|
|
161
|
+
`)}const Xo=e=>(t,r,o,n)=>{const i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new hr;if(a.issues.length){const s=new(n?.Err??e)(a.issues.map(l=>ln(l,i,It())));throw ec(s,n?.callee),s}return a.value},Hs=Xo(Nt),Yo=e=>async(t,r,o,n)=>{const i=o?Object.assign(o,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(n?.Err??e)(a.issues.map(l=>ln(l,i,It())));throw ec(s,n?.callee),s}return a.value},Gs=Yo(Nt),Qo=e=>(t,r,o)=>{const n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new hr;return i.issues.length?{success:!1,error:new(e??tc)(i.issues.map(a=>ln(a,n,It())))}:{success:!0,data:i.value}},lg=Qo(Nt),ei=e=>async(t,r,o)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>ln(a,n,It())))}:{success:!0,data:i.value}},cg=ei(Nt),oc=e=>(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Xo(e)(t,r,n)},jR=oc(Nt),ic=e=>(t,r,o)=>Xo(e)(t,r,o),OR=ic(Nt),ac=e=>async(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Yo(e)(t,r,n)},RR=ac(Nt),sc=e=>async(t,r,o)=>Yo(e)(t,r,o),DR=sc(Nt),lc=e=>(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Qo(e)(t,r,n)},TR=lc(Nt),cc=e=>(t,r,o)=>Qo(e)(t,r,o),zR=cc(Nt),uc=e=>async(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return ei(e)(t,r,n)},AR=uc(Nt),dc=e=>async(t,r,o)=>ei(e)(t,r,o),MR=dc(Nt),ug=/^[cC][^\s-]{8,}$/,dg=/^[0-9a-z]+$/,pg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,fg=/^[0-9a-vA-V]{20}$/,mg=/^[A-Za-z0-9]{27}$/,hg=/^[a-zA-Z0-9_-]{21}$/,gg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,NR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,vg=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,FR=qr(4),LR=qr(6),UR=qr(7),bg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,BR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,VR=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,yg=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,WR=yg,ZR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,HR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function xg(){return new RegExp(HR,"u")}const Sg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,wg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$g=e=>{const t=Ln(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ig=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,kg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Cg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pc=/^[A-Za-z0-9_-]*$/,_g=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Eg=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Pg=/^\+(?:[0-9]){6,14}[0-9]$/,jg="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Og=new RegExp(`^${jg}$`);function Rg(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Dg(e){return new RegExp(`^${Rg(e)}$`)}function Tg(e){const t=Rg({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${r.join("|")})`;return new RegExp(`^${jg}T(?:${o})$`)}const zg=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ag=/^-?\d+n?$/,Mg=/^-?\d+$/,Ng=/^-?\d+(?:\.\d+)?/,Fg=/^(?:true|false)$/i,Lg=/^null$/i,Ug=/^undefined$/i,Bg=/^[^A-Z]*$/,Vg=/^[^a-z]*$/,Wg=/^[0-9a-fA-F]*$/;function ti(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ni(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const GR=/^[0-9a-fA-F]{32}$/,KR=ti(22,"=="),qR=ni(22),JR=/^[0-9a-fA-F]{40}$/,XR=ti(27,"="),YR=ni(27),QR=/^[0-9a-fA-F]{64}$/,eD=ti(43,"="),tD=ni(43),nD=/^[0-9a-fA-F]{96}$/,rD=ti(64,""),oD=ni(64),iD=/^[0-9a-fA-F]{128}$/,aD=ti(86,"=="),sD=ni(86),fc=Object.freeze(Object.defineProperty({__proto__:null,base64:Cg,base64url:pc,bigint:Ag,boolean:Fg,browserEmail:ZR,cidrv4:Ig,cidrv6:kg,cuid:ug,cuid2:dg,date:Og,datetime:Tg,domain:Eg,duration:gg,e164:Pg,email:bg,emoji:xg,extendedDuration:NR,guid:vg,hex:Wg,hostname:_g,html5Email:BR,idnEmail:WR,integer:Mg,ipv4:Sg,ipv6:wg,ksuid:mg,lowercase:Bg,mac:$g,md5_base64:KR,md5_base64url:qR,md5_hex:GR,nanoid:hg,null:Lg,number:Ng,rfc5322Email:VR,sha1_base64:XR,sha1_base64url:YR,sha1_hex:JR,sha256_base64:eD,sha256_base64url:tD,sha256_hex:QR,sha384_base64:rD,sha384_base64url:oD,sha384_hex:nD,sha512_base64:aD,sha512_base64url:sD,sha512_hex:iD,string:zg,time:Dg,ulid:pg,undefined:Ug,unicodeEmail:yg,uppercase:Vg,uuid:qr,uuid4:FR,uuid6:LR,uuid7:UR,xid:fg},Symbol.toStringTag,{value:"Module"})),at=D("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Zg={number:"number",bigint:"bigint",object:"date"},mc=D("$ZodCheckLessThan",(e,t)=>{at.init(e,t);const r=Zg[typeof t.value];e._zod.onattach.push(o=>{const n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hc=D("$ZodCheckGreaterThan",(e,t)=>{at.init(e,t);const r=Zg[typeof t.value];e._zod.onattach.push(o=>{const n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Hg=D("$ZodCheckMultipleOf",(e,t)=>{at.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Uh(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Gg=D("$ZodCheckNumberFormat",(e,t)=>{at.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Hh[t.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=Mg)}),e._zod.check=a=>{const s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inst:e})}}),Kg=D("$ZodCheckBigIntFormat",(e,t)=>{at.init(e,t);const[r,o]=Gh[t.format];e._zod.onattach.push(n=>{const i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{const i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inst:e})}}),qg=D("$ZodCheckMaxSize",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=o=>{const n=o.value;return!Er(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const n=o.value;n.size<=t.maximum||o.issues.push({origin:Da(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Jg=D("$ZodCheckMinSize",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=o=>{const n=o.value;return!Er(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const n=o.value;n.size>=t.minimum||o.issues.push({origin:Da(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Xg=D("$ZodCheckSizeEquals",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=o=>{const n=o.value;return!Er(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{const n=o.value,i=n.size;if(i===t.size)return;const a=i>t.size;o.issues.push({origin:Da(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Yg=D("$ZodCheckMaxLength",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=o=>{const n=o.value;return!Er(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const n=o.value;if(n.length<=t.maximum)return;const a=Ta(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Qg=D("$ZodCheckMinLength",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=o=>{const n=o.value;return!Er(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const n=o.value;if(n.length>=t.minimum)return;const a=Ta(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ev=D("$ZodCheckLengthEquals",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=o=>{const n=o.value;return!Er(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{const n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{const n=o.value,i=n.length;if(i===t.length)return;const a=Ta(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),ri=D("$ZodCheckStringFormat",(e,t)=>{var r,o;at.init(e,t),e._zod.onattach.push(n=>{const i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),tv=D("$ZodCheckRegex",(e,t)=>{ri.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),nv=D("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Bg),ri.init(e,t)}),rv=D("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Vg),ri.init(e,t)}),ov=D("$ZodCheckIncludes",(e,t)=>{at.init(e,t);const r=Ln(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),iv=D("$ZodCheckStartsWith",(e,t)=>{at.init(e,t);const r=new RegExp(`^${Ln(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),av=D("$ZodCheckEndsWith",(e,t)=>{at.init(e,t);const r=new RegExp(`.*${Ln(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Zp(e,t,r){e.issues.length&&t.issues.push(...on(r,e.issues))}const sv=D("$ZodCheckProperty",(e,t)=>{at.init(e,t),e._zod.check=r=>{const o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>Zp(n,r,t.property));Zp(o,r,t.property)}}),lv=D("$ZodCheckMimeType",(e,t)=>{at.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),cv=D("$ZodCheckOverwrite",(e,t)=>{at.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class uv{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
|
|
162
|
+
`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
|
|
163
|
+
`))}}const dv={major:4,minor:1,patch:13},Oe=D("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=dv;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const n of o)for(const i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const n=(a,s,l)=>{let c=dr(a),u;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(c)continue;const f=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&l?.async===!1)throw new hr;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(c||(c=dr(a,f)))});else{if(a.issues.length===f)continue;c||(c=dr(a,f))}}return u?u.then(()=>a):a},i=(a,s,l)=>{if(dr(a))return a.aborted=!0,a;const c=n(s,o,l);if(c instanceof Promise){if(l.async===!1)throw new hr;return c.then(u=>e._zod.parse(u,l))}return e._zod.parse(c,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,a,s)):i(c,a,s)}const l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new hr;return l.then(c=>n(c,o,s))}return n(l,o,s)}}e["~standard"]={validate:n=>{try{const i=lg(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return cg(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),oi=D("$ZodString",(e,t)=>{Oe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??zg(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Qe=D("$ZodStringFormat",(e,t)=>{ri.init(e,t),oi.init(e,t)}),pv=D("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vg),Qe.init(e,t)}),fv=D("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qr(o))}else t.pattern??(t.pattern=qr());Qe.init(e,t)}),mv=D("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=bg),Qe.init(e,t)}),hv=D("$ZodURL",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{try{const o=r.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),gv=D("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=xg()),Qe.init(e,t)}),vv=D("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=hg),Qe.init(e,t)}),bv=D("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ug),Qe.init(e,t)}),yv=D("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=dg),Qe.init(e,t)}),xv=D("$ZodULID",(e,t)=>{t.pattern??(t.pattern=pg),Qe.init(e,t)}),Sv=D("$ZodXID",(e,t)=>{t.pattern??(t.pattern=fg),Qe.init(e,t)}),wv=D("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=mg),Qe.init(e,t)}),$v=D("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Tg(t)),Qe.init(e,t)}),Iv=D("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Og),Qe.init(e,t)}),kv=D("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Dg(t)),Qe.init(e,t)}),Cv=D("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=gg),Qe.init(e,t)}),_v=D("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Sg),Qe.init(e,t),e._zod.bag.format="ipv4"}),Ev=D("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=wg),Qe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Pv=D("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=$g(t.delimiter)),Qe.init(e,t),e._zod.bag.format="mac"}),jv=D("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ig),Qe.init(e,t)}),Ov=D("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=kg),Qe.init(e,t),e._zod.check=r=>{const o=r.value.split("/");try{if(o.length!==2)throw new Error;const[n,i]=o;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function gc(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Rv=D("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Cg),Qe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{gc(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Dv(e){if(!pc.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return gc(r)}const Tv=D("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=pc),Qe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Dv(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),zv=D("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Pg),Qe.init(e,t)});function Av(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[o]=r;if(!o)return!1;const n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const Mv=D("$ZodJWT",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{Av(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Nv=D("$ZodCustomStringFormat",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),vc=D("$ZodNumber",(e,t)=>{Oe.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ng,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Fv=D("$ZodNumberFormat",(e,t)=>{Gg.init(e,t),vc.init(e,t)}),bc=D("$ZodBoolean",(e,t)=>{Oe.init(e,t),e._zod.pattern=Fg,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),yc=D("$ZodBigInt",(e,t)=>{Oe.init(e,t),e._zod.pattern=Ag,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Lv=D("$ZodBigIntFormat",(e,t)=>{Kg.init(e,t),yc.init(e,t)}),Uv=D("$ZodSymbol",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Bv=D("$ZodUndefined",(e,t)=>{Oe.init(e,t),e._zod.pattern=Ug,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Vv=D("$ZodNull",(e,t)=>{Oe.init(e,t),e._zod.pattern=Lg,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Wv=D("$ZodAny",(e,t)=>{Oe.init(e,t),e._zod.parse=r=>r}),Zv=D("$ZodUnknown",(e,t)=>{Oe.init(e,t),e._zod.parse=r=>r}),Hv=D("$ZodNever",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Gv=D("$ZodVoid",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Kv=D("$ZodDate",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Hp(e,t,r){e.issues.length&&t.issues.push(...on(r,e.issues)),t.value[r]=e.value}const qv=D("$ZodArray",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const i=[];for(let a=0;a<n.length;a++){const s=n[a],l=t.element._zod.run({value:s,issues:[]},o);l instanceof Promise?i.push(l.then(c=>Hp(c,r,a))):Hp(l,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function oa(e,t,r,o){e.issues.length&&t.issues.push(...on(r,e.issues)),e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function Jv(e){const t=Object.keys(e.shape);for(const o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);const r=Zh(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Xv(e,t,r,o,n,i){const a=[],s=n.keySet,l=n.catchall._zod,c=l.def.type;for(const u in t){if(s.has(u))continue;if(c==="never"){a.push(u);continue}const d=l.run({value:t[u],issues:[]},o);d instanceof Promise?e.push(d.then(f=>oa(f,r,u,t))):oa(d,r,u,t)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}const Yv=D("$ZodObject",(e,t)=>{if(Oe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}const o=Jo(()=>Jv(t));Ue(e._zod,"propValues",()=>{const s=t.shape,l={};for(const c in s){const u=s[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(const d of u.values)l[c].add(d)}}return l});const n=Gr,i=t.catchall;let a;e._zod.parse=(s,l)=>{a??(a=o.value);const c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};const u=[],d=a.shape;for(const f of a.keys){const h=d[f]._zod.run({value:c[f],issues:[]},l);h instanceof Promise?u.push(h.then(g=>oa(g,s,f,c))):oa(h,s,f,c)}return i?Xv(u,c,s,l,o.value,e):u.length?Promise.all(u).then(()=>s):s}}),Qv=D("$ZodObjectJIT",(e,t)=>{Yv.init(e,t);const r=e._zod.parse,o=Jo(()=>Jv(t)),n=f=>{const m=new uv(["shape","payload","ctx"]),h=o.value,g=w=>{const S=Zs(w);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};m.write("const input = payload.value;");const v=Object.create(null);let y=0;for(const w of h.keys)v[w]=`key_${y++}`;m.write("const newResult = {};");for(const w of h.keys){const S=v[w],$=Zs(w);m.write(`const ${S} = ${g(w)};`),m.write(`
|
|
164
|
+
if (${S}.issues.length) {
|
|
165
|
+
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
166
|
+
...iss,
|
|
167
|
+
path: iss.path ? [${$}, ...iss.path] : [${$}]
|
|
168
|
+
})));
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
if (${S}.value === undefined) {
|
|
173
|
+
if (${$} in input) {
|
|
174
|
+
newResult[${$}] = undefined;
|
|
175
|
+
}
|
|
176
|
+
} else {
|
|
177
|
+
newResult[${$}] = ${S}.value;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");const x=m.compile();return(w,S)=>x(f,w,S)};let i;const a=Gr,s=!ta.jitless,c=s&&Vh.value,u=t.catchall;let d;e._zod.parse=(f,m)=>{d??(d=o.value);const h=f.value;return a(h)?s&&c&&m?.async===!1&&m.jitless!==!0?(i||(i=n(t.shape)),f=i(f,m),u?Xv([],h,f,m,d,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f)}});function Gp(e,t,r,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const n=e.filter(i=>!dr(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>ln(a,o,It())))}),t)}const xc=D("$ZodUnion",(e,t)=>{Oe.init(e,t),Ue(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Ue(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Ue(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Ue(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Oa(i.source)).join("|")})$`)}});const r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1;const s=[];for(const l of t.options){const c=l._zod.run({value:n.value,issues:[]},i);if(c instanceof Promise)s.push(c),a=!0;else{if(c.issues.length===0)return c;s.push(c)}}return a?Promise.all(s).then(l=>Gp(l,n,e,i)):Gp(s,n,e,i)}}),eb=D("$ZodDiscriminatedUnion",(e,t)=>{xc.init(e,t);const r=e._zod.parse;Ue(e._zod,"propValues",()=>{const n={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[s,l]of Object.entries(a)){n[s]||(n[s]=new Set);for(const c of l)n[s].add(c)}}return n});const o=Jo(()=>{const n=t.options,i=new Map;for(const a of n){const s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const l of s){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,a)}}return i});e._zod.parse=(n,i)=>{const a=n.value;if(!Gr(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;const s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),tb=D("$ZodIntersection",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{const n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([l,c])=>Kp(r,l,c)):Kp(r,i,a)}});function Ks(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(yr(e)&&yr(t)){const r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(const i of o){const a=Ks(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let o=0;o<e.length;o++){const n=e[o],i=t[o],a=Ks(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Kp(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),dr(e))return e;const o=Ks(t.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Sc=D("$ZodTuple",(e,t)=>{Oe.init(e,t);const r=t.items;e._zod.parse=(o,n)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const a=[],s=[...r].reverse().findIndex(u=>u._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){const u=i.length>r.length,d=i.length<l-1;if(u||d)return o.issues.push({...u?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let c=-1;for(const u of r){if(c++,c>=i.length&&c>=l)continue;const d=u._zod.run({value:i[c],issues:[]},n);d instanceof Promise?a.push(d.then(f=>xi(f,o,c))):xi(d,o,c)}if(t.rest){const u=i.slice(r.length);for(const d of u){c++;const f=t.rest._zod.run({value:d,issues:[]},n);f instanceof Promise?a.push(f.then(m=>xi(m,o,c))):xi(f,o,c)}}return a.length?Promise.all(a).then(()=>o):o}});function xi(e,t,r){e.issues.length&&t.issues.push(...on(r,e.issues)),t.value[r]=e.value}const nb=D("$ZodRecord",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;if(!yr(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const i=[],a=t.keyType._zod.values;if(a){r.value={};const s=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);const u=t.valueType._zod.run({value:n[c],issues:[]},o);u instanceof Promise?i.push(u.then(d=>{d.issues.length&&r.issues.push(...on(c,d.issues)),r.value[c]=d.value})):(u.issues.length&&r.issues.push(...on(c,u.issues)),r.value[c]=u.value)}let l;for(const c in n)s.has(c)||(l=l??[],l.push(c));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(const s of Reflect.ownKeys(n)){if(s==="__proto__")continue;const l=t.keyType._zod.run({value:s,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(u=>ln(u,o,It())),input:s,path:[s],inst:e}),r.value[l.value]=l.value;continue}const c=t.valueType._zod.run({value:n[s],issues:[]},o);c instanceof Promise?i.push(c.then(u=>{u.issues.length&&r.issues.push(...on(s,u.issues)),r.value[l.value]=u.value})):(c.issues.length&&r.issues.push(...on(s,c.issues)),r.value[l.value]=c.value)}}return i.length?Promise.all(i).then(()=>r):r}}),rb=D("$ZodMap",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;const i=[];r.value=new Map;for(const[a,s]of n){const l=t.keyType._zod.run({value:a,issues:[]},o),c=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||c instanceof Promise?i.push(Promise.all([l,c]).then(([u,d])=>{qp(u,d,r,a,n,e,o)})):qp(l,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function qp(e,t,r,o,n,i,a){e.issues.length&&(ra.has(typeof o)?r.issues.push(...on(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>ln(s,a,It()))})),t.issues.length&&(ra.has(typeof o)?r.issues.push(...on(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>ln(s,a,It()))})),r.value.set(e.value,t.value)}const ob=D("$ZodSet",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;const i=[];r.value=new Set;for(const a of n){const s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(l=>Jp(l,r))):Jp(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function Jp(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const ib=D("$ZodEnum",(e,t)=>{Oe.init(e,t);const r=Ql(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>ra.has(typeof n)).map(n=>typeof n=="string"?Ln(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{const a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),ab=D("$ZodLiteral",(e,t)=>{if(Oe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Ln(o):o?Ln(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),sb=D("$ZodFile",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),lb=D("$ZodTransform",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ja(e.constructor.name);const n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new hr;return r.value=n,r}});function Xp(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const cb=D("$ZodOptional",(e,t)=>{Oe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ue(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Oa(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){const n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Xp(i,r.value)):Xp(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),ub=D("$ZodNullable",(e,t)=>{Oe.init(e,t),Ue(e._zod,"optin",()=>t.innerType._zod.optin),Ue(e._zod,"optout",()=>t.innerType._zod.optout),Ue(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Oa(r.source)}|null)$`):void 0}),Ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),db=D("$ZodDefault",(e,t)=>{Oe.init(e,t),e._zod.optin="optional",Ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Yp(i,t)):Yp(n,t)}});function Yp(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const pb=D("$ZodPrefault",(e,t)=>{Oe.init(e,t),e._zod.optin="optional",Ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),fb=D("$ZodNonOptional",(e,t)=>{Oe.init(e,t),Ue(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{const n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Qp(i,e)):Qp(n,e)}});function Qp(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const mb=D("$ZodSuccess",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ja("ZodSuccess");const n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),hb=D("$ZodCatch",(e,t)=>{Oe.init(e,t),Ue(e._zod,"optin",()=>t.innerType._zod.optin),Ue(e._zod,"optout",()=>t.innerType._zod.optout),Ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);const n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>ln(a,o,It()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>ln(i,o,It()))},input:r.value}),r.issues=[]),r)}}),gb=D("$ZodNaN",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),vb=D("$ZodPipe",(e,t)=>{Oe.init(e,t),Ue(e._zod,"values",()=>t.in._zod.values),Ue(e._zod,"optin",()=>t.in._zod.optin),Ue(e._zod,"optout",()=>t.out._zod.optout),Ue(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Si(a,t.in,o)):Si(i,t.in,o)}const n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Si(i,t.out,o)):Si(n,t.out,o)}});function Si(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const wc=D("$ZodCodec",(e,t)=>{Oe.init(e,t),Ue(e._zod,"values",()=>t.in._zod.values),Ue(e._zod,"optin",()=>t.in._zod.optin),Ue(e._zod,"optout",()=>t.out._zod.optout),Ue(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){const i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>wi(a,t,o)):wi(i,t,o)}else{const i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>wi(a,t,o)):wi(i,t,o)}}});function wi(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>$i(e,i,t.out,r)):$i(e,n,t.out,r)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>$i(e,i,t.in,r)):$i(e,n,t.in,r)}}function $i(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}const bb=D("$ZodReadonly",(e,t)=>{Oe.init(e,t),Ue(e._zod,"propValues",()=>t.innerType._zod.propValues),Ue(e._zod,"values",()=>t.innerType._zod.values),Ue(e._zod,"optin",()=>t.innerType?._zod?.optin),Ue(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);const n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(ef):ef(n)}});function ef(e){return e.value=Object.freeze(e.value),e}const yb=D("$ZodTemplateLiteral",(e,t)=>{Oe.init(e,t);const r=[];for(const o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);const n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);const i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||Wh.has(typeof o))r.push(Ln(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"template_literal",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),xb=D("$ZodFunction",(e,t)=>(Oe.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){const n=e._def.input?Hs(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Hs(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){const n=e._def.input?await Gs(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Gs(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new Sc({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),Sb=D("$ZodPromise",(e,t)=>{Oe.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),wb=D("$ZodLazy",(e,t)=>{Oe.init(e,t),Ue(e._zod,"innerType",()=>t.getter()),Ue(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ue(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ue(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ue(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),$b=D("$ZodCustom",(e,t)=>{at.init(e,t),Oe.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{const o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>tf(i,r,o,e));tf(n,r,o,e)}});function tf(e,t,r,o){if(!e){const n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Kr(n))}}const lD=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return n=>{switch(n.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${n.expected}، ولكن تم إدخال ${r(n.input)}`;case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Ie(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${i} ${n.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${i} ${n.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:i.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"`:i.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"`:i.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}`:`${o[i.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${H(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function cD(){return{localeError:lD()}}const uD=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${n.expected}, daxil olan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${Ie(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Çox kiçik: gözlənilən ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Yanlış mətn: "${i.prefix}" ilə başlamalıdır`:i.format==="ends_with"?`Yanlış mətn: "${i.suffix}" ilə bitməlidir`:i.format==="includes"?`Yanlış mətn: "${i.includes}" daxil olmalıdır`:i.format==="regex"?`Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${o[i.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function dD(){return{localeError:uD()}}function nf(e,t,r,o){const n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}const pD=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"лік";case"object":{if(Array.isArray(n))return"масіў";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return n=>{switch(n.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${n.expected}, атрымана ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${Ie(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);if(a){const s=Number(n.maximum),l=nf(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${a.verb} ${i}${n.maximum.toString()} ${l}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);if(a){const s=Number(n.minimum),l=nf(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${a.verb} ${i}${n.minimum.toString()} ${l}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${i.prefix}"`:i.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${i.suffix}"`:i.format==="includes"?`Няправільны радок: павінен змяшчаць "${i.includes}"`:i.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${i.pattern}`:`Няправільны ${o[i.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${H(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function fD(){return{localeError:pD()}}const mD=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":{if(Array.isArray(e))return"масив";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},hD=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(o){return e[o]??null}const r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"};return o=>{switch(o.code){case"invalid_type":return`Невалиден вход: очакван ${o.expected}, получен ${mD(o.input)}`;case"invalid_value":return o.values.length===1?`Невалиден вход: очакван ${Ie(o.values[0])}`:`Невалидна опция: очаквано едно от ${H(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=t(o.origin);return i?`Твърде голямо: очаква се ${o.origin??"стойност"} да съдържа ${n}${o.maximum.toString()} ${i.unit??"елемента"}`:`Твърде голямо: очаква се ${o.origin??"стойност"} да бъде ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=t(o.origin);return i?`Твърде малко: очаква се ${o.origin} да съдържа ${n}${o.minimum.toString()} ${i.unit}`:`Твърде малко: очаква се ${o.origin} да бъде ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;if(n.format==="starts_with")return`Невалиден низ: трябва да започва с "${n.prefix}"`;if(n.format==="ends_with")return`Невалиден низ: трябва да завършва с "${n.suffix}"`;if(n.format==="includes")return`Невалиден низ: трябва да включва "${n.includes}"`;if(n.format==="regex")return`Невалиден низ: трябва да съвпада с ${n.pattern}`;let i="Невалиден";return n.format==="emoji"&&(i="Невалидно"),n.format==="datetime"&&(i="Невалидно"),n.format==="date"&&(i="Невалидна"),n.format==="time"&&(i="Невалидно"),n.format==="duration"&&(i="Невалидна"),`${i} ${r[n.format]??o.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${o.divisor}`;case"unrecognized_keys":return`Неразпознат${o.keys.length>1?"и":""} ключ${o.keys.length>1?"ове":""}: ${H(o.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${o.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${o.origin}`;default:return"Невалиден вход"}}};function gD(){return{localeError:hD()}}const vD=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Tipus invàlid: s'esperava ${n.expected}, s'ha rebut ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${Ie(n.values[0])}`:`Opció invàlida: s'esperava una de ${H(n.values," o ")}`;case"too_big":{const i=n.inclusive?"com a màxim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?"com a mínim":"més de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingués ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Format invàlid: ha de començar amb "${i.prefix}"`:i.format==="ends_with"?`Format invàlid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format invàlid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${i.pattern}`:`Format invàlid per a ${o[i.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function bD(){return{localeError:vD()}}const yD=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(n))return"pole";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return n=>{switch(n.code){case"invalid_type":return`Neplatný vstup: očekáváno ${n.expected}, obdrženo ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${Ie(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${i}${n.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${i}${n.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Neplatný řetězec: musí začínat na "${i.prefix}"`:i.format==="ends_with"?`Neplatný řetězec: musí končit na "${i.suffix}"`:i.format==="includes"?`Neplatný řetězec: musí obsahovat "${i.includes}"`:i.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${i.pattern}`:`Neplatný formát ${o[i.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${H(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function xD(){return{localeError:yD()}}const SD=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function r(a){return e[a]??null}function o(a){return t[a]??a}const n=a=>{const s=typeof a;switch(s){case"number":return Number.isNaN(a)?"NaN":"tal";case"object":return Array.isArray(a)?"liste":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype&&a.constructor?a.constructor.name:"objekt"}return s},i={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Ugyldigt input: forventede ${o(a.expected)}, fik ${o(n(a.input))}`;case"invalid_value":return a.values.length===1?`Ugyldig værdi: forventede ${Ie(a.values[0])}`:`Ugyldigt valg: forventede en af følgende ${H(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",l=r(a.origin),c=o(a.origin);return l?`For stor: forventede ${c??"value"} ${l.verb} ${s} ${a.maximum.toString()} ${l.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${s} ${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",l=r(a.origin),c=o(a.origin);return l?`For lille: forventede ${c} ${l.verb} ${s} ${a.minimum.toString()} ${l.unit}`:`For lille: forventede ${c} havde ${s} ${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche mønsteret ${s.pattern}`:`Ugyldig ${i[s.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${H(a.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${a.origin}`;default:return"Ugyldigt input"}}};function wD(){return{localeError:SD()}}const $D=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"Zahl";case"object":{if(Array.isArray(n))return"Array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return n=>{switch(n.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${n.expected}, erhalten ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${Ie(n.values[0])}`:`Ungültige Option: erwartet eine von ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ungültiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ungültiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ungültiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ungültiger String: muss dem Muster ${i.pattern} entsprechen`:`Ungültig: ${o[i.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function ID(){return{localeError:$D()}}const kD=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},CD=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(o){return e[o]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return o=>{switch(o.code){case"invalid_type":return`Invalid input: expected ${o.expected}, received ${kD(o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${Ie(o.values[0])}`:`Invalid option: expected one of ${H(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=t(o.origin);return i?`Too big: expected ${o.origin??"value"} to have ${n}${o.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=t(o.origin);return i?`Too small: expected ${o.origin} to have ${n}${o.minimum.toString()} ${i.unit}`:`Too small: expected ${o.origin} to be ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${H(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function Ib(){return{localeError:CD()}}const _D=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},ED=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(o){return e[o]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return o=>{switch(o.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${o.expected}, riceviĝis ${_D(o.input)}`;case"invalid_value":return o.values.length===1?`Nevalida enigo: atendiĝis ${Ie(o.values[0])}`:`Nevalida opcio: atendiĝis unu el ${H(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=t(o.origin);return i?`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${n}${o.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=t(o.origin);return i?`Tro malgranda: atendiĝis ke ${o.origin} havu ${n}${o.minimum.toString()} ${i.unit}`:`Tro malgranda: atendiĝis ke ${o.origin} estu ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??o.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${o.divisor}`;case"unrecognized_keys":return`Nekonata${o.keys.length>1?"j":""} ŝlosilo${o.keys.length>1?"j":""}: ${H(o.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${o.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${o.origin}`;default:return"Nevalida enigo"}}};function PD(){return{localeError:ED()}}const jD=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function r(a){return e[a]??null}function o(a){return t[a]??a}const n=a=>{const s=typeof a;switch(s){case"number":return Number.isNaN(a)?"NaN":"number";case"object":return Array.isArray(a)?"array":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype?a.constructor.name:"object"}return s},i={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return a=>{switch(a.code){case"invalid_type":return`Entrada inválida: se esperaba ${o(a.expected)}, recibido ${o(n(a.input))}`;case"invalid_value":return a.values.length===1?`Entrada inválida: se esperaba ${Ie(a.values[0])}`:`Opción inválida: se esperaba una de ${H(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",l=r(a.origin),c=o(a.origin);return l?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${s}${a.maximum.toString()} ${l.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",l=r(a.origin),c=o(a.origin);return l?`Demasiado pequeño: se esperaba que ${c} tuviera ${s}${a.minimum.toString()} ${l.unit}`:`Demasiado pequeño: se esperaba que ${c} fuera ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Cadena inválida: debe comenzar con "${s.prefix}"`:s.format==="ends_with"?`Cadena inválida: debe terminar en "${s.suffix}"`:s.format==="includes"?`Cadena inválida: debe incluir "${s.includes}"`:s.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${s.pattern}`:`Inválido ${i[s.format]??a.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${H(a.keys,", ")}`;case"invalid_key":return`Llave inválida en ${o(a.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${o(a.origin)}`;default:return"Entrada inválida"}}};function OD(){return{localeError:jD()}}const RD=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"آرایه";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return n=>{switch(n.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${n.expected} میبود، ${r(n.input)} دریافت شد`;case"invalid_value":return n.values.length===1?`ورودی نامعتبر: میبایست ${Ie(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${H(n.values,"|")} میبود`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${i}${n.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${i}${n.maximum.toString()} باشد`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`خیلی کوچک: ${n.origin} باید ${i}${n.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${i}${n.minimum.toString()} باشد`}case"invalid_format":{const i=n;return i.format==="starts_with"?`رشته نامعتبر: باید با "${i.prefix}" شروع شود`:i.format==="ends_with"?`رشته نامعتبر: باید با "${i.suffix}" تمام شود`:i.format==="includes"?`رشته نامعتبر: باید شامل "${i.includes}" باشد`:i.format==="regex"?`رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد`:`${o[i.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${H(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function DD(){return{localeError:RD()}}const TD=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return n=>{switch(n.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${n.expected}, oli ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${Ie(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen syöte: täytyy sisältää "${i.includes}"`:i.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}`:`Virheellinen ${o[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${H(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function zD(){return{localeError:TD()}}const AD=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"nombre";case"object":{if(Array.isArray(n))return"tableau";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : ${n.expected} attendu, ${r(n.input)} reçu`;case"invalid_value":return n.values.length===1?`Entrée invalide : ${Ie(n.values[0])} attendu`:`Option invalide : une valeur parmi ${H(n.values,"|")} attendue`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${n.origin??"valeur"} doit être ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit être ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${i.pattern}`:`${o[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${H(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function MD(){return{localeError:AD()}}const ND=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : attendu ${n.expected}, reçu ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${Ie(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"≤":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?"≥":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au motif ${i.pattern}`:`${o[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${H(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function FD(){return{localeError:ND()}}const LD=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=c=>c?e[c]:void 0,o=c=>{const u=r(c);return u?u.label:c??e.unknown.label},n=c=>`ה${o(c)}`,i=c=>(r(c)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",a=c=>c?t[c]??null:null,s=c=>{const u=typeof c;switch(u){case"number":return Number.isNaN(c)?"NaN":"number";case"object":return Array.isArray(c)?"array":c===null?"null":Object.getPrototypeOf(c)!==Object.prototype&&c.constructor?c.constructor.name:"object";default:return u}},l={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}};return c=>{switch(c.code){case"invalid_type":{const u=c.expected,d=o(u),f=s(c.input),m=e[f]?.label??f;return`קלט לא תקין: צריך להיות ${d}, התקבל ${m}`}case"invalid_value":{if(c.values.length===1)return`ערך לא תקין: הערך חייב להיות ${Ie(c.values[0])}`;const u=c.values.map(m=>Ie(m));if(c.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${u[0]} או ${u[1]}`;const d=u[u.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${u.slice(0,-1).join(", ")} או ${d}`}case"too_big":{const u=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"ארוך"} מדי: ${d} צריכה להכיל ${c.maximum.toString()} ${u?.unit??""} ${c.inclusive?"או פחות":"לכל היותר"}`.trim();if(c.origin==="number"){const h=c.inclusive?`קטן או שווה ל-${c.maximum}`:`קטן מ-${c.maximum}`;return`גדול מדי: ${d} צריך להיות ${h}`}if(c.origin==="array"||c.origin==="set"){const h=c.origin==="set"?"צריכה":"צריך",g=c.inclusive?`${c.maximum} ${u?.unit??""} או פחות`:`פחות מ-${c.maximum} ${u?.unit??""}`;return`גדול מדי: ${d} ${h} להכיל ${g}`.trim()}const f=c.inclusive?"<=":"<",m=i(c.origin??"value");return u?.unit?`${u.longLabel} מדי: ${d} ${m} ${f}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"גדול"} מדי: ${d} ${m} ${f}${c.maximum.toString()}`}case"too_small":{const u=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"קצר"} מדי: ${d} צריכה להכיל ${c.minimum.toString()} ${u?.unit??""} ${c.inclusive?"או יותר":"לפחות"}`.trim();if(c.origin==="number"){const h=c.inclusive?`גדול או שווה ל-${c.minimum}`:`גדול מ-${c.minimum}`;return`קטן מדי: ${d} צריך להיות ${h}`}if(c.origin==="array"||c.origin==="set"){const h=c.origin==="set"?"צריכה":"צריך";if(c.minimum===1&&c.inclusive){const v=(c.origin==="set","לפחות פריט אחד");return`קטן מדי: ${d} ${h} להכיל ${v}`}const g=c.inclusive?`${c.minimum} ${u?.unit??""} או יותר`:`יותר מ-${c.minimum} ${u?.unit??""}`;return`קטן מדי: ${d} ${h} להכיל ${g}`.trim()}const f=c.inclusive?">=":">",m=i(c.origin??"value");return u?.unit?`${u.shortLabel} מדי: ${d} ${m} ${f}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"קטן"} מדי: ${d} ${m} ${f}${c.minimum.toString()}`}case"invalid_format":{const u=c;if(u.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${u.prefix}"`;if(u.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${u.suffix}"`;if(u.format==="includes")return`המחרוזת חייבת לכלול "${u.includes}"`;if(u.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${u.pattern}`;const d=l[u.format],f=d?.label??u.format,h=(d?.gender??"m")==="f"?"תקינה":"תקין";return`${f} לא ${h}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${c.divisor}`;case"unrecognized_keys":return`מפתח${c.keys.length>1?"ות":""} לא מזוה${c.keys.length>1?"ים":"ה"}: ${H(c.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n(c.origin??"array")}`;default:return"קלט לא תקין"}}};function UD(){return{localeError:LD()}}const BD=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"szám";case"object":{if(Array.isArray(n))return"tömb";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return n=>{switch(n.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${n.expected}, a kapott érték ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${Ie(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie`:i.format==="ends_with"?`Érvénytelen string: "${i.suffix}" értékkel kell végződnie`:i.format==="includes"?`Érvénytelen string: "${i.includes}" értéket kell tartalmaznia`:i.format==="regex"?`Érvénytelen string: ${i.pattern} mintának kell megfelelnie`:`Érvénytelen ${o[i.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function VD(){return{localeError:BD()}}const WD=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input tidak valid: diharapkan ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${Ie(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${o[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function ZD(){return{localeError:WD()}}const HD=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},GD=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(o){return e[o]??null}const r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return o=>{switch(o.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${HD(o.input)} þar sem á að vera ${o.expected}`;case"invalid_value":return o.values.length===1?`Rangt gildi: gert ráð fyrir ${Ie(o.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${H(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=t(o.origin);return i?`Of stórt: gert er ráð fyrir að ${o.origin??"gildi"} hafi ${n}${o.maximum.toString()} ${i.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${o.origin??"gildi"} sé ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=t(o.origin);return i?`Of lítið: gert er ráð fyrir að ${o.origin} hafi ${n}${o.minimum.toString()} ${i.unit}`:`Of lítið: gert er ráð fyrir að ${o.origin} sé ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Ógildur strengur: verður að byrja á "${n.prefix}"`:n.format==="ends_with"?`Ógildur strengur: verður að enda á "${n.suffix}"`:n.format==="includes"?`Ógildur strengur: verður að innihalda "${n.includes}"`:n.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${n.pattern}`:`Rangt ${r[n.format]??o.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${o.divisor}`;case"unrecognized_keys":return`Óþekkt ${o.keys.length>1?"ir lyklar":"ur lykill"}: ${H(o.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${o.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${o.origin}`;default:return"Rangt gildi"}}};function KD(){return{localeError:GD()}}const qD=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"numero";case"object":{if(Array.isArray(n))return"vettore";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input non valido: atteso ${n.expected}, ricevuto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input non valido: atteso ${Ie(n.values[0])}`:`Opzione non valida: atteso uno tra ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${o[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${H(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function JD(){return{localeError:qD()}}const XD=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"数値";case"object":{if(Array.isArray(n))return"配列";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return n=>{switch(n.code){case"invalid_type":return`無効な入力: ${n.expected}が期待されましたが、${r(n.input)}が入力されました`;case"invalid_value":return n.values.length===1?`無効な入力: ${Ie(n.values[0])}が期待されました`:`無効な選択: ${H(n.values,"、")}のいずれかである必要があります`;case"too_big":{const i=n.inclusive?"以下である":"より小さい",a=t(n.origin);return a?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${a.unit??"要素"}${i}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${i}必要があります`}case"too_small":{const i=n.inclusive?"以上である":"より大きい",a=t(n.origin);return a?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a.unit}${i}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${i}必要があります`}case"invalid_format":{const i=n;return i.format==="starts_with"?`無効な文字列: "${i.prefix}"で始まる必要があります`:i.format==="ends_with"?`無効な文字列: "${i.suffix}"で終わる必要があります`:i.format==="includes"?`無効な文字列: "${i.includes}"を含む必要があります`:i.format==="regex"?`無効な文字列: パターン${i.pattern}に一致する必要があります`:`無効な${o[i.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${H(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function YD(){return{localeError:XD()}}const QD=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[t]??t},eT=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(o){return e[o]??null}const r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return o=>{switch(o.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${o.expected}, მიღებული ${QD(o.input)}`;case"invalid_value":return o.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Ie(o.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${H(o.values,"|")}-დან`;case"too_big":{const n=o.inclusive?"<=":"<",i=t(o.origin);return i?`ზედმეტად დიდი: მოსალოდნელი ${o.origin??"მნიშვნელობა"} ${i.verb} ${n}${o.maximum.toString()} ${i.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${o.origin??"მნიშვნელობა"} იყოს ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=t(o.origin);return i?`ზედმეტად პატარა: მოსალოდნელი ${o.origin} ${i.verb} ${n}${o.minimum.toString()} ${i.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${o.origin} იყოს ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${n.prefix}"-ით`:n.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${n.suffix}"-ით`:n.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${n.includes}"-ს`:n.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${n.pattern}`:`არასწორი ${r[n.format]??o.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${o.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${o.keys.length>1?"ები":"ი"}: ${H(o.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${o.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${o.origin}-ში`;default:return"არასწორი შეყვანა"}}};function tT(){return{localeError:eT()}}const nT=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(n))return"អារេ (Array)";if(n===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return n=>{switch(n.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${n.expected} ប៉ុន្តែទទួលបាន ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Ie(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${i} ${n.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`តូចពេក៖ ត្រូវការ ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"`:i.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"`:i.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"`:i.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}`:`មិនត្រឹមត្រូវ៖ ${o[i.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${H(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function kb(){return{localeError:nT()}}function rT(){return kb()}const oT=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return n=>{switch(n.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${n.expected}, 받은 타입은 ${r(n.input)}입니다`;case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${Ie(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${H(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const i=n.inclusive?"이하":"미만",a=i==="미만"?"이어야 합니다":"여야 합니다",s=t(n.origin),l=s?.unit??"요소";return s?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${l} ${i}${a}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${i}${a}`}case"too_small":{const i=n.inclusive?"이상":"초과",a=i==="이상"?"이어야 합니다":"여야 합니다",s=t(n.origin),l=s?.unit??"요소";return s?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${l} ${i}${a}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다`:i.format==="ends_with"?`잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다`:i.format==="includes"?`잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다`:i.format==="regex"?`잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다`:`잘못된 ${o[i.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${H(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function iT(){return{localeError:oT()}}const aT=e=>So(typeof e,e),So=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"nežinomas objektas":t===null?"nulinė reikšmė":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},mo=e=>e.charAt(0).toUpperCase()+e.slice(1);function rf(e){const t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}const sT=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(o,n,i,a){const s=e[o]??null;return s===null?s:{unit:s.unit[n],verb:s.verb[a][i?"inclusive":"notInclusive"]}}const r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return o=>{switch(o.code){case"invalid_type":return`Gautas tipas ${aT(o.input)}, o tikėtasi - ${So(o.expected)}`;case"invalid_value":return o.values.length===1?`Privalo būti ${Ie(o.values[0])}`:`Privalo būti vienas iš ${H(o.values,"|")} pasirinkimų`;case"too_big":{const n=So(o.origin),i=t(o.origin,rf(Number(o.maximum)),o.inclusive??!1,"smaller");if(i?.verb)return`${mo(n??o.origin??"reikšmė")} ${i.verb} ${o.maximum.toString()} ${i.unit??"elementų"}`;const a=o.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${mo(n??o.origin??"reikšmė")} turi būti ${a} ${o.maximum.toString()} ${i?.unit}`}case"too_small":{const n=So(o.origin),i=t(o.origin,rf(Number(o.minimum)),o.inclusive??!1,"bigger");if(i?.verb)return`${mo(n??o.origin??"reikšmė")} ${i.verb} ${o.minimum.toString()} ${i.unit??"elementų"}`;const a=o.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${mo(n??o.origin??"reikšmė")} turi būti ${a} ${o.minimum.toString()} ${i?.unit}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Eilutė privalo prasidėti "${n.prefix}"`:n.format==="ends_with"?`Eilutė privalo pasibaigti "${n.suffix}"`:n.format==="includes"?`Eilutė privalo įtraukti "${n.includes}"`:n.format==="regex"?`Eilutė privalo atitikti ${n.pattern}`:`Neteisingas ${r[n.format]??o.format}`}case"not_multiple_of":return`Skaičius privalo būti ${o.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${o.keys.length>1?"i":"as"} rakt${o.keys.length>1?"ai":"as"}: ${H(o.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const n=So(o.origin);return`${mo(n??o.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function lT(){return{localeError:sT()}}const cT=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"број";case"object":{if(Array.isArray(n))return"низа";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return n=>{switch(n.code){case"invalid_type":return`Грешен внес: се очекува ${n.expected}, примено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${Ie(n.values[0])}`:`Грешана опција: се очекува една ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${i}${n.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Премногу мал: се очекува ${n.origin} да има ${i}${n.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Неважечка низа: мора да започнува со "${i.prefix}"`:i.format==="ends_with"?`Неважечка низа: мора да завршува со "${i.suffix}"`:i.format==="includes"?`Неважечка низа: мора да вклучува "${i.includes}"`:i.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${i.pattern}`:`Invalid ${o[i.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${H(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function uT(){return{localeError:cT()}}const dT=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"nombor";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input tidak sah: dijangka ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${Ie(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${o[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${H(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function pT(){return{localeError:dT()}}const fT=()=>{const e={string:{unit:"tekens",verb:"te hebben"},file:{unit:"bytes",verb:"te hebben"},array:{unit:"elementen",verb:"te hebben"},set:{unit:"elementen",verb:"te hebben"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"getal";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return n=>{switch(n.code){case"invalid_type":return`Ongeldige invoer: verwacht ${n.expected}, ontving ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${Ie(n.values[0])}`:`Ongeldige optie: verwacht één van ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Te groot: verwacht dat ${n.origin??"waarde"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elementen"}`:`Te groot: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Te klein: verwacht dat ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Te klein: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${o[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function mT(){return{localeError:fT()}}const hT=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"tall";case"object":{if(Array.isArray(n))return"liste";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Ugyldig input: forventet ${n.expected}, fikk ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${Ie(n.values[0])}`:`Ugyldig valg: forventet en av ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til å ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til å ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til å ha ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ugyldig streng: må starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: må ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: må inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: må matche mønsteret ${i.pattern}`:`Ugyldig ${o[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function gT(){return{localeError:hT()}}const vT=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"numara";case"object":{if(Array.isArray(n))return"saf";if(n===null)return"gayb";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return n=>{switch(n.code){case"invalid_type":return`Fâsit giren: umulan ${n.expected}, alınan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${Ie(n.values[0])}`:`Fâsit tercih: mûteberler ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla büyük: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmalıydı.`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla küçük: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${i}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Fâsit metin: "${i.prefix}" ile başlamalı.`:i.format==="ends_with"?`Fâsit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`Fâsit metin: "${i.includes}" ihtivâ etmeli.`:i.format==="regex"?`Fâsit metin: ${i.pattern} nakşına uymalı.`:`Fâsit ${o[i.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function bT(){return{localeError:vT()}}const yT=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"ارې";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return n=>{switch(n.code){case"invalid_type":return`ناسم ورودي: باید ${n.expected} وای, مګر ${r(n.input)} ترلاسه شو`;case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${Ie(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${H(n.values,"|")} څخه وای`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`ډیر لوی: ${n.origin??"ارزښت"} باید ${i}${n.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${i}${n.maximum.toString()} وي`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`ډیر کوچنی: ${n.origin} باید ${i}${n.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${i}${n.minimum.toString()} وي`}case"invalid_format":{const i=n;return i.format==="starts_with"?`ناسم متن: باید د "${i.prefix}" سره پیل شي`:i.format==="ends_with"?`ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي`:i.format==="includes"?`ناسم متن: باید "${i.includes}" ولري`:i.format==="regex"?`ناسم متن: باید د ${i.pattern} سره مطابقت ولري`:`${o[i.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${H(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function xT(){return{localeError:yT()}}const ST=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"liczba";case"object":{if(Array.isArray(n))return"tablica";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return n=>{switch(n.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${n.expected}, otrzymano ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Ie(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${i}${n.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${i}${n.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"`:i.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"`:i.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"`:i.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}`:`Nieprawidłow(y/a/e) ${o[i.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function wT(){return{localeError:ST()}}const $T=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"array";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Tipo inválido: esperado ${n.expected}, recebido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${Ie(n.values[0])}`:`Opção inválida: esperada uma das ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Texto inválido: deve começar com "${i.prefix}"`:i.format==="ends_with"?`Texto inválido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inválido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inválido: deve corresponder ao padrão ${i.pattern}`:`${o[i.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function IT(){return{localeError:$T()}}function of(e,t,r,o){const n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}const kT=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"массив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return n=>{switch(n.code){case"invalid_type":return`Неверный ввод: ожидалось ${n.expected}, получено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${Ie(n.values[0])}`:`Неверный вариант: ожидалось одно из ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);if(a){const s=Number(n.maximum),l=of(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${i}${n.maximum.toString()} ${l}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);if(a){const s=Number(n.minimum),l=of(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${i}${n.minimum.toString()} ${l}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Неверная строка: должна начинаться с "${i.prefix}"`:i.format==="ends_with"?`Неверная строка: должна заканчиваться на "${i.suffix}"`:i.format==="includes"?`Неверная строка: должна содержать "${i.includes}"`:i.format==="regex"?`Неверная строка: должна соответствовать шаблону ${i.pattern}`:`Неверный ${o[i.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function CT(){return{localeError:kT()}}const _T=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"število";case"object":{if(Array.isArray(n))return"tabela";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return n=>{switch(n.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${n.expected}, prejeto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${Ie(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pričakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Neveljaven niz: mora se začeti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se končati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${o[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${H(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function ET(){return{localeError:_T()}}const PT=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"antal";case"object":{if(Array.isArray(n))return"lista";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return n=>{switch(n.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${n.expected}, fick ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${Ie(n.values[0])}`:`Ogiltigt val: förväntade en av ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ogiltig sträng: måste börja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig sträng: måste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig sträng: måste innehålla "${i.includes}"`:i.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${i.pattern}"`:`Ogiltig(t) ${o[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function jT(){return{localeError:PT()}}const OT=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(n))return"அணி";if(n===null)return"வெறுமை";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${n.expected}, பெறப்பட்டது ${r(n.input)}`;case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Ie(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${H(n.values,"|")} இல் ஒன்று`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${i}${n.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${i}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${i}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const i=n;return i.format==="starts_with"?`தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்`:i.format==="ends_with"?`தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்`:i.format==="includes"?`தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்`:i.format==="regex"?`தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${o[i.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function RT(){return{localeError:OT()}}const DT=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(n))return"อาร์เรย์ (Array)";if(n===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return n=>{switch(n.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${n.expected} แต่ได้รับ ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Ie(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"ไม่เกิน":"น้อยกว่า",a=t(n.origin);return a?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${i} ${n.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?"อย่างน้อย":"มากกว่า",a=t(n.origin);return a?`น้อยกว่ากำหนด: ${n.origin} ควรมี${i} ${n.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"`:i.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"`:i.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ`:i.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}`:`รูปแบบไม่ถูกต้อง: ${o[i.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${H(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function TT(){return{localeError:DT()}}const zT=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},AT=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(o){return e[o]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return o=>{switch(o.code){case"invalid_type":return`Geçersiz değer: beklenen ${o.expected}, alınan ${zT(o.input)}`;case"invalid_value":return o.values.length===1?`Geçersiz değer: beklenen ${Ie(o.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${H(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=t(o.origin);return i?`Çok büyük: beklenen ${o.origin??"değer"} ${n}${o.maximum.toString()} ${i.unit??"öğe"}`:`Çok büyük: beklenen ${o.origin??"değer"} ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=t(o.origin);return i?`Çok küçük: beklenen ${o.origin} ${n}${o.minimum.toString()} ${i.unit}`:`Çok küçük: beklenen ${o.origin} ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Geçersiz metin: "${n.prefix}" ile başlamalı`:n.format==="ends_with"?`Geçersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Geçersiz metin: "${n.includes}" içermeli`:n.format==="regex"?`Geçersiz metin: ${n.pattern} desenine uymalı`:`Geçersiz ${r[n.format]??o.format}`}case"not_multiple_of":return`Geçersiz sayı: ${o.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${o.keys.length>1?"lar":""}: ${H(o.keys,", ")}`;case"invalid_key":return`${o.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${o.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function MT(){return{localeError:AT()}}const NT=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"масив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return n=>{switch(n.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${n.expected}, отримано ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${Ie(n.values[0])}`:`Неправильна опція: очікується одне з ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Занадто велике: очікується, що ${n.origin??"значення"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Занадто мале: очікується, що ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Неправильний рядок: повинен починатися з "${i.prefix}"`:i.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${i.suffix}"`:i.format==="includes"?`Неправильний рядок: повинен містити "${i.includes}"`:i.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${i.pattern}`:`Неправильний ${o[i.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function Cb(){return{localeError:NT()}}function FT(){return Cb()}const LT=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"نمبر";case"object":{if(Array.isArray(n))return"آرے";if(n===null)return"نل";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return n=>{switch(n.code){case"invalid_type":return`غلط ان پٹ: ${n.expected} متوقع تھا، ${r(n.input)} موصول ہوا`;case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${Ie(n.values[0])} متوقع تھا`:`غلط آپشن: ${H(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`بہت بڑا: ${n.origin??"ویلیو"} کے ${i}${n.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${i}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`بہت چھوٹا: ${n.origin} کے ${i}${n.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${i}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const i=n;return i.format==="starts_with"?`غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے`:i.format==="ends_with"?`غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے`:i.format==="includes"?`غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے`:i.format==="regex"?`غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے`:`غلط ${o[i.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${H(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function UT(){return{localeError:LT()}}const BT=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"số";case"object":{if(Array.isArray(n))return"mảng";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return n=>{switch(n.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${n.expected}, nhận được ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Ie(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Quá nhỏ: mong đợi ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"`:i.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"`:i.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${i.includes}"`:i.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}`:`${o[i.format]??n.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${H(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function VT(){return{localeError:BT()}}const WT=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(n))return"数组";if(n===null)return"空值(null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return n=>{switch(n.code){case"invalid_type":return`无效输入:期望 ${n.expected},实际接收 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`无效输入:期望 ${Ie(n.values[0])}`:`无效选项:期望以下之一 ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`数值过大:期望 ${n.origin??"值"} ${i}${n.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`数值过小:期望 ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`数值过小:期望 ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`无效字符串:必须以 "${i.prefix}" 开头`:i.format==="ends_with"?`无效字符串:必须以 "${i.suffix}" 结尾`:i.format==="includes"?`无效字符串:必须包含 "${i.includes}"`:i.format==="regex"?`无效字符串:必须满足正则表达式 ${i.pattern}`:`无效${o[i.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function ZT(){return{localeError:WT()}}const HT=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return n=>{switch(n.code){case"invalid_type":return`無效的輸入值:預期為 ${n.expected},但收到 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${Ie(n.values[0])}`:`無效的選項:預期為以下其中之一 ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`數值過大:預期 ${n.origin??"值"} 應為 ${i}${n.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`數值過小:預期 ${n.origin} 應為 ${i}${n.minimum.toString()} ${a.unit}`:`數值過小:預期 ${n.origin} 應為 ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`無效的字串:必須以 "${i.prefix}" 開頭`:i.format==="ends_with"?`無效的字串:必須以 "${i.suffix}" 結尾`:i.format==="includes"?`無效的字串:必須包含 "${i.includes}"`:i.format==="regex"?`無效的字串:必須符合格式 ${i.pattern}`:`無效的 ${o[i.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${H(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function GT(){return{localeError:HT()}}const KT=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(n){return e[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(n))return"akopọ";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return n=>{switch(n.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${n.expected}, àmọ̀ a rí ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Ie(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${H(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${i}${n.maximum}`}case"too_small":{const i=n.inclusive?">=":">",a=t(n.origin);return a?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`Kéré ju: a ní láti jẹ́ ${i}${n.minimum}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${i.prefix}"`:i.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${i.suffix}"`:i.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${i.includes}"`:i.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${i.pattern}`:`Aṣìṣe: ${o[i.format]??n.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${n.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${H(n.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${n.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${n.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function qT(){return{localeError:KT()}}const _b=Object.freeze(Object.defineProperty({__proto__:null,ar:cD,az:dD,be:fD,bg:gD,ca:bD,cs:xD,da:wD,de:ID,en:Ib,eo:PD,es:OD,fa:DD,fi:zD,fr:MD,frCA:FD,he:UD,hu:VD,id:ZD,is:KD,it:JD,ja:YD,ka:tT,kh:rT,km:kb,ko:iT,lt:lT,mk:uT,ms:pT,nl:mT,no:gT,ota:bT,pl:wT,ps:xT,pt:IT,ru:CT,sl:ET,sv:jT,ta:RT,th:TT,tr:MT,ua:FT,uk:Cb,ur:UT,vi:VT,yo:qT,zhCN:ZT,zhTW:GT},Symbol.toStringTag,{value:"Module"}));var af;const Eb=Symbol("ZodOutput"),Pb=Symbol("ZodInput");class $c{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const o=r[0];if(this._map.set(t,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const o={...this.get(r)??{}};delete o.id;const n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Ic(){return new $c}(af=globalThis).__zod_globalRegistry??(af.__zod_globalRegistry=Ic());const an=globalThis.__zod_globalRegistry;function jb(e,t){return new e({type:"string",...L(t)})}function Ob(e,t){return new e({type:"string",coerce:!0,...L(t)})}function kc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...L(t)})}function ia(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...L(t)})}function Cc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...L(t)})}function _c(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(t)})}function Ec(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(t)})}function Pc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(t)})}function za(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...L(t)})}function jc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...L(t)})}function Oc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(t)})}function Rc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...L(t)})}function Dc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(t)})}function Tc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...L(t)})}function zc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...L(t)})}function Ac(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(t)})}function Mc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(t)})}function Nc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(t)})}function Rb(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...L(t)})}function Fc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(t)})}function Lc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(t)})}function Uc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...L(t)})}function Bc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...L(t)})}function Vc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...L(t)})}function Wc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...L(t)})}const Db={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Tb(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(t)})}function zb(e,t){return new e({type:"string",format:"date",check:"string_format",...L(t)})}function Ab(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...L(t)})}function Mb(e,t){return new e({type:"string",format:"duration",check:"string_format",...L(t)})}function Nb(e,t){return new e({type:"number",checks:[],...L(t)})}function Fb(e,t){return new e({type:"number",coerce:!0,checks:[],...L(t)})}function Lb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...L(t)})}function Ub(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...L(t)})}function Bb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...L(t)})}function Vb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...L(t)})}function Wb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...L(t)})}function Zb(e,t){return new e({type:"boolean",...L(t)})}function Hb(e,t){return new e({type:"boolean",coerce:!0,...L(t)})}function Gb(e,t){return new e({type:"bigint",...L(t)})}function Kb(e,t){return new e({type:"bigint",coerce:!0,...L(t)})}function qb(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(t)})}function Jb(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(t)})}function Xb(e,t){return new e({type:"symbol",...L(t)})}function Yb(e,t){return new e({type:"undefined",...L(t)})}function Qb(e,t){return new e({type:"null",...L(t)})}function ey(e){return new e({type:"any"})}function ty(e){return new e({type:"unknown"})}function ny(e,t){return new e({type:"never",...L(t)})}function ry(e,t){return new e({type:"void",...L(t)})}function oy(e,t){return new e({type:"date",...L(t)})}function iy(e,t){return new e({type:"date",coerce:!0,...L(t)})}function ay(e,t){return new e({type:"nan",...L(t)})}function xr(e,t){return new mc({check:"less_than",...L(t),value:e,inclusive:!1})}function sn(e,t){return new mc({check:"less_than",...L(t),value:e,inclusive:!0})}function Sr(e,t){return new hc({check:"greater_than",...L(t),value:e,inclusive:!1})}function Dt(e,t){return new hc({check:"greater_than",...L(t),value:e,inclusive:!0})}function sy(e){return Sr(0,e)}function ly(e){return xr(0,e)}function cy(e){return sn(0,e)}function uy(e){return Dt(0,e)}function Bo(e,t){return new Hg({check:"multiple_of",...L(t),value:e})}function Aa(e,t){return new qg({check:"max_size",...L(t),maximum:e})}function Vo(e,t){return new Jg({check:"min_size",...L(t),minimum:e})}function Zc(e,t){return new Xg({check:"size_equals",...L(t),size:e})}function Ma(e,t){return new Yg({check:"max_length",...L(t),maximum:e})}function Jr(e,t){return new Qg({check:"min_length",...L(t),minimum:e})}function Na(e,t){return new ev({check:"length_equals",...L(t),length:e})}function Hc(e,t){return new tv({check:"string_format",format:"regex",...L(t),pattern:e})}function Gc(e){return new nv({check:"string_format",format:"lowercase",...L(e)})}function Kc(e){return new rv({check:"string_format",format:"uppercase",...L(e)})}function qc(e,t){return new ov({check:"string_format",format:"includes",...L(t),includes:e})}function Jc(e,t){return new iv({check:"string_format",format:"starts_with",...L(t),prefix:e})}function Xc(e,t){return new av({check:"string_format",format:"ends_with",...L(t),suffix:e})}function dy(e,t,r){return new sv({check:"property",property:e,schema:t,...L(r)})}function Yc(e,t){return new lv({check:"mime_type",mime:e,...L(t)})}function tr(e){return new cv({check:"overwrite",tx:e})}function Qc(e){return tr(t=>t.normalize(e))}function eu(){return tr(e=>e.trim())}function tu(){return tr(e=>e.toLowerCase())}function nu(){return tr(e=>e.toUpperCase())}function ru(){return tr(e=>Bh(e))}function py(e,t,r){return new e({type:"array",element:t,...L(r)})}function JT(e,t,r){return new e({type:"union",options:t,...L(r)})}function XT(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...L(o)})}function YT(e,t,r){return new e({type:"intersection",left:t,right:r})}function QT(e,t,r,o){const n=r instanceof Oe,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...L(i)})}function ez(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...L(o)})}function tz(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...L(o)})}function nz(e,t,r){return new e({type:"set",valueType:t,...L(r)})}function rz(e,t,r){const o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...L(r)})}function oz(e,t,r){return new e({type:"enum",entries:t,...L(r)})}function iz(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...L(r)})}function fy(e,t){return new e({type:"file",...L(t)})}function az(e,t){return new e({type:"transform",transform:t})}function sz(e,t){return new e({type:"optional",innerType:t})}function lz(e,t){return new e({type:"nullable",innerType:t})}function cz(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Ra(r)}})}function uz(e,t,r){return new e({type:"nonoptional",innerType:t,...L(r)})}function dz(e,t){return new e({type:"success",innerType:t})}function pz(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function fz(e,t,r){return new e({type:"pipe",in:t,out:r})}function mz(e,t){return new e({type:"readonly",innerType:t})}function hz(e,t,r){return new e({type:"template_literal",parts:t,...L(r)})}function gz(e,t){return new e({type:"lazy",getter:t})}function vz(e,t){return new e({type:"promise",innerType:t})}function my(e,t,r){const o=L(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function hy(e,t,r){return new e({type:"custom",check:"custom",fn:t,...L(r)})}function gy(e){const t=vy(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Kr(o,r.value,t._zod.def));else{const n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(Kr(n))}},e(r.value,r)));return t}function vy(e,t){const r=new at({check:"custom",...L(t)});return r._zod.check=e,r}function by(e){const t=new at({check:"describe"});return t._zod.onattach=[r=>{const o=an.get(r)??{};an.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function yy(e){const t=new at({check:"meta"});return t._zod.onattach=[r=>{const o=an.get(r)??{};an.add(r,{...o,...e})}],t._zod.check=()=>{},t}function xy(e,t){const r=L(t);let o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));const i=new Set(o),a=new Set(n),s=e.Codec??wc,l=e.Boolean??bc,c=e.String??oi,u=new c({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),f=new s({type:"pipe",in:u,out:d,transform:((m,h)=>{let g=m;return r.case!=="sensitive"&&(g=g.toLowerCase()),i.has(g)?!0:a.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:h.value,inst:f,continue:!1}),{})}),reverseTransform:((m,h)=>m===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function ii(e,t,r,o={}){const n=L(o),i={...L(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}class qs{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??an,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,r={path:[],schemaPath:[]}){var o;const n=t._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(t);if(a)return a.count++,r.schemaPath.includes(t)&&(a.cycle=r.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,s);const l=t._zod.toJSONSchema?.();if(l)s.schema=l;else{const d={...r,schemaPath:[...r.schemaPath,t],path:r.path},f=t._zod.parent;if(f)s.ref=f,this.process(f,d),this.seen.get(f).isParent=!0;else{const m=s.schema;switch(n.type){case"string":{const h=m;h.type="string";const{minimum:g,maximum:v,format:y,patterns:x,contentEncoding:w}=t._zod.bag;if(typeof g=="number"&&(h.minLength=g),typeof v=="number"&&(h.maxLength=v),y&&(h.format=i[y]??y,h.format===""&&delete h.format),w&&(h.contentEncoding=w),x&&x.size>0){const S=[...x];S.length===1?h.pattern=S[0].source:S.length>1&&(s.schema.allOf=[...S.map($=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:$.source}))])}break}case"number":{const h=m,{minimum:g,maximum:v,format:y,multipleOf:x,exclusiveMaximum:w,exclusiveMinimum:S}=t._zod.bag;typeof y=="string"&&y.includes("int")?h.type="integer":h.type="number",typeof S=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(h.minimum=S,h.exclusiveMinimum=!0):h.exclusiveMinimum=S),typeof g=="number"&&(h.minimum=g,typeof S=="number"&&this.target!=="draft-4"&&(S>=g?delete h.minimum:delete h.exclusiveMinimum)),typeof w=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(h.maximum=w,h.exclusiveMaximum=!0):h.exclusiveMaximum=w),typeof v=="number"&&(h.maximum=v,typeof w=="number"&&this.target!=="draft-4"&&(w<=v?delete h.maximum:delete h.exclusiveMaximum)),typeof x=="number"&&(h.multipleOf=x);break}case"boolean":{const h=m;h.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(m.type="string",m.nullable=!0,m.enum=[null]):m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const h=m,{minimum:g,maximum:v}=t._zod.bag;typeof g=="number"&&(h.minItems=g),typeof v=="number"&&(h.maxItems=v),h.type="array",h.items=this.process(n.element,{...d,path:[...d.path,"items"]});break}case"object":{const h=m;h.type="object",h.properties={};const g=n.shape;for(const x in g)h.properties[x]=this.process(g[x],{...d,path:[...d.path,"properties",x]});const v=new Set(Object.keys(g)),y=new Set([...v].filter(x=>{const w=n.shape[x]._zod;return this.io==="input"?w.optin===void 0:w.optout===void 0}));y.size>0&&(h.required=Array.from(y)),n.catchall?._zod.def.type==="never"?h.additionalProperties=!1:n.catchall?n.catchall&&(h.additionalProperties=this.process(n.catchall,{...d,path:[...d.path,"additionalProperties"]})):this.io==="output"&&(h.additionalProperties=!1);break}case"union":{const h=m,g=n.discriminator!==void 0,v=n.options.map((y,x)=>this.process(y,{...d,path:[...d.path,g?"oneOf":"anyOf",x]}));g?h.oneOf=v:h.anyOf=v;break}case"intersection":{const h=m,g=this.process(n.left,{...d,path:[...d.path,"allOf",0]}),v=this.process(n.right,{...d,path:[...d.path,"allOf",1]}),y=w=>"allOf"in w&&Object.keys(w).length===1,x=[...y(g)?g.allOf:[g],...y(v)?v.allOf:[v]];h.allOf=x;break}case"tuple":{const h=m;h.type="array";const g=this.target==="draft-2020-12"?"prefixItems":"items",v=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",y=n.items.map(($,I)=>this.process($,{...d,path:[...d.path,g,I]})),x=n.rest?this.process(n.rest,{...d,path:[...d.path,v,...this.target==="openapi-3.0"?[n.items.length]:[]]}):null;this.target==="draft-2020-12"?(h.prefixItems=y,x&&(h.items=x)):this.target==="openapi-3.0"?(h.items={anyOf:y},x&&h.items.anyOf.push(x),h.minItems=y.length,x||(h.maxItems=y.length)):(h.items=y,x&&(h.additionalItems=x));const{minimum:w,maximum:S}=t._zod.bag;typeof w=="number"&&(h.minItems=w),typeof S=="number"&&(h.maxItems=S);break}case"record":{const h=m;h.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(h.propertyNames=this.process(n.keyType,{...d,path:[...d.path,"propertyNames"]})),h.additionalProperties=this.process(n.valueType,{...d,path:[...d.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const h=m,g=Ql(n.entries);g.every(v=>typeof v=="number")&&(h.type="number"),g.every(v=>typeof v=="string")&&(h.type="string"),h.enum=g;break}case"literal":{const h=m,g=[];for(const v of n.values)if(v===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof v=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");g.push(Number(v))}else g.push(v);if(g.length!==0)if(g.length===1){const v=g[0];h.type=v===null?"null":typeof v,this.target==="draft-4"||this.target==="openapi-3.0"?h.enum=[v]:h.const=v}else g.every(v=>typeof v=="number")&&(h.type="number"),g.every(v=>typeof v=="string")&&(h.type="string"),g.every(v=>typeof v=="boolean")&&(h.type="string"),g.every(v=>v===null)&&(h.type="null"),h.enum=g;break}case"file":{const h=m,g={type:"string",format:"binary",contentEncoding:"binary"},{minimum:v,maximum:y,mime:x}=t._zod.bag;v!==void 0&&(g.minLength=v),y!==void 0&&(g.maxLength=y),x?x.length===1?(g.contentMediaType=x[0],Object.assign(h,g)):h.anyOf=x.map(w=>({...g,contentMediaType:w})):Object.assign(h,g);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const h=this.process(n.innerType,d);this.target==="openapi-3.0"?(s.ref=n.innerType,m.nullable=!0):m.anyOf=[h,{type:"null"}];break}case"nonoptional":{this.process(n.innerType,d),s.ref=n.innerType;break}case"success":{const h=m;h.type="boolean";break}case"default":{this.process(n.innerType,d),s.ref=n.innerType,m.default=JSON.parse(JSON.stringify(n.defaultValue));break}case"prefault":{this.process(n.innerType,d),s.ref=n.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break}case"catch":{this.process(n.innerType,d),s.ref=n.innerType;let h;try{h=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=h;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const h=m,g=t._zod.pattern;if(!g)throw new Error("Pattern not found in template literal");h.type="string",h.pattern=g.source;break}case"pipe":{const h=this.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;this.process(h,d),s.ref=h;break}case"readonly":{this.process(n.innerType,d),s.ref=n.innerType,m.readOnly=!0;break}case"promise":{this.process(n.innerType,d),s.ref=n.innerType;break}case"optional":{this.process(n.innerType,d),s.ref=n.innerType;break}case"lazy":{const h=t._zod.innerType;this.process(h,d),s.ref=h;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const c=this.metadataRegistry.get(t);return c&&Object.assign(s.schema,c),this.io==="input"&&wt(t)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(t).schema}emit(t,r){const o={cycles:r?.cycles??"ref",reused:r?.reused??"inline",external:r?.external??void 0},n=this.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=u=>{const d=this.target==="draft-2020-12"?"$defs":"definitions";if(o.external){const g=o.external.registry.get(u[0])?.id,v=o.external.uri??(x=>x);if(g)return{ref:v(g)};const y=u[1].defId??u[1].schema.id??`schema${this.counter++}`;return u[1].defId=y,{defId:y,ref:`${v("__shared")}#/${d}/${y}`}}if(u[1]===n)return{ref:"#"};const m=`#/${d}/`,h=u[1].schema.id??`__schema${this.counter++}`;return{defId:h,ref:m+h}},a=u=>{if(u[1].schema.$ref)return;const d=u[1],{ref:f,defId:m}=i(u);d.def={...d.schema},m&&(d.defId=m);const h=d.schema;for(const g in h)delete h[g];h.$ref=f};if(o.cycles==="throw")for(const u of this.seen.entries()){const d=u[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
|
|
181
|
+
|
|
182
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of this.seen.entries()){const d=u[1];if(t===u[0]){a(u);continue}if(o.external){const m=o.external.registry.get(u[0])?.id;if(t!==u[0]&&m){a(u);continue}}if(this.metadataRegistry.get(u[0])?.id){a(u);continue}if(d.cycle){a(u);continue}if(d.count>1&&o.reused==="ref"){a(u);continue}}const s=(u,d)=>{const f=this.seen.get(u),m=f.def??f.schema,h={...m};if(f.ref===null)return;const g=f.ref;if(f.ref=null,g){s(g,d);const v=this.seen.get(g).schema;v.$ref&&(d.target==="draft-7"||d.target==="draft-4"||d.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(v)):(Object.assign(m,v),Object.assign(m,h))}f.isParent||this.override({zodSchema:u,jsonSchema:m,path:f.path??[]})};for(const u of[...this.seen.entries()].reverse())s(u[0],{target:this.target});const l={};if(this.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?l.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?l.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),o.external?.uri){const u=o.external.registry.get(t)?.id;if(!u)throw new Error("Schema is missing an `id` property");l.$id=o.external.uri(u)}Object.assign(l,n.def);const c=o.external?.defs??{};for(const u of this.seen.entries()){const d=u[1];d.def&&d.defId&&(c[d.defId]=d.def)}o.external||Object.keys(c).length>0&&(this.target==="draft-2020-12"?l.$defs=c:l.definitions=c);try{return JSON.parse(JSON.stringify(l))}catch{throw new Error("Error converting schema to JSON.")}}}function Sy(e,t){if(e instanceof $c){const o=new qs(t),n={};for(const s of e._idmap.entries()){const[l,c]=s;o.process(c)}const i={},a={registry:e,uri:t?.uri,defs:n};for(const s of e._idmap.entries()){const[l,c]=s;i[l]=o.emit(c,{...t,external:a})}if(Object.keys(n).length>0){const s=o.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:n}}return{schemas:i}}const r=new qs(t);return r.process(e),r.emit(e,t)}function wt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return wt(o.element,r);if(o.type==="set")return wt(o.valueType,r);if(o.type==="lazy")return wt(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return wt(o.innerType,r);if(o.type==="intersection")return wt(o.left,r)||wt(o.right,r);if(o.type==="record"||o.type==="map")return wt(o.keyType,r)||wt(o.valueType,r);if(o.type==="pipe")return wt(o.in,r)||wt(o.out,r);if(o.type==="object"){for(const n in o.shape)if(wt(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(const n of o.options)if(wt(n,r))return!0;return!1}if(o.type==="tuple"){for(const n of o.items)if(wt(n,r))return!0;return!!(o.rest&&wt(o.rest,r))}return!1}const bz=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),yz=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Wv,$ZodArray:qv,$ZodAsyncError:hr,$ZodBase64:Rv,$ZodBase64URL:Tv,$ZodBigInt:yc,$ZodBigIntFormat:Lv,$ZodBoolean:bc,$ZodCIDRv4:jv,$ZodCIDRv6:Ov,$ZodCUID:bv,$ZodCUID2:yv,$ZodCatch:hb,$ZodCheck:at,$ZodCheckBigIntFormat:Kg,$ZodCheckEndsWith:av,$ZodCheckGreaterThan:hc,$ZodCheckIncludes:ov,$ZodCheckLengthEquals:ev,$ZodCheckLessThan:mc,$ZodCheckLowerCase:nv,$ZodCheckMaxLength:Yg,$ZodCheckMaxSize:qg,$ZodCheckMimeType:lv,$ZodCheckMinLength:Qg,$ZodCheckMinSize:Jg,$ZodCheckMultipleOf:Hg,$ZodCheckNumberFormat:Gg,$ZodCheckOverwrite:cv,$ZodCheckProperty:sv,$ZodCheckRegex:tv,$ZodCheckSizeEquals:Xg,$ZodCheckStartsWith:iv,$ZodCheckStringFormat:ri,$ZodCheckUpperCase:rv,$ZodCodec:wc,$ZodCustom:$b,$ZodCustomStringFormat:Nv,$ZodDate:Kv,$ZodDefault:db,$ZodDiscriminatedUnion:eb,$ZodE164:zv,$ZodEmail:mv,$ZodEmoji:gv,$ZodEncodeError:ja,$ZodEnum:ib,$ZodError:tc,$ZodFile:sb,$ZodFunction:xb,$ZodGUID:pv,$ZodIPv4:_v,$ZodIPv6:Ev,$ZodISODate:Iv,$ZodISODateTime:$v,$ZodISODuration:Cv,$ZodISOTime:kv,$ZodIntersection:tb,$ZodJWT:Mv,$ZodKSUID:wv,$ZodLazy:wb,$ZodLiteral:ab,$ZodMAC:Pv,$ZodMap:rb,$ZodNaN:gb,$ZodNanoID:vv,$ZodNever:Hv,$ZodNonOptional:fb,$ZodNull:Vv,$ZodNullable:ub,$ZodNumber:vc,$ZodNumberFormat:Fv,$ZodObject:Yv,$ZodObjectJIT:Qv,$ZodOptional:cb,$ZodPipe:vb,$ZodPrefault:pb,$ZodPromise:Sb,$ZodReadonly:bb,$ZodRealError:Nt,$ZodRecord:nb,$ZodRegistry:$c,$ZodSet:ob,$ZodString:oi,$ZodStringFormat:Qe,$ZodSuccess:mb,$ZodSymbol:Uv,$ZodTemplateLiteral:yb,$ZodTransform:lb,$ZodTuple:Sc,$ZodType:Oe,$ZodULID:xv,$ZodURL:hv,$ZodUUID:fv,$ZodUndefined:Bv,$ZodUnion:xc,$ZodUnknown:Zv,$ZodVoid:Gv,$ZodXID:Sv,$brand:Lh,$constructor:D,$input:Pb,$output:Eb,Doc:uv,JSONSchema:bz,JSONSchemaGenerator:qs,NEVER:Fh,TimePrecision:Db,_any:ey,_array:py,_base64:Uc,_base64url:Bc,_bigint:Gb,_boolean:Zb,_catch:pz,_check:vy,_cidrv4:Fc,_cidrv6:Lc,_coercedBigint:Kb,_coercedBoolean:Hb,_coercedDate:iy,_coercedNumber:Fb,_coercedString:Ob,_cuid:Rc,_cuid2:Dc,_custom:my,_date:oy,_decode:ic,_decodeAsync:sc,_default:cz,_discriminatedUnion:XT,_e164:Vc,_email:kc,_emoji:jc,_encode:oc,_encodeAsync:ac,_endsWith:Xc,_enum:rz,_file:fy,_float32:Ub,_float64:Bb,_gt:Sr,_gte:Dt,_guid:ia,_includes:qc,_int:Lb,_int32:Vb,_int64:qb,_intersection:YT,_ipv4:Mc,_ipv6:Nc,_isoDate:zb,_isoDateTime:Tb,_isoDuration:Mb,_isoTime:Ab,_jwt:Wc,_ksuid:Ac,_lazy:gz,_length:Na,_literal:iz,_lowercase:Gc,_lt:xr,_lte:sn,_mac:Rb,_map:tz,_max:sn,_maxLength:Ma,_maxSize:Aa,_mime:Yc,_min:Dt,_minLength:Jr,_minSize:Vo,_multipleOf:Bo,_nan:ay,_nanoid:Oc,_nativeEnum:oz,_negative:ly,_never:ny,_nonnegative:uy,_nonoptional:uz,_nonpositive:cy,_normalize:Qc,_null:Qb,_nullable:lz,_number:Nb,_optional:sz,_overwrite:tr,_parse:Xo,_parseAsync:Yo,_pipe:fz,_positive:sy,_promise:vz,_property:dy,_readonly:mz,_record:ez,_refine:hy,_regex:Hc,_safeDecode:cc,_safeDecodeAsync:dc,_safeEncode:lc,_safeEncodeAsync:uc,_safeParse:Qo,_safeParseAsync:ei,_set:nz,_size:Zc,_slugify:ru,_startsWith:Jc,_string:jb,_stringFormat:ii,_stringbool:xy,_success:dz,_superRefine:gy,_symbol:Xb,_templateLiteral:hz,_toLowerCase:tu,_toUpperCase:nu,_transform:az,_trim:eu,_tuple:QT,_uint32:Wb,_uint64:Jb,_ulid:Tc,_undefined:Yb,_union:JT,_unknown:ty,_uppercase:Kc,_url:za,_uuid:Cc,_uuidv4:_c,_uuidv6:Ec,_uuidv7:Pc,_void:ry,_xid:zc,clone:Xt,config:It,decode:OR,decodeAsync:DR,describe:by,encode:jR,encodeAsync:RR,flattenError:nc,formatError:rc,globalConfig:ta,globalRegistry:an,isValidBase64:gc,isValidBase64URL:Dv,isValidJWT:Av,locales:_b,meta:yy,parse:Hs,parseAsync:Gs,prettifyError:sg,regexes:fc,registry:Ic,safeDecode:zR,safeDecodeAsync:MR,safeEncode:TR,safeEncodeAsync:AR,safeParse:lg,safeParseAsync:cg,toDotPath:ag,toJSONSchema:Sy,treeifyError:ig,util:rg,version:dv},Symbol.toStringTag,{value:"Module"})),ou=D("ZodISODateTime",(e,t)=>{$v.init(e,t),rt.init(e,t)});function wy(e){return Tb(ou,e)}const iu=D("ZodISODate",(e,t)=>{Iv.init(e,t),rt.init(e,t)});function $y(e){return zb(iu,e)}const au=D("ZodISOTime",(e,t)=>{kv.init(e,t),rt.init(e,t)});function Iy(e){return Ab(au,e)}const su=D("ZodISODuration",(e,t)=>{Cv.init(e,t),rt.init(e,t)});function ky(e){return Mb(su,e)}const xz=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:iu,ZodISODateTime:ou,ZodISODuration:su,ZodISOTime:au,date:$y,datetime:wy,duration:ky,time:Iy},Symbol.toStringTag,{value:"Module"})),Cy=(e,t)=>{tc.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>rc(e,r)},flatten:{value:r=>nc(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,na,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,na,2)}},isEmpty:{get(){return e.issues.length===0}}})},Sz=D("ZodError",Cy),Ft=D("ZodError",Cy,{Parent:Error}),_y=Xo(Ft),Ey=Yo(Ft),Py=Qo(Ft),jy=ei(Ft),Oy=oc(Ft),Ry=ic(Ft),Dy=ac(Ft),Ty=sc(Ft),zy=lc(Ft),Ay=cc(Ft),My=uc(Ft),Ny=dc(Ft),Ae=D("ZodType",(e,t)=>(Oe.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Un(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]})),e.clone=(r,o)=>Xt(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>_y(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Py(e,r,o),e.parseAsync=async(r,o)=>Ey(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>jy(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>Oy(e,r,o),e.decode=(r,o)=>Ry(e,r,o),e.encodeAsync=async(r,o)=>Dy(e,r,o),e.decodeAsync=async(r,o)=>Ty(e,r,o),e.safeEncode=(r,o)=>zy(e,r,o),e.safeDecode=(r,o)=>Ay(e,r,o),e.safeEncodeAsync=async(r,o)=>My(e,r,o),e.safeDecodeAsync=async(r,o)=>Ny(e,r,o),e.refine=(r,o)=>e.check(wx(r,o)),e.superRefine=r=>e.check($x(r)),e.overwrite=r=>e.check(tr(r)),e.optional=()=>sa(e),e.nullable=()=>la(e),e.nullish=()=>sa(la(e)),e.nonoptional=r=>ux(e,r),e.array=()=>Wa(e),e.or=r=>Pu([e,r]),e.and=r=>Xy(e,r),e.transform=r=>ca(e,Ru(r)),e.default=r=>sx(e,r),e.prefault=r=>cx(e,r),e.catch=r=>fx(e,r),e.pipe=r=>ca(e,r),e.readonly=()=>gx(e),e.describe=r=>{const o=e.clone();return an.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return an.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return an.get(e);const o=e.clone();return an.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),lu=D("_ZodString",(e,t)=>{oi.init(e,t),Ae.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(Hc(...o)),e.includes=(...o)=>e.check(qc(...o)),e.startsWith=(...o)=>e.check(Jc(...o)),e.endsWith=(...o)=>e.check(Xc(...o)),e.min=(...o)=>e.check(Jr(...o)),e.max=(...o)=>e.check(Ma(...o)),e.length=(...o)=>e.check(Na(...o)),e.nonempty=(...o)=>e.check(Jr(1,...o)),e.lowercase=o=>e.check(Gc(o)),e.uppercase=o=>e.check(Kc(o)),e.trim=()=>e.check(eu()),e.normalize=(...o)=>e.check(Qc(...o)),e.toLowerCase=()=>e.check(tu()),e.toUpperCase=()=>e.check(nu()),e.slugify=()=>e.check(ru())}),Fa=D("ZodString",(e,t)=>{oi.init(e,t),lu.init(e,t),e.email=r=>e.check(kc(cu,r)),e.url=r=>e.check(za(La,r)),e.jwt=r=>e.check(Wc(Iu,r)),e.emoji=r=>e.check(jc(uu,r)),e.guid=r=>e.check(ia(aa,r)),e.uuid=r=>e.check(Cc(Tn,r)),e.uuidv4=r=>e.check(_c(Tn,r)),e.uuidv6=r=>e.check(Ec(Tn,r)),e.uuidv7=r=>e.check(Pc(Tn,r)),e.nanoid=r=>e.check(Oc(du,r)),e.guid=r=>e.check(ia(aa,r)),e.cuid=r=>e.check(Rc(pu,r)),e.cuid2=r=>e.check(Dc(fu,r)),e.ulid=r=>e.check(Tc(mu,r)),e.base64=r=>e.check(Uc(Su,r)),e.base64url=r=>e.check(Bc(wu,r)),e.xid=r=>e.check(zc(hu,r)),e.ksuid=r=>e.check(Ac(gu,r)),e.ipv4=r=>e.check(Mc(vu,r)),e.ipv6=r=>e.check(Nc(bu,r)),e.cidrv4=r=>e.check(Fc(yu,r)),e.cidrv6=r=>e.check(Lc(xu,r)),e.e164=r=>e.check(Vc($u,r)),e.datetime=r=>e.check(wy(r)),e.date=r=>e.check($y(r)),e.time=r=>e.check(Iy(r)),e.duration=r=>e.check(ky(r))});function ht(e){return jb(Fa,e)}const rt=D("ZodStringFormat",(e,t)=>{Qe.init(e,t),lu.init(e,t)}),cu=D("ZodEmail",(e,t)=>{mv.init(e,t),rt.init(e,t)});function wz(e){return kc(cu,e)}const aa=D("ZodGUID",(e,t)=>{pv.init(e,t),rt.init(e,t)});function $z(e){return ia(aa,e)}const Tn=D("ZodUUID",(e,t)=>{fv.init(e,t),rt.init(e,t)});function Iz(e){return Cc(Tn,e)}function kz(e){return _c(Tn,e)}function Cz(e){return Ec(Tn,e)}function _z(e){return Pc(Tn,e)}const La=D("ZodURL",(e,t)=>{hv.init(e,t),rt.init(e,t)});function Ez(e){return za(La,e)}function Pz(e){return za(La,{protocol:/^https?$/,hostname:Eg,...L(e)})}const uu=D("ZodEmoji",(e,t)=>{gv.init(e,t),rt.init(e,t)});function jz(e){return jc(uu,e)}const du=D("ZodNanoID",(e,t)=>{vv.init(e,t),rt.init(e,t)});function Oz(e){return Oc(du,e)}const pu=D("ZodCUID",(e,t)=>{bv.init(e,t),rt.init(e,t)});function Rz(e){return Rc(pu,e)}const fu=D("ZodCUID2",(e,t)=>{yv.init(e,t),rt.init(e,t)});function Dz(e){return Dc(fu,e)}const mu=D("ZodULID",(e,t)=>{xv.init(e,t),rt.init(e,t)});function Tz(e){return Tc(mu,e)}const hu=D("ZodXID",(e,t)=>{Sv.init(e,t),rt.init(e,t)});function zz(e){return zc(hu,e)}const gu=D("ZodKSUID",(e,t)=>{wv.init(e,t),rt.init(e,t)});function Az(e){return Ac(gu,e)}const vu=D("ZodIPv4",(e,t)=>{_v.init(e,t),rt.init(e,t)});function Mz(e){return Mc(vu,e)}const Fy=D("ZodMAC",(e,t)=>{Pv.init(e,t),rt.init(e,t)});function Nz(e){return Rb(Fy,e)}const bu=D("ZodIPv6",(e,t)=>{Ev.init(e,t),rt.init(e,t)});function Fz(e){return Nc(bu,e)}const yu=D("ZodCIDRv4",(e,t)=>{jv.init(e,t),rt.init(e,t)});function Lz(e){return Fc(yu,e)}const xu=D("ZodCIDRv6",(e,t)=>{Ov.init(e,t),rt.init(e,t)});function Uz(e){return Lc(xu,e)}const Su=D("ZodBase64",(e,t)=>{Rv.init(e,t),rt.init(e,t)});function Bz(e){return Uc(Su,e)}const wu=D("ZodBase64URL",(e,t)=>{Tv.init(e,t),rt.init(e,t)});function Vz(e){return Bc(wu,e)}const $u=D("ZodE164",(e,t)=>{zv.init(e,t),rt.init(e,t)});function Wz(e){return Vc($u,e)}const Iu=D("ZodJWT",(e,t)=>{Mv.init(e,t),rt.init(e,t)});function Zz(e){return Wc(Iu,e)}const ai=D("ZodCustomStringFormat",(e,t)=>{Nv.init(e,t),rt.init(e,t)});function Hz(e,t,r={}){return ii(ai,e,t,r)}function Gz(e){return ii(ai,"hostname",_g,e)}function Kz(e){return ii(ai,"hex",Wg,e)}function qz(e,t){const r=t?.enc??"hex",o=`${e}_${r}`,n=fc[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return ii(ai,o,n,t)}const Ua=D("ZodNumber",(e,t)=>{vc.init(e,t),Ae.init(e,t),e.gt=(o,n)=>e.check(Sr(o,n)),e.gte=(o,n)=>e.check(Dt(o,n)),e.min=(o,n)=>e.check(Dt(o,n)),e.lt=(o,n)=>e.check(xr(o,n)),e.lte=(o,n)=>e.check(sn(o,n)),e.max=(o,n)=>e.check(sn(o,n)),e.int=o=>e.check(Js(o)),e.safe=o=>e.check(Js(o)),e.positive=o=>e.check(Sr(0,o)),e.nonnegative=o=>e.check(Dt(0,o)),e.negative=o=>e.check(xr(0,o)),e.nonpositive=o=>e.check(sn(0,o)),e.multipleOf=(o,n)=>e.check(Bo(o,n)),e.step=(o,n)=>e.check(Bo(o,n)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Dn(e){return Nb(Ua,e)}const ro=D("ZodNumberFormat",(e,t)=>{Fv.init(e,t),Ua.init(e,t)});function Js(e){return Lb(ro,e)}function Jz(e){return Ub(ro,e)}function Xz(e){return Bb(ro,e)}function Yz(e){return Vb(ro,e)}function Qz(e){return Wb(ro,e)}const Ba=D("ZodBoolean",(e,t)=>{bc.init(e,t),Ae.init(e,t)});function si(e){return Zb(Ba,e)}const Va=D("ZodBigInt",(e,t)=>{yc.init(e,t),Ae.init(e,t),e.gte=(o,n)=>e.check(Dt(o,n)),e.min=(o,n)=>e.check(Dt(o,n)),e.gt=(o,n)=>e.check(Sr(o,n)),e.gte=(o,n)=>e.check(Dt(o,n)),e.min=(o,n)=>e.check(Dt(o,n)),e.lt=(o,n)=>e.check(xr(o,n)),e.lte=(o,n)=>e.check(sn(o,n)),e.max=(o,n)=>e.check(sn(o,n)),e.positive=o=>e.check(Sr(BigInt(0),o)),e.negative=o=>e.check(xr(BigInt(0),o)),e.nonpositive=o=>e.check(sn(BigInt(0),o)),e.nonnegative=o=>e.check(Dt(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Bo(o,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function eA(e){return Gb(Va,e)}const ku=D("ZodBigIntFormat",(e,t)=>{Lv.init(e,t),Va.init(e,t)});function tA(e){return qb(ku,e)}function nA(e){return Jb(ku,e)}const Ly=D("ZodSymbol",(e,t)=>{Uv.init(e,t),Ae.init(e,t)});function rA(e){return Xb(Ly,e)}const Uy=D("ZodUndefined",(e,t)=>{Bv.init(e,t),Ae.init(e,t)});function oA(e){return Yb(Uy,e)}const By=D("ZodNull",(e,t)=>{Vv.init(e,t),Ae.init(e,t)});function Vy(e){return Qb(By,e)}const Wy=D("ZodAny",(e,t)=>{Wv.init(e,t),Ae.init(e,t)});function iA(){return ey(Wy)}const Zy=D("ZodUnknown",(e,t)=>{Zv.init(e,t),Ae.init(e,t)});function Xr(){return ty(Zy)}const Hy=D("ZodNever",(e,t)=>{Hv.init(e,t),Ae.init(e,t)});function Cu(e){return ny(Hy,e)}const Gy=D("ZodVoid",(e,t)=>{Gv.init(e,t),Ae.init(e,t)});function aA(e){return ry(Gy,e)}const _u=D("ZodDate",(e,t)=>{Kv.init(e,t),Ae.init(e,t),e.min=(o,n)=>e.check(Dt(o,n)),e.max=(o,n)=>e.check(sn(o,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function sA(e){return oy(_u,e)}const Ky=D("ZodArray",(e,t)=>{qv.init(e,t),Ae.init(e,t),e.element=t.element,e.min=(r,o)=>e.check(Jr(r,o)),e.nonempty=r=>e.check(Jr(1,r)),e.max=(r,o)=>e.check(Ma(r,o)),e.length=(r,o)=>e.check(Na(r,o)),e.unwrap=()=>e.element});function Wa(e,t){return py(Ky,e,t)}function lA(e){const t=e._zod.def.shape;return Yt(Object.keys(t))}const Za=D("ZodObject",(e,t)=>{Qv.init(e,t),Ae.init(e,t),Ue(e,"shape",()=>t.shape),e.keyof=()=>Yt(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Xr()}),e.loose=()=>e.clone({...e._zod.def,catchall:Xr()}),e.strict=()=>e.clone({...e._zod.def,catchall:Cu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Jh(e,r),e.safeExtend=r=>Xh(e,r),e.merge=r=>Yh(e,r),e.pick=r=>Kh(e,r),e.omit=r=>qh(e,r),e.partial=(...r)=>Qh(Du,e,r[0]),e.required=(...r)=>eg(Tu,e,r[0])});function In(e,t){const r={type:"object",shape:e??{},...L(t)};return new Za(r)}function cA(e,t){return new Za({type:"object",shape:e,catchall:Cu(),...L(t)})}function uA(e,t){return new Za({type:"object",shape:e,catchall:Xr(),...L(t)})}const Eu=D("ZodUnion",(e,t)=>{xc.init(e,t),Ae.init(e,t),e.options=t.options});function Pu(e,t){return new Eu({type:"union",options:e,...L(t)})}const qy=D("ZodDiscriminatedUnion",(e,t)=>{Eu.init(e,t),eb.init(e,t)});function dA(e,t,r){return new qy({type:"union",options:t,discriminator:e,...L(r)})}const Jy=D("ZodIntersection",(e,t)=>{tb.init(e,t),Ae.init(e,t)});function Xy(e,t){return new Jy({type:"intersection",left:e,right:t})}const Yy=D("ZodTuple",(e,t)=>{Sc.init(e,t),Ae.init(e,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Qy(e,t,r){const o=t instanceof Oe,n=o?r:t,i=o?t:null;return new Yy({type:"tuple",items:e,rest:i,...L(n)})}const ju=D("ZodRecord",(e,t)=>{nb.init(e,t),Ae.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Ou(e,t,r){return new ju({type:"record",keyType:e,valueType:t,...L(r)})}function pA(e,t,r){const o=Xt(e);return o._zod.values=void 0,new ju({type:"record",keyType:o,valueType:t,...L(r)})}const ex=D("ZodMap",(e,t)=>{rb.init(e,t),Ae.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function fA(e,t,r){return new ex({type:"map",keyType:e,valueType:t,...L(r)})}const tx=D("ZodSet",(e,t)=>{ob.init(e,t),Ae.init(e,t),e.min=(...r)=>e.check(Vo(...r)),e.nonempty=r=>e.check(Vo(1,r)),e.max=(...r)=>e.check(Aa(...r)),e.size=(...r)=>e.check(Zc(...r))});function mA(e,t){return new tx({type:"set",valueType:e,...L(t)})}const Wo=D("ZodEnum",(e,t)=>{ib.init(e,t),Ae.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{const i={};for(const a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Wo({...t,checks:[],...L(n),entries:i})},e.exclude=(o,n)=>{const i={...t.entries};for(const a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Wo({...t,checks:[],...L(n),entries:i})}});function Yt(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Wo({type:"enum",entries:r,...L(t)})}function hA(e,t){return new Wo({type:"enum",entries:e,...L(t)})}const nx=D("ZodLiteral",(e,t)=>{ab.init(e,t),Ae.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function gA(e,t){return new nx({type:"literal",values:Array.isArray(e)?e:[e],...L(t)})}const rx=D("ZodFile",(e,t)=>{sb.init(e,t),Ae.init(e,t),e.min=(r,o)=>e.check(Vo(r,o)),e.max=(r,o)=>e.check(Aa(r,o)),e.mime=(r,o)=>e.check(Yc(Array.isArray(r)?r:[r],o))});function vA(e){return fy(rx,e)}const ox=D("ZodTransform",(e,t)=>{lb.init(e,t),Ae.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ja(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(Kr(i,r.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Kr(a))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function Ru(e){return new ox({type:"transform",transform:e})}const Du=D("ZodOptional",(e,t)=>{cb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function sa(e){return new Du({type:"optional",innerType:e})}const ix=D("ZodNullable",(e,t)=>{ub.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function la(e){return new ix({type:"nullable",innerType:e})}function bA(e){return sa(la(e))}const ax=D("ZodDefault",(e,t)=>{db.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function sx(e,t){return new ax({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ra(t)}})}const lx=D("ZodPrefault",(e,t)=>{pb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function cx(e,t){return new lx({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ra(t)}})}const Tu=D("ZodNonOptional",(e,t)=>{fb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ux(e,t){return new Tu({type:"nonoptional",innerType:e,...L(t)})}const dx=D("ZodSuccess",(e,t)=>{mb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yA(e){return new dx({type:"success",innerType:e})}const px=D("ZodCatch",(e,t)=>{hb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fx(e,t){return new px({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const mx=D("ZodNaN",(e,t)=>{gb.init(e,t),Ae.init(e,t)});function xA(e){return ay(mx,e)}const zu=D("ZodPipe",(e,t)=>{vb.init(e,t),Ae.init(e,t),e.in=t.in,e.out=t.out});function ca(e,t){return new zu({type:"pipe",in:e,out:t})}const Au=D("ZodCodec",(e,t)=>{zu.init(e,t),wc.init(e,t)});function SA(e,t,r){return new Au({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}const hx=D("ZodReadonly",(e,t)=>{bb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function gx(e){return new hx({type:"readonly",innerType:e})}const vx=D("ZodTemplateLiteral",(e,t)=>{yb.init(e,t),Ae.init(e,t)});function wA(e,t){return new vx({type:"template_literal",parts:e,...L(t)})}const bx=D("ZodLazy",(e,t)=>{wb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.getter()});function yx(e){return new bx({type:"lazy",getter:e})}const xx=D("ZodPromise",(e,t)=>{Sb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function $A(e){return new xx({type:"promise",innerType:e})}const Sx=D("ZodFunction",(e,t)=>{xb.init(e,t),Ae.init(e,t)});function sf(e){return new Sx({type:"function",input:Array.isArray(e?.input)?Qy(e?.input):e?.input??Wa(Xr()),output:e?.output??Xr()})}const Ha=D("ZodCustom",(e,t)=>{$b.init(e,t),Ae.init(e,t)});function IA(e){const t=new at({check:"custom"});return t._zod.check=e,t}function kA(e,t){return my(Ha,e??(()=>!0),t)}function wx(e,t={}){return hy(Ha,e,t)}function $x(e){return gy(e)}const CA=by,_A=yy;function EA(e,t={error:`Input not instance of ${e.name}`}){const r=new Ha({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...L(t)});return r._zod.bag.Class=e,r}const PA=(...e)=>xy({Codec:Au,Boolean:Ba,String:Fa},...e);function jA(e){const t=yx(()=>Pu([ht(e),Dn(),si(),Vy(),Wa(t),Ou(ht(),t)]));return t}function OA(e,t){return ca(Ru(e),t)}const RA={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function DA(e){It({customError:e})}function TA(){return It().customError}var Xs;Xs||(Xs={});function zA(e){return Ob(Fa,e)}function AA(e){return Fb(Ua,e)}function MA(e){return Hb(Ba,e)}function NA(e){return Kb(Va,e)}function FA(e){return iy(_u,e)}const LA=Object.freeze(Object.defineProperty({__proto__:null,bigint:NA,boolean:MA,date:FA,number:AA,string:zA},Symbol.toStringTag,{value:"Module"}));It(Ib());const _e=Object.freeze(Object.defineProperty({__proto__:null,$brand:Lh,$input:Pb,$output:Eb,NEVER:Fh,TimePrecision:Db,ZodAny:Wy,ZodArray:Ky,ZodBase64:Su,ZodBase64URL:wu,ZodBigInt:Va,ZodBigIntFormat:ku,ZodBoolean:Ba,ZodCIDRv4:yu,ZodCIDRv6:xu,ZodCUID:pu,ZodCUID2:fu,ZodCatch:px,ZodCodec:Au,ZodCustom:Ha,ZodCustomStringFormat:ai,ZodDate:_u,ZodDefault:ax,ZodDiscriminatedUnion:qy,ZodE164:$u,ZodEmail:cu,ZodEmoji:uu,ZodEnum:Wo,ZodError:Sz,ZodFile:rx,get ZodFirstPartyTypeKind(){return Xs},ZodFunction:Sx,ZodGUID:aa,ZodIPv4:vu,ZodIPv6:bu,ZodISODate:iu,ZodISODateTime:ou,ZodISODuration:su,ZodISOTime:au,ZodIntersection:Jy,ZodIssueCode:RA,ZodJWT:Iu,ZodKSUID:gu,ZodLazy:bx,ZodLiteral:nx,ZodMAC:Fy,ZodMap:ex,ZodNaN:mx,ZodNanoID:du,ZodNever:Hy,ZodNonOptional:Tu,ZodNull:By,ZodNullable:ix,ZodNumber:Ua,ZodNumberFormat:ro,ZodObject:Za,ZodOptional:Du,ZodPipe:zu,ZodPrefault:lx,ZodPromise:xx,ZodReadonly:hx,ZodRealError:Ft,ZodRecord:ju,ZodSet:tx,ZodString:Fa,ZodStringFormat:rt,ZodSuccess:dx,ZodSymbol:Ly,ZodTemplateLiteral:vx,ZodTransform:ox,ZodTuple:Yy,ZodType:Ae,ZodULID:mu,ZodURL:La,ZodUUID:Tn,ZodUndefined:Uy,ZodUnion:Eu,ZodUnknown:Zy,ZodVoid:Gy,ZodXID:hu,_ZodString:lu,_default:sx,_function:sf,any:iA,array:Wa,base64:Bz,base64url:Vz,bigint:eA,boolean:si,catch:fx,check:IA,cidrv4:Lz,cidrv6:Uz,clone:Xt,codec:SA,coerce:LA,config:It,core:yz,cuid:Rz,cuid2:Dz,custom:kA,date:sA,decode:Ry,decodeAsync:Ty,describe:CA,discriminatedUnion:dA,e164:Wz,email:wz,emoji:jz,encode:Oy,encodeAsync:Dy,endsWith:Xc,enum:Yt,file:vA,flattenError:nc,float32:Jz,float64:Xz,formatError:rc,function:sf,getErrorMap:TA,globalRegistry:an,gt:Sr,gte:Dt,guid:$z,hash:qz,hex:Kz,hostname:Gz,httpUrl:Pz,includes:qc,instanceof:EA,int:Js,int32:Yz,int64:tA,intersection:Xy,ipv4:Mz,ipv6:Fz,iso:xz,json:jA,jwt:Zz,keyof:lA,ksuid:Az,lazy:yx,length:Na,literal:gA,locales:_b,looseObject:uA,lowercase:Gc,lt:xr,lte:sn,mac:Nz,map:fA,maxLength:Ma,maxSize:Aa,meta:_A,mime:Yc,minLength:Jr,minSize:Vo,multipleOf:Bo,nan:xA,nanoid:Oz,nativeEnum:hA,negative:ly,never:Cu,nonnegative:uy,nonoptional:ux,nonpositive:cy,normalize:Qc,null:Vy,nullable:la,nullish:bA,number:Dn,object:In,optional:sa,overwrite:tr,parse:_y,parseAsync:Ey,partialRecord:pA,pipe:ca,positive:sy,prefault:cx,preprocess:OA,prettifyError:sg,promise:$A,property:dy,readonly:gx,record:Ou,refine:wx,regex:Hc,regexes:fc,registry:Ic,safeDecode:Ay,safeDecodeAsync:Ny,safeEncode:zy,safeEncodeAsync:My,safeParse:Py,safeParseAsync:jy,set:mA,setErrorMap:DA,size:Zc,slugify:ru,startsWith:Jc,strictObject:cA,string:ht,stringFormat:Hz,stringbool:PA,success:yA,superRefine:$x,symbol:rA,templateLiteral:wA,toJSONSchema:Sy,toLowerCase:tu,toUpperCase:nu,transform:Ru,treeifyError:ig,trim:eu,tuple:Qy,uint32:Qz,uint64:nA,ulid:Tz,undefined:oA,union:Pu,unknown:Xr,uppercase:Kc,url:Ez,util:rg,uuid:Iz,uuidv4:kz,uuidv6:Cz,uuidv7:_z,void:aA,xid:zz},Symbol.toStringTag,{value:"Module"})),Ix=In({elementId:ht().optional()}),UA=In({text:ht()}),kx=In({direction:Yt(["left","right","up","down"]),x1:Dn().optional(),y1:Dn().optional(),x2:Dn().optional(),y2:Dn().optional(),duration:Dn().optional().default(500)}),BA=In({direction:Yt(["in","out"])}),VA=In({text:ht().optional(),elementId:ht().optional(),direction:Yt(["up","down"]),maxScrolls:Dn().optional()}),WA=In({url:ht()});In({elementId:ht()});In({mode:Yt(["adb","appium"])});Yt(["tap","type","scroll","swipe","zoom","scrollUntil","deepLink","elementId"]);const kn=_e.object({id:_e.number(),descriptionText:_e.string().optional(),optional:_e.boolean().optional(),status:_e.string().optional(),statusColor:_e.string().optional(),statusDiv:_e.custom().optional(),element:_e.custom().optional(),originRef:_e.object({refId:_e.number(),path:_e.string(),descriptionText:_e.string().optional(),optional:_e.boolean().optional(),overrides:_e.record(_e.string(),_e.string()).optional(),stepNumber:_e.number().optional()}).optional()}),Mu=kn.extend(Ix.shape).extend({type:_e.literal("tap"),timeout:_e.number().optional(),useLlmOnly:_e.boolean().optional()}),Nu=kn.extend(Ix.shape).extend({type:_e.literal("assert"),timeout:_e.number().optional(),useLlmOnly:_e.boolean().optional()}),Fu=kn.extend(UA.shape).extend({type:_e.literal("type")}),Lu=kn.extend(kx.shape).extend({type:_e.literal("scroll")}),Cx=kn.extend(BA.shape).extend({type:_e.literal("zoom")}),Uu=kn.extend(kx.shape).extend({type:_e.literal("swipe")}),Bu=kn.extend(VA.shape).extend({type:_e.literal("scrollUntil")}),Vu=kn.extend(WA.shape).extend({type:_e.literal("deeplink")}),Wu=kn.extend({type:_e.literal("ai"),instruction:_e.string()}),Zu=kn.extend({type:_e.literal("fileRef"),path:_e.string(),overrides:_e.record(_e.string(),_e.string()).optional()}),gs={statusDiv:!0,element:!0,status:!0,statusColor:!0,originRef:!0,cropBase64:!0,x:!0,y:!0,screenWidth:!0,screenHeight:!0},mn={statusDiv:!0,element:!0,status:!0,statusColor:!0,originRef:!0},_x=_e.discriminatedUnion("type",[Mu,Nu,Fu,Lu,Cx,Uu,Bu,Vu,Wu,Zu]),lf=_e.enum(["tap","assert","type","scroll","swipe","zoom","scrollUntil","deeplink","ai","fileRef"]),ZA=_e.discriminatedUnion("type",[Mu.omit(mn),Nu.omit(mn),Fu.omit(mn),Lu.omit(mn),Uu.omit(mn),Cx.omit(mn),Bu.omit(mn),Vu.omit(mn),Wu.omit(mn),Zu.omit(mn)]);_e.object({name:_e.string(),steps:_e.array(ZA),params:_e.record(_e.string(),_e.string())});const te=new cl({isRecording:!1,enableAnimations:!0,mode:"interact",test:{name:"untitled",steps:[],params:{}},filePath:null,isPlaying:!1,isDeviceConnected:!1,connectionStatus:"Connecting...",currentStepId:null,selectedPlatform:"android",selectedDeviceId:void 0,executionLog:[],currentScreenshot:null}),Ga=Ee.div`
|
|
183
|
+
/* Act as a flexible panel that can live inside grid/flex cells */
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
height: 100%;
|
|
187
|
+
min-height: 0; /* allow inner children to shrink/scroll */
|
|
188
|
+
/* Contain overflow by default; individual inner areas can scroll */
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
|
|
191
|
+
border-radius: 12px;
|
|
192
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
193
|
+
background-color: #fff;
|
|
194
|
+
padding: 1.5rem;
|
|
195
|
+
`,Cn=F(kr)(({theme:e,$hasOrigin:t})=>({display:"flex",alignItems:"flex-start",padding:e.spacing(2),marginBottom:e.spacing(1),gap:e.spacing(2),animation:"fadeIn 0.3s ease-in",borderLeft:t?`4px solid ${e.palette.info.main}`:void 0,backgroundColor:t?`${e.palette.info.light}22`:void 0,"@keyframes fadeIn":{from:{opacity:0,transform:"translateY(10px)"},to:{opacity:1,transform:"translateY(0)"}},position:"relative","&:hover .step-actions-overlay":{opacity:1,transform:"translateY(0)"}})),_n=F(Ce)(({theme:e})=>({fontWeight:"bold",fontSize:"1.2em",color:e.palette.primary.main,minWidth:30})),En=F(He)({flexGrow:1}),Bn=({path:e})=>p.jsxs(Ce,{variant:"caption",color:"info.main",sx:{display:"block",fontFamily:"monospace"},children:["from ",e]}),Pn=F(Ce)(({statuscolor:e})=>({fontSize:"0.8em",marginTop:4,color:e||"#666",fontWeight:500})),jn=F(He)(({theme:e})=>({position:"absolute",top:-16,right:16,backgroundColor:e.palette.background.paper,boxShadow:e.shadows[3],border:`1px solid ${e.palette.divider}`,display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5),opacity:0,transition:"all 0.2s ease-in-out",zIndex:10,borderRadius:16,padding:"4px 8px",transform:"translateY(5px)","&.visible":{opacity:1,transform:"translateY(0)"}})),HA=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,children:[p.jsx(_n,{children:t}),p.jsxs(En,{children:[p.jsx(Ce,{variant:"body2",color:"text.secondary",fontFamily:"monospace",children:"📄 File Reference"}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||"Add steps from file"}),p.jsxs(Ce,{variant:"body2",children:["Path: ",e.path]}),e.overrides&&Object.keys(e.overrides).length>0&&p.jsxs(He,{sx:{mt:.5,display:"flex",alignItems:"center",flexWrap:"wrap",gap:.5},children:[p.jsx(Ce,{variant:"caption",color:"text.secondary",children:"Overrides:"}),Object.keys(e.overrides).map(a=>p.jsx(Ne,{size:"small",label:`${a}`},a))]}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsx(He,{sx:{mt:1,display:"flex",gap:1,alignItems:"center"},children:e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[o&&p.jsx(ge,{onClick:o,size:"small","aria-label":"Play",children:p.jsx(pn,{})}),o&&p.jsx(ge,{onClick:o,size:"small","aria-label":"Play from here",children:p.jsx($n,{})}),n&&p.jsx(ge,{onClick:n,size:"small","aria-label":"Edit",children:p.jsx(wn,{})}),i&&p.jsx(ge,{onClick:i,size:"small","aria-label":"Delete",children:p.jsx(dn,{})})]})]}),GA=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,$hasOrigin:!!e.originRef,children:[p.jsx(_n,{children:t}),p.jsx(Ne,{icon:p.jsx(JC,{}),label:"Tap",color:"primary",variant:"outlined"}),p.jsxs(En,{children:[e.originRef?.path&&p.jsx(Bn,{path:e.originRef?.path}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||"Tap Interaction"}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsxs(He,{sx:{mt:1,display:"flex",gap:1,flexWrap:"wrap"},children:[e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null,e.useLlmOnly?p.jsx(Ne,{size:"small",label:"LLM Only"}):null,e.elementId?p.jsx(Ne,{size:"small",label:`Element ID: ${e.elementId}`}):null,typeof e.timeout=="number"?p.jsx(Ne,{size:"small",label:`Timeout: ${e.timeout} ms`}):null]})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[p.jsx(ge,{size:"small",onClick:r,title:"Play this step",children:p.jsx(pn,{})}),p.jsx(ge,{size:"small",onClick:o,title:"Play from here",children:p.jsx($n,{})}),p.jsx(ge,{size:"small",onClick:n,title:"Edit",children:p.jsx(wn,{})}),p.jsx(ge,{size:"small",onClick:i,title:"Delete",children:p.jsx(dn,{})})]})]}),KA=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,$hasOrigin:!!e.originRef,children:[p.jsx(_n,{children:t}),p.jsx(Ne,{icon:p.jsx(MC,{}),label:"Assert",color:"warning",variant:"outlined"}),p.jsxs(En,{children:[e.originRef?.path&&p.jsx(Bn,{path:e.originRef?.path}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||"Assert Element"}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsxs(He,{sx:{mt:1,display:"flex",gap:1,flexWrap:"wrap"},children:[e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null,e.useLlmOnly?p.jsx(Ne,{size:"small",label:"LLM Only"}):null,e.elementId?p.jsx(Ne,{size:"small",label:`Element ID: ${e.elementId}`}):null,typeof e.timeout=="number"?p.jsx(Ne,{size:"small",label:`Timeout: ${e.timeout} ms`}):null]})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[p.jsx(ge,{size:"small",onClick:r,title:"Play this step",children:p.jsx(pn,{})}),p.jsx(ge,{size:"small",onClick:o,title:"Play from here",children:p.jsx($n,{})}),p.jsx(ge,{size:"small",onClick:n,title:"Edit",children:p.jsx(wn,{})}),p.jsx(ge,{size:"small",onClick:i,title:"Delete",children:p.jsx(dn,{})})]})]}),qA=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,$hasOrigin:!!e.originRef,children:[p.jsx(_n,{children:t}),p.jsx(Ne,{icon:p.jsx(BC,{}),label:"Type",color:"primary",variant:"outlined"}),p.jsxs(En,{children:[e.originRef?.path&&p.jsx(Bn,{path:e.originRef?.path}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||`Type "${e.text}"`}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsxs(He,{sx:{mt:1,display:"flex",gap:1,flexWrap:"wrap"},children:[p.jsx(Ne,{size:"small",label:`Text: ${e.text}`}),e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null]})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[p.jsx(ge,{size:"small",onClick:r,title:"Play this step",children:p.jsx(pn,{})}),p.jsx(ge,{size:"small",onClick:o,title:"Play from here",children:p.jsx($n,{})}),p.jsx(ge,{size:"small",onClick:n,title:"Edit",children:p.jsx(wn,{})}),p.jsx(ge,{size:"small",onClick:i,title:"Delete",children:p.jsx(dn,{})})]})]}),JA=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,$hasOrigin:!!e.originRef,children:[p.jsx(_n,{children:t}),p.jsx(Ne,{icon:p.jsx(_m,{}),label:"Scroll",color:"secondary",variant:"outlined"}),p.jsxs(En,{children:[e.originRef?.path&&p.jsx(Bn,{path:e.originRef?.path}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||`Scroll ${e.direction}`}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsxs(He,{display:"flex",gap:1,mt:1,children:[p.jsx(Ne,{label:`Direction: ${e.direction}`,size:"small"}),e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null]})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[p.jsx(ge,{size:"small",onClick:r,title:"Play this step",children:p.jsx(pn,{})}),p.jsx(ge,{size:"small",onClick:o,title:"Play from here",children:p.jsx($n,{})}),p.jsx(ge,{size:"small",onClick:n,title:"Edit",children:p.jsx(wn,{})}),p.jsx(ge,{size:"small",onClick:i,title:"Delete",children:p.jsx(dn,{})})]})]}),XA=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,$hasOrigin:!!e.originRef,children:[p.jsx(_n,{children:t}),p.jsx(Ne,{icon:p.jsx(_m,{}),label:"Swipe",color:"secondary",variant:"outlined"}),p.jsxs(En,{children:[e.originRef?.path&&p.jsx(Bn,{path:e.originRef?.path}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||`Swipe ${e.direction}`}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsxs(He,{display:"flex",gap:1,mt:1,children:[p.jsx(Ne,{label:`Direction: ${e.direction}`,size:"small"}),typeof e.x=="number"&&typeof e.y=="number"?p.jsx(Ne,{label:`Start: ${e.x}, ${e.y}`,size:"small"}):null,typeof e.duration=="number"?p.jsx(Ne,{label:`Duration: ${e.duration}ms`,size:"small"}):null,e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null]})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[p.jsx(ge,{size:"small",onClick:r,title:"Play this step",children:p.jsx(pn,{})}),p.jsx(ge,{size:"small",onClick:o,title:"Play from here",children:p.jsx($n,{})}),p.jsx(ge,{size:"small",onClick:n,title:"Edit",children:p.jsx(wn,{})}),p.jsx(ge,{size:"small",onClick:i,title:"Delete",children:p.jsx(dn,{})})]})]}),YA=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,$hasOrigin:!!e.originRef,children:[p.jsx(_n,{children:t}),p.jsx(Ne,{icon:p.jsx(XC,{}),label:"Zoom",color:"secondary",variant:"outlined"}),p.jsxs(En,{children:[e.originRef?.path&&p.jsx(Bn,{path:e.originRef?.path}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||`Zoom ${e.direction}`}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsxs(He,{display:"flex",gap:1,mt:1,children:[p.jsx(Ne,{label:`Direction: ${e.direction}`,size:"small"}),e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null]})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[p.jsx(ge,{size:"small",onClick:r,title:"Play this step",children:p.jsx(pn,{})}),p.jsx(ge,{size:"small",onClick:o,title:"Play from here",children:p.jsx($n,{})}),p.jsx(ge,{size:"small",onClick:n,title:"Edit",children:p.jsx(wn,{})}),p.jsx(ge,{size:"small",onClick:i,title:"Delete",children:p.jsx(dn,{})})]})]}),QA=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,$hasOrigin:!!e.originRef,children:[p.jsx(_n,{children:t}),p.jsx(Ne,{icon:p.jsx(KC,{}),label:"Scroll Until",color:"info",variant:"outlined"}),p.jsxs(En,{children:[e.originRef?.path&&p.jsx(Bn,{path:e.originRef?.path}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||"Scroll Until Found"}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsxs(He,{display:"flex",gap:1,mt:1,alignItems:"center",sx:{flexWrap:"wrap"},children:[e.text?p.jsx(Ne,{label:`Find: ${e.text}`,size:"small"}):null,e.elementId?p.jsx(Ne,{label:`Element ID: ${e.elementId}`,size:"small"}):null,p.jsx(Ne,{label:`Direction: ${e.direction}`,size:"small"}),p.jsx(Ne,{label:`Max Scrolls: ${e.maxScrolls}`,size:"small"}),e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null]})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[p.jsx(ge,{size:"small",onClick:r,title:"Play this step",children:p.jsx(pn,{})}),p.jsx(ge,{size:"small",onClick:o,title:"Play from here",children:p.jsx($n,{})}),p.jsx(ge,{size:"small",onClick:n,title:"Edit",children:p.jsx(wn,{})}),p.jsx(ge,{size:"small",onClick:i,title:"Delete",children:p.jsx(dn,{})})]})]}),eM=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,$hasOrigin:!!e.originRef,children:[p.jsx(_n,{children:t}),p.jsx(Ne,{icon:p.jsx(WC,{}),label:"Deeplink",color:"success",variant:"outlined"}),p.jsxs(En,{children:[e.originRef?.path&&p.jsx(Bn,{path:e.originRef?.path}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||"Open Deep Link"}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsxs(He,{sx:{mt:1,display:"flex",gap:1,flexWrap:"wrap"},children:[p.jsx(Ne,{size:"small",label:`URL: ${e.url}`}),e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null]})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[p.jsx(ge,{size:"small",onClick:r,title:"Play this step",children:p.jsx(pn,{})}),p.jsx(ge,{size:"small",onClick:o,title:"Play from here",children:p.jsx($n,{})}),p.jsx(ge,{size:"small",onClick:n,title:"Edit",children:p.jsx(wn,{})}),p.jsx(ge,{size:"small",onClick:i,title:"Delete",children:p.jsx(dn,{})})]})]}),tM=({step:e,stepNumber:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>p.jsxs(Cn,{elevation:1,$hasOrigin:!!e.originRef,children:[p.jsx(_n,{children:t}),p.jsx(Ne,{icon:p.jsx(qC,{}),label:"AI",color:"secondary"}),p.jsxs(En,{children:[e.originRef?.path&&p.jsx(Bn,{path:e.originRef?.path}),p.jsx(Ce,{fontWeight:"bold",children:e.descriptionText||"AI Instruction"}),e.status&&p.jsx(Pn,{statuscolor:e.statusColor,children:e.status}),p.jsxs(He,{sx:{mt:1,display:"flex",gap:1,flexWrap:"wrap"},children:[p.jsx(Ne,{size:"small",label:`Instruction: ${e.instruction}`}),e.optional?p.jsx(Ne,{size:"small",label:"Optional"}):null]})]}),p.jsxs(jn,{className:"step-actions-overlay",children:[p.jsx(ge,{size:"small",onClick:r,title:"Play this step",children:p.jsx(pn,{})}),p.jsx(ge,{size:"small",onClick:o,title:"Play from here",children:p.jsx($n,{})}),p.jsx(ge,{size:"small",onClick:n,title:"Edit",children:p.jsx(wn,{})}),p.jsx(ge,{size:"small",onClick:i,title:"Delete",children:p.jsx(dn,{})})]})]}),nM=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},qe=(e,t)=>{const r=t||e||{};return typeof r.method>"u"&&(r.method="GET"),Object.assign(i=>{const a={...r,...i};return qe(void 0,a)},{options:r,middleware:i=>{const a=[...r.middleware||[]];i.map(c=>{id in c?c.options.middleware&&a.push(...c.options.middleware):a.push(c)});const s={...r,middleware:a},l=qe(void 0,s);return l[id]=!0,l},inputValidator:i=>{const a={...r,inputValidator:i};return qe(void 0,a)},handler:(...i)=>{const[a,s]=i,l={...r,extractedFn:a,serverFn:s},c=[...l.middleware||[],aM(l)];return Object.assign(async u=>cf(c,"client",{...a,...l,data:u?.data,headers:u?.headers,signal:u?.signal,context:{}}).then(d=>{if(d.error)throw d.error;return d.result}),{...a,__executeServer:async(u,d)=>{const f=nM(),m=f.contextAfterGlobalMiddlewares,h={...a,...u,context:{...m,...u.context},signal:d,request:f.request};return cf(c,"server",h).then(g=>({result:g.result,error:g.error,context:g.sendContext}))}})}})};async function cf(e,t,r){const o=sS()?.functionMiddleware||[],n=rM([...o,...e]),i=async a=>{const s=n.shift();if(!s)return a;"inputValidator"in s.options&&s.options.inputValidator&&t==="server"&&(a.data=await iM(s.options.inputValidator,a.data));let l;return t==="client"?"client"in s.options&&(l=s.options.client):"server"in s.options&&(l=s.options.server),l?oM(l,a,async c=>i(c).catch(u=>{if(lS(u)||cS(u))return{...c,error:u};throw u})):i(a)};return i({...r,headers:r.headers||{},sendContext:r.sendContext||{},context:r.context||{}})}function rM(e){const t=new Set,r=[],o=n=>{n.forEach(i=>{i.options.middleware&&o(i.options.middleware),t.has(i)||(t.add(i),r.push(i))})};return o(e),r}const oM=async(e,t,r)=>e({...t,next:(async(o={})=>r({...t,...o,context:{...t.context,...o.context},sendContext:{...t.sendContext,...o.sendContext??{}},headers:dS(t.headers,o.headers),result:o.result!==void 0?o.result:o instanceof Response?o:t.result,error:o.error??t.error}))});function iM(e,t){if(e==null)return{};if("~standard"in e){const r=e["~standard"].validate(t);if(r instanceof Promise)throw new Error("Async validation not supported");if(r.issues)throw new Error(JSON.stringify(r.issues,void 0,2));return r.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function aM(e){return{_types:void 0,options:{inputValidator:e.inputValidator,client:async({next:t,sendContext:r,...o})=>{const n={...o,context:r},i=await e.extractedFn?.(n);return t(i)},server:async({next:t,...r})=>{const o=await e.serverFn?.(r);return t({...r,result:o})}}}}const sM=nt("605c05774def700303f9889c0f8a28fed026e0b5c36a1563cff2835ee01d26b1"),lM=qe({method:"POST"}).handler(sM),Ex={mutationKey:["device","tap"],mutationFn:e=>lM({data:e})},cM=nt("07e23aa87e88d53c6c9e3d8e88de788d27d7b10930150bc4fd510d4447aaf3de"),uM=qe({method:"POST"}).handler(cM),Px={mutationKey:["device","type"],mutationFn:e=>uM({data:e})},dM=nt("2b4a002699960d578addbcf4dd83fedcec62444d7da4bf7c2359be991ed6207e"),pM=qe({method:"POST"}).handler(dM),jx={mutationKey:["device","swipe"],mutationFn:e=>pM({data:e})},fM=nt("10b616f4aacf11bb275166e4ae03f441f1d7c9a68a670dfadb03b74e1d012900"),mM=qe({method:"POST"}).handler(fM),hM={mutationKey:["device","scrollUntil"],mutationFn:e=>mM({data:e})},gM=nt("c23cd3196f54848abd64a8b8d4660d7826a70cf44169d7bf29fc82e74a2cf612"),vM=qe({method:"POST"}).handler(gM),bM={mutationKey:["device","zoom"],mutationFn:e=>vM({data:e})},yM=nt("566ee4344553ab6300f847f5de346e037f92d986cb824ba1c313346e62345fbe"),xM=qe({method:"POST"}).handler(yM),SM={mutationKey:["device","deepLink"],mutationFn:e=>xM({data:e})},wM=nt("74707f0f69b6fbfb702db467d1eb3f8fb90ba2efd5f82338b79ec07903e39dc6"),$M=qe({method:"POST"}).handler(wM),IM={mutationKey:["device","restartApp"],mutationFn:e=>$M({data:e})},kM=nt("eea1073a910f7f023004366aafcef05a8c47a3a1a4a09721f71a2efe311ee70f"),CM=qe({method:"POST"}).handler(kM),_M={mutationKey:["device","appium","start"],mutationFn:e=>CM({data:e})},EM=nt("6dbdc2968dc27a948c345034d1e55082b86918953b61da020ea8dd5836c79db3"),PM=qe({method:"GET"}).handler(EM),jM=(e={})=>({queryKey:["device","appium","status",e],queryFn:()=>PM({data:e}),refetchInterval:2e3}),OM=nt("c5aeaa72b9b3303af5d82ee2fa59e3e90ffef3c3f0fb32707cee49e78ff41066"),Ox=qe({method:"GET"}).handler(OM),Rx=(e={})=>({queryKey:["device","screenshot",e],queryFn:()=>Ox({data:e}),staleTime:0,gcTime:0}),RM={mutationKey:["device","screenshot_mutation"],mutationFn:e=>Ox({data:e})},DM=nt("1ed4d2aa14be99e8c5a81eefbece63cea629a89f75862c60f9ff19c4d4dc67c5"),TM=qe().handler(DM),zM=nt("05faf0772038a170c70083fd8de4a8b77a40e4ec46e0bbf6878670f02621b5df"),AM=qe({method:"POST"}).handler(zM),MM={mutationKey:["device","hierarchy","getElementId"],mutationFn:e=>AM({data:e})},NM=nt("9bcbf5303827d2a25f347c2054b0121655a82322fa07108653f43246875348f7"),FM=qe({method:"POST"}).handler(NM),LM={mutationKey:["device","hierarchy","findElementById"],mutationFn:e=>FM({data:e})},Dx=({enabled:e})=>({queryKey:["visibleElements"],queryFn:TM,enabled:e}),UM=nt("9f335634267a450fc9f34b1ab33c55da00cb1efc709604b2e3114602020075a2"),BM=qe({method:"POST"}).handler(UM),VM={mutationKey:["device","adb","disableAnimations"],mutationFn:()=>BM()},WM=nt("33557b2fcc5cedc5814d20bca9cd9cde2e45318755de1da4d613e8fa84ee38d1"),ZM=qe({method:"GET"}).handler(WM),Tx={queryKey:["devices"],queryFn:()=>ZM()},HM=nt("fcbe7e11d05240fa28a1dd79ec8c395f6c03682edbaeb19f469bd78d6399cdde"),GM=qe({method:"POST"}).handler(HM),KM=nt("7d2aacaab26ab11cdc66f03a4ed01b8b38186abf16ab1f9306801ea7769aaa2a"),qM=qe({method:"POST"}).handler(KM),JM={mutationFn:e=>qM({data:e}),mutationKey:["executeFromCache"]},zx={mutationFn:e=>GM({data:e}),mutationKey:["populateCache"]},XM=nt("5918013064f9b88efb265b30a770275d6c9d52bf42318f451bab8a47bc850917"),YM=qe({method:"POST"}).handler(XM),QM={mutationKey:["ai","executeAgentStep"],mutationFn:e=>YM({data:e})};In({name:ht(),type:Yt(["file","directory"]),path:ht()});const e2=nt("00fb1fe03e9689cf8c179ba0d5cadc5eeaa6879def224ac38037d70a1a51300d"),t2=qe({method:"GET"}).handler(e2);Ou(ht(),ht()).optional().default({});const n2=nt("54b0d7153f4ee4f963b29e7c835e76cedaaf345527fdc912c49030ea79353b5e"),r2=qe({method:"GET"}).handler(n2),Hu={queryKey:["files"],queryFn:()=>t2()},o2=nt("ac7bf7f1d727949cd28713a8f36bb77e7bd8fc0e48854ed8cb1ee93ce80fb6d0"),i2=qe({method:"POST"}).handler(o2),a2={mutationKey:["createFile"],mutationFn:e=>i2({data:e})},s2=nt("b41e844ce533c224e7c720e69d821468deffcbf208fc008a7f5af83cb0596b15"),l2=qe({method:"POST"}).handler(s2),Gu={mutationKey:["readFile"],mutationFn:e=>l2({data:e})},c2=nt("1b2a0d276d9ce90b2a1d72134c1bf95b9f6b7b049a8f415e8f0da3e6fc5ce4ae"),u2=qe({method:"POST"}).handler(c2),Ax={queryKey:["variables"],queryFn:r2,refetchInterval:1e4},d2={mutationKey:["saveFile"],mutationFn:e=>u2({data:e})},p2=nt("098d52adf25ea567d43facba347871f887828c6ab804021bbfa0f2759209c0c6"),f2=qe({method:"POST"}).handler(p2),m2={mutationKey:["renameFile"],mutationFn:e=>f2({data:e})},h2=nt("efbbc22c41cf491631b07076417c9ec65d5ac71debfcc00b5a7e0d368772104f");qe({method:"POST"}).handler(h2);function g2(e){const t=e?.bounds||e?.attributes?.bounds,r=t?{x:t.x,y:t.y,width:t.width,height:t.height}:void 0,o=e?.text??e?.attributes?.text??e?.name??void 0,n=e?.resourceId??e?.attributes?.["resource-id"]??void 0,i=e?.attributes?.["content-desc"]??e?.attributes?.["accessibility-text"]??e?.accessibilityText??void 0,a=e?.label??e?.attributes?.label??void 0,s=e?.accessibilityIdentifier??e?.attributes?.accessibilityIdentifier??void 0,l=e?.hint??e?.attributes?.hint??e?.value??e?.attributes?.value??void 0,c={...r?{bounds:r}:{},...o?{text:String(o)}:{},...n?{resourceId:String(n)}:{},...i?{contentDesc:String(i)}:{},...a?{accessibilityLabel:String(a)}:{},...s?{accessibilityIdentifier:String(s)}:{},...l?{hint:String(l)}:{}};return Object.keys(c).length>0?c:void 0}function v2(e){if(!Array.isArray(e))return[];const t=[];for(const r of e){const o=g2(r);o&&t.push(o)}return t}const zr=new WeakMap,zi=new WeakMap,ua={current:[]};let vs=!1,jo=0;const wo=new Set,Ii=new Map;function Mx(e){const t=Array.from(e).sort((r,o)=>r instanceof Mn&&r.options.deps.includes(o)?1:o instanceof Mn&&o.options.deps.includes(r)?-1:0);for(const r of t){if(ua.current.includes(r))continue;ua.current.push(r),r.recompute();const o=zi.get(r);if(o)for(const n of o){const i=zr.get(n);i&&Mx(i)}}}function b2(e){const t={prevVal:e.prevState,currentVal:e.state};for(const r of e.listeners)r(t)}function y2(e){const t={prevVal:e.prevState,currentVal:e.state};for(const r of e.listeners)r(t)}function Nx(e){if(jo>0&&!Ii.has(e)&&Ii.set(e,e.prevState),wo.add(e),!(jo>0)&&!vs)try{for(vs=!0;wo.size>0;){const t=Array.from(wo);wo.clear();for(const r of t){const o=Ii.get(r)??r.prevState;r.prevState=o,b2(r)}for(const r of t){const o=zr.get(r);o&&(ua.current.push(r),Mx(o))}for(const r of t){const o=zr.get(r);if(o)for(const n of o)y2(n)}}}finally{vs=!1,ua.current=[],Ii.clear()}}function gn(e){jo++;try{e()}finally{if(jo--,jo===0){const t=wo.values().next().value;t&&Nx(t)}}}function x2(e){return typeof e=="function"}class Ys{constructor(t,r){this.listeners=new Set,this.subscribe=o=>{var n,i;this.listeners.add(o);const a=(i=(n=this.options)==null?void 0:n.onSubscribe)==null?void 0:i.call(n,o,this);return()=>{this.listeners.delete(o),a?.()}},this.prevState=t,this.state=t,this.options=r}setState(t){var r,o,n;this.prevState=this.state,(r=this.options)!=null&&r.updateFn?this.state=this.options.updateFn(this.prevState)(t):x2(t)?this.state=t(this.prevState):this.state=t,(n=(o=this.options)==null?void 0:o.onUpdate)==null||n.call(o),Nx(this)}}class Mn{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const r=this.options.deps.length,o=new Array(r),n=new Array(r);for(let i=0;i<r;i++){const a=this.options.deps[i];o[i]=a.prevState,n[i]=a.state}return this.lastSeenDepValues=n,{prevDepVals:o,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var r,o;this.prevState=this.state;const n=this.getDepVals();this.state=this.options.fn(n),(o=(r=this.options).onUpdate)==null||o.call(r)},this.checkIfRecalculationNeededDeeply=()=>{for(const i of this.options.deps)i instanceof Mn&&i.checkIfRecalculationNeededDeeply();let r=!1;const o=this.lastSeenDepValues,{currDepVals:n}=this.getDepVals();for(let i=0;i<n.length;i++)if(n[i]!==o[i]){r=!0;break}r&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const r of this._subscriptions)r()}),this.subscribe=r=>{var o,n;this.listeners.add(r);const i=(n=(o=this.options).onSubscribe)==null?void 0:n.call(o,r,this);return()=>{this.listeners.delete(r),i?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const r of t)if(r instanceof Mn)r.registerOnGraph(),this.registerOnGraph(r.options.deps);else if(r instanceof Ys){let o=zr.get(r);o||(o=new Set,zr.set(r,o)),o.add(this);let n=zi.get(this);n||(n=new Set,zi.set(this,n)),n.add(r)}}unregisterFromGraph(t=this.options.deps){for(const r of t)if(r instanceof Mn)this.unregisterFromGraph(r.options.deps);else if(r instanceof Ys){const o=zr.get(r);o&&o.delete(this);const n=zi.get(this);n&&n.delete(r)}}}var S2=class{constructor(e,t){this.fn=e,this.options=t,this.lastExecutionTime=0,this.isPending=!1,this.maybeExecute=(...r)=>{const o=Date.now()-this.lastExecutionTime;if(this.options.leading&&o>=this.options.wait)this.execute(...r);else if(this.lastArgs=r,!this.timeoutId&&this.options.trailing){const n=this.options.wait-o;this.isPending=!0,this.timeoutId=setTimeout(()=>{this.lastArgs!==void 0&&this.execute(...this.lastArgs)},n)}},this.execute=(...r)=>{this.fn(...r),this.options.onExecute?.(r,this),this.lastExecutionTime=Date.now(),this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.flush=()=>{this.isPending&&this.lastArgs&&this.execute(...this.lastArgs)},this.cancel=()=>{this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.clearTimeout=()=>{this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0)},this.options.leading===void 0&&this.options.trailing===void 0&&(this.options.leading=!0,this.options.trailing=!0)}};function w2(e,t){return new S2(e,t).maybeExecute}let $2=class{#n=!0;#e;#t;#r;#o;#a;#i;#c;#p=0;#f=5;#s=!1;#u=()=>{this.debugLog("Connected to event bus"),this.#a=!0,this.#s=!1,this.debugLog("Emitting queued events",this.#o),this.#o.forEach(t=>this.emitEventToBus(t)),this.#o=[],this.stopConnectLoop(),this.#t().removeEventListener("tanstack-connect-success",this.#u)};#l=()=>{if(this.#p<this.#f){this.#p++,this.dispatchCustomEvent("tanstack-connect",{});return}this.#t().removeEventListener("tanstack-connect",this.#l),this.debugLog("Max retries reached, giving up on connection"),this.stopConnectLoop()};#d=()=>{this.#s||(this.#s=!0,this.#t().addEventListener("tanstack-connect-success",this.#u),this.#l())};constructor({pluginId:t,debug:r=!1,enabled:o=!0,reconnectEveryMs:n=300}){this.#e=t,this.#n=o,this.#t=this.getGlobalTarget,this.#r=r,this.debugLog(" Initializing event subscription for plugin",this.#e),this.#o=[],this.#a=!1,this.#i=null,this.#c=n}startConnectLoop(){this.#i!==null||this.#a||(this.debugLog(`Starting connect loop (every ${this.#c}ms)`),this.#i=setInterval(this.#l,this.#c))}stopConnectLoop(){this.#s=!1,this.#i!==null&&(clearInterval(this.#i),this.#i=null,this.debugLog("Stopped connect loop"))}debugLog(...t){this.#r&&console.log(`🌴 [tanstack-devtools:${this.#e}-plugin]`,...t)}getGlobalTarget(){if(typeof globalThis<"u"&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog("Using global event target"),globalThis.__TANSTACK_EVENT_TARGET__;if(typeof window<"u"&&typeof window.addEventListener<"u")return this.debugLog("Using window as event target"),window;const t=typeof EventTarget<"u"?new EventTarget:void 0;return typeof t>"u"||typeof t.addEventListener>"u"?(this.debugLog("No event mechanism available, running in non-web environment"),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog("Using new EventTarget as fallback"),t)}getPluginId(){return this.#e}dispatchCustomEventShim(t,r){try{const o=new Event(t,{detail:r});this.#t().dispatchEvent(o)}catch{this.debugLog("Failed to dispatch shim event")}}dispatchCustomEvent(t,r){try{this.#t().dispatchEvent(new CustomEvent(t,{detail:r}))}catch{this.dispatchCustomEventShim(t,r)}}emitEventToBus(t){this.debugLog("Emitting event to client bus",t),this.dispatchCustomEvent("tanstack-dispatch-event",t)}emit(t,r){if(!this.#n){this.debugLog("Event bus client is disabled, not emitting event",t,r);return}if(!this.#a){this.debugLog("Bus not available, will be pushed as soon as connected"),this.#o.push({type:`${this.#e}:${t}`,payload:r,pluginId:this.#e}),typeof CustomEvent<"u"&&!this.#s&&(this.#d(),this.startConnectLoop());return}return this.emitEventToBus({type:`${this.#e}:${t}`,payload:r,pluginId:this.#e})}on(t,r){const o=`${this.#e}:${t}`;if(!this.#n)return this.debugLog("Event bus client is disabled, not registering event",o),()=>{};const n=i=>{this.debugLog("Received event from bus",i.detail),r(i.detail)};return this.#t().addEventListener(o,n),this.debugLog("Registered event to bus",o),()=>{this.#t().removeEventListener(o,n)}}onAll(t){if(!this.#n)return this.debugLog("Event bus client is disabled, not registering event"),()=>{};const r=o=>{const n=o.detail;t(n)};return this.#t().addEventListener("tanstack-devtools-global",r),()=>this.#t().removeEventListener("tanstack-devtools-global",r)}onAllPluginEvents(t){if(!this.#n)return this.debugLog("Event bus client is disabled, not registering event"),()=>{};const r=o=>{const n=o.detail;this.#e&&n.pluginId!==this.#e||t(n)};return this.#t().addEventListener("tanstack-devtools-global",r),()=>this.#t().removeEventListener("tanstack-devtools-global",r)}};class I2 extends $2{constructor(){super({pluginId:"form-devtools",reconnectEveryMs:1e3})}}const Ut=new I2;function Ka(e,t){return typeof e=="function"?e(t):e}function ki(e,t){return Ku(t).reduce((o,n)=>{if(o===null)return null;if(typeof o<"u")return o[n]},e)}function Ci(e,t,r){const o=Ku(t);function n(i){if(!o.length)return Ka(r,i);const a=o.shift();if(typeof a=="string"||typeof a=="number"&&!Array.isArray(i))return typeof i=="object"?(i===null&&(i={}),{...i,[a]:n(i[a])}):{[a]:n()};if(Array.isArray(i)&&typeof a=="number"){const s=i.slice(0,a);return[...s.length?s:new Array(a),n(i[a]),...i.slice(a+1)]}return[...new Array(a),n()]}return n(e)}function k2(e,t){const r=Ku(t);function o(n){if(!n)return;if(r.length===1){const a=r[0];if(Array.isArray(n)&&typeof a=="number")return n.filter((c,u)=>u!==a);const{[a]:s,...l}=n;return l}const i=r.shift();if((typeof i=="string"||typeof i=="number"&&!Array.isArray(n))&&typeof n=="object")return{...n,[i]:o(n[i])};if(typeof i=="number"&&Array.isArray(n)){if(i>=n.length)return n;const a=n.slice(0,i);return[...a.length?a:new Array(i),o(n[i]),...n.slice(i+1)]}throw new Error("It seems we have created an infinite loop in deleteBy. ")}return o(e)}const C2=/^(\d+)$/gm,_2=/\.(\d+)(?=\.)/gm,E2=/^(\d+)\./gm,P2=/\.(\d+$)/gm,j2=/\.{2,}/gm,Qs="__int__",_i=`${Qs}$1`;function Ku(e){if(Array.isArray(e))return[...e];if(typeof e!="string")throw new Error("Path must be a string.");return e.replace(/(^\[)|]/gm,"").replace(/\[/g,".").replace(C2,_i).replace(_2,`.${_i}.`).replace(E2,`${_i}.`).replace(P2,`.${_i}`).replace(j2,".").split(".").map(t=>{if(t.startsWith(Qs)){const r=t.substring(Qs.length),o=parseInt(r,10);return String(o)===r?o:r}return t})}function O2(e){return!(Array.isArray(e)&&e.length===0)}function el(e,t){const r=o=>o.validators.filter(Boolean).map(n=>({cause:n.cause,validate:n.fn}));return t.validationLogic({form:t.form,validators:t.validators,event:{type:e,async:!1},runValidation:r})}function tl(e,t){const{asyncDebounceMs:r}=t,{onBlurAsyncDebounceMs:o,onChangeAsyncDebounceMs:n,onDynamicAsyncDebounceMs:i}=t.validators||{},a=r??0,s=l=>l.validators.filter(Boolean).map(c=>{const u=c?.cause||e;let d=a;switch(u){case"change":d=n??a;break;case"blur":d=o??a;break;case"dynamic":d=i??a;break;case"submit":d=0;break}return e==="submit"&&(d=0),{cause:u,validate:c.fn,debounceMs:d}});return t.validationLogic({form:t.form,validators:t.validators,event:{type:e,async:!0},runValidation:s})}const nl=e=>!!e&&typeof e=="object"&&"fields"in e;function Wn(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,i]of e)if(!t.has(n)||!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(const n of r)if(!o.includes(n)||!Wn(e[n],t[n]))return!1;return!0}const uf=({newFormValidatorError:e,isPreviousErrorFromFormValidator:t,previousErrorValue:r})=>e?{newErrorValue:e,newSource:"form"}:t?{newErrorValue:void 0,newSource:void 0}:r?{newErrorValue:r,newSource:"field"}:{newErrorValue:void 0,newSource:void 0},df=({formLevelError:e,fieldLevelError:t})=>t?{newErrorValue:t,newSource:"field"}:e?{newErrorValue:e,newSource:"form"}:{newErrorValue:void 0,newSource:void 0};function _t(e,t){return e==null?t:{...e,...t}}let pr=256;const Ai=[];let Ei;for(;pr--;)Ai[pr]=(pr+256).toString(16).substring(1);function Fx(){let e=0,t,r="";if(!Ei||pr+16>256){for(Ei=new Array(256),e=256;e--;)Ei[e]=256*Math.random()|0;e=0,pr=0}for(;e<16;e++)t=Ei[pr+e],e===6?r+=Ai[t&15|64]:e===8?r+=Ai[t&63|128]:r+=Ai[t],e&1&&e>1&&e<11&&(r+="-");return pr++,r}const R2=w2(e=>Ut.emit("form-state",{id:e.formId,state:e.store.state}),{wait:300}),Tr=e=>{if(!e.validators)return e.runValidation({validators:[],form:e.form});const t=e.event.async,r=t?void 0:{fn:e.validators.onMount,cause:"mount"},o={fn:t?e.validators.onChangeAsync:e.validators.onChange,cause:"change"},n={fn:t?e.validators.onBlurAsync:e.validators.onBlur,cause:"blur"},i={fn:t?e.validators.onSubmitAsync:e.validators.onSubmit,cause:"submit"},a=t?void 0:{fn:()=>{},cause:"server"};switch(e.event.type){case"mount":return e.runValidation({validators:[r],form:e.form});case"submit":return e.runValidation({validators:[o,n,i,a],form:e.form});case"server":return e.runValidation({validators:[],form:e.form});case"blur":return e.runValidation({validators:[n,a],form:e.form});case"change":return e.runValidation({validators:[o,a],form:e.form});default:throw new Error(`Unknown validation event type: ${e.event.type}`)}};function D2(e,t){const r=new Map;for(const o of e){const n=o.path??[];let i=t,a="";for(let s=0;s<n.length;s++){const l=n[s];if(l===void 0)continue;const c=typeof l=="object"?l.key:l,u=Number(c);Array.isArray(i)&&!Number.isNaN(u)?a+=`[${u}]`:a+=(s>0?".":"")+String(c),typeof i=="object"&&i!==null?i=i[c]:i=void 0}r.set(a,(r.get(a)??[]).concat(o))}return Object.fromEntries(r)}const pf=(e,t)=>{const r=D2(e,t);return{form:r,fields:r}},Ar={validate({value:e,validationSource:t},r){const o=r["~standard"].validate(e);if(o instanceof Promise)throw new Error("async function passed to sync validator");if(o.issues)return t==="field"?o.issues:pf(o.issues,e)},async validateAsync({value:e,validationSource:t},r){const o=await r["~standard"].validate(e);if(o.issues)return t==="field"?o.issues:pf(o.issues,e)}},Lx=e=>!!e&&"~standard"in e,da={isValidating:!1,isTouched:!1,isBlurred:!1,isDirty:!1,isPristine:!0,isValid:!0,isDefaultValue:!0,errors:[],errorMap:{},errorSourceMap:{}};function Pi(e){function t(u,d,f){const m=a(u,d,"move",f),h=Math.min(d,f),g=Math.max(d,f);for(let y=h;y<=g;y++)m.push(i(u,y));const v=Object.keys(e.fieldInfo).reduce((y,x)=>(x.startsWith(i(u,d))&&y.set(x,e.getFieldMeta(x)),y),new Map);l(m,d<f?"up":"down"),Object.keys(e.fieldInfo).filter(y=>y.startsWith(i(u,f))).forEach(y=>{const x=y.replace(i(u,f),i(u,d)),w=v.get(x);w&&e.setFieldMeta(y,w)})}function r(u,d){const f=a(u,d,"remove");l(f,"up")}function o(u,d,f){a(u,d,"swap",f).forEach(h=>{if(!h.toString().startsWith(i(u,d)))return;const g=h.toString().replace(i(u,d),i(u,f)),[v,y]=[e.getFieldMeta(h),e.getFieldMeta(g)];v&&e.setFieldMeta(g,v),y&&e.setFieldMeta(h,y)})}function n(u,d){const f=a(u,d,"insert");l(f,"down"),f.forEach(m=>{m.toString().startsWith(i(u,d))&&e.setFieldMeta(m,c())})}function i(u,d){return`${u}[${d}]`}function a(u,d,f,m){const h=[i(u,d)];switch(f){case"swap":h.push(i(u,m));break;case"move":{const[g,v]=[Math.min(d,m),Math.max(d,m)];for(let y=g;y<=v;y++)h.push(i(u,y));break}default:{const g=e.getFieldValue(u),v=Array.isArray(g)?g.length:0;for(let y=d+1;y<v;y++)h.push(i(u,y));break}}return Object.keys(e.fieldInfo).filter(g=>h.some(v=>g.startsWith(v)))}function s(u,d){return u.replace(/\[(\d+)\]/,(f,m)=>{const h=parseInt(m,10);return`[${d==="up"?h+1:Math.max(0,h-1)}]`})}function l(u,d){(d==="up"?u:[...u].reverse()).forEach(m=>{const h=s(m.toString(),d),g=e.getFieldMeta(h);g?e.setFieldMeta(m,g):e.setFieldMeta(m,c())})}const c=()=>da;return{handleArrayMove:t,handleArrayRemove:r,handleArraySwap:o,handleArrayInsert:n}}function bs(e){return{values:e.values??{},errorMap:e.errorMap??{},fieldMetaBase:e.fieldMetaBase??{},isSubmitted:e.isSubmitted??!1,isSubmitting:e.isSubmitting??!1,isValidating:e.isValidating??!1,submissionAttempts:e.submissionAttempts??0,isSubmitSuccessful:e.isSubmitSuccessful??!1,validationMetaMap:e.validationMetaMap??{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}}}class ff{constructor(t){this.options={},this.fieldInfo={},this.prevTransformArray=[],this.mount=()=>{const r=this.fieldMetaDerived.mount(),o=this.store.mount(),n=()=>{r(),o(),Ut.emit("form-unmounted",{id:this._formId})};this.options.listeners?.onMount?.({formApi:this});const{onMount:i}=this.options.validators||{};return Ut.emit("form-api",{id:this._formId,state:this.store.state,options:this.options}),i&&this.validateSync("mount"),n},this.update=r=>{if(!r)return;const o=this.options;this.options=r;const n=!!r.transform?.deps?.some((s,l)=>s!==this.prevTransformArray[l]),i=r.defaultValues&&!Wn(r.defaultValues,o.defaultValues)&&!this.state.isTouched,a=!Wn(r.defaultState,o.defaultState)&&!this.state.isTouched;!i&&!a&&!n||(gn(()=>{this.baseStore.setState(()=>bs(Object.assign({},this.state,a?r.defaultState:{},i?{values:r.defaultValues}:{},n?{_force_re_eval:!this.state._force_re_eval}:{})))}),Ut.emit("form-api",{id:this._formId,state:this.store.state,options:this.options}))},this.reset=(r,o)=>{const{fieldMeta:n}=this.state,i=this.resetFieldMeta(n);r&&!o?.keepDefaultValues&&(this.options={...this.options,defaultValues:r}),this.baseStore.setState(()=>bs({...this.options.defaultState,values:r??this.options.defaultValues??this.options.defaultState?.values,fieldMetaBase:i}))},this.validateAllFields=async r=>{const o=[];return gn(()=>{Object.values(this.fieldInfo).forEach(i=>{if(!i.instance)return;const a=i.instance;o.push(Promise.resolve().then(()=>a.validate(r,{skipFormValidation:!0}))),i.instance.state.meta.isTouched||i.instance.setMeta(s=>({...s,isTouched:!0}))})}),(await Promise.all(o)).flat()},this.validateArrayFieldsStartingFrom=async(r,o,n)=>{const i=this.getFieldValue(r),a=Array.isArray(i)?Math.max(i.length-1,0):null,s=[`${r}[${o}]`];for(let d=o+1;d<=(a??0);d++)s.push(`${r}[${d}]`);const l=Object.keys(this.fieldInfo).filter(d=>s.some(f=>d.startsWith(f))),c=[];return gn(()=>{l.forEach(d=>{c.push(Promise.resolve().then(()=>this.validateField(d,n)))})}),(await Promise.all(c)).flat()},this.validateField=(r,o)=>{const n=this.fieldInfo[r]?.instance;return n?(n.state.meta.isTouched||n.setMeta(i=>({...i,isTouched:!0})),n.validate(o)):[]},this.validateSync=r=>{const o=el(r,{...this.options,form:this,validationLogic:this.options.validationLogic||Tr});let n=!1;const i={};return gn(()=>{for(const l of o){if(!l.validate)continue;const c=this.runValidator({validate:l.validate,value:{value:this.state.values,formApi:this,validationSource:"form"},type:"validate"}),{formError:u,fieldErrors:d}=Mi(c),f=ho(l.cause);for(const m of Object.keys(this.state.fieldMeta)){if(this.baseStore.state.fieldMetaBase[m]===void 0)continue;const h=this.getFieldMeta(m);if(!h)continue;const{errorMap:g,errorSourceMap:v}=h,y=d?.[m],{newErrorValue:x,newSource:w}=uf({newFormValidatorError:y,isPreviousErrorFromFormValidator:v?.[f]==="form",previousErrorValue:g?.[f]});w==="form"&&(i[m]={...i[m],[f]:y}),g?.[f]!==x&&this.setFieldMeta(m,S=>({...S,errorMap:{...S.errorMap,[f]:x},errorSourceMap:{...S.errorSourceMap,[f]:w}}))}this.state.errorMap?.[f]!==u&&this.baseStore.setState(m=>({...m,errorMap:{...m.errorMap,[f]:u}})),(u||d)&&(n=!0)}const a=ho("submit");this.state.errorMap?.[a]&&r!=="submit"&&!n&&this.baseStore.setState(l=>({...l,errorMap:{...l.errorMap,[a]:void 0}}));const s=ho("server");this.state.errorMap?.[s]&&r!=="server"&&!n&&this.baseStore.setState(l=>({...l,errorMap:{...l.errorMap,[s]:void 0}}))}),{hasErrored:n,fieldsErrorMap:i}},this.validateAsync=async r=>{const o=tl(r,{...this.options,form:this,validationLogic:this.options.validationLogic||Tr});this.state.isFormValidating||this.baseStore.setState(l=>({...l,isFormValidating:!0}));const n=[];let i;for(const l of o){if(!l.validate)continue;const c=ho(l.cause);this.state.validationMetaMap[c]?.lastAbortController.abort();const d=new AbortController;this.state.validationMetaMap[c]={lastAbortController:d},n.push(new Promise(async f=>{let m;try{m=await new Promise((y,x)=>{setTimeout(async()=>{if(d.signal.aborted)return y(void 0);try{y(await this.runValidator({validate:l.validate,value:{value:this.state.values,formApi:this,validationSource:"form",signal:d.signal},type:"validateAsync"}))}catch(w){x(w)}},l.debounceMs)})}catch(y){m=y}const{formError:h,fieldErrors:g}=Mi(m);g&&(i=i?{...i,...g}:g);const v=ho(l.cause);for(const y of Object.keys(this.state.fieldMeta)){if(this.baseStore.state.fieldMetaBase[y]===void 0)continue;const x=this.getFieldMeta(y);if(!x)continue;const{errorMap:w,errorSourceMap:S}=x,$=i?.[y],{newErrorValue:I,newSource:j}=uf({newFormValidatorError:$,isPreviousErrorFromFormValidator:S?.[v]==="form",previousErrorValue:w?.[v]});w?.[v]!==I&&this.setFieldMeta(y,k=>({...k,errorMap:{...k.errorMap,[v]:I},errorSourceMap:{...k.errorSourceMap,[v]:j}}))}this.baseStore.setState(y=>({...y,errorMap:{...y.errorMap,[v]:h}})),f(i?{fieldErrors:i,errorMapKey:v}:void 0)}))}let a=[];const s={};if(n.length){a=await Promise.all(n);for(const l of a)if(l?.fieldErrors){const{errorMapKey:c}=l;for(const[u,d]of Object.entries(l.fieldErrors)){const m={...s[u]||{},[c]:d};s[u]=m}}}return this.baseStore.setState(l=>({...l,isFormValidating:!1})),s},this.validate=r=>{const{hasErrored:o,fieldsErrorMap:n}=this.validateSync(r);return o&&!this.options.asyncAlways?n:this.validateAsync(r)},this._handleSubmit=async r=>{this.baseStore.setState(i=>({...i,isSubmitted:!1,submissionAttempts:i.submissionAttempts+1,isSubmitSuccessful:!1})),gn(()=>{Object.values(this.fieldInfo).forEach(i=>{i.instance&&(i.instance.state.meta.isTouched||i.instance.setMeta(a=>({...a,isTouched:!0})))})});const o=r??this.options.onSubmitMeta;if(!this.state.canSubmit&&!this._devtoolsSubmissionOverride){this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:o});return}this.baseStore.setState(i=>({...i,isSubmitting:!0}));const n=()=>{this.baseStore.setState(i=>({...i,isSubmitting:!1}))};if(await this.validateAllFields("submit"),!this.state.isFieldsValid){n(),this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:o}),Ut.emit("form-submission",{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:"validateAllFields",errors:Object.values(this.state.fieldMeta).map(i=>i.errors).flat()});return}if(await this.validate("submit"),!this.state.isValid){n(),this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:o}),Ut.emit("form-submission",{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:"validate",errors:this.state.errors});return}gn(()=>{Object.values(this.fieldInfo).forEach(i=>{i.instance?.options.listeners?.onSubmit?.({value:i.instance.state.value,fieldApi:i.instance})})}),this.options.listeners?.onSubmit?.({formApi:this,meta:o});try{await this.options.onSubmit?.({value:this.state.values,formApi:this,meta:o}),gn(()=>{this.baseStore.setState(i=>({...i,isSubmitted:!0,isSubmitSuccessful:!0})),Ut.emit("form-submission",{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!0}),n()})}catch(i){throw this.baseStore.setState(a=>({...a,isSubmitSuccessful:!1})),Ut.emit("form-submission",{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:"inflight",onError:i}),n(),i}},this.getFieldValue=r=>ki(this.state.values,r),this.getFieldMeta=r=>this.state.fieldMeta[r],this.getFieldInfo=r=>this.fieldInfo[r]||={instance:null,validationMetaMap:{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}},this.setFieldMeta=(r,o)=>{this.baseStore.setState(n=>({...n,fieldMetaBase:{...n.fieldMetaBase,[r]:Ka(o,n.fieldMetaBase[r])}}))},this.resetFieldMeta=r=>Object.keys(r).reduce((o,n)=>{const i=n;return o[i]=da,o},{}),this.setFieldValue=(r,o,n)=>{const i=n?.dontUpdateMeta??!1,a=n?.dontRunListeners??!1,s=n?.dontValidate??!1;gn(()=>{i||this.setFieldMeta(r,l=>({...l,isTouched:!0,isDirty:!0,errorMap:{...l?.errorMap,onMount:void 0}})),this.baseStore.setState(l=>({...l,values:Ci(l.values,r,o)}))}),a||this.getFieldInfo(r).instance?.triggerOnChangeListener(),s||this.validateField(r,"change")},this.deleteField=r=>{const n=[...Object.keys(this.fieldInfo).filter(i=>{const a=r.toString();return i!==a&&i.startsWith(a)}),r];this.baseStore.setState(i=>{const a={...i};return n.forEach(s=>{a.values=k2(a.values,s),delete this.fieldInfo[s],delete a.fieldMetaBase[s]}),a})},this.pushFieldValue=(r,o,n)=>{this.setFieldValue(r,i=>[...Array.isArray(i)?i:[],o],n)},this.insertFieldValue=async(r,o,n,i)=>{this.setFieldValue(r,s=>[...s.slice(0,o),n,...s.slice(o)],_t(i,{dontValidate:!0}));const a=i?.dontValidate??!1;a||await this.validateField(r,"change"),Pi(this).handleArrayInsert(r,o),a||await this.validateArrayFieldsStartingFrom(r,o,"change")},this.replaceFieldValue=async(r,o,n,i)=>{this.setFieldValue(r,s=>s.map((l,c)=>c===o?n:l),_t(i,{dontValidate:!0})),(i?.dontValidate??!1)||(await this.validateField(r,"change"),await this.validateArrayFieldsStartingFrom(r,o,"change"))},this.removeFieldValue=async(r,o,n)=>{const i=this.getFieldValue(r),a=Array.isArray(i)?Math.max(i.length-1,0):null;if(this.setFieldValue(r,l=>l.filter((c,u)=>u!==o),_t(n,{dontValidate:!0})),Pi(this).handleArrayRemove(r,o),a!==null){const l=`${r}[${a}]`;this.deleteField(l)}(n?.dontValidate??!1)||(await this.validateField(r,"change"),await this.validateArrayFieldsStartingFrom(r,o,"change"))},this.swapFieldValues=(r,o,n,i)=>{this.setFieldValue(r,s=>{const l=s[o],c=s[n];return Ci(Ci(s,`${o}`,c),`${n}`,l)},_t(i,{dontValidate:!0})),Pi(this).handleArraySwap(r,o,n),(i?.dontValidate??!1)||(this.validateField(r,"change"),this.validateField(`${r}[${o}]`,"change"),this.validateField(`${r}[${n}]`,"change"))},this.moveFieldValues=(r,o,n,i)=>{this.setFieldValue(r,s=>{const l=[...s];return l.splice(n,0,l.splice(o,1)[0]),l},_t(i,{dontValidate:!0})),Pi(this).handleArrayMove(r,o,n),(i?.dontValidate??!1)||(this.validateField(r,"change"),this.validateField(`${r}[${o}]`,"change"),this.validateField(`${r}[${n}]`,"change"))},this.clearFieldValues=(r,o)=>{const n=this.getFieldValue(r),i=Array.isArray(n)?Math.max(n.length-1,0):null;if(this.setFieldValue(r,[],_t(o,{dontValidate:!0})),i!==null)for(let s=0;s<=i;s++){const l=`${r}[${s}]`;this.deleteField(l)}(o?.dontValidate??!1)||this.validateField(r,"change")},this.resetField=r=>{this.baseStore.setState(o=>({...o,fieldMetaBase:{...o.fieldMetaBase,[r]:da},values:this.options.defaultValues?Ci(o.values,r,ki(this.options.defaultValues,r)):o.values}))},this.setErrorMap=r=>{gn(()=>{Object.entries(r).forEach(([o,n])=>{const i=o;if(nl(n)){const{formError:a,fieldErrors:s}=Mi(n);for(const l of Object.keys(this.fieldInfo))this.getFieldMeta(l)&&this.setFieldMeta(l,u=>({...u,errorMap:{...u.errorMap,[i]:s?.[l]},errorSourceMap:{...u.errorSourceMap,[i]:"form"}}));this.baseStore.setState(l=>({...l,errorMap:{...l.errorMap,[i]:a}}))}else this.baseStore.setState(a=>({...a,errorMap:{...a.errorMap,[i]:n}}))})})},this.getAllErrors=()=>({form:{errors:this.state.errors,errorMap:this.state.errorMap},fields:Object.entries(this.state.fieldMeta).reduce((r,[o,n])=>(Object.keys(n).length&&n.errors.length&&(r[o]={errors:n.errors,errorMap:n.errorMap}),r),{})}),this.parseValuesWithSchema=r=>Ar.validate({value:this.state.values,validationSource:"form"},r),this.parseValuesWithSchemaAsync=r=>Ar.validateAsync({value:this.state.values,validationSource:"form"},r),this.timeoutIds={validations:{},listeners:{},formListeners:{}},this._formId=t?.formId??Fx(),this._devtoolsSubmissionOverride=!1,this.baseStore=new Ys(bs({...t?.defaultState,values:t?.defaultValues??t?.defaultState?.values})),this.fieldMetaDerived=new Mn({deps:[this.baseStore],fn:({prevDepVals:r,currDepVals:o,prevVal:n})=>{const i=n,a=r?.[0],s=o[0];let l=0;const c={};for(const u of Object.keys(s.fieldMetaBase)){const d=s.fieldMetaBase[u],f=a?.fieldMetaBase[u],m=i?.[u],h=ki(s.values,u);let g=m?.errors;if(!f||d.errorMap!==f.errorMap){g=Object.values(d.errorMap??{}).filter(S=>S!==void 0);const w=this.getFieldInfo(u)?.instance;w&&!w.options.disableErrorFlat&&(g=g.flat(1))}const v=!O2(g),y=!d.isDirty,x=Wn(h,ki(this.options.defaultValues,u))||Wn(h,this.getFieldInfo(u)?.instance?.options.defaultValue);if(m&&m.isPristine===y&&m.isValid===v&&m.isDefaultValue===x&&m.errors===g&&d===f){c[u]=m,l++;continue}c[u]={...d,errors:g??[],isPristine:y,isValid:v,isDefaultValue:x}}return Object.keys(s.fieldMetaBase).length&&i&&l===Object.keys(s.fieldMetaBase).length?i:c}}),this.store=new Mn({deps:[this.baseStore,this.fieldMetaDerived],fn:({prevDepVals:r,currDepVals:o,prevVal:n})=>{const i=n,a=r?.[0],s=o[0],l=o[1],c=Object.values(l).filter(Boolean),u=c.some(C=>C.isValidating),d=c.every(C=>C.isValid),f=c.some(C=>C.isTouched),m=c.some(C=>C.isBlurred),h=c.every(C=>C.isDefaultValue),g=f&&s.errorMap?.onMount,v=c.some(C=>C.isDirty),y=!v,x=!!(s.errorMap?.onMount||c.some(C=>C?.errorMap?.onMount)),w=!!u;let S=i?.errors??[];(!a||s.errorMap!==a.errorMap)&&(S=Object.values(s.errorMap).reduce((C,z)=>z===void 0?C:z&&nl(z)?(C.push(z.form),C):(C.push(z),C),[]));const $=S.length===0,I=d&&$,j=this.options.canSubmitWhenInvalid??!1,k=s.submissionAttempts===0&&!f&&!x||!w&&!s.isSubmitting&&I||j;let T=s.errorMap;if(g&&(S=S.filter(C=>C!==s.errorMap.onMount),T=Object.assign(T,{onMount:void 0})),i&&a&&i.errorMap===T&&i.fieldMeta===this.fieldMetaDerived.state&&i.errors===S&&i.isFieldsValidating===u&&i.isFieldsValid===d&&i.isFormValid===$&&i.isValid===I&&i.canSubmit===k&&i.isTouched===f&&i.isBlurred===m&&i.isPristine===y&&i.isDefaultValue===h&&i.isDirty===v&&Wn(a,s))return i;let R={...s,errorMap:T,fieldMeta:this.fieldMetaDerived.state,errors:S,isFieldsValidating:u,isFieldsValid:d,isFormValid:$,isValid:I,canSubmit:k,isTouched:f,isBlurred:m,isPristine:y,isDefaultValue:h,isDirty:v};const E=this.options.transform?.deps??[];if(E.length!==this.prevTransformArray.length||E.some((C,z)=>C!==this.prevTransformArray[z])){const C=Object.assign({},this,{state:R});this.options.transform?.fn(C),R=C.state,this.prevTransformArray=E}return R}}),this.handleSubmit=this.handleSubmit.bind(this),this.update(t||{}),this.store.subscribe(()=>{R2(this)}),Ut.on("request-form-state",r=>{r.payload.id===this._formId&&Ut.emit("form-api",{id:this._formId,state:this.store.state,options:this.options})}),Ut.on("request-form-reset",r=>{r.payload.id===this._formId&&this.reset()}),Ut.on("request-form-force-submit",r=>{r.payload.id===this._formId&&(this._devtoolsSubmissionOverride=!0,this.handleSubmit(),this._devtoolsSubmissionOverride=!1)})}get state(){return this.store.state}get formId(){return this._formId}runValidator(t){return Lx(t.validate)?Ar[t.type](t.value,t.validate):t.validate(t.value)}handleSubmit(t){return this._handleSubmit(t)}}function Mi(e){if(e){if(nl(e)){const t=Mi(e.form).formError,r=e.fields;return{formError:t,fieldErrors:r}}return{formError:e}}return{formError:void 0}}function ho(e){switch(e){case"submit":return"onSubmit";case"blur":return"onBlur";case"mount":return"onMount";case"server":return"onServer";case"dynamic":return"onDynamic";case"change":default:return"onChange"}}class mf{constructor(t){this.options={},this.mount=()=>{const r=this.store.mount();this.options.defaultValue!==void 0&&!this.getMeta().isTouched&&this.form.setFieldValue(this.name,this.options.defaultValue,{dontUpdateMeta:!0});const o=this.getInfo();o.instance=this,this.update(this.options);const{onMount:n}=this.options.validators||{};if(n){const i=this.runValidator({validate:n,value:{value:this.state.value,fieldApi:this,validationSource:"field"},type:"validate"});i&&this.setMeta(a=>({...a,errorMap:{...a?.errorMap,onMount:i},errorSourceMap:{...a?.errorSourceMap,onMount:"field"}}))}return this.options.listeners?.onMount?.({value:this.state.value,fieldApi:this}),r},this.update=r=>{if(this.options=r,this.name=r.name,!this.state.meta.isTouched&&this.options.defaultValue!==void 0){const o=this.form.getFieldValue(this.name);Wn(o,r.defaultValue)||this.form.setFieldValue(this.name,r.defaultValue,{dontUpdateMeta:!0,dontValidate:!0,dontRunListeners:!0})}this.form.getFieldMeta(this.name)||this.form.setFieldMeta(this.name,this.state.meta)},this.getValue=()=>this.form.getFieldValue(this.name),this.setValue=(r,o)=>{this.form.setFieldValue(this.name,r,_t(o,{dontRunListeners:!0,dontValidate:!0})),o?.dontRunListeners||this.triggerOnChangeListener(),o?.dontValidate||this.validate("change")},this.getMeta=()=>this.store.state.meta,this.setMeta=r=>this.form.setFieldMeta(this.name,r),this.getInfo=()=>this.form.getFieldInfo(this.name),this.pushValue=(r,o)=>{this.form.pushFieldValue(this.name,r,_t(o,{dontRunListeners:!0})),o?.dontRunListeners||this.triggerOnChangeListener()},this.insertValue=(r,o,n)=>{this.form.insertFieldValue(this.name,r,o,_t(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.replaceValue=(r,o,n)=>{this.form.replaceFieldValue(this.name,r,o,_t(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.removeValue=(r,o)=>{this.form.removeFieldValue(this.name,r,_t(o,{dontRunListeners:!0})),o?.dontRunListeners||this.triggerOnChangeListener()},this.swapValues=(r,o,n)=>{this.form.swapFieldValues(this.name,r,o,_t(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.moveValue=(r,o,n)=>{this.form.moveFieldValues(this.name,r,o,_t(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.clearValues=r=>{this.form.clearFieldValues(this.name,_t(r,{dontRunListeners:!0})),r?.dontRunListeners||this.triggerOnChangeListener()},this.getLinkedFields=r=>{const o=Object.values(this.form.fieldInfo),n=[];for(const i of o){if(!i.instance)continue;const{onChangeListenTo:a,onBlurListenTo:s}=i.instance.options.validators||{};r==="change"&&a?.includes(this.name)&&n.push(i.instance),r==="blur"&&s?.includes(this.name)&&n.push(i.instance)}return n},this.validateSync=(r,o)=>{const n=el(r,{...this.options,form:this.form,validationLogic:this.form.options.validationLogic||Tr}),a=this.getLinkedFields(r).reduce((c,u)=>{const d=el(r,{...u.options,form:u.form,validationLogic:u.form.options.validationLogic||Tr});return d.forEach(f=>{f.field=u}),c.concat(d)},[]);let s=!1;gn(()=>{const c=(u,d)=>{const f=ji(d.cause),m=d.validate?hf(u.runValidator({validate:d.validate,value:{value:u.store.state.value,validationSource:"field",fieldApi:u},type:"validate"})):void 0,h=o[f],{newErrorValue:g,newSource:v}=df({formLevelError:h,fieldLevelError:m});u.state.meta.errorMap?.[f]!==g&&u.setMeta(y=>({...y,errorMap:{...y.errorMap,[f]:g},errorSourceMap:{...y.errorSourceMap,[f]:v}})),g&&(s=!0)};for(const u of n)c(this,u);for(const u of a)u.validate&&c(u.field,u)});const l=ji("submit");return this.state.meta.errorMap?.[l]&&r!=="submit"&&!s&&this.setMeta(c=>({...c,errorMap:{...c.errorMap,[l]:void 0},errorSourceMap:{...c.errorSourceMap,[l]:void 0}})),{hasErrored:s}},this.validateAsync=async(r,o)=>{const n=tl(r,{...this.options,form:this.form,validationLogic:this.form.options.validationLogic||Tr}),i=await o,a=this.getLinkedFields(r),s=a.reduce((f,m)=>{const h=tl(r,{...m.options,form:m.form,validationLogic:m.form.options.validationLogic||Tr});return h.forEach(g=>{g.field=m}),f.concat(h)},[]);this.state.meta.isValidating||this.setMeta(f=>({...f,isValidating:!0}));for(const f of a)f.setMeta(m=>({...m,isValidating:!0}));const l=[],c=[],u=(f,m,h)=>{const g=ji(m.cause);f.getInfo().validationMetaMap[g]?.lastAbortController.abort();const y=new AbortController;this.getInfo().validationMetaMap[g]={lastAbortController:y},h.push(new Promise(async x=>{let w;try{w=await new Promise((k,T)=>{this.timeoutIds.validations[m.cause]&&clearTimeout(this.timeoutIds.validations[m.cause]),this.timeoutIds.validations[m.cause]=setTimeout(async()=>{if(y.signal.aborted)return k(void 0);try{k(await this.runValidator({validate:m.validate,value:{value:f.store.state.value,fieldApi:f,signal:y.signal,validationSource:"field"},type:"validateAsync"}))}catch(R){T(R)}},m.debounceMs)})}catch(k){w=k}if(y.signal.aborted)return x(void 0);const S=hf(w),$=i[this.name]?.[g],{newErrorValue:I,newSource:j}=df({formLevelError:$,fieldLevelError:S});f.setMeta(k=>({...k,errorMap:{...k?.errorMap,[g]:I},errorSourceMap:{...k.errorSourceMap,[g]:j}})),x(I)}))};for(const f of n)f.validate&&u(this,f,l);for(const f of s)f.validate&&u(f.field,f,c);let d=[];(l.length||c.length)&&(d=await Promise.all(l),await Promise.all(c)),this.setMeta(f=>({...f,isValidating:!1}));for(const f of a)f.setMeta(m=>({...m,isValidating:!1}));return d.filter(Boolean)},this.validate=(r,o)=>{if(!this.state.meta.isTouched)return[];const{fieldsErrorMap:n}=o?.skipFormValidation?{fieldsErrorMap:{}}:this.form.validateSync(r),{hasErrored:i}=this.validateSync(r,n[this.name]??{});if(i&&!this.options.asyncAlways)return this.getInfo().validationMetaMap[ji(r)]?.lastAbortController.abort(),this.state.meta.errors;const a=o?.skipFormValidation?Promise.resolve({}):this.form.validateAsync(r);return this.validateAsync(r,a)},this.handleChange=r=>{this.setValue(r)},this.handleBlur=()=>{this.state.meta.isTouched||this.setMeta(o=>({...o,isTouched:!0})),this.state.meta.isBlurred||this.setMeta(o=>({...o,isBlurred:!0})),this.validate("blur"),this.triggerOnBlurListener()},this.setErrorMap=r=>{this.setMeta(o=>({...o,errorMap:{...o.errorMap,...r}}))},this.parseValueWithSchema=r=>Ar.validate({value:this.state.value,validationSource:"field"},r),this.parseValueWithSchemaAsync=r=>Ar.validateAsync({value:this.state.value,validationSource:"field"},r),this.triggerOnChangeListener=()=>{const r=this.form.options.listeners?.onChangeDebounceMs;r&&r>0?(this.timeoutIds.formListeners.change&&clearTimeout(this.timeoutIds.formListeners.change),this.timeoutIds.formListeners.change=setTimeout(()=>{this.form.options.listeners?.onChange?.({formApi:this.form,fieldApi:this})},r)):this.form.options.listeners?.onChange?.({formApi:this.form,fieldApi:this});const o=this.options.listeners?.onChangeDebounceMs;o&&o>0?(this.timeoutIds.listeners.change&&clearTimeout(this.timeoutIds.listeners.change),this.timeoutIds.listeners.change=setTimeout(()=>{this.options.listeners?.onChange?.({value:this.state.value,fieldApi:this})},o)):this.options.listeners?.onChange?.({value:this.state.value,fieldApi:this})},this.form=t.form,this.name=t.name,this.options=t,this.timeoutIds={validations:{},listeners:{},formListeners:{}},this.store=new Mn({deps:[this.form.store],fn:()=>{const r=this.form.getFieldMeta(this.name)??{...da,...t.defaultMeta};let o=this.form.getFieldValue(this.name);return!r.isTouched&&o===void 0&&this.options.defaultValue!==void 0&&!Wn(o,this.options.defaultValue)&&(o=this.options.defaultValue),{value:o,meta:r}}})}get state(){return this.store.state}runValidator(t){return Lx(t.validate)?Ar[t.type](t.value,t.validate):t.validate(t.value)}triggerOnBlurListener(){const t=this.form.options.listeners?.onBlurDebounceMs;t&&t>0?(this.timeoutIds.formListeners.blur&&clearTimeout(this.timeoutIds.formListeners.blur),this.timeoutIds.formListeners.blur=setTimeout(()=>{this.form.options.listeners?.onBlur?.({formApi:this.form,fieldApi:this})},t)):this.form.options.listeners?.onBlur?.({formApi:this.form,fieldApi:this});const r=this.options.listeners?.onBlurDebounceMs;r&&r>0?(this.timeoutIds.listeners.blur&&clearTimeout(this.timeoutIds.listeners.blur),this.timeoutIds.listeners.blur=setTimeout(()=>{this.options.listeners?.onBlur?.({value:this.state.value,fieldApi:this})},r)):this.options.listeners?.onBlur?.({value:this.state.value,fieldApi:this})}}function hf(e){if(e)return e}function ji(e){switch(e){case"submit":return"onSubmit";case"blur":return"onBlur";case"mount":return"onMount";case"server":return"onServer";case"dynamic":return"onDynamic";case"change":default:return"onChange"}}const pa=typeof window<"u"?b.useLayoutEffect:b.useEffect;function T2(e){const[t,r]=b.useState(()=>({form:e.form,name:e.name})),[o,n]=b.useState(()=>new mf({...e}));(t.form!==e.form||t.name!==e.name)&&(n(new mf({...e})),r({form:e.form,name:e.name}));const i=Ze(o.store,m=>m.value),a=Ze(o.store,m=>m.meta.isTouched),s=Ze(o.store,m=>m.meta.isBlurred),l=Ze(o.store,m=>m.meta.isDirty),c=Ze(o.store,m=>m.meta.errorMap),u=Ze(o.store,m=>m.meta.errorSourceMap),d=Ze(o.store,m=>m.meta.isValidating),f=b.useMemo(()=>{const h={...o,get state(){return{value:i,get meta(){return{...o.state.meta,isTouched:a,isBlurred:s,isDirty:l,errorMap:c,errorSourceMap:u,isValidating:d}}}}};return h.Field=Ux,h},[o,i,a,s,l,c,u,d]);return pa(o.mount,[o]),pa(()=>{o.update(e)}),Ze(o.store,e.mode==="array"?m=>[m.meta,Object.keys(m.value??[]).length]:void 0),f}const Ux=(({children:e,...t})=>{const r=T2(t),o=b.useMemo(()=>Ka(e,r),[e,r]);return p.jsx(p.Fragment,{children:o})});function z2(){return b.useState(()=>Fx())[0]}const A2=b.version.split(".")[0]==="17"?z2:b.useId;function M2({form:e,selector:t,children:r}){const o=Ze(e.store,t);return p.jsx(p.Fragment,{children:Ka(r,o)})}function N2(e){const t=A2(),[r,o]=b.useState(e?.formId),[n,i]=b.useState(()=>new ff({...e,formId:e?.formId??t}));if(r!==e?.formId){const s=e?.formId??t;i(new ff({...e,formId:s})),o(s)}const a=b.useMemo(()=>{const s={...n,handleSubmit:((...l)=>n._handleSubmit(...l)),get formId(){return n._formId},get state(){return n.store.state}};return s.Field=function(c){return p.jsx(Ux,{...c,form:n})},s.Subscribe=function(c){return p.jsx(M2,{form:n,selector:c.selector,children:c.children})},s},[n]);return pa(n.mount,[]),pa(()=>{n.update(e)}),a}const F2=/\{\{\s*([a-zA-Z0-9_.-]+)\s*\}\}/g,qu=e=>{if(!e)return[];const t=new Set;let r;const o=new RegExp(F2);for(;(r=o.exec(e))!==null;)r[1]&&t.add(r[1]);return Array.from(t)},wr=(e,t)=>{const r=t?.required??!1;return({value:o})=>{const n=String(o??"").trim();if(!n)return r?"This field is required":void 0;const i=qu(n);if(i.length===0)return;const a=e(),s=i.filter(l=>!Object.prototype.hasOwnProperty.call(a,l));if(s.length>0)return`Undefined params: ${s.join(", ")}`}},Vt=Dn().min(0,"Must be 0 or greater");ht().min(1,"This field is required");const Bx=Yt(["up","down"]),L2=Yt(["left","right"]),U2=Yt(["in","out"]),B2=ht().min(1,"URL is required").regex(/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\/.+$/,"Invalid deeplink format (e.g., myapp://screen)"),tt=e=>e.length?e.map(t=>typeof t=="string"?t:t?.message).filter(Boolean).join(", "):null,V2=({step:e,onSave:t,onCancel:r})=>{const o=b.useCallback(()=>({id:Date.now(),type:"tap",descriptionText:"",optional:!1,timeout:3e3,useLlmOnly:!1,text:"",elementId:"",maxScrolls:15,direction:"down",url:"",instruction:"",path:""}),[]),{data:n}=vn(Hu),{data:i}=vn(Ax),a=Ve.useCallback(()=>({...te.state.test.params,...i??{}}),[i]),s=new Set((n?.files||[]).filter(c=>c.type==="file").map(c=>c.path)),l=N2({defaultValues:{...o(),...e},onSubmit:({value:c})=>{if(c&&(c.type==="tap"||c.type==="assert")&&("x"in c&&delete c.x,"y"in c&&delete c.y),c.type==="fileRef"){const d=(c.path||"").trim();if(!d||n&&!s.has(d)){alert("The specified file does not exist in your tests directory.");return}}let u;switch(c.type){case"tap":u=Mu.parse(c);break;case"assert":u=Nu.parse(c);break;case"type":u=Fu.parse(c);break;case"scroll":u=Lu.parse(c);break;case"swipe":u=Uu.parse(c);break;case"scrollUntil":u=Bu.parse(c);break;case"deeplink":u=Vu.parse(c);break;case"ai":u=Wu.parse(c);break;case"fileRef":u=Zu.parse(c);break;default:u=_x.parse(c)}if(!e)te.setState(d=>({...d,test:{...d.test,steps:[...d.test.steps,u]}}));else{const d=u.id;te.setState(f=>({...f,test:{...f.test,steps:f.test.steps.map(m=>m.id===d?u:m)}}))}t()}});return p.jsxs(tN,{children:[p.jsx(Ce,{variant:"h6",gutterBottom:!0,children:e?"Edit Step":"Add New Step"}),p.jsx("form",{onSubmit:c=>{c.preventDefault(),c.stopPropagation(),l.handleSubmit()},children:p.jsxs(nN,{children:[p.jsx(l.Field,{name:"type",validators:{onChange:lf},children:c=>{const u=c.state.meta.errors.length>0;return p.jsxs(Yn,{fullWidth:!0,error:u,children:[p.jsx(_r,{id:"step-type",children:"Step type"}),p.jsx(Qn,{labelId:"step-type",id:"step-type",value:c.state.value,label:"Step type",onChange:d=>{const f=d.target.value,m=l.state.values.id;l.reset(),l.setFieldValue("id",m),l.setFieldValue("type",f)},onBlur:c.handleBlur,children:lf.options.map(d=>p.jsx(Sn,{value:d,children:d},d))}),u&&p.jsx(Qr,{children:tt(c.state.meta.errors)})]})}}),p.jsx(vr,{sx:{mb:1}}),p.jsxs(rN,{children:[p.jsx(Jt,{children:"General Settings"}),p.jsx(l.Field,{name:"descriptionText",validators:{onChange:wr(a,{required:!1})},children:c=>p.jsx(Ke,{id:"description-text",label:"Description",value:c.state.value??"",onChange:u=>c.handleChange(u.target.value),onBlur:c.handleBlur,placeholder:"Enter a description (you can use {{key}})",helperText:tt(c.state.meta.errors)??"Use {{key}} to insert a param value",error:c.state.meta.errors?.length>0})}),p.jsx(l.Field,{name:"optional",validators:{onChange:si().optional()},children:c=>p.jsx(wa,{control:p.jsx(Sl,{checked:c.state.value??!1,onChange:u=>c.handleChange(u.target.checked)}),label:"Optional"})})]}),p.jsx(l.Subscribe,{selector:c=>c.values.type,children:c=>{switch(c){case"tap":return p.jsx(H2,{form:l});case"assert":return p.jsx(G2,{form:l});case"type":return p.jsx(K2,{form:l,getDefinedParams:a});case"scroll":return p.jsx(q2,{form:l});case"swipe":return p.jsx(J2,{form:l});case"zoom":return p.jsx(X2,{form:l});case"scrollUntil":return p.jsx(Y2,{form:l,getDefinedParams:a});case"deeplink":return p.jsx(Q2,{form:l,getDefinedParams:a});case"ai":return p.jsx(eN,{form:l,getDefinedParams:a});case"fileRef":return p.jsx(W2,{form:l,getDefinedParams:a});default:return null}}}),p.jsxs(oN,{children:[p.jsx(Rt,{startIcon:p.jsx(GC,{}),variant:"contained",type:"submit",children:"Save"}),p.jsx(Rt,{startIcon:p.jsx(km,{}),variant:"outlined",color:"error",onClick:r,children:"Cancel"})]})]})})]})},W2=({form:e,getDefinedParams:t})=>{const{data:r,isLoading:o}=vn(Hu),n=new Set((r?.files||[]).filter(i=>i.type==="file").map(i=>i.path));return p.jsxs(On,{children:[p.jsx(Jt,{children:"File Reference"}),p.jsx(e.Field,{name:"path",validators:{onChange:({value:i})=>{const a=String(i??"").trim();if(!a)return"This field is required";if(qu(a).length>0)return wr(t,{required:!0})({value:a});if(!o&&r&&!n.has(a))return"File not found in tests directory"}},children:i=>{const a=i.state.meta.errors?.length>0,s=a?tt(i.state.meta.errors):o?"Checking files...":"Path is relative to your tests directory (supports {{key}})";return p.jsx(Ke,{id:"file-path",label:"File path",placeholder:"e.g., test2.json or subfolder/flow.json (you can use {{key}})",value:i.state.value??"",onChange:l=>i.handleChange(l.target.value),onBlur:i.handleBlur,error:a,helperText:s,fullWidth:!0})}}),p.jsx(e.Subscribe,{selector:i=>({path:i.values.path,overrides:i.values.overrides}),children:({path:i,overrides:a})=>p.jsx(Z2,{path:i,overrides:a,onChange:s=>e.setFieldValue("overrides",s),validPaths:n})})]})},Z2=({path:e,overrides:t,onChange:r,validPaths:o})=>{const[n,i]=Ve.useState(!1),[a,s]=Ve.useState({}),l=et(Gu);Ve.useEffect(()=>{let f=!1;return(async()=>{if(!e||!o.has(e)){s({});return}i(!0);try{const g=(await l.mutateAsync({path:e}))?.content;Array.isArray(g)?s({}):s(g&&typeof g=="object"?g.params||{}:{})}catch{s({})}finally{f||i(!1)}})(),()=>{f=!0}},[e]);const c=t||{},u=(f,m)=>{const h={...c};m?h[f]=m:delete h[f],r(h)},d=Object.keys(a);return e?p.jsxs(He,{sx:{mt:2},children:[p.jsx(Ce,{variant:"subtitle2",children:"Param overrides"}),n?p.jsx(Ce,{variant:"caption",color:"text.secondary",children:"Loading referenced test…"}):d.length===0?p.jsx(Ce,{variant:"caption",color:"text.secondary",children:"Referenced test has no params"}):p.jsx(He,{sx:{display:"flex",flexDirection:"column",gap:1,mt:1},children:d.map(f=>p.jsxs(He,{sx:{display:"grid",gridTemplateColumns:"160px 1fr",gap:1,alignItems:"center"},children:[p.jsx(Ke,{size:"small",label:"Key",value:f,disabled:!0}),p.jsxs(He,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1},children:[p.jsx(Ke,{size:"small",label:"Default",value:a[f]??"",disabled:!0}),p.jsx(Ke,{size:"small",label:"Override (optional)",value:c[f]??"",onChange:m=>u(f,m.target.value)})]})]},f))})]}):null},H2=({form:e})=>p.jsxs(On,{children:[p.jsx(Jt,{children:"Tap Configuration"}),p.jsx(e.Field,{name:"timeout",validators:{onChange:Vt},children:t=>{const r=t.state.meta.errors?.length>0;return p.jsx(Ke,{type:"number",id:"timeout",label:"Timeout (ms)",value:t.state.value??0,onChange:o=>t.handleChange(parseInt(o.target.value)||0),onBlur:t.handleBlur,placeholder:"Enter timeout",error:r,helperText:tt(t.state.meta.errors)})}}),p.jsx(e.Field,{name:"elementId",validators:{onChange:ht().optional()},children:t=>{const r=t.state.meta.errors?.length>0;return p.jsx(Ke,{id:"tap-element-id",label:"Element Identifier (elementId)",value:t.state.value??"",onChange:o=>t.handleChange(o.target.value),onBlur:t.handleBlur,placeholder:"Android: com.app:id/button | iOS: accessibilityIdentifier/name/label",error:r,helperText:tt(t.state.meta.errors)??(te.state.selectedPlatform==="ios"?"Optional. iOS: prefer accessibilityIdentifier, otherwise name/label. Supports index like value[2].":"Optional. Android: resource-id (e.g., com.app:id/button). Supports index like id[2].")})}}),p.jsx(e.Field,{name:"useLlmOnly",validators:{onChange:si().optional()},children:t=>p.jsx(wa,{control:p.jsx(Sl,{checked:t.state.value??!1,onChange:r=>t.handleChange(r.target.checked)}),label:"Use LLM only"})})]}),G2=({form:e})=>p.jsxs(On,{children:[p.jsx(Jt,{children:"Assert Configuration"}),p.jsx(e.Field,{name:"timeout",validators:{onChange:Vt},children:t=>{const r=t.state.meta.errors?.length>0;return p.jsx(Ke,{type:"number",id:"timeout",label:"Timeout (ms)",value:t.state.value??0,onChange:o=>t.handleChange(parseInt(o.target.value)||0),onBlur:t.handleBlur,placeholder:"Enter timeout",error:r,helperText:tt(t.state.meta.errors)})}}),p.jsx(e.Field,{name:"elementId",validators:{onChange:ht().optional()},children:t=>{const r=t.state.meta.errors?.length>0;return p.jsx(Ke,{id:"assert-element-id",label:"Resource ID (elementId)",value:t.state.value??"",onChange:o=>t.handleChange(o.target.value),onBlur:t.handleBlur,placeholder:"e.g. com.app:id/label or com.app:id/label[1]",error:r,helperText:tt(t.state.meta.errors)??"Optional. Android resource-id of the element to assert."})}}),p.jsx(e.Field,{name:"useLlmOnly",validators:{onChange:si().optional()},children:t=>p.jsx(wa,{control:p.jsx(Sl,{checked:t.state.value??!1,onChange:r=>t.handleChange(r.target.checked)}),label:"Use LLM only"})})]}),K2=({form:e,getDefinedParams:t})=>p.jsxs(On,{children:[p.jsx(Jt,{children:"Type Configuration"}),p.jsx(e.Field,{name:"text",validators:{onChange:wr(t,{required:!0})},children:r=>{const o=r.state.meta.errors?.length>0;return p.jsx(Ke,{id:"text",label:"Text to type",value:r.state.value??"",onChange:n=>r.handleChange(n.target.value),onBlur:r.handleBlur,placeholder:"Enter text to type (you can use {{key}})",multiline:!0,rows:3,error:o,helperText:tt(r.state.meta.errors)??"Use {{key}} to insert a param value"})}})]}),q2=({form:e})=>p.jsxs(On,{children:[p.jsx(Jt,{children:"Scroll Configuration"}),p.jsx(e.Field,{name:"direction",validators:{onChange:Bx},children:t=>{const r=t.state.meta.errors?.length>0;return p.jsxs(Yn,{fullWidth:!0,error:r,children:[p.jsx(_r,{id:"scroll-direction",children:"Direction"}),p.jsxs(Qn,{labelId:"scroll-direction",id:"scroll-direction",value:t.state.value??"down",label:"Direction",onChange:o=>t.handleChange(o.target.value),onBlur:t.handleBlur,children:[p.jsx(Sn,{value:"up",children:"Up"}),p.jsx(Sn,{value:"down",children:"Down"})]}),r&&p.jsx(Qr,{children:tt(t.state.meta.errors)})]})}}),p.jsx(Ce,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Start coordinates (optional)"}),p.jsxs(He,{sx:{display:"flex",gap:2},children:[p.jsx(e.Field,{name:"x1",validators:{onChange:Vt.optional()},children:t=>p.jsx(Ke,{type:"number",id:"scroll-start-x",label:"Start X",value:t.state.value??"",onChange:r=>{const o=r.target.value;t.handleChange(o===""?void 0:parseInt(o))},onBlur:t.handleBlur,placeholder:"e.g., 200",error:t.state.meta.errors?.length>0,helperText:tt(t.state.meta.errors),fullWidth:!0})}),p.jsx(e.Field,{name:"y1",validators:{onChange:Vt.optional()},children:t=>p.jsx(Ke,{type:"number",id:"scroll-start-y",label:"Start Y",value:t.state.value??"",onChange:r=>{const o=r.target.value;t.handleChange(o===""?void 0:parseInt(o))},onBlur:t.handleBlur,placeholder:"e.g., 600",error:t.state.meta.errors?.length>0,helperText:tt(t.state.meta.errors),fullWidth:!0})})]}),p.jsx(Ce,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"End coordinates (optional - if not set, calculated from direction)"}),p.jsxs(He,{sx:{display:"flex",gap:2},children:[p.jsx(e.Field,{name:"x2",validators:{onChange:Vt.optional()},children:t=>p.jsx(Ke,{type:"number",id:"scroll-end-x",label:"End X",value:t.state.value??"",onChange:r=>{const o=r.target.value;t.handleChange(o===""?void 0:parseInt(o))},onBlur:t.handleBlur,placeholder:"e.g., 200",error:t.state.meta.errors?.length>0,helperText:tt(t.state.meta.errors),fullWidth:!0})}),p.jsx(e.Field,{name:"y2",validators:{onChange:Vt.optional()},children:t=>p.jsx(Ke,{type:"number",id:"scroll-end-y",label:"End Y",value:t.state.value??"",onChange:r=>{const o=r.target.value;t.handleChange(o===""?void 0:parseInt(o))},onBlur:t.handleBlur,placeholder:"e.g., 300",error:t.state.meta.errors?.length>0,helperText:tt(t.state.meta.errors),fullWidth:!0})})]})]}),J2=({form:e})=>p.jsxs(On,{children:[p.jsx(Jt,{children:"Swipe Configuration"}),p.jsx(e.Field,{name:"direction",validators:{onChange:L2},children:t=>{const r=t.state.meta.errors?.length>0;return p.jsxs(Yn,{fullWidth:!0,error:r,children:[p.jsx(_r,{id:"swipe-direction",children:"Direction"}),p.jsxs(Qn,{labelId:"swipe-direction",id:"swipe-direction",value:t.state.value??"left",label:"Direction",onChange:o=>t.handleChange(o.target.value),onBlur:t.handleBlur,children:[p.jsx(Sn,{value:"left",children:"Left"}),p.jsx(Sn,{value:"right",children:"Right"})]}),r&&p.jsx(Qr,{children:tt(t.state.meta.errors)})]})}}),p.jsx(e.Field,{name:"duration",validators:{onChange:Vt.optional()},children:t=>{const r=t.state.meta.errors?.length>0;return p.jsx(Ke,{type:"number",id:"swipe-duration",label:"Duration (ms)",value:t.state.value??"",onChange:o=>{const n=o.target.value;t.handleChange(n===""?void 0:parseInt(n))},onBlur:t.handleBlur,placeholder:"e.g., 500 (default)",error:r,helperText:tt(t.state.meta.errors)??"Optional. Duration of the swipe gesture in milliseconds."})}}),p.jsx(Ce,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Start coordinates (optional - defaults based on direction)"}),p.jsxs(He,{sx:{display:"flex",gap:2},children:[p.jsx(e.Field,{name:"x1",validators:{onChange:Vt.optional()},children:t=>p.jsx(Ke,{type:"number",id:"swipe-start-x",label:"Start X",value:t.state.value??"",onChange:r=>{const o=r.target.value;t.handleChange(o===""?void 0:parseInt(o))},onBlur:t.handleBlur,placeholder:"e.g., 800",error:t.state.meta.errors?.length>0,helperText:tt(t.state.meta.errors),fullWidth:!0})}),p.jsx(e.Field,{name:"y1",validators:{onChange:Vt.optional()},children:t=>p.jsx(Ke,{type:"number",id:"swipe-start-y",label:"Start Y",value:t.state.value??"",onChange:r=>{const o=r.target.value;t.handleChange(o===""?void 0:parseInt(o))},onBlur:t.handleBlur,placeholder:"e.g., 500",error:t.state.meta.errors?.length>0,helperText:tt(t.state.meta.errors),fullWidth:!0})})]}),p.jsx(Ce,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"End coordinates (optional - if not set, calculated from direction)"}),p.jsxs(He,{sx:{display:"flex",gap:2},children:[p.jsx(e.Field,{name:"x2",validators:{onChange:Vt.optional()},children:t=>p.jsx(Ke,{type:"number",id:"swipe-end-x",label:"End X",value:t.state.value??"",onChange:r=>{const o=r.target.value;t.handleChange(o===""?void 0:parseInt(o))},onBlur:t.handleBlur,placeholder:"e.g., 200",error:t.state.meta.errors?.length>0,helperText:tt(t.state.meta.errors),fullWidth:!0})}),p.jsx(e.Field,{name:"y2",validators:{onChange:Vt.optional()},children:t=>p.jsx(Ke,{type:"number",id:"swipe-end-y",label:"End Y",value:t.state.value??"",onChange:r=>{const o=r.target.value;t.handleChange(o===""?void 0:parseInt(o))},onBlur:t.handleBlur,placeholder:"e.g., 500",error:t.state.meta.errors?.length>0,helperText:tt(t.state.meta.errors),fullWidth:!0})})]})]}),X2=({form:e})=>p.jsxs(On,{children:[p.jsx(Jt,{children:"Zoom Configuration"}),p.jsx(e.Field,{name:"direction",validators:{onChange:U2},children:t=>{const r=t.state.meta.errors?.length>0;return p.jsxs(Yn,{fullWidth:!0,error:r,children:[p.jsx(_r,{id:"zoom-direction",children:"Direction"}),p.jsxs(Qn,{labelId:"zoom-direction",id:"zoom-direction",value:t.state.value??"in",label:"Direction",onChange:o=>t.handleChange(o.target.value),onBlur:t.handleBlur,children:[p.jsx(Sn,{value:"in",children:"In (spread)"}),p.jsx(Sn,{value:"out",children:"Out (pinch)"})]}),r&&p.jsx(Qr,{children:tt(t.state.meta.errors)})]})}})]}),Y2=({form:e,getDefinedParams:t})=>p.jsxs(On,{children:[p.jsx(Jt,{children:"Scroll Until Configuration"}),p.jsx(e.Field,{name:"direction",validators:{onChange:Bx},children:r=>{const o=r.state.meta.errors?.length>0;return p.jsxs(Yn,{fullWidth:!0,error:o,children:[p.jsx(_r,{id:"scroll-until-direction",children:"Direction"}),p.jsxs(Qn,{labelId:"scroll-until-direction",id:"scroll-until-direction",value:r.state.value??"down",label:"Direction",onChange:n=>r.handleChange(n.target.value),onBlur:r.handleBlur,children:[p.jsx(Sn,{value:"up",children:"Up"}),p.jsx(Sn,{value:"down",children:"Down"})]}),o&&p.jsx(Qr,{children:tt(r.state.meta.errors)})]})}}),p.jsx(e.Field,{name:"maxScrolls",validators:{onChange:Vt},children:r=>{const o=r.state.meta.errors?.length>0;return p.jsx(Ke,{type:"number",id:"max-scrolls",label:"Max Scrolls",value:r.state.value??15,onChange:n=>r.handleChange(parseInt(n.target.value)||15),onBlur:r.handleBlur,placeholder:"Maximum scroll attempts",error:o,helperText:tt(r.state.meta.errors)??"Maximum number of scroll attempts (default: 15)"})}}),p.jsx(Jt,{sx:{mt:1},children:"Stop Condition (at least one)"}),p.jsx(e.Field,{name:"text",validators:{onChange:wr(t,{required:!1})},children:r=>{const o=r.state.meta.errors?.length>0;return p.jsx(Ke,{id:"scroll-until-text",label:"Text to find",value:r.state.value??"",onChange:n=>r.handleChange(n.target.value),onBlur:r.handleBlur,placeholder:"Text content to scroll until visible (supports {{key}})",error:o,helperText:tt(r.state.meta.errors)??"Scroll until this text (with params resolved) is visible on screen"})}}),p.jsx(e.Field,{name:"elementId",validators:{onChange:wr(t,{required:!1})},children:r=>{const o=r.state.meta.errors?.length>0;return p.jsx(Ke,{id:"scroll-until-element-id",label:"Element ID",value:r.state.value??"",onChange:n=>r.handleChange(n.target.value),onBlur:r.handleBlur,placeholder:"Element ID to scroll until visible (supports {{key}})",error:o,helperText:tt(r.state.meta.errors)??"Scroll until element with this ID (after resolving params) is visible"})}})]}),Q2=({form:e,getDefinedParams:t})=>p.jsxs(On,{children:[p.jsx(Jt,{children:"Deeplink Configuration"}),p.jsx(e.Field,{name:"url",validators:{onChange:({value:r})=>{const o=String(r??"").trim();if(!o)return"URL is required";if(qu(o).length>0)return wr(t,{required:!0})({value:o});const i=B2.safeParse(o);return i.success?void 0:i.error.issues[0]?.message||"Invalid URL"}},children:r=>{const o=r.state.meta.errors?.length>0;return p.jsx(Ke,{id:"url",label:"URL",value:r.state.value??"",onChange:n=>r.handleChange(n.target.value),onBlur:r.handleBlur,placeholder:"Enter deeplink URL (you can use {{key}})",fullWidth:!0,error:o,helperText:tt(r.state.meta.errors)??"Use {{key}} to insert a param value"})}})]}),eN=({form:e,getDefinedParams:t})=>p.jsxs(On,{children:[p.jsx(Jt,{children:"AI Configuration"}),p.jsx(e.Field,{name:"instruction",validators:{onChange:wr(t,{required:!0})},children:r=>{const o=r.state.meta.errors?.length>0;return p.jsx(Ke,{id:"instruction",label:"AI Instruction",value:r.state.value??"",onChange:n=>r.handleChange(n.target.value),onBlur:r.handleBlur,placeholder:"Enter instruction for AI to execute (you can use {{key}})",multiline:!0,rows:4,error:o,helperText:tt(r.state.meta.errors)??"Use {{key}} to insert a param value"})}})]}),tN=F(He)`
|
|
196
|
+
padding: 1.5rem;
|
|
197
|
+
margin-bottom: 1.5rem;
|
|
198
|
+
`,nN=F(He)`
|
|
199
|
+
display: flex;
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
gap: 1.25rem;
|
|
202
|
+
`,Vx=F(He)`
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
gap: 1rem;
|
|
206
|
+
padding: 1rem;
|
|
207
|
+
border-radius: 6px;
|
|
208
|
+
`,rN=F(Vx)`
|
|
209
|
+
background-color: #fafafa;
|
|
210
|
+
border: 1px solid #e0e0e0;
|
|
211
|
+
`,On=F(Vx)`
|
|
212
|
+
background-color: #f5f5f5;
|
|
213
|
+
border: 1px dashed #bdbdbd;
|
|
214
|
+
`,Jt=F(Ce)`
|
|
215
|
+
font-size: 0.75rem;
|
|
216
|
+
color: #757575;
|
|
217
|
+
text-transform: uppercase;
|
|
218
|
+
letter-spacing: 0.5px;
|
|
219
|
+
margin-bottom: 0.5rem;
|
|
220
|
+
`,oN=F(He)`
|
|
221
|
+
display: flex;
|
|
222
|
+
gap: 0.5rem;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
`,iN=()=>{const[e,t]=b.useState(!1),r=Ze(te,i=>i.executionLog),o=Ze(te,i=>i.isPlaying);if(r.length===0&&!o)return null;const n=()=>{t(!e)};return p.jsxs(p.Fragment,{children:[!e&&p.jsx(An,{title:"Execution Log",placement:"left",children:p.jsx(aN,{color:"primary",onClick:n,"aria-label":"Open execution log",children:p.jsx(L0,{badgeContent:r.length,color:"error",max:99,children:p.jsx(ZC,{})})})}),e&&p.jsxs(sN,{children:[p.jsxs(lN,{children:[p.jsxs(Ce,{variant:"subtitle2",children:["Execution Log (",r.length," steps)"]}),p.jsx(ge,{size:"small",onClick:n,children:p.jsx(km,{})})]}),p.jsx(cN,{children:p.jsx(uN,{children:r.map(i=>p.jsxs(dN,{children:[p.jsx(pN,{src:i.screenshot,alt:`Step ${i.stepNumber}`}),p.jsxs(fN,{children:[p.jsxs(mN,{children:["#",i.stepNumber]}),p.jsx(hN,{children:i.cacheHit?p.jsx(An,{title:"Cache Hit",children:p.jsx(DC,{color:"success",fontSize:"small"})}):p.jsx(An,{title:"Cache Miss / Fresh Execution",children:p.jsx(LC,{color:"info",fontSize:"small"})})})]}),p.jsxs(gN,{children:[i.stepDescription&&p.jsxs(p.Fragment,{children:[p.jsx(gf,{children:"Description"}),p.jsx(vf,{children:i.stepDescription})]}),i.executedCommands&&i.executedCommands.length>0&&p.jsxs(p.Fragment,{children:[p.jsx(gf,{children:i.cacheHit?"Commands (from cache)":"Commands"}),p.jsx(vf,{children:i.executedCommands.join(`
|
|
225
|
+
`)})]})]})]},i.stepId))})})]})]})},aN=Ee(t1)`
|
|
226
|
+
position: fixed;
|
|
227
|
+
bottom: 24px;
|
|
228
|
+
right: 24px;
|
|
229
|
+
z-index: 1300;
|
|
230
|
+
`,sN=Ee(kr)`
|
|
231
|
+
position: fixed;
|
|
232
|
+
bottom: 0;
|
|
233
|
+
left: 0;
|
|
234
|
+
right: 0;
|
|
235
|
+
z-index: 1300;
|
|
236
|
+
width: 100vw;
|
|
237
|
+
height: 400px;
|
|
238
|
+
max-height: calc(100vh - 48px);
|
|
239
|
+
border-radius: 12px 12px 0 0;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
display: flex;
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
background-color: ${({theme:e})=>e.palette?.background?.paper||"#fff"};
|
|
244
|
+
box-shadow: 0px -4px 20px rgba(0,0,0,0.15);
|
|
245
|
+
`,lN=Ee.div`
|
|
246
|
+
height: 48px;
|
|
247
|
+
padding: 0 16px;
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
justify-content: space-between;
|
|
251
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
252
|
+
flex-shrink: 0;
|
|
253
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
254
|
+
`,cN=Ee.div`
|
|
255
|
+
flex: 1;
|
|
256
|
+
overflow-x: auto;
|
|
257
|
+
overflow-y: hidden;
|
|
258
|
+
padding: 16px;
|
|
259
|
+
background-color: rgba(0,0,0,0.02);
|
|
260
|
+
`,uN=Ee.div`
|
|
261
|
+
display: flex;
|
|
262
|
+
gap: 16px;
|
|
263
|
+
height: 100%;
|
|
264
|
+
align-items: center;
|
|
265
|
+
`,dN=Ee.div`
|
|
266
|
+
position: relative;
|
|
267
|
+
height: 100%;
|
|
268
|
+
aspect-ratio: 9/16;
|
|
269
|
+
border-radius: 8px;
|
|
270
|
+
overflow: hidden;
|
|
271
|
+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
272
|
+
background: #000;
|
|
273
|
+
flex-shrink: 0;
|
|
274
|
+
`,pN=Ee.img`
|
|
275
|
+
width: 100%;
|
|
276
|
+
height: 100%;
|
|
277
|
+
object-fit: contain;
|
|
278
|
+
`,fN=Ee.div`
|
|
279
|
+
position: absolute;
|
|
280
|
+
top: 0;
|
|
281
|
+
left: 0;
|
|
282
|
+
right: 0;
|
|
283
|
+
padding: 4px 8px;
|
|
284
|
+
display: flex;
|
|
285
|
+
justify-content: space-between;
|
|
286
|
+
align-items: start;
|
|
287
|
+
background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
|
|
288
|
+
`,mN=Ee.span`
|
|
289
|
+
color: white;
|
|
290
|
+
font-weight: bold;
|
|
291
|
+
font-size: 14px;
|
|
292
|
+
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
|
|
293
|
+
`,hN=Ee.div`
|
|
294
|
+
display: flex;
|
|
295
|
+
align-items: center;
|
|
296
|
+
justify-content: center;
|
|
297
|
+
background: rgba(255,255,255,0.9);
|
|
298
|
+
border-radius: 50%;
|
|
299
|
+
padding: 2px;
|
|
300
|
+
`,gN=Ee.div`
|
|
301
|
+
position: absolute;
|
|
302
|
+
top: 0;
|
|
303
|
+
left: 0;
|
|
304
|
+
right: 0;
|
|
305
|
+
bottom: 0;
|
|
306
|
+
background: rgba(0, 0, 0, 0.85);
|
|
307
|
+
color: white;
|
|
308
|
+
padding: 12px;
|
|
309
|
+
display: flex;
|
|
310
|
+
flex-direction: column;
|
|
311
|
+
opacity: 0;
|
|
312
|
+
transition: opacity 0.2s ease;
|
|
313
|
+
overflow-y: auto;
|
|
314
|
+
font-size: 11px;
|
|
315
|
+
font-family: monospace;
|
|
316
|
+
white-space: pre-wrap;
|
|
317
|
+
z-index: 10;
|
|
318
|
+
|
|
319
|
+
&:hover {
|
|
320
|
+
opacity: 1;
|
|
321
|
+
}
|
|
322
|
+
`,gf=Ee.div`
|
|
323
|
+
font-weight: bold;
|
|
324
|
+
margin-bottom: 4px;
|
|
325
|
+
color: #888;
|
|
326
|
+
font-size: 10px;
|
|
327
|
+
text-transform: uppercase;
|
|
328
|
+
margin-top: 8px;
|
|
329
|
+
&:first-of-type {
|
|
330
|
+
margin-top: 0;
|
|
331
|
+
}
|
|
332
|
+
`,vf=Ee.div`
|
|
333
|
+
margin-bottom: 4px;
|
|
334
|
+
line-height: 1.4;
|
|
335
|
+
word-break: break-all;
|
|
336
|
+
`,li=new cl({open:!1,maintainDisplayed:!1});function vN(){li.setState(e=>({...e,open:!1}))}function Ju(e,t){li.setState({type:"success",title:t?.title??"Success",description:e,listContent:t?.listContent,open:!0,maintainDisplayed:t?.maintainDisplayed??!1})}function rl(e,t){li.setState({type:"error",title:t?.title??"Error",description:e,listContent:t?.listContent,open:!0,maintainDisplayed:t?.maintainDisplayed??!1})}function bN(e,t){li.setState({type:"info",title:t?.title,description:e,listContent:t?.listContent,open:!0,maintainDisplayed:t?.maintainDisplayed??!1})}const yN=/\{\{\s*([a-zA-Z0-9_.-]+)\s*\}\}/g;function xN(e,t){const r=new Set;return{value:e.replace(yN,(n,i)=>Object.prototype.hasOwnProperty.call(t,i)?t[i]??"":(r.add(i),"")),missing:Array.from(r)}}function jr(e,t){const r={...e},o={},n=i=>{const a=r[i];if(typeof a=="string"&&a.includes("{{")){const{value:s,missing:l}=xN(a,t);r[i]=s,l.length&&(o[i]=l)}};return n("descriptionText"),n("text"),n("elementId"),n("url"),n("instruction"),n("path"),{step:r,missingMap:o}}const SN=({step:e,index:t,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i})=>{const a={stepNumber:t+1,onPlay:r,onPlayFromHere:o,onEdit:n,onDelete:i};switch(e.type){case"tap":return p.jsx(GA,{step:e,...a});case"assert":return p.jsx(KA,{step:e,...a});case"type":return p.jsx(qA,{step:e,...a});case"scroll":return p.jsx(JA,{step:e,...a});case"swipe":return p.jsx(XA,{step:e,...a});case"zoom":return p.jsx(YA,{step:e,...a});case"scrollUntil":return p.jsx(QA,{step:e,...a});case"deeplink":return p.jsx(eM,{step:e,...a});case"ai":return p.jsx(tM,{step:e,...a});case"fileRef":return p.jsx(HA,{step:e,...a});default:return null}},wN=({onSave:e,canSave:t})=>{const[r,o]=b.useState(!1),[n,i]=b.useState(void 0),a=Ze(te,P=>P.isRecording),s=Ze(te,P=>P.test.steps),l=Ze(te,P=>P.isPlaying),c=Ze(te,P=>P.selectedPlatform),u=Ze(te,P=>P.selectedDeviceId),d=Ze(te,P=>P.filePath),{data:f=[]}=vn(Tx),m=b.useRef(null),h=()=>{te.setState(P=>({...P,isRecording:!P.isRecording,...P.isRecording?{mode:"interact"}:{}}))},g=et(Ex),v=et(Px),y=et(hM),x=et(SM),w=et(bM),S=et(jx);et(LM);const $=et(RM),I=et(JM),j=et(zx),k=et(QM),T=et(Gu),R=Yr(),E=(P,V,B)=>{te.setState(Z=>({...Z,test:{...Z.test,steps:Z.test.steps.map(ae=>ae.id===P?{...ae,status:V,statusColor:B}:ae)}}))},A=P=>{te.setState(V=>({...V,currentStepId:P}))},{data:C}=vn(Ax),z=P=>new Promise(V=>setTimeout(V,P)),_=async()=>{try{const P=await $.mutateAsync({platform:c,deviceId:u});if(!P.success||!P.base64)throw new Error(P.error||"Failed to capture screenshot");const B=(P.base64.length*.75/(1024*1024)).toFixed(2);return console.log(`[Editor] Captured screenshot: ~${B} MB (${P.base64.length} chars)`),P.base64}catch(P){throw console.error("Screenshot failed:",P),P}},O=P=>new Promise(V=>{const B=new Image;B.onload=()=>V({width:B.naturalWidth,height:B.naturalHeight}),B.src=P}),M=async(P,V,B,Z,ae=[],de,se)=>{E(P,"Starting Smart Loop...","purple");try{let be=0;const ke=15;let we=[...ae],W,Re=!1;const me=[];for(;be<ke;){if(m.current?.signal.aborted)throw new Error("Aborted");let We="",Fe=[],Ye=!1;const vt=2e3,ft=500,bt=Math.floor(vt/ft);for(let ze=0;ze<bt;ze++){if(m.current?.signal.aborted)throw new Error("Aborted");We=await _();try{const{width:ne,height:re}=await O(We);console.log(`Checking cache (Attempt ${ze+1}/${bt}) with:`,{stepNumber:V,description:B,platform:c,resolution:{width:ne,height:re},highest_used_index:W});const $e=await I.mutateAsync({stepNumber:V,stepDescription:B,filepath:se,screenshot:We,platform:c,screenResolution:{width:ne,height:re},highest_used_index:W});if(console.log("Cache result:",$e),$e.found&&$e.cacheCommands){Fe=$e.cacheCommands,W=$e.cacheIndex,Ye=!0,E(P,`Cache Hit! (${Fe.length} cmds)`,"green");break}}catch(ne){console.warn("Cache check failed:",ne)}ze<bt-1&&(E(P,`Cache miss, retrying... (${ze+1}/${bt})`,"orange"),await z(ft))}te.setState(ze=>({...ze,executionLog:[...ze.executionLog,{stepId:P,stepNumber:V,screenshot:We,cacheHit:Ye,timestamp:Date.now(),stepDescription:B,executedCommands:Fe}]}));let Te=[],Je=[],it=[];if(!Ye){Re=!0,E(P,"Cache Miss. Asking AI...","orange");let ze;if(de)try{const Xe=await R.fetchQuery(Dx({enabled:!0}));ze=v2(Xe.elements)}catch(Xe){console.warn("Failed to fetch visible elements for uiHierarchy:",Xe)}const re=await k.mutateAsync({base64_screenshot:We.replace(/^data:image\/\w+;base64,/,""),instruction:Z,action_history:we,elementId:de,uiHierarchy:ze});Je=re.appetizeCommands||[],it=[];const $e=re.gptCommands?.findIndex(Xe=>Xe.startsWith("actions_description:"));$e!==void 0&&$e!==-1&&(it=re.gptCommands?.slice($e,$e+1)||[]);const yt=re.gptCommands?.findIndex(Xe=>Xe.startsWith("reasoning:"));if(yt!==void 0&&yt!==-1){Te=re.gptCommands?.slice(yt)||[];const Xe=Te.filter(Ct=>Ct.startsWith("remember:"));Xe?.length>0&&ae.push(...Xe),we=[...we,...Te]}const jt=re.gptCommands||[];Fe=[...it,...Je],te.setState(Xe=>{let Ct=-1;for(let en=Xe.executionLog.length-1;en>=0;en--)if(Xe.executionLog[en].stepId===P){Ct=en;break}if(Ct===-1)return Xe;const Qt=[...Xe.executionLog];return Qt[Ct]={...Qt[Ct],executedCommands:Fe},{...Xe,executionLog:Qt}})}me.push({screenshot:We,commands:Fe});let ut=!1,kt=!1;Fe.length>0&&(console.log(`[Step ${P}] Executing commands:`,Fe),Ye&&E(P,`Executing ${Fe.length} cached commands...`,"blue"));for(const ze of Fe){if(m.current?.signal.aborted)throw new Error("Aborted");if(ze.toLowerCase().includes("task complete:")){kt=!0;continue}if(ze.toLowerCase().includes("error detected:"))throw new Error(`AI Reported Error: ${ze}`);if(ze.startsWith("remember:")&&ae.push(ze),ze.match(/^t(ap|ab)On:/)){console.log(`Tap Match: ${ze}`);let re,$e;const yt=ze.match(/x=(\d+)/),jt=ze.match(/y=(\d+)/);if(yt&&jt)re=parseInt(yt[1],10),$e=parseInt(jt[1],10);else{const Xe=ze.split(";");Xe.length>=3&&(re=parseInt(Xe[1],10),$e=parseInt(Xe[2],10))}if(console.log(`Tap: ${re},${$e}`),re!==void 0&&$e!==void 0){const Xe=await O(We);E(P,`Exec: Tap ${re},${$e}`,"blue"),await g.mutateAsync({x:re,y:$e,platform:c,deviceId:u,screenshotHeight:Xe.height,screenshotWidth:Xe.width}),ut=!0}}else if(ze.startsWith("wait:")){const re=ze.match(/wait:\s*(\d+)/)?.[1];if(re){const $e=parseInt(re,10);E(P,`Exec: Wait ${$e}s`,"blue"),await z($e*1e3),ut=!0}}else if(ze.startsWith("scroll:")){const re=ze.match(/scroll:\s*(up|down)/i)?.[1],$e=await O(We);re&&(E(P,`Scroll ${re}`,"blue"),await S.mutateAsync({direction:re.toLowerCase(),platform:c,deviceId:u,screenshotHeight:$e.height,screenshotWidth:$e.width,duration:500}),ut=!0)}else if(ze.startsWith("slide")){const re=ze.match(/slide\s+(up|down|left|right)\s+(\d+)%(?::\s*[^;]*)?;(\d+);(\d+)/i);if(re){const $e=re[1].toLowerCase(),jt={down:"up",up:"down",left:"right",right:"left"}[$e],Xe=parseInt(re[2]),Ct=parseInt(re[3]),Qt=parseInt(re[4]),en=await O(We),je=Math.round((jt==="up"||jt==="down"?en.height:en.width)*(Xe/100));let Ot=Ct,ci=Qt;switch(jt){case"up":ci=Qt+je;break;case"down":ci=Qt-je;break;case"left":Ot=Ct-je;break;case"right":Ot=Ct+je;break}E(P,`Slide ${$e} ${Xe}% from (${Ct}, ${Qt}) to (${Ot}, ${ci})`,"blue"),await S.mutateAsync({direction:jt,platform:c,deviceId:u,x1:Ct,y1:Qt,x2:Ot,y2:ci,screenshotHeight:en.height,screenshotWidth:en.width,duration:500}),ut=!0}}}if(ut&&(Ye&&we.push(...Fe),await z(100)),kt)return E(P,"Executed","green"),Re?j.mutate({stepNumber:V,stepDescription:B,filepath:se,executionData:me,platform:c,screenResolution:await O(me[0].screenshot)}):(console.log("Skipping cache population (all actions cached)"),E(P,"Executed (from cache)","green")),!0;be++}throw new Error("Smart Loop Timeout")}catch(be){throw be}},G=async(P,V,B,Z=[])=>{if(B.aborted)return!1;A(P.id),E(P.id,"Executing...","blue");const ae={platform:c,deviceId:u},de=Date.now();try{let se;const ke=()=>te.state.currentScreenshot||void 0;switch(P.type){case"tap":{let W=P.descriptionText;W||(P.elementId&&P.elementId.trim()?W=`tap the element with id "${P.elementId}"`:W="tap on the screen"),await M(P.id,V,P.descriptionText||"tap",W,Z,P.elementId,P?.originRef?.path??d??void 0);break}case"scroll":case"swipe":{const W=P.descriptionText;if(W)await M(P.id,V,W,W,Z,void 0,P?.originRef?.path??d??void 0);else{const Re=await O(ke());await S.mutateAsync({direction:P.direction,platform:c,deviceId:u,x1:P.x1,y1:P.y1,x2:P.x2,y2:P.y2,screenshotHeight:Re.height,screenshotWidth:Re.width,duration:500})}E(P.id,"Swipe Performed","green");break}case"assert":{let W=`Verify that: ${P.descriptionText}`;!P.descriptionText&&P.elementId&&(W=`Verify element with id ${P.elementId} exists`),await M(P.id,V,P.descriptionText||"assert",W,Z,P.elementId,P?.originRef?.path??d??void 0),E(P.id,"Assertion Passed","green");break}case"ai":{const W={...C,...te.state.test.params},{step:Re,missingMap:me}=jr(P,W);if(me.instruction?.length)throw new Error(`Missing params for placeholders -> instruction: ${me.instruction.join(", ")}`);await M(P.id,V,Re.instruction,Re.instruction,Z,void 0,P?.originRef?.path??d??void 0);break}case"type":{se=ke();const W={...C,...te.state.test.params},{step:Re,missingMap:me}=jr(P,W);if(Object.keys(me).length){const We=Object.entries(me).map(([Fe,Ye])=>`${Fe}: ${Ye.join(", ")}`).join("; ");throw new Error(`Missing params for placeholders -> ${We}`)}await v.mutateAsync({text:Re.text,...ae}),E(P.id,"Typed","green");break}case"zoom":{se=ke(),await w.mutateAsync({direction:P.direction,...ae}),E(P.id,"Zoomed","green");break}case"scrollUntil":{se=ke();const W={...C,...te.state.test.params},{step:Re,missingMap:me}=jr(P,W);if(me.text?.length)throw new Error(`Missing params for placeholders -> text: ${me.text.join(", ")}`);E(P.id,"Scrolling until found...","blue");const We=await y.mutateAsync({text:Re.text,elementId:Re.elementId,direction:Re.direction,maxScrolls:Re.maxScrolls,...ae});if(We.success)E(P.id,`Found after ${We.scrolls??0} scrolls`,"green");else throw new Error("Target not found after scrolling");break}case"deeplink":{se=ke();const W={...C,...te.state.test.params},{step:Re,missingMap:me}=jr(P,W);if(me.url?.length)throw new Error(`Missing params for placeholders -> url: ${me.url.join(", ")}`);await x.mutateAsync({url:Re.url,...ae}),E(P.id,"Opened deeplink","green");break}case"fileRef":{E(P.id,"Loading steps from file...","blue");const W={...C,...te.state.test.params},{step:Re,missingMap:me}=jr(P,W);if(me.path?.length)throw new Error(`Missing params for placeholders -> path: ${me.path.join(", ")}`);const Fe=(await T.mutateAsync({path:Re.path}))?.content;let Ye=[],vt={};if(Array.isArray(Fe))Ye=Fe;else if(Fe&&Array.isArray(Fe.steps))Ye=Fe.steps,vt=Fe.params||{};else throw new Error("Referenced file must be an array or an object with steps");const ft={...C,...te.state.test.params,...vt,...P.overrides},Te=_x.array().parse(Ye).map((Je,it)=>{const ut=typeof Je.id=="number"?Je.id:Date.now()+it,{step:kt,missingMap:ze}=jr(Je,ft);if(kt.type==="type"&&ze.text?.length||kt.type==="scrollUntil"&&ze.text?.length||kt.type==="deeplink"&&ze.url?.length||kt.type==="ai"&&ze.instruction?.length){const ne=[];for(const[re,$e]of Object.entries(ze))$e.length&&ne.push(`${re}: ${$e.join(", ")}`);throw new Error(`Referenced step has missing params -> ${ne.join("; ")}`)}return{id:ut,...kt,originRef:{refId:P.id,path:P.path,descriptionText:P.descriptionText,optional:P.optional,overrides:P.overrides,stepNumber:it+1}}});te.setState(Je=>{const it=Je.test.steps.findIndex(kt=>kt.id===P.id);if(it===-1)return Je;const ut=[...Je.test.steps];return ut.splice(it,1,...Te),{...Je,test:{...Je.test,steps:ut}}}),E(P.id,"Expanded steps from file","green");break}}await z(100);const we=Date.now()-de;return console.log(`[Step ${P.id}] Execution Finished. Total Duration: ${we}ms`),se&&te.setState(W=>({...W,executionLog:[...W.executionLog,{stepId:P.id,stepNumber:V,screenshot:se,cacheHit:!1,timestamp:Date.now()}]})),!0}catch(se){const be=se instanceof Error?se.message:"Unknown error";return P.optional?(E(P.id,`Failed (optional): ${be}`,"orange"),!0):(E(P.id,`Error: ${be}`,"red"),!1)}},U=()=>{te.setState(P=>{const V=P.test.steps,B=[],Z=new Set,ae=new Set;let de=0;for(;de<V.length;){const be=V[de];if(be?.type==="fileRef"){const ke=be.path;if(ae.has(ke)){de++;continue}Z.add(be.id),ae.add(ke),B.push(be),de++;continue}if(be&&be.originRef){const ke=be.originRef.refId,we=be.originRef.path,W=be.originRef.descriptionText,Re=be.originRef.optional;let me=de;for(;me<V.length&&V[me]?.originRef?.refId===ke;)me++;if(Z.has(ke)||ae.has(we)){de=me;continue}const We={id:ke,type:"fileRef",path:we,descriptionText:W,optional:Re,overrides:be?.originRef?.overrides};B.some(Fe=>Fe.id===We.id)&&(We.id=Date.now()),B.push(We),Z.add(We.id),ae.add(we),de=me;continue}B.push(be),de++}const se=[];for(const be of B){const ke=se[se.length-1];ke?.type==="fileRef"&&be?.type==="fileRef"&&ke.path===be.path||se.push(be)}return{...P,test:{...P.test,steps:se}}})},Q=async(P,V)=>{if(console.log("Running playback from index:",P),te.state.test.steps.length===0){alert("No steps to play!");return}m.current=new AbortController;const Z=m.current.signal;te.setState(we=>({...we,isPlaying:!0})),te.setState(we=>({...we,test:{...we.test,steps:we.test.steps.map((W,Re)=>Re>=P?{...W,status:"",statusColor:""}:W)},executionLog:[]}));let ae=P;const de=P+1,se=[];let be=!1,ke;for(;!Z.aborted;){const we=te.state.test.steps,W=V?de:we.length;if(ae>=W)break;const Re=we[ae],me=Re.type,We=Re?.originRef?.stepNumber??ae+1;if(!await G(Re,We,Z,se)&&!Re.optional){be=!0,ke=te.state.test.steps.find(vt=>vt.id===Re.id)?.status||"Execution failed";break}if(me==="fileRef"){if(V)break;continue}ae++}await z(500),U(),A(null),te.setState(we=>({...we,isPlaying:!1})),m.current=null,Z.aborted||(be?rl(ke||"Playback failed",{title:"Execution Failed"}):Ju("Playback finished successfully",{title:"Execution Completed"}))},ee=()=>Q(0,!1),oe=P=>{const V=s.findIndex(B=>B.id===P);V!==-1&&Q(V,!0)},X=P=>{const V=s.findIndex(B=>B.id===P);V!==-1&&Q(V,!1)},le=()=>{m.current?.abort(),U(),te.setState(P=>({...P,isPlaying:!1})),A(null),bN("Playback stopped",{title:"Stopped"})},J=P=>{i(P),o(!1)},q=()=>{o(!1),i(void 0)},xe=()=>{o(!1),i(void 0)},Me=P=>{confirm("Delete this step?")&&te.setState(V=>({...V,test:{...V.test,steps:V.test.steps.filter(B=>B.id!==P)}}))},Pe=()=>{confirm("Are you sure you want to clear all steps?")&&te.setState(P=>({...P,test:{...P.test,steps:[]}}))},ie=l||a,Se=r||!!n;return p.jsxs($N,{$hasForm:Se,children:[p.jsxs(_N,{children:[p.jsx(Ke,{variant:"standard",value:Ze(te,P=>P.test.name),onChange:P=>{te.setState(V=>({...V,test:{...V.test,name:P.target.value}}))},placeholder:"Untitled",InputProps:{disableUnderline:!0,style:{fontSize:"1.5rem",fontWeight:500}},fullWidth:!0,sx:{mr:2}}),e&&p.jsx(Rt,{variant:"contained",color:"primary",onClick:e,disabled:!t||l,sx:{flexShrink:0},children:"Save"})]}),p.jsx(vr,{}),p.jsxs(IN,{children:[p.jsx(Rt,{variant:a?"contained":"outlined",color:a?"error":"primary",startIcon:a?p.jsx(Cm,{}):p.jsx(OC,{}),onClick:h,children:a?"Stop Recording":"Record"}),l?p.jsx(Rt,{variant:"contained",color:"error",onClick:le,children:"Stop"}):p.jsx(Rt,{variant:"contained",disabled:a||s.length===0,onClick:ee,startIcon:p.jsx(pn,{}),children:"Run from start"}),p.jsx(Rt,{variant:"outlined",disabled:ie||s.length===0,onClick:Pe,children:"Clear All"})]}),p.jsx(wl,{open:r||!!n,onClose:xe,maxWidth:"md",fullWidth:!0,children:p.jsx($l,{children:p.jsx(He,{pt:1,children:p.jsx(V2,{step:n,onSave:q,onCancel:xe})})})}),p.jsxs(kN,{children:[s.length===0?p.jsx(CN,{children:p.jsx(Ce,{color:"text.secondary",children:"No steps recorded yet. Enable recording and click on the device screen to add steps."})}):p.jsx(jh,{onDragEnd:P=>{const{source:V,destination:B}=P;if(!B||V.index===B.index)return;const ae=[...te.state.test.steps],[de]=ae.splice(V.index,1);ae.splice(B.index,0,de),te.setState(se=>({...se,test:{...se.test,steps:ae}}))},children:p.jsx(ea,{droppableId:"steps-droppable",children:P=>p.jsxs("div",{ref:P.innerRef,...P.droppableProps,children:[s.map((V,B)=>p.jsx(Yl,{draggableId:String(V.id),index:B,children:(Z,ae)=>p.jsx("div",{ref:Z.innerRef,...Z.draggableProps,...Z.dragHandleProps,style:{...Z.draggableProps.style,opacity:ae.isDragging?.9:1},children:p.jsx(SN,{step:V,index:B,onPlay:()=>oe(V.id),onPlayFromHere:()=>X(V.id),onEdit:()=>J(V),onDelete:()=>Me(V.id)})})},V.id)),P.placeholder]})})}),!Se&&p.jsx(He,{mt:2,display:"flex",justifyContent:"center",children:p.jsx(Rt,{variant:"contained",disabled:ie,onClick:()=>o(!0),fullWidth:!0,children:"+ Add Step"})})]}),p.jsx(iN,{})]})},$N=Ee(Ga)`
|
|
337
|
+
display: grid;
|
|
338
|
+
grid-template-areas:
|
|
339
|
+
'header'
|
|
340
|
+
'divider'
|
|
341
|
+
'actions'
|
|
342
|
+
'steps';
|
|
343
|
+
grid-template-rows: auto auto auto minmax(0, 1fr);
|
|
344
|
+
row-gap: 0.75rem;
|
|
345
|
+
overflow: hidden;
|
|
346
|
+
`,IN=Ee.div`
|
|
347
|
+
display: flex;
|
|
348
|
+
gap: 0.5rem;
|
|
349
|
+
flex-wrap: wrap;
|
|
350
|
+
`,kN=Ee.div`
|
|
351
|
+
overflow-y: auto;
|
|
352
|
+
padding-right: 0.5rem;
|
|
353
|
+
`,CN=Ee.div`
|
|
354
|
+
display: flex;
|
|
355
|
+
align-items: center;
|
|
356
|
+
justify-content: center;
|
|
357
|
+
height: 100%;
|
|
358
|
+
padding: 2rem;
|
|
359
|
+
text-align: center;
|
|
360
|
+
`,_N=Ee.div`
|
|
361
|
+
grid-area: header;
|
|
362
|
+
display: flex;
|
|
363
|
+
justify-content: space-between;
|
|
364
|
+
align-items: center;
|
|
365
|
+
`;function hn(e,t,r,o){const n=b.useRef(r),i=b.useRef(o);b.useEffect(()=>{n.current=r,i.current=o}),b.useEffect(()=>{const a=e&&"current"in e?e.current:e;if(!a)return;let s=0;function l(...u){s||n.current.apply(this,u)}a.addEventListener(t,l);const c=i.current;return()=>{s=1,a.removeEventListener(t,l),c&&c()}},[e,t])}const EN=e=>{const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),t},PN=typeof performance<"u"?performance:Date,jN=()=>PN.now();function Or(e,t=30,r=!1){const o=EN(e),n=1e3/t,i=b.useRef(0),a=b.useRef(),s=()=>a.current&&clearTimeout(a.current),l=[t,r,o];function c(){i.current=0,s()}return b.useEffect(()=>c,l),b.useCallback(function(){const u=arguments,d=jN(),f=()=>{i.current=d,s(),o.current.apply(null,u)},m=i.current;if(r&&m===0)return f();if(d-m>n){if(m>0)return f();i.current=d}s(),a.current=setTimeout(()=>{f(),i.current=0},n)},l)}function ON(e,t){if(typeof window>"u")return e;const{event:r,element:o}=t;let n;"touches"in r?n=r.touches[0]:n=r;const{clientX:i,clientY:a,screenX:s,screenY:l,pageX:c=0,pageY:u=0}=n,d=o.getBoundingClientRect(),f=c-d.left-(window.pageXOffset||window.scrollX),m=u-d.top-(window.pageYOffset||window.scrollY);return"touches"in r&&(f<0||m<0||f>d.width||m>d.height)?{...e,context:{...e.context,hoverStatus:"leave",touchStatus:"end"}}:{context:{...e.context,hoverStatus:"enter"},mouse:{...e.mouse,x:f,y:m,pageX:c,pageY:u,clientX:i,clientY:a,screenX:s,screenY:l,elementWidth:d.width,elementHeight:d.height,isOver:!0,isTouch:"touches"in r}}}function RN(e,t){const{mouse:r,context:o}=e,n=ON;if(t.type==="mousemove")return o.touchStatus==="end"?e:n(e,t);if(t.type==="touchmove"){const i={context:{...o,touchStatus:"start"},mouse:r};return n(i,t)}else if(t.type==="touchdown"){const i={context:{...o,touchStatus:"start"},mouse:{...r,isDown:!0}};return n(i,t)}else{if(t.type==="mousedown")return{context:o,mouse:{...r,isDown:!0}};if(t.type==="mouseup")return{context:o,mouse:{...r,isDown:!1}};if(t.type==="mouseleave")return{context:{...o,hoverStatus:"leave"},mouse:{...r,isOver:!1}};if(t.type==="touchleave")return{context:{...o,hoverStatus:"leave",touchStatus:"end"},mouse:{...r,isOver:!1,isDown:!1}};if(t.type==="activeStatus")return{context:{...o,activeStatus:t.value},mouse:r}}return e}function Wx(e,t={}){const{fps:r=30,enterDelay:o=0,leaveDelay:n=0}=t,[i,a]=b.useReducer(RN,{mouse:bf,context:DN}),s=Or(g=>{const v=e&&"current"in e?e.current:e;v&&a({type:"mousemove",event:g,element:v})},r,!0),l=Or(g=>{const v=e&&"current"in e?e.current:e;v&&a({type:"touchmove",event:g,element:v})},r,!0),c=Or(()=>a({type:"mouseleave"}),r,!1),u=Or(g=>{const v=e&&"current"in e?e.current:e;v&&a("touches"in g?{type:"touchdown",element:v,event:g}:{type:"mousedown",element:v,event:g})},r,!0),d=Or(()=>a({type:"mouseup"}),r,!1),f=Or(()=>a({type:"touchleave"}),r,!1);hn(e,"mouseenter",s),hn(e,"mousemove",s),hn(e,"mouseleave",c),hn(e,"mousedown",u),hn(typeof window<"u"?window:null,"mousedown",u),hn(typeof window<"u"?window:null,"mouseup",d),hn(e,"touchstart",u),hn(e,"touchmove",l),hn(e,"touchend",f),hn(e,"touchcancel",f);function m(){return a({type:"activeStatus",value:"active"})}function h(){return a({type:"activeStatus",value:"inactive"})}return b.useEffect(()=>{if(i.context.hoverStatus==="enter"){if(o){const g=setTimeout(m,o);return()=>clearTimeout(g)}a({type:"activeStatus",value:"active"})}else{if(n){const g=setTimeout(h,n);return()=>clearTimeout(g)}a({type:"activeStatus",value:"inactive"})}},[i.context.hoverStatus,o,n]),i.context.activeStatus==="active"?i.mouse:bf}const bf={x:null,y:null,pageX:null,pageY:null,clientX:null,clientY:null,screenX:null,screenY:null,elementWidth:null,elementHeight:null,isOver:!1,isDown:!1,isTouch:!1},DN={hoverStatus:"idle",touchStatus:"idle",activeStatus:"inactive"},TN=b.createContext(null);function zN(){return b.useContext(TN)?.defaultOptions??{}}function AN(e){return typeof e=="function"}function yf(e,...t){return AN(e)?e(...t):e}class MN{#n=!0;#e;#t;#r;#o;#a;#i;#c;#p=0;#f=5;#s=!1;#u=!1;#l=null;#d=()=>{this.debugLog("Connected to event bus"),this.#a=!0,this.#s=!1,this.debugLog("Emitting queued events",this.#o),this.#o.forEach(t=>this.emitEventToBus(t)),this.#o=[],this.stopConnectLoop(),this.#t().removeEventListener("tanstack-connect-success",this.#d)};#m=()=>{if(this.#p<this.#f){this.#p++,this.dispatchCustomEvent("tanstack-connect",{});return}this.#t().removeEventListener("tanstack-connect",this.#m),this.#u=!0,this.debugLog("Max retries reached, giving up on connection"),this.stopConnectLoop()};#h=()=>{this.#s||(this.#s=!0,this.#t().addEventListener("tanstack-connect-success",this.#d),this.#m())};constructor({pluginId:t,debug:r=!1,enabled:o=!0,reconnectEveryMs:n=300}){this.#e=t,this.#n=o,this.#t=this.getGlobalTarget,this.#r=r,this.debugLog(" Initializing event subscription for plugin",this.#e),this.#o=[],this.#a=!1,this.#u=!1,this.#i=null,this.#c=n}startConnectLoop(){this.#i!==null||this.#a||(this.debugLog(`Starting connect loop (every ${this.#c}ms)`),this.#i=setInterval(this.#m,this.#c))}stopConnectLoop(){this.#s=!1,this.#i!==null&&(clearInterval(this.#i),this.#i=null,this.#o=[],this.debugLog("Stopped connect loop"))}debugLog(...t){this.#r&&console.log(`🌴 [tanstack-devtools:${this.#e}-plugin]`,...t)}getGlobalTarget(){if(typeof globalThis<"u"&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog("Using global event target"),globalThis.__TANSTACK_EVENT_TARGET__;if(typeof window<"u"&&typeof window.addEventListener<"u")return this.debugLog("Using window as event target"),window;const t=typeof EventTarget<"u"?new EventTarget:void 0;return typeof t>"u"||typeof t.addEventListener>"u"?(this.debugLog("No event mechanism available, running in non-web environment"),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog("Using new EventTarget as fallback"),t)}getPluginId(){return this.#e}dispatchCustomEventShim(t,r){try{const o=new Event(t,{detail:r});this.#t().dispatchEvent(o)}catch{this.debugLog("Failed to dispatch shim event")}}dispatchCustomEvent(t,r){try{this.#t().dispatchEvent(new CustomEvent(t,{detail:r}))}catch{this.dispatchCustomEventShim(t,r)}}emitEventToBus(t){this.debugLog("Emitting event to client bus",t),this.dispatchCustomEvent("tanstack-dispatch-event",t)}createEventPayload(t,r){return{type:`${this.#e}:${t}`,payload:r,pluginId:this.#e}}emit(t,r){if(!this.#n){this.debugLog("Event bus client is disabled, not emitting event",t,r);return}if(this.#l&&(this.debugLog("Emitting event to internal event target",t,r),this.#l.dispatchEvent(new CustomEvent(`${this.#e}:${t}`,{detail:this.createEventPayload(t,r)}))),this.#u){this.debugLog("Previously failed to connect, not emitting to bus");return}if(!this.#a){this.debugLog("Bus not available, will be pushed as soon as connected"),this.#o.push(this.createEventPayload(t,r)),typeof CustomEvent<"u"&&!this.#s&&(this.#h(),this.startConnectLoop());return}return this.emitEventToBus(this.createEventPayload(t,r))}on(t,r,o){const n=o?.withEventTarget??!1,i=`${this.#e}:${t}`;if(n&&(this.#l||(this.#l=new EventTarget),this.#l.addEventListener(i,s=>{r(s.detail)})),!this.#n)return this.debugLog("Event bus client is disabled, not registering event",i),()=>{};const a=s=>{this.debugLog("Received event from bus",s.detail),r(s.detail)};return this.#t().addEventListener(i,a),this.debugLog("Registered event to bus",i),()=>{n&&this.#l?.removeEventListener(i,a),this.#t().removeEventListener(i,a)}}onAll(t){if(!this.#n)return this.debugLog("Event bus client is disabled, not registering event"),()=>{};const r=o=>{const n=o.detail;t(n)};return this.#t().addEventListener("tanstack-devtools-global",r),()=>this.#t().removeEventListener("tanstack-devtools-global",r)}onAllPluginEvents(t){if(!this.#n)return this.debugLog("Event bus client is disabled, not registering event"),()=>{};const r=o=>{const n=o.detail;this.#e&&n.pluginId!==this.#e||t(n)};return this.#t().addEventListener("tanstack-devtools-global",r),()=>this.#t().removeEventListener("tanstack-devtools-global",r)}}var NN=class extends MN{constructor(e){super({pluginId:"pacer",debug:e?.debug})}};const FN=(e,t)=>{t.key&&Zx.emit(e,t)},Zx=new NN;function xf(){return{canLeadingExecute:!0,executionCount:0,isPending:!1,lastArgs:void 0,status:"idle",maybeExecuteCount:0}}const LN={enabled:!0,leading:!1,trailing:!0,wait:0};var UN=class{#n;constructor(e,t){this.fn=e,this.store=new cl(xf()),this.setOptions=r=>{this.options={...this.options,...r},this.#t()||this.cancel()},this.maybeExecute=(...r)=>{if(!this.#t())return;this.#e({maybeExecuteCount:this.store.state.maybeExecuteCount+1});let o=!1;this.options.leading&&this.store.state.canLeadingExecute&&(this.#e({canLeadingExecute:!1}),o=!0,this.#o(...r)),this.options.trailing&&this.#e({isPending:!0,lastArgs:r}),this.#n&&clearTimeout(this.#n),this.#n=setTimeout(()=>{this.#e({canLeadingExecute:!0}),this.options.trailing&&!o&&this.#o(...r)},this.#r())},this.flush=()=>{this.store.state.isPending&&this.store.state.lastArgs&&(this.#a(),this.#o(...this.store.state.lastArgs))},this.cancel=()=>{this.#a(),this.#e({canLeadingExecute:!0,isPending:!1})},this.reset=()=>{this.#e(xf())},this.key=t.key,this.options={...LN,...t},this.#e(this.options.initialState??{}),this.key&&Zx.on("d-Debouncer",r=>{r.payload.key===this.key&&(this.#e(r.payload.store.state),this.setOptions(r.payload.options))})}#e=e=>{this.store.setState(t=>{const r={...t,...e},{isPending:o}=r;return{...r,status:this.#t()?o?"pending":"idle":"disabled"}}),FN("Debouncer",this)};#t=()=>!!yf(this.options.enabled,this);#r=()=>yf(this.options.wait,this);#o=(...e)=>{this.#t()&&(this.fn(...e),this.#e({executionCount:this.store.state.executionCount+1,isPending:!1,lastArgs:void 0}),this.options.onExecute?.(e,this))};#a=()=>{this.#n&&(clearTimeout(this.#n),this.#n=void 0)}};function Sf(e,t,r=()=>({})){const o={...zN().debouncer,...t},[n]=b.useState(()=>{const a=new UN(e,o);return a.Subscribe=function(l){const c=Ze(a.store,l.selector);return typeof l.children=="function"?l.children(c):l.children},a});n.fn=e,n.setOptions(o),b.useEffect(()=>()=>{n.cancel()},[n]);const i=Ze(n.store,r);return b.useMemo(()=>({...n,state:i}),[n,i])}const BN=(e,t,r,o,n,i)=>n>=e&&n<=e+r&&i>=t&&i<=t+o,VN=({dimensions:e,elements:t,mouse:r})=>{if(t.length===0)return null;const o=t.filter(n=>{const i=n.bounds;if(i==null)return!1;const a=n.text??n.attributes?.text,s=n.resourceId??n.attributes?.["resource-id"],l=n.accessibilityText??n.attributes?.accessibilityText??n.attributes?.["accessibility-text"]??n.attributes?.["content-desc"],c=n.accessibilityIdentifier??n.attributes?.accessibilityIdentifier,u=n.name??n.attributes?.name,d=n.label??n.attributes?.label,f=n.value??n.attributes?.value;if(!a&&!s&&!l&&!c&&!u&&!d&&!f)return!1;const{x:m,y:h,width:g,height:v}=i,{x:y,y:x,elementWidth:w,elementHeight:S}=r;return y===null||x===null||w===null||S===null?!1:BN(m/e.width,h/e.height,g/e.width,v/e.height,y/w,x/S)});return o.length===0?null:o.sort((n,i)=>{if(n.bounds==null&&i.bounds==null)return 0;if(n.bounds==null)return 1;if(i.bounds==null)return-1;const a=n.drawingOrderPath??n.indexPath??[],s=i.drawingOrderPath??i.indexPath??[];for(let l=0;l<Math.min(a.length,s.length);l++){const c=parseInt(a[l]),u=parseInt(s[l]);if(c!==u)return u-c}return a.length!==s.length?s.length-a.length:n.bounds.width*n.bounds.height-i.bounds.width*i.bounds.height})[0]},wf=(e,t)=>`${Math.round(100*e/t)}%`,WN=e=>{if(typeof e.x!="number"||typeof e.y!="number"||typeof e.elementWidth!="number"||typeof e.elementHeight!="number")return null;const t=wf(e.x,e.elementWidth),r=wf(e.y,e.elementHeight);return`${t}, ${r}`},ZN=({open:e,handleClose:t,options:r,onAfterCopy:o})=>{const n=b.useMemo(()=>r?typeof r[0]=="string"?r.map(c=>({label:c,value:c})):r:[],[r]),[i,a]=b.useState(""),s=b.useCallback(()=>{a(""),t()},[t]),l=b.useCallback(async()=>{const c=i||(n[0]?.value??"");if(c){try{await navigator.clipboard.writeText(c),Ju("Copied to clipboard")}catch{}o?.(),s()}},[i,n,o,s]);return p.jsxs(wl,{open:e,onClose:s,maxWidth:"md",fullWidth:!0,children:[p.jsx(fm,{children:"Select an attribute"}),p.jsx($l,{children:p.jsx(Yn,{children:p.jsx(Wk,{name:"attribute-options",children:n.map(c=>p.jsx(wa,{value:c.value,control:p.jsx(Uk,{}),label:c.label,onChange:()=>a(c.value)},`${c.label}-${c.value}`))})})}),p.jsxs(pm,{children:[p.jsx(Rt,{color:"error",onClick:s,children:"Cancel"}),p.jsx(Rt,{onClick:l,disabled:!i&&n.length===0,variant:"contained",children:"Copy"})]})]})},HN=nt("f8084cb106c8126bb2deaeef7c98992d9ff9475ad3dc85c6ced04f08c3962b6e"),GN=qe({method:"POST"}).handler(HN),KN={mutationKey:["ai","describe"],mutationFn:e=>GN({data:e})};function qN(e){return e.normalize("NFKC").replace(`
|
|
366
|
+
`,"").replace(/['`´''‚‛′']/g,"'").replace(/[""„‟″]/g,'"').replace(/[–—]/g,"-").replace(/[\u00A0\u2000-\u200A\u202F\u205F]/g," ").replace(/[\u200B-\u200F\uFEFF]/g,"").replace(/[\uE000-\uF8FF]|[\u{F0000}-\u{FFFFD}]|[\u{100000}-\u{10FFFD}]/gu,"").trim()}function JN(e,t){switch(e.type){case"tap":return`tapOn: x=${e.x} y=${e.y}`;case"assert":return"assert";case"swipe":return`swipe: direction=${e.direction} from=(${e.startCoords.x},${e.startCoords.y}) to=(${e.endCoords.x},${e.endCoords.y})`;case"scroll":{let r;if(e.direction==="up"||e.direction==="down"){console.log("interaction",e);const i=Math.abs(e.endCoords.y-e.startCoords.y);r=Math.round(i/t*100)}return`slide ${{down:"up",up:"down"}[e.direction]||e.direction} ${r}%;${e.startCoords.x};${e.startCoords.y}`}}}function XN(e){const t=e.elementId?` on "${e.elementId}"`:"";switch(e.type){case"tap":return`Tap Interaction${t}`;case"assert":return`Assert Element${t}`;case"swipe":return`Swipe ${e.direction}${t}`;case"scroll":return`Scroll ${e.direction}${t}`}}async function $f(e,t){const{stepId:r,interaction:o,beforeImage:n,platform:i,deviceId:a,screenWidth:s,screenHeight:l}=e,{queryClient:c,describeMutation:u,populateCacheMutation:d}=t;let f=n;if(o.type!=="assert"&&a){await new Promise(g=>setTimeout(g,2e3));try{const g=await c.fetchQuery({...Rx({platform:i,deviceId:a}),staleTime:0});g?.base64&&(f=g.base64)}catch(g){console.error("Failed to fetch post-action screenshot",g)}}const m=g=>{te.setState(v=>({...v,test:{...v.test,steps:v.test.steps.map(y=>y.id===r?{...y,descriptionText:g}:y)}}))},h=g=>{try{const v=te.state.test.steps,y=v.findIndex(w=>w.id===r),x=y!==-1?y+1:v.length;d.mutate({stepNumber:x,stepDescription:g,...e.filePath&&{filepath:e.filePath},executionData:[{screenshot:n,commands:[JN(o,l),o.type==="assert"?`task complete: ${g}`:"task complete:"]}],platform:i,screenResolution:{width:s,height:l}})}catch(v){console.error("Error populating cache:",v)}};try{let g,v;if(o.type==="swipe"||o.type==="scroll"){g=o.direction;const w=Math.abs(o.endCoords.x-o.startCoords.x),S=Math.abs(o.endCoords.y-o.startCoords.y);g==="left"||g==="right"?v=`${Math.round(w/s*100)}%`:v=`${Math.round(S/l*100)}%`}const x=(await u.mutateAsync({fullImage:n??"",croppedImage:o.cropBase64,targetImage:f??"",type:o.type,elementId:o.elementId,direction:g,distance:v})).description;m(x),h(x)}catch(g){console.error("Failed to describe interaction",g);const v=XN(o);m(v),h(v)}}const YN=()=>{const e=Ze(te,E=>E.mode),t=Ze(te,E=>E.isRecording),r=Ze(te,E=>E.enableAnimations);Yr();const o=b.useRef(null),[n,i]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState([]),{data:u=[]}=vn(Tx),d=Ze(te,E=>E.selectedDeviceId);Ze(te,E=>E.selectedPlatform),b.useEffect(()=>{if(!d&&u.length>0){const E=u[0];te.setState(A=>({...A,selectedDeviceId:E.id,selectedPlatform:E.platform}))}},[u,d]);const f=u.find(E=>E.id===d),{data:m,isError:h,isLoading:g}=vn({...Rx({platform:f?.platform,deviceId:f?.id}),refetchInterval:250,enabled:!!f});b.useEffect(()=>{const E=m?.base64;E&&te.setState(A=>({...A,currentScreenshot:E}))},[m]);const{data:v}=vn({...jM({platform:f?.platform,deviceId:f?.id}),enabled:!!f,refetchInterval:1e3}),y=et(_M),{data:x}=vn({...Dx({enabled:n&&!!f}),refetchInterval:n?1e3:!1});b.useEffect(()=>{f?.id&&v?.connected===!1&&!y.isPending&&y.mutate({platform:f.platform,deviceId:f.id})},[f,v?.connected]);const w=m?.success??!1,S=v?.connected??!1,$=w&&S,I=m?.base64,j=et(VM);et(IM);const k=async()=>{const E=!r;te.setState(A=>({...A,enableAnimations:E})),E||await j.mutateAsync()},T=()=>{te.setState(E=>({...E,isRecording:!E.isRecording,...E.isRecording?{mode:"interact"}:{}}))},R=g?"Connecting...":h?"Error":$?"Connected":w&&!S?"Starting Appium...":"Disconnected";return p.jsxs(l4,{children:[p.jsxs(c4,{children:[p.jsx(Ce,{variant:"h5",children:"Device"}),p.jsxs(u4,{children:[p.jsx(An,{title:t?"Stop Recording":"Start Recording",children:p.jsx(ge,{onClick:T,color:t?"error":"default",size:"small",children:t?p.jsx(Cm,{}):p.jsx(NC,{})})}),p.jsx(An,{title:n?"Disable UI Inspector":"Enable UI Inspector",children:p.jsx(ge,{onClick:()=>i(!n),color:n?"primary":"default",size:"small",children:p.jsx(VC,{})})}),p.jsx(An,{title:r?"Disable Animations":"Enable Animations",children:p.jsx(ge,{onClick:k,color:r?"primary":"default",size:"small",children:p.jsx(jC,{})})})]})]}),p.jsx(vr,{}),p.jsxs(d4,{children:[p.jsxs(He,{display:"flex",alignItems:"center",gap:1,flexGrow:1,children:[p.jsxs(Yn,{size:"small",sx:{minWidth:150,flex:1},children:[p.jsx(_r,{children:"Device"}),p.jsx(Qn,{value:d||"",label:"Device",onChange:E=>{const A=E.target.value,C=u.find(z=>z.id===A);te.setState(z=>({...z,selectedDeviceId:A,selectedPlatform:C?.platform||"android"}))},children:u.map(E=>p.jsxs(Sn,{value:E.id,children:[E.name," (",E.platform,")"]},E.id))})]}),p.jsx(p4,{connected:$,children:R})]}),t&&p.jsxs(PC,{color:"primary",exclusive:!0,value:e,onChange:(E,A)=>{A&&te.setState(C=>({...C,mode:A}))},size:"small",children:[p.jsx(op,{value:"interact",children:"Interact"}),p.jsx(op,{value:"assert",children:"Assert"})]})]}),p.jsx(f4,{children:I?p.jsxs(g4,{children:[p.jsx(m4,{ref:o,src:I,alt:"Device Screen",draggable:!1,recording:t}),p.jsx(i4,{imgRef:o,uiDisabled:n,platform:f?.platform||"android",deviceId:f?.id,src:I}),n&&x?.elements&&p.jsx(s4,{imgRef:o,deviceWidth:x.width,deviceHeight:x.height,elements:x.elements,onPickAttributes:E=>{c(E),s(!0)}})]}):p.jsx(h4,{children:u.length===0?p.jsx(Ce,{variant:"body2",color:"text.secondary",children:"No devices found."}):d?p.jsxs(p.Fragment,{children:[p.jsx(ha,{}),p.jsx(Ce,{variant:"body2",color:"text.secondary",children:"Connecting to device..."})]}):p.jsx(Ce,{variant:"body2",color:"text.secondary",children:"Select a device."})})}),p.jsx(ZN,{open:a,handleClose:()=>s(!1),options:l,onAfterCopy:()=>i(!1)})]})},QN=50,e4=10,t4=250,n4=800,r4=180,o4=40,i4=({imgRef:e,uiDisabled:t,platform:r,deviceId:o,src:n})=>{const i=b.useRef(null);Wx(i,{enterDelay:0,leaveDelay:0});const a=Ze(te,C=>C.isRecording),s=Ze(te,C=>C.mode),l=Ze(te,C=>C.filePath);b.useEffect(()=>{a&&i.current&&i.current.focus()},[a]);const c=et(Ex),u=et(Px),d=et(jx),f=et(MM),m=Yr(),h=et(KN),g=et(zx),v=b.useRef(null),y=b.useRef(""),x=b.useRef(0),w=()=>({platform:r??"android",deviceId:o}),S=(C,z)=>{const _=e.current;if(!_)return null;const O=_.getBoundingClientRect(),M=_.naturalWidth/O.width,G=_.naturalHeight/O.height;return{x:Math.round((C-O.left)*M),y:Math.round((z-O.top)*G),rect:O,img:_}},$=async(C,z,_,O,M,G,U=500)=>{const Q=Date.now(),ee={id:Q,type:C,direction:z,x1:_.x,y1:_.y,x2:O.x,y2:O.y,...C==="swipe"?{duration:U}:{},elementId:"",descriptionText:"Getting element ID..."};te.setState(X=>({...X,test:{...X.test,steps:[...X.test.steps,ee]}}));let oe="";try{oe=(await f.mutateAsync({x:_.x,y:_.y,screenshotHeight:M.naturalHeight,screenshotWidth:M.naturalWidth}))?.elementId||""}catch{}te.setState(X=>({...X,test:{...X.test,steps:X.test.steps.map(le=>le.id===Q?{...le,elementId:oe,descriptionText:"Generating description..."}:le)}})),$f({stepId:Q,interaction:{type:C,direction:z,startCoords:_,endCoords:O,cropBase64:G,elementId:oe},filePath:l,beforeImage:n,platform:r||"android",deviceId:o,screenWidth:M.naturalWidth,screenHeight:M.naturalHeight},{queryClient:m,describeMutation:h,populateCacheMutation:g})},I=async()=>{const C=y.current;C&&(y.current="",await u.mutateAsync({text:C,...w()}),a&&te.setState(z=>({...z,test:{...z.test,steps:[...z.test.steps,{id:Date.now(),type:"type",text:C}]}})))},j=Sf(I,{wait:n4}),k=Sf(async(C,z)=>{const _=x.current;if(x.current=0,Math.abs(_)<o4)return;const O=S(C,z);if(!O)return;const M=_>0?"down":"up";let G;a&&(G=ys(O.img,O.x,O.y,O.x,O.y)),a&&$("scroll",M,{x:O.x,y:O.y},{x:O.x,y:O.y},O.img,G),await d.mutateAsync({direction:M,x1:O.x,y1:O.y,duration:500,...w()})},{wait:r4}),T=C=>{if(t)return;const z=S(C.clientX,C.clientY);z&&(v.current={x:z.x,y:z.y,t:Date.now()},i.current?.focus())},R=async C=>{if(t)return;const z=v.current;v.current=null;const _=S(C.clientX,C.clientY);if(!z||!_)return;const O=_.x-z.x,M=_.y-z.y,G=Math.hypot(O,M),U=Date.now()-z.t,Q=w();if(G<=e4&&U<=t4){const ee=n;if(a){const oe=a4(_.img,_.x,_.y),X=Date.now();te.setState(J=>({...J,test:{...J.test,steps:[...J.test.steps,{id:X,type:s==="assert"?"assert":"tap",x:_.x,y:_.y,cropBase64:oe,elementId:"",descriptionText:"Getting element ID..."}]}}));let le="";f.mutateAsync({x:_.x,y:_.y,screenshotHeight:_.img.naturalHeight,screenshotWidth:_.img.naturalWidth}).then(J=>{le=J?.elementId||""}).finally(()=>{te.setState(J=>({...J,test:{...J.test,steps:J.test.steps.map(q=>q.id===X?{...q,elementId:le,descriptionText:"Generating description..."}:q)}})),$f({stepId:X,interaction:{type:s==="assert"?"assert":"tap",x:_.x,y:_.y,cropBase64:oe,elementId:le},filePath:l,beforeImage:ee,platform:r||"android",deviceId:o,screenWidth:_.img.naturalWidth,screenHeight:_.img.naturalHeight},{queryClient:m,describeMutation:h,populateCacheMutation:g})})}s!=="assert"&&await c.mutateAsync({x:_.x,y:_.y,screenshotHeight:_.img.naturalHeight,screenshotWidth:_.img.naturalWidth,...Q});return}if(G>=QN){const ee=Math.abs(O),oe=Math.abs(M),X={x:z.x,y:z.y},le={x:_.x,y:_.y};if(oe>=ee*1.5){const J=M>0?"up":"down";let q;a&&(q=ys(_.img,X.x,X.y,le.x,le.y),$("scroll",J,X,le,_.img,q)),await d.mutateAsync({direction:J,x1:z.x,y1:z.y,x2:_.x,y2:_.y,screenshotHeight:_.img.naturalHeight,screenshotWidth:_.img.naturalWidth,duration:500,...Q})}else{const J=O>=0?"right":"left";if(a){const q=ys(_.img,X.x,X.y,le.x,le.y);$("swipe",J,X,le,_.img,q,500)}await d.mutateAsync({direction:J,x1:z.x,y1:z.y,x2:_.x,y2:_.y,screenshotHeight:_.img.naturalHeight,screenshotWidth:_.img.naturalWidth,duration:500,...Q})}}},E=C=>{t||(C.preventDefault(),x.current+=C.deltaY,k.maybeExecute(C.clientX,C.clientY))},A=async C=>{if(!t){if(C.key.length===1||C.key===" "){y.current+=C.key,j.maybeExecute(),C.preventDefault();return}if(C.key==="Backspace"){j.cancel(),await I(),await u.mutateAsync({text:"",...w()}),C.preventDefault();return}C.key==="Enter"&&(y.current+=`
|
|
367
|
+
`,j.maybeExecute(),C.preventDefault())}};return b.useEffect(()=>()=>{j.flush()},[]),p.jsx("div",{ref:i,tabIndex:0,onMouseDown:T,onMouseUp:R,onWheel:E,onKeyDown:A,style:{position:"absolute",inset:0,outline:"none"}})};function a4(e,t,r,o=100){const n=document.createElement("canvas");n.width=o,n.height=o;const i=n.getContext("2d");if(i)return i.drawImage(e,t-o/2,r-o/2,o,o,0,0,o,o),n.toDataURL("image/jpeg",.8)}function ys(e,t,r,o,n,i=50){const a=Math.max(0,Math.min(t,o)-i),s=Math.max(0,Math.min(r,n)-i),l=Math.min(e.naturalWidth,Math.max(t,o)+i),c=Math.min(e.naturalHeight,Math.max(r,n)+i),u=l-a,d=c-s;if(u<=0||d<=0)return;const f=document.createElement("canvas");f.width=u,f.height=d;const m=f.getContext("2d");if(m)return m.drawImage(e,a,s,u,d,0,0,u,d),f.toDataURL("image/jpeg",.8)}const s4=({imgRef:e,deviceWidth:t,deviceHeight:r,elements:o,onPickAttributes:n})=>{const[i,a]=b.useState(null),s=b.useRef(null),l=Wx(s,{enterDelay:100,leaveDelay:100}),c=i!=null?o[i]:null,u=b.useMemo(()=>{const m=c,h=m?.text||m?.attributes?.text||"",g=m?.accessibilityText||m?.attributes?.["accessibility-text"]||m?.attributes?.["content-desc"]||"",v=m?.resourceId||m?.attributes?.["resource-id"]||"",y=m?.accessibilityIdentifier||m?.attributes?.accessibilityIdentifier||"",x=m?.name||m?.attributes?.name||"",w=m?.label||m?.attributes?.label||"",S=m?.value||m?.attributes?.value||"";return y||x||w||h||g||v||S||WN(l)||""},[c,l]);b.useEffect(()=>{if(!l?.isOver){a(null);return}const m=VN({dimensions:{width:t,height:r},elements:o,mouse:l});if(!m){a(null);return}let h=o.indexOf(m);if(h<0&&m.bounds){const g=m.bounds;h=o.findIndex(v=>v.bounds&&v.bounds.x===g.x&&v.bounds.y===g.y&&v.bounds.width===g.width&&v.bounds.height===g.height)}a(h>=0?h:null)},[l,t,r,o]);const d=l?.isOver&&typeof l.x=="number"&&typeof l.y=="number"&&typeof l.elementWidth=="number"&&typeof l.elementHeight=="number",f=()=>{const m=i!=null?o[i]:null;if(!m)return;const h=[],g=(v,y)=>{const x=typeof y=="string"?qN(y):"";x&&!h.some(w=>w.value===x)&&h.push({label:`${v}: "${x}"`,value:x})};g("accessibility-id",m.accessibilityIdentifier??m.attributes?.accessibilityIdentifier),g("name",m.name??m.attributes?.name),g("label",m.label??m.attributes?.label),g("text",m.text??m.attributes?.text),g("accessibility-text",m.accessibilityText??m.attributes?.["accessibility-text"]??m.attributes?.["content-desc"]),g("resource-id",m.resourceId??m.attributes?.["resource-id"]),h.length>0&&n(h)};return p.jsx(An,{title:u,followCursor:!0,children:p.jsxs(v4,{ref:s,onClick:f,children:[d&&p.jsxs(p.Fragment,{children:[p.jsx(y4,{style:{left:`${l.x/l.elementWidth*100}%`}}),p.jsx(x4,{style:{top:`${l.y/l.elementHeight*100}%`}})]}),o.map((m,h)=>{if(!m.bounds)return null;const{x:g,y:v,width:y,height:x}=m.bounds;return p.jsx(b4,{style:{left:`${g/t*100}%`,top:`${v/r*100}%`,width:`${y/t*100}%`,height:`${x/r*100}%`},"data-hovered":i===h||void 0},h)})]})})},l4=Ee(Ga)`
|
|
368
|
+
display: grid;
|
|
369
|
+
grid-template-areas: 'header' 'divider' 'actions' 'device';
|
|
370
|
+
grid-template-rows: auto auto auto minmax(0, 1fr);
|
|
371
|
+
row-gap: 0.75rem;
|
|
372
|
+
overflow: hidden;
|
|
373
|
+
min-width: 0;
|
|
374
|
+
`,c4=Ee.div`
|
|
375
|
+
grid-area: header;
|
|
376
|
+
display: flex;
|
|
377
|
+
justify-content: space-between;
|
|
378
|
+
align-items: center;
|
|
379
|
+
`,u4=Ee.div`
|
|
380
|
+
display: flex;
|
|
381
|
+
gap: 0.25rem;
|
|
382
|
+
`,d4=Ee.div`
|
|
383
|
+
grid-area: actions;
|
|
384
|
+
display: flex;
|
|
385
|
+
gap: 0.5rem;
|
|
386
|
+
flex-wrap: wrap;
|
|
387
|
+
align-items: center;
|
|
388
|
+
justify-content: space-between;
|
|
389
|
+
`,p4=Ee(Ce)`
|
|
390
|
+
font-size: 0.875rem;
|
|
391
|
+
color: ${({connected:e})=>e?"#4caf50":"#f44336"};
|
|
392
|
+
`,f4=Ee.div`
|
|
393
|
+
grid-area: device;
|
|
394
|
+
display: flex;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
align-items: flex-start;
|
|
397
|
+
overflow: scroll;
|
|
398
|
+
height: 100%;
|
|
399
|
+
min-height: 0;
|
|
400
|
+
min-width: 0;
|
|
401
|
+
`,m4=Ee.img`
|
|
402
|
+
display: block;
|
|
403
|
+
max-width: 100%;
|
|
404
|
+
height: auto;
|
|
405
|
+
border: 2px solid #333;
|
|
406
|
+
border-radius: 8px;
|
|
407
|
+
cursor: crosshair;
|
|
408
|
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
|
|
409
|
+
${({recording:e})=>e&&"border-color: #2196f3; box-shadow: 0 0 20px rgba(33, 150, 243, 0.4);"}
|
|
410
|
+
`,h4=Ee(He)`
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-direction: column;
|
|
413
|
+
align-items: center;
|
|
414
|
+
gap: 1rem;
|
|
415
|
+
`,g4=Ee.div`
|
|
416
|
+
position: relative;
|
|
417
|
+
display: inline-block;
|
|
418
|
+
max-width: 100%;
|
|
419
|
+
height: auto;
|
|
420
|
+
`,v4=Ee.div`
|
|
421
|
+
position: absolute;
|
|
422
|
+
inset: 0;
|
|
423
|
+
pointer-events: auto;
|
|
424
|
+
`,b4=Ee.div`
|
|
425
|
+
position: absolute;
|
|
426
|
+
box-sizing: border-box;
|
|
427
|
+
pointer-events: none;
|
|
428
|
+
border: 2px dashed rgba(236, 72, 153, 0.7);
|
|
429
|
+
background: transparent;
|
|
430
|
+
&[data-hovered] {
|
|
431
|
+
border-color: rgba(59, 130, 246, 0.95);
|
|
432
|
+
border-style: solid;
|
|
433
|
+
outline: 2px solid rgba(59, 130, 246, 0.6);
|
|
434
|
+
}
|
|
435
|
+
`,y4=Ee.div`
|
|
436
|
+
position: absolute;
|
|
437
|
+
top: 0;
|
|
438
|
+
bottom: 0;
|
|
439
|
+
width: 1px;
|
|
440
|
+
background: rgba(59, 130, 246, 0.9);
|
|
441
|
+
transform: translateX(-0.5px);
|
|
442
|
+
pointer-events: none;
|
|
443
|
+
`,x4=Ee.div`
|
|
444
|
+
position: absolute;
|
|
445
|
+
left: 0;
|
|
446
|
+
right: 0;
|
|
447
|
+
height: 1px;
|
|
448
|
+
background: rgba(59, 130, 246, 0.9);
|
|
449
|
+
transform: translateY(-0.5px);
|
|
450
|
+
pointer-events: none;
|
|
451
|
+
`;function S4(e){const t={};return e.forEach(r=>{const o=r.path.split("/");let n=t,i="";o.forEach((a,s)=>{i=i?`${i}/${a}`:a,n[a]||(n[a]={name:a,fullPath:i,type:s===o.length-1?r.type:"directory",children:{}}),s===o.length-1&&(n[a].type=r.type,n[a].fullPath=i),n=n[a].children})}),t}const Hx=({item:e,level:t,onSelect:r,selectedFile:o,onRename:n})=>{const i=o&&o.startsWith(e.fullPath+"/"),a=o===e.fullPath,[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,f]=b.useState(e.name);b.useEffect(()=>{i&&l(!0)},[i]);const m=()=>{d&&d!==e.name&&n(e.fullPath,d),u(!1)},h=Object.keys(e.children).length>0,g=Object.values(e.children).sort((v,y)=>v.type===y.type?v.name.localeCompare(y.name):v.type==="directory"?-1:1);return c?p.jsx(ns,{sx:{pl:t*2},children:p.jsx(Ke,{value:d,onChange:v=>f(v.target.value),size:"small",autoFocus:!0,onBlur:m,onKeyDown:v=>{v.key==="Enter"&&m(),v.key==="Escape"&&u(!1)},InputProps:{endAdornment:p.jsx(R1,{position:"end",children:p.jsx(ge,{size:"small",onMouseDown:m,children:p.jsx(RC,{fontSize:"small"})})})}})}):p.jsxs(p.Fragment,{children:[e.type==="directory"?p.jsx(ea,{droppableId:`FOLDER_ROW::${e.fullPath}`,children:(v,y)=>p.jsxs("div",{ref:v.innerRef,...v.droppableProps,children:[p.jsxs(ns,{button:!0,onClick:x=>{l(!s)},onDoubleClick:()=>{f(e.name),u(!0)},selected:a,sx:{pl:t*2,bgcolor:y.isDraggingOver?"action.hover":void 0,borderLeft:i?"3px solid":void 0,borderLeftColor:i?"primary.main":void 0,opacity:i?1:void 0},children:[p.jsx(Gd,{sx:{minWidth:32},children:p.jsx(FC,{fontSize:"small",color:i?"primary":"action"})}),p.jsx(Kd,{primary:e.name,primaryTypographyProps:{variant:"body2",noWrap:!0,fontWeight:i?600:400}}),h&&(s?p.jsx(zC,{fontSize:"small"}):p.jsx(AC,{fontSize:"small"}))]}),v.placeholder]})}):p.jsxs(ns,{button:!0,onClick:()=>r(e.fullPath),onDoubleClick:()=>{f(e.name),u(!0)},selected:a,sx:{pl:t*2,bgcolor:a?"action.selected":void 0,"&.Mui-selected":{bgcolor:"action.selected","&:hover":{bgcolor:"action.selected"}}},children:[p.jsx(Gd,{sx:{minWidth:32},children:p.jsx(UC,{fontSize:"small",color:a?"primary":"action"})}),p.jsx(Kd,{primary:e.name,primaryTypographyProps:{variant:"body2",noWrap:!0,fontWeight:a?600:400}})]}),e.type==="directory"&&p.jsx(Es,{in:s,timeout:"auto",unmountOnExit:!0,children:p.jsx(ea,{droppableId:e.fullPath,children:v=>p.jsxs(Cl,{component:"div",disablePadding:!0,ref:v.innerRef,...v.droppableProps,children:[g.map((y,x)=>p.jsx(Yl,{draggableId:y.fullPath,index:x,children:(w,S)=>p.jsx("div",{ref:w.innerRef,...w.draggableProps,...w.dragHandleProps,style:{...w.draggableProps.style,opacity:S.isDragging?.9:1},children:p.jsx(Hx,{item:y,level:t+1,onSelect:r,selectedFile:o,onRename:n})})},y.fullPath)),v.placeholder]})})})]})};function w4({files:e,onSelect:t,selectedFile:r,refetch:o}){const n=S4(e),i=Object.values(n).sort((c,u)=>c.type===u.type?c.name.localeCompare(u.name):c.type==="directory"?-1:1),a=et(m2),s=async(c,u)=>{try{const d=c.split("/");d.pop();const f=d.join("/"),m=f?`${f}/${u}`:u;await a.mutateAsync({oldPath:c,newPath:m}),o()}catch(d){alert("Rename failed: "+d.message)}},l=async c=>{const{destination:u,draggableId:d}=c;if(!u)return;const f=u.droppableId;let m="";f==="ROOT"?m="":f.startsWith("FOLDER_ROW::")?m=f.slice(12):m=f;const h=d;if(!h||m&&(h===m||m.startsWith(h+"/")))return;const g=h.lastIndexOf("/"),v=g>=0?h.slice(0,g):"";if((m||"")===v)return;const y=g>=0?h.slice(g+1):h,x=m?`${m}/${y}`:y;try{await a.mutateAsync({oldPath:h,newPath:x}),o()}catch(w){alert("Move failed: "+w.message)}};return p.jsx(jh,{onDragEnd:l,children:p.jsx(ea,{droppableId:"ROOT",children:c=>p.jsxs(Cl,{dense:!0,ref:c.innerRef,...c.droppableProps,children:[i.map((u,d)=>p.jsx(Yl,{draggableId:u.fullPath||u.name,index:d,children:(f,m)=>p.jsx("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,style:{...f.draggableProps.style,opacity:m.isDragging?.9:1},children:p.jsx(Hx,{item:u,level:1,onSelect:t,selectedFile:r,onRename:s})})},u.fullPath||u.name)),c.placeholder]})})})}function $4({onSelectFile:e,selectedFile:t}){const{data:r,isLoading:o,error:n,refetch:i}=vn({...Hu,refetchInterval:2e3}),[a,s]=b.useState(!1),[l,c]=b.useState("file"),[u,d]=b.useState(""),f=et(a2),m=async()=>{if(!u)return;let v=u;l==="file"&&!v.endsWith(".json")&&(v+=".json");try{await f.mutateAsync({name:v,type:l}),s(!1),d(""),l==="file"&&e(v),i()}catch(y){alert("Failed to create: "+y.message)}},h=v=>{c(v),d(""),s(!0)};if(o)return p.jsx(xs,{children:p.jsx(ha,{})});if(n)return p.jsx(xs,{children:p.jsx(Ce,{color:"error",children:"Error loading files"})});const g=r?.files||[];return p.jsxs(xs,{children:[p.jsxs(I4,{children:[p.jsx(Ce,{variant:"h6",children:"Tests"}),p.jsxs(He,{children:[p.jsx(ge,{onClick:()=>i(),size:"small",title:"Refresh",children:p.jsx(HC,{})}),p.jsx(ge,{onClick:()=>h("directory"),size:"small",title:"New Folder",children:p.jsx(TC,{})}),p.jsx(ge,{onClick:()=>h("file"),size:"small",color:"primary",title:"New Test",children:p.jsx(Im,{})})]})]}),p.jsx(vr,{}),p.jsx(k4,{children:g.length===0?p.jsx(Ce,{variant:"caption",sx:{p:2,display:"block",textAlign:"center",color:"text.secondary"},children:"No tests found"}):p.jsx(w4,{files:g,onSelect:e,selectedFile:t,refetch:i})}),p.jsxs(wl,{open:a,onClose:()=>s(!1),children:[p.jsxs(fm,{children:["Create New ",l==="file"?"Test":"Folder"]}),p.jsx($l,{children:p.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Name",fullWidth:!0,value:u,onChange:v=>d(v.target.value),placeholder:l==="file"?"my-test":"my-folder"})}),p.jsxs(pm,{children:[p.jsx(Rt,{onClick:()=>s(!1),children:"Cancel"}),p.jsx(Rt,{onClick:m,variant:"contained",children:"Create"})]})]})]})}const xs=Ee(Ga)`
|
|
452
|
+
display: flex;
|
|
453
|
+
flex-direction: column;
|
|
454
|
+
padding: 0;
|
|
455
|
+
overflow: hidden;
|
|
456
|
+
height: 100%;
|
|
457
|
+
`,I4=Ee.div`
|
|
458
|
+
padding: 1rem;
|
|
459
|
+
display: flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
justify-content: space-between;
|
|
462
|
+
`,k4=Ee.div`
|
|
463
|
+
flex: 1;
|
|
464
|
+
overflow-y: auto;
|
|
465
|
+
padding: 0.5rem 0;
|
|
466
|
+
`;function C4({disabled:e}){const t=Ze(te,c=>c.test.params),[r,o]=b.useState(()=>Object.entries(t||{}).map(([c,u])=>({key:c,value:u})));b.useEffect(()=>{o(Object.entries(t||{}).map(([c,u])=>({key:c,value:u})))},[t]),b.useMemo(()=>new Set(r.map(c=>c.key)),[r]);const n=c=>{const u={};for(const d of c)d.key&&(u[d.key]=d.value);te.setState(d=>({...d,test:{...d.test,params:u}}))},i=()=>{const c=[...r,{key:"",value:""}];o(c)},a=c=>{const u=r.filter((d,f)=>f!==c);o(u),n(u)},s=(c,u)=>{const d=r.map((f,m)=>m===c?{...f,key:u}:f);o(d),n(d)},l=(c,u)=>{const d=r.map((f,m)=>m===c?{...f,value:u}:f);o(d),n(d)};return p.jsxs(_4,{children:[p.jsxs(E4,{children:[p.jsx(Ce,{variant:"subtitle1",children:"Test Params"}),p.jsx(An,{title:e?"Select a test to edit params":"Add parameter",children:p.jsx("span",{children:p.jsx(ge,{size:"small",disabled:e,onClick:i,color:"primary",children:p.jsx(Im,{})})})})]}),p.jsx(vr,{}),p.jsxs(P4,{children:[r.length===0&&p.jsx(O4,{children:p.jsx(Ce,{variant:"caption",color:"text.secondary",children:e?"No test selected":"No params. Click + to add"})}),r.map((c,u)=>{const d=c.key&&r.some((f,m)=>m!==u&&f.key===c.key);return p.jsxs(j4,{children:[p.jsx(Ke,{size:"small",label:"Key",value:c.key,onChange:f=>s(u,f.target.value),disabled:e,error:!!d,helperText:d?"Duplicate key":" "}),p.jsx(Ke,{size:"small",label:"Value",value:c.value,onChange:f=>l(u,f.target.value),disabled:e}),p.jsx(An,{title:e?"":"Remove",children:p.jsx("span",{children:p.jsx(ge,{size:"small",disabled:e,onClick:()=>a(u),children:p.jsx(dn,{})})})})]},u)})]}),!e&&r.length>0&&p.jsx(He,{sx:{p:1,display:"flex",justifyContent:"flex-end"},children:p.jsx(Rt,{size:"small",onClick:()=>n(r),children:"Apply"})})]})}const _4=Ee(Ga)`
|
|
467
|
+
display: flex;
|
|
468
|
+
flex-direction: column;
|
|
469
|
+
padding: 0;
|
|
470
|
+
height: 100%;
|
|
471
|
+
overflow: hidden;
|
|
472
|
+
`,E4=Ee.div`
|
|
473
|
+
padding: 0.75rem 1rem;
|
|
474
|
+
display: flex;
|
|
475
|
+
align-items: center;
|
|
476
|
+
justify-content: space-between;
|
|
477
|
+
`,P4=Ee.div`
|
|
478
|
+
padding: 0.5rem 0.75rem;
|
|
479
|
+
display: flex;
|
|
480
|
+
flex-direction: column;
|
|
481
|
+
gap: 0.5rem;
|
|
482
|
+
overflow: auto;
|
|
483
|
+
`,j4=Ee.div`
|
|
484
|
+
display: grid;
|
|
485
|
+
grid-template-columns: 1fr 1fr auto;
|
|
486
|
+
gap: 0.5rem;
|
|
487
|
+
align-items: start;
|
|
488
|
+
padding-top: 0.5rem;
|
|
489
|
+
`,O4=Ee.div`
|
|
490
|
+
padding: 0.75rem;
|
|
491
|
+
text-align: center;
|
|
492
|
+
`;function R4(){const e=Ze(li,r=>r),t=b.useCallback(()=>{vN()},[]);return p.jsx(dC,{open:e.open,onClose:t,className:"absolute z-10",style:{maxWidth:"384px"},anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:e.maintainDisplayed?null:3e3,children:p.jsxs(Zw,{severity:e.type,onClose:t,children:[e.title!==void 0&&p.jsx(e$,{sx:{...e.description==null&&e.listContent==null&&{marginBottom:0}},children:e.title}),e.description!==void 0&&e.description,e.listContent!==void 0&&e.listContent.length>0&&p.jsx("ul",{className:"mt-2 ml-2 list-disc list-inside",children:e.listContent.map((r,o)=>p.jsx("li",{children:r},o))})]})})}function L4(){const[e,t]=b.useState(),r=et(Gu),o=et(d2),n=Yr(),[i,a]=b.useState("");b.useEffect(()=>{e?r.mutateAsync({path:e}).then(u=>{const d=u.content;let f=[],m={};Array.isArray(d)?(f=d,m={}):d&&Array.isArray(d.steps)&&(f=d.steps,m=d.params||{});const h=f.map((x,w)=>({...x,id:x.id||Date.now()+w})),g={name:u.path,steps:h,params:m};te.setState(x=>({...x,test:g,filePath:e}));const v=te.state.test,y={...v,steps:v.steps.map(x=>{const w={...x};for(const S of Object.keys(gs))delete w[S];return w})};a(JSON.stringify(y))}).catch(u=>{u instanceof Error?u.message:String(u),rl("Failed to read file",{title:"Read Error"})}):a(JSON.stringify({name:"untitled",steps:[],params:{}}))},[e]);const s=Ze(te,u=>u.test),l=(()=>{const u={...s,steps:s.steps.map(d=>{const f={...d};for(const m of Object.keys(gs))delete f[m];return f})};return JSON.stringify(u)!==i})(),c=async()=>{let u=e;const d=te.state.test,f=d.steps.map(h=>{const g={...h};for(const v of Object.keys(gs))delete g[v];return g}),m={...d,steps:f};if(!u){const h=(d.name||"untitled").replace(/[^a-z0-9_\-\.]/gi,"_");u=h.endsWith(".json")?h:`${h}.json`}try{console.log("content",m),await o.mutateAsync({path:u,content:m}),a(JSON.stringify(m)),e||(t(u),n.invalidateQueries({queryKey:["files"]})),Ju("File saved",{title:"Saved"})}catch(h){rl(h?.message?String(h.message):"Failed to save",{title:"Save Error"})}};return p.jsxs(p.Fragment,{children:[p.jsxs(D4,{children:[p.jsx(T4,{children:p.jsx($4,{onSelectFile:t,selectedFile:e})}),p.jsx(z4,{children:p.jsx(C4,{disabled:!e})}),p.jsx(A4,{children:p.jsx(wN,{onSave:c,canSave:l})}),p.jsx(M4,{children:p.jsx(YN,{})})]}),p.jsx(R4,{})]})}const D4=Ee.div`
|
|
493
|
+
display: grid;
|
|
494
|
+
grid-template-areas:
|
|
495
|
+
'files editor simulator'
|
|
496
|
+
'params editor simulator';
|
|
497
|
+
grid-template-columns: 250px minmax(0, 1fr) 400px;
|
|
498
|
+
grid-template-rows: 1fr minmax(160px, 35%);
|
|
499
|
+
background-color: #f0f2f5;
|
|
500
|
+
height: 100vh;
|
|
501
|
+
padding: 1rem;
|
|
502
|
+
column-gap: 1rem;
|
|
503
|
+
row-gap: 1rem;
|
|
504
|
+
`,T4=Ee.div`
|
|
505
|
+
grid-area: files;
|
|
506
|
+
min-height: 0; /* allow internal scroll */
|
|
507
|
+
`,z4=Ee.div`
|
|
508
|
+
grid-area: params;
|
|
509
|
+
min-height: 0;
|
|
510
|
+
`,A4=Ee.div`
|
|
511
|
+
grid-area: editor;
|
|
512
|
+
min-height: 0;
|
|
513
|
+
height: 100%;
|
|
514
|
+
overflow-y: auto;
|
|
515
|
+
`,M4=Ee.div`
|
|
516
|
+
grid-area: simulator;
|
|
517
|
+
min-height: 0;
|
|
518
|
+
min-width: 0; /* allow child panel to shrink horizontally */
|
|
519
|
+
height: 100%;
|
|
520
|
+
`;export{L4 as component};
|