<html lang="en">
<head></head>
<body>

<form id="mainForm" method="post" action="https://stackblitz.com/run" target="_self">
<input type="hidden" name="project[files][README.md]" value="# Raw Fetch Handler Example for RivetKit

Example project demonstrating raw HTTP fetch handling with Hono integration in [RivetKit](https://rivetkit.org).

[Learn More →](https://github.com/rivet-gg/rivetkit)

[Discord](https://rivet.gg/discord) — [Documentation](https://rivetkit.org) — [Issues](https://github.com/rivet-gg/rivetkit/issues)

## Overview

This example demonstrates:
- Using Hono router inside an actor&#39;s `onFetch` handler via `createVars`
- Creating named counter actors that maintain independent state
- Making fetch requests to actors through the frontend client
- Forwarding requests from custom Hono endpoints to actor fetch handlers
- Building a React frontend that interacts with RivetKit actors
- Testing actors with fetch handlers

## Project Structure

```
raw-fetch-handler/
├── src/
│   ├── backend/     # RivetKit server with counter actors
│   └── frontend/    # React app demonstrating client interactions
└── tests/           # Vitest test suite
```

## Getting Started

### Prerequisites

- Node.js

### Installation

```sh
git clone https://github.com/rivet-gg/rivetkit
cd rivetkit/examples/raw-fetch-handler
pnpm install
```

### Development

Start both backend and frontend:

```sh
pnpm dev
```

Or run them separately:

```sh
# Terminal 1 - Backend
pnpm dev:backend

# Terminal 2 - Frontend
pnpm dev:frontend
```

Run tests:

```sh
pnpm test
```

## Features

### Backend

1. **Counter Actor** - A simple counter with HTTP endpoints
   - `GET /count` - Get current count
   - `POST /increment` - Increment the counter

2. **Forward Endpoint** - Routes requests to actor fetch handlers
   - `/forward/:name/*` - Forward any request to the named actor

### Frontend

A React app demonstrating:
- Creating multiple named counters
- Interacting via actor fetch API
- Using the forward endpoint
- Real-time state updates

## How It Works

1. The backend defines a counter actor with a Hono router
2. Each counter is identified by a unique name
3. The frontend can interact with counters in two ways:
   - Direct actor fetch calls using the RivetKit client
   - HTTP requests through the forward endpoint
4. Multiple counters maintain independent state

## License

Apache 2.0">
<input type="hidden" name="project[files][package.json]" value="{&quot;name&quot;:&quot;example-raw-fetch-handler&quot;,&quot;version&quot;:&quot;0.9.9&quot;,&quot;private&quot;:true,&quot;type&quot;:&quot;module&quot;,&quot;scripts&quot;:{&quot;dev&quot;:&quot;concurrently \&quot;tsx --watch src/backend/server.ts\&quot; \&quot;vite\&quot;&quot;,&quot;dev:backend&quot;:&quot;tsx --watch src/backend/server.ts&quot;,&quot;dev:frontend&quot;:&quot;vite&quot;,&quot;build&quot;:&quot;vite build&quot;,&quot;preview&quot;:&quot;vite preview&quot;,&quot;check-types&quot;:&quot;tsc --noEmit&quot;,&quot;test&quot;:&quot;vitest&quot;},&quot;dependencies&quot;:{&quot;@rivetkit/actor&quot;:&quot;https://pkg.pr.new/rivet-gg/rivetkit/@rivetkit/actor@bc35a9428bedf1e7f4e2572638a04bd55aa08aa6&quot;,&quot;@rivetkit/react&quot;:&quot;https://pkg.pr.new/rivet-gg/rivetkit/@rivetkit/react@bc35a9428bedf1e7f4e2572638a04bd55aa08aa6&quot;,&quot;hono&quot;:&quot;^4.6.18&quot;,&quot;react&quot;:&quot;^18.3.1&quot;,&quot;react-dom&quot;:&quot;^18.3.1&quot;},&quot;devDependencies&quot;:{&quot;@types/node&quot;:&quot;^22.10.6&quot;,&quot;@types/react&quot;:&quot;^18.3.18&quot;,&quot;@types/react-dom&quot;:&quot;^18.3.5&quot;,&quot;@vitejs/plugin-react&quot;:&quot;^4.3.4&quot;,&quot;concurrently&quot;:&quot;^9.1.2&quot;,&quot;tsx&quot;:&quot;^4.20.0&quot;,&quot;typescript&quot;:&quot;^5.7.3&quot;,&quot;vite&quot;:&quot;^5.4.19&quot;,&quot;vitest&quot;:&quot;^3.1.1&quot;}}">
<input type="hidden" name="project[files][tsconfig.json]" value="{
  &quot;compilerOptions&quot;: {
    &quot;target&quot;: &quot;ES2022&quot;,
    &quot;module&quot;: &quot;ESNext&quot;,
    &quot;lib&quot;: [&quot;ES2022&quot;, &quot;DOM&quot;, &quot;DOM.Iterable&quot;],
    &quot;jsx&quot;: &quot;react-jsx&quot;,
    &quot;moduleResolution&quot;: &quot;bundler&quot;,
    &quot;strict&quot;: true,
    &quot;esModuleInterop&quot;: true,
    &quot;skipLibCheck&quot;: true,
    &quot;forceConsistentCasingInFileNames&quot;: true,
    &quot;resolveJsonModule&quot;: true,
    &quot;allowSyntheticDefaultImports&quot;: true,
    &quot;noEmit&quot;: true,
    &quot;types&quot;: [&quot;vitest/globals&quot;, &quot;node&quot;]
  },
  &quot;include&quot;: [&quot;src/**/*&quot;, &quot;tests/**/*&quot;, &quot;vite.config.ts&quot;],
  &quot;exclude&quot;: [&quot;node_modules&quot;, &quot;dist&quot;]
}
">
<input type="hidden" name="project[files][turbo.json]" value="{
  &quot;$schema&quot;: &quot;https://turbo.build/schema.json&quot;,
  &quot;extends&quot;: [&quot;//&quot;]
}
">
<input type="hidden" name="project[files][vite.config.ts]" value="import react from &quot;@vitejs/plugin-react&quot;;
import { defineConfig } from &quot;vite&quot;;

export default defineConfig({
	plugins: [react()],
	root: &quot;src/frontend&quot;,
	build: {
		outDir: &quot;../../dist&quot;,
	},
	server: {
		host: &quot;0.0.0.0&quot;,
	},
});
">
<input type="hidden" name="project[files][vitest.config.ts]" value="import { defineConfig } from &quot;vitest/config&quot;;

export default defineConfig({
	test: {
		include: [&quot;tests/**/*.test.ts&quot;],
	},
});
">
<input type="hidden" name="project[files][.turbo/turbo-build.log]" value="
&gt; example-raw-fetch-handler@0.9.9 build /home/runner/work/rivetkit/rivetkit/examples/raw-fetch-handler
&gt; vite build

[36mvite v5.4.19 [32mbuilding for production...[36m[39m
[33m
[1m(!)[22m outDir [37m[2m/home/runner/work/rivetkit/rivetkit/examples/raw-fetch-handler/dist[22m[33m is not inside project root and will not be emptied.
Use --emptyOutDir to override.
[39m
transforming...
[32m✓[39m 218 modules transformed.
rendering chunks...
computing gzip size...
[2m../../dist/[22m[32mindex.html                  [39m[1m[2m  0.34 kB[22m[1m[22m[2m │ gzip:   0.25 kB[22m
[2m../../dist/[22m[2massets/[22m[36mbrowser-Blo9hrnw.js  [39m[1m[2m  0.57 kB[22m[1m[22m[2m │ gzip:   0.40 kB[22m
[2m../../dist/[22m[2massets/[22m[36mindex-z2Dkjsn_.js    [39m[1m[2m  6.73 kB[22m[1m[22m[2m │ gzip:   2.84 kB[22m
[2m../../dist/[22m[2massets/[22m[36mindex-BZlcHGU7.js    [39m[1m[2m465.25 kB[22m[1m[22m[2m │ gzip: 130.31 kB[22m
[32m✓ built in 12.12s[39m
">
<input type="hidden" name="project[files][dist/index.html]" value="&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
    &lt;title&gt;RivetKit Fetch Handler Example&lt;/title&gt;
    &lt;script type=&quot;module&quot; crossorigin src=&quot;/assets/index-BZlcHGU7.js&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;">
<input type="hidden" name="project[files][tests/counter.test.ts]" value="import { setupTest } from &quot;@rivetkit/actor/test&quot;;
import { describe, expect, test } from &quot;vitest&quot;;
import { registry } from &quot;../src/backend/registry&quot;;

describe(&quot;Counter Actor&quot;, () =&gt; {
	test(&quot;fetch handler returns counter state&quot;, async (test) =&gt; {
		const { client } = await setupTest(test, registry);
		const handle = client.counter.getOrCreate(&quot;test-fetch&quot;);

		// GET current state
		let response = await handle.fetch(&quot;/count&quot;);
		expect(response.status).toBe(200);
		let data = await response.json();
		expect(data.count).toBe(0);

		// POST to increment
		response = await handle.fetch(&quot;/increment&quot;, { method: &quot;POST&quot; });
		expect(response.status).toBe(200);
		data = await response.json();
		expect(data.count).toBe(1);

		// Verify state persisted with another GET
		response = await handle.fetch(&quot;/count&quot;);
		data = await response.json();
		expect(data.count).toBe(1);
	});
});
">
<input type="hidden" name="project[files][dist/assets/browser-Blo9hrnw.js]" value="import{g as a}from&quot;./index-BZlcHGU7.js&quot;;function f(t,s){for(var o=0;o&lt;s.length;o++){const e=s[o];if(typeof e!=&quot;string&quot;&amp;&amp;!Array.isArray(e)){for(const r in e)if(r!==&quot;default&quot;&amp;&amp;!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&amp;&amp;Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=&gt;e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:&quot;Module&quot;}))}var c=function(){throw new Error(&quot;ws does not work in the browser. Browser clients must use the native WebSocket object&quot;)};const i=a(c),u=f({__proto__:null,default:i},[c]);export{u as b};
">
<input type="hidden" name="project[files][dist/assets/index-BZlcHGU7.js]" value="var Z$=Object.defineProperty;var vm=e=&gt;{throw TypeError(e)};var L$=(e,t,n)=&gt;t in e?Z$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kt=(e,t,n)=&gt;L$(e,typeof t!=&quot;symbol&quot;?t+&quot;&quot;:t,n),hs=(e,t,n)=&gt;t.has(e)||vm(&quot;Cannot &quot;+n);var b=(e,t,n)=&gt;(hs(e,t,&quot;read from private field&quot;),n?n.call(e):t.get(e)),fe=(e,t,n)=&gt;t.has(e)?vm(&quot;Cannot add the same private member more than once&quot;):t instanceof WeakSet?t.add(e):t.set(e,n),pe=(e,t,n,i)=&gt;(hs(e,t,&quot;write to private field&quot;),i?i.call(e,n):t.set(e,n),n),se=(e,t,n)=&gt;(hs(e,t,&quot;access private method&quot;),n);(function(){const t=document.createElement(&quot;link&quot;).relList;if(t&amp;&amp;t.supports&amp;&amp;t.supports(&quot;modulepreload&quot;))return;for(const r of document.querySelectorAll(&#39;link[rel=&quot;modulepreload&quot;]&#39;))i(r);new MutationObserver(r=&gt;{for(const o of r)if(o.type===&quot;childList&quot;)for(const a of o.addedNodes)a.tagName===&quot;LINK&quot;&amp;&amp;a.rel===&quot;modulepreload&quot;&amp;&amp;i(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&amp;&amp;(o.integrity=r.integrity),r.referrerPolicy&amp;&amp;(o.referrerPolicy=r.referrerPolicy),r.crossOrigin===&quot;use-credentials&quot;?o.credentials=&quot;include&quot;:r.crossOrigin===&quot;anonymous&quot;?o.credentials=&quot;omit&quot;:o.credentials=&quot;same-origin&quot;,o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function zc(e){return e&amp;&amp;e.__esModule&amp;&amp;Object.prototype.hasOwnProperty.call(e,&quot;default&quot;)?e.default:e}var Ih={exports:{}},Uu={},zh={exports:{}},oe={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wo=Symbol.for(&quot;react.element&quot;),M$=Symbol.for(&quot;react.portal&quot;),F$=Symbol.for(&quot;react.fragment&quot;),B$=Symbol.for(&quot;react.strict_mode&quot;),V$=Symbol.for(&quot;react.profiler&quot;),W$=Symbol.for(&quot;react.provider&quot;),J$=Symbol.for(&quot;react.context&quot;),K$=Symbol.for(&quot;react.forward_ref&quot;),H$=Symbol.for(&quot;react.suspense&quot;),G$=Symbol.for(&quot;react.memo&quot;),Q$=Symbol.for(&quot;react.lazy&quot;),gm=Symbol.iterator;function X$(e){return e===null||typeof e!=&quot;object&quot;?null:(e=gm&amp;&amp;e[gm]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var Oh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Eh=Object.assign,Nh={};function Ni(e,t,n){this.props=e,this.context=t,this.refs=Nh,this.updater=n||Oh}Ni.prototype.isReactComponent={};Ni.prototype.setState=function(e,t){if(typeof e!=&quot;object&quot;&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;e!=null)throw Error(&quot;setState(...): takes an object of state variables to update or a function which returns an object of state variables.&quot;);this.updater.enqueueSetState(this,e,t,&quot;setState&quot;)};Ni.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,&quot;forceUpdate&quot;)};function jh(){}jh.prototype=Ni.prototype;function Oc(e,t,n){this.props=e,this.context=t,this.refs=Nh,this.updater=n||Oh}var Ec=Oc.prototype=new jh;Ec.constructor=Oc;Eh(Ec,Ni.prototype);Ec.isPureReactComponent=!0;var ym=Array.isArray,Th=Object.prototype.hasOwnProperty,Nc={current:null},Ph={key:!0,ref:!0,__self:!0,__source:!0};function Uh(e,t,n){var i,r={},o=null,a=null;if(t!=null)for(i in t.ref!==void 0&amp;&amp;(a=t.ref),t.key!==void 0&amp;&amp;(o=&quot;&quot;+t.key),t)Th.call(t,i)&amp;&amp;!Ph.hasOwnProperty(i)&amp;&amp;(r[i]=t[i]);var u=arguments.length-2;if(u===1)r.children=n;else if(1&lt;u){for(var s=Array(u),l=0;l&lt;u;l++)s[l]=arguments[l+2];r.children=s}if(e&amp;&amp;e.defaultProps)for(i in u=e.defaultProps,u)r[i]===void 0&amp;&amp;(r[i]=u[i]);return{$$typeof:Wo,type:e,key:o,ref:a,props:r,_owner:Nc.current}}function Y$(e,t){return{$$typeof:Wo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jc(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.$$typeof===Wo}function q$(e){var t={&quot;=&quot;:&quot;=0&quot;,&quot;:&quot;:&quot;=2&quot;};return&quot;$&quot;+e.replace(/[=:]/g,function(n){return t[n]})}var _m=/\/+/g;function vs(e,t){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.key!=null?q$(&quot;&quot;+e.key):t.toString(36)}function ba(e,t,n,i,r){var o=typeof e;(o===&quot;undefined&quot;||o===&quot;boolean&quot;)&amp;&amp;(e=null);var a=!1;if(e===null)a=!0;else switch(o){case&quot;string&quot;:case&quot;number&quot;:a=!0;break;case&quot;object&quot;:switch(e.$$typeof){case Wo:case M$:a=!0}}if(a)return a=e,r=r(a),e=i===&quot;&quot;?&quot;.&quot;+vs(a,0):i,ym(r)?(n=&quot;&quot;,e!=null&amp;&amp;(n=e.replace(_m,&quot;$&amp;/&quot;)+&quot;/&quot;),ba(r,t,n,&quot;&quot;,function(l){return l})):r!=null&amp;&amp;(jc(r)&amp;&amp;(r=Y$(r,n+(!r.key||a&amp;&amp;a.key===r.key?&quot;&quot;:(&quot;&quot;+r.key).replace(_m,&quot;$&amp;/&quot;)+&quot;/&quot;)+e)),t.push(r)),1;if(a=0,i=i===&quot;&quot;?&quot;.&quot;:i+&quot;:&quot;,ym(e))for(var u=0;u&lt;e.length;u++){o=e[u];var s=i+vs(o,u);a+=ba(o,t,n,s,r)}else if(s=X$(e),typeof s==&quot;function&quot;)for(e=s.call(e),u=0;!(o=e.next()).done;)o=o.value,s=i+vs(o,u++),a+=ba(o,t,n,s,r);else if(o===&quot;object&quot;)throw t=String(e),Error(&quot;Objects are not valid as a React child (found: &quot;+(t===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(e).join(&quot;, &quot;)+&quot;}&quot;:t)+&quot;). If you meant to render a collection of children, use an array instead.&quot;);return a}function na(e,t,n){if(e==null)return e;var i=[],r=0;return ba(e,i,&quot;&quot;,&quot;&quot;,function(o){return t.call(n,o,r++)}),i}function ek(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=2,e._result=n)}),e._status===-1&amp;&amp;(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rt={current:null},Ia={transition:null},tk={ReactCurrentDispatcher:rt,ReactCurrentBatchConfig:Ia,ReactCurrentOwner:Nc};function Ch(){throw Error(&quot;act(...) is not supported in production builds of React.&quot;)}oe.Children={map:na,forEach:function(e,t,n){na(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return na(e,function(){t++}),t},toArray:function(e){return na(e,function(t){return t})||[]},only:function(e){if(!jc(e))throw Error(&quot;React.Children.only expected to receive a single React element child.&quot;);return e}};oe.Component=Ni;oe.Fragment=F$;oe.Profiler=V$;oe.PureComponent=Oc;oe.StrictMode=B$;oe.Suspense=H$;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tk;oe.act=Ch;oe.cloneElement=function(e,t,n){if(e==null)throw Error(&quot;React.cloneElement(...): The argument must be a React element, but you passed &quot;+e+&quot;.&quot;);var i=Eh({},e.props),r=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&amp;&amp;(o=t.ref,a=Nc.current),t.key!==void 0&amp;&amp;(r=&quot;&quot;+t.key),e.type&amp;&amp;e.type.defaultProps)var u=e.type.defaultProps;for(s in t)Th.call(t,s)&amp;&amp;!Ph.hasOwnProperty(s)&amp;&amp;(i[s]=t[s]===void 0&amp;&amp;u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)i.children=n;else if(1&lt;s){u=Array(s);for(var l=0;l&lt;s;l++)u[l]=arguments[l+2];i.children=u}return{$$typeof:Wo,type:e.type,key:r,ref:o,props:i,_owner:a}};oe.createContext=function(e){return e={$$typeof:J$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:W$,_context:e},e.Consumer=e};oe.createElement=Uh;oe.createFactory=function(e){var t=Uh.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:K$,render:e}};oe.isValidElement=jc;oe.lazy=function(e){return{$$typeof:Q$,_payload:{_status:-1,_result:e},_init:ek}};oe.memo=function(e,t){return{$$typeof:G$,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Ia.transition;Ia.transition={};try{e()}finally{Ia.transition=t}};oe.unstable_act=Ch;oe.useCallback=function(e,t){return rt.current.useCallback(e,t)};oe.useContext=function(e){return rt.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return rt.current.useDeferredValue(e)};oe.useEffect=function(e,t){return rt.current.useEffect(e,t)};oe.useId=function(){return rt.current.useId()};oe.useImperativeHandle=function(e,t,n){return rt.current.useImperativeHandle(e,t,n)};oe.useInsertionEffect=function(e,t){return rt.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return rt.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return rt.current.useMemo(e,t)};oe.useReducer=function(e,t,n){return rt.current.useReducer(e,t,n)};oe.useRef=function(e){return rt.current.useRef(e)};oe.useState=function(e){return rt.current.useState(e)};oe.useSyncExternalStore=function(e,t,n){return rt.current.useSyncExternalStore(e,t,n)};oe.useTransition=function(){return rt.current.useTransition()};oe.version=&quot;18.3.1&quot;;zh.exports=oe;var Pn=zh.exports;const nk=zc(Pn);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rk=Pn,ik=Symbol.for(&quot;react.element&quot;),ok=Symbol.for(&quot;react.fragment&quot;),ak=Object.prototype.hasOwnProperty,uk=rk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sk={key:!0,ref:!0,__self:!0,__source:!0};function Ah(e,t,n){var i,r={},o=null,a=null;n!==void 0&amp;&amp;(o=&quot;&quot;+n),t.key!==void 0&amp;&amp;(o=&quot;&quot;+t.key),t.ref!==void 0&amp;&amp;(a=t.ref);for(i in t)ak.call(t,i)&amp;&amp;!sk.hasOwnProperty(i)&amp;&amp;(r[i]=t[i]);if(e&amp;&amp;e.defaultProps)for(i in t=e.defaultProps,t)r[i]===void 0&amp;&amp;(r[i]=t[i]);return{$$typeof:ik,type:e,key:o,ref:a,props:r,_owner:uk.current}}Uu.Fragment=ok;Uu.jsx=Ah;Uu.jsxs=Ah;Ih.exports=Uu;var Pe=Ih.exports,Qs={},Dh={exports:{}},kt={},Rh={exports:{}},Zh={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(z,D){var R=z.length;z.push(D);e:for(;0&lt;R;){var K=R-1&gt;&gt;&gt;1,G=z[K];if(0&lt;r(G,D))z[K]=D,z[R]=G,R=K;else break e}}function n(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var D=z[0],R=z.pop();if(R!==D){z[0]=R;e:for(var K=0,G=z.length,Qn=G&gt;&gt;&gt;1;K&lt;Qn;){var Xn=2*(K+1)-1,ps=z[Xn],Yn=Xn+1,ta=z[Yn];if(0&gt;r(ps,R))Yn&lt;G&amp;&amp;0&gt;r(ta,ps)?(z[K]=ta,z[Yn]=R,K=Yn):(z[K]=ps,z[Xn]=R,K=Xn);else if(Yn&lt;G&amp;&amp;0&gt;r(ta,R))z[K]=ta,z[Yn]=R,K=Yn;else break e}}return D}function r(z,D){var R=z.sortIndex-D.sortIndex;return R!==0?R:z.id-D.id}if(typeof performance==&quot;object&quot;&amp;&amp;typeof performance.now==&quot;function&quot;){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var s=[],l=[],m=1,p=null,v=3,_=!1,$=!1,E=!1,N=typeof setTimeout==&quot;function&quot;?setTimeout:null,c=typeof clearTimeout==&quot;function&quot;?clearTimeout:null,d=typeof setImmediate&lt;&quot;u&quot;?setImmediate:null;typeof navigator&lt;&quot;u&quot;&amp;&amp;navigator.scheduling!==void 0&amp;&amp;navigator.scheduling.isInputPending!==void 0&amp;&amp;navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(z){for(var D=n(l);D!==null;){if(D.callback===null)i(l);else if(D.startTime&lt;=z)i(l),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(l)}}function k(z){if(E=!1,f(z),!$)if(n(s)!==null)$=!0,C(I);else{var D=n(l);D!==null&amp;&amp;j(k,D.startTime-z)}}function I(z,D){$=!1,E&amp;&amp;(E=!1,c(F),F=-1),_=!0;var R=v;try{for(f(D),p=n(s);p!==null&amp;&amp;(!(p.expirationTime&gt;D)||z&amp;&amp;!ot());){var K=p.callback;if(typeof K==&quot;function&quot;){p.callback=null,v=p.priorityLevel;var G=K(p.expirationTime&lt;=D);D=e.unstable_now(),typeof G==&quot;function&quot;?p.callback=G:p===n(s)&amp;&amp;i(s),f(D)}else i(s);p=n(s)}if(p!==null)var Qn=!0;else{var Xn=n(l);Xn!==null&amp;&amp;j(k,Xn.startTime-D),Qn=!1}return Qn}finally{p=null,v=R,_=!1}}var P=!1,L=null,F=-1,ve=5,te=-1;function ot(){return!(e.unstable_now()-te&lt;ve)}function _n(){if(L!==null){var z=e.unstable_now();te=z;var D=!0;try{D=L(!0,z)}finally{D?g():(P=!1,L=null)}}else P=!1}var g;if(typeof d==&quot;function&quot;)g=function(){d(_n)};else if(typeof MessageChannel&lt;&quot;u&quot;){var V=new MessageChannel,T=V.port2;V.port1.onmessage=_n,g=function(){T.postMessage(null)}}else g=function(){N(_n,0)};function C(z){L=z,P||(P=!0,g())}function j(z,D){F=N(function(){z(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){$||_||($=!0,C(I))},e.unstable_forceFrameRate=function(z){0&gt;z||125&lt;z?console.error(&quot;forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported&quot;):ve=0&lt;z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var D=3;break;default:D=v}var R=v;v=D;try{return z()}finally{v=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,D){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var R=v;v=z;try{return D()}finally{v=R}},e.unstable_scheduleCallback=function(z,D,R){var K=e.unstable_now();switch(typeof R==&quot;object&quot;&amp;&amp;R!==null?(R=R.delay,R=typeof R==&quot;number&quot;&amp;&amp;0&lt;R?K+R:K):R=K,z){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=R+G,z={id:m++,callback:D,priorityLevel:z,startTime:R,expirationTime:G,sortIndex:-1},R&gt;K?(z.sortIndex=R,t(l,z),n(s)===null&amp;&amp;z===n(l)&amp;&amp;(E?(c(F),F=-1):E=!0,j(k,R-K))):(z.sortIndex=G,t(s,z),$||_||($=!0,C(I))),z},e.unstable_shouldYield=ot,e.unstable_wrapCallback=function(z){var D=v;return function(){var R=v;v=D;try{return z.apply(this,arguments)}finally{v=R}}}})(Zh);Rh.exports=Zh;var lk=Rh.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ck=Pn,wt=lk;function U(e){for(var t=&quot;https://reactjs.org/docs/error-decoder.html?invariant=&quot;+e,n=1;n&lt;arguments.length;n++)t+=&quot;&amp;args[]=&quot;+encodeURIComponent(arguments[n]);return&quot;Minified React error #&quot;+e+&quot;; visit &quot;+t+&quot; for the full message or use the non-minified dev environment for full errors and additional helpful warnings.&quot;}var Lh=new Set,po={};function zr(e,t){pi(e,t),pi(e+&quot;Capture&quot;,t)}function pi(e,t){for(po[e]=t,e=0;e&lt;t.length;e++)Lh.add(t[e])}var mn=!(typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;),Xs=Object.prototype.hasOwnProperty,dk=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,wm={},$m={};function fk(e){return Xs.call($m,e)?!0:Xs.call(wm,e)?!1:dk.test(e)?$m[e]=!0:(wm[e]=!0,!1)}function mk(e,t,n,i){if(n!==null&amp;&amp;n.type===0)return!1;switch(typeof t){case&quot;function&quot;:case&quot;symbol&quot;:return!0;case&quot;boolean&quot;:return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!==&quot;data-&quot;&amp;&amp;e!==&quot;aria-&quot;);default:return!1}}function pk(e,t,n,i){if(t===null||typeof t&gt;&quot;u&quot;||mk(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1&gt;t}return!1}function it(e,t,n,i,r,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var He={};&quot;children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style&quot;.split(&quot; &quot;).forEach(function(e){He[e]=new it(e,0,!1,e,null,!1,!1)});[[&quot;acceptCharset&quot;,&quot;accept-charset&quot;],[&quot;className&quot;,&quot;class&quot;],[&quot;htmlFor&quot;,&quot;for&quot;],[&quot;httpEquiv&quot;,&quot;http-equiv&quot;]].forEach(function(e){var t=e[0];He[t]=new it(t,1,!1,e[1],null,!1,!1)});[&quot;contentEditable&quot;,&quot;draggable&quot;,&quot;spellCheck&quot;,&quot;value&quot;].forEach(function(e){He[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});[&quot;autoReverse&quot;,&quot;externalResourcesRequired&quot;,&quot;focusable&quot;,&quot;preserveAlpha&quot;].forEach(function(e){He[e]=new it(e,2,!1,e,null,!1,!1)});&quot;allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope&quot;.split(&quot; &quot;).forEach(function(e){He[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});[&quot;checked&quot;,&quot;multiple&quot;,&quot;muted&quot;,&quot;selected&quot;].forEach(function(e){He[e]=new it(e,3,!0,e,null,!1,!1)});[&quot;capture&quot;,&quot;download&quot;].forEach(function(e){He[e]=new it(e,4,!1,e,null,!1,!1)});[&quot;cols&quot;,&quot;rows&quot;,&quot;size&quot;,&quot;span&quot;].forEach(function(e){He[e]=new it(e,6,!1,e,null,!1,!1)});[&quot;rowSpan&quot;,&quot;start&quot;].forEach(function(e){He[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var Tc=/[\-:]([a-z])/g;function Pc(e){return e[1].toUpperCase()}&quot;accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(Tc,Pc);He[t]=new it(t,1,!1,e,null,!1,!1)});&quot;xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(Tc,Pc);He[t]=new it(t,1,!1,e,&quot;http://www.w3.org/1999/xlink&quot;,!1,!1)});[&quot;xml:base&quot;,&quot;xml:lang&quot;,&quot;xml:space&quot;].forEach(function(e){var t=e.replace(Tc,Pc);He[t]=new it(t,1,!1,e,&quot;http://www.w3.org/XML/1998/namespace&quot;,!1,!1)});[&quot;tabIndex&quot;,&quot;crossOrigin&quot;].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new it(&quot;xlinkHref&quot;,1,!1,&quot;xlink:href&quot;,&quot;http://www.w3.org/1999/xlink&quot;,!0,!1);[&quot;src&quot;,&quot;href&quot;,&quot;action&quot;,&quot;formAction&quot;].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function Uc(e,t,n,i){var r=He.hasOwnProperty(t)?He[t]:null;(r!==null?r.type!==0:i||!(2&lt;t.length)||t[0]!==&quot;o&quot;&amp;&amp;t[0]!==&quot;O&quot;||t[1]!==&quot;n&quot;&amp;&amp;t[1]!==&quot;N&quot;)&amp;&amp;(pk(t,n,r,i)&amp;&amp;(n=null),i||r===null?fk(t)&amp;&amp;(n===null?e.removeAttribute(t):e.setAttribute(t,&quot;&quot;+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:&quot;&quot;:n:(t=r.attributeName,i=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&amp;&amp;n===!0?&quot;&quot;:&quot;&quot;+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var yn=ck.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ra=Symbol.for(&quot;react.element&quot;),Dr=Symbol.for(&quot;react.portal&quot;),Rr=Symbol.for(&quot;react.fragment&quot;),Cc=Symbol.for(&quot;react.strict_mode&quot;),Ys=Symbol.for(&quot;react.profiler&quot;),Mh=Symbol.for(&quot;react.provider&quot;),Fh=Symbol.for(&quot;react.context&quot;),Ac=Symbol.for(&quot;react.forward_ref&quot;),qs=Symbol.for(&quot;react.suspense&quot;),el=Symbol.for(&quot;react.suspense_list&quot;),Dc=Symbol.for(&quot;react.memo&quot;),kn=Symbol.for(&quot;react.lazy&quot;),Bh=Symbol.for(&quot;react.offscreen&quot;),km=Symbol.iterator;function Ai(e){return e===null||typeof e!=&quot;object&quot;?null:(e=km&amp;&amp;e[km]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var ze=Object.assign,gs;function Ji(e){if(gs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);gs=t&amp;&amp;t[1]||&quot;&quot;}return`
`+gs+e}var ys=!1;function _s(e,t){if(!e||ys)return&quot;&quot;;ys=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,&quot;props&quot;,{set:function(){throw Error()}}),typeof Reflect==&quot;object&quot;&amp;&amp;Reflect.construct){try{Reflect.construct(t,[])}catch(l){var i=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){i=l}e.call(t.prototype)}else{try{throw Error()}catch(l){i=l}e()}}catch(l){if(l&amp;&amp;i&amp;&amp;typeof l.stack==&quot;string&quot;){for(var r=l.stack.split(`
`),o=i.stack.split(`
`),a=r.length-1,u=o.length-1;1&lt;=a&amp;&amp;0&lt;=u&amp;&amp;r[a]!==o[u];)u--;for(;1&lt;=a&amp;&amp;0&lt;=u;a--,u--)if(r[a]!==o[u]){if(a!==1||u!==1)do if(a--,u--,0&gt;u||r[a]!==o[u]){var s=`
`+r[a].replace(&quot; at new &quot;,&quot; at &quot;);return e.displayName&amp;&amp;s.includes(&quot;&lt;anonymous&gt;&quot;)&amp;&amp;(s=s.replace(&quot;&lt;anonymous&gt;&quot;,e.displayName)),s}while(1&lt;=a&amp;&amp;0&lt;=u);break}}}finally{ys=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:&quot;&quot;)?Ji(e):&quot;&quot;}function hk(e){switch(e.tag){case 5:return Ji(e.type);case 16:return Ji(&quot;Lazy&quot;);case 13:return Ji(&quot;Suspense&quot;);case 19:return Ji(&quot;SuspenseList&quot;);case 0:case 2:case 15:return e=_s(e.type,!1),e;case 11:return e=_s(e.type.render,!1),e;case 1:return e=_s(e.type,!0),e;default:return&quot;&quot;}}function tl(e){if(e==null)return null;if(typeof e==&quot;function&quot;)return e.displayName||e.name||null;if(typeof e==&quot;string&quot;)return e;switch(e){case Rr:return&quot;Fragment&quot;;case Dr:return&quot;Portal&quot;;case Ys:return&quot;Profiler&quot;;case Cc:return&quot;StrictMode&quot;;case qs:return&quot;Suspense&quot;;case el:return&quot;SuspenseList&quot;}if(typeof e==&quot;object&quot;)switch(e.$$typeof){case Fh:return(e.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case Mh:return(e._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case Ac:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||&quot;&quot;,e=e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;),e;case Dc:return t=e.displayName||null,t!==null?t:tl(e.type)||&quot;Memo&quot;;case kn:t=e._payload,e=e._init;try{return tl(e(t))}catch{}}return null}function vk(e){var t=e.type;switch(e.tag){case 24:return&quot;Cache&quot;;case 9:return(t.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case 10:return(t._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case 18:return&quot;DehydratedFragment&quot;;case 11:return e=t.render,e=e.displayName||e.name||&quot;&quot;,t.displayName||(e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;);case 7:return&quot;Fragment&quot;;case 5:return t;case 4:return&quot;Portal&quot;;case 3:return&quot;Root&quot;;case 6:return&quot;Text&quot;;case 16:return tl(t);case 8:return t===Cc?&quot;StrictMode&quot;:&quot;Mode&quot;;case 22:return&quot;Offscreen&quot;;case 12:return&quot;Profiler&quot;;case 21:return&quot;Scope&quot;;case 13:return&quot;Suspense&quot;;case 19:return&quot;SuspenseList&quot;;case 25:return&quot;TracingMarker&quot;;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==&quot;function&quot;)return t.displayName||t.name||null;if(typeof t==&quot;string&quot;)return t}return null}function Bn(e){switch(typeof e){case&quot;boolean&quot;:case&quot;number&quot;:case&quot;string&quot;:case&quot;undefined&quot;:return e;case&quot;object&quot;:return e;default:return&quot;&quot;}}function Vh(e){var t=e.type;return(e=e.nodeName)&amp;&amp;e.toLowerCase()===&quot;input&quot;&amp;&amp;(t===&quot;checkbox&quot;||t===&quot;radio&quot;)}function gk(e){var t=Vh(e)?&quot;checked&quot;:&quot;value&quot;,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=&quot;&quot;+e[t];if(!e.hasOwnProperty(t)&amp;&amp;typeof n&lt;&quot;u&quot;&amp;&amp;typeof n.get==&quot;function&quot;&amp;&amp;typeof n.set==&quot;function&quot;){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(a){i=&quot;&quot;+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(a){i=&quot;&quot;+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ia(e){e._valueTracker||(e._valueTracker=gk(e))}function Wh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i=&quot;&quot;;return e&amp;&amp;(i=Vh(e)?e.checked?&quot;true&quot;:&quot;false&quot;:e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Va(e){if(e=e||(typeof document&lt;&quot;u&quot;?document:void 0),typeof e&gt;&quot;u&quot;)return null;try{return e.activeElement||e.body}catch{return e.body}}function nl(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sm(e,t){var n=t.defaultValue==null?&quot;&quot;:t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=Bn(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type===&quot;checkbox&quot;||t.type===&quot;radio&quot;?t.checked!=null:t.value!=null}}function Jh(e,t){t=t.checked,t!=null&amp;&amp;Uc(e,&quot;checked&quot;,t,!1)}function rl(e,t){Jh(e,t);var n=Bn(t.value),i=t.type;if(n!=null)i===&quot;number&quot;?(n===0&amp;&amp;e.value===&quot;&quot;||e.value!=n)&amp;&amp;(e.value=&quot;&quot;+n):e.value!==&quot;&quot;+n&amp;&amp;(e.value=&quot;&quot;+n);else if(i===&quot;submit&quot;||i===&quot;reset&quot;){e.removeAttribute(&quot;value&quot;);return}t.hasOwnProperty(&quot;value&quot;)?il(e,t.type,n):t.hasOwnProperty(&quot;defaultValue&quot;)&amp;&amp;il(e,t.type,Bn(t.defaultValue)),t.checked==null&amp;&amp;t.defaultChecked!=null&amp;&amp;(e.defaultChecked=!!t.defaultChecked)}function xm(e,t,n){if(t.hasOwnProperty(&quot;value&quot;)||t.hasOwnProperty(&quot;defaultValue&quot;)){var i=t.type;if(!(i!==&quot;submit&quot;&amp;&amp;i!==&quot;reset&quot;||t.value!==void 0&amp;&amp;t.value!==null))return;t=&quot;&quot;+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==&quot;&quot;&amp;&amp;(e.name=&quot;&quot;),e.defaultChecked=!!e._wrapperState.initialChecked,n!==&quot;&quot;&amp;&amp;(e.name=n)}function il(e,t,n){(t!==&quot;number&quot;||Va(e.ownerDocument)!==e)&amp;&amp;(n==null?e.defaultValue=&quot;&quot;+e._wrapperState.initialValue:e.defaultValue!==&quot;&quot;+n&amp;&amp;(e.defaultValue=&quot;&quot;+n))}var Ki=Array.isArray;function qr(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r&lt;n.length;r++)t[&quot;$&quot;+n[r]]=!0;for(n=0;n&lt;e.length;n++)r=t.hasOwnProperty(&quot;$&quot;+e[n].value),e[n].selected!==r&amp;&amp;(e[n].selected=r),r&amp;&amp;i&amp;&amp;(e[n].defaultSelected=!0)}else{for(n=&quot;&quot;+Bn(n),t=null,r=0;r&lt;e.length;r++){if(e[r].value===n){e[r].selected=!0,i&amp;&amp;(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&amp;&amp;(t.selected=!0)}}function ol(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return ze({},t,{value:void 0,defaultValue:void 0,children:&quot;&quot;+e._wrapperState.initialValue})}function bm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(U(92));if(Ki(n)){if(1&lt;n.length)throw Error(U(93));n=n[0]}t=n}t==null&amp;&amp;(t=&quot;&quot;),n=t}e._wrapperState={initialValue:Bn(n)}}function Kh(e,t){var n=Bn(t.value),i=Bn(t.defaultValue);n!=null&amp;&amp;(n=&quot;&quot;+n,n!==e.value&amp;&amp;(e.value=n),t.defaultValue==null&amp;&amp;e.defaultValue!==n&amp;&amp;(e.defaultValue=n)),i!=null&amp;&amp;(e.defaultValue=&quot;&quot;+i)}function Im(e){var t=e.textContent;t===e._wrapperState.initialValue&amp;&amp;t!==&quot;&quot;&amp;&amp;t!==null&amp;&amp;(e.value=t)}function Hh(e){switch(e){case&quot;svg&quot;:return&quot;http://www.w3.org/2000/svg&quot;;case&quot;math&quot;:return&quot;http://www.w3.org/1998/Math/MathML&quot;;default:return&quot;http://www.w3.org/1999/xhtml&quot;}}function al(e,t){return e==null||e===&quot;http://www.w3.org/1999/xhtml&quot;?Hh(t):e===&quot;http://www.w3.org/2000/svg&quot;&amp;&amp;t===&quot;foreignObject&quot;?&quot;http://www.w3.org/1999/xhtml&quot;:e}var oa,Gh=function(e){return typeof MSApp&lt;&quot;u&quot;&amp;&amp;MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,r)})}:e}(function(e,t){if(e.namespaceURI!==&quot;http://www.w3.org/2000/svg&quot;||&quot;innerHTML&quot;in e)e.innerHTML=t;else{for(oa=oa||document.createElement(&quot;div&quot;),oa.innerHTML=&quot;&lt;svg&gt;&quot;+t.valueOf().toString()+&quot;&lt;/svg&gt;&quot;,t=oa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ho(e,t){if(t){var n=e.firstChild;if(n&amp;&amp;n===e.lastChild&amp;&amp;n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var no={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yk=[&quot;Webkit&quot;,&quot;ms&quot;,&quot;Moz&quot;,&quot;O&quot;];Object.keys(no).forEach(function(e){yk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),no[t]=no[e]})});function Qh(e,t,n){return t==null||typeof t==&quot;boolean&quot;||t===&quot;&quot;?&quot;&quot;:n||typeof t!=&quot;number&quot;||t===0||no.hasOwnProperty(e)&amp;&amp;no[e]?(&quot;&quot;+t).trim():t+&quot;px&quot;}function Xh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf(&quot;--&quot;)===0,r=Qh(n,t[n],i);n===&quot;float&quot;&amp;&amp;(n=&quot;cssFloat&quot;),i?e.setProperty(n,r):e[n]=r}}var _k=ze({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ul(e,t){if(t){if(_k[e]&amp;&amp;(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!=&quot;object&quot;||!(&quot;__html&quot;in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&amp;&amp;typeof t.style!=&quot;object&quot;)throw Error(U(62))}}function sl(e,t){if(e.indexOf(&quot;-&quot;)===-1)return typeof t.is==&quot;string&quot;;switch(e){case&quot;annotation-xml&quot;:case&quot;color-profile&quot;:case&quot;font-face&quot;:case&quot;font-face-src&quot;:case&quot;font-face-uri&quot;:case&quot;font-face-format&quot;:case&quot;font-face-name&quot;:case&quot;missing-glyph&quot;:return!1;default:return!0}}var ll=null;function Rc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&amp;&amp;(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cl=null,ei=null,ti=null;function zm(e){if(e=Ho(e)){if(typeof cl!=&quot;function&quot;)throw Error(U(280));var t=e.stateNode;t&amp;&amp;(t=Zu(t),cl(e.stateNode,e.type,t))}}function Yh(e){ei?ti?ti.push(e):ti=[e]:ei=e}function qh(){if(ei){var e=ei,t=ti;if(ti=ei=null,zm(e),t)for(e=0;e&lt;t.length;e++)zm(t[e])}}function ev(e,t){return e(t)}function tv(){}var ws=!1;function nv(e,t,n){if(ws)return e(t,n);ws=!0;try{return ev(e,t,n)}finally{ws=!1,(ei!==null||ti!==null)&amp;&amp;(tv(),qh())}}function vo(e,t){var n=e.stateNode;if(n===null)return null;var i=Zu(n);if(i===null)return null;n=i[t];e:switch(t){case&quot;onClick&quot;:case&quot;onClickCapture&quot;:case&quot;onDoubleClick&quot;:case&quot;onDoubleClickCapture&quot;:case&quot;onMouseDown&quot;:case&quot;onMouseDownCapture&quot;:case&quot;onMouseMove&quot;:case&quot;onMouseMoveCapture&quot;:case&quot;onMouseUp&quot;:case&quot;onMouseUpCapture&quot;:case&quot;onMouseEnter&quot;:(i=!i.disabled)||(e=e.type,i=!(e===&quot;button&quot;||e===&quot;input&quot;||e===&quot;select&quot;||e===&quot;textarea&quot;)),e=!i;break e;default:e=!1}if(e)return null;if(n&amp;&amp;typeof n!=&quot;function&quot;)throw Error(U(231,t,typeof n));return n}var dl=!1;if(mn)try{var Di={};Object.defineProperty(Di,&quot;passive&quot;,{get:function(){dl=!0}}),window.addEventListener(&quot;test&quot;,Di,Di),window.removeEventListener(&quot;test&quot;,Di,Di)}catch{dl=!1}function wk(e,t,n,i,r,o,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(m){this.onError(m)}}var ro=!1,Wa=null,Ja=!1,fl=null,$k={onError:function(e){ro=!0,Wa=e}};function kk(e,t,n,i,r,o,a,u,s){ro=!1,Wa=null,wk.apply($k,arguments)}function Sk(e,t,n,i,r,o,a,u,s){if(kk.apply(this,arguments),ro){if(ro){var l=Wa;ro=!1,Wa=null}else throw Error(U(198));Ja||(Ja=!0,fl=l)}}function Or(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&amp;4098&amp;&amp;(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function rv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&amp;&amp;(e=e.alternate,e!==null&amp;&amp;(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Om(e){if(Or(e)!==e)throw Error(U(188))}function xk(e){var t=e.alternate;if(!t){if(t=Or(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return Om(r),e;if(o===i)return Om(r),t;o=o.sibling}throw Error(U(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,u=r.child;u;){if(u===n){a=!0,n=r,i=o;break}if(u===i){a=!0,i=r,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,i=r;break}if(u===i){a=!0,i=o,n=r;break}u=u.sibling}if(!a)throw Error(U(189))}}if(n.alternate!==i)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function iv(e){return e=xk(e),e!==null?ov(e):null}function ov(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ov(e);if(t!==null)return t;e=e.sibling}return null}var av=wt.unstable_scheduleCallback,Em=wt.unstable_cancelCallback,bk=wt.unstable_shouldYield,Ik=wt.unstable_requestPaint,je=wt.unstable_now,zk=wt.unstable_getCurrentPriorityLevel,Zc=wt.unstable_ImmediatePriority,uv=wt.unstable_UserBlockingPriority,Ka=wt.unstable_NormalPriority,Ok=wt.unstable_LowPriority,sv=wt.unstable_IdlePriority,Cu=null,en=null;function Ek(e){if(en&amp;&amp;typeof en.onCommitFiberRoot==&quot;function&quot;)try{en.onCommitFiberRoot(Cu,e,void 0,(e.current.flags&amp;128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:Tk,Nk=Math.log,jk=Math.LN2;function Tk(e){return e&gt;&gt;&gt;=0,e===0?32:31-(Nk(e)/jk|0)|0}var aa=64,ua=4194304;function Hi(e){switch(e&amp;-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&amp;4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&amp;130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ha(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,a=n&amp;268435455;if(a!==0){var u=a&amp;~r;u!==0?i=Hi(u):(o&amp;=a,o!==0&amp;&amp;(i=Hi(o)))}else a=n&amp;~r,a!==0?i=Hi(a):o!==0&amp;&amp;(i=Hi(o));if(i===0)return 0;if(t!==0&amp;&amp;t!==i&amp;&amp;!(t&amp;r)&amp;&amp;(r=i&amp;-i,o=t&amp;-t,r&gt;=o||r===16&amp;&amp;(o&amp;4194240)!==0))return t;if(i&amp;4&amp;&amp;(i|=n&amp;16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&amp;=i;0&lt;t;)n=31-Ft(t),r=1&lt;&lt;n,i|=e[n],t&amp;=~r;return i}function Pk(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Uk(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0&lt;o;){var a=31-Ft(o),u=1&lt;&lt;a,s=r[a];s===-1?(!(u&amp;n)||u&amp;i)&amp;&amp;(r[a]=Pk(u,t)):s&lt;=t&amp;&amp;(e.expiredLanes|=u),o&amp;=~u}}function ml(e){return e=e.pendingLanes&amp;-1073741825,e!==0?e:e&amp;1073741824?1073741824:0}function lv(){var e=aa;return aa&lt;&lt;=1,!(aa&amp;4194240)&amp;&amp;(aa=64),e}function $s(e){for(var t=[],n=0;31&gt;n;n++)t.push(e);return t}function Jo(e,t,n){e.pendingLanes|=t,t!==536870912&amp;&amp;(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function Ck(e,t){var n=e.pendingLanes&amp;~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&amp;=t,e.mutableReadLanes&amp;=t,e.entangledLanes&amp;=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0&lt;n;){var r=31-Ft(n),o=1&lt;&lt;r;t[r]=0,i[r]=-1,e[r]=-1,n&amp;=~o}}function Lc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Ft(n),r=1&lt;&lt;i;r&amp;t|e[i]&amp;t&amp;&amp;(e[i]|=t),n&amp;=~r}}var he=0;function cv(e){return e&amp;=-e,1&lt;e?4&lt;e?e&amp;268435455?16:536870912:4:1}var dv,Mc,fv,mv,pv,pl=!1,sa=[],Un=null,Cn=null,An=null,go=new Map,yo=new Map,bn=[],Ak=&quot;mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit&quot;.split(&quot; &quot;);function Nm(e,t){switch(e){case&quot;focusin&quot;:case&quot;focusout&quot;:Un=null;break;case&quot;dragenter&quot;:case&quot;dragleave&quot;:Cn=null;break;case&quot;mouseover&quot;:case&quot;mouseout&quot;:An=null;break;case&quot;pointerover&quot;:case&quot;pointerout&quot;:go.delete(t.pointerId);break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:yo.delete(t.pointerId)}}function Ri(e,t,n,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&amp;&amp;(t=Ho(t),t!==null&amp;&amp;Mc(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&amp;&amp;t.indexOf(r)===-1&amp;&amp;t.push(r),e)}function Dk(e,t,n,i,r){switch(t){case&quot;focusin&quot;:return Un=Ri(Un,e,t,n,i,r),!0;case&quot;dragenter&quot;:return Cn=Ri(Cn,e,t,n,i,r),!0;case&quot;mouseover&quot;:return An=Ri(An,e,t,n,i,r),!0;case&quot;pointerover&quot;:var o=r.pointerId;return go.set(o,Ri(go.get(o)||null,e,t,n,i,r)),!0;case&quot;gotpointercapture&quot;:return o=r.pointerId,yo.set(o,Ri(yo.get(o)||null,e,t,n,i,r)),!0}return!1}function hv(e){var t=or(e.target);if(t!==null){var n=Or(t);if(n!==null){if(t=n.tag,t===13){if(t=rv(n),t!==null){e.blockedOn=t,pv(e.priority,function(){fv(n)});return}}else if(t===3&amp;&amp;n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function za(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0&lt;t.length;){var n=hl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);ll=i,n.target.dispatchEvent(i),ll=null}else return t=Ho(n),t!==null&amp;&amp;Mc(t),e.blockedOn=n,!1;t.shift()}return!0}function jm(e,t,n){za(e)&amp;&amp;n.delete(t)}function Rk(){pl=!1,Un!==null&amp;&amp;za(Un)&amp;&amp;(Un=null),Cn!==null&amp;&amp;za(Cn)&amp;&amp;(Cn=null),An!==null&amp;&amp;za(An)&amp;&amp;(An=null),go.forEach(jm),yo.forEach(jm)}function Zi(e,t){e.blockedOn===t&amp;&amp;(e.blockedOn=null,pl||(pl=!0,wt.unstable_scheduleCallback(wt.unstable_NormalPriority,Rk)))}function _o(e){function t(r){return Zi(r,e)}if(0&lt;sa.length){Zi(sa[0],e);for(var n=1;n&lt;sa.length;n++){var i=sa[n];i.blockedOn===e&amp;&amp;(i.blockedOn=null)}}for(Un!==null&amp;&amp;Zi(Un,e),Cn!==null&amp;&amp;Zi(Cn,e),An!==null&amp;&amp;Zi(An,e),go.forEach(t),yo.forEach(t),n=0;n&lt;bn.length;n++)i=bn[n],i.blockedOn===e&amp;&amp;(i.blockedOn=null);for(;0&lt;bn.length&amp;&amp;(n=bn[0],n.blockedOn===null);)hv(n),n.blockedOn===null&amp;&amp;bn.shift()}var ni=yn.ReactCurrentBatchConfig,Ga=!0;function Zk(e,t,n,i){var r=he,o=ni.transition;ni.transition=null;try{he=1,Fc(e,t,n,i)}finally{he=r,ni.transition=o}}function Lk(e,t,n,i){var r=he,o=ni.transition;ni.transition=null;try{he=4,Fc(e,t,n,i)}finally{he=r,ni.transition=o}}function Fc(e,t,n,i){if(Ga){var r=hl(e,t,n,i);if(r===null)js(e,t,i,Qa,n),Nm(e,i);else if(Dk(r,e,t,n,i))i.stopPropagation();else if(Nm(e,i),t&amp;4&amp;&amp;-1&lt;Ak.indexOf(e)){for(;r!==null;){var o=Ho(r);if(o!==null&amp;&amp;dv(o),o=hl(e,t,n,i),o===null&amp;&amp;js(e,t,i,Qa,n),o===r)break;r=o}r!==null&amp;&amp;i.stopPropagation()}else js(e,t,i,null,n)}}var Qa=null;function hl(e,t,n,i){if(Qa=null,e=Rc(i),e=or(e),e!==null)if(t=Or(e),t===null)e=null;else if(n=t.tag,n===13){if(e=rv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&amp;&amp;(e=null);return Qa=e,null}function vv(e){switch(e){case&quot;cancel&quot;:case&quot;click&quot;:case&quot;close&quot;:case&quot;contextmenu&quot;:case&quot;copy&quot;:case&quot;cut&quot;:case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;dragend&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:case&quot;focusin&quot;:case&quot;focusout&quot;:case&quot;input&quot;:case&quot;invalid&quot;:case&quot;keydown&quot;:case&quot;keypress&quot;:case&quot;keyup&quot;:case&quot;mousedown&quot;:case&quot;mouseup&quot;:case&quot;paste&quot;:case&quot;pause&quot;:case&quot;play&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointerup&quot;:case&quot;ratechange&quot;:case&quot;reset&quot;:case&quot;resize&quot;:case&quot;seeked&quot;:case&quot;submit&quot;:case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchstart&quot;:case&quot;volumechange&quot;:case&quot;change&quot;:case&quot;selectionchange&quot;:case&quot;textInput&quot;:case&quot;compositionstart&quot;:case&quot;compositionend&quot;:case&quot;compositionupdate&quot;:case&quot;beforeblur&quot;:case&quot;afterblur&quot;:case&quot;beforeinput&quot;:case&quot;blur&quot;:case&quot;fullscreenchange&quot;:case&quot;focus&quot;:case&quot;hashchange&quot;:case&quot;popstate&quot;:case&quot;select&quot;:case&quot;selectstart&quot;:return 1;case&quot;drag&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;mousemove&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;scroll&quot;:case&quot;toggle&quot;:case&quot;touchmove&quot;:case&quot;wheel&quot;:case&quot;mouseenter&quot;:case&quot;mouseleave&quot;:case&quot;pointerenter&quot;:case&quot;pointerleave&quot;:return 4;case&quot;message&quot;:switch(zk()){case Zc:return 1;case uv:return 4;case Ka:case Ok:return 16;case sv:return 536870912;default:return 16}default:return 16}}var jn=null,Bc=null,Oa=null;function gv(){if(Oa)return Oa;var e,t=Bc,n=t.length,i,r=&quot;value&quot;in jn?jn.value:jn.textContent,o=r.length;for(e=0;e&lt;n&amp;&amp;t[e]===r[e];e++);var a=n-e;for(i=1;i&lt;=a&amp;&amp;t[n-i]===r[o-i];i++);return Oa=r.slice(e,1&lt;i?1-i:void 0)}function Ea(e){var t=e.keyCode;return&quot;charCode&quot;in e?(e=e.charCode,e===0&amp;&amp;t===13&amp;&amp;(e=13)):e=t,e===10&amp;&amp;(e=13),32&lt;=e||e===13?e:0}function la(){return!0}function Tm(){return!1}function St(e){function t(n,i,r,o,a){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&amp;&amp;(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?la:Tm,this.isPropagationStopped=Tm,this}return ze(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&amp;&amp;(n.preventDefault?n.preventDefault():typeof n.returnValue!=&quot;unknown&quot;&amp;&amp;(n.returnValue=!1),this.isDefaultPrevented=la)},stopPropagation:function(){var n=this.nativeEvent;n&amp;&amp;(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=&quot;unknown&quot;&amp;&amp;(n.cancelBubble=!0),this.isPropagationStopped=la)},persist:function(){},isPersistent:la}),t}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vc=St(ji),Ko=ze({},ji,{view:0,detail:0}),Mk=St(Ko),ks,Ss,Li,Au=ze({},Ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return&quot;movementX&quot;in e?e.movementX:(e!==Li&amp;&amp;(Li&amp;&amp;e.type===&quot;mousemove&quot;?(ks=e.screenX-Li.screenX,Ss=e.screenY-Li.screenY):Ss=ks=0,Li=e),ks)},movementY:function(e){return&quot;movementY&quot;in e?e.movementY:Ss}}),Pm=St(Au),Fk=ze({},Au,{dataTransfer:0}),Bk=St(Fk),Vk=ze({},Ko,{relatedTarget:0}),xs=St(Vk),Wk=ze({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),Jk=St(Wk),Kk=ze({},ji,{clipboardData:function(e){return&quot;clipboardData&quot;in e?e.clipboardData:window.clipboardData}}),Hk=St(Kk),Gk=ze({},ji,{data:0}),Um=St(Gk),Qk={Esc:&quot;Escape&quot;,Spacebar:&quot; &quot;,Left:&quot;ArrowLeft&quot;,Up:&quot;ArrowUp&quot;,Right:&quot;ArrowRight&quot;,Down:&quot;ArrowDown&quot;,Del:&quot;Delete&quot;,Win:&quot;OS&quot;,Menu:&quot;ContextMenu&quot;,Apps:&quot;ContextMenu&quot;,Scroll:&quot;ScrollLock&quot;,MozPrintableKey:&quot;Unidentified&quot;},Xk={8:&quot;Backspace&quot;,9:&quot;Tab&quot;,12:&quot;Clear&quot;,13:&quot;Enter&quot;,16:&quot;Shift&quot;,17:&quot;Control&quot;,18:&quot;Alt&quot;,19:&quot;Pause&quot;,20:&quot;CapsLock&quot;,27:&quot;Escape&quot;,32:&quot; &quot;,33:&quot;PageUp&quot;,34:&quot;PageDown&quot;,35:&quot;End&quot;,36:&quot;Home&quot;,37:&quot;ArrowLeft&quot;,38:&quot;ArrowUp&quot;,39:&quot;ArrowRight&quot;,40:&quot;ArrowDown&quot;,45:&quot;Insert&quot;,46:&quot;Delete&quot;,112:&quot;F1&quot;,113:&quot;F2&quot;,114:&quot;F3&quot;,115:&quot;F4&quot;,116:&quot;F5&quot;,117:&quot;F6&quot;,118:&quot;F7&quot;,119:&quot;F8&quot;,120:&quot;F9&quot;,121:&quot;F10&quot;,122:&quot;F11&quot;,123:&quot;F12&quot;,144:&quot;NumLock&quot;,145:&quot;ScrollLock&quot;,224:&quot;Meta&quot;},Yk={Alt:&quot;altKey&quot;,Control:&quot;ctrlKey&quot;,Meta:&quot;metaKey&quot;,Shift:&quot;shiftKey&quot;};function qk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yk[e])?!!t[e]:!1}function Wc(){return qk}var e1=ze({},Ko,{key:function(e){if(e.key){var t=Qk[e.key]||e.key;if(t!==&quot;Unidentified&quot;)return t}return e.type===&quot;keypress&quot;?(e=Ea(e),e===13?&quot;Enter&quot;:String.fromCharCode(e)):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?Xk[e.keyCode]||&quot;Unidentified&quot;:&quot;&quot;},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wc,charCode:function(e){return e.type===&quot;keypress&quot;?Ea(e):0},keyCode:function(e){return e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0},which:function(e){return e.type===&quot;keypress&quot;?Ea(e):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0}}),t1=St(e1),n1=ze({},Au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cm=St(n1),r1=ze({},Ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wc}),i1=St(r1),o1=ze({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),a1=St(o1),u1=ze({},Au,{deltaX:function(e){return&quot;deltaX&quot;in e?e.deltaX:&quot;wheelDeltaX&quot;in e?-e.wheelDeltaX:0},deltaY:function(e){return&quot;deltaY&quot;in e?e.deltaY:&quot;wheelDeltaY&quot;in e?-e.wheelDeltaY:&quot;wheelDelta&quot;in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),s1=St(u1),l1=[9,13,27,32],Jc=mn&amp;&amp;&quot;CompositionEvent&quot;in window,io=null;mn&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;(io=document.documentMode);var c1=mn&amp;&amp;&quot;TextEvent&quot;in window&amp;&amp;!io,yv=mn&amp;&amp;(!Jc||io&amp;&amp;8&lt;io&amp;&amp;11&gt;=io),Am=&quot; &quot;,Dm=!1;function _v(e,t){switch(e){case&quot;keyup&quot;:return l1.indexOf(t.keyCode)!==-1;case&quot;keydown&quot;:return t.keyCode!==229;case&quot;keypress&quot;:case&quot;mousedown&quot;:case&quot;focusout&quot;:return!0;default:return!1}}function wv(e){return e=e.detail,typeof e==&quot;object&quot;&amp;&amp;&quot;data&quot;in e?e.data:null}var Zr=!1;function d1(e,t){switch(e){case&quot;compositionend&quot;:return wv(t);case&quot;keypress&quot;:return t.which!==32?null:(Dm=!0,Am);case&quot;textInput&quot;:return e=t.data,e===Am&amp;&amp;Dm?null:e;default:return null}}function f1(e,t){if(Zr)return e===&quot;compositionend&quot;||!Jc&amp;&amp;_v(e,t)?(e=gv(),Oa=Bc=jn=null,Zr=!1,e):null;switch(e){case&quot;paste&quot;:return null;case&quot;keypress&quot;:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&amp;&amp;t.altKey){if(t.char&amp;&amp;1&lt;t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case&quot;compositionend&quot;:return yv&amp;&amp;t.locale!==&quot;ko&quot;?null:t.data;default:return null}}var m1={color:!0,date:!0,datetime:!0,&quot;datetime-local&quot;:!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rm(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t===&quot;input&quot;?!!m1[e.type]:t===&quot;textarea&quot;}function $v(e,t,n,i){Yh(i),t=Xa(t,&quot;onChange&quot;),0&lt;t.length&amp;&amp;(n=new Vc(&quot;onChange&quot;,&quot;change&quot;,null,n,i),e.push({event:n,listeners:t}))}var oo=null,wo=null;function p1(e){Tv(e,0)}function Du(e){var t=Fr(e);if(Wh(t))return e}function h1(e,t){if(e===&quot;change&quot;)return t}var kv=!1;if(mn){var bs;if(mn){var Is=&quot;oninput&quot;in document;if(!Is){var Zm=document.createElement(&quot;div&quot;);Zm.setAttribute(&quot;oninput&quot;,&quot;return;&quot;),Is=typeof Zm.oninput==&quot;function&quot;}bs=Is}else bs=!1;kv=bs&amp;&amp;(!document.documentMode||9&lt;document.documentMode)}function Lm(){oo&amp;&amp;(oo.detachEvent(&quot;onpropertychange&quot;,Sv),wo=oo=null)}function Sv(e){if(e.propertyName===&quot;value&quot;&amp;&amp;Du(wo)){var t=[];$v(t,wo,e,Rc(e)),nv(p1,t)}}function v1(e,t,n){e===&quot;focusin&quot;?(Lm(),oo=t,wo=n,oo.attachEvent(&quot;onpropertychange&quot;,Sv)):e===&quot;focusout&quot;&amp;&amp;Lm()}function g1(e){if(e===&quot;selectionchange&quot;||e===&quot;keyup&quot;||e===&quot;keydown&quot;)return Du(wo)}function y1(e,t){if(e===&quot;click&quot;)return Du(t)}function _1(e,t){if(e===&quot;input&quot;||e===&quot;change&quot;)return Du(t)}function w1(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Wt=typeof Object.is==&quot;function&quot;?Object.is:w1;function $o(e,t){if(Wt(e,t))return!0;if(typeof e!=&quot;object&quot;||e===null||typeof t!=&quot;object&quot;||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i&lt;n.length;i++){var r=n[i];if(!Xs.call(t,r)||!Wt(e[r],t[r]))return!1}return!0}function Mm(e){for(;e&amp;&amp;e.firstChild;)e=e.firstChild;return e}function Fm(e,t){var n=Mm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e&lt;=t&amp;&amp;i&gt;=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mm(n)}}function xv(e,t){return e&amp;&amp;t?e===t?!0:e&amp;&amp;e.nodeType===3?!1:t&amp;&amp;t.nodeType===3?xv(e,t.parentNode):&quot;contains&quot;in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&amp;16):!1:!1}function bv(){for(var e=window,t=Va();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==&quot;string&quot;}catch{n=!1}if(n)e=t.contentWindow;else break;t=Va(e.document)}return t}function Kc(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t&amp;&amp;(t===&quot;input&quot;&amp;&amp;(e.type===&quot;text&quot;||e.type===&quot;search&quot;||e.type===&quot;tel&quot;||e.type===&quot;url&quot;||e.type===&quot;password&quot;)||t===&quot;textarea&quot;||e.contentEditable===&quot;true&quot;)}function $1(e){var t=bv(),n=e.focusedElem,i=e.selectionRange;if(t!==n&amp;&amp;n&amp;&amp;n.ownerDocument&amp;&amp;xv(n.ownerDocument.documentElement,n)){if(i!==null&amp;&amp;Kc(n)){if(t=i.start,e=i.end,e===void 0&amp;&amp;(e=t),&quot;selectionStart&quot;in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&amp;&amp;t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!e.extend&amp;&amp;o&gt;i&amp;&amp;(r=i,i=o,o=r),r=Fm(n,o);var a=Fm(n,i);r&amp;&amp;a&amp;&amp;(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&amp;&amp;(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o&gt;i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&amp;&amp;t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==&quot;function&quot;&amp;&amp;n.focus(),n=0;n&lt;t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var k1=mn&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;11&gt;=document.documentMode,Lr=null,vl=null,ao=null,gl=!1;function Bm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gl||Lr==null||Lr!==Va(i)||(i=Lr,&quot;selectionStart&quot;in i&amp;&amp;Kc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&amp;&amp;i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ao&amp;&amp;$o(ao,i)||(ao=i,i=Xa(vl,&quot;onSelect&quot;),0&lt;i.length&amp;&amp;(t=new Vc(&quot;onSelect&quot;,&quot;select&quot;,null,t,n),e.push({event:t,listeners:i}),t.target=Lr)))}function ca(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[&quot;Webkit&quot;+e]=&quot;webkit&quot;+t,n[&quot;Moz&quot;+e]=&quot;moz&quot;+t,n}var Mr={animationend:ca(&quot;Animation&quot;,&quot;AnimationEnd&quot;),animationiteration:ca(&quot;Animation&quot;,&quot;AnimationIteration&quot;),animationstart:ca(&quot;Animation&quot;,&quot;AnimationStart&quot;),transitionend:ca(&quot;Transition&quot;,&quot;TransitionEnd&quot;)},zs={},Iv={};mn&amp;&amp;(Iv=document.createElement(&quot;div&quot;).style,&quot;AnimationEvent&quot;in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),&quot;TransitionEvent&quot;in window||delete Mr.transitionend.transition);function Ru(e){if(zs[e])return zs[e];if(!Mr[e])return e;var t=Mr[e],n;for(n in t)if(t.hasOwnProperty(n)&amp;&amp;n in Iv)return zs[e]=t[n];return e}var zv=Ru(&quot;animationend&quot;),Ov=Ru(&quot;animationiteration&quot;),Ev=Ru(&quot;animationstart&quot;),Nv=Ru(&quot;transitionend&quot;),jv=new Map,Vm=&quot;abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel&quot;.split(&quot; &quot;);function Kn(e,t){jv.set(e,t),zr(t,[e])}for(var Os=0;Os&lt;Vm.length;Os++){var Es=Vm[Os],S1=Es.toLowerCase(),x1=Es[0].toUpperCase()+Es.slice(1);Kn(S1,&quot;on&quot;+x1)}Kn(zv,&quot;onAnimationEnd&quot;);Kn(Ov,&quot;onAnimationIteration&quot;);Kn(Ev,&quot;onAnimationStart&quot;);Kn(&quot;dblclick&quot;,&quot;onDoubleClick&quot;);Kn(&quot;focusin&quot;,&quot;onFocus&quot;);Kn(&quot;focusout&quot;,&quot;onBlur&quot;);Kn(Nv,&quot;onTransitionEnd&quot;);pi(&quot;onMouseEnter&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);pi(&quot;onMouseLeave&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);pi(&quot;onPointerEnter&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);pi(&quot;onPointerLeave&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);zr(&quot;onChange&quot;,&quot;change click focusin focusout input keydown keyup selectionchange&quot;.split(&quot; &quot;));zr(&quot;onSelect&quot;,&quot;focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange&quot;.split(&quot; &quot;));zr(&quot;onBeforeInput&quot;,[&quot;compositionend&quot;,&quot;keypress&quot;,&quot;textInput&quot;,&quot;paste&quot;]);zr(&quot;onCompositionEnd&quot;,&quot;compositionend focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));zr(&quot;onCompositionStart&quot;,&quot;compositionstart focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));zr(&quot;onCompositionUpdate&quot;,&quot;compositionupdate focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));var Gi=&quot;abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting&quot;.split(&quot; &quot;),b1=new Set(&quot;cancel close invalid load scroll toggle&quot;.split(&quot; &quot;).concat(Gi));function Wm(e,t,n){var i=e.type||&quot;unknown-event&quot;;e.currentTarget=n,Sk(i,t,void 0,e),e.currentTarget=null}function Tv(e,t){t=(t&amp;4)!==0;for(var n=0;n&lt;e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var a=i.length-1;0&lt;=a;a--){var u=i[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==o&amp;&amp;r.isPropagationStopped())break e;Wm(r,u,l),o=s}else for(a=0;a&lt;i.length;a++){if(u=i[a],s=u.instance,l=u.currentTarget,u=u.listener,s!==o&amp;&amp;r.isPropagationStopped())break e;Wm(r,u,l),o=s}}}if(Ja)throw e=fl,Ja=!1,fl=null,e}function _e(e,t){var n=t[kl];n===void 0&amp;&amp;(n=t[kl]=new Set);var i=e+&quot;__bubble&quot;;n.has(i)||(Pv(t,e,2,!1),n.add(i))}function Ns(e,t,n){var i=0;t&amp;&amp;(i|=4),Pv(n,e,i,t)}var da=&quot;_reactListening&quot;+Math.random().toString(36).slice(2);function ko(e){if(!e[da]){e[da]=!0,Lh.forEach(function(n){n!==&quot;selectionchange&quot;&amp;&amp;(b1.has(n)||Ns(n,!1,e),Ns(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[da]||(t[da]=!0,Ns(&quot;selectionchange&quot;,!1,t))}}function Pv(e,t,n,i){switch(vv(t)){case 1:var r=Zk;break;case 4:r=Lk;break;default:r=Fc}n=r.bind(null,t,n,e),r=void 0,!dl||t!==&quot;touchstart&quot;&amp;&amp;t!==&quot;touchmove&quot;&amp;&amp;t!==&quot;wheel&quot;||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function js(e,t,n,i,r){var o=i;if(!(t&amp;1)&amp;&amp;!(t&amp;2)&amp;&amp;i!==null)e:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var u=i.stateNode.containerInfo;if(u===r||u.nodeType===8&amp;&amp;u.parentNode===r)break;if(a===4)for(a=i.return;a!==null;){var s=a.tag;if((s===3||s===4)&amp;&amp;(s=a.stateNode.containerInfo,s===r||s.nodeType===8&amp;&amp;s.parentNode===r))return;a=a.return}for(;u!==null;){if(a=or(u),a===null)return;if(s=a.tag,s===5||s===6){i=o=a;continue e}u=u.parentNode}}i=i.return}nv(function(){var l=o,m=Rc(n),p=[];e:{var v=jv.get(e);if(v!==void 0){var _=Vc,$=e;switch(e){case&quot;keypress&quot;:if(Ea(n)===0)break e;case&quot;keydown&quot;:case&quot;keyup&quot;:_=t1;break;case&quot;focusin&quot;:$=&quot;focus&quot;,_=xs;break;case&quot;focusout&quot;:$=&quot;blur&quot;,_=xs;break;case&quot;beforeblur&quot;:case&quot;afterblur&quot;:_=xs;break;case&quot;click&quot;:if(n.button===2)break e;case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;mousedown&quot;:case&quot;mousemove&quot;:case&quot;mouseup&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;contextmenu&quot;:_=Pm;break;case&quot;drag&quot;:case&quot;dragend&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:_=Bk;break;case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchmove&quot;:case&quot;touchstart&quot;:_=i1;break;case zv:case Ov:case Ev:_=Jk;break;case Nv:_=a1;break;case&quot;scroll&quot;:_=Mk;break;case&quot;wheel&quot;:_=s1;break;case&quot;copy&quot;:case&quot;cut&quot;:case&quot;paste&quot;:_=Hk;break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;pointerup&quot;:_=Cm}var E=(t&amp;4)!==0,N=!E&amp;&amp;e===&quot;scroll&quot;,c=E?v!==null?v+&quot;Capture&quot;:null:v;E=[];for(var d=l,f;d!==null;){f=d;var k=f.stateNode;if(f.tag===5&amp;&amp;k!==null&amp;&amp;(f=k,c!==null&amp;&amp;(k=vo(d,c),k!=null&amp;&amp;E.push(So(d,k,f)))),N)break;d=d.return}0&lt;E.length&amp;&amp;(v=new _(v,$,null,n,m),p.push({event:v,listeners:E}))}}if(!(t&amp;7)){e:{if(v=e===&quot;mouseover&quot;||e===&quot;pointerover&quot;,_=e===&quot;mouseout&quot;||e===&quot;pointerout&quot;,v&amp;&amp;n!==ll&amp;&amp;($=n.relatedTarget||n.fromElement)&amp;&amp;(or($)||$[pn]))break e;if((_||v)&amp;&amp;(v=m.window===m?m:(v=m.ownerDocument)?v.defaultView||v.parentWindow:window,_?($=n.relatedTarget||n.toElement,_=l,$=$?or($):null,$!==null&amp;&amp;(N=Or($),$!==N||$.tag!==5&amp;&amp;$.tag!==6)&amp;&amp;($=null)):(_=null,$=l),_!==$)){if(E=Pm,k=&quot;onMouseLeave&quot;,c=&quot;onMouseEnter&quot;,d=&quot;mouse&quot;,(e===&quot;pointerout&quot;||e===&quot;pointerover&quot;)&amp;&amp;(E=Cm,k=&quot;onPointerLeave&quot;,c=&quot;onPointerEnter&quot;,d=&quot;pointer&quot;),N=_==null?v:Fr(_),f=$==null?v:Fr($),v=new E(k,d+&quot;leave&quot;,_,n,m),v.target=N,v.relatedTarget=f,k=null,or(m)===l&amp;&amp;(E=new E(c,d+&quot;enter&quot;,$,n,m),E.target=f,E.relatedTarget=N,k=E),N=k,_&amp;&amp;$)t:{for(E=_,c=$,d=0,f=E;f;f=Tr(f))d++;for(f=0,k=c;k;k=Tr(k))f++;for(;0&lt;d-f;)E=Tr(E),d--;for(;0&lt;f-d;)c=Tr(c),f--;for(;d--;){if(E===c||c!==null&amp;&amp;E===c.alternate)break t;E=Tr(E),c=Tr(c)}E=null}else E=null;_!==null&amp;&amp;Jm(p,v,_,E,!1),$!==null&amp;&amp;N!==null&amp;&amp;Jm(p,N,$,E,!0)}}e:{if(v=l?Fr(l):window,_=v.nodeName&amp;&amp;v.nodeName.toLowerCase(),_===&quot;select&quot;||_===&quot;input&quot;&amp;&amp;v.type===&quot;file&quot;)var I=h1;else if(Rm(v))if(kv)I=_1;else{I=g1;var P=v1}else(_=v.nodeName)&amp;&amp;_.toLowerCase()===&quot;input&quot;&amp;&amp;(v.type===&quot;checkbox&quot;||v.type===&quot;radio&quot;)&amp;&amp;(I=y1);if(I&amp;&amp;(I=I(e,l))){$v(p,I,n,m);break e}P&amp;&amp;P(e,v,l),e===&quot;focusout&quot;&amp;&amp;(P=v._wrapperState)&amp;&amp;P.controlled&amp;&amp;v.type===&quot;number&quot;&amp;&amp;il(v,&quot;number&quot;,v.value)}switch(P=l?Fr(l):window,e){case&quot;focusin&quot;:(Rm(P)||P.contentEditable===&quot;true&quot;)&amp;&amp;(Lr=P,vl=l,ao=null);break;case&quot;focusout&quot;:ao=vl=Lr=null;break;case&quot;mousedown&quot;:gl=!0;break;case&quot;contextmenu&quot;:case&quot;mouseup&quot;:case&quot;dragend&quot;:gl=!1,Bm(p,n,m);break;case&quot;selectionchange&quot;:if(k1)break;case&quot;keydown&quot;:case&quot;keyup&quot;:Bm(p,n,m)}var L;if(Jc)e:{switch(e){case&quot;compositionstart&quot;:var F=&quot;onCompositionStart&quot;;break e;case&quot;compositionend&quot;:F=&quot;onCompositionEnd&quot;;break e;case&quot;compositionupdate&quot;:F=&quot;onCompositionUpdate&quot;;break e}F=void 0}else Zr?_v(e,n)&amp;&amp;(F=&quot;onCompositionEnd&quot;):e===&quot;keydown&quot;&amp;&amp;n.keyCode===229&amp;&amp;(F=&quot;onCompositionStart&quot;);F&amp;&amp;(yv&amp;&amp;n.locale!==&quot;ko&quot;&amp;&amp;(Zr||F!==&quot;onCompositionStart&quot;?F===&quot;onCompositionEnd&quot;&amp;&amp;Zr&amp;&amp;(L=gv()):(jn=m,Bc=&quot;value&quot;in jn?jn.value:jn.textContent,Zr=!0)),P=Xa(l,F),0&lt;P.length&amp;&amp;(F=new Um(F,e,null,n,m),p.push({event:F,listeners:P}),L?F.data=L:(L=wv(n),L!==null&amp;&amp;(F.data=L)))),(L=c1?d1(e,n):f1(e,n))&amp;&amp;(l=Xa(l,&quot;onBeforeInput&quot;),0&lt;l.length&amp;&amp;(m=new Um(&quot;onBeforeInput&quot;,&quot;beforeinput&quot;,null,n,m),p.push({event:m,listeners:l}),m.data=L))}Tv(p,t)})}function So(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xa(e,t){for(var n=t+&quot;Capture&quot;,i=[];e!==null;){var r=e,o=r.stateNode;r.tag===5&amp;&amp;o!==null&amp;&amp;(r=o,o=vo(e,n),o!=null&amp;&amp;i.unshift(So(e,o,r)),o=vo(e,t),o!=null&amp;&amp;i.push(So(e,o,r))),e=e.return}return i}function Tr(e){if(e===null)return null;do e=e.return;while(e&amp;&amp;e.tag!==5);return e||null}function Jm(e,t,n,i,r){for(var o=t._reactName,a=[];n!==null&amp;&amp;n!==i;){var u=n,s=u.alternate,l=u.stateNode;if(s!==null&amp;&amp;s===i)break;u.tag===5&amp;&amp;l!==null&amp;&amp;(u=l,r?(s=vo(n,o),s!=null&amp;&amp;a.unshift(So(n,s,u))):r||(s=vo(n,o),s!=null&amp;&amp;a.push(So(n,s,u)))),n=n.return}a.length!==0&amp;&amp;e.push({event:t,listeners:a})}var I1=/\r\n?/g,z1=/\u0000|\uFFFD/g;function Km(e){return(typeof e==&quot;string&quot;?e:&quot;&quot;+e).replace(I1,`
`).replace(z1,&quot;&quot;)}function fa(e,t,n){if(t=Km(t),Km(e)!==t&amp;&amp;n)throw Error(U(425))}function Ya(){}var yl=null,_l=null;function wl(e,t){return e===&quot;textarea&quot;||e===&quot;noscript&quot;||typeof t.children==&quot;string&quot;||typeof t.children==&quot;number&quot;||typeof t.dangerouslySetInnerHTML==&quot;object&quot;&amp;&amp;t.dangerouslySetInnerHTML!==null&amp;&amp;t.dangerouslySetInnerHTML.__html!=null}var $l=typeof setTimeout==&quot;function&quot;?setTimeout:void 0,O1=typeof clearTimeout==&quot;function&quot;?clearTimeout:void 0,Hm=typeof Promise==&quot;function&quot;?Promise:void 0,E1=typeof queueMicrotask==&quot;function&quot;?queueMicrotask:typeof Hm&lt;&quot;u&quot;?function(e){return Hm.resolve(null).then(e).catch(N1)}:$l;function N1(e){setTimeout(function(){throw e})}function Ts(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&amp;&amp;r.nodeType===8)if(n=r.data,n===&quot;/$&quot;){if(i===0){e.removeChild(r),_o(t);return}i--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$?&quot;&amp;&amp;n!==&quot;$!&quot;||i++;n=r}while(n);_o(t)}function Dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===&quot;$&quot;||t===&quot;$!&quot;||t===&quot;$?&quot;)break;if(t===&quot;/$&quot;)return null}}return e}function Gm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;$&quot;||n===&quot;$!&quot;||n===&quot;$?&quot;){if(t===0)return e;t--}else n===&quot;/$&quot;&amp;&amp;t++}e=e.previousSibling}return null}var Ti=Math.random().toString(36).slice(2),qt=&quot;__reactFiber$&quot;+Ti,xo=&quot;__reactProps$&quot;+Ti,pn=&quot;__reactContainer$&quot;+Ti,kl=&quot;__reactEvents$&quot;+Ti,j1=&quot;__reactListeners$&quot;+Ti,T1=&quot;__reactHandles$&quot;+Ti;function or(e){var t=e[qt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pn]||n[qt]){if(n=t.alternate,t.child!==null||n!==null&amp;&amp;n.child!==null)for(e=Gm(e);e!==null;){if(n=e[qt])return n;e=Gm(e)}return t}e=n,n=e.parentNode}return null}function Ho(e){return e=e[qt]||e[pn],!e||e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==13&amp;&amp;e.tag!==3?null:e}function Fr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Zu(e){return e[xo]||null}var Sl=[],Br=-1;function Hn(e){return{current:e}}function ke(e){0&gt;Br||(e.current=Sl[Br],Sl[Br]=null,Br--)}function ge(e,t){Br++,Sl[Br]=e.current,e.current=t}var Vn={},Ye=Hn(Vn),lt=Hn(!1),yr=Vn;function hi(e,t){var n=e.type.contextTypes;if(!n)return Vn;var i=e.stateNode;if(i&amp;&amp;i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return i&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function ct(e){return e=e.childContextTypes,e!=null}function qa(){ke(lt),ke(Ye)}function Qm(e,t,n){if(Ye.current!==Vn)throw Error(U(168));ge(Ye,t),ge(lt,n)}function Uv(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=&quot;function&quot;)return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(U(108,vk(e)||&quot;Unknown&quot;,r));return ze({},n,i)}function eu(e){return e=(e=e.stateNode)&amp;&amp;e.__reactInternalMemoizedMergedChildContext||Vn,yr=Ye.current,ge(Ye,e),ge(lt,lt.current),!0}function Xm(e,t,n){var i=e.stateNode;if(!i)throw Error(U(169));n?(e=Uv(e,t,yr),i.__reactInternalMemoizedMergedChildContext=e,ke(lt),ke(Ye),ge(Ye,e)):ke(lt),ge(lt,n)}var an=null,Lu=!1,Ps=!1;function Cv(e){an===null?an=[e]:an.push(e)}function P1(e){Lu=!0,Cv(e)}function Gn(){if(!Ps&amp;&amp;an!==null){Ps=!0;var e=0,t=he;try{var n=an;for(he=1;e&lt;n.length;e++){var i=n[e];do i=i(!0);while(i!==null)}an=null,Lu=!1}catch(r){throw an!==null&amp;&amp;(an=an.slice(e+1)),av(Zc,Gn),r}finally{he=t,Ps=!1}}return null}var Vr=[],Wr=0,tu=null,nu=0,xt=[],bt=0,_r=null,ln=1,cn=&quot;&quot;;function er(e,t){Vr[Wr++]=nu,Vr[Wr++]=tu,tu=e,nu=t}function Av(e,t,n){xt[bt++]=ln,xt[bt++]=cn,xt[bt++]=_r,_r=e;var i=ln;e=cn;var r=32-Ft(i)-1;i&amp;=~(1&lt;&lt;r),n+=1;var o=32-Ft(t)+r;if(30&lt;o){var a=r-r%5;o=(i&amp;(1&lt;&lt;a)-1).toString(32),i&gt;&gt;=a,r-=a,ln=1&lt;&lt;32-Ft(t)+r|n&lt;&lt;r|i,cn=o+e}else ln=1&lt;&lt;o|n&lt;&lt;r|i,cn=e}function Hc(e){e.return!==null&amp;&amp;(er(e,1),Av(e,1,0))}function Gc(e){for(;e===tu;)tu=Vr[--Wr],Vr[Wr]=null,nu=Vr[--Wr],Vr[Wr]=null;for(;e===_r;)_r=xt[--bt],xt[bt]=null,cn=xt[--bt],xt[bt]=null,ln=xt[--bt],xt[bt]=null}var _t=null,gt=null,xe=!1,Mt=null;function Dv(e,t){var n=Et(5,null,null,0);n.elementType=&quot;DELETED&quot;,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ym(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_t=e,gt=Dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===&quot;&quot;||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_t=e,gt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_r!==null?{id:ln,overflow:cn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Et(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,_t=e,gt=null,!0):!1;default:return!1}}function xl(e){return(e.mode&amp;1)!==0&amp;&amp;(e.flags&amp;128)===0}function bl(e){if(xe){var t=gt;if(t){var n=t;if(!Ym(e,t)){if(xl(e))throw Error(U(418));t=Dn(n.nextSibling);var i=_t;t&amp;&amp;Ym(e,t)?Dv(i,n):(e.flags=e.flags&amp;-4097|2,xe=!1,_t=e)}}else{if(xl(e))throw Error(U(418));e.flags=e.flags&amp;-4097|2,xe=!1,_t=e}}}function qm(e){for(e=e.return;e!==null&amp;&amp;e.tag!==5&amp;&amp;e.tag!==3&amp;&amp;e.tag!==13;)e=e.return;_t=e}function ma(e){if(e!==_t)return!1;if(!xe)return qm(e),xe=!0,!1;var t;if((t=e.tag!==3)&amp;&amp;!(t=e.tag!==5)&amp;&amp;(t=e.type,t=t!==&quot;head&quot;&amp;&amp;t!==&quot;body&quot;&amp;&amp;!wl(e.type,e.memoizedProps)),t&amp;&amp;(t=gt)){if(xl(e))throw Rv(),Error(U(418));for(;t;)Dv(e,t),t=Dn(t.nextSibling)}if(qm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;/$&quot;){if(t===0){gt=Dn(e.nextSibling);break e}t--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$!&quot;&amp;&amp;n!==&quot;$?&quot;||t++}e=e.nextSibling}gt=null}}else gt=_t?Dn(e.stateNode.nextSibling):null;return!0}function Rv(){for(var e=gt;e;)e=Dn(e.nextSibling)}function vi(){gt=_t=null,xe=!1}function Qc(e){Mt===null?Mt=[e]:Mt.push(e)}var U1=yn.ReactCurrentBatchConfig;function Mi(e,t,n){if(e=n.ref,e!==null&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;typeof e!=&quot;object&quot;){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(U(309));var i=n.stateNode}if(!i)throw Error(U(147,e));var r=i,o=&quot;&quot;+e;return t!==null&amp;&amp;t.ref!==null&amp;&amp;typeof t.ref==&quot;function&quot;&amp;&amp;t.ref._stringRef===o?t.ref:(t=function(a){var u=r.refs;a===null?delete u[o]:u[o]=a},t._stringRef=o,t)}if(typeof e!=&quot;string&quot;)throw Error(U(284));if(!n._owner)throw Error(U(290,e))}return e}function pa(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(t).join(&quot;, &quot;)+&quot;}&quot;:e))}function ep(e){var t=e._init;return t(e._payload)}function Zv(e){function t(c,d){if(e){var f=c.deletions;f===null?(c.deletions=[d],c.flags|=16):f.push(d)}}function n(c,d){if(!e)return null;for(;d!==null;)t(c,d),d=d.sibling;return null}function i(c,d){for(c=new Map;d!==null;)d.key!==null?c.set(d.key,d):c.set(d.index,d),d=d.sibling;return c}function r(c,d){return c=Mn(c,d),c.index=0,c.sibling=null,c}function o(c,d,f){return c.index=f,e?(f=c.alternate,f!==null?(f=f.index,f&lt;d?(c.flags|=2,d):f):(c.flags|=2,d)):(c.flags|=1048576,d)}function a(c){return e&amp;&amp;c.alternate===null&amp;&amp;(c.flags|=2),c}function u(c,d,f,k){return d===null||d.tag!==6?(d=Ls(f,c.mode,k),d.return=c,d):(d=r(d,f),d.return=c,d)}function s(c,d,f,k){var I=f.type;return I===Rr?m(c,d,f.props.children,k,f.key):d!==null&amp;&amp;(d.elementType===I||typeof I==&quot;object&quot;&amp;&amp;I!==null&amp;&amp;I.$$typeof===kn&amp;&amp;ep(I)===d.type)?(k=r(d,f.props),k.ref=Mi(c,d,f),k.return=c,k):(k=Aa(f.type,f.key,f.props,null,c.mode,k),k.ref=Mi(c,d,f),k.return=c,k)}function l(c,d,f,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==f.containerInfo||d.stateNode.implementation!==f.implementation?(d=Ms(f,c.mode,k),d.return=c,d):(d=r(d,f.children||[]),d.return=c,d)}function m(c,d,f,k,I){return d===null||d.tag!==7?(d=hr(f,c.mode,k,I),d.return=c,d):(d=r(d,f),d.return=c,d)}function p(c,d,f){if(typeof d==&quot;string&quot;&amp;&amp;d!==&quot;&quot;||typeof d==&quot;number&quot;)return d=Ls(&quot;&quot;+d,c.mode,f),d.return=c,d;if(typeof d==&quot;object&quot;&amp;&amp;d!==null){switch(d.$$typeof){case ra:return f=Aa(d.type,d.key,d.props,null,c.mode,f),f.ref=Mi(c,null,d),f.return=c,f;case Dr:return d=Ms(d,c.mode,f),d.return=c,d;case kn:var k=d._init;return p(c,k(d._payload),f)}if(Ki(d)||Ai(d))return d=hr(d,c.mode,f,null),d.return=c,d;pa(c,d)}return null}function v(c,d,f,k){var I=d!==null?d.key:null;if(typeof f==&quot;string&quot;&amp;&amp;f!==&quot;&quot;||typeof f==&quot;number&quot;)return I!==null?null:u(c,d,&quot;&quot;+f,k);if(typeof f==&quot;object&quot;&amp;&amp;f!==null){switch(f.$$typeof){case ra:return f.key===I?s(c,d,f,k):null;case Dr:return f.key===I?l(c,d,f,k):null;case kn:return I=f._init,v(c,d,I(f._payload),k)}if(Ki(f)||Ai(f))return I!==null?null:m(c,d,f,k,null);pa(c,f)}return null}function _(c,d,f,k,I){if(typeof k==&quot;string&quot;&amp;&amp;k!==&quot;&quot;||typeof k==&quot;number&quot;)return c=c.get(f)||null,u(d,c,&quot;&quot;+k,I);if(typeof k==&quot;object&quot;&amp;&amp;k!==null){switch(k.$$typeof){case ra:return c=c.get(k.key===null?f:k.key)||null,s(d,c,k,I);case Dr:return c=c.get(k.key===null?f:k.key)||null,l(d,c,k,I);case kn:var P=k._init;return _(c,d,f,P(k._payload),I)}if(Ki(k)||Ai(k))return c=c.get(f)||null,m(d,c,k,I,null);pa(d,k)}return null}function $(c,d,f,k){for(var I=null,P=null,L=d,F=d=0,ve=null;L!==null&amp;&amp;F&lt;f.length;F++){L.index&gt;F?(ve=L,L=null):ve=L.sibling;var te=v(c,L,f[F],k);if(te===null){L===null&amp;&amp;(L=ve);break}e&amp;&amp;L&amp;&amp;te.alternate===null&amp;&amp;t(c,L),d=o(te,d,F),P===null?I=te:P.sibling=te,P=te,L=ve}if(F===f.length)return n(c,L),xe&amp;&amp;er(c,F),I;if(L===null){for(;F&lt;f.length;F++)L=p(c,f[F],k),L!==null&amp;&amp;(d=o(L,d,F),P===null?I=L:P.sibling=L,P=L);return xe&amp;&amp;er(c,F),I}for(L=i(c,L);F&lt;f.length;F++)ve=_(L,c,F,f[F],k),ve!==null&amp;&amp;(e&amp;&amp;ve.alternate!==null&amp;&amp;L.delete(ve.key===null?F:ve.key),d=o(ve,d,F),P===null?I=ve:P.sibling=ve,P=ve);return e&amp;&amp;L.forEach(function(ot){return t(c,ot)}),xe&amp;&amp;er(c,F),I}function E(c,d,f,k){var I=Ai(f);if(typeof I!=&quot;function&quot;)throw Error(U(150));if(f=I.call(f),f==null)throw Error(U(151));for(var P=I=null,L=d,F=d=0,ve=null,te=f.next();L!==null&amp;&amp;!te.done;F++,te=f.next()){L.index&gt;F?(ve=L,L=null):ve=L.sibling;var ot=v(c,L,te.value,k);if(ot===null){L===null&amp;&amp;(L=ve);break}e&amp;&amp;L&amp;&amp;ot.alternate===null&amp;&amp;t(c,L),d=o(ot,d,F),P===null?I=ot:P.sibling=ot,P=ot,L=ve}if(te.done)return n(c,L),xe&amp;&amp;er(c,F),I;if(L===null){for(;!te.done;F++,te=f.next())te=p(c,te.value,k),te!==null&amp;&amp;(d=o(te,d,F),P===null?I=te:P.sibling=te,P=te);return xe&amp;&amp;er(c,F),I}for(L=i(c,L);!te.done;F++,te=f.next())te=_(L,c,F,te.value,k),te!==null&amp;&amp;(e&amp;&amp;te.alternate!==null&amp;&amp;L.delete(te.key===null?F:te.key),d=o(te,d,F),P===null?I=te:P.sibling=te,P=te);return e&amp;&amp;L.forEach(function(_n){return t(c,_n)}),xe&amp;&amp;er(c,F),I}function N(c,d,f,k){if(typeof f==&quot;object&quot;&amp;&amp;f!==null&amp;&amp;f.type===Rr&amp;&amp;f.key===null&amp;&amp;(f=f.props.children),typeof f==&quot;object&quot;&amp;&amp;f!==null){switch(f.$$typeof){case ra:e:{for(var I=f.key,P=d;P!==null;){if(P.key===I){if(I=f.type,I===Rr){if(P.tag===7){n(c,P.sibling),d=r(P,f.props.children),d.return=c,c=d;break e}}else if(P.elementType===I||typeof I==&quot;object&quot;&amp;&amp;I!==null&amp;&amp;I.$$typeof===kn&amp;&amp;ep(I)===P.type){n(c,P.sibling),d=r(P,f.props),d.ref=Mi(c,P,f),d.return=c,c=d;break e}n(c,P);break}else t(c,P);P=P.sibling}f.type===Rr?(d=hr(f.props.children,c.mode,k,f.key),d.return=c,c=d):(k=Aa(f.type,f.key,f.props,null,c.mode,k),k.ref=Mi(c,d,f),k.return=c,c=k)}return a(c);case Dr:e:{for(P=f.key;d!==null;){if(d.key===P)if(d.tag===4&amp;&amp;d.stateNode.containerInfo===f.containerInfo&amp;&amp;d.stateNode.implementation===f.implementation){n(c,d.sibling),d=r(d,f.children||[]),d.return=c,c=d;break e}else{n(c,d);break}else t(c,d);d=d.sibling}d=Ms(f,c.mode,k),d.return=c,c=d}return a(c);case kn:return P=f._init,N(c,d,P(f._payload),k)}if(Ki(f))return $(c,d,f,k);if(Ai(f))return E(c,d,f,k);pa(c,f)}return typeof f==&quot;string&quot;&amp;&amp;f!==&quot;&quot;||typeof f==&quot;number&quot;?(f=&quot;&quot;+f,d!==null&amp;&amp;d.tag===6?(n(c,d.sibling),d=r(d,f),d.return=c,c=d):(n(c,d),d=Ls(f,c.mode,k),d.return=c,c=d),a(c)):n(c,d)}return N}var gi=Zv(!0),Lv=Zv(!1),ru=Hn(null),iu=null,Jr=null,Xc=null;function Yc(){Xc=Jr=iu=null}function qc(e){var t=ru.current;ke(ru),e._currentValue=t}function Il(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&amp;t)!==t?(e.childLanes|=t,i!==null&amp;&amp;(i.childLanes|=t)):i!==null&amp;&amp;(i.childLanes&amp;t)!==t&amp;&amp;(i.childLanes|=t),e===n)break;e=e.return}}function ri(e,t){iu=e,Xc=Jr=null,e=e.dependencies,e!==null&amp;&amp;e.firstContext!==null&amp;&amp;(e.lanes&amp;t&amp;&amp;(st=!0),e.firstContext=null)}function Tt(e){var t=e._currentValue;if(Xc!==e)if(e={context:e,memoizedValue:t,next:null},Jr===null){if(iu===null)throw Error(U(308));Jr=e,iu.dependencies={lanes:0,firstContext:e}}else Jr=Jr.next=e;return t}var ar=null;function ed(e){ar===null?ar=[e]:ar.push(e)}function Mv(e,t,n,i){var r=t.interleaved;return r===null?(n.next=n,ed(t)):(n.next=r.next,r.next=n),t.interleaved=n,hn(e,i)}function hn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&amp;&amp;(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&amp;&amp;(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sn=!1;function td(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fv(e,t){e=e.updateQueue,t.updateQueue===e&amp;&amp;(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,le&amp;2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,hn(e,n)}return r=i.interleaved,r===null?(t.next=t,ed(i)):(t.next=r.next,r.next=t),i.interleaved=t,hn(e,n)}function Na(e,t,n){if(t=t.updateQueue,t!==null&amp;&amp;(t=t.shared,(n&amp;4194240)!==0)){var i=t.lanes;i&amp;=e.pendingLanes,n|=i,t.lanes=n,Lc(e,n)}}function tp(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&amp;&amp;(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ou(e,t,n,i){var r=e.updateQueue;Sn=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,u=r.shared.pending;if(u!==null){r.shared.pending=null;var s=u,l=s.next;s.next=null,a===null?o=l:a.next=l,a=s;var m=e.alternate;m!==null&amp;&amp;(m=m.updateQueue,u=m.lastBaseUpdate,u!==a&amp;&amp;(u===null?m.firstBaseUpdate=l:u.next=l,m.lastBaseUpdate=s))}if(o!==null){var p=r.baseState;a=0,m=l=s=null,u=o;do{var v=u.lane,_=u.eventTime;if((i&amp;v)===v){m!==null&amp;&amp;(m=m.next={eventTime:_,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var $=e,E=u;switch(v=t,_=n,E.tag){case 1:if($=E.payload,typeof $==&quot;function&quot;){p=$.call(_,p,v);break e}p=$;break e;case 3:$.flags=$.flags&amp;-65537|128;case 0:if($=E.payload,v=typeof $==&quot;function&quot;?$.call(_,p,v):$,v==null)break e;p=ze({},p,v);break e;case 2:Sn=!0}}u.callback!==null&amp;&amp;u.lane!==0&amp;&amp;(e.flags|=64,v=r.effects,v===null?r.effects=[u]:v.push(u))}else _={eventTime:_,lane:v,tag:u.tag,payload:u.payload,callback:u.callback,next:null},m===null?(l=m=_,s=p):m=m.next=_,a|=v;if(u=u.next,u===null){if(u=r.shared.pending,u===null)break;v=u,u=v.next,v.next=null,r.lastBaseUpdate=v,r.shared.pending=null}}while(!0);if(m===null&amp;&amp;(s=p),r.baseState=s,r.firstBaseUpdate=l,r.lastBaseUpdate=m,t=r.shared.interleaved,t!==null){r=t;do a|=r.lane,r=r.next;while(r!==t)}else o===null&amp;&amp;(r.shared.lanes=0);$r|=a,e.lanes=a,e.memoizedState=p}}function np(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t&lt;e.length;t++){var i=e[t],r=i.callback;if(r!==null){if(i.callback=null,i=n,typeof r!=&quot;function&quot;)throw Error(U(191,r));r.call(i)}}}var Go={},tn=Hn(Go),bo=Hn(Go),Io=Hn(Go);function ur(e){if(e===Go)throw Error(U(174));return e}function nd(e,t){switch(ge(Io,t),ge(bo,e),ge(tn,Go),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:al(null,&quot;&quot;);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=al(t,e)}ke(tn),ge(tn,t)}function yi(){ke(tn),ke(bo),ke(Io)}function Bv(e){ur(Io.current);var t=ur(tn.current),n=al(t,e.type);t!==n&amp;&amp;(ge(bo,e),ge(tn,n))}function rd(e){bo.current===e&amp;&amp;(ke(tn),ke(bo))}var be=Hn(0);function au(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&amp;&amp;(n=n.dehydrated,n===null||n.data===&quot;$?&quot;||n.data===&quot;$!&quot;))return t}else if(t.tag===19&amp;&amp;t.memoizedProps.revealOrder!==void 0){if(t.flags&amp;128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Us=[];function id(){for(var e=0;e&lt;Us.length;e++)Us[e]._workInProgressVersionPrimary=null;Us.length=0}var ja=yn.ReactCurrentDispatcher,Cs=yn.ReactCurrentBatchConfig,wr=0,Ie=null,Re=null,Be=null,uu=!1,uo=!1,zo=0,C1=0;function Ge(){throw Error(U(321))}function od(e,t){if(t===null)return!1;for(var n=0;n&lt;t.length&amp;&amp;n&lt;e.length;n++)if(!Wt(e[n],t[n]))return!1;return!0}function ad(e,t,n,i,r,o){if(wr=o,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ja.current=e===null||e.memoizedState===null?Z1:L1,e=n(i,r),uo){o=0;do{if(uo=!1,zo=0,25&lt;=o)throw Error(U(301));o+=1,Be=Re=null,t.updateQueue=null,ja.current=M1,e=n(i,r)}while(uo)}if(ja.current=su,t=Re!==null&amp;&amp;Re.next!==null,wr=0,Be=Re=Ie=null,uu=!1,t)throw Error(U(300));return e}function ud(){var e=zo!==0;return zo=0,e}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?Ie.memoizedState=Be=e:Be=Be.next=e,Be}function Pt(){if(Re===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Be===null?Ie.memoizedState:Be.next;if(t!==null)Be=t,Re=e;else{if(e===null)throw Error(U(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Be===null?Ie.memoizedState=Be=e:Be=Be.next=e}return Be}function Oo(e,t){return typeof t==&quot;function&quot;?t(e):t}function As(e){var t=Pt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var i=Re,r=i.baseQueue,o=n.pending;if(o!==null){if(r!==null){var a=r.next;r.next=o.next,o.next=a}i.baseQueue=r=o,n.pending=null}if(r!==null){o=r.next,i=i.baseState;var u=a=null,s=null,l=o;do{var m=l.lane;if((wr&amp;m)===m)s!==null&amp;&amp;(s=s.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),i=l.hasEagerState?l.eagerState:e(i,l.action);else{var p={lane:m,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};s===null?(u=s=p,a=i):s=s.next=p,Ie.lanes|=m,$r|=m}l=l.next}while(l!==null&amp;&amp;l!==o);s===null?a=i:s.next=u,Wt(i,t.memoizedState)||(st=!0),t.memoizedState=i,t.baseState=a,t.baseQueue=s,n.lastRenderedState=i}if(e=n.interleaved,e!==null){r=e;do o=r.lane,Ie.lanes|=o,$r|=o,r=r.next;while(r!==e)}else r===null&amp;&amp;(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ds(e){var t=Pt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var a=r=r.next;do o=e(o,a.action),a=a.next;while(a!==r);Wt(o,t.memoizedState)||(st=!0),t.memoizedState=o,t.baseQueue===null&amp;&amp;(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Vv(){}function Wv(e,t){var n=Ie,i=Pt(),r=t(),o=!Wt(i.memoizedState,r);if(o&amp;&amp;(i.memoizedState=r,st=!0),i=i.queue,sd(Hv.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Be!==null&amp;&amp;Be.memoizedState.tag&amp;1){if(n.flags|=2048,Eo(9,Kv.bind(null,n,i,r,t),void 0,null),Ve===null)throw Error(U(349));wr&amp;30||Jv(n,t,r)}return r}function Jv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Kv(e,t,n,i){t.value=n,t.getSnapshot=i,Gv(t)&amp;&amp;Qv(e)}function Hv(e,t,n){return n(function(){Gv(t)&amp;&amp;Qv(e)})}function Gv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wt(e,n)}catch{return!0}}function Qv(e){var t=hn(e,1);t!==null&amp;&amp;Bt(t,e,1,-1)}function rp(e){var t=Qt();return typeof e==&quot;function&quot;&amp;&amp;(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:e},t.queue=e,e=e.dispatch=R1.bind(null,Ie,e),[t.memoizedState,e]}function Eo(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function Xv(){return Pt().memoizedState}function Ta(e,t,n,i){var r=Qt();Ie.flags|=e,r.memoizedState=Eo(1|t,n,void 0,i===void 0?null:i)}function Mu(e,t,n,i){var r=Pt();i=i===void 0?null:i;var o=void 0;if(Re!==null){var a=Re.memoizedState;if(o=a.destroy,i!==null&amp;&amp;od(i,a.deps)){r.memoizedState=Eo(t,n,o,i);return}}Ie.flags|=e,r.memoizedState=Eo(1|t,n,o,i)}function ip(e,t){return Ta(8390656,8,e,t)}function sd(e,t){return Mu(2048,8,e,t)}function Yv(e,t){return Mu(4,2,e,t)}function qv(e,t){return Mu(4,4,e,t)}function eg(e,t){if(typeof t==&quot;function&quot;)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tg(e,t,n){return n=n!=null?n.concat([e]):null,Mu(4,4,eg.bind(null,t,e),n)}function ld(){}function ng(e,t){var n=Pt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&amp;&amp;t!==null&amp;&amp;od(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function rg(e,t){var n=Pt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&amp;&amp;t!==null&amp;&amp;od(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function ig(e,t,n){return wr&amp;21?(Wt(n,t)||(n=lv(),Ie.lanes|=n,$r|=n,e.baseState=!0),t):(e.baseState&amp;&amp;(e.baseState=!1,st=!0),e.memoizedState=n)}function A1(e,t){var n=he;he=n!==0&amp;&amp;4&gt;n?n:4,e(!0);var i=Cs.transition;Cs.transition={};try{e(!1),t()}finally{he=n,Cs.transition=i}}function og(){return Pt().memoizedState}function D1(e,t,n){var i=Ln(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},ag(e))ug(t,n);else if(n=Mv(e,t,n,i),n!==null){var r=tt();Bt(n,e,i,r),sg(n,t,i)}}function R1(e,t,n){var i=Ln(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(ag(e))ug(t,r);else{var o=e.alternate;if(e.lanes===0&amp;&amp;(o===null||o.lanes===0)&amp;&amp;(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,u=o(a,n);if(r.hasEagerState=!0,r.eagerState=u,Wt(u,a)){var s=t.interleaved;s===null?(r.next=r,ed(t)):(r.next=s.next,s.next=r),t.interleaved=r;return}}catch{}finally{}n=Mv(e,t,r,i),n!==null&amp;&amp;(r=tt(),Bt(n,e,i,r),sg(n,t,i))}}function ag(e){var t=e.alternate;return e===Ie||t!==null&amp;&amp;t===Ie}function ug(e,t){uo=uu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sg(e,t,n){if(n&amp;4194240){var i=t.lanes;i&amp;=e.pendingLanes,n|=i,t.lanes=n,Lc(e,n)}}var su={readContext:Tt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},Z1={readContext:Tt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:ip,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ta(4194308,4,eg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ta(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ta(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Qt();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=D1.bind(null,Ie,e),[i.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:rp,useDebugValue:ld,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=rp(!1),t=e[0];return e=A1.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Ie,r=Qt();if(xe){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Ve===null)throw Error(U(349));wr&amp;30||Jv(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,ip(Hv.bind(null,i,o,e),[e]),i.flags|=2048,Eo(9,Kv.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Qt(),t=Ve.identifierPrefix;if(xe){var n=cn,i=ln;n=(i&amp;~(1&lt;&lt;32-Ft(i)-1)).toString(32)+n,t=&quot;:&quot;+t+&quot;R&quot;+n,n=zo++,0&lt;n&amp;&amp;(t+=&quot;H&quot;+n.toString(32)),t+=&quot;:&quot;}else n=C1++,t=&quot;:&quot;+t+&quot;r&quot;+n.toString(32)+&quot;:&quot;;return e.memoizedState=t},unstable_isNewReconciler:!1},L1={readContext:Tt,useCallback:ng,useContext:Tt,useEffect:sd,useImperativeHandle:tg,useInsertionEffect:Yv,useLayoutEffect:qv,useMemo:rg,useReducer:As,useRef:Xv,useState:function(){return As(Oo)},useDebugValue:ld,useDeferredValue:function(e){var t=Pt();return ig(t,Re.memoizedState,e)},useTransition:function(){var e=As(Oo)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:Vv,useSyncExternalStore:Wv,useId:og,unstable_isNewReconciler:!1},M1={readContext:Tt,useCallback:ng,useContext:Tt,useEffect:sd,useImperativeHandle:tg,useInsertionEffect:Yv,useLayoutEffect:qv,useMemo:rg,useReducer:Ds,useRef:Xv,useState:function(){return Ds(Oo)},useDebugValue:ld,useDeferredValue:function(e){var t=Pt();return Re===null?t.memoizedState=e:ig(t,Re.memoizedState,e)},useTransition:function(){var e=Ds(Oo)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:Vv,useSyncExternalStore:Wv,useId:og,unstable_isNewReconciler:!1};function Rt(e,t){if(e&amp;&amp;e.defaultProps){t=ze({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&amp;&amp;(t[n]=e[n]);return t}return t}function zl(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:ze({},t,n),e.memoizedState=n,e.lanes===0&amp;&amp;(e.updateQueue.baseState=n)}var Fu={isMounted:function(e){return(e=e._reactInternals)?Or(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=tt(),r=Ln(e),o=fn(i,r);o.payload=t,n!=null&amp;&amp;(o.callback=n),t=Rn(e,o,r),t!==null&amp;&amp;(Bt(t,e,r,i),Na(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=tt(),r=Ln(e),o=fn(i,r);o.tag=1,o.payload=t,n!=null&amp;&amp;(o.callback=n),t=Rn(e,o,r),t!==null&amp;&amp;(Bt(t,e,r,i),Na(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),i=Ln(e),r=fn(n,i);r.tag=2,t!=null&amp;&amp;(r.callback=t),t=Rn(e,r,i),t!==null&amp;&amp;(Bt(t,e,i,n),Na(t,e,i))}};function op(e,t,n,i,r,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate==&quot;function&quot;?e.shouldComponentUpdate(i,o,a):t.prototype&amp;&amp;t.prototype.isPureReactComponent?!$o(n,i)||!$o(r,o):!0}function lg(e,t,n){var i=!1,r=Vn,o=t.contextType;return typeof o==&quot;object&quot;&amp;&amp;o!==null?o=Tt(o):(r=ct(t)?yr:Ye.current,i=t.contextTypes,o=(i=i!=null)?hi(e,r):Vn),t=new t(n,o),e.memoizedState=t.state!==null&amp;&amp;t.state!==void 0?t.state:null,t.updater=Fu,e.stateNode=t,t._reactInternals=e,i&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function ap(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&amp;&amp;Fu.enqueueReplaceState(t,t.state,null)}function Ol(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},td(e);var o=t.contextType;typeof o==&quot;object&quot;&amp;&amp;o!==null?r.context=Tt(o):(o=ct(t)?yr:Ye.current,r.context=hi(e,o)),r.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o==&quot;function&quot;&amp;&amp;(zl(e,t,o,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps==&quot;function&quot;||typeof r.getSnapshotBeforeUpdate==&quot;function&quot;||typeof r.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof r.componentWillMount!=&quot;function&quot;||(t=r.state,typeof r.componentWillMount==&quot;function&quot;&amp;&amp;r.componentWillMount(),typeof r.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;r.UNSAFE_componentWillMount(),t!==r.state&amp;&amp;Fu.enqueueReplaceState(r,r.state,null),ou(e,n,r,i),r.state=e.memoizedState),typeof r.componentDidMount==&quot;function&quot;&amp;&amp;(e.flags|=4194308)}function _i(e,t){try{var n=&quot;&quot;,i=t;do n+=hk(i),i=i.return;while(i);var r=n}catch(o){r=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:r,digest:null}}function Rs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function El(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var F1=typeof WeakMap==&quot;function&quot;?WeakMap:Map;function cg(e,t,n){n=fn(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){cu||(cu=!0,Zl=i),El(e,t)},n}function dg(e,t,n){n=fn(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i==&quot;function&quot;){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){El(e,t)}}var o=e.stateNode;return o!==null&amp;&amp;typeof o.componentDidCatch==&quot;function&quot;&amp;&amp;(n.callback=function(){El(e,t),typeof i!=&quot;function&quot;&amp;&amp;(Zn===null?Zn=new Set([this]):Zn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:&quot;&quot;})}),n}function up(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new F1;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&amp;&amp;(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=nS.bind(null,e,t,n),t.then(e,e))}function sp(e){do{var t;if((t=e.tag===13)&amp;&amp;(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lp(e,t,n,i,r){return e.mode&amp;1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&amp;=-52805,n.tag===1&amp;&amp;(n.alternate===null?n.tag=17:(t=fn(-1,1),t.tag=2,Rn(n,t,1))),n.lanes|=1),e)}var B1=yn.ReactCurrentOwner,st=!1;function qe(e,t,n,i){t.child=e===null?Lv(t,null,n,i):gi(t,e.child,n,i)}function cp(e,t,n,i,r){n=n.render;var o=t.ref;return ri(t,r),i=ad(e,t,n,i,o,r),n=ud(),e!==null&amp;&amp;!st?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~r,vn(e,t,r)):(xe&amp;&amp;n&amp;&amp;Hc(t),t.flags|=1,qe(e,t,i,r),t.child)}function dp(e,t,n,i,r){if(e===null){var o=n.type;return typeof o==&quot;function&quot;&amp;&amp;!gd(o)&amp;&amp;o.defaultProps===void 0&amp;&amp;n.compare===null&amp;&amp;n.defaultProps===void 0?(t.tag=15,t.type=o,fg(e,t,o,i,r)):(e=Aa(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&amp;r)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:$o,n(a,i)&amp;&amp;e.ref===t.ref)return vn(e,t,r)}return t.flags|=1,e=Mn(o,i),e.ref=t.ref,e.return=t,t.child=e}function fg(e,t,n,i,r){if(e!==null){var o=e.memoizedProps;if($o(o,i)&amp;&amp;e.ref===t.ref)if(st=!1,t.pendingProps=i=o,(e.lanes&amp;r)!==0)e.flags&amp;131072&amp;&amp;(st=!0);else return t.lanes=e.lanes,vn(e,t,r)}return Nl(e,t,n,i,r)}function mg(e,t,n){var i=t.pendingProps,r=i.children,o=e!==null?e.memoizedState:null;if(i.mode===&quot;hidden&quot;)if(!(t.mode&amp;1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(Hr,ht),ht|=n;else{if(!(n&amp;1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(Hr,ht),ht|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=o!==null?o.baseLanes:n,ge(Hr,ht),ht|=i}else o!==null?(i=o.baseLanes|n,t.memoizedState=null):i=n,ge(Hr,ht),ht|=i;return qe(e,t,r,n),t.child}function pg(e,t){var n=t.ref;(e===null&amp;&amp;n!==null||e!==null&amp;&amp;e.ref!==n)&amp;&amp;(t.flags|=512,t.flags|=2097152)}function Nl(e,t,n,i,r){var o=ct(n)?yr:Ye.current;return o=hi(t,o),ri(t,r),n=ad(e,t,n,i,o,r),i=ud(),e!==null&amp;&amp;!st?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~r,vn(e,t,r)):(xe&amp;&amp;i&amp;&amp;Hc(t),t.flags|=1,qe(e,t,n,r),t.child)}function fp(e,t,n,i,r){if(ct(n)){var o=!0;eu(t)}else o=!1;if(ri(t,r),t.stateNode===null)Pa(e,t),lg(t,n,i),Ol(t,n,i,r),i=!0;else if(e===null){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;typeof l==&quot;object&quot;&amp;&amp;l!==null?l=Tt(l):(l=ct(n)?yr:Ye.current,l=hi(t,l));var m=n.getDerivedStateFromProps,p=typeof m==&quot;function&quot;||typeof a.getSnapshotBeforeUpdate==&quot;function&quot;;p||typeof a.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof a.componentWillReceiveProps!=&quot;function&quot;||(u!==i||s!==l)&amp;&amp;ap(t,a,i,l),Sn=!1;var v=t.memoizedState;a.state=v,ou(t,i,a,r),s=t.memoizedState,u!==i||v!==s||lt.current||Sn?(typeof m==&quot;function&quot;&amp;&amp;(zl(t,n,m,i),s=t.memoizedState),(u=Sn||op(t,n,u,i,v,s,l))?(p||typeof a.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof a.componentWillMount!=&quot;function&quot;||(typeof a.componentWillMount==&quot;function&quot;&amp;&amp;a.componentWillMount(),typeof a.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;a.UNSAFE_componentWillMount()),typeof a.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308)):(typeof a.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=s),a.props=i,a.state=s,a.context=l,i=u):(typeof a.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),i=!1)}else{a=t.stateNode,Fv(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:Rt(t.type,u),a.props=l,p=t.pendingProps,v=a.context,s=n.contextType,typeof s==&quot;object&quot;&amp;&amp;s!==null?s=Tt(s):(s=ct(n)?yr:Ye.current,s=hi(t,s));var _=n.getDerivedStateFromProps;(m=typeof _==&quot;function&quot;||typeof a.getSnapshotBeforeUpdate==&quot;function&quot;)||typeof a.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof a.componentWillReceiveProps!=&quot;function&quot;||(u!==p||v!==s)&amp;&amp;ap(t,a,i,s),Sn=!1,v=t.memoizedState,a.state=v,ou(t,i,a,r);var $=t.memoizedState;u!==p||v!==$||lt.current||Sn?(typeof _==&quot;function&quot;&amp;&amp;(zl(t,n,_,i),$=t.memoizedState),(l=Sn||op(t,n,l,i,v,$,s)||!1)?(m||typeof a.UNSAFE_componentWillUpdate!=&quot;function&quot;&amp;&amp;typeof a.componentWillUpdate!=&quot;function&quot;||(typeof a.componentWillUpdate==&quot;function&quot;&amp;&amp;a.componentWillUpdate(i,$,s),typeof a.UNSAFE_componentWillUpdate==&quot;function&quot;&amp;&amp;a.UNSAFE_componentWillUpdate(i,$,s)),typeof a.componentDidUpdate==&quot;function&quot;&amp;&amp;(t.flags|=4),typeof a.getSnapshotBeforeUpdate==&quot;function&quot;&amp;&amp;(t.flags|=1024)):(typeof a.componentDidUpdate!=&quot;function&quot;||u===e.memoizedProps&amp;&amp;v===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=&quot;function&quot;||u===e.memoizedProps&amp;&amp;v===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=$),a.props=i,a.state=$,a.context=s,i=l):(typeof a.componentDidUpdate!=&quot;function&quot;||u===e.memoizedProps&amp;&amp;v===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=&quot;function&quot;||u===e.memoizedProps&amp;&amp;v===e.memoizedState||(t.flags|=1024),i=!1)}return jl(e,t,n,i,o,r)}function jl(e,t,n,i,r,o){pg(e,t);var a=(t.flags&amp;128)!==0;if(!i&amp;&amp;!a)return r&amp;&amp;Xm(t,n,!1),vn(e,t,o);i=t.stateNode,B1.current=t;var u=a&amp;&amp;typeof n.getDerivedStateFromError!=&quot;function&quot;?null:i.render();return t.flags|=1,e!==null&amp;&amp;a?(t.child=gi(t,e.child,null,o),t.child=gi(t,null,u,o)):qe(e,t,u,o),t.memoizedState=i.state,r&amp;&amp;Xm(t,n,!0),t.child}function hg(e){var t=e.stateNode;t.pendingContext?Qm(e,t.pendingContext,t.pendingContext!==t.context):t.context&amp;&amp;Qm(e,t.context,!1),nd(e,t.containerInfo)}function mp(e,t,n,i,r){return vi(),Qc(r),t.flags|=256,qe(e,t,n,i),t.child}var Tl={dehydrated:null,treeContext:null,retryLane:0};function Pl(e){return{baseLanes:e,cachePool:null,transitions:null}}function vg(e,t,n){var i=t.pendingProps,r=be.current,o=!1,a=(t.flags&amp;128)!==0,u;if((u=a)||(u=e!==null&amp;&amp;e.memoizedState===null?!1:(r&amp;2)!==0),u?(o=!0,t.flags&amp;=-129):(e===null||e.memoizedState!==null)&amp;&amp;(r|=1),ge(be,r&amp;1),e===null)return bl(t),e=t.memoizedState,e!==null&amp;&amp;(e=e.dehydrated,e!==null)?(t.mode&amp;1?e.data===&quot;$!&quot;?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=i.children,e=i.fallback,o?(i=t.mode,o=t.child,a={mode:&quot;hidden&quot;,children:a},!(i&amp;1)&amp;&amp;o!==null?(o.childLanes=0,o.pendingProps=a):o=Wu(a,i,0,null),e=hr(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Pl(n),t.memoizedState=Tl,e):cd(t,a));if(r=e.memoizedState,r!==null&amp;&amp;(u=r.dehydrated,u!==null))return V1(e,t,a,i,u,r,n);if(o){o=i.fallback,a=t.mode,r=e.child,u=r.sibling;var s={mode:&quot;hidden&quot;,children:i.children};return!(a&amp;1)&amp;&amp;t.child!==r?(i=t.child,i.childLanes=0,i.pendingProps=s,t.deletions=null):(i=Mn(r,s),i.subtreeFlags=r.subtreeFlags&amp;14680064),u!==null?o=Mn(u,o):(o=hr(o,a,n,null),o.flags|=2),o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,a=e.child.memoizedState,a=a===null?Pl(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&amp;~n,t.memoizedState=Tl,i}return o=e.child,e=o.sibling,i=Mn(o,{mode:&quot;visible&quot;,children:i.children}),!(t.mode&amp;1)&amp;&amp;(i.lanes=n),i.return=t,i.sibling=null,e!==null&amp;&amp;(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function cd(e,t){return t=Wu({mode:&quot;visible&quot;,children:t},e.mode,0,null),t.return=e,e.child=t}function ha(e,t,n,i){return i!==null&amp;&amp;Qc(i),gi(t,e.child,null,n),e=cd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function V1(e,t,n,i,r,o,a){if(n)return t.flags&amp;256?(t.flags&amp;=-257,i=Rs(Error(U(422))),ha(e,t,a,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=i.fallback,r=t.mode,i=Wu({mode:&quot;visible&quot;,children:i.children},r,0,null),o=hr(o,r,a,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&amp;1&amp;&amp;gi(t,e.child,null,a),t.child.memoizedState=Pl(a),t.memoizedState=Tl,o);if(!(t.mode&amp;1))return ha(e,t,a,null);if(r.data===&quot;$!&quot;){if(i=r.nextSibling&amp;&amp;r.nextSibling.dataset,i)var u=i.dgst;return i=u,o=Error(U(419)),i=Rs(o,i,void 0),ha(e,t,a,i)}if(u=(a&amp;e.childLanes)!==0,st||u){if(i=Ve,i!==null){switch(a&amp;-a){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&amp;(i.suspendedLanes|a)?0:r,r!==0&amp;&amp;r!==o.retryLane&amp;&amp;(o.retryLane=r,hn(e,r),Bt(i,e,r,-1))}return vd(),i=Rs(Error(U(421))),ha(e,t,a,i)}return r.data===&quot;$?&quot;?(t.flags|=128,t.child=e.child,t=rS.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,gt=Dn(r.nextSibling),_t=t,xe=!0,Mt=null,e!==null&amp;&amp;(xt[bt++]=ln,xt[bt++]=cn,xt[bt++]=_r,ln=e.id,cn=e.overflow,_r=t),t=cd(t,i.children),t.flags|=4096,t)}function pp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&amp;&amp;(i.lanes|=t),Il(e.return,t,n)}function Zs(e,t,n,i,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function gg(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(qe(e,t,i.children,n),i=be.current,i&amp;2)i=i&amp;1|2,t.flags|=128;else{if(e!==null&amp;&amp;e.flags&amp;128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&amp;&amp;pp(e,n,t);else if(e.tag===19)pp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&amp;=1}if(ge(be,i),!(t.mode&amp;1))t.memoizedState=null;else switch(r){case&quot;forwards&quot;:for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&amp;&amp;au(e)===null&amp;&amp;(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Zs(t,!1,r,n,o);break;case&quot;backwards&quot;:for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&amp;&amp;au(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Zs(t,!0,n,null,o);break;case&quot;together&quot;:Zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Pa(e,t){!(t.mode&amp;1)&amp;&amp;e!==null&amp;&amp;(e.alternate=null,t.alternate=null,t.flags|=2)}function vn(e,t,n){if(e!==null&amp;&amp;(t.dependencies=e.dependencies),$r|=t.lanes,!(n&amp;t.childLanes))return null;if(e!==null&amp;&amp;t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=Mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function W1(e,t,n){switch(t.tag){case 3:hg(t),vi();break;case 5:Bv(t);break;case 1:ct(t.type)&amp;&amp;eu(t);break;case 4:nd(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;ge(ru,i._currentValue),i._currentValue=r;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(ge(be,be.current&amp;1),t.flags|=128,null):n&amp;t.child.childLanes?vg(e,t,n):(ge(be,be.current&amp;1),e=vn(e,t,n),e!==null?e.sibling:null);ge(be,be.current&amp;1);break;case 19:if(i=(n&amp;t.childLanes)!==0,e.flags&amp;128){if(i)return gg(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&amp;&amp;(r.rendering=null,r.tail=null,r.lastEffect=null),ge(be,be.current),i)break;return null;case 22:case 23:return t.lanes=0,mg(e,t,n)}return vn(e,t,n)}var yg,Ul,_g,wg;yg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&amp;&amp;n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ul=function(){};_g=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,ur(tn.current);var o=null;switch(n){case&quot;input&quot;:r=nl(e,r),i=nl(e,i),o=[];break;case&quot;select&quot;:r=ze({},r,{value:void 0}),i=ze({},i,{value:void 0}),o=[];break;case&quot;textarea&quot;:r=ol(e,r),i=ol(e,i),o=[];break;default:typeof r.onClick!=&quot;function&quot;&amp;&amp;typeof i.onClick==&quot;function&quot;&amp;&amp;(e.onclick=Ya)}ul(n,i);var a;n=null;for(l in r)if(!i.hasOwnProperty(l)&amp;&amp;r.hasOwnProperty(l)&amp;&amp;r[l]!=null)if(l===&quot;style&quot;){var u=r[l];for(a in u)u.hasOwnProperty(a)&amp;&amp;(n||(n={}),n[a]=&quot;&quot;)}else l!==&quot;dangerouslySetInnerHTML&quot;&amp;&amp;l!==&quot;children&quot;&amp;&amp;l!==&quot;suppressContentEditableWarning&quot;&amp;&amp;l!==&quot;suppressHydrationWarning&quot;&amp;&amp;l!==&quot;autoFocus&quot;&amp;&amp;(po.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in i){var s=i[l];if(u=r!=null?r[l]:void 0,i.hasOwnProperty(l)&amp;&amp;s!==u&amp;&amp;(s!=null||u!=null))if(l===&quot;style&quot;)if(u){for(a in u)!u.hasOwnProperty(a)||s&amp;&amp;s.hasOwnProperty(a)||(n||(n={}),n[a]=&quot;&quot;);for(a in s)s.hasOwnProperty(a)&amp;&amp;u[a]!==s[a]&amp;&amp;(n||(n={}),n[a]=s[a])}else n||(o||(o=[]),o.push(l,n)),n=s;else l===&quot;dangerouslySetInnerHTML&quot;?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&amp;&amp;u!==s&amp;&amp;(o=o||[]).push(l,s)):l===&quot;children&quot;?typeof s!=&quot;string&quot;&amp;&amp;typeof s!=&quot;number&quot;||(o=o||[]).push(l,&quot;&quot;+s):l!==&quot;suppressContentEditableWarning&quot;&amp;&amp;l!==&quot;suppressHydrationWarning&quot;&amp;&amp;(po.hasOwnProperty(l)?(s!=null&amp;&amp;l===&quot;onScroll&quot;&amp;&amp;_e(&quot;scroll&quot;,e),o||u===s||(o=[])):(o=o||[]).push(l,s))}n&amp;&amp;(o=o||[]).push(&quot;style&quot;,n);var l=o;(t.updateQueue=l)&amp;&amp;(t.flags|=4)}};wg=function(e,t,n,i){n!==i&amp;&amp;(t.flags|=4)};function Fi(e,t){if(!xe)switch(e.tailMode){case&quot;hidden&quot;:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&amp;&amp;(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case&quot;collapsed&quot;:n=e.tail;for(var i=null;n!==null;)n.alternate!==null&amp;&amp;(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Qe(e){var t=e.alternate!==null&amp;&amp;e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&amp;14680064,i|=r.flags&amp;14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function J1(e,t,n){var i=t.pendingProps;switch(Gc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return ct(t.type)&amp;&amp;qa(),Qe(t),null;case 3:return i=t.stateNode,yi(),ke(lt),ke(Ye),id(),i.pendingContext&amp;&amp;(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&amp;&amp;(ma(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&amp;&amp;!(t.flags&amp;256)||(t.flags|=1024,Mt!==null&amp;&amp;(Fl(Mt),Mt=null))),Ul(e,t),Qe(t),null;case 5:rd(t);var r=ur(Io.current);if(n=t.type,e!==null&amp;&amp;t.stateNode!=null)_g(e,t,n,i,r),e.ref!==t.ref&amp;&amp;(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(U(166));return Qe(t),null}if(e=ur(tn.current),ma(t)){i=t.stateNode,n=t.type;var o=t.memoizedProps;switch(i[qt]=t,i[xo]=o,e=(t.mode&amp;1)!==0,n){case&quot;dialog&quot;:_e(&quot;cancel&quot;,i),_e(&quot;close&quot;,i);break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:_e(&quot;load&quot;,i);break;case&quot;video&quot;:case&quot;audio&quot;:for(r=0;r&lt;Gi.length;r++)_e(Gi[r],i);break;case&quot;source&quot;:_e(&quot;error&quot;,i);break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:_e(&quot;error&quot;,i),_e(&quot;load&quot;,i);break;case&quot;details&quot;:_e(&quot;toggle&quot;,i);break;case&quot;input&quot;:Sm(i,o),_e(&quot;invalid&quot;,i);break;case&quot;select&quot;:i._wrapperState={wasMultiple:!!o.multiple},_e(&quot;invalid&quot;,i);break;case&quot;textarea&quot;:bm(i,o),_e(&quot;invalid&quot;,i)}ul(n,o),r=null;for(var a in o)if(o.hasOwnProperty(a)){var u=o[a];a===&quot;children&quot;?typeof u==&quot;string&quot;?i.textContent!==u&amp;&amp;(o.suppressHydrationWarning!==!0&amp;&amp;fa(i.textContent,u,e),r=[&quot;children&quot;,u]):typeof u==&quot;number&quot;&amp;&amp;i.textContent!==&quot;&quot;+u&amp;&amp;(o.suppressHydrationWarning!==!0&amp;&amp;fa(i.textContent,u,e),r=[&quot;children&quot;,&quot;&quot;+u]):po.hasOwnProperty(a)&amp;&amp;u!=null&amp;&amp;a===&quot;onScroll&quot;&amp;&amp;_e(&quot;scroll&quot;,i)}switch(n){case&quot;input&quot;:ia(i),xm(i,o,!0);break;case&quot;textarea&quot;:ia(i),Im(i);break;case&quot;select&quot;:case&quot;option&quot;:break;default:typeof o.onClick==&quot;function&quot;&amp;&amp;(i.onclick=Ya)}i=r,t.updateQueue=i,i!==null&amp;&amp;(t.flags|=4)}else{a=r.nodeType===9?r:r.ownerDocument,e===&quot;http://www.w3.org/1999/xhtml&quot;&amp;&amp;(e=Hh(n)),e===&quot;http://www.w3.org/1999/xhtml&quot;?n===&quot;script&quot;?(e=a.createElement(&quot;div&quot;),e.innerHTML=&quot;&lt;script&gt;&lt;\/script&gt;&quot;,e=e.removeChild(e.firstChild)):typeof i.is==&quot;string&quot;?e=a.createElement(n,{is:i.is}):(e=a.createElement(n),n===&quot;select&quot;&amp;&amp;(a=e,i.multiple?a.multiple=!0:i.size&amp;&amp;(a.size=i.size))):e=a.createElementNS(e,n),e[qt]=t,e[xo]=i,yg(e,t,!1,!1),t.stateNode=e;e:{switch(a=sl(n,i),n){case&quot;dialog&quot;:_e(&quot;cancel&quot;,e),_e(&quot;close&quot;,e),r=i;break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:_e(&quot;load&quot;,e),r=i;break;case&quot;video&quot;:case&quot;audio&quot;:for(r=0;r&lt;Gi.length;r++)_e(Gi[r],e);r=i;break;case&quot;source&quot;:_e(&quot;error&quot;,e),r=i;break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:_e(&quot;error&quot;,e),_e(&quot;load&quot;,e),r=i;break;case&quot;details&quot;:_e(&quot;toggle&quot;,e),r=i;break;case&quot;input&quot;:Sm(e,i),r=nl(e,i),_e(&quot;invalid&quot;,e);break;case&quot;option&quot;:r=i;break;case&quot;select&quot;:e._wrapperState={wasMultiple:!!i.multiple},r=ze({},i,{value:void 0}),_e(&quot;invalid&quot;,e);break;case&quot;textarea&quot;:bm(e,i),r=ol(e,i),_e(&quot;invalid&quot;,e);break;default:r=i}ul(n,r),u=r;for(o in u)if(u.hasOwnProperty(o)){var s=u[o];o===&quot;style&quot;?Xh(e,s):o===&quot;dangerouslySetInnerHTML&quot;?(s=s?s.__html:void 0,s!=null&amp;&amp;Gh(e,s)):o===&quot;children&quot;?typeof s==&quot;string&quot;?(n!==&quot;textarea&quot;||s!==&quot;&quot;)&amp;&amp;ho(e,s):typeof s==&quot;number&quot;&amp;&amp;ho(e,&quot;&quot;+s):o!==&quot;suppressContentEditableWarning&quot;&amp;&amp;o!==&quot;suppressHydrationWarning&quot;&amp;&amp;o!==&quot;autoFocus&quot;&amp;&amp;(po.hasOwnProperty(o)?s!=null&amp;&amp;o===&quot;onScroll&quot;&amp;&amp;_e(&quot;scroll&quot;,e):s!=null&amp;&amp;Uc(e,o,s,a))}switch(n){case&quot;input&quot;:ia(e),xm(e,i,!1);break;case&quot;textarea&quot;:ia(e),Im(e);break;case&quot;option&quot;:i.value!=null&amp;&amp;e.setAttribute(&quot;value&quot;,&quot;&quot;+Bn(i.value));break;case&quot;select&quot;:e.multiple=!!i.multiple,o=i.value,o!=null?qr(e,!!i.multiple,o,!1):i.defaultValue!=null&amp;&amp;qr(e,!!i.multiple,i.defaultValue,!0);break;default:typeof r.onClick==&quot;function&quot;&amp;&amp;(e.onclick=Ya)}switch(n){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:i=!!i.autoFocus;break e;case&quot;img&quot;:i=!0;break e;default:i=!1}}i&amp;&amp;(t.flags|=4)}t.ref!==null&amp;&amp;(t.flags|=512,t.flags|=2097152)}return Qe(t),null;case 6:if(e&amp;&amp;t.stateNode!=null)wg(e,t,e.memoizedProps,i);else{if(typeof i!=&quot;string&quot;&amp;&amp;t.stateNode===null)throw Error(U(166));if(n=ur(Io.current),ur(tn.current),ma(t)){if(i=t.stateNode,n=t.memoizedProps,i[qt]=t,(o=i.nodeValue!==n)&amp;&amp;(e=_t,e!==null))switch(e.tag){case 3:fa(i.nodeValue,n,(e.mode&amp;1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&amp;&amp;fa(i.nodeValue,n,(e.mode&amp;1)!==0)}o&amp;&amp;(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[qt]=t,t.stateNode=i}return Qe(t),null;case 13:if(ke(be),i=t.memoizedState,e===null||e.memoizedState!==null&amp;&amp;e.memoizedState.dehydrated!==null){if(xe&amp;&amp;gt!==null&amp;&amp;t.mode&amp;1&amp;&amp;!(t.flags&amp;128))Rv(),vi(),t.flags|=98560,o=!1;else if(o=ma(t),i!==null&amp;&amp;i.dehydrated!==null){if(e===null){if(!o)throw Error(U(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(U(317));o[qt]=t}else vi(),!(t.flags&amp;128)&amp;&amp;(t.memoizedState=null),t.flags|=4;Qe(t),o=!1}else Mt!==null&amp;&amp;(Fl(Mt),Mt=null),o=!0;if(!o)return t.flags&amp;65536?t:null}return t.flags&amp;128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&amp;&amp;e.memoizedState!==null)&amp;&amp;i&amp;&amp;(t.child.flags|=8192,t.mode&amp;1&amp;&amp;(e===null||be.current&amp;1?Le===0&amp;&amp;(Le=3):vd())),t.updateQueue!==null&amp;&amp;(t.flags|=4),Qe(t),null);case 4:return yi(),Ul(e,t),e===null&amp;&amp;ko(t.stateNode.containerInfo),Qe(t),null;case 10:return qc(t.type._context),Qe(t),null;case 17:return ct(t.type)&amp;&amp;qa(),Qe(t),null;case 19:if(ke(be),o=t.memoizedState,o===null)return Qe(t),null;if(i=(t.flags&amp;128)!==0,a=o.rendering,a===null)if(i)Fi(o,!1);else{if(Le!==0||e!==null&amp;&amp;e.flags&amp;128)for(e=t.child;e!==null;){if(a=au(e),a!==null){for(t.flags|=128,Fi(o,!1),i=a.updateQueue,i!==null&amp;&amp;(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)o=n,e=i,o.flags&amp;=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(be,be.current&amp;1|2),t.child}e=e.sibling}o.tail!==null&amp;&amp;je()&gt;wi&amp;&amp;(t.flags|=128,i=!0,Fi(o,!1),t.lanes=4194304)}else{if(!i)if(e=au(a),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&amp;&amp;(t.updateQueue=n,t.flags|=4),Fi(o,!0),o.tail===null&amp;&amp;o.tailMode===&quot;hidden&quot;&amp;&amp;!a.alternate&amp;&amp;!xe)return Qe(t),null}else 2*je()-o.renderingStartTime&gt;wi&amp;&amp;n!==1073741824&amp;&amp;(t.flags|=128,i=!0,Fi(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=je(),t.sibling=null,n=be.current,ge(be,i?n&amp;1|2:n&amp;1),t):(Qe(t),null);case 22:case 23:return hd(),i=t.memoizedState!==null,e!==null&amp;&amp;e.memoizedState!==null!==i&amp;&amp;(t.flags|=8192),i&amp;&amp;t.mode&amp;1?ht&amp;1073741824&amp;&amp;(Qe(t),t.subtreeFlags&amp;6&amp;&amp;(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function K1(e,t){switch(Gc(t),t.tag){case 1:return ct(t.type)&amp;&amp;qa(),e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 3:return yi(),ke(lt),ke(Ye),id(),e=t.flags,e&amp;65536&amp;&amp;!(e&amp;128)?(t.flags=e&amp;-65537|128,t):null;case 5:return rd(t),null;case 13:if(ke(be),e=t.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));vi()}return e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 19:return ke(be),null;case 4:return yi(),null;case 10:return qc(t.type._context),null;case 22:case 23:return hd(),null;case 24:return null;default:return null}}var va=!1,Xe=!1,H1=typeof WeakSet==&quot;function&quot;?WeakSet:Set,B=null;function Kr(e,t){var n=e.ref;if(n!==null)if(typeof n==&quot;function&quot;)try{n(null)}catch(i){Ee(e,t,i)}else n.current=null}function Cl(e,t,n){try{n()}catch(i){Ee(e,t,i)}}var hp=!1;function G1(e,t){if(yl=Ga,e=bv(),Kc(e)){if(&quot;selectionStart&quot;in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&amp;&amp;n.defaultView||window;var i=n.getSelection&amp;&amp;n.getSelection();if(i&amp;&amp;i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,u=-1,s=-1,l=0,m=0,p=e,v=null;t:for(;;){for(var _;p!==n||r!==0&amp;&amp;p.nodeType!==3||(u=a+r),p!==o||i!==0&amp;&amp;p.nodeType!==3||(s=a+i),p.nodeType===3&amp;&amp;(a+=p.nodeValue.length),(_=p.firstChild)!==null;)v=p,p=_;for(;;){if(p===e)break t;if(v===n&amp;&amp;++l===r&amp;&amp;(u=a),v===o&amp;&amp;++m===i&amp;&amp;(s=a),(_=p.nextSibling)!==null)break;p=v,v=p.parentNode}p=_}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(_l={focusedElem:e,selectionRange:n},Ga=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&amp;1028)!==0&amp;&amp;e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var $=t.alternate;if(t.flags&amp;1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if($!==null){var E=$.memoizedProps,N=$.memoizedState,c=t.stateNode,d=c.getSnapshotBeforeUpdate(t.elementType===t.type?E:Rt(t.type,E),N);c.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent=&quot;&quot;:f.nodeType===9&amp;&amp;f.documentElement&amp;&amp;f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(k){Ee(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return $=hp,hp=!1,$}function so(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&amp;e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&amp;&amp;Cl(t,n,o)}r=r.next}while(r!==i)}}function Bu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&amp;e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Al(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==&quot;function&quot;?t(e):t.current=e}}function $g(e){var t=e.alternate;t!==null&amp;&amp;(e.alternate=null,$g(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&amp;&amp;(t=e.stateNode,t!==null&amp;&amp;(delete t[qt],delete t[xo],delete t[kl],delete t[j1],delete t[T1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kg(e){return e.tag===5||e.tag===3||e.tag===4}function vp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==18;){if(e.flags&amp;2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&amp;2))return e.stateNode}}function Dl(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ya));else if(i!==4&amp;&amp;(e=e.child,e!==null))for(Dl(e,t,n),e=e.sibling;e!==null;)Dl(e,t,n),e=e.sibling}function Rl(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&amp;&amp;(e=e.child,e!==null))for(Rl(e,t,n),e=e.sibling;e!==null;)Rl(e,t,n),e=e.sibling}var Je=null,Lt=!1;function wn(e,t,n){for(n=n.child;n!==null;)Sg(e,t,n),n=n.sibling}function Sg(e,t,n){if(en&amp;&amp;typeof en.onCommitFiberUnmount==&quot;function&quot;)try{en.onCommitFiberUnmount(Cu,n)}catch{}switch(n.tag){case 5:Xe||Kr(n,t);case 6:var i=Je,r=Lt;Je=null,wn(e,t,n),Je=i,Lt=r,Je!==null&amp;&amp;(Lt?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&amp;&amp;(Lt?(e=Je,n=n.stateNode,e.nodeType===8?Ts(e.parentNode,n):e.nodeType===1&amp;&amp;Ts(e,n),_o(e)):Ts(Je,n.stateNode));break;case 4:i=Je,r=Lt,Je=n.stateNode.containerInfo,Lt=!0,wn(e,t,n),Je=i,Lt=r;break;case 0:case 11:case 14:case 15:if(!Xe&amp;&amp;(i=n.updateQueue,i!==null&amp;&amp;(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,a=o.destroy;o=o.tag,a!==void 0&amp;&amp;(o&amp;2||o&amp;4)&amp;&amp;Cl(n,t,a),r=r.next}while(r!==i)}wn(e,t,n);break;case 1:if(!Xe&amp;&amp;(Kr(n,t),i=n.stateNode,typeof i.componentWillUnmount==&quot;function&quot;))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(u){Ee(n,t,u)}wn(e,t,n);break;case 21:wn(e,t,n);break;case 22:n.mode&amp;1?(Xe=(i=Xe)||n.memoizedState!==null,wn(e,t,n),Xe=i):wn(e,t,n);break;default:wn(e,t,n)}}function gp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&amp;&amp;(n=e.stateNode=new H1),t.forEach(function(i){var r=iS.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function At(e,t){var n=t.deletions;if(n!==null)for(var i=0;i&lt;n.length;i++){var r=n[i];try{var o=e,a=t,u=a;e:for(;u!==null;){switch(u.tag){case 5:Je=u.stateNode,Lt=!1;break e;case 3:Je=u.stateNode.containerInfo,Lt=!0;break e;case 4:Je=u.stateNode.containerInfo,Lt=!0;break e}u=u.return}if(Je===null)throw Error(U(160));Sg(o,a,r),Je=null,Lt=!1;var s=r.alternate;s!==null&amp;&amp;(s.return=null),r.return=null}catch(l){Ee(r,t,l)}}if(t.subtreeFlags&amp;12854)for(t=t.child;t!==null;)xg(t,e),t=t.sibling}function xg(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(At(t,e),Ht(e),i&amp;4){try{so(3,e,e.return),Bu(3,e)}catch(E){Ee(e,e.return,E)}try{so(5,e,e.return)}catch(E){Ee(e,e.return,E)}}break;case 1:At(t,e),Ht(e),i&amp;512&amp;&amp;n!==null&amp;&amp;Kr(n,n.return);break;case 5:if(At(t,e),Ht(e),i&amp;512&amp;&amp;n!==null&amp;&amp;Kr(n,n.return),e.flags&amp;32){var r=e.stateNode;try{ho(r,&quot;&quot;)}catch(E){Ee(e,e.return,E)}}if(i&amp;4&amp;&amp;(r=e.stateNode,r!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u===&quot;input&quot;&amp;&amp;o.type===&quot;radio&quot;&amp;&amp;o.name!=null&amp;&amp;Jh(r,o),sl(u,a);var l=sl(u,o);for(a=0;a&lt;s.length;a+=2){var m=s[a],p=s[a+1];m===&quot;style&quot;?Xh(r,p):m===&quot;dangerouslySetInnerHTML&quot;?Gh(r,p):m===&quot;children&quot;?ho(r,p):Uc(r,m,p,l)}switch(u){case&quot;input&quot;:rl(r,o);break;case&quot;textarea&quot;:Kh(r,o);break;case&quot;select&quot;:var v=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var _=o.value;_!=null?qr(r,!!o.multiple,_,!1):v!==!!o.multiple&amp;&amp;(o.defaultValue!=null?qr(r,!!o.multiple,o.defaultValue,!0):qr(r,!!o.multiple,o.multiple?[]:&quot;&quot;,!1))}r[xo]=o}catch(E){Ee(e,e.return,E)}}break;case 6:if(At(t,e),Ht(e),i&amp;4){if(e.stateNode===null)throw Error(U(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(E){Ee(e,e.return,E)}}break;case 3:if(At(t,e),Ht(e),i&amp;4&amp;&amp;n!==null&amp;&amp;n.memoizedState.isDehydrated)try{_o(t.containerInfo)}catch(E){Ee(e,e.return,E)}break;case 4:At(t,e),Ht(e);break;case 13:At(t,e),Ht(e),r=e.child,r.flags&amp;8192&amp;&amp;(o=r.memoizedState!==null,r.stateNode.isHidden=o,!o||r.alternate!==null&amp;&amp;r.alternate.memoizedState!==null||(md=je())),i&amp;4&amp;&amp;gp(e);break;case 22:if(m=n!==null&amp;&amp;n.memoizedState!==null,e.mode&amp;1?(Xe=(l=Xe)||m,At(t,e),Xe=l):At(t,e),Ht(e),i&amp;8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&amp;&amp;!m&amp;&amp;e.mode&amp;1)for(B=e,m=e.child;m!==null;){for(p=B=m;B!==null;){switch(v=B,_=v.child,v.tag){case 0:case 11:case 14:case 15:so(4,v,v.return);break;case 1:Kr(v,v.return);var $=v.stateNode;if(typeof $.componentWillUnmount==&quot;function&quot;){i=v,n=v.return;try{t=i,$.props=t.memoizedProps,$.state=t.memoizedState,$.componentWillUnmount()}catch(E){Ee(i,n,E)}}break;case 5:Kr(v,v.return);break;case 22:if(v.memoizedState!==null){_p(p);continue}}_!==null?(_.return=v,B=_):_p(p)}m=m.sibling}e:for(m=null,p=e;;){if(p.tag===5){if(m===null){m=p;try{r=p.stateNode,l?(o=r.style,typeof o.setProperty==&quot;function&quot;?o.setProperty(&quot;display&quot;,&quot;none&quot;,&quot;important&quot;):o.display=&quot;none&quot;):(u=p.stateNode,s=p.memoizedProps.style,a=s!=null&amp;&amp;s.hasOwnProperty(&quot;display&quot;)?s.display:null,u.style.display=Qh(&quot;display&quot;,a))}catch(E){Ee(e,e.return,E)}}}else if(p.tag===6){if(m===null)try{p.stateNode.nodeValue=l?&quot;&quot;:p.memoizedProps}catch(E){Ee(e,e.return,E)}}else if((p.tag!==22&amp;&amp;p.tag!==23||p.memoizedState===null||p===e)&amp;&amp;p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;m===p&amp;&amp;(m=null),p=p.return}m===p&amp;&amp;(m=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:At(t,e),Ht(e),i&amp;4&amp;&amp;gp(e);break;case 21:break;default:At(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&amp;2){try{e:{for(var n=e.return;n!==null;){if(kg(n)){var i=n;break e}n=n.return}throw Error(U(160))}switch(i.tag){case 5:var r=i.stateNode;i.flags&amp;32&amp;&amp;(ho(r,&quot;&quot;),i.flags&amp;=-33);var o=vp(e);Rl(e,o,r);break;case 3:case 4:var a=i.stateNode.containerInfo,u=vp(e);Dl(e,u,a);break;default:throw Error(U(161))}}catch(s){Ee(e,e.return,s)}e.flags&amp;=-3}t&amp;4096&amp;&amp;(e.flags&amp;=-4097)}function Q1(e,t,n){B=e,bg(e)}function bg(e,t,n){for(var i=(e.mode&amp;1)!==0;B!==null;){var r=B,o=r.child;if(r.tag===22&amp;&amp;i){var a=r.memoizedState!==null||va;if(!a){var u=r.alternate,s=u!==null&amp;&amp;u.memoizedState!==null||Xe;u=va;var l=Xe;if(va=a,(Xe=s)&amp;&amp;!l)for(B=r;B!==null;)a=B,s=a.child,a.tag===22&amp;&amp;a.memoizedState!==null?wp(r):s!==null?(s.return=a,B=s):wp(r);for(;o!==null;)B=o,bg(o),o=o.sibling;B=r,va=u,Xe=l}yp(e)}else r.subtreeFlags&amp;8772&amp;&amp;o!==null?(o.return=r,B=o):yp(e)}}function yp(e){for(;B!==null;){var t=B;if(t.flags&amp;8772){var n=t.alternate;try{if(t.flags&amp;8772)switch(t.tag){case 0:case 11:case 15:Xe||Bu(5,t);break;case 1:var i=t.stateNode;if(t.flags&amp;4&amp;&amp;!Xe)if(n===null)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:Rt(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&amp;&amp;np(t,o,i);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}np(t,a,n)}break;case 5:var u=t.stateNode;if(n===null&amp;&amp;t.flags&amp;4){n=u;var s=t.memoizedProps;switch(t.type){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:s.autoFocus&amp;&amp;n.focus();break;case&quot;img&quot;:s.src&amp;&amp;(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var m=l.memoizedState;if(m!==null){var p=m.dehydrated;p!==null&amp;&amp;_o(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Xe||t.flags&amp;512&amp;&amp;Al(t)}catch(v){Ee(t,t.return,v)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function _p(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function wp(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bu(4,t)}catch(s){Ee(t,n,s)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount==&quot;function&quot;){var r=t.return;try{i.componentDidMount()}catch(s){Ee(t,r,s)}}var o=t.return;try{Al(t)}catch(s){Ee(t,o,s)}break;case 5:var a=t.return;try{Al(t)}catch(s){Ee(t,a,s)}}}catch(s){Ee(t,t.return,s)}if(t===e){B=null;break}var u=t.sibling;if(u!==null){u.return=t.return,B=u;break}B=t.return}}var X1=Math.ceil,lu=yn.ReactCurrentDispatcher,dd=yn.ReactCurrentOwner,jt=yn.ReactCurrentBatchConfig,le=0,Ve=null,Ue=null,Ke=0,ht=0,Hr=Hn(0),Le=0,No=null,$r=0,Vu=0,fd=0,lo=null,at=null,md=0,wi=1/0,on=null,cu=!1,Zl=null,Zn=null,ga=!1,Tn=null,du=0,co=0,Ll=null,Ua=-1,Ca=0;function tt(){return le&amp;6?je():Ua!==-1?Ua:Ua=je()}function Ln(e){return e.mode&amp;1?le&amp;2&amp;&amp;Ke!==0?Ke&amp;-Ke:U1.transition!==null?(Ca===0&amp;&amp;(Ca=lv()),Ca):(e=he,e!==0||(e=window.event,e=e===void 0?16:vv(e.type)),e):1}function Bt(e,t,n,i){if(50&lt;co)throw co=0,Ll=null,Error(U(185));Jo(e,n,i),(!(le&amp;2)||e!==Ve)&amp;&amp;(e===Ve&amp;&amp;(!(le&amp;2)&amp;&amp;(Vu|=n),Le===4&amp;&amp;In(e,Ke)),dt(e,i),n===1&amp;&amp;le===0&amp;&amp;!(t.mode&amp;1)&amp;&amp;(wi=je()+500,Lu&amp;&amp;Gn()))}function dt(e,t){var n=e.callbackNode;Uk(e,t);var i=Ha(e,e===Ve?Ke:0);if(i===0)n!==null&amp;&amp;Em(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&amp;-i,e.callbackPriority!==t){if(n!=null&amp;&amp;Em(n),t===1)e.tag===0?P1($p.bind(null,e)):Cv($p.bind(null,e)),E1(function(){!(le&amp;6)&amp;&amp;Gn()}),n=null;else{switch(cv(i)){case 1:n=Zc;break;case 4:n=uv;break;case 16:n=Ka;break;case 536870912:n=sv;break;default:n=Ka}n=Pg(n,Ig.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ig(e,t){if(Ua=-1,Ca=0,le&amp;6)throw Error(U(327));var n=e.callbackNode;if(ii()&amp;&amp;e.callbackNode!==n)return null;var i=Ha(e,e===Ve?Ke:0);if(i===0)return null;if(i&amp;30||i&amp;e.expiredLanes||t)t=fu(e,i);else{t=i;var r=le;le|=2;var o=Og();(Ve!==e||Ke!==t)&amp;&amp;(on=null,wi=je()+500,pr(e,t));do try{eS();break}catch(u){zg(e,u)}while(!0);Yc(),lu.current=o,le=r,Ue!==null?t=0:(Ve=null,Ke=0,t=Le)}if(t!==0){if(t===2&amp;&amp;(r=ml(e),r!==0&amp;&amp;(i=r,t=Ml(e,r))),t===1)throw n=No,pr(e,0),In(e,i),dt(e,je()),n;if(t===6)In(e,i);else{if(r=e.current.alternate,!(i&amp;30)&amp;&amp;!Y1(r)&amp;&amp;(t=fu(e,i),t===2&amp;&amp;(o=ml(e),o!==0&amp;&amp;(i=o,t=Ml(e,o))),t===1))throw n=No,pr(e,0),In(e,i),dt(e,je()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(U(345));case 2:tr(e,at,on);break;case 3:if(In(e,i),(i&amp;130023424)===i&amp;&amp;(t=md+500-je(),10&lt;t)){if(Ha(e,0)!==0)break;if(r=e.suspendedLanes,(r&amp;i)!==i){tt(),e.pingedLanes|=e.suspendedLanes&amp;r;break}e.timeoutHandle=$l(tr.bind(null,e,at,on),t);break}tr(e,at,on);break;case 4:if(In(e,i),(i&amp;4194240)===i)break;for(t=e.eventTimes,r=-1;0&lt;i;){var a=31-Ft(i);o=1&lt;&lt;a,a=t[a],a&gt;r&amp;&amp;(r=a),i&amp;=~o}if(i=r,i=je()-i,i=(120&gt;i?120:480&gt;i?480:1080&gt;i?1080:1920&gt;i?1920:3e3&gt;i?3e3:4320&gt;i?4320:1960*X1(i/1960))-i,10&lt;i){e.timeoutHandle=$l(tr.bind(null,e,at,on),i);break}tr(e,at,on);break;case 5:tr(e,at,on);break;default:throw Error(U(329))}}}return dt(e,je()),e.callbackNode===n?Ig.bind(null,e):null}function Ml(e,t){var n=lo;return e.current.memoizedState.isDehydrated&amp;&amp;(pr(e,t).flags|=256),e=fu(e,t),e!==2&amp;&amp;(t=at,at=n,t!==null&amp;&amp;Fl(t)),e}function Fl(e){at===null?at=e:at.push.apply(at,e)}function Y1(e){for(var t=e;;){if(t.flags&amp;16384){var n=t.updateQueue;if(n!==null&amp;&amp;(n=n.stores,n!==null))for(var i=0;i&lt;n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!Wt(o(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&amp;16384&amp;&amp;n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function In(e,t){for(t&amp;=~fd,t&amp;=~Vu,e.suspendedLanes|=t,e.pingedLanes&amp;=~t,e=e.expirationTimes;0&lt;t;){var n=31-Ft(t),i=1&lt;&lt;n;e[n]=-1,t&amp;=~i}}function $p(e){if(le&amp;6)throw Error(U(327));ii();var t=Ha(e,0);if(!(t&amp;1))return dt(e,je()),null;var n=fu(e,t);if(e.tag!==0&amp;&amp;n===2){var i=ml(e);i!==0&amp;&amp;(t=i,n=Ml(e,i))}if(n===1)throw n=No,pr(e,0),In(e,t),dt(e,je()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,tr(e,at,on),dt(e,je()),null}function pd(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&amp;&amp;(wi=je()+500,Lu&amp;&amp;Gn())}}function kr(e){Tn!==null&amp;&amp;Tn.tag===0&amp;&amp;!(le&amp;6)&amp;&amp;ii();var t=le;le|=1;var n=jt.transition,i=he;try{if(jt.transition=null,he=1,e)return e()}finally{he=i,jt.transition=n,le=t,!(le&amp;6)&amp;&amp;Gn()}}function hd(){ht=Hr.current,ke(Hr)}function pr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&amp;&amp;(e.timeoutHandle=-1,O1(n)),Ue!==null)for(n=Ue.return;n!==null;){var i=n;switch(Gc(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&amp;&amp;qa();break;case 3:yi(),ke(lt),ke(Ye),id();break;case 5:rd(i);break;case 4:yi();break;case 13:ke(be);break;case 19:ke(be);break;case 10:qc(i.type._context);break;case 22:case 23:hd()}n=n.return}if(Ve=e,Ue=e=Mn(e.current,null),Ke=ht=t,Le=0,No=null,fd=Vu=$r=0,at=lo=null,ar!==null){for(t=0;t&lt;ar.length;t++)if(n=ar[t],i=n.interleaved,i!==null){n.interleaved=null;var r=i.next,o=n.pending;if(o!==null){var a=o.next;o.next=r,i.next=a}n.pending=i}ar=null}return e}function zg(e,t){do{var n=Ue;try{if(Yc(),ja.current=su,uu){for(var i=Ie.memoizedState;i!==null;){var r=i.queue;r!==null&amp;&amp;(r.pending=null),i=i.next}uu=!1}if(wr=0,Be=Re=Ie=null,uo=!1,zo=0,dd.current=null,n===null||n.return===null){Le=1,No=t,Ue=null;break}e:{var o=e,a=n.return,u=n,s=t;if(t=Ke,u.flags|=32768,s!==null&amp;&amp;typeof s==&quot;object&quot;&amp;&amp;typeof s.then==&quot;function&quot;){var l=s,m=u,p=m.tag;if(!(m.mode&amp;1)&amp;&amp;(p===0||p===11||p===15)){var v=m.alternate;v?(m.updateQueue=v.updateQueue,m.memoizedState=v.memoizedState,m.lanes=v.lanes):(m.updateQueue=null,m.memoizedState=null)}var _=sp(a);if(_!==null){_.flags&amp;=-257,lp(_,a,u,o,t),_.mode&amp;1&amp;&amp;up(o,l,t),t=_,s=l;var $=t.updateQueue;if($===null){var E=new Set;E.add(s),t.updateQueue=E}else $.add(s);break e}else{if(!(t&amp;1)){up(o,l,t),vd();break e}s=Error(U(426))}}else if(xe&amp;&amp;u.mode&amp;1){var N=sp(a);if(N!==null){!(N.flags&amp;65536)&amp;&amp;(N.flags|=256),lp(N,a,u,o,t),Qc(_i(s,u));break e}}o=s=_i(s,u),Le!==4&amp;&amp;(Le=2),lo===null?lo=[o]:lo.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&amp;=-t,o.lanes|=t;var c=cg(o,s,t);tp(o,c);break e;case 1:u=s;var d=o.type,f=o.stateNode;if(!(o.flags&amp;128)&amp;&amp;(typeof d.getDerivedStateFromError==&quot;function&quot;||f!==null&amp;&amp;typeof f.componentDidCatch==&quot;function&quot;&amp;&amp;(Zn===null||!Zn.has(f)))){o.flags|=65536,t&amp;=-t,o.lanes|=t;var k=dg(o,u,t);tp(o,k);break e}}o=o.return}while(o!==null)}Ng(n)}catch(I){t=I,Ue===n&amp;&amp;n!==null&amp;&amp;(Ue=n=n.return);continue}break}while(!0)}function Og(){var e=lu.current;return lu.current=su,e===null?su:e}function vd(){(Le===0||Le===3||Le===2)&amp;&amp;(Le=4),Ve===null||!($r&amp;268435455)&amp;&amp;!(Vu&amp;268435455)||In(Ve,Ke)}function fu(e,t){var n=le;le|=2;var i=Og();(Ve!==e||Ke!==t)&amp;&amp;(on=null,pr(e,t));do try{q1();break}catch(r){zg(e,r)}while(!0);if(Yc(),le=n,lu.current=i,Ue!==null)throw Error(U(261));return Ve=null,Ke=0,Le}function q1(){for(;Ue!==null;)Eg(Ue)}function eS(){for(;Ue!==null&amp;&amp;!bk();)Eg(Ue)}function Eg(e){var t=Tg(e.alternate,e,ht);e.memoizedProps=e.pendingProps,t===null?Ng(e):Ue=t,dd.current=null}function Ng(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&amp;32768){if(n=K1(n,t),n!==null){n.flags&amp;=32767,Ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Le=6,Ue=null;return}}else if(n=J1(n,t,ht),n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);Le===0&amp;&amp;(Le=5)}function tr(e,t,n){var i=he,r=jt.transition;try{jt.transition=null,he=1,tS(e,t,n,i)}finally{jt.transition=r,he=i}return null}function tS(e,t,n,i){do ii();while(Tn!==null);if(le&amp;6)throw Error(U(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ck(e,o),e===Ve&amp;&amp;(Ue=Ve=null,Ke=0),!(n.subtreeFlags&amp;2064)&amp;&amp;!(n.flags&amp;2064)||ga||(ga=!0,Pg(Ka,function(){return ii(),null})),o=(n.flags&amp;15990)!==0,n.subtreeFlags&amp;15990||o){o=jt.transition,jt.transition=null;var a=he;he=1;var u=le;le|=4,dd.current=null,G1(e,n),xg(n,e),$1(_l),Ga=!!yl,_l=yl=null,e.current=n,Q1(n),Ik(),le=u,he=a,jt.transition=o}else e.current=n;if(ga&amp;&amp;(ga=!1,Tn=e,du=r),o=e.pendingLanes,o===0&amp;&amp;(Zn=null),Ek(n.stateNode),dt(e,je()),t!==null)for(i=e.onRecoverableError,n=0;n&lt;t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(cu)throw cu=!1,e=Zl,Zl=null,e;return du&amp;1&amp;&amp;e.tag!==0&amp;&amp;ii(),o=e.pendingLanes,o&amp;1?e===Ll?co++:(co=0,Ll=e):co=0,Gn(),null}function ii(){if(Tn!==null){var e=cv(du),t=jt.transition,n=he;try{if(jt.transition=null,he=16&gt;e?16:e,Tn===null)var i=!1;else{if(e=Tn,Tn=null,du=0,le&amp;6)throw Error(U(331));var r=le;for(le|=4,B=e.current;B!==null;){var o=B,a=o.child;if(B.flags&amp;16){var u=o.deletions;if(u!==null){for(var s=0;s&lt;u.length;s++){var l=u[s];for(B=l;B!==null;){var m=B;switch(m.tag){case 0:case 11:case 15:so(8,m,o)}var p=m.child;if(p!==null)p.return=m,B=p;else for(;B!==null;){m=B;var v=m.sibling,_=m.return;if($g(m),m===l){B=null;break}if(v!==null){v.return=_,B=v;break}B=_}}}var $=o.alternate;if($!==null){var E=$.child;if(E!==null){$.child=null;do{var N=E.sibling;E.sibling=null,E=N}while(E!==null)}}B=o}}if(o.subtreeFlags&amp;2064&amp;&amp;a!==null)a.return=o,B=a;else e:for(;B!==null;){if(o=B,o.flags&amp;2048)switch(o.tag){case 0:case 11:case 15:so(9,o,o.return)}var c=o.sibling;if(c!==null){c.return=o.return,B=c;break e}B=o.return}}var d=e.current;for(B=d;B!==null;){a=B;var f=a.child;if(a.subtreeFlags&amp;2064&amp;&amp;f!==null)f.return=a,B=f;else e:for(a=d;B!==null;){if(u=B,u.flags&amp;2048)try{switch(u.tag){case 0:case 11:case 15:Bu(9,u)}}catch(I){Ee(u,u.return,I)}if(u===a){B=null;break e}var k=u.sibling;if(k!==null){k.return=u.return,B=k;break e}B=u.return}}if(le=r,Gn(),en&amp;&amp;typeof en.onPostCommitFiberRoot==&quot;function&quot;)try{en.onPostCommitFiberRoot(Cu,e)}catch{}i=!0}return i}finally{he=n,jt.transition=t}}return!1}function kp(e,t,n){t=_i(n,t),t=cg(e,t,1),e=Rn(e,t,1),t=tt(),e!==null&amp;&amp;(Jo(e,1,t),dt(e,t))}function Ee(e,t,n){if(e.tag===3)kp(e,e,n);else for(;t!==null;){if(t.tag===3){kp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError==&quot;function&quot;||typeof i.componentDidCatch==&quot;function&quot;&amp;&amp;(Zn===null||!Zn.has(i))){e=_i(n,e),e=dg(t,e,1),t=Rn(t,e,1),e=tt(),t!==null&amp;&amp;(Jo(t,1,e),dt(t,e));break}}t=t.return}}function nS(e,t,n){var i=e.pingCache;i!==null&amp;&amp;i.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&amp;n,Ve===e&amp;&amp;(Ke&amp;n)===n&amp;&amp;(Le===4||Le===3&amp;&amp;(Ke&amp;130023424)===Ke&amp;&amp;500&gt;je()-md?pr(e,0):fd|=n),dt(e,t)}function jg(e,t){t===0&amp;&amp;(e.mode&amp;1?(t=ua,ua&lt;&lt;=1,!(ua&amp;130023424)&amp;&amp;(ua=4194304)):t=1);var n=tt();e=hn(e,t),e!==null&amp;&amp;(Jo(e,t,n),dt(e,n))}function rS(e){var t=e.memoizedState,n=0;t!==null&amp;&amp;(n=t.retryLane),jg(e,n)}function iS(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&amp;&amp;(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(U(314))}i!==null&amp;&amp;i.delete(t),jg(e,n)}var Tg;Tg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)st=!0;else{if(!(e.lanes&amp;n)&amp;&amp;!(t.flags&amp;128))return st=!1,W1(e,t,n);st=!!(e.flags&amp;131072)}else st=!1,xe&amp;&amp;t.flags&amp;1048576&amp;&amp;Av(t,nu,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Pa(e,t),e=t.pendingProps;var r=hi(t,Ye.current);ri(t,n),r=ad(null,t,i,e,r,n);var o=ud();return t.flags|=1,typeof r==&quot;object&quot;&amp;&amp;r!==null&amp;&amp;typeof r.render==&quot;function&quot;&amp;&amp;r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ct(i)?(o=!0,eu(t)):o=!1,t.memoizedState=r.state!==null&amp;&amp;r.state!==void 0?r.state:null,td(t),r.updater=Fu,t.stateNode=r,r._reactInternals=t,Ol(t,i,e,n),t=jl(null,t,i,!0,o,n)):(t.tag=0,xe&amp;&amp;o&amp;&amp;Hc(t),qe(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Pa(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=aS(i),e=Rt(i,e),r){case 0:t=Nl(null,t,i,e,n);break e;case 1:t=fp(null,t,i,e,n);break e;case 11:t=cp(null,t,i,e,n);break e;case 14:t=dp(null,t,i,Rt(i.type,e),n);break e}throw Error(U(306,i,&quot;&quot;))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Rt(i,r),Nl(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Rt(i,r),fp(e,t,i,r,n);case 3:e:{if(hg(t),e===null)throw Error(U(387));i=t.pendingProps,o=t.memoizedState,r=o.element,Fv(e,t),ou(t,i,null,n);var a=t.memoizedState;if(i=a.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&amp;256){r=_i(Error(U(423)),t),t=mp(e,t,i,n,r);break e}else if(i!==r){r=_i(Error(U(424)),t),t=mp(e,t,i,n,r);break e}else for(gt=Dn(t.stateNode.containerInfo.firstChild),_t=t,xe=!0,Mt=null,n=Lv(t,null,i,n),t.child=n;n;)n.flags=n.flags&amp;-3|4096,n=n.sibling;else{if(vi(),i===r){t=vn(e,t,n);break e}qe(e,t,i,n)}t=t.child}return t;case 5:return Bv(t),e===null&amp;&amp;bl(t),i=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,a=r.children,wl(i,r)?a=null:o!==null&amp;&amp;wl(i,o)&amp;&amp;(t.flags|=32),pg(e,t),qe(e,t,a,n),t.child;case 6:return e===null&amp;&amp;bl(t),null;case 13:return vg(e,t,n);case 4:return nd(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=gi(t,null,i,n):qe(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Rt(i,r),cp(e,t,i,r,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,a=r.value,ge(ru,i._currentValue),i._currentValue=a,o!==null)if(Wt(o.value,a)){if(o.children===r.children&amp;&amp;!lt.current){t=vn(e,t,n);break e}}else for(o=t.child,o!==null&amp;&amp;(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){a=o.child;for(var s=u.firstContext;s!==null;){if(s.context===i){if(o.tag===1){s=fn(-1,n&amp;-n),s.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var m=l.pending;m===null?s.next=s:(s.next=m.next,m.next=s),l.pending=s}}o.lanes|=n,s=o.alternate,s!==null&amp;&amp;(s.lanes|=n),Il(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(U(341));a.lanes|=n,u=a.alternate,u!==null&amp;&amp;(u.lanes|=n),Il(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}qe(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,ri(t,n),r=Tt(r),i=i(r),t.flags|=1,qe(e,t,i,n),t.child;case 14:return i=t.type,r=Rt(i,t.pendingProps),r=Rt(i.type,r),dp(e,t,i,r,n);case 15:return fg(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Rt(i,r),Pa(e,t),t.tag=1,ct(i)?(e=!0,eu(t)):e=!1,ri(t,n),lg(t,i,r),Ol(t,i,r,n),jl(null,t,i,!0,e,n);case 19:return gg(e,t,n);case 22:return mg(e,t,n)}throw Error(U(156,t.tag))};function Pg(e,t){return av(e,t)}function oS(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,i){return new oS(e,t,n,i)}function gd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aS(e){if(typeof e==&quot;function&quot;)return gd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ac)return 11;if(e===Dc)return 14}return 2}function Mn(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&amp;14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Aa(e,t,n,i,r,o){var a=2;if(i=e,typeof e==&quot;function&quot;)gd(e)&amp;&amp;(a=1);else if(typeof e==&quot;string&quot;)a=5;else e:switch(e){case Rr:return hr(n.children,r,o,t);case Cc:a=8,r|=8;break;case Ys:return e=Et(12,n,t,r|2),e.elementType=Ys,e.lanes=o,e;case qs:return e=Et(13,n,t,r),e.elementType=qs,e.lanes=o,e;case el:return e=Et(19,n,t,r),e.elementType=el,e.lanes=o,e;case Bh:return Wu(n,r,o,t);default:if(typeof e==&quot;object&quot;&amp;&amp;e!==null)switch(e.$$typeof){case Mh:a=10;break e;case Fh:a=9;break e;case Ac:a=11;break e;case Dc:a=14;break e;case kn:a=16,i=null;break e}throw Error(U(130,e==null?e:typeof e,&quot;&quot;))}return t=Et(a,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function hr(e,t,n,i){return e=Et(7,e,i,t),e.lanes=n,e}function Wu(e,t,n,i){return e=Et(22,e,i,t),e.elementType=Bh,e.lanes=n,e.stateNode={isHidden:!1},e}function Ls(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function Ms(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uS(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$s(0),this.expirationTimes=$s(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$s(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function yd(e,t,n,i,r,o,a,u,s){return e=new uS(e,t,n,u,s),t===1?(t=1,o===!0&amp;&amp;(t|=8)):t=0,o=Et(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},td(o),e}function sS(e,t,n){var i=3&lt;arguments.length&amp;&amp;arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Dr,key:i==null?null:&quot;&quot;+i,children:e,containerInfo:t,implementation:n}}function Ug(e){if(!e)return Vn;e=e._reactInternals;e:{if(Or(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var n=e.type;if(ct(n))return Uv(e,n,t)}return t}function Cg(e,t,n,i,r,o,a,u,s){return e=yd(n,i,!0,e,r,o,a,u,s),e.context=Ug(null),n=e.current,i=tt(),r=Ln(n),o=fn(i,r),o.callback=t??null,Rn(n,o,r),e.current.lanes=r,Jo(e,r,i),dt(e,i),e}function Ju(e,t,n,i){var r=t.current,o=tt(),a=Ln(r);return n=Ug(n),t.context===null?t.context=n:t.pendingContext=n,t=fn(o,a),t.payload={element:e},i=i===void 0?null:i,i!==null&amp;&amp;(t.callback=i),e=Rn(r,t,a),e!==null&amp;&amp;(Bt(e,r,a,o),Na(e,r,a)),a}function mu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Sp(e,t){if(e=e.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&amp;&amp;n&lt;t?n:t}}function _d(e,t){Sp(e,t),(e=e.alternate)&amp;&amp;Sp(e,t)}function lS(){return null}var Ag=typeof reportError==&quot;function&quot;?reportError:function(e){console.error(e)};function wd(e){this._internalRoot=e}Ku.prototype.render=wd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));Ju(e,t,null,null)};Ku.prototype.unmount=wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kr(function(){Ju(null,e,null,null)}),t[pn]=null}};function Ku(e){this._internalRoot=e}Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=mv();e={blockedOn:null,target:e,priority:t};for(var n=0;n&lt;bn.length&amp;&amp;t!==0&amp;&amp;t&lt;bn[n].priority;n++);bn.splice(n,0,e),n===0&amp;&amp;hv(e)}};function $d(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11)}function Hu(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11&amp;&amp;(e.nodeType!==8||e.nodeValue!==&quot; react-mount-point-unstable &quot;))}function xp(){}function cS(e,t,n,i,r){if(r){if(typeof i==&quot;function&quot;){var o=i;i=function(){var l=mu(a);o.call(l)}}var a=Cg(t,i,e,0,null,!1,!1,&quot;&quot;,xp);return e._reactRootContainer=a,e[pn]=a.current,ko(e.nodeType===8?e.parentNode:e),kr(),a}for(;r=e.lastChild;)e.removeChild(r);if(typeof i==&quot;function&quot;){var u=i;i=function(){var l=mu(s);u.call(l)}}var s=yd(e,0,!1,null,null,!1,!1,&quot;&quot;,xp);return e._reactRootContainer=s,e[pn]=s.current,ko(e.nodeType===8?e.parentNode:e),kr(function(){Ju(t,s,n,i)}),s}function Gu(e,t,n,i,r){var o=n._reactRootContainer;if(o){var a=o;if(typeof r==&quot;function&quot;){var u=r;r=function(){var s=mu(a);u.call(s)}}Ju(t,a,e,r)}else a=cS(n,t,e,r,i);return mu(a)}dv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hi(t.pendingLanes);n!==0&amp;&amp;(Lc(t,n|1),dt(t,je()),!(le&amp;6)&amp;&amp;(wi=je()+500,Gn()))}break;case 13:kr(function(){var i=hn(e,1);if(i!==null){var r=tt();Bt(i,e,1,r)}}),_d(e,1)}};Mc=function(e){if(e.tag===13){var t=hn(e,134217728);if(t!==null){var n=tt();Bt(t,e,134217728,n)}_d(e,134217728)}};fv=function(e){if(e.tag===13){var t=Ln(e),n=hn(e,t);if(n!==null){var i=tt();Bt(n,e,t,i)}_d(e,t)}};mv=function(){return he};pv=function(e,t){var n=he;try{return he=e,t()}finally{he=n}};cl=function(e,t,n){switch(t){case&quot;input&quot;:if(rl(e,n),t=n.name,n.type===&quot;radio&quot;&amp;&amp;t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(&quot;input[name=&quot;+JSON.stringify(&quot;&quot;+t)+&#39;][type=&quot;radio&quot;]&#39;),t=0;t&lt;n.length;t++){var i=n[t];if(i!==e&amp;&amp;i.form===e.form){var r=Zu(i);if(!r)throw Error(U(90));Wh(i),rl(i,r)}}}break;case&quot;textarea&quot;:Kh(e,n);break;case&quot;select&quot;:t=n.value,t!=null&amp;&amp;qr(e,!!n.multiple,t,!1)}};ev=pd;tv=kr;var dS={usingClientEntryPoint:!1,Events:[Ho,Fr,Zu,Yh,qh,pd]},Bi={findFiberByHostInstance:or,bundleType:0,version:&quot;18.3.1&quot;,rendererPackageName:&quot;react-dom&quot;},fS={bundleType:Bi.bundleType,version:Bi.version,rendererPackageName:Bi.rendererPackageName,rendererConfig:Bi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=iv(e),e===null?null:e.stateNode},findFiberByHostInstance:Bi.findFiberByHostInstance||lS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:&quot;18.3.1-next-f1338f8080-20240426&quot;};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&lt;&quot;u&quot;){var ya=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ya.isDisabled&amp;&amp;ya.supportsFiber)try{Cu=ya.inject(fS),en=ya}catch{}}kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dS;kt.createPortal=function(e,t){var n=2&lt;arguments.length&amp;&amp;arguments[2]!==void 0?arguments[2]:null;if(!$d(t))throw Error(U(200));return sS(e,t,null,n)};kt.createRoot=function(e,t){if(!$d(e))throw Error(U(299));var n=!1,i=&quot;&quot;,r=Ag;return t!=null&amp;&amp;(t.unstable_strictMode===!0&amp;&amp;(n=!0),t.identifierPrefix!==void 0&amp;&amp;(i=t.identifierPrefix),t.onRecoverableError!==void 0&amp;&amp;(r=t.onRecoverableError)),t=yd(e,1,!1,null,null,n,!1,i,r),e[pn]=t.current,ko(e.nodeType===8?e.parentNode:e),new wd(t)};kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==&quot;function&quot;?Error(U(188)):(e=Object.keys(e).join(&quot;,&quot;),Error(U(268,e)));return e=iv(t),e=e===null?null:e.stateNode,e};kt.flushSync=function(e){return kr(e)};kt.hydrate=function(e,t,n){if(!Hu(t))throw Error(U(200));return Gu(null,e,t,!0,n)};kt.hydrateRoot=function(e,t,n){if(!$d(e))throw Error(U(405));var i=n!=null&amp;&amp;n.hydratedSources||null,r=!1,o=&quot;&quot;,a=Ag;if(n!=null&amp;&amp;(n.unstable_strictMode===!0&amp;&amp;(r=!0),n.identifierPrefix!==void 0&amp;&amp;(o=n.identifierPrefix),n.onRecoverableError!==void 0&amp;&amp;(a=n.onRecoverableError)),t=Cg(t,null,e,1,n??null,r,!1,o,a),e[pn]=t.current,ko(e),i)for(e=0;e&lt;i.length;e++)n=i[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Ku(t)};kt.render=function(e,t,n){if(!Hu(t))throw Error(U(200));return Gu(null,e,t,!1,n)};kt.unmountComponentAtNode=function(e){if(!Hu(e))throw Error(U(40));return e._reactRootContainer?(kr(function(){Gu(null,null,e,!1,function(){e._reactRootContainer=null,e[pn]=null})}),!0):!1};kt.unstable_batchedUpdates=pd;kt.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Hu(n))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return Gu(e,t,n,!1,i)};kt.version=&quot;18.3.1-next-f1338f8080-20240426&quot;;function Dg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&gt;&quot;u&quot;||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=&quot;function&quot;))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dg)}catch(e){console.error(e)}}Dg(),Dh.exports=kt;var mS=Dh.exports,bp=mS;Qs.createRoot=bp.createRoot,Qs.hydrateRoot=bp.hydrateRoot;const pS=&quot;modulepreload&quot;,hS=function(e){return&quot;/&quot;+e},Ip={},Rg=function(t,n,i){let r=Promise.resolve();if(n&amp;&amp;n.length&gt;0){document.getElementsByTagName(&quot;link&quot;);const a=document.querySelector(&quot;meta[property=csp-nonce]&quot;),u=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute(&quot;nonce&quot;));r=Promise.allSettled(n.map(s=&gt;{if(s=hS(s),s in Ip)return;Ip[s]=!0;const l=s.endsWith(&quot;.css&quot;),m=l?&#39;[rel=&quot;stylesheet&quot;]&#39;:&quot;&quot;;if(document.querySelector(`link[href=&quot;${s}&quot;]${m}`))return;const p=document.createElement(&quot;link&quot;);if(p.rel=l?&quot;stylesheet&quot;:pS,l||(p.as=&quot;script&quot;),p.crossOrigin=&quot;&quot;,p.href=s,u&amp;&amp;p.setAttribute(&quot;nonce&quot;,u),document.head.appendChild(p),l)return new Promise((v,_)=&gt;{p.addEventListener(&quot;load&quot;,v),p.addEventListener(&quot;error&quot;,()=&gt;_(new Error(`Unable to preload CSS for ${s}`)))})}))}function o(a){const u=new Event(&quot;vite:preloadError&quot;,{cancelable:!0});if(u.payload=a,window.dispatchEvent(u),!u.defaultPrevented)throw a}return r.then(a=&gt;{for(const u of a||[])u.status===&quot;rejected&quot;&amp;&amp;o(u.reason);return t().catch(o)})};var vS=&quot;internal_error&quot;,gS=class extends Error{constructor(n,i,r){super(i,{cause:r==null?void 0:r.cause});Kt(this,&quot;__type&quot;,&quot;ActorError&quot;);Kt(this,&quot;public&quot;);Kt(this,&quot;metadata&quot;);Kt(this,&quot;statusCode&quot;,500);this.code=n,this.public=(r==null?void 0:r.public)??!1,this.metadata=r==null?void 0:r.metadata,r!=null&amp;&amp;r.public&amp;&amp;(this.statusCode=400)}static isActorError(n){return typeof n==&quot;object&quot;&amp;&amp;n.__type===&quot;ActorError&quot;}toString(){return this.message}serializeForHttp(){return{type:this.code,message:this.message,metadata:this.metadata}}},yS=class extends gS{constructor(e){super(vS,e)}},_S=class extends yS{constructor(e){super(`Unreachable case: ${e}`)}},wS={};function It(e){throw new Error(`Unreachable case: ${e}`)}function zp(e){if(e instanceof Error)return typeof process&lt;&quot;u&quot;&amp;&amp;pu(&quot;_RIVETKIT_ERROR_STACK&quot;)===&quot;1&quot;?`${e.name}: ${e.message}${e.stack?`
${e.stack}`:&quot;&quot;}`:`${e.name}: ${e.message}`;if(typeof e==&quot;string&quot;)return e;if(typeof e==&quot;object&quot;&amp;&amp;e!==null)try{return`${JSON.stringify(e)}`}catch{return&quot;[cannot stringify error]&quot;}else return`Unknown error: ${$S(e)}`}function $S(e){return e&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;&quot;message&quot;in e&amp;&amp;typeof e.message==&quot;string&quot;?e.message:String(e)}var kS={version:&quot;0.9.9&quot;},SS=kS.version,Fs;function Da(){if(Fs!==void 0)return Fs;let e=`RivetKit/${SS}`;const t=typeof navigator&lt;&quot;u&quot;?navigator:void 0;return t!=null&amp;&amp;t.userAgent&amp;&amp;(e+=` ${t.userAgent}`),Fs=e,e}function pu(e){if(typeof Deno&lt;&quot;u&quot;)return Deno.env.get(e);if(typeof process&lt;&quot;u&quot;)return wS[e]}var qn={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,CRITICAL:5},Zg={0:&quot;TRACE&quot;,1:&quot;DEBUG&quot;,2:&quot;INFO&quot;,3:&quot;WARN&quot;,4:&quot;ERROR&quot;,5:&quot;CRITICAL&quot;};function xS(...e){let t=&quot;&quot;;for(let n=0;n&lt;e.length;n++){const[i,r]=e[n];let o=!1,a;r==null?(o=!0,a=&quot;&quot;):a=r.toString(),a.length&gt;512&amp;&amp;i!==&quot;msg&quot;&amp;&amp;i!==&quot;error&quot;&amp;&amp;(a=`${a.slice(0,512)}...`);const u=a.indexOf(&quot; &quot;)&gt;-1||a.indexOf(&quot;=&quot;)&gt;-1,s=a.indexOf(&#39;&quot;&#39;)&gt;-1||a.indexOf(&quot;\\&quot;)&gt;-1;a=a.replace(/\n/g,&quot;\\n&quot;),s&amp;&amp;(a=a.replace(/[&quot;\\]/g,&quot;\\$&amp;&quot;)),(u||s)&amp;&amp;(a=`&quot;${a}&quot;`),a===&quot;&quot;&amp;&amp;!o&amp;&amp;(a=&#39;&quot;&quot;&#39;),t+=`${i}=${a}`,n!==e.length-1&amp;&amp;(t+=&quot; &quot;)}return t}function bS(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,&quot;0&quot;),i=String(e.getUTCDate()).padStart(2,&quot;0&quot;),r=String(e.getUTCHours()).padStart(2,&quot;0&quot;),o=String(e.getUTCMinutes()).padStart(2,&quot;0&quot;),a=String(e.getUTCSeconds()).padStart(2,&quot;0&quot;),u=String(e.getUTCMilliseconds()).padStart(3,&quot;0&quot;);return`${t}-${n}-${i}T${r}:${o}:${a}.${u}Z`}function IS(e){if(typeof e==&quot;string&quot;||typeof e==&quot;number&quot;||typeof e==&quot;boolean&quot;||e===null||e===void 0)return e;if(e instanceof Error)return String(e);try{return JSON.stringify(e)}catch{return&quot;[cannot stringify]&quot;}}var Ei,Lg,Mg,wh,zS=(wh=class{constructor(e,t){fe(this,Ei);Kt(this,&quot;name&quot;);Kt(this,&quot;level&quot;);this.name=e,this.level=t}log(e,t,...n){const i={msg:t,args:n,level:e,loggerName:this.name,datetime:new Date,levelName:Zg[e]};se(this,Ei,Lg).call(this,e)&amp;&amp;se(this,Ei,Mg).call(this,i)}trace(e,...t){this.log(qn.TRACE,e,...t)}debug(e,...t){this.log(qn.DEBUG,e,...t)}info(e,...t){this.log(qn.INFO,e,...t)}warn(e,...t){this.log(qn.WARN,e,...t)}error(e,...t){this.log(qn.ERROR,e,...t)}critical(e,...t){this.log(qn.CRITICAL,e,...t)}},Ei=new WeakSet,Lg=function(e){return e&gt;=qn[this.level]},Mg=function(e){console.log(OS(e))},wh),Bs={};function Fg(e=&quot;default&quot;){const n=pu(&quot;_LOG_LEVEL&quot;)??&quot;INFO&quot;;return Bs[e]||(Bs[e]=new zS(e,n)),Bs[e]}function OS(e){const t=[];for(let r=0;r&lt;e.args.length;r++){const o=e.args[r];if(o&amp;&amp;typeof o==&quot;object&quot;)for(const a in o){const u=o[a];Op(a,u,t)}else Op(`arg${r}`,o,t)}const n=pu(&quot;_LOG_TIMESTAMP&quot;)===&quot;1&quot;,i=pu(&quot;_LOG_TARGET&quot;)===&quot;1&quot;;return xS(...n?[[&quot;ts&quot;,bS(new Date)]]:[],[&quot;level&quot;,Zg[e.level]],...i?[[&quot;target&quot;,e.loggerName]]:[],[&quot;msg&quot;,e.msg],...t)}function Op(e,t,n){n.push([e,IS(t)])}var ES=&quot;actor-client&quot;;function Q(){return Fg(ES)}var _a=null;async function NS(){return _a!==null||(_a=(async()=&gt;{let e;if(typeof WebSocket&lt;&quot;u&quot;)e=WebSocket,Q().debug(&quot;using native websocket&quot;);else try{e=(await Rg(()=&gt;import(&quot;./browser-Blo9hrnw.js&quot;).then(n=&gt;n.b),[])).default,Q().debug(&quot;using websocket from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;WebSocket support requires installing the &quot;ws&quot; peer dependency.&#39;)}},Q().debug(&quot;using mock websocket&quot;)}return e})()),_a}let Bl;try{Bl=new TextDecoder}catch{}let W,vr,x=0;const jS=105,TS=57342,PS=57343,Ep=57337,Np=6,Pr={};let Vi=11281e4,rn=1681e4,ae={},Ne,hu,vu=0,jo=0,Me,zt,Ce=[],Vl=[],ut,et,Qi,jp={useRecords:!1,mapsAsObjects:!0},To=!1,Bg=2;try{new Function(&quot;&quot;)}catch{Bg=1/0}class Po{constructor(t){if(t&amp;&amp;((t.keyMap||t._keyMap)&amp;&amp;!t.useRecords&amp;&amp;(t.useRecords=!1,t.mapsAsObjects=!0),t.useRecords===!1&amp;&amp;t.mapsAsObjects===void 0&amp;&amp;(t.mapsAsObjects=!0),t.getStructures&amp;&amp;(t.getShared=t.getStructures),t.getShared&amp;&amp;!t.structures&amp;&amp;((t.structures=[]).uninitialized=!0),t.keyMap)){this.mapKey=new Map;for(let[n,i]of Object.entries(t.keyMap))this.mapKey.set(i,n)}Object.assign(this,t)}decodeKey(t){return this.keyMap&amp;&amp;this.mapKey.get(t)||t}encodeKey(t){return this.keyMap&amp;&amp;this.keyMap.hasOwnProperty(t)?this.keyMap[t]:t}encodeKeys(t){if(!this._keyMap)return t;let n=new Map;for(let[i,r]of Object.entries(t))n.set(this._keyMap.hasOwnProperty(i)?this._keyMap[i]:i,r);return n}decodeKeys(t){if(!this._keyMap||t.constructor.name!=&quot;Map&quot;)return t;if(!this._mapKey){this._mapKey=new Map;for(let[i,r]of Object.entries(this._keyMap))this._mapKey.set(r,i)}let n={};return t.forEach((i,r)=&gt;n[Ot(this._mapKey.has(r)?this._mapKey.get(r):r)]=i),n}mapDecode(t,n){let i=this.decode(t);if(this._keyMap)switch(i.constructor.name){case&quot;Array&quot;:return i.map(r=&gt;this.decodeKeys(r))}return i}decode(t,n){if(W)return Kg(()=&gt;(Hl(),this?this.decode(t,n):Po.prototype.decode.call(jp,t,n)));vr=n&gt;-1?n:t.length,x=0,jo=0,hu=null,Me=null,W=t;try{et=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(i){throw W=null,t instanceof Uint8Array?i:new Error(&quot;Source must be a Uint8Array or Buffer but was a &quot;+(t&amp;&amp;typeof t==&quot;object&quot;?t.constructor.name:typeof t))}if(this instanceof Po){if(ae=this,ut=this.sharedValues&amp;&amp;(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return Ne=this.structures,wa();(!Ne||Ne.length&gt;0)&amp;&amp;(Ne=[])}else ae=jp,(!Ne||Ne.length&gt;0)&amp;&amp;(Ne=[]),ut=null;return wa()}decodeMultiple(t,n){let i,r=0;try{let o=t.length;To=!0;let a=this?this.decode(t,o):xd.decode(t,o);if(n){if(n(a)===!1)return;for(;x&lt;o;)if(r=x,n(wa())===!1)return}else{for(i=[a];x&lt;o;)r=x,i.push(wa());return i}}catch(o){throw o.lastPosition=r,o.values=i,o}finally{To=!1,Hl()}}}function wa(){try{let e=ue();if(Me){if(x&gt;=Me.postBundlePosition){let t=new Error(&quot;Unexpected bundle position&quot;);throw t.incomplete=!0,t}x=Me.postBundlePosition,Me=null}if(x==vr)Ne=null,W=null,zt&amp;&amp;(zt=null);else if(x&gt;vr){let t=new Error(&quot;Unexpected end of CBOR data&quot;);throw t.incomplete=!0,t}else if(!To)throw new Error(&quot;Data read, but end of buffer not reached&quot;);return e}catch(e){throw Hl(),(e instanceof RangeError||e.message.startsWith(&quot;Unexpected end of buffer&quot;))&amp;&amp;(e.incomplete=!0),e}}function ue(){let e=W[x++],t=e&gt;&gt;5;if(e=e&amp;31,e&gt;23)switch(e){case 24:e=W[x++];break;case 25:if(t==7)return DS();e=et.getUint16(x),x+=2;break;case 26:if(t==7){let n=et.getFloat32(x);if(ae.useFloat32&gt;2){let i=Sd[(W[x]&amp;127)&lt;&lt;1|W[x+1]&gt;&gt;7];return x+=4,(i*n+(n&gt;0?.5:-.5)&gt;&gt;0)/i}return x+=4,n}e=et.getUint32(x),x+=4;break;case 27:if(t==7){let n=et.getFloat64(x);return x+=8,n}if(t&gt;1){if(et.getUint32(x)&gt;0)throw new Error(&quot;JavaScript does not support arrays, maps, or strings with length over 4294967295&quot;);e=et.getUint32(x+4)}else ae.int64AsNumber?(e=et.getUint32(x)*4294967296,e+=et.getUint32(x+4)):e=et.getBigUint64(x);x+=8;break;case 31:switch(t){case 2:case 3:throw new Error(&quot;Indefinite length not supported for byte or text strings&quot;);case 4:let n=[],i,r=0;for(;(i=ue())!=Pr;){if(r&gt;=Vi)throw new Error(`Array length exceeds ${Vi}`);n[r++]=i}return t==4?n:t==3?n.join(&quot;&quot;):Buffer.concat(n);case 5:let o;if(ae.mapsAsObjects){let a={},u=0;if(ae.keyMap)for(;(o=ue())!=Pr;){if(u++&gt;=rn)throw new Error(`Property count exceeds ${rn}`);a[Ot(ae.decodeKey(o))]=ue()}else for(;(o=ue())!=Pr;){if(u++&gt;=rn)throw new Error(`Property count exceeds ${rn}`);a[Ot(o)]=ue()}return a}else{Qi&amp;&amp;(ae.mapsAsObjects=!0,Qi=!1);let a=new Map;if(ae.keyMap){let u=0;for(;(o=ue())!=Pr;){if(u++&gt;=rn)throw new Error(`Map size exceeds ${rn}`);a.set(ae.decodeKey(o),ue())}}else{let u=0;for(;(o=ue())!=Pr;){if(u++&gt;=rn)throw new Error(`Map size exceeds ${rn}`);a.set(o,ue())}}return a}case 7:return Pr;default:throw new Error(&quot;Invalid major type for indefinite length &quot;+t)}default:throw new Error(&quot;Unknown token &quot;+e)}switch(t){case 0:return e;case 1:return~e;case 2:return AS(e);case 3:if(jo&gt;=x)return hu.slice(x-vu,(x+=e)-vu);if(jo==0&amp;&amp;vr&lt;140&amp;&amp;e&lt;32){let r=e&lt;16?Vg(e):CS(e);if(r!=null)return r}return US(e);case 4:if(e&gt;=Vi)throw new Error(`Array length exceeds ${Vi}`);let n=new Array(e);for(let r=0;r&lt;e;r++)n[r]=ue();return n;case 5:if(e&gt;=rn)throw new Error(`Map size exceeds ${Vi}`);if(ae.mapsAsObjects){let r={};if(ae.keyMap)for(let o=0;o&lt;e;o++)r[Ot(ae.decodeKey(ue()))]=ue();else for(let o=0;o&lt;e;o++)r[Ot(ue())]=ue();return r}else{Qi&amp;&amp;(ae.mapsAsObjects=!0,Qi=!1);let r=new Map;if(ae.keyMap)for(let o=0;o&lt;e;o++)r.set(ae.decodeKey(ue()),ue());else for(let o=0;o&lt;e;o++)r.set(ue(),ue());return r}case 6:if(e&gt;=Ep){let r=Ne[e&amp;8191];if(r)return r.read||(r.read=Wl(r)),r.read();if(e&lt;65536){if(e==PS){let o=Gr(),a=ue(),u=ue();Kl(a,u);let s={};if(ae.keyMap)for(let l=2;l&lt;o;l++){let m=ae.decodeKey(u[l-2]);s[Ot(m)]=ue()}else for(let l=2;l&lt;o;l++){let m=u[l-2];s[Ot(m)]=ue()}return s}else if(e==TS){let o=Gr(),a=ue();for(let u=2;u&lt;o;u++)Kl(a++,ue());return ue()}else if(e==Ep)return BS();if(ae.getShared&amp;&amp;(kd(),r=Ne[e&amp;8191],r))return r.read||(r.read=Wl(r)),r.read()}}let i=Ce[e];if(i)return i.handlesRead?i(ue):i(ue());{let r=ue();for(let o=0;o&lt;Vl.length;o++){let a=Vl[o](e,r);if(a!==void 0)return a}return new Sr(r,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 31:default:let r=(ut||nr())[e];if(r!==void 0)return r;throw new Error(&quot;Unknown token &quot;+e)}default:if(isNaN(e)){let r=new Error(&quot;Unexpected end of CBOR data&quot;);throw r.incomplete=!0,r}throw new Error(&quot;Unknown CBOR token &quot;+e)}}const Tp=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Wl(e){if(!e)throw new Error(&quot;Structure is required in record definition&quot;);function t(){let n=W[x++];if(n=n&amp;31,n&gt;23)switch(n){case 24:n=W[x++];break;case 25:n=et.getUint16(x),x+=2;break;case 26:n=et.getUint32(x),x+=4;break;default:throw new Error(&quot;Expected array header, but got &quot;+W[x-1])}let i=this.compiledReader;for(;i;){if(i.propertyCount===n)return i(ue);i=i.next}if(this.slowReads++&gt;=Bg){let o=this.length==n?this:this.slice(0,n);return i=ae.keyMap?new Function(&quot;r&quot;,&quot;return {&quot;+o.map(a=&gt;ae.decodeKey(a)).map(a=&gt;Tp.test(a)?Ot(a)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(a)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;):new Function(&quot;r&quot;,&quot;return {&quot;+o.map(a=&gt;Tp.test(a)?Ot(a)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(a)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;),this.compiledReader&amp;&amp;(i.next=this.compiledReader),i.propertyCount=n,this.compiledReader=i,i(ue)}let r={};if(ae.keyMap)for(let o=0;o&lt;n;o++)r[Ot(ae.decodeKey(this[o]))]=ue();else for(let o=0;o&lt;n;o++)r[Ot(this[o])]=ue();return r}return e.slowReads=0,t}function Ot(e){if(typeof e==&quot;string&quot;)return e===&quot;__proto__&quot;?&quot;__proto_&quot;:e;if(typeof e==&quot;number&quot;||typeof e==&quot;boolean&quot;||typeof e==&quot;bigint&quot;)return e.toString();if(e==null)return e+&quot;&quot;;throw new Error(&quot;Invalid property name type &quot;+typeof e)}let US=Jl;function Jl(e){let t;if(e&lt;16&amp;&amp;(t=Vg(e)))return t;if(e&gt;64&amp;&amp;Bl)return Bl.decode(W.subarray(x,x+=e));const n=x+e,i=[];for(t=&quot;&quot;;x&lt;n;){const r=W[x++];if(!(r&amp;128))i.push(r);else if((r&amp;224)===192){const o=W[x++]&amp;63;i.push((r&amp;31)&lt;&lt;6|o)}else if((r&amp;240)===224){const o=W[x++]&amp;63,a=W[x++]&amp;63;i.push((r&amp;31)&lt;&lt;12|o&lt;&lt;6|a)}else if((r&amp;248)===240){const o=W[x++]&amp;63,a=W[x++]&amp;63,u=W[x++]&amp;63;let s=(r&amp;7)&lt;&lt;18|o&lt;&lt;12|a&lt;&lt;6|u;s&gt;65535&amp;&amp;(s-=65536,i.push(s&gt;&gt;&gt;10&amp;1023|55296),s=56320|s&amp;1023),i.push(s)}else i.push(r);i.length&gt;=4096&amp;&amp;(t+=Fe.apply(String,i),i.length=0)}return i.length&gt;0&amp;&amp;(t+=Fe.apply(String,i)),t}let Fe=String.fromCharCode;function CS(e){let t=x,n=new Array(e);for(let i=0;i&lt;e;i++){const r=W[x++];if((r&amp;128)&gt;0){x=t;return}n[i]=r}return Fe.apply(String,n)}function Vg(e){if(e&lt;4)if(e&lt;2){if(e===0)return&quot;&quot;;{let t=W[x++];if((t&amp;128)&gt;1){x-=1;return}return Fe(t)}}else{let t=W[x++],n=W[x++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0){x-=2;return}if(e&lt;3)return Fe(t,n);let i=W[x++];if((i&amp;128)&gt;0){x-=3;return}return Fe(t,n,i)}else{let t=W[x++],n=W[x++],i=W[x++],r=W[x++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0||(i&amp;128)&gt;0||(r&amp;128)&gt;0){x-=4;return}if(e&lt;6){if(e===4)return Fe(t,n,i,r);{let o=W[x++];if((o&amp;128)&gt;0){x-=5;return}return Fe(t,n,i,r,o)}}else if(e&lt;8){let o=W[x++],a=W[x++];if((o&amp;128)&gt;0||(a&amp;128)&gt;0){x-=6;return}if(e&lt;7)return Fe(t,n,i,r,o,a);let u=W[x++];if((u&amp;128)&gt;0){x-=7;return}return Fe(t,n,i,r,o,a,u)}else{let o=W[x++],a=W[x++],u=W[x++],s=W[x++];if((o&amp;128)&gt;0||(a&amp;128)&gt;0||(u&amp;128)&gt;0||(s&amp;128)&gt;0){x-=8;return}if(e&lt;10){if(e===8)return Fe(t,n,i,r,o,a,u,s);{let l=W[x++];if((l&amp;128)&gt;0){x-=9;return}return Fe(t,n,i,r,o,a,u,s,l)}}else if(e&lt;12){let l=W[x++],m=W[x++];if((l&amp;128)&gt;0||(m&amp;128)&gt;0){x-=10;return}if(e&lt;11)return Fe(t,n,i,r,o,a,u,s,l,m);let p=W[x++];if((p&amp;128)&gt;0){x-=11;return}return Fe(t,n,i,r,o,a,u,s,l,m,p)}else{let l=W[x++],m=W[x++],p=W[x++],v=W[x++];if((l&amp;128)&gt;0||(m&amp;128)&gt;0||(p&amp;128)&gt;0||(v&amp;128)&gt;0){x-=12;return}if(e&lt;14){if(e===12)return Fe(t,n,i,r,o,a,u,s,l,m,p,v);{let _=W[x++];if((_&amp;128)&gt;0){x-=13;return}return Fe(t,n,i,r,o,a,u,s,l,m,p,v,_)}}else{let _=W[x++],$=W[x++];if((_&amp;128)&gt;0||($&amp;128)&gt;0){x-=14;return}if(e&lt;15)return Fe(t,n,i,r,o,a,u,s,l,m,p,v,_,$);let E=W[x++];if((E&amp;128)&gt;0){x-=15;return}return Fe(t,n,i,r,o,a,u,s,l,m,p,v,_,$,E)}}}}}function AS(e){return ae.copyBuffers?Uint8Array.prototype.slice.call(W,x,x+=e):W.subarray(x,x+=e)}let Wg=new Float32Array(1),$a=new Uint8Array(Wg.buffer,0,4);function DS(){let e=W[x++],t=W[x++],n=(e&amp;127)&gt;&gt;2;if(n===31)return t||e&amp;3?NaN:e&amp;128?-1/0:1/0;if(n===0){let i=((e&amp;3)&lt;&lt;8|t)/16777216;return e&amp;128?-i:i}return $a[3]=e&amp;128|(n&gt;&gt;1)+56,$a[2]=(e&amp;7)&lt;&lt;5|t&gt;&gt;3,$a[1]=t&lt;&lt;5,$a[0]=0,Wg[0]}new Array(4096);class Sr{constructor(t,n){this.value=t,this.tag=n}}Ce[0]=e=&gt;new Date(e);Ce[1]=e=&gt;new Date(Math.round(e*1e3));Ce[2]=e=&gt;{let t=BigInt(0);for(let n=0,i=e.byteLength;n&lt;i;n++)t=BigInt(e[n])+(t&lt;&lt;BigInt(8));return t};Ce[3]=e=&gt;BigInt(-1)-Ce[2](e);Ce[4]=e=&gt;+(e[1]+&quot;e&quot;+e[0]);Ce[5]=e=&gt;e[1]*Math.exp(e[0]*Math.log(2));const Kl=(e,t)=&gt;{e=e-57344;let n=Ne[e];n&amp;&amp;n.isShared&amp;&amp;((Ne.restoreStructures||(Ne.restoreStructures=[]))[e]=n),Ne[e]=t,t.read=Wl(t)};Ce[jS]=e=&gt;{let t=e.length,n=e[1];Kl(e[0],n);let i={};for(let r=2;r&lt;t;r++){let o=n[r-2];i[Ot(o)]=e[r]}return i};Ce[14]=e=&gt;Me?Me[0].slice(Me.position0,Me.position0+=e):new Sr(e,14);Ce[15]=e=&gt;Me?Me[1].slice(Me.position1,Me.position1+=e):new Sr(e,15);let RS={Error,RegExp};Ce[27]=e=&gt;(RS[e[0]]||Error)(e[1],e[2]);const Jg=e=&gt;{if(W[x++]!=132){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw W.length&lt;x&amp;&amp;(n.incomplete=!0),n}let t=e();if(!t||!t.length){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw n.incomplete=!0,n}return ut=ut?t.concat(ut.slice(t.length)):t,ut.prefixes=e(),ut.suffixes=e(),e()};Jg.handlesRead=!0;Ce[51]=Jg;Ce[Np]=e=&gt;{if(!ut)if(ae.getShared)kd();else return new Sr(e,Np);if(typeof e==&quot;number&quot;)return ut[16+(e&gt;=0?2*e:-2*e-1)];let t=new Error(&quot;No support for non-integer packed references yet&quot;);throw e===void 0&amp;&amp;(t.incomplete=!0),t};Ce[28]=e=&gt;{zt||(zt=new Map,zt.id=0);let t=zt.id++,n=x,i=W[x],r;i&gt;&gt;5==4?r=[]:r={};let o={target:r};zt.set(t,o);let a=e();return o.used?(Object.getPrototypeOf(r)!==Object.getPrototypeOf(a)&amp;&amp;(x=n,r=a,zt.set(t,{target:r}),a=e()),Object.assign(r,a)):(o.target=a,a)};Ce[28].handlesRead=!0;Ce[29]=e=&gt;{let t=zt.get(e);return t.used=!0,t.target};Ce[258]=e=&gt;new Set(e);(Ce[259]=e=&gt;(ae.mapsAsObjects&amp;&amp;(ae.mapsAsObjects=!1,Qi=!0),e())).handlesRead=!0;function Ur(e,t){return typeof e==&quot;string&quot;?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function nr(){if(!ut)if(ae.getShared)kd();else throw new Error(&quot;No packed values available&quot;);return ut}const ZS=1399353956;Vl.push((e,t)=&gt;{if(e&gt;=225&amp;&amp;e&lt;=255)return Ur(nr().prefixes[e-224],t);if(e&gt;=28704&amp;&amp;e&lt;=32767)return Ur(nr().prefixes[e-28672],t);if(e&gt;=1879052288&amp;&amp;e&lt;=2147483647)return Ur(nr().prefixes[e-1879048192],t);if(e&gt;=216&amp;&amp;e&lt;=223)return Ur(t,nr().suffixes[e-216]);if(e&gt;=27647&amp;&amp;e&lt;=28671)return Ur(t,nr().suffixes[e-27639]);if(e&gt;=1811940352&amp;&amp;e&lt;=1879048191)return Ur(t,nr().suffixes[e-1811939328]);if(e==ZS)return{packedValues:ut,structures:Ne.slice(0),version:t};if(e==55799)return t});const LS=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,Pp=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?{name:&quot;BigUint64Array&quot;}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?{name:&quot;BigInt64Array&quot;}:BigInt64Array,Float32Array,Float64Array],MS=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e&lt;Pp.length;e++)FS(Pp[e],MS[e]);function FS(e,t){let n=&quot;get&quot;+e.name.slice(0,-5),i;typeof e==&quot;function&quot;?i=e.BYTES_PER_ELEMENT:e=null;for(let r=0;r&lt;2;r++){if(!r&amp;&amp;i==1)continue;let o=i==2?1:i==4?2:i==8?3:0;Ce[r?t:t-4]=i==1||r==LS?a=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);return!ae.copyBuffers&amp;&amp;(i===1||i===2&amp;&amp;!(a.byteOffset&amp;1)||i===4&amp;&amp;!(a.byteOffset&amp;3)||i===8&amp;&amp;!(a.byteOffset&amp;7))?new e(a.buffer,a.byteOffset,a.byteLength&gt;&gt;o):new e(Uint8Array.prototype.slice.call(a,0).buffer)}:a=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);let u=new DataView(a.buffer,a.byteOffset,a.byteLength),s=a.length&gt;&gt;o,l=new e(s),m=u[n];for(let p=0;p&lt;s;p++)l[p]=m.call(u,p&lt;&lt;o,r);return l}}}function BS(){let e=Gr(),t=x+ue();for(let i=2;i&lt;e;i++){let r=Gr();x+=r}let n=x;return x=t,Me=[Jl(Gr()),Jl(Gr())],Me.position0=0,Me.position1=0,Me.postBundlePosition=x,x=n,ue()}function Gr(){let e=W[x++]&amp;31;if(e&gt;23)switch(e){case 24:e=W[x++];break;case 25:e=et.getUint16(x),x+=2;break;case 26:e=et.getUint32(x),x+=4;break}return e}function kd(){if(ae.getShared){let e=Kg(()=&gt;(W=null,ae.getShared()))||{},t=e.structures||[];ae.sharedVersion=e.version,ut=ae.sharedValues=e.packedValues,Ne===!0?ae.structures=Ne=t:Ne.splice.apply(Ne,[0,t.length].concat(t))}}function Kg(e){let t=vr,n=x,i=vu,r=jo,o=hu,a=zt,u=Me,s=new Uint8Array(W.slice(0,vr)),l=Ne,m=ae,p=To,v=e();return vr=t,x=n,vu=i,jo=r,hu=o,zt=a,Me=u,W=s,To=p,Ne=l,ae=m,et=new DataView(W.buffer,W.byteOffset,W.byteLength),v}function Hl(){W=null,zt=null,Ne=null}const Sd=new Array(147);for(let e=0;e&lt;256;e++)Sd[e]=+(&quot;1e&quot;+Math.floor(45.15-e*.30103));let xd=new Po({useRecords:!1});const fo=xd.decode;xd.decodeMultiple;let Ra;try{Ra=new TextEncoder}catch{}let Gl,Hg;const Qu=typeof globalThis==&quot;object&quot;&amp;&amp;globalThis.Buffer,Qo=typeof Qu&lt;&quot;u&quot;,Vs=Qo?Qu.allocUnsafeSlow:Uint8Array,Up=Qo?Qu:Uint8Array,Cp=256,Ap=Qo?4294967296:2144337920;let Ws,w,$e,h=0,$n,De=null;const VS=61440,WS=/[\u0080-\uFFFF]/,mt=Symbol(&quot;record-id&quot;);class JS extends Po{constructor(t){super(t),this.offset=0;let n,i,r,o,a;t=t||{};let u=Up.prototype.utf8Write?function(g,V,T){return w.utf8Write(g,V,T)}:Ra&amp;&amp;Ra.encodeInto?function(g,V){return Ra.encodeInto(g,w.subarray(V)).written}:!1,s=this,l=t.structures||t.saveStructures,m=t.maxSharedStructures;if(m==null&amp;&amp;(m=l?128:0),m&gt;8190)throw new Error(&quot;Maximum maxSharedStructure is 8190&quot;);let p=t.sequential;p&amp;&amp;(m=0),this.structures||(this.structures=[]),this.saveStructures&amp;&amp;(this.saveShared=this.saveStructures);let v,_,$=t.sharedValues,E;if($){E=Object.create(null);for(let g=0,V=$.length;g&lt;V;g++)E[$[g]]=g}let N=[],c=0,d=0;this.mapEncode=function(g,V){if(this._keyMap&amp;&amp;!this._mapped)switch(g.constructor.name){case&quot;Array&quot;:g=g.map(T=&gt;this.encodeKeys(T));break}return this.encode(g,V)},this.encode=function(g,V){if(w||(w=new Vs(8192),$e=new DataView(w.buffer,0,8192),h=0),$n=w.length-10,$n-h&lt;2048?(w=new Vs(w.length),$e=new DataView(w.buffer,0,w.length),$n=w.length-10,h=0):V===Zp&amp;&amp;(h=h+7&amp;2147483640),n=h,s.useSelfDescribedHeader&amp;&amp;($e.setUint32(h,3654940416),h+=3),a=s.structuredClone?new Map:null,s.bundleStrings&amp;&amp;typeof g!=&quot;string&quot;?(De=[],De.size=1/0):De=null,i=s.structures,i){if(i.uninitialized){let C=s.getShared()||{};s.structures=i=C.structures||[],s.sharedVersion=C.version;let j=s.sharedValues=C.packedValues;if(j){E={};for(let z=0,D=j.length;z&lt;D;z++)E[j[z]]=z}}let T=i.length;if(T&gt;m&amp;&amp;!p&amp;&amp;(T=m),!i.transitions){i.transitions=Object.create(null);for(let C=0;C&lt;T;C++){let j=i[C];if(!j)continue;let z,D=i.transitions;for(let R=0,K=j.length;R&lt;K;R++){D[mt]===void 0&amp;&amp;(D[mt]=C);let G=j[R];z=D[G],z||(z=D[G]=Object.create(null)),D=z}D[mt]=C|1048576}}p||(i.nextId=T)}if(r&amp;&amp;(r=!1),o=i||[],_=E,t.pack){let T=new Map;if(T.values=[],T.encoder=s,T.maxValues=t.maxPrivatePackedValues||(E?16:1/0),T.objectMap=E||!1,T.samplingPackedValues=v,Za(g,T),T.values.length&gt;0){w[h++]=216,w[h++]=51,Xt(4);let C=T.values;f(C),Xt(0),Xt(0),_=Object.create(E||null);for(let j=0,z=C.length;j&lt;z;j++)_[C[j]]=j}}Ws=V&amp;Ks;try{if(Ws)return;if(f(g),De&amp;&amp;Rp(n,f),s.offset=h,a&amp;&amp;a.idsToInsert){h+=a.idsToInsert.length*2,h&gt;$n&amp;&amp;I(h),s.offset=h;let T=GS(w.subarray(n,h),a.idsToInsert);return a=null,T}return V&amp;Zp?(w.start=n,w.end=h,w):w.subarray(n,h)}finally{if(i){if(d&lt;10&amp;&amp;d++,i.length&gt;m&amp;&amp;(i.length=m),c&gt;1e4)i.transitions=null,d=0,c=0,N.length&gt;0&amp;&amp;(N=[]);else if(N.length&gt;0&amp;&amp;!p){for(let T=0,C=N.length;T&lt;C;T++)N[T][mt]=void 0;N=[]}}if(r&amp;&amp;s.saveShared){s.structures.length&gt;m&amp;&amp;(s.structures=s.structures.slice(0,m));let T=w.subarray(n,h);return s.updateSharedData()===!1?s.encode(g):T}V&amp;QS&amp;&amp;(h=n)}},this.findCommonStringsToPack=()=&gt;(v=new Map,E||(E=Object.create(null)),g=&gt;{let V=g&amp;&amp;g.threshold||4,T=this.pack?g.maxPrivatePackedValues||16:0;$||($=this.sharedValues=[]);for(let[C,j]of v)j.count&gt;V&amp;&amp;(E[C]=T++,$.push(C),r=!0);for(;this.saveShared&amp;&amp;this.updateSharedData()===!1;);v=null});const f=g=&gt;{h&gt;$n&amp;&amp;(w=I(h));var V=typeof g,T;if(V===&quot;string&quot;){if(_){let D=_[g];if(D&gt;=0){D&lt;16?w[h++]=D+224:(w[h++]=198,D&amp;1?f(15-D&gt;&gt;1):f(D-16&gt;&gt;1));return}else if(v&amp;&amp;!t.pack){let R=v.get(g);R?R.count++:v.set(g,{count:1})}}let C=g.length;if(De&amp;&amp;C&gt;=4&amp;&amp;C&lt;1024){if((De.size+=C)&gt;VS){let R,K=(De[0]?De[0].length*3+De[1].length:0)+10;h+K&gt;$n&amp;&amp;(w=I(h+K)),w[h++]=217,w[h++]=223,w[h++]=249,w[h++]=De.position?132:130,w[h++]=26,R=h-n,h+=4,De.position&amp;&amp;Rp(n,f),De=[&quot;&quot;,&quot;&quot;],De.size=0,De.position=R}let D=WS.test(g);De[D?0:1]+=g,w[h++]=D?206:207,f(C);return}let j;C&lt;32?j=1:C&lt;256?j=2:C&lt;65536?j=3:j=5;let z=C*3;if(h+z&gt;$n&amp;&amp;(w=I(h+z)),C&lt;64||!u){let D,R,K,G=h+j;for(D=0;D&lt;C;D++)R=g.charCodeAt(D),R&lt;128?w[G++]=R:R&lt;2048?(w[G++]=R&gt;&gt;6|192,w[G++]=R&amp;63|128):(R&amp;64512)===55296&amp;&amp;((K=g.charCodeAt(D+1))&amp;64512)===56320?(R=65536+((R&amp;1023)&lt;&lt;10)+(K&amp;1023),D++,w[G++]=R&gt;&gt;18|240,w[G++]=R&gt;&gt;12&amp;63|128,w[G++]=R&gt;&gt;6&amp;63|128,w[G++]=R&amp;63|128):(w[G++]=R&gt;&gt;12|224,w[G++]=R&gt;&gt;6&amp;63|128,w[G++]=R&amp;63|128);T=G-h-j}else T=u(g,h+j,z);T&lt;24?w[h++]=96|T:T&lt;256?(j&lt;2&amp;&amp;w.copyWithin(h+2,h+1,h+1+T),w[h++]=120,w[h++]=T):T&lt;65536?(j&lt;3&amp;&amp;w.copyWithin(h+3,h+2,h+2+T),w[h++]=121,w[h++]=T&gt;&gt;8,w[h++]=T&amp;255):(j&lt;5&amp;&amp;w.copyWithin(h+5,h+3,h+3+T),w[h++]=122,$e.setUint32(h,T),h+=4),h+=T}else if(V===&quot;number&quot;)if(!this.alwaysUseFloat&amp;&amp;g&gt;&gt;&gt;0===g)g&lt;24?w[h++]=g:g&lt;256?(w[h++]=24,w[h++]=g):g&lt;65536?(w[h++]=25,w[h++]=g&gt;&gt;8,w[h++]=g&amp;255):(w[h++]=26,$e.setUint32(h,g),h+=4);else if(!this.alwaysUseFloat&amp;&amp;g&gt;&gt;0===g)g&gt;=-24?w[h++]=31-g:g&gt;=-256?(w[h++]=56,w[h++]=~g):g&gt;=-65536?(w[h++]=57,$e.setUint16(h,~g),h+=2):(w[h++]=58,$e.setUint32(h,~g),h+=4);else{let C;if((C=this.useFloat32)&gt;0&amp;&amp;g&lt;4294967296&amp;&amp;g&gt;=-2147483648){w[h++]=250,$e.setFloat32(h,g);let j;if(C&lt;4||(j=g*Sd[(w[h]&amp;127)&lt;&lt;1|w[h+1]&gt;&gt;7])&gt;&gt;0===j){h+=4;return}else h--}w[h++]=251,$e.setFloat64(h,g),h+=8}else if(V===&quot;object&quot;)if(!g)w[h++]=246;else{if(a){let j=a.get(g);if(j){if(w[h++]=216,w[h++]=29,w[h++]=25,!j.references){let z=a.idsToInsert||(a.idsToInsert=[]);j.references=[],z.push(j)}j.references.push(h-n),h+=2;return}else a.set(g,{offset:h-n})}let C=g.constructor;if(C===Object)k(g);else if(C===Array){T=g.length,T&lt;24?w[h++]=128|T:Xt(T);for(let j=0;j&lt;T;j++)f(g[j])}else if(C===Map)if((this.mapsAsObjects?this.useTag259ForMaps!==!1:this.useTag259ForMaps)&amp;&amp;(w[h++]=217,w[h++]=1,w[h++]=3),T=g.size,T&lt;24?w[h++]=160|T:T&lt;256?(w[h++]=184,w[h++]=T):T&lt;65536?(w[h++]=185,w[h++]=T&gt;&gt;8,w[h++]=T&amp;255):(w[h++]=186,$e.setUint32(h,T),h+=4),s.keyMap)for(let[j,z]of g)f(s.encodeKey(j)),f(z);else for(let[j,z]of g)f(j),f(z);else{for(let j=0,z=Gl.length;j&lt;z;j++){let D=Hg[j];if(g instanceof D){let R=Gl[j],K=R.tag;K==null&amp;&amp;(K=R.getTag&amp;&amp;R.getTag.call(this,g)),K&lt;24?w[h++]=192|K:K&lt;256?(w[h++]=216,w[h++]=K):K&lt;65536?(w[h++]=217,w[h++]=K&gt;&gt;8,w[h++]=K&amp;255):K&gt;-1&amp;&amp;(w[h++]=218,$e.setUint32(h,K),h+=4),R.encode.call(this,g,f,I);return}}if(g[Symbol.iterator]){if(Ws){let j=new Error(&quot;Iterable should be serialized as iterator&quot;);throw j.iteratorNotHandled=!0,j}w[h++]=159;for(let j of g)f(j);w[h++]=255;return}if(g[Symbol.asyncIterator]||Js(g)){let j=new Error(&quot;Iterable/blob should be serialized as iterator&quot;);throw j.iteratorNotHandled=!0,j}if(this.useToJSON&amp;&amp;g.toJSON){const j=g.toJSON();if(j!==g)return f(j)}k(g)}}else if(V===&quot;boolean&quot;)w[h++]=g?245:244;else if(V===&quot;bigint&quot;){if(g&lt;BigInt(1)&lt;&lt;BigInt(64)&amp;&amp;g&gt;=0)w[h++]=27,$e.setBigUint64(h,g);else if(g&gt;-(BigInt(1)&lt;&lt;BigInt(64))&amp;&amp;g&lt;0)w[h++]=59,$e.setBigUint64(h,-g-BigInt(1));else if(this.largeBigIntToFloat)w[h++]=251,$e.setFloat64(h,Number(g));else{g&gt;=BigInt(0)?w[h++]=194:(w[h++]=195,g=BigInt(-1)-g);let C=[];for(;g;)C.push(Number(g&amp;BigInt(255))),g&gt;&gt;=BigInt(8);Ql(new Uint8Array(C.reverse()),I);return}h+=8}else if(V===&quot;undefined&quot;)w[h++]=247;else throw new Error(&quot;Unknown type: &quot;+V)},k=this.useRecords===!1?this.variableMapSize?g=&gt;{let V=Object.keys(g),T=Object.values(g),C=V.length;if(C&lt;24?w[h++]=160|C:C&lt;256?(w[h++]=184,w[h++]=C):C&lt;65536?(w[h++]=185,w[h++]=C&gt;&gt;8,w[h++]=C&amp;255):(w[h++]=186,$e.setUint32(h,C),h+=4),s.keyMap)for(let j=0;j&lt;C;j++)f(s.encodeKey(V[j])),f(T[j]);else for(let j=0;j&lt;C;j++)f(V[j]),f(T[j])}:g=&gt;{w[h++]=185;let V=h-n;h+=2;let T=0;if(s.keyMap)for(let C in g)(typeof g.hasOwnProperty!=&quot;function&quot;||g.hasOwnProperty(C))&amp;&amp;(f(s.encodeKey(C)),f(g[C]),T++);else for(let C in g)(typeof g.hasOwnProperty!=&quot;function&quot;||g.hasOwnProperty(C))&amp;&amp;(f(C),f(g[C]),T++);w[V+++n]=T&gt;&gt;8,w[V+n]=T&amp;255}:(g,V)=&gt;{let T,C=o.transitions||(o.transitions=Object.create(null)),j=0,z=0,D,R;if(this.keyMap){R=Object.keys(g).map(G=&gt;this.encodeKey(G)),z=R.length;for(let G=0;G&lt;z;G++){let Qn=R[G];T=C[Qn],T||(T=C[Qn]=Object.create(null),j++),C=T}}else for(let G in g)(typeof g.hasOwnProperty!=&quot;function&quot;||g.hasOwnProperty(G))&amp;&amp;(T=C[G],T||(C[mt]&amp;1048576&amp;&amp;(D=C[mt]&amp;65535),T=C[G]=Object.create(null),j++),C=T,z++);let K=C[mt];if(K!==void 0)K&amp;=65535,w[h++]=217,w[h++]=K&gt;&gt;8|224,w[h++]=K&amp;255;else if(R||(R=C.__keys__||(C.__keys__=Object.keys(g))),D===void 0?(K=o.nextId++,K||(K=0,o.nextId=1),K&gt;=Cp&amp;&amp;(o.nextId=(K=m)+1)):K=D,o[K]=R,K&lt;m){w[h++]=217,w[h++]=K&gt;&gt;8|224,w[h++]=K&amp;255,C=o.transitions;for(let G=0;G&lt;z;G++)(C[mt]===void 0||C[mt]&amp;1048576)&amp;&amp;(C[mt]=K),C=C[R[G]];C[mt]=K|1048576,r=!0}else{if(C[mt]=K,$e.setUint32(h,3655335680),h+=3,j&amp;&amp;(c+=d*j),N.length&gt;=Cp-m&amp;&amp;(N.shift()[mt]=void 0),N.push(C),Xt(z+2),f(57344+K),f(R),V)return;for(let G in g)(typeof g.hasOwnProperty!=&quot;function&quot;||g.hasOwnProperty(G))&amp;&amp;f(g[G]);return}if(z&lt;24?w[h++]=128|z:Xt(z),!V)for(let G in g)(typeof g.hasOwnProperty!=&quot;function&quot;||g.hasOwnProperty(G))&amp;&amp;f(g[G])},I=g=&gt;{let V;if(g&gt;16777216){if(g-n&gt;Ap)throw new Error(&quot;Encoded buffer would be larger than maximum buffer size&quot;);V=Math.min(Ap,Math.round(Math.max((g-n)*(g&gt;67108864?1.25:2),4194304)/4096)*4096)}else V=(Math.max(g-n&lt;&lt;2,w.length-1)&gt;&gt;12)+1&lt;&lt;12;let T=new Vs(V);return $e=new DataView(T.buffer,0,V),w.copy?w.copy(T,0,n,g):T.set(w.slice(n,g)),h-=n,n=0,$n=T.length-10,w=T};let P=100,L=1e3;this.encodeAsIterable=function(g,V){return ot(g,V,F)},this.encodeAsAsyncIterable=function(g,V){return ot(g,V,_n)};function*F(g,V,T){let C=g.constructor;if(C===Object){let j=s.useRecords!==!1;j?k(g,!0):Dp(Object.keys(g).length,160);for(let z in g){let D=g[z];j||f(z),D&amp;&amp;typeof D==&quot;object&quot;?V[z]?yield*F(D,V[z]):yield*ve(D,V,z):f(D)}}else if(C===Array){let j=g.length;Xt(j);for(let z=0;z&lt;j;z++){let D=g[z];D&amp;&amp;(typeof D==&quot;object&quot;||h-n&gt;P)?V.element?yield*F(D,V.element):yield*ve(D,V,&quot;element&quot;):f(D)}}else if(g[Symbol.iterator]&amp;&amp;!g.buffer){w[h++]=159;for(let j of g)j&amp;&amp;(typeof j==&quot;object&quot;||h-n&gt;P)?V.element?yield*F(j,V.element):yield*ve(j,V,&quot;element&quot;):f(j);w[h++]=255}else Js(g)?(Dp(g.size,64),yield w.subarray(n,h),yield g,te()):g[Symbol.asyncIterator]?(w[h++]=159,yield w.subarray(n,h),yield g,te(),w[h++]=255):f(g);T&amp;&amp;h&gt;n?yield w.subarray(n,h):h-n&gt;P&amp;&amp;(yield w.subarray(n,h),te())}function*ve(g,V,T){let C=h-n;try{f(g),h-n&gt;P&amp;&amp;(yield w.subarray(n,h),te())}catch(j){if(j.iteratorNotHandled)V[T]={},h=n+C,yield*F.call(this,g,V[T]);else throw j}}function te(){P=L,s.encode(null,Ks)}function ot(g,V,T){return V&amp;&amp;V.chunkThreshold?P=L=V.chunkThreshold:P=100,g&amp;&amp;typeof g==&quot;object&quot;?(s.encode(null,Ks),T(g,s.iterateProperties||(s.iterateProperties={}),!0)):[s.encode(g)]}async function*_n(g,V){for(let T of F(g,V,!0)){let C=T.constructor;if(C===Up||C===Uint8Array)yield T;else if(Js(T)){let j=T.stream().getReader(),z;for(;!(z=await j.read()).done;)yield z.value}else if(T[Symbol.asyncIterator])for await(let j of T)te(),j?yield*_n(j,V.async||(V.async={})):yield s.encode(j);else yield T}}}useBuffer(t){w=t,$e=new DataView(w.buffer,w.byteOffset,w.byteLength),h=0}clearSharedData(){this.structures&amp;&amp;(this.structures=[]),this.sharedValues&amp;&amp;(this.sharedValues=void 0)}updateSharedData(){let t=this.sharedVersion||0;this.sharedVersion=t+1;let n=this.structures.slice(0),i=new Gg(n,this.sharedValues,this.sharedVersion),r=this.saveShared(i,o=&gt;(o&amp;&amp;o.version||0)==t);return r===!1?(i=this.getShared()||{},this.structures=i.structures||[],this.sharedValues=i.packedValues,this.sharedVersion=i.version,this.structures.nextId=this.structures.length):n.forEach((o,a)=&gt;this.structures[a]=o),r}}function Dp(e,t){e&lt;24?w[h++]=t|e:e&lt;256?(w[h++]=t|24,w[h++]=e):e&lt;65536?(w[h++]=t|25,w[h++]=e&gt;&gt;8,w[h++]=e&amp;255):(w[h++]=t|26,$e.setUint32(h,e),h+=4)}class Gg{constructor(t,n,i){this.structures=t,this.packedValues=n,this.version=i}}function Xt(e){e&lt;24?w[h++]=128|e:e&lt;256?(w[h++]=152,w[h++]=e):e&lt;65536?(w[h++]=153,w[h++]=e&gt;&gt;8,w[h++]=e&amp;255):(w[h++]=154,$e.setUint32(h,e),h+=4)}const KS=typeof Blob&gt;&quot;u&quot;?function(){}:Blob;function Js(e){if(e instanceof KS)return!0;let t=e[Symbol.toStringTag];return t===&quot;Blob&quot;||t===&quot;File&quot;}function Za(e,t){switch(typeof e){case&quot;string&quot;:if(e.length&gt;3){if(t.objectMap[e]&gt;-1||t.values.length&gt;=t.maxValues)return;let i=t.get(e);if(i)++i.count==2&amp;&amp;t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let r=t.samplingPackedValues.get(e);r?r.count++:t.samplingPackedValues.set(e,{count:1})}}break;case&quot;object&quot;:if(e)if(e instanceof Array)for(let i=0,r=e.length;i&lt;r;i++)Za(e[i],t);else{let i=!t.encoder.useRecords;for(var n in e)e.hasOwnProperty(n)&amp;&amp;(i&amp;&amp;Za(n,t),Za(e[n],t))}break;case&quot;function&quot;:console.log(e)}}const HS=new Uint8Array(new Uint16Array([1]).buffer)[0]==1;Hg=[Date,Set,Error,RegExp,Sr,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?function(){}:BigInt64Array,Float32Array,Float64Array,Gg];Gl=[{tag:1,encode(e,t){let n=e.getTime()/1e3;(this.useTimestamp32||e.getMilliseconds()===0)&amp;&amp;n&gt;=0&amp;&amp;n&lt;4294967296?(w[h++]=26,$e.setUint32(h,n),h+=4):(w[h++]=251,$e.setFloat64(h,n),h+=8)}},{tag:258,encode(e,t){let n=Array.from(e);t(n)}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t([&quot;RegExp&quot;,e.source,e.flags])}},{getTag(e){return e.tag},encode(e,t){t(e.value)}},{encode(e,t,n){Ql(e,n)}},{getTag(e){if(e.constructor===Uint8Array&amp;&amp;(this.tagUint8Array||Qo&amp;&amp;this.tagUint8Array!==!1))return 64},encode(e,t,n){Ql(e,n)}},Gt(68,1),Gt(69,2),Gt(70,4),Gt(71,8),Gt(72,1),Gt(77,2),Gt(78,4),Gt(79,8),Gt(85,4),Gt(86,8),{encode(e,t){let n=e.packedValues||[],i=e.structures||[];if(n.values.length&gt;0){w[h++]=216,w[h++]=51,Xt(4);let r=n.values;t(r),Xt(0),Xt(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let o=0,a=r.length;o&lt;a;o++)packedObjectMap[r[o]]=o}if(i){$e.setUint32(h,3655335424),h+=3;let r=i.slice(0);r.unshift(57344),r.push(new Sr(e.version,1399353956)),t(r)}else t(new Sr(e.version,1399353956))}}];function Gt(e,t){return!HS&amp;&amp;t&gt;1&amp;&amp;(e-=4),{tag:e,encode:function(i,r){let o=i.byteLength,a=i.byteOffset||0,u=i.buffer||i;r(Qo?Qu.from(u,a,o):new Uint8Array(u,a,o))}}}function Ql(e,t){let n=e.byteLength;n&lt;24?w[h++]=64+n:n&lt;256?(w[h++]=88,w[h++]=n):n&lt;65536?(w[h++]=89,w[h++]=n&gt;&gt;8,w[h++]=n&amp;255):(w[h++]=90,$e.setUint32(h,n),h+=4),h+n&gt;=w.length&amp;&amp;t(h+n),w.set(e.buffer?e:new Uint8Array(e),h),h+=n}function GS(e,t){let n,i=t.length*2,r=e.length-i;t.sort((o,a)=&gt;o.offset&gt;a.offset?1:-1);for(let o=0;o&lt;t.length;o++){let a=t[o];a.id=o;for(let u of a.references)e[u++]=o&gt;&gt;8,e[u]=o&amp;255}for(;n=t.pop();){let o=n.offset;e.copyWithin(o+i,o,r),i-=2;let a=o+i;e[a++]=216,e[a++]=28,r=o}return e}function Rp(e,t){$e.setUint32(De.position+e,h-De.position-e+1);let n=De;De=null,t(n[0]),t(n[1])}let bd=new JS({useRecords:!1});const Qg=bd.encode;bd.encodeAsIterable;bd.encodeAsAsyncIterable;const Zp=512,QS=1024,Ks=2048;var de;(function(e){e.assertEqual=r=&gt;{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=&gt;{const o={};for(const a of r)o[a]=a;return o},e.getValidEnumValues=r=&gt;{const o=e.objectKeys(r).filter(u=&gt;typeof r[r[u]]!=&quot;number&quot;),a={};for(const u of o)a[u]=r[u];return e.objectValues(a)},e.objectValues=r=&gt;e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys==&quot;function&quot;?r=&gt;Object.keys(r):r=&gt;{const o=[];for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&amp;&amp;o.push(a);return o},e.find=(r,o)=&gt;{for(const a of r)if(o(a))return a},e.isInteger=typeof Number.isInteger==&quot;function&quot;?r=&gt;Number.isInteger(r):r=&gt;typeof r==&quot;number&quot;&amp;&amp;Number.isFinite(r)&amp;&amp;Math.floor(r)===r;function i(r,o=&quot; | &quot;){return r.map(a=&gt;typeof a==&quot;string&quot;?`&#39;${a}&#39;`:a).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(r,o)=&gt;typeof o==&quot;bigint&quot;?o.toString():o})(de||(de={}));var Lp;(function(e){e.mergeShapes=(t,n)=&gt;({...t,...n})})(Lp||(Lp={}));const J=de.arrayToEnum([&quot;string&quot;,&quot;nan&quot;,&quot;number&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;boolean&quot;,&quot;date&quot;,&quot;bigint&quot;,&quot;symbol&quot;,&quot;function&quot;,&quot;undefined&quot;,&quot;null&quot;,&quot;array&quot;,&quot;object&quot;,&quot;unknown&quot;,&quot;promise&quot;,&quot;void&quot;,&quot;never&quot;,&quot;map&quot;,&quot;set&quot;]),xn=e=&gt;{switch(typeof e){case&quot;undefined&quot;:return J.undefined;case&quot;string&quot;:return J.string;case&quot;number&quot;:return Number.isNaN(e)?J.nan:J.number;case&quot;boolean&quot;:return J.boolean;case&quot;function&quot;:return J.function;case&quot;bigint&quot;:return J.bigint;case&quot;symbol&quot;:return J.symbol;case&quot;object&quot;:return Array.isArray(e)?J.array:e===null?J.null:e.then&amp;&amp;typeof e.then==&quot;function&quot;&amp;&amp;e.catch&amp;&amp;typeof e.catch==&quot;function&quot;?J.promise:typeof Map&lt;&quot;u&quot;&amp;&amp;e instanceof Map?J.map:typeof Set&lt;&quot;u&quot;&amp;&amp;e instanceof Set?J.set:typeof Date&lt;&quot;u&quot;&amp;&amp;e instanceof Date?J.date:J.object;default:return J.unknown}},A=de.arrayToEnum([&quot;invalid_type&quot;,&quot;invalid_literal&quot;,&quot;custom&quot;,&quot;invalid_union&quot;,&quot;invalid_union_discriminator&quot;,&quot;invalid_enum_value&quot;,&quot;unrecognized_keys&quot;,&quot;invalid_arguments&quot;,&quot;invalid_return_type&quot;,&quot;invalid_date&quot;,&quot;invalid_string&quot;,&quot;too_small&quot;,&quot;too_big&quot;,&quot;invalid_intersection_types&quot;,&quot;not_multiple_of&quot;,&quot;not_finite&quot;]);let xr=class Xg extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=&gt;{this.issues=[...this.issues,i]},this.addIssues=(i=[])=&gt;{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=&quot;ZodError&quot;,this.issues=t}format(t){const n=t||function(o){return o.message},i={_errors:[]},r=o=&gt;{for(const a of o.issues)if(a.code===&quot;invalid_union&quot;)a.unionErrors.map(r);else if(a.code===&quot;invalid_return_type&quot;)r(a.returnTypeError);else if(a.code===&quot;invalid_arguments&quot;)r(a.argumentsError);else if(a.path.length===0)i._errors.push(n(a));else{let u=i,s=0;for(;s&lt;a.path.length;){const l=a.path[s];s===a.path.length-1?(u[l]=u[l]||{_errors:[]},u[l]._errors.push(n(a))):u[l]=u[l]||{_errors:[]},u=u[l],s++}}};return r(this),i}static assert(t){if(!(t instanceof Xg))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,de.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=&gt;n.message){const n={},i=[];for(const r of this.issues)if(r.path.length&gt;0){const o=r.path[0];n[o]=n[o]||[],n[o].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};xr.create=e=&gt;new xr(e);const Xl=(e,t)=&gt;{let n;switch(e.code){case A.invalid_type:e.received===J.undefined?n=&quot;Required&quot;:n=`Expected ${e.expected}, received ${e.received}`;break;case A.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,de.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:n=`Unrecognized key(s) in object: ${de.joinValues(e.keys,&quot;, &quot;)}`;break;case A.invalid_union:n=&quot;Invalid input&quot;;break;case A.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${de.joinValues(e.options)}`;break;case A.invalid_enum_value:n=`Invalid enum value. Expected ${de.joinValues(e.options)}, received &#39;${e.received}&#39;`;break;case A.invalid_arguments:n=&quot;Invalid function arguments&quot;;break;case A.invalid_return_type:n=&quot;Invalid function return type&quot;;break;case A.invalid_date:n=&quot;Invalid date&quot;;break;case A.invalid_string:typeof e.validation==&quot;object&quot;?&quot;includes&quot;in e.validation?(n=`Invalid input: must include &quot;${e.validation.includes}&quot;`,typeof e.validation.position==&quot;number&quot;&amp;&amp;(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):&quot;startsWith&quot;in e.validation?n=`Invalid input: must start with &quot;${e.validation.startsWith}&quot;`:&quot;endsWith&quot;in e.validation?n=`Invalid input: must end with &quot;${e.validation.endsWith}&quot;`:de.assertNever(e.validation):e.validation!==&quot;regex&quot;?n=`Invalid ${e.validation}`:n=&quot;Invalid&quot;;break;case A.too_small:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;more than&quot;} ${e.minimum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;over&quot;} ${e.minimum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;bigint&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${new Date(Number(e.minimum))}`:n=&quot;Invalid input&quot;;break;case A.too_big:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;less than&quot;} ${e.maximum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;under&quot;} ${e.maximum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;bigint&quot;?n=`BigInt must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;smaller than or equal to&quot;:&quot;smaller than&quot;} ${new Date(Number(e.maximum))}`:n=&quot;Invalid input&quot;;break;case A.custom:n=&quot;Invalid input&quot;;break;case A.invalid_intersection_types:n=&quot;Intersection results could not be merged&quot;;break;case A.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case A.not_finite:n=&quot;Number must be finite&quot;;break;default:n=t.defaultError,de.assertNever(e)}return{message:n}};let XS=Xl;function YS(){return XS}const qS=e=&gt;{const{data:t,path:n,errorMaps:i,issueData:r}=e,o=[...n,...r.path||[]],a={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let u=&quot;&quot;;const s=i.filter(l=&gt;!!l).slice().reverse();for(const l of s)u=l(a,{data:t,defaultError:u}).message;return{...r,path:o,message:u}};function M(e,t){const n=YS(),i=qS({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Xl?void 0:Xl].filter(r=&gt;!!r)});e.common.issues.push(i)}class $t{constructor(){this.value=&quot;valid&quot;}dirty(){this.value===&quot;valid&quot;&amp;&amp;(this.value=&quot;dirty&quot;)}abort(){this.value!==&quot;aborted&quot;&amp;&amp;(this.value=&quot;aborted&quot;)}static mergeArray(t,n){const i=[];for(const r of n){if(r.status===&quot;aborted&quot;)return X;r.status===&quot;dirty&quot;&amp;&amp;t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const r of n){const o=await r.key,a=await r.value;i.push({key:o,value:a})}return $t.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const r of n){const{key:o,value:a}=r;if(o.status===&quot;aborted&quot;||a.status===&quot;aborted&quot;)return X;o.status===&quot;dirty&quot;&amp;&amp;t.dirty(),a.status===&quot;dirty&quot;&amp;&amp;t.dirty(),o.value!==&quot;__proto__&quot;&amp;&amp;(typeof a.value&lt;&quot;u&quot;||r.alwaysSet)&amp;&amp;(i[o.value]=a.value)}return{status:t.value,value:i}}}const X=Object.freeze({status:&quot;aborted&quot;}),Xi=e=&gt;({status:&quot;dirty&quot;,value:e}),Ct=e=&gt;({status:&quot;valid&quot;,value:e}),Mp=e=&gt;e.status===&quot;aborted&quot;,Fp=e=&gt;e.status===&quot;dirty&quot;,$i=e=&gt;e.status===&quot;valid&quot;,gu=e=&gt;typeof Promise&lt;&quot;u&quot;&amp;&amp;e instanceof Promise;var H;(function(e){e.errToObj=t=&gt;typeof t==&quot;string&quot;?{message:t}:t||{},e.toString=t=&gt;typeof t==&quot;string&quot;?t:t==null?void 0:t.message})(H||(H={}));class Wn{constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Bp=(e,t)=&gt;{if($i(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(&quot;Validation failed but no issues detected.&quot;);return{success:!1,get error(){if(this._error)return this._error;const n=new xr(e.common.issues);return this._error=n,this._error}}};function ie(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&amp;&amp;(n||i))throw new Error(`Can&#39;t use &quot;invalid_type_error&quot; or &quot;required_error&quot; in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(a,u)=&gt;{const{message:s}=e;return a.code===&quot;invalid_enum_value&quot;?{message:s??u.defaultError}:typeof u.data&gt;&quot;u&quot;?{message:s??i??u.defaultError}:a.code!==&quot;invalid_type&quot;?{message:u.defaultError}:{message:s??n??u.defaultError}},description:r}}let ce=class{get description(){return this._def.description}_getType(t){return xn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:xn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new $t,ctx:{common:t.parent.common,data:t.data,parsedType:xn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(gu(n))throw new Error(&quot;Synchronous parse encountered promise.&quot;);return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){const i={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xn(t)},r=this._parseSync({data:t,path:i.path,parent:i});return Bp(i,r)}&quot;~validate&quot;(t){var i,r;const n={common:{issues:[],async:!!this[&quot;~standard&quot;].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xn(t)};if(!this[&quot;~standard&quot;].async)try{const o=this._parseSync({data:t,path:[],parent:n});return $i(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(r=(i=o==null?void 0:o.message)==null?void 0:i.toLowerCase())!=null&amp;&amp;r.includes(&quot;encountered&quot;)&amp;&amp;(this[&quot;~standard&quot;].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=&gt;$i(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xn(t)},r=this._parse({data:t,path:i.path,parent:i}),o=await(gu(r)?r:Promise.resolve(r));return Bp(i,o)}refine(t,n){const i=r=&gt;typeof n==&quot;string&quot;||typeof n&gt;&quot;u&quot;?{message:n}:typeof n==&quot;function&quot;?n(r):n;return this._refinement((r,o)=&gt;{const a=t(r),u=()=&gt;o.addIssue({code:A.custom,...i(r)});return typeof Promise&lt;&quot;u&quot;&amp;&amp;a instanceof Promise?a.then(s=&gt;s?!0:(u(),!1)):a?!0:(u(),!1)})}refinement(t,n){return this._refinement((i,r)=&gt;t(i)?!0:(r.addIssue(typeof n==&quot;function&quot;?n(i,r):n),!1))}_refinement(t){return new Si({schema:this,typeName:Y.ZodEffects,effect:{type:&quot;refinement&quot;,refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[&quot;~standard&quot;]={version:1,vendor:&quot;zod&quot;,validate:n=&gt;this[&quot;~validate&quot;](n)}}optional(){return Fn.create(this,this._def)}nullable(){return xi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ki.create(this)}promise(){return wu.create(this,this._def)}or(t){return yu.create([this,t],this._def)}and(t){return _u.create(this,t,this._def)}transform(t){return new Si({...ie(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:&quot;transform&quot;,transform:t}})}default(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new uc({...ie(this._def),innerType:this,defaultValue:n,typeName:Y.ZodDefault})}brand(){return new kx({typeName:Y.ZodBranded,type:this,...ie(this._def)})}catch(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new sc({...ie(this._def),innerType:this,catchValue:n,typeName:Y.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return zd.create(this,t)}readonly(){return lc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const ex=/^c[^\s-]{8,}$/i,tx=/^[0-9a-z]+$/,nx=/^[0-9A-HJKMNP-TV-Z]{26}$/i,rx=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ix=/^[a-z0-9_-]{21}$/i,ox=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ax=/^[-+]?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)?)??$/,ux=/^(?!\.)(?!.*\.\.)([A-Z0-9_&#39;+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,sx=&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;;let Hs;const lx=/^(?:(?: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])$/,cx=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,dx=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,fx=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,mx=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,px=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Yg=&quot;((\\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])))&quot;,hx=new RegExp(`^${Yg}$`);function qg(e){let t=&quot;[0-5]\\d&quot;;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&amp;&amp;(t=`${t}(\\.\\d+)?`);const n=e.precision?&quot;+&quot;:&quot;?&quot;;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function vx(e){return new RegExp(`^${qg(e)}$`)}function gx(e){let t=`${Yg}T${qg(e)}`;const n=[];return n.push(e.local?&quot;Z?&quot;:&quot;Z&quot;),e.offset&amp;&amp;n.push(&quot;([+-]\\d{2}:?\\d{2})&quot;),t=`${t}(${n.join(&quot;|&quot;)})`,new RegExp(`^${t}$`)}function yx(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;lx.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;dx.test(e))}function _x(e,t){if(!ox.test(e))return!1;try{const[n]=e.split(&quot;.&quot;);if(!n)return!1;const i=n.replace(/-/g,&quot;+&quot;).replace(/_/g,&quot;/&quot;).padEnd(n.length+(4-n.length%4)%4,&quot;=&quot;),r=JSON.parse(atob(i));return!(typeof r!=&quot;object&quot;||r===null||&quot;typ&quot;in r&amp;&amp;(r==null?void 0:r.typ)!==&quot;JWT&quot;||!r.alg||t&amp;&amp;r.alg!==t)}catch{return!1}}function wx(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;cx.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;fx.test(e))}let Yl=class Yi extends ce{_parse(t){if(this._def.coerce&amp;&amp;(t.data=String(t.data)),this._getType(t)!==J.string){const o=this._getOrReturnCtx(t);return M(o,{code:A.invalid_type,expected:J.string,received:o.parsedType}),X}const i=new $t;let r;for(const o of this._def.checks)if(o.kind===&quot;min&quot;)t.data.length&lt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,minimum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind===&quot;max&quot;)t.data.length&gt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,maximum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind===&quot;length&quot;){const a=t.data.length&gt;o.value,u=t.data.length&lt;o.value;(a||u)&amp;&amp;(r=this._getOrReturnCtx(t,r),a?M(r,{code:A.too_big,maximum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:o.message}):u&amp;&amp;M(r,{code:A.too_small,minimum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind===&quot;email&quot;)ux.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;email&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;emoji&quot;)Hs||(Hs=new RegExp(sx,&quot;u&quot;)),Hs.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;emoji&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;uuid&quot;)rx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;uuid&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;nanoid&quot;)ix.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;nanoid&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;cuid&quot;)ex.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;cuid&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;cuid2&quot;)tx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;cuid2&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;ulid&quot;)nx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;ulid&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;url&quot;)try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;url&quot;,code:A.invalid_string,message:o.message}),i.dirty()}else o.kind===&quot;regex&quot;?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;regex&quot;,code:A.invalid_string,message:o.message}),i.dirty())):o.kind===&quot;trim&quot;?t.data=t.data.trim():o.kind===&quot;includes&quot;?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind===&quot;toLowerCase&quot;?t.data=t.data.toLowerCase():o.kind===&quot;toUpperCase&quot;?t.data=t.data.toUpperCase():o.kind===&quot;startsWith&quot;?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind===&quot;endsWith&quot;?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind===&quot;datetime&quot;?gx(o).test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:&quot;datetime&quot;,message:o.message}),i.dirty()):o.kind===&quot;date&quot;?hx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:&quot;date&quot;,message:o.message}),i.dirty()):o.kind===&quot;time&quot;?vx(o).test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:&quot;time&quot;,message:o.message}),i.dirty()):o.kind===&quot;duration&quot;?ax.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;duration&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;ip&quot;?yx(t.data,o.version)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;ip&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;jwt&quot;?_x(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;jwt&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;cidr&quot;?wx(t.data,o.version)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;cidr&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;base64&quot;?mx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;base64&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;base64url&quot;?px.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;base64url&quot;,code:A.invalid_string,message:o.message}),i.dirty()):de.assertNever(o);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=&gt;t.test(r),{validation:n,code:A.invalid_string,...H.errToObj(i)})}_addCheck(t){return new Yi({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:&quot;email&quot;,...H.errToObj(t)})}url(t){return this._addCheck({kind:&quot;url&quot;,...H.errToObj(t)})}emoji(t){return this._addCheck({kind:&quot;emoji&quot;,...H.errToObj(t)})}uuid(t){return this._addCheck({kind:&quot;uuid&quot;,...H.errToObj(t)})}nanoid(t){return this._addCheck({kind:&quot;nanoid&quot;,...H.errToObj(t)})}cuid(t){return this._addCheck({kind:&quot;cuid&quot;,...H.errToObj(t)})}cuid2(t){return this._addCheck({kind:&quot;cuid2&quot;,...H.errToObj(t)})}ulid(t){return this._addCheck({kind:&quot;ulid&quot;,...H.errToObj(t)})}base64(t){return this._addCheck({kind:&quot;base64&quot;,...H.errToObj(t)})}base64url(t){return this._addCheck({kind:&quot;base64url&quot;,...H.errToObj(t)})}jwt(t){return this._addCheck({kind:&quot;jwt&quot;,...H.errToObj(t)})}ip(t){return this._addCheck({kind:&quot;ip&quot;,...H.errToObj(t)})}cidr(t){return this._addCheck({kind:&quot;cidr&quot;,...H.errToObj(t)})}datetime(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;datetime&quot;,precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:&quot;datetime&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...H.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:&quot;date&quot;,message:t})}time(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;time&quot;,precision:null,message:t}):this._addCheck({kind:&quot;time&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,...H.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:&quot;duration&quot;,...H.errToObj(t)})}regex(t,n){return this._addCheck({kind:&quot;regex&quot;,regex:t,...H.errToObj(n)})}includes(t,n){return this._addCheck({kind:&quot;includes&quot;,value:t,position:n==null?void 0:n.position,...H.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:&quot;startsWith&quot;,value:t,...H.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:&quot;endsWith&quot;,value:t,...H.errToObj(n)})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t,...H.errToObj(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t,...H.errToObj(n)})}length(t,n){return this._addCheck({kind:&quot;length&quot;,value:t,...H.errToObj(n)})}nonempty(t){return this.min(1,H.errToObj(t))}trim(){return new Yi({...this._def,checks:[...this._def.checks,{kind:&quot;trim&quot;}]})}toLowerCase(){return new Yi({...this._def,checks:[...this._def.checks,{kind:&quot;toLowerCase&quot;}]})}toUpperCase(){return new Yi({...this._def,checks:[...this._def.checks,{kind:&quot;toUpperCase&quot;}]})}get isDatetime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;datetime&quot;)}get isDate(){return!!this._def.checks.find(t=&gt;t.kind===&quot;date&quot;)}get isTime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;time&quot;)}get isDuration(){return!!this._def.checks.find(t=&gt;t.kind===&quot;duration&quot;)}get isEmail(){return!!this._def.checks.find(t=&gt;t.kind===&quot;email&quot;)}get isURL(){return!!this._def.checks.find(t=&gt;t.kind===&quot;url&quot;)}get isEmoji(){return!!this._def.checks.find(t=&gt;t.kind===&quot;emoji&quot;)}get isUUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;uuid&quot;)}get isNANOID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;nanoid&quot;)}get isCUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid&quot;)}get isCUID2(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid2&quot;)}get isULID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ulid&quot;)}get isIP(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ip&quot;)}get isCIDR(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cidr&quot;)}get isBase64(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64&quot;)}get isBase64url(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64url&quot;)}get minLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}};Yl.create=e=&gt;new Yl({checks:[],typeName:Y.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ie(e)});function $x(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,i=(t.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=n&gt;i?n:i,o=Number.parseInt(e.toFixed(r).replace(&quot;.&quot;,&quot;&quot;)),a=Number.parseInt(t.toFixed(r).replace(&quot;.&quot;,&quot;&quot;));return o%a/10**r}let ql=class ec extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&amp;&amp;(t.data=Number(t.data)),this._getType(t)!==J.number){const o=this._getOrReturnCtx(t);return M(o,{code:A.invalid_type,expected:J.number,received:o.parsedType}),X}let i;const r=new $t;for(const o of this._def.checks)o.kind===&quot;int&quot;?de.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_type,expected:&quot;integer&quot;,received:&quot;float&quot;,message:o.message}),r.dirty()):o.kind===&quot;min&quot;?(o.inclusive?t.data&lt;o.value:t.data&lt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,minimum:o.value,type:&quot;number&quot;,inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind===&quot;max&quot;?(o.inclusive?t.data&gt;o.value:t.data&gt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,maximum:o.value,type:&quot;number&quot;,inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind===&quot;multipleOf&quot;?$x(t.data,o.value)!==0&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind===&quot;finite&quot;?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.not_finite,message:o.message}),r.dirty()):de.assertNever(o);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,H.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,H.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,H.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,H.toString(n))}setLimit(t,n,i,r){return new ec({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:H.toString(r)}]})}_addCheck(t){return new ec({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:&quot;int&quot;,message:H.toString(t)})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:H.toString(n)})}finite(t){return this._addCheck({kind:&quot;finite&quot;,message:H.toString(t)})}safe(t){return this._addCheck({kind:&quot;min&quot;,inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:H.toString(t)})._addCheck({kind:&quot;max&quot;,inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:H.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=&gt;t.kind===&quot;int&quot;||t.kind===&quot;multipleOf&quot;&amp;&amp;de.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind===&quot;finite&quot;||i.kind===&quot;int&quot;||i.kind===&quot;multipleOf&quot;)return!0;i.kind===&quot;min&quot;?(n===null||i.value&gt;n)&amp;&amp;(n=i.value):i.kind===&quot;max&quot;&amp;&amp;(t===null||i.value&lt;t)&amp;&amp;(t=i.value)}return Number.isFinite(n)&amp;&amp;Number.isFinite(t)}};ql.create=e=&gt;new ql({checks:[],typeName:Y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ie(e)});let Vp=class tc extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==J.bigint)return this._getInvalidInput(t);let i;const r=new $t;for(const o of this._def.checks)o.kind===&quot;min&quot;?(o.inclusive?t.data&lt;o.value:t.data&lt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,type:&quot;bigint&quot;,minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind===&quot;max&quot;?(o.inclusive?t.data&gt;o.value:t.data&gt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,type:&quot;bigint&quot;,maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind===&quot;multipleOf&quot;?t.data%o.value!==BigInt(0)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):de.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:J.bigint,received:n.parsedType}),X}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,H.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,H.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,H.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,H.toString(n))}setLimit(t,n,i,r){return new tc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:H.toString(r)}]})}_addCheck(t){return new tc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:H.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}};Vp.create=e=&gt;new Vp({checks:[],typeName:Y.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ie(e)});let nc=class extends ce{_parse(t){if(this._def.coerce&amp;&amp;(t.data=!!t.data),this._getType(t)!==J.boolean){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.boolean,received:i.parsedType}),X}return Ct(t.data)}};nc.create=e=&gt;new nc({typeName:Y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ie(e)});let Wp=class ey extends ce{_parse(t){if(this._def.coerce&amp;&amp;(t.data=new Date(t.data)),this._getType(t)!==J.date){const o=this._getOrReturnCtx(t);return M(o,{code:A.invalid_type,expected:J.date,received:o.parsedType}),X}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return M(o,{code:A.invalid_date}),X}const i=new $t;let r;for(const o of this._def.checks)o.kind===&quot;min&quot;?t.data.getTime()&lt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:&quot;date&quot;}),i.dirty()):o.kind===&quot;max&quot;?t.data.getTime()&gt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:&quot;date&quot;}),i.dirty()):de.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ey({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t.getTime(),message:H.toString(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t.getTime(),message:H.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}};Wp.create=e=&gt;new Wp({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Y.ZodDate,...ie(e)});let Jp=class extends ce{_parse(t){if(this._getType(t)!==J.symbol){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.symbol,received:i.parsedType}),X}return Ct(t.data)}};Jp.create=e=&gt;new Jp({typeName:Y.ZodSymbol,...ie(e)});let Kp=class extends ce{_parse(t){if(this._getType(t)!==J.undefined){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.undefined,received:i.parsedType}),X}return Ct(t.data)}};Kp.create=e=&gt;new Kp({typeName:Y.ZodUndefined,...ie(e)});let Hp=class extends ce{_parse(t){if(this._getType(t)!==J.null){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.null,received:i.parsedType}),X}return Ct(t.data)}};Hp.create=e=&gt;new Hp({typeName:Y.ZodNull,...ie(e)});let Gp=class extends ce{constructor(){super(...arguments),this._any=!0}_parse(t){return Ct(t.data)}};Gp.create=e=&gt;new Gp({typeName:Y.ZodAny,...ie(e)});let rc=class extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ct(t.data)}};rc.create=e=&gt;new rc({typeName:Y.ZodUnknown,...ie(e)});let Jn=class extends ce{_parse(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:J.never,received:n.parsedType}),X}};Jn.create=e=&gt;new Jn({typeName:Y.ZodNever,...ie(e)});let Qp=class extends ce{_parse(t){if(this._getType(t)!==J.undefined){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.void,received:i.parsedType}),X}return Ct(t.data)}};Qp.create=e=&gt;new Qp({typeName:Y.ZodVoid,...ie(e)});let ki=class La extends ce{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==J.array)return M(n,{code:A.invalid_type,expected:J.array,received:n.parsedType}),X;if(r.exactLength!==null){const a=n.data.length&gt;r.exactLength.value,u=n.data.length&lt;r.exactLength.value;(a||u)&amp;&amp;(M(n,{code:a?A.too_big:A.too_small,minimum:u?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:&quot;array&quot;,inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&amp;&amp;n.data.length&lt;r.minLength.value&amp;&amp;(M(n,{code:A.too_small,minimum:r.minLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&amp;&amp;n.data.length&gt;r.maxLength.value&amp;&amp;(M(n,{code:A.too_big,maximum:r.maxLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((a,u)=&gt;r.type._parseAsync(new Wn(n,a,n.path,u)))).then(a=&gt;$t.mergeArray(i,a));const o=[...n.data].map((a,u)=&gt;r.type._parseSync(new Wn(n,a,n.path,u)));return $t.mergeArray(i,o)}get element(){return this._def.type}min(t,n){return new La({...this._def,minLength:{value:t,message:H.toString(n)}})}max(t,n){return new La({...this._def,maxLength:{value:t,message:H.toString(n)}})}length(t,n){return new La({...this._def,exactLength:{value:t,message:H.toString(n)}})}nonempty(t){return this.min(1,t)}};ki.create=(e,t)=&gt;new ki({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...ie(t)});function Cr(e){if(e instanceof gn){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=Fn.create(Cr(i))}return new gn({...e._def,shape:()=&gt;t})}else return e instanceof ki?new ki({...e._def,type:Cr(e.element)}):e instanceof Fn?Fn.create(Cr(e.unwrap())):e instanceof xi?xi.create(Cr(e.unwrap())):e instanceof Uo?Uo.create(e.items.map(t=&gt;Cr(t))):e}let gn=class Dt extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=de.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==J.object){const l=this._getOrReturnCtx(t);return M(l,{code:A.invalid_type,expected:J.object,received:l.parsedType}),X}const{status:i,ctx:r}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),u=[];if(!(this._def.catchall instanceof Jn&amp;&amp;this._def.unknownKeys===&quot;strip&quot;))for(const l in r.data)a.includes(l)||u.push(l);const s=[];for(const l of a){const m=o[l],p=r.data[l];s.push({key:{status:&quot;valid&quot;,value:l},value:m._parse(new Wn(r,p,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof Jn){const l=this._def.unknownKeys;if(l===&quot;passthrough&quot;)for(const m of u)s.push({key:{status:&quot;valid&quot;,value:m},value:{status:&quot;valid&quot;,value:r.data[m]}});else if(l===&quot;strict&quot;)u.length&gt;0&amp;&amp;(M(r,{code:A.unrecognized_keys,keys:u}),i.dirty());else if(l!==&quot;strip&quot;)throw new Error(&quot;Internal ZodObject error: invalid unknownKeys value.&quot;)}else{const l=this._def.catchall;for(const m of u){const p=r.data[m];s.push({key:{status:&quot;valid&quot;,value:m},value:l._parse(new Wn(r,p,r.path,m)),alwaysSet:m in r.data})}}return r.common.async?Promise.resolve().then(async()=&gt;{const l=[];for(const m of s){const p=await m.key,v=await m.value;l.push({key:p,value:v,alwaysSet:m.alwaysSet})}return l}).then(l=&gt;$t.mergeObjectSync(i,l)):$t.mergeObjectSync(i,s)}get shape(){return this._def.shape()}strict(t){return H.errToObj,new Dt({...this._def,unknownKeys:&quot;strict&quot;,...t!==void 0?{errorMap:(n,i)=&gt;{var o,a;const r=((a=(o=this._def).errorMap)==null?void 0:a.call(o,n,i).message)??i.defaultError;return n.code===&quot;unrecognized_keys&quot;?{message:H.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new Dt({...this._def,unknownKeys:&quot;strip&quot;})}passthrough(){return new Dt({...this._def,unknownKeys:&quot;passthrough&quot;})}extend(t){return new Dt({...this._def,shape:()=&gt;({...this._def.shape(),...t})})}merge(t){return new Dt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=&gt;({...this._def.shape(),...t._def.shape()}),typeName:Y.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Dt({...this._def,catchall:t})}pick(t){const n={};for(const i of de.objectKeys(t))t[i]&amp;&amp;this.shape[i]&amp;&amp;(n[i]=this.shape[i]);return new Dt({...this._def,shape:()=&gt;n})}omit(t){const n={};for(const i of de.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new Dt({...this._def,shape:()=&gt;n})}deepPartial(){return Cr(this)}partial(t){const n={};for(const i of de.objectKeys(this.shape)){const r=this.shape[i];t&amp;&amp;!t[i]?n[i]=r:n[i]=r.optional()}return new Dt({...this._def,shape:()=&gt;n})}required(t){const n={};for(const i of de.objectKeys(this.shape))if(t&amp;&amp;!t[i])n[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof Fn;)o=o._def.innerType;n[i]=o}return new Dt({...this._def,shape:()=&gt;n})}keyof(){return ny(de.objectKeys(this.shape))}};gn.create=(e,t)=&gt;new gn({shape:()=&gt;e,unknownKeys:&quot;strip&quot;,catchall:Jn.create(),typeName:Y.ZodObject,...ie(t)});gn.strictCreate=(e,t)=&gt;new gn({shape:()=&gt;e,unknownKeys:&quot;strict&quot;,catchall:Jn.create(),typeName:Y.ZodObject,...ie(t)});gn.lazycreate=(e,t)=&gt;new gn({shape:e,unknownKeys:&quot;strip&quot;,catchall:Jn.create(),typeName:Y.ZodObject,...ie(t)});let yu=class extends ce{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function r(o){for(const u of o)if(u.result.status===&quot;valid&quot;)return u.result;for(const u of o)if(u.result.status===&quot;dirty&quot;)return n.common.issues.push(...u.ctx.common.issues),u.result;const a=o.map(u=&gt;new xr(u.ctx.common.issues));return M(n,{code:A.invalid_union,unionErrors:a}),X}if(n.common.async)return Promise.all(i.map(async o=&gt;{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let o;const a=[];for(const s of i){const l={...n,common:{...n.common,issues:[]},parent:null},m=s._parseSync({data:n.data,path:n.path,parent:l});if(m.status===&quot;valid&quot;)return m;m.status===&quot;dirty&quot;&amp;&amp;!o&amp;&amp;(o={result:m,ctx:l}),l.common.issues.length&amp;&amp;a.push(l.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const u=a.map(s=&gt;new xr(s));return M(n,{code:A.invalid_union,unionErrors:u}),X}}get options(){return this._def.options}};yu.create=(e,t)=&gt;new yu({options:e,typeName:Y.ZodUnion,...ie(t)});function ic(e,t){const n=xn(e),i=xn(t);if(e===t)return{valid:!0,data:e};if(n===J.object&amp;&amp;i===J.object){const r=de.objectKeys(t),o=de.objectKeys(e).filter(u=&gt;r.indexOf(u)!==-1),a={...e,...t};for(const u of o){const s=ic(e[u],t[u]);if(!s.valid)return{valid:!1};a[u]=s.data}return{valid:!0,data:a}}else if(n===J.array&amp;&amp;i===J.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let o=0;o&lt;e.length;o++){const a=e[o],u=t[o],s=ic(a,u);if(!s.valid)return{valid:!1};r.push(s.data)}return{valid:!0,data:r}}else return n===J.date&amp;&amp;i===J.date&amp;&amp;+e==+t?{valid:!0,data:e}:{valid:!1}}let _u=class extends ce{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=(o,a)=&gt;{if(Mp(o)||Mp(a))return X;const u=ic(o.value,a.value);return u.valid?((Fp(o)||Fp(a))&amp;&amp;n.dirty(),{status:n.value,value:u.data}):(M(i,{code:A.invalid_intersection_types}),X)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,a])=&gt;r(o,a)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};_u.create=(e,t,n)=&gt;new _u({left:e,right:t,typeName:Y.ZodIntersection,...ie(n)});let Uo=class ty extends ce{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==J.array)return M(i,{code:A.invalid_type,expected:J.array,received:i.parsedType}),X;if(i.data.length&lt;this._def.items.length)return M(i,{code:A.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),X;!this._def.rest&amp;&amp;i.data.length&gt;this._def.items.length&amp;&amp;(M(i,{code:A.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),n.dirty());const o=[...i.data].map((a,u)=&gt;{const s=this._def.items[u]||this._def.rest;return s?s._parse(new Wn(i,a,i.path,u)):null}).filter(a=&gt;!!a);return i.common.async?Promise.all(o).then(a=&gt;$t.mergeArray(n,a)):$t.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new ty({...this._def,rest:t})}};Uo.create=(e,t)=&gt;{if(!Array.isArray(e))throw new Error(&quot;You must pass an array of schemas to z.tuple([ ... ])&quot;);return new Uo({items:e,typeName:Y.ZodTuple,rest:null,...ie(t)})};let Xp=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==J.map)return M(i,{code:A.invalid_type,expected:J.map,received:i.parsedType}),X;const r=this._def.keyType,o=this._def.valueType,a=[...i.data.entries()].map(([u,s],l)=&gt;({key:r._parse(new Wn(i,u,i.path,[l,&quot;key&quot;])),value:o._parse(new Wn(i,s,i.path,[l,&quot;value&quot;]))}));if(i.common.async){const u=new Map;return Promise.resolve().then(async()=&gt;{for(const s of a){const l=await s.key,m=await s.value;if(l.status===&quot;aborted&quot;||m.status===&quot;aborted&quot;)return X;(l.status===&quot;dirty&quot;||m.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),u.set(l.value,m.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const s of a){const l=s.key,m=s.value;if(l.status===&quot;aborted&quot;||m.status===&quot;aborted&quot;)return X;(l.status===&quot;dirty&quot;||m.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),u.set(l.value,m.value)}return{status:n.value,value:u}}}};Xp.create=(e,t,n)=&gt;new Xp({valueType:t,keyType:e,typeName:Y.ZodMap,...ie(n)});let Yp=class oc extends ce{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==J.set)return M(i,{code:A.invalid_type,expected:J.set,received:i.parsedType}),X;const r=this._def;r.minSize!==null&amp;&amp;i.data.size&lt;r.minSize.value&amp;&amp;(M(i,{code:A.too_small,minimum:r.minSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&amp;&amp;i.data.size&gt;r.maxSize.value&amp;&amp;(M(i,{code:A.too_big,maximum:r.maxSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const o=this._def.valueType;function a(s){const l=new Set;for(const m of s){if(m.status===&quot;aborted&quot;)return X;m.status===&quot;dirty&quot;&amp;&amp;n.dirty(),l.add(m.value)}return{status:n.value,value:l}}const u=[...i.data.values()].map((s,l)=&gt;o._parse(new Wn(i,s,i.path,l)));return i.common.async?Promise.all(u).then(s=&gt;a(s)):a(u)}min(t,n){return new oc({...this._def,minSize:{value:t,message:H.toString(n)}})}max(t,n){return new oc({...this._def,maxSize:{value:t,message:H.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Yp.create=(e,t)=&gt;new Yp({valueType:e,minSize:null,maxSize:null,typeName:Y.ZodSet,...ie(t)});let qp=class extends ce{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};qp.create=(e,t)=&gt;new qp({getter:e,typeName:Y.ZodLazy,...ie(t)});let eh=class extends ce{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return M(n,{received:n.data,code:A.invalid_literal,expected:this._def.value}),X}return{status:&quot;valid&quot;,value:t.data}}get value(){return this._def.value}};eh.create=(e,t)=&gt;new eh({value:e,typeName:Y.ZodLiteral,...ie(t)});function ny(e,t){return new Id({values:e,typeName:Y.ZodEnum,...ie(t)})}let Id=class ac extends ce{_parse(t){if(typeof t.data!=&quot;string&quot;){const n=this._getOrReturnCtx(t),i=this._def.values;return M(n,{expected:de.joinValues(i),received:n.parsedType,code:A.invalid_type}),X}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return M(n,{received:n.data,code:A.invalid_enum_value,options:i}),X}return Ct(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return ac.create(t,{...this._def,...n})}exclude(t,n=this._def){return ac.create(this.options.filter(i=&gt;!t.includes(i)),{...this._def,...n})}};Id.create=ny;class th extends ce{_parse(t){const n=de.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==J.string&amp;&amp;i.parsedType!==J.number){const r=de.objectValues(n);return M(i,{expected:de.joinValues(r),received:i.parsedType,code:A.invalid_type}),X}if(this._cache||(this._cache=new Set(de.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=de.objectValues(n);return M(i,{received:i.data,code:A.invalid_enum_value,options:r}),X}return Ct(t.data)}get enum(){return this._def.values}}th.create=(e,t)=&gt;new th({values:e,typeName:Y.ZodNativeEnum,...ie(t)});let wu=class extends ce{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==J.promise&amp;&amp;n.common.async===!1)return M(n,{code:A.invalid_type,expected:J.promise,received:n.parsedType}),X;const i=n.parsedType===J.promise?n.data:Promise.resolve(n.data);return Ct(i.then(r=&gt;this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};wu.create=(e,t)=&gt;new wu({type:e,typeName:Y.ZodPromise,...ie(t)});class Si extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,o={addIssue:a=&gt;{M(i,a),a.fatal?n.abort():n.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),r.type===&quot;preprocess&quot;){const a=r.transform(i.data,o);if(i.common.async)return Promise.resolve(a).then(async u=&gt;{if(n.value===&quot;aborted&quot;)return X;const s=await this._def.schema._parseAsync({data:u,path:i.path,parent:i});return s.status===&quot;aborted&quot;?X:s.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?Xi(s.value):s});{if(n.value===&quot;aborted&quot;)return X;const u=this._def.schema._parseSync({data:a,path:i.path,parent:i});return u.status===&quot;aborted&quot;?X:u.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?Xi(u.value):u}}if(r.type===&quot;refinement&quot;){const a=u=&gt;{const s=r.refinement(u,o);if(i.common.async)return Promise.resolve(s);if(s instanceof Promise)throw new Error(&quot;Async refinement encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return u};if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return u.status===&quot;aborted&quot;?X:(u.status===&quot;dirty&quot;&amp;&amp;n.dirty(),a(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=&gt;u.status===&quot;aborted&quot;?X:(u.status===&quot;dirty&quot;&amp;&amp;n.dirty(),a(u.value).then(()=&gt;({status:n.value,value:u.value}))))}if(r.type===&quot;transform&quot;)if(i.common.async===!1){const a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!$i(a))return X;const u=r.transform(a.value,o);if(u instanceof Promise)throw new Error(&quot;Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=&gt;$i(a)?Promise.resolve(r.transform(a.value,o)).then(u=&gt;({status:n.value,value:u})):X);de.assertNever(r)}}Si.create=(e,t,n)=&gt;new Si({schema:e,typeName:Y.ZodEffects,effect:t,...ie(n)});Si.createWithPreprocess=(e,t,n)=&gt;new Si({schema:t,effect:{type:&quot;preprocess&quot;,transform:e},typeName:Y.ZodEffects,...ie(n)});let Fn=class extends ce{_parse(t){return this._getType(t)===J.undefined?Ct(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Fn.create=(e,t)=&gt;new Fn({innerType:e,typeName:Y.ZodOptional,...ie(t)});let xi=class extends ce{_parse(t){return this._getType(t)===J.null?Ct(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};xi.create=(e,t)=&gt;new xi({innerType:e,typeName:Y.ZodNullable,...ie(t)});let uc=class extends ce{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===J.undefined&amp;&amp;(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};uc.create=(e,t)=&gt;new uc({innerType:e,typeName:Y.ZodDefault,defaultValue:typeof t.default==&quot;function&quot;?t.default:()=&gt;t.default,...ie(t)});let sc=class extends ce{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return gu(r)?r.then(o=&gt;({status:&quot;valid&quot;,value:o.status===&quot;valid&quot;?o.value:this._def.catchValue({get error(){return new xr(i.common.issues)},input:i.data})})):{status:&quot;valid&quot;,value:r.status===&quot;valid&quot;?r.value:this._def.catchValue({get error(){return new xr(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};sc.create=(e,t)=&gt;new sc({innerType:e,typeName:Y.ZodCatch,catchValue:typeof t.catch==&quot;function&quot;?t.catch:()=&gt;t.catch,...ie(t)});let nh=class extends ce{_parse(t){if(this._getType(t)!==J.nan){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.nan,received:i.parsedType}),X}return{status:&quot;valid&quot;,value:t.data}}};nh.create=e=&gt;new nh({typeName:Y.ZodNaN,...ie(e)});class kx extends ce{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class zd extends ce{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=&gt;{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status===&quot;aborted&quot;?X:o.status===&quot;dirty&quot;?(n.dirty(),Xi(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status===&quot;aborted&quot;?X:r.status===&quot;dirty&quot;?(n.dirty(),{status:&quot;dirty&quot;,value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new zd({in:t,out:n,typeName:Y.ZodPipeline})}}let lc=class extends ce{_parse(t){const n=this._def.innerType._parse(t),i=r=&gt;($i(r)&amp;&amp;(r.value=Object.freeze(r.value)),r);return gu(n)?n.then(r=&gt;i(r)):i(n)}unwrap(){return this._def.innerType}};lc.create=(e,t)=&gt;new lc({innerType:e,typeName:Y.ZodReadonly,...ie(t)});var Y;(function(e){e.ZodString=&quot;ZodString&quot;,e.ZodNumber=&quot;ZodNumber&quot;,e.ZodNaN=&quot;ZodNaN&quot;,e.ZodBigInt=&quot;ZodBigInt&quot;,e.ZodBoolean=&quot;ZodBoolean&quot;,e.ZodDate=&quot;ZodDate&quot;,e.ZodSymbol=&quot;ZodSymbol&quot;,e.ZodUndefined=&quot;ZodUndefined&quot;,e.ZodNull=&quot;ZodNull&quot;,e.ZodAny=&quot;ZodAny&quot;,e.ZodUnknown=&quot;ZodUnknown&quot;,e.ZodNever=&quot;ZodNever&quot;,e.ZodVoid=&quot;ZodVoid&quot;,e.ZodArray=&quot;ZodArray&quot;,e.ZodObject=&quot;ZodObject&quot;,e.ZodUnion=&quot;ZodUnion&quot;,e.ZodDiscriminatedUnion=&quot;ZodDiscriminatedUnion&quot;,e.ZodIntersection=&quot;ZodIntersection&quot;,e.ZodTuple=&quot;ZodTuple&quot;,e.ZodRecord=&quot;ZodRecord&quot;,e.ZodMap=&quot;ZodMap&quot;,e.ZodSet=&quot;ZodSet&quot;,e.ZodFunction=&quot;ZodFunction&quot;,e.ZodLazy=&quot;ZodLazy&quot;,e.ZodLiteral=&quot;ZodLiteral&quot;,e.ZodEnum=&quot;ZodEnum&quot;,e.ZodEffects=&quot;ZodEffects&quot;,e.ZodNativeEnum=&quot;ZodNativeEnum&quot;,e.ZodOptional=&quot;ZodOptional&quot;,e.ZodNullable=&quot;ZodNullable&quot;,e.ZodDefault=&quot;ZodDefault&quot;,e.ZodCatch=&quot;ZodCatch&quot;,e.ZodPromise=&quot;ZodPromise&quot;,e.ZodBranded=&quot;ZodBranded&quot;,e.ZodPipeline=&quot;ZodPipeline&quot;,e.ZodReadonly=&quot;ZodReadonly&quot;})(Y||(Y={}));const ft=Yl.create,Sx=ql.create,xx=nc.create,Pi=rc.create;Jn.create;const Od=ki.create,Ze=gn.create,ry=yu.create;_u.create;Uo.create;const iy=Id.create;wu.create;Fn.create;xi.create;const oy=Object.freeze({status:&quot;aborted&quot;});function y(e,t,n){function i(u,s){var l;Object.defineProperty(u,&quot;_zod&quot;,{value:u._zod??{},enumerable:!1}),(l=u._zod).traits??(l.traits=new Set),u._zod.traits.add(e),t(u,s);for(const m in a.prototype)m in u||Object.defineProperty(u,m,{value:a.prototype[m].bind(u)});u._zod.constr=a,u._zod.def=s}const r=(n==null?void 0:n.Parent)??Object;class o extends r{}Object.defineProperty(o,&quot;name&quot;,{value:e});function a(u){var s;const l=n!=null&amp;&amp;n.Parent?new o:this;i(l,u),(s=l._zod).deferred??(s.deferred=[]);for(const m of l._zod.deferred)m();return l}return Object.defineProperty(a,&quot;init&quot;,{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:u=&gt;{var s,l;return n!=null&amp;&amp;n.Parent&amp;&amp;u instanceof n.Parent?!0:(l=(s=u==null?void 0:u._zod)==null?void 0:s.traits)==null?void 0:l.has(e)}}),Object.defineProperty(a,&quot;name&quot;,{value:e}),a}const ay=Symbol(&quot;zod_brand&quot;);class bi extends Error{constructor(){super(&quot;Encountered Promise during synchronous parse. Use .parseAsync() instead.&quot;)}}const $u={};function nt(e){return e&amp;&amp;Object.assign($u,e),$u}function bx(e){return e}function Ix(e){return e}function zx(e){}function Ox(e){throw new Error}function Ex(e){}function Ed(e){const t=Object.values(e).filter(i=&gt;typeof i==&quot;number&quot;);return Object.entries(e).filter(([i,r])=&gt;t.indexOf(+i)===-1).map(([i,r])=&gt;r)}function Z(e,t=&quot;|&quot;){return e.map(n=&gt;ne(n)).join(t)}function uy(e,t){return typeof t==&quot;bigint&quot;?t.toString():t}function Xu(e){return{get value(){{const t=e();return Object.defineProperty(this,&quot;value&quot;,{value:t}),t}}}}function Er(e){return e==null}function Yu(e){const t=e.startsWith(&quot;^&quot;)?1:0,n=e.endsWith(&quot;$&quot;)?e.length-1:e.length;return e.slice(t,n)}function sy(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,i=(t.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=n&gt;i?n:i,o=Number.parseInt(e.toFixed(r).replace(&quot;.&quot;,&quot;&quot;)),a=Number.parseInt(t.toFixed(r).replace(&quot;.&quot;,&quot;&quot;));return o%a/10**r}function me(e,t,n){Object.defineProperty(e,t,{get(){{const i=n();return e[t]=i,i}},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Ui(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Nx(e,t){return t?t.reduce((n,i)=&gt;n==null?void 0:n[i],e):e}function jx(e){const t=Object.keys(e),n=t.map(i=&gt;e[i]);return Promise.all(n).then(i=&gt;{const r={};for(let o=0;o&lt;t.length;o++)r[t[o]]=i[o];return r})}function Tx(e=10){const t=&quot;abcdefghijklmnopqrstuvwxyz&quot;;let n=&quot;&quot;;for(let i=0;i&lt;e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Ar(e){return JSON.stringify(e)}const Nd=Error.captureStackTrace?Error.captureStackTrace:(...e)=&gt;{};function Co(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;!Array.isArray(e)}const ly=Xu(()=&gt;{var e;if(typeof navigator&lt;&quot;u&quot;&amp;&amp;((e=navigator==null?void 0:navigator.userAgent)!=null&amp;&amp;e.includes(&quot;Cloudflare&quot;)))return!1;try{const t=Function;return new t(&quot;&quot;),!0}catch{return!1}});function Ao(e){if(Co(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Co(n)===!1||Object.prototype.hasOwnProperty.call(n,&quot;isPrototypeOf&quot;)===!1)}function Px(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;t++;return t}const Ux=e=&gt;{const t=typeof e;switch(t){case&quot;undefined&quot;:return&quot;undefined&quot;;case&quot;string&quot;:return&quot;string&quot;;case&quot;number&quot;:return Number.isNaN(e)?&quot;nan&quot;:&quot;number&quot;;case&quot;boolean&quot;:return&quot;boolean&quot;;case&quot;function&quot;:return&quot;function&quot;;case&quot;bigint&quot;:return&quot;bigint&quot;;case&quot;symbol&quot;:return&quot;symbol&quot;;case&quot;object&quot;:return Array.isArray(e)?&quot;array&quot;:e===null?&quot;null&quot;:e.then&amp;&amp;typeof e.then==&quot;function&quot;&amp;&amp;e.catch&amp;&amp;typeof e.catch==&quot;function&quot;?&quot;promise&quot;:typeof Map&lt;&quot;u&quot;&amp;&amp;e instanceof Map?&quot;map&quot;:typeof Set&lt;&quot;u&quot;&amp;&amp;e instanceof Set?&quot;set&quot;:typeof Date&lt;&quot;u&quot;&amp;&amp;e instanceof Date?&quot;date&quot;:typeof File&lt;&quot;u&quot;&amp;&amp;e instanceof File?&quot;file&quot;:&quot;object&quot;;default:throw new Error(`Unknown data type: ${t}`)}},ku=new Set([&quot;string&quot;,&quot;number&quot;,&quot;symbol&quot;]),cy=new Set([&quot;string&quot;,&quot;number&quot;,&quot;bigint&quot;,&quot;boolean&quot;,&quot;symbol&quot;,&quot;undefined&quot;]);function Nr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,&quot;\\$&amp;&quot;)}function nn(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n!=null&amp;&amp;n.parent)&amp;&amp;(i._zod.parent=e),i}function O(e){const t=e;if(!t)return{};if(typeof t==&quot;string&quot;)return{error:()=&gt;t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error(&quot;Cannot specify both `message` and `error` params&quot;);t.error=t.message}return delete t.message,typeof t.error==&quot;string&quot;?{...t,error:()=&gt;t.error}:t}function Cx(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function ne(e){return typeof e==&quot;bigint&quot;?e.toString()+&quot;n&quot;:typeof e==&quot;string&quot;?`&quot;${e}&quot;`:`${e}`}function dy(e){return Object.keys(e).filter(t=&gt;e[t]._zod.optin===&quot;optional&quot;&amp;&amp;e[t]._zod.optout===&quot;optional&quot;)}const fy={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]},my={int64:[BigInt(&quot;-9223372036854775808&quot;),BigInt(&quot;9223372036854775807&quot;)],uint64:[BigInt(0),BigInt(&quot;18446744073709551615&quot;)]};function py(e,t){const n={},i=e._zod.def;for(const r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: &quot;${r}&quot;`);t[r]&amp;&amp;(n[r]=i.shape[r])}return nn(e,{...e._zod.def,shape:n,checks:[]})}function hy(e,t){const n={...e._zod.def.shape},i=e._zod.def;for(const r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: &quot;${r}&quot;`);t[r]&amp;&amp;delete n[r]}return nn(e,{...e._zod.def,shape:n,checks:[]})}function vy(e,t){if(!Ao(t))throw new Error(&quot;Invalid input to extend: expected a plain object&quot;);const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Ui(this,&quot;shape&quot;,i),i},checks:[]};return nn(e,n)}function gy(e,t){return nn(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Ui(this,&quot;shape&quot;,n),n},catchall:t._zod.def.catchall,checks:[]})}function yy(e,t,n){const i=t._zod.def.shape,r={...i};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: &quot;${o}&quot;`);n[o]&amp;&amp;(r[o]=e?new e({type:&quot;optional&quot;,innerType:i[o]}):i[o])}else for(const o in i)r[o]=e?new e({type:&quot;optional&quot;,innerType:i[o]}):i[o];return nn(t,{...t._zod.def,shape:r,checks:[]})}function _y(e,t,n){const i=t._zod.def.shape,r={...i};if(n)for(const o in n){if(!(o in r))throw new Error(`Unrecognized key: &quot;${o}&quot;`);n[o]&amp;&amp;(r[o]=new e({type:&quot;nonoptional&quot;,innerType:i[o]}))}else for(const o in i)r[o]=new e({type:&quot;nonoptional&quot;,innerType:i[o]});return nn(t,{...t._zod.def,shape:r,checks:[]})}function oi(e,t=0){var n;for(let i=t;i&lt;e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function Nt(e,t){return t.map(n=&gt;{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function qi(e){return typeof e==&quot;string&quot;?e:e==null?void 0:e.message}function Jt(e,t,n){var r,o,a,u,s,l;const i={...e,path:e.path??[]};if(!e.message){const m=qi((a=(o=(r=e.inst)==null?void 0:r._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,e))??qi((u=t==null?void 0:t.error)==null?void 0:u.call(t,e))??qi((s=n.customError)==null?void 0:s.call(n,e))??qi((l=n.localeError)==null?void 0:l.call(n,e))??&quot;Invalid input&quot;;i.message=m}return delete i.inst,delete i.continue,t!=null&amp;&amp;t.reportInput||delete i.input,i}function qu(e){return e instanceof Set?&quot;set&quot;:e instanceof Map?&quot;map&quot;:e instanceof File?&quot;file&quot;:&quot;unknown&quot;}function es(e){return Array.isArray(e)?&quot;array&quot;:typeof e==&quot;string&quot;?&quot;string&quot;:&quot;unknown&quot;}function Ii(...e){const[t,n,i]=e;return typeof t==&quot;string&quot;?{message:t,code:&quot;custom&quot;,input:n,inst:i}:{...t}}function Ax(e){return Object.entries(e).filter(([t,n])=&gt;Number.isNaN(Number.parseInt(t,10))).map(t=&gt;t[1])}class Dx{constructor(...t){}}const Rx=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:my,Class:Dx,NUMBER_FORMAT_RANGES:fy,aborted:oi,allowsEval:ly,assert:Ex,assertEqual:bx,assertIs:zx,assertNever:Ox,assertNotEqual:Ix,assignProp:Ui,cached:Xu,captureStackTrace:Nd,cleanEnum:Ax,cleanRegex:Yu,clone:nn,createTransparentProxy:Cx,defineLazy:me,esc:Ar,escapeRegex:Nr,extend:vy,finalizeIssue:Jt,floatSafeRemainder:sy,getElementAtPath:Nx,getEnumValues:Ed,getLengthableOrigin:es,getParsedType:Ux,getSizableOrigin:qu,isObject:Co,isPlainObject:Ao,issue:Ii,joinValues:Z,jsonStringifyReplacer:uy,merge:gy,normalizeParams:O,nullish:Er,numKeys:Px,omit:hy,optionalKeys:dy,partial:yy,pick:py,prefixIssues:Nt,primitiveTypes:cy,promiseAllObject:jx,propertyKeyTypes:ku,randomString:Tx,required:_y,stringifyPrimitive:ne,unwrapMessage:qi},Symbol.toStringTag,{value:&quot;Module&quot;})),wy=(e,t)=&gt;{e.name=&quot;$ZodError&quot;,Object.defineProperty(e,&quot;_zod&quot;,{value:e._zod,enumerable:!1}),Object.defineProperty(e,&quot;issues&quot;,{value:t,enumerable:!1}),Object.defineProperty(e,&quot;message&quot;,{get(){return JSON.stringify(t,uy,2)},enumerable:!0}),Object.defineProperty(e,&quot;toString&quot;,{value:()=&gt;e.message,enumerable:!1})},jd=y(&quot;$ZodError&quot;,wy),Xo=y(&quot;$ZodError&quot;,wy,{Parent:Error});function Td(e,t=n=&gt;n.message){const n={},i=[];for(const r of e.issues)r.path.length&gt;0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function Pd(e,t){const n=t||function(o){return o.message},i={_errors:[]},r=o=&gt;{for(const a of o.issues)if(a.code===&quot;invalid_union&quot;&amp;&amp;a.errors.length)a.errors.map(u=&gt;r({issues:u}));else if(a.code===&quot;invalid_key&quot;)r({issues:a.issues});else if(a.code===&quot;invalid_element&quot;)r({issues:a.issues});else if(a.path.length===0)i._errors.push(n(a));else{let u=i,s=0;for(;s&lt;a.path.length;){const l=a.path[s];s===a.path.length-1?(u[l]=u[l]||{_errors:[]},u[l]._errors.push(n(a))):u[l]=u[l]||{_errors:[]},u=u[l],s++}}};return r(e),i}function $y(e,t){const n=t||function(o){return o.message},i={errors:[]},r=(o,a=[])=&gt;{var u,s;for(const l of o.issues)if(l.code===&quot;invalid_union&quot;&amp;&amp;l.errors.length)l.errors.map(m=&gt;r({issues:m},l.path));else if(l.code===&quot;invalid_key&quot;)r({issues:l.issues},l.path);else if(l.code===&quot;invalid_element&quot;)r({issues:l.issues},l.path);else{const m=[...a,...l.path];if(m.length===0){i.errors.push(n(l));continue}let p=i,v=0;for(;v&lt;m.length;){const _=m[v],$=v===m.length-1;typeof _==&quot;string&quot;?(p.properties??(p.properties={}),(u=p.properties)[_]??(u[_]={errors:[]}),p=p.properties[_]):(p.items??(p.items=[]),(s=p.items)[_]??(s[_]={errors:[]}),p=p.items[_]),$&amp;&amp;p.errors.push(n(l)),v++}}};return r(e),i}function ky(e){const t=[];for(const n of e)typeof n==&quot;number&quot;?t.push(`[${n}]`):typeof n==&quot;symbol&quot;?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&amp;&amp;t.push(&quot;.&quot;),t.push(n));return t.join(&quot;&quot;)}function Sy(e){var i;const t=[],n=[...e.issues].sort((r,o)=&gt;r.path.length-o.path.length);for(const r of n)t.push(`✖ ${r.message}`),(i=r.path)!=null&amp;&amp;i.length&amp;&amp;t.push(`  → at ${ky(r.path)}`);return t.join(`
`)}const Ud=e=&gt;(t,n,i,r)=&gt;{const o=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new bi;if(a.issues.length){const u=new((r==null?void 0:r.Err)??e)(a.issues.map(s=&gt;Jt(s,o,nt())));throw Nd(u,r==null?void 0:r.callee),u}return a.value},cc=Ud(Xo),Cd=e=&gt;async(t,n,i,r)=&gt;{const o=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&amp;&amp;(a=await a),a.issues.length){const u=new((r==null?void 0:r.Err)??e)(a.issues.map(s=&gt;Jt(s,o,nt())));throw Nd(u,r==null?void 0:r.callee),u}return a.value},dc=Cd(Xo),Ad=e=&gt;(t,n,i)=&gt;{const r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new bi;return o.issues.length?{success:!1,error:new(e??jd)(o.issues.map(a=&gt;Jt(a,r,nt())))}:{success:!0,data:o.value}},xy=Ad(Xo),Dd=e=&gt;async(t,n,i)=&gt;{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&amp;&amp;(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=&gt;Jt(a,r,nt())))}:{success:!0,data:o.value}},by=Dd(Xo),Iy=/^[cC][^\s-]{8,}$/,zy=/^[0-9a-z]+$/,Oy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ey=/^[0-9a-vA-V]{20}$/,Ny=/^[A-Za-z0-9]{27}$/,jy=/^[a-zA-Z0-9_-]{21}$/,Ty=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Zx=/^[-+]?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)?)??$/,Py=/^([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})$/,zi=e=&gt;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)$/,Lx=zi(4),Mx=zi(6),Fx=zi(7),Uy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_&#39;+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Bx=/^[a-zA-Z0-9.!#$%&amp;&#39;*+/=?^_`{|}~-]+@[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])?)*$/,Vx=/^(([^&lt;&gt;()\[\]\\.,;:\s@&quot;]+(\.[^&lt;&gt;()\[\]\\.,;:\s@&quot;]+)*)|(&quot;.+&quot;))@((\[[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,}))$/,Wx=/^[^\s@&quot;]{1,64}@[^\s@]{1,255}$/u,Jx=/^[a-zA-Z0-9.!#$%&amp;&#39;*+/=?^_`{|}~-]+@[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])?)*$/,Cy=&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;;function Ay(){return new RegExp(Cy,&quot;u&quot;)}const Dy=/^(?:(?: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])$/,Ry=/^(([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})$/,Zy=/^((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])$/,Ly=/^(([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])$/,My=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Rd=/^[A-Za-z0-9_-]*$/,Fy=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Kx=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,By=/^\+(?:[0-9]){6,14}[0-9]$/,Vy=&quot;(?:(?:\\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])))&quot;,Wy=new RegExp(`^${Vy}$`);function Jy(e){const t=&quot;(?:[01]\\d|2[0-3]):[0-5]\\d&quot;;return typeof e.precision==&quot;number&quot;?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ky(e){return new RegExp(`^${Jy(e)}$`)}function Hy(e){const t=Jy({precision:e.precision}),n=[&quot;Z&quot;];e.local&amp;&amp;n.push(&quot;&quot;),e.offset&amp;&amp;n.push(&quot;([+-]\\d{2}:\\d{2})&quot;);const i=`${t}(?:${n.join(&quot;|&quot;)})`;return new RegExp(`^${Vy}T(?:${i})$`)}const Gy=e=&gt;{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??&quot;&quot;}}`:&quot;[\\s\\S]*&quot;;return new RegExp(`^${t}$`)},Qy=/^\d+n?$/,Xy=/^\d+$/,Yy=/^-?\d+(?:\.\d+)?/i,qy=/true|false/i,e_=/null/i,t_=/undefined/i,n_=/^[^A-Z]*$/,r_=/^[^a-z]*$/,i_=Object.freeze(Object.defineProperty({__proto__:null,_emoji:Cy,base64:My,base64url:Rd,bigint:Qy,boolean:qy,browserEmail:Jx,cidrv4:Zy,cidrv6:Ly,cuid:Iy,cuid2:zy,date:Wy,datetime:Hy,domain:Kx,duration:Ty,e164:By,email:Uy,emoji:Ay,extendedDuration:Zx,guid:Py,hostname:Fy,html5Email:Bx,integer:Xy,ipv4:Dy,ipv6:Ry,ksuid:Ny,lowercase:n_,nanoid:jy,null:e_,number:Yy,rfc5322Email:Vx,string:Gy,time:Ky,ulid:Oy,undefined:t_,unicodeEmail:Wx,uppercase:r_,uuid:zi,uuid4:Lx,uuid6:Mx,uuid7:Fx,xid:Ey},Symbol.toStringTag,{value:&quot;Module&quot;})),Te=y(&quot;$ZodCheck&quot;,(e,t)=&gt;{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),o_={number:&quot;number&quot;,bigint:&quot;bigint&quot;,object:&quot;date&quot;},Zd=y(&quot;$ZodCheckLessThan&quot;,(e,t)=&gt;{Te.init(e,t);const n=o_[typeof t.value];e._zod.onattach.push(i=&gt;{const r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value&lt;o&amp;&amp;(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=&gt;{(t.inclusive?i.value&lt;=t.value:i.value&lt;t.value)||i.issues.push({origin:n,code:&quot;too_big&quot;,maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ld=y(&quot;$ZodCheckGreaterThan&quot;,(e,t)=&gt;{Te.init(e,t);const n=o_[typeof t.value];e._zod.onattach.push(i=&gt;{const r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value&gt;o&amp;&amp;(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=&gt;{(t.inclusive?i.value&gt;=t.value:i.value&gt;t.value)||i.issues.push({origin:n,code:&quot;too_small&quot;,minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),a_=y(&quot;$ZodCheckMultipleOf&quot;,(e,t)=&gt;{Te.init(e,t),e._zod.onattach.push(n=&gt;{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=&gt;{if(typeof n.value!=typeof t.value)throw new Error(&quot;Cannot mix number and bigint in multiple_of check.&quot;);(typeof n.value==&quot;bigint&quot;?n.value%t.value===BigInt(0):sy(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:&quot;not_multiple_of&quot;,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),u_=y(&quot;$ZodCheckNumberFormat&quot;,(e,t)=&gt;{var a;Te.init(e,t),t.format=t.format||&quot;float64&quot;;const n=(a=t.format)==null?void 0:a.includes(&quot;int&quot;),i=n?&quot;int&quot;:&quot;number&quot;,[r,o]=fy[t.format];e._zod.onattach.push(u=&gt;{const s=u._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&amp;&amp;(s.pattern=Xy)}),e._zod.check=u=&gt;{const s=u.value;if(n){if(!Number.isInteger(s)){u.issues.push({expected:i,format:t.format,code:&quot;invalid_type&quot;,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s&gt;0?u.issues.push({input:s,code:&quot;too_big&quot;,maximum:Number.MAX_SAFE_INTEGER,note:&quot;Integers must be within the safe integer range.&quot;,inst:e,origin:i,continue:!t.abort}):u.issues.push({input:s,code:&quot;too_small&quot;,minimum:Number.MIN_SAFE_INTEGER,note:&quot;Integers must be within the safe integer range.&quot;,inst:e,origin:i,continue:!t.abort});return}}s&lt;r&amp;&amp;u.issues.push({origin:&quot;number&quot;,input:s,code:&quot;too_small&quot;,minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s&gt;o&amp;&amp;u.issues.push({origin:&quot;number&quot;,input:s,code:&quot;too_big&quot;,maximum:o,inst:e})}}),s_=y(&quot;$ZodCheckBigIntFormat&quot;,(e,t)=&gt;{Te.init(e,t);const[n,i]=my[t.format];e._zod.onattach.push(r=&gt;{const o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=&gt;{const o=r.value;o&lt;n&amp;&amp;r.issues.push({origin:&quot;bigint&quot;,input:o,code:&quot;too_small&quot;,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o&gt;i&amp;&amp;r.issues.push({origin:&quot;bigint&quot;,input:o,code:&quot;too_big&quot;,maximum:i,inst:e})}}),l_=y(&quot;$ZodCheckMaxSize&quot;,(e,t)=&gt;{var n;Te.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Er(r)&amp;&amp;r.size!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum&lt;r&amp;&amp;(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=&gt;{const r=i.value;r.size&lt;=t.maximum||i.issues.push({origin:qu(r),code:&quot;too_big&quot;,maximum:t.maximum,input:r,inst:e,continue:!t.abort})}}),c_=y(&quot;$ZodCheckMinSize&quot;,(e,t)=&gt;{var n;Te.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Er(r)&amp;&amp;r.size!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum&gt;r&amp;&amp;(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=&gt;{const r=i.value;r.size&gt;=t.minimum||i.issues.push({origin:qu(r),code:&quot;too_small&quot;,minimum:t.minimum,input:r,inst:e,continue:!t.abort})}}),d_=y(&quot;$ZodCheckSizeEquals&quot;,(e,t)=&gt;{var n;Te.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Er(r)&amp;&amp;r.size!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=&gt;{const r=i.value,o=r.size;if(o===t.size)return;const a=o&gt;t.size;i.issues.push({origin:qu(r),...a?{code:&quot;too_big&quot;,maximum:t.size}:{code:&quot;too_small&quot;,minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),f_=y(&quot;$ZodCheckMaxLength&quot;,(e,t)=&gt;{var n;Te.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Er(r)&amp;&amp;r.length!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum&lt;r&amp;&amp;(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=&gt;{const r=i.value;if(r.length&lt;=t.maximum)return;const a=es(r);i.issues.push({origin:a,code:&quot;too_big&quot;,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),m_=y(&quot;$ZodCheckMinLength&quot;,(e,t)=&gt;{var n;Te.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Er(r)&amp;&amp;r.length!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum&gt;r&amp;&amp;(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=&gt;{const r=i.value;if(r.length&gt;=t.minimum)return;const a=es(r);i.issues.push({origin:a,code:&quot;too_small&quot;,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),p_=y(&quot;$ZodCheckLengthEquals&quot;,(e,t)=&gt;{var n;Te.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Er(r)&amp;&amp;r.length!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=&gt;{const r=i.value,o=r.length;if(o===t.length)return;const a=es(r),u=o&gt;t.length;i.issues.push({origin:a,...u?{code:&quot;too_big&quot;,maximum:t.length}:{code:&quot;too_small&quot;,minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Yo=y(&quot;$ZodCheckStringFormat&quot;,(e,t)=&gt;{var n,i;Te.init(e,t),e._zod.onattach.push(r=&gt;{const o=r._zod.bag;o.format=t.format,t.pattern&amp;&amp;(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=&gt;{t.pattern.lastIndex=0,!t.pattern.test(r.value)&amp;&amp;r.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=&gt;{})}),h_=y(&quot;$ZodCheckRegex&quot;,(e,t)=&gt;{Yo.init(e,t),e._zod.check=n=&gt;{t.pattern.lastIndex=0,!t.pattern.test(n.value)&amp;&amp;n.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;regex&quot;,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),v_=y(&quot;$ZodCheckLowerCase&quot;,(e,t)=&gt;{t.pattern??(t.pattern=n_),Yo.init(e,t)}),g_=y(&quot;$ZodCheckUpperCase&quot;,(e,t)=&gt;{t.pattern??(t.pattern=r_),Yo.init(e,t)}),y_=y(&quot;$ZodCheckIncludes&quot;,(e,t)=&gt;{Te.init(e,t);const n=Nr(t.includes),i=new RegExp(typeof t.position==&quot;number&quot;?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=&gt;{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=&gt;{r.value.includes(t.includes,t.position)||r.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;includes&quot;,includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),__=y(&quot;$ZodCheckStartsWith&quot;,(e,t)=&gt;{Te.init(e,t);const n=new RegExp(`^${Nr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=&gt;{i.value.startsWith(t.prefix)||i.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;starts_with&quot;,prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),w_=y(&quot;$ZodCheckEndsWith&quot;,(e,t)=&gt;{Te.init(e,t);const n=new RegExp(`.*${Nr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=&gt;{i.value.endsWith(t.suffix)||i.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;ends_with&quot;,suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function rh(e,t,n){e.issues.length&amp;&amp;t.issues.push(...Nt(n,e.issues))}const $_=y(&quot;$ZodCheckProperty&quot;,(e,t)=&gt;{Te.init(e,t),e._zod.check=n=&gt;{const i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=&gt;rh(r,n,t.property));rh(i,n,t.property)}}),k_=y(&quot;$ZodCheckMimeType&quot;,(e,t)=&gt;{Te.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(i=&gt;{i._zod.bag.mime=t.mime}),e._zod.check=i=&gt;{n.has(i.value.type)||i.issues.push({code:&quot;invalid_value&quot;,values:t.mime,input:i.value.type,inst:e})}}),S_=y(&quot;$ZodCheckOverwrite&quot;,(e,t)=&gt;{Te.init(e,t),e._zod.check=n=&gt;{n.value=t.tx(n.value)}});class x_{constructor(t=[]){this.content=[],this.indent=0,this&amp;&amp;(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t==&quot;function&quot;){t(this,{execution:&quot;sync&quot;}),t(this,{execution:&quot;async&quot;});return}const i=t.split(`
`).filter(a=&gt;a),r=Math.min(...i.map(a=&gt;a.length-a.trimStart().length)),o=i.map(a=&gt;a.slice(r)).map(a=&gt;&quot; &quot;.repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[&quot;&quot;]).map(o=&gt;`  ${o}`)];return new t(...n,r.join(`
`))}}const b_={major:4,minor:0,patch:0},ee=y(&quot;$ZodType&quot;,(e,t)=&gt;{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=b_;const i=[...e._zod.def.checks??[]];e._zod.traits.has(&quot;$ZodCheck&quot;)&amp;&amp;i.unshift(e);for(const o of i)for(const a of o._zod.onattach)a(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=&gt;{e._zod.run=e._zod.parse});else{const o=(a,u,s)=&gt;{let l=oi(a),m;for(const p of u){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(l)continue;const v=a.issues.length,_=p._zod.check(a);if(_ instanceof Promise&amp;&amp;(s==null?void 0:s.async)===!1)throw new bi;if(m||_ instanceof Promise)m=(m??Promise.resolve()).then(async()=&gt;{await _,a.issues.length!==v&amp;&amp;(l||(l=oi(a,v)))});else{if(a.issues.length===v)continue;l||(l=oi(a,v))}}return m?m.then(()=&gt;a):a};e._zod.run=(a,u)=&gt;{const s=e._zod.parse(a,u);if(s instanceof Promise){if(u.async===!1)throw new bi;return s.then(l=&gt;o(l,i,u))}return o(s,i,u)}}e[&quot;~standard&quot;]={validate:o=&gt;{var a;try{const u=xy(e,o);return u.success?{value:u.data}:{issues:(a=u.error)==null?void 0:a.issues}}catch{return by(e,o).then(s=&gt;{var l;return s.success?{value:s.data}:{issues:(l=s.error)==null?void 0:l.issues}})}},vendor:&quot;zod&quot;,version:1}}),qo=y(&quot;$ZodString&quot;,(e,t)=&gt;{var n;ee.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Gy(e._zod.bag),e._zod.parse=(i,r)=&gt;{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value==&quot;string&quot;||i.issues.push({expected:&quot;string&quot;,code:&quot;invalid_type&quot;,input:i.value,inst:e}),i}}),ye=y(&quot;$ZodStringFormat&quot;,(e,t)=&gt;{Yo.init(e,t),qo.init(e,t)}),I_=y(&quot;$ZodGUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Py),ye.init(e,t)}),z_=y(&quot;$ZodUUID&quot;,(e,t)=&gt;{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: &quot;${t.version}&quot;`);t.pattern??(t.pattern=zi(i))}else t.pattern??(t.pattern=zi());ye.init(e,t)}),O_=y(&quot;$ZodEmail&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Uy),ye.init(e,t)}),E_=y(&quot;$ZodURL&quot;,(e,t)=&gt;{ye.init(e,t),e._zod.check=n=&gt;{try{const i=n.value,r=new URL(i),o=r.href;t.hostname&amp;&amp;(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,note:&quot;Invalid hostname&quot;,pattern:Fy.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&amp;&amp;(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(&quot;:&quot;)?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,note:&quot;Invalid protocol&quot;,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!i.endsWith(&quot;/&quot;)&amp;&amp;o.endsWith(&quot;/&quot;)?n.value=o.slice(0,-1):n.value=o;return}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,input:n.value,inst:e,continue:!t.abort})}}}),N_=y(&quot;$ZodEmoji&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Ay()),ye.init(e,t)}),j_=y(&quot;$ZodNanoID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=jy),ye.init(e,t)}),T_=y(&quot;$ZodCUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Iy),ye.init(e,t)}),P_=y(&quot;$ZodCUID2&quot;,(e,t)=&gt;{t.pattern??(t.pattern=zy),ye.init(e,t)}),U_=y(&quot;$ZodULID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Oy),ye.init(e,t)}),C_=y(&quot;$ZodXID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Ey),ye.init(e,t)}),A_=y(&quot;$ZodKSUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Ny),ye.init(e,t)}),D_=y(&quot;$ZodISODateTime&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Hy(t)),ye.init(e,t)}),R_=y(&quot;$ZodISODate&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Wy),ye.init(e,t)}),Z_=y(&quot;$ZodISOTime&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Ky(t)),ye.init(e,t)}),L_=y(&quot;$ZodISODuration&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Ty),ye.init(e,t)}),M_=y(&quot;$ZodIPv4&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Dy),ye.init(e,t),e._zod.onattach.push(n=&gt;{const i=n._zod.bag;i.format=&quot;ipv4&quot;})}),F_=y(&quot;$ZodIPv6&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Ry),ye.init(e,t),e._zod.onattach.push(n=&gt;{const i=n._zod.bag;i.format=&quot;ipv6&quot;}),e._zod.check=n=&gt;{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;ipv6&quot;,input:n.value,inst:e,continue:!t.abort})}}}),B_=y(&quot;$ZodCIDRv4&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Zy),ye.init(e,t)}),V_=y(&quot;$ZodCIDRv6&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Ly),ye.init(e,t),e._zod.check=n=&gt;{const[i,r]=n.value.split(&quot;/&quot;);try{if(!r)throw new Error;const o=Number(r);if(`${o}`!==r)throw new Error;if(o&lt;0||o&gt;128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;cidrv6&quot;,input:n.value,inst:e,continue:!t.abort})}}});function Md(e){if(e===&quot;&quot;)return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const W_=y(&quot;$ZodBase64&quot;,(e,t)=&gt;{t.pattern??(t.pattern=My),ye.init(e,t),e._zod.onattach.push(n=&gt;{n._zod.bag.contentEncoding=&quot;base64&quot;}),e._zod.check=n=&gt;{Md(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;base64&quot;,input:n.value,inst:e,continue:!t.abort})}});function J_(e){if(!Rd.test(e))return!1;const t=e.replace(/[-_]/g,i=&gt;i===&quot;-&quot;?&quot;+&quot;:&quot;/&quot;),n=t.padEnd(Math.ceil(t.length/4)*4,&quot;=&quot;);return Md(n)}const K_=y(&quot;$ZodBase64URL&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Rd),ye.init(e,t),e._zod.onattach.push(n=&gt;{n._zod.bag.contentEncoding=&quot;base64url&quot;}),e._zod.check=n=&gt;{J_(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;base64url&quot;,input:n.value,inst:e,continue:!t.abort})}}),H_=y(&quot;$ZodE164&quot;,(e,t)=&gt;{t.pattern??(t.pattern=By),ye.init(e,t)});function G_(e,t=null){try{const n=e.split(&quot;.&quot;);if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return!(&quot;typ&quot;in r&amp;&amp;(r==null?void 0:r.typ)!==&quot;JWT&quot;||!r.alg||t&amp;&amp;(!(&quot;alg&quot;in r)||r.alg!==t))}catch{return!1}}const Q_=y(&quot;$ZodJWT&quot;,(e,t)=&gt;{ye.init(e,t),e._zod.check=n=&gt;{G_(n.value,t.alg)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;jwt&quot;,input:n.value,inst:e,continue:!t.abort})}}),X_=y(&quot;$ZodCustomStringFormat&quot;,(e,t)=&gt;{ye.init(e,t),e._zod.check=n=&gt;{t.fn(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Fd=y(&quot;$ZodNumber&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.pattern=e._zod.bag.pattern??Yy,e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r==&quot;number&quot;&amp;&amp;!Number.isNaN(r)&amp;&amp;Number.isFinite(r))return n;const o=typeof r==&quot;number&quot;?Number.isNaN(r)?&quot;NaN&quot;:Number.isFinite(r)?void 0:&quot;Infinity&quot;:void 0;return n.issues.push({expected:&quot;number&quot;,code:&quot;invalid_type&quot;,input:r,inst:e,...o?{received:o}:{}}),n}}),Y_=y(&quot;$ZodNumber&quot;,(e,t)=&gt;{u_.init(e,t),Fd.init(e,t)}),Bd=y(&quot;$ZodBoolean&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.pattern=qy,e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r==&quot;boolean&quot;||n.issues.push({expected:&quot;boolean&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),Vd=y(&quot;$ZodBigInt&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.pattern=Qy,e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==&quot;bigint&quot;||n.issues.push({expected:&quot;bigint&quot;,code:&quot;invalid_type&quot;,input:n.value,inst:e}),n}}),q_=y(&quot;$ZodBigInt&quot;,(e,t)=&gt;{s_.init(e,t),Vd.init(e,t)}),e0=y(&quot;$ZodSymbol&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;return typeof r==&quot;symbol&quot;||n.issues.push({expected:&quot;symbol&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),t0=y(&quot;$ZodUndefined&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.pattern=t_,e._zod.values=new Set([void 0]),e._zod.optin=&quot;optional&quot;,e._zod.optout=&quot;optional&quot;,e._zod.parse=(n,i)=&gt;{const r=n.value;return typeof r&gt;&quot;u&quot;||n.issues.push({expected:&quot;undefined&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),n0=y(&quot;$ZodNull&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.pattern=e_,e._zod.values=new Set([null]),e._zod.parse=(n,i)=&gt;{const r=n.value;return r===null||n.issues.push({expected:&quot;null&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),r0=y(&quot;$ZodAny&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=n=&gt;n}),Su=y(&quot;$ZodUnknown&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=n=&gt;n}),i0=y(&quot;$ZodNever&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;(n.issues.push({expected:&quot;never&quot;,code:&quot;invalid_type&quot;,input:n.value,inst:e}),n)}),o0=y(&quot;$ZodVoid&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;return typeof r&gt;&quot;u&quot;||n.issues.push({expected:&quot;void&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),a0=y(&quot;$ZodDate&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=new Date(n.value)}catch{}const r=n.value,o=r instanceof Date;return o&amp;&amp;!Number.isNaN(r.getTime())||n.issues.push({expected:&quot;date&quot;,code:&quot;invalid_type&quot;,input:r,...o?{received:&quot;Invalid Date&quot;}:{},inst:e}),n}});function ih(e,t,n){e.issues.length&amp;&amp;t.issues.push(...Nt(n,e.issues)),t.value[n]=e.value}const Wd=y(&quot;$ZodArray&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:&quot;array&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n;n.value=Array(r.length);const o=[];for(let a=0;a&lt;r.length;a++){const u=r[a],s=t.element._zod.run({value:u,issues:[]},i);s instanceof Promise?o.push(s.then(l=&gt;ih(l,n,a))):ih(s,n,a)}return o.length?Promise.all(o).then(()=&gt;n):n}});function ka(e,t,n){e.issues.length&amp;&amp;t.issues.push(...Nt(n,e.issues)),t.value[n]=e.value}function oh(e,t,n,i){e.issues.length?i[n]===void 0?n in i?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...Nt(n,e.issues)):e.value===void 0?n in i&amp;&amp;(t.value[n]=void 0):t.value[n]=e.value}const u0=y(&quot;$ZodObject&quot;,(e,t)=&gt;{ee.init(e,t);const n=Xu(()=&gt;{const p=Object.keys(t.shape);for(const _ of p)if(!(t.shape[_]instanceof ee))throw new Error(`Invalid element at key &quot;${_}&quot;: expected a Zod schema`);const v=dy(t.shape);return{shape:t.shape,keys:p,keySet:new Set(p),numKeys:p.length,optionalKeys:new Set(v)}});me(e._zod,&quot;propValues&quot;,()=&gt;{const p=t.shape,v={};for(const _ in p){const $=p[_]._zod;if($.values){v[_]??(v[_]=new Set);for(const E of $.values)v[_].add(E)}}return v});const i=p=&gt;{const v=new x_([&quot;shape&quot;,&quot;payload&quot;,&quot;ctx&quot;]),_=n.value,$=d=&gt;{const f=Ar(d);return`shape[${f}]._zod.run({ value: input[${f}], issues: [] }, ctx)`};v.write(&quot;const input = payload.value;&quot;);const E=Object.create(null);let N=0;for(const d of _.keys)E[d]=`key_${N++}`;v.write(&quot;const newResult = {}&quot;);for(const d of _.keys)if(_.optionalKeys.has(d)){const f=E[d];v.write(`const ${f} = ${$(d)};`);const k=Ar(d);v.write(`
        if (${f}.issues.length) {
          if (input[${k}] === undefined) {
            if (${k} in input) {
              newResult[${k}] = undefined;
            }
          } else {
            payload.issues = payload.issues.concat(
              ${f}.issues.map((iss) =&gt; ({
                ...iss,
                path: iss.path ? [${k}, ...iss.path] : [${k}],
              }))
            );
          }
        } else if (${f}.value === undefined) {
          if (${k} in input) newResult[${k}] = undefined;
        } else {
          newResult[${k}] = ${f}.value;
        }
        `)}else{const f=E[d];v.write(`const ${f} = ${$(d)};`),v.write(`
          if (${f}.issues.length) payload.issues = payload.issues.concat(${f}.issues.map(iss =&gt; ({
            ...iss,
            path: iss.path ? [${Ar(d)}, ...iss.path] : [${Ar(d)}]
          })));`),v.write(`newResult[${Ar(d)}] = ${f}.value`)}v.write(&quot;payload.value = newResult;&quot;),v.write(&quot;return payload;&quot;);const c=v.compile();return(d,f)=&gt;c(p,d,f)};let r;const o=Co,a=!$u.jitless,s=a&amp;&amp;ly.value,l=t.catchall;let m;e._zod.parse=(p,v)=&gt;{m??(m=n.value);const _=p.value;if(!o(_))return p.issues.push({expected:&quot;object&quot;,code:&quot;invalid_type&quot;,input:_,inst:e}),p;const $=[];if(a&amp;&amp;s&amp;&amp;(v==null?void 0:v.async)===!1&amp;&amp;v.jitless!==!0)r||(r=i(t.shape)),p=r(p,v);else{p.value={};const f=m.shape;for(const k of m.keys){const I=f[k],P=I._zod.run({value:_[k],issues:[]},v),L=I._zod.optin===&quot;optional&quot;&amp;&amp;I._zod.optout===&quot;optional&quot;;P instanceof Promise?$.push(P.then(F=&gt;L?oh(F,p,k,_):ka(F,p,k))):L?oh(P,p,k,_):ka(P,p,k)}}if(!l)return $.length?Promise.all($).then(()=&gt;p):p;const E=[],N=m.keySet,c=l._zod,d=c.def.type;for(const f of Object.keys(_)){if(N.has(f))continue;if(d===&quot;never&quot;){E.push(f);continue}const k=c.run({value:_[f],issues:[]},v);k instanceof Promise?$.push(k.then(I=&gt;ka(I,p,f))):ka(k,p,f)}return E.length&amp;&amp;p.issues.push({code:&quot;unrecognized_keys&quot;,keys:E,input:_,inst:e}),$.length?Promise.all($).then(()=&gt;p):p}});function ah(e,t,n,i){for(const r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:&quot;invalid_union&quot;,input:t.value,inst:n,errors:e.map(r=&gt;r.issues.map(o=&gt;Jt(o,i,nt())))}),t}const Jd=y(&quot;$ZodUnion&quot;,(e,t)=&gt;{ee.init(e,t),me(e._zod,&quot;optin&quot;,()=&gt;t.options.some(n=&gt;n._zod.optin===&quot;optional&quot;)?&quot;optional&quot;:void 0),me(e._zod,&quot;optout&quot;,()=&gt;t.options.some(n=&gt;n._zod.optout===&quot;optional&quot;)?&quot;optional&quot;:void 0),me(e._zod,&quot;values&quot;,()=&gt;{if(t.options.every(n=&gt;n._zod.values))return new Set(t.options.flatMap(n=&gt;Array.from(n._zod.values)))}),me(e._zod,&quot;pattern&quot;,()=&gt;{if(t.options.every(n=&gt;n._zod.pattern)){const n=t.options.map(i=&gt;i._zod.pattern);return new RegExp(`^(${n.map(i=&gt;Yu(i.source)).join(&quot;|&quot;)})$`)}}),e._zod.parse=(n,i)=&gt;{let r=!1;const o=[];for(const a of t.options){const u=a._zod.run({value:n.value,issues:[]},i);if(u instanceof Promise)o.push(u),r=!0;else{if(u.issues.length===0)return u;o.push(u)}}return r?Promise.all(o).then(a=&gt;ah(a,n,e,i)):ah(o,n,e,i)}}),s0=y(&quot;$ZodDiscriminatedUnion&quot;,(e,t)=&gt;{Jd.init(e,t);const n=e._zod.parse;me(e._zod,&quot;propValues&quot;,()=&gt;{const r={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index &quot;${t.options.indexOf(o)}&quot;`);for(const[u,s]of Object.entries(a)){r[u]||(r[u]=new Set);for(const l of s)r[u].add(l)}}return r});const i=Xu(()=&gt;{const r=t.options,o=new Map;for(const a of r){const u=a._zod.propValues[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index &quot;${t.options.indexOf(a)}&quot;`);for(const s of u){if(o.has(s))throw new Error(`Duplicate discriminator value &quot;${String(s)}&quot;`);o.set(s,a)}}return o});e._zod.parse=(r,o)=&gt;{const a=r.value;if(!Co(a))return r.issues.push({code:&quot;invalid_type&quot;,expected:&quot;object&quot;,input:a,inst:e}),r;const u=i.value.get(a==null?void 0:a[t.discriminator]);return u?u._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:&quot;invalid_union&quot;,errors:[],note:&quot;No matching discriminator&quot;,input:a,path:[t.discriminator],inst:e}),r)}}),l0=y(&quot;$ZodIntersection&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([s,l])=&gt;uh(n,s,l)):uh(n,o,a)}});function fc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&amp;&amp;t instanceof Date&amp;&amp;+e==+t)return{valid:!0,data:e};if(Ao(e)&amp;&amp;Ao(t)){const n=Object.keys(t),i=Object.keys(e).filter(o=&gt;n.indexOf(o)!==-1),r={...e,...t};for(const o of i){const a=fc(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&amp;&amp;Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i&lt;e.length;i++){const r=e[i],o=t[i],a=fc(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function uh(e,t,n){if(t.issues.length&amp;&amp;e.issues.push(...t.issues),n.issues.length&amp;&amp;e.issues.push(...n.issues),oi(e))return e;const i=fc(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const ts=y(&quot;$ZodTuple&quot;,(e,t)=&gt;{ee.init(e,t);const n=t.items,i=n.length-[...n].reverse().findIndex(r=&gt;r._zod.optin!==&quot;optional&quot;);e._zod.parse=(r,o)=&gt;{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:&quot;tuple&quot;,code:&quot;invalid_type&quot;}),r;r.value=[];const u=[];if(!t.rest){const l=a.length&gt;n.length,m=a.length&lt;i-1;if(l||m)return r.issues.push({input:a,inst:e,origin:&quot;array&quot;,...l?{code:&quot;too_big&quot;,maximum:n.length}:{code:&quot;too_small&quot;,minimum:n.length}}),r}let s=-1;for(const l of n){if(s++,s&gt;=a.length&amp;&amp;s&gt;=i)continue;const m=l._zod.run({value:a[s],issues:[]},o);m instanceof Promise?u.push(m.then(p=&gt;Sa(p,r,s))):Sa(m,r,s)}if(t.rest){const l=a.slice(n.length);for(const m of l){s++;const p=t.rest._zod.run({value:m,issues:[]},o);p instanceof Promise?u.push(p.then(v=&gt;Sa(v,r,s))):Sa(p,r,s)}}return u.length?Promise.all(u).then(()=&gt;r):r}});function Sa(e,t,n){e.issues.length&amp;&amp;t.issues.push(...Nt(n,e.issues)),t.value[n]=e.value}const c0=y(&quot;$ZodRecord&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!Ao(r))return n.issues.push({expected:&quot;record&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n;const o=[];if(t.keyType._zod.values){const a=t.keyType._zod.values;n.value={};for(const s of a)if(typeof s==&quot;string&quot;||typeof s==&quot;number&quot;||typeof s==&quot;symbol&quot;){const l=t.valueType._zod.run({value:r[s],issues:[]},i);l instanceof Promise?o.push(l.then(m=&gt;{m.issues.length&amp;&amp;n.issues.push(...Nt(s,m.issues)),n.value[s]=m.value})):(l.issues.length&amp;&amp;n.issues.push(...Nt(s,l.issues)),n.value[s]=l.value)}let u;for(const s in r)a.has(s)||(u=u??[],u.push(s));u&amp;&amp;u.length&gt;0&amp;&amp;n.issues.push({code:&quot;unrecognized_keys&quot;,input:r,inst:e,keys:u})}else{n.value={};for(const a of Reflect.ownKeys(r)){if(a===&quot;__proto__&quot;)continue;const u=t.keyType._zod.run({value:a,issues:[]},i);if(u instanceof Promise)throw new Error(&quot;Async schemas not supported in object keys currently&quot;);if(u.issues.length){n.issues.push({origin:&quot;record&quot;,code:&quot;invalid_key&quot;,issues:u.issues.map(l=&gt;Jt(l,i,nt())),input:a,path:[a],inst:e}),n.value[u.value]=u.value;continue}const s=t.valueType._zod.run({value:r[a],issues:[]},i);s instanceof Promise?o.push(s.then(l=&gt;{l.issues.length&amp;&amp;n.issues.push(...Nt(a,l.issues)),n.value[u.value]=l.value})):(s.issues.length&amp;&amp;n.issues.push(...Nt(a,s.issues)),n.value[u.value]=s.value)}}return o.length?Promise.all(o).then(()=&gt;n):n}}),d0=y(&quot;$ZodMap&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:&quot;map&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n;const o=[];n.value=new Map;for(const[a,u]of r){const s=t.keyType._zod.run({value:a,issues:[]},i),l=t.valueType._zod.run({value:u,issues:[]},i);s instanceof Promise||l instanceof Promise?o.push(Promise.all([s,l]).then(([m,p])=&gt;{sh(m,p,n,a,r,e,i)})):sh(s,l,n,a,r,e,i)}return o.length?Promise.all(o).then(()=&gt;n):n}});function sh(e,t,n,i,r,o,a){e.issues.length&amp;&amp;(ku.has(typeof i)?n.issues.push(...Nt(i,e.issues)):n.issues.push({origin:&quot;map&quot;,code:&quot;invalid_key&quot;,input:r,inst:o,issues:e.issues.map(u=&gt;Jt(u,a,nt()))})),t.issues.length&amp;&amp;(ku.has(typeof i)?n.issues.push(...Nt(i,t.issues)):n.issues.push({origin:&quot;map&quot;,code:&quot;invalid_element&quot;,input:r,inst:o,key:i,issues:t.issues.map(u=&gt;Jt(u,a,nt()))})),n.value.set(e.value,t.value)}const f0=y(&quot;$ZodSet&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:&quot;set&quot;,code:&quot;invalid_type&quot;}),n;const o=[];n.value=new Set;for(const a of r){const u=t.valueType._zod.run({value:a,issues:[]},i);u instanceof Promise?o.push(u.then(s=&gt;lh(s,n))):lh(u,n)}return o.length?Promise.all(o).then(()=&gt;n):n}});function lh(e,t){e.issues.length&amp;&amp;t.issues.push(...e.issues),t.value.add(e.value)}const m0=y(&quot;$ZodEnum&quot;,(e,t)=&gt;{ee.init(e,t);const n=Ed(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(i=&gt;ku.has(typeof i)).map(i=&gt;typeof i==&quot;string&quot;?Nr(i):i.toString()).join(&quot;|&quot;)})$`),e._zod.parse=(i,r)=&gt;{const o=i.value;return e._zod.values.has(o)||i.issues.push({code:&quot;invalid_value&quot;,values:n,input:o,inst:e}),i}}),p0=y(&quot;$ZodLiteral&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=&gt;typeof n==&quot;string&quot;?Nr(n):n?n.toString():String(n)).join(&quot;|&quot;)})$`),e._zod.parse=(n,i)=&gt;{const r=n.value;return e._zod.values.has(r)||n.issues.push({code:&quot;invalid_value&quot;,values:t.values,input:r,inst:e}),n}}),h0=y(&quot;$ZodFile&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;return r instanceof File||n.issues.push({expected:&quot;file&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),Kd=y(&quot;$ZodTransform&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=&gt;(n.value=a,n));if(r instanceof Promise)throw new bi;return n.value=r,n}}),v0=y(&quot;$ZodOptional&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.optin=&quot;optional&quot;,e._zod.optout=&quot;optional&quot;,me(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),me(e._zod,&quot;pattern&quot;,()=&gt;{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yu(n.source)})?$`):void 0}),e._zod.parse=(n,i)=&gt;t.innerType._zod.optin===&quot;optional&quot;?t.innerType._zod.run(n,i):n.value===void 0?n:t.innerType._zod.run(n,i)}),g0=y(&quot;$ZodNullable&quot;,(e,t)=&gt;{ee.init(e,t),me(e._zod,&quot;optin&quot;,()=&gt;t.innerType._zod.optin),me(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),me(e._zod,&quot;pattern&quot;,()=&gt;{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yu(n.source)}|null)$`):void 0}),me(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=&gt;n.value===null?n:t.innerType._zod.run(n,i)}),y0=y(&quot;$ZodDefault&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.optin=&quot;optional&quot;,me(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(n,i)=&gt;{if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;ch(o,t)):ch(r,t)}});function ch(e,t){return e.value===void 0&amp;&amp;(e.value=t.defaultValue),e}const _0=y(&quot;$ZodPrefault&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.optin=&quot;optional&quot;,me(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(n,i)=&gt;(n.value===void 0&amp;&amp;(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),w0=y(&quot;$ZodNonOptional&quot;,(e,t)=&gt;{ee.init(e,t),me(e._zod,&quot;values&quot;,()=&gt;{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=&gt;i!==void 0)):void 0}),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;dh(o,e)):dh(r,e)}});function dh(e,t){return!e.issues.length&amp;&amp;e.value===void 0&amp;&amp;e.issues.push({code:&quot;invalid_type&quot;,expected:&quot;nonoptional&quot;,input:e.value,inst:t}),e}const $0=y(&quot;$ZodSuccess&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),k0=y(&quot;$ZodCatch&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.optin=&quot;optional&quot;,me(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),me(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;(n.value=o.value,o.issues.length&amp;&amp;(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=&gt;Jt(a,i,nt()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&amp;&amp;(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=&gt;Jt(o,i,nt()))},input:n.value}),n.issues=[]),n)}}),S0=y(&quot;$ZodNaN&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;((typeof n.value!=&quot;number&quot;||!Number.isNaN(n.value))&amp;&amp;n.issues.push({input:n.value,inst:e,expected:&quot;nan&quot;,code:&quot;invalid_type&quot;}),n)}),Hd=y(&quot;$ZodPipe&quot;,(e,t)=&gt;{ee.init(e,t),me(e._zod,&quot;values&quot;,()=&gt;t.in._zod.values),me(e._zod,&quot;optin&quot;,()=&gt;t.in._zod.optin),me(e._zod,&quot;optout&quot;,()=&gt;t.out._zod.optout),e._zod.parse=(n,i)=&gt;{const r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;fh(o,t,i)):fh(r,t,i)}});function fh(e,t,n){return oi(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const x0=y(&quot;$ZodReadonly&quot;,(e,t)=&gt;{ee.init(e,t),me(e._zod,&quot;propValues&quot;,()=&gt;t.innerType._zod.propValues),me(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),me(e._zod,&quot;optin&quot;,()=&gt;t.innerType._zod.optin),me(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(mh):mh(r)}});function mh(e){return e.value=Object.freeze(e.value),e}const b0=y(&quot;$ZodTemplateLiteral&quot;,(e,t)=&gt;{ee.init(e,t);const n=[];for(const i of t.parts)if(i instanceof ee){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=r.startsWith(&quot;^&quot;)?1:0,a=r.endsWith(&quot;$&quot;)?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||cy.has(typeof i))n.push(Nr(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join(&quot;&quot;)}$`),e._zod.parse=(i,r)=&gt;typeof i.value!=&quot;string&quot;?(i.issues.push({input:i.value,inst:e,expected:&quot;template_literal&quot;,code:&quot;invalid_type&quot;}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:&quot;invalid_format&quot;,format:&quot;template_literal&quot;,pattern:e._zod.pattern.source}),i)}),I0=y(&quot;$ZodPromise&quot;,(e,t)=&gt;{ee.init(e,t),e._zod.parse=(n,i)=&gt;Promise.resolve(n.value).then(r=&gt;t.innerType._zod.run({value:r,issues:[]},i))}),z0=y(&quot;$ZodLazy&quot;,(e,t)=&gt;{ee.init(e,t),me(e._zod,&quot;innerType&quot;,()=&gt;t.getter()),me(e._zod,&quot;pattern&quot;,()=&gt;e._zod.innerType._zod.pattern),me(e._zod,&quot;propValues&quot;,()=&gt;e._zod.innerType._zod.propValues),me(e._zod,&quot;optin&quot;,()=&gt;e._zod.innerType._zod.optin),me(e._zod,&quot;optout&quot;,()=&gt;e._zod.innerType._zod.optout),e._zod.parse=(n,i)=&gt;e._zod.innerType._zod.run(n,i)}),O0=y(&quot;$ZodCustom&quot;,(e,t)=&gt;{Te.init(e,t),ee.init(e,t),e._zod.parse=(n,i)=&gt;n,e._zod.check=n=&gt;{const i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=&gt;ph(o,n,i,e));ph(r,n,i,e)}});function ph(e,t,n,i){if(!e){const r={code:&quot;custom&quot;,input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&amp;&amp;(r.params=i._zod.def.params),t.issues.push(Ii(r))}}const Hx=()=&gt;{const e={string:{unit:&quot;حرف&quot;,verb:&quot;أن يحوي&quot;},file:{unit:&quot;بايت&quot;,verb:&quot;أن يحوي&quot;},array:{unit:&quot;عنصر&quot;,verb:&quot;أن يحوي&quot;},set:{unit:&quot;عنصر&quot;,verb:&quot;أن يحوي&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;مدخل&quot;,email:&quot;بريد إلكتروني&quot;,url:&quot;رابط&quot;,emoji:&quot;إيموجي&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;تاريخ ووقت بمعيار ISO&quot;,date:&quot;تاريخ بمعيار ISO&quot;,time:&quot;وقت بمعيار ISO&quot;,duration:&quot;مدة بمعيار ISO&quot;,ipv4:&quot;عنوان IPv4&quot;,ipv6:&quot;عنوان IPv6&quot;,cidrv4:&quot;مدى عناوين بصيغة IPv4&quot;,cidrv6:&quot;مدى عناوين بصيغة IPv6&quot;,base64:&quot;نَص بترميز base64-encoded&quot;,base64url:&quot;نَص بترميز base64url-encoded&quot;,json_string:&quot;نَص على هيئة JSON&quot;,e164:&quot;رقم هاتف بمعيار E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;مدخل&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`مدخلات غير مقبولة: يفترض إدخال ${r.expected}، ولكن تم إدخال ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${ne(r.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?` أكبر من اللازم: يفترض أن تكون ${r.origin??&quot;القيمة&quot;} ${o} ${r.maximum.toString()} ${a.unit??&quot;عنصر&quot;}`:`أكبر من اللازم: يفترض أن تكون ${r.origin??&quot;القيمة&quot;} ${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`نَص غير مقبول: يجب أن يبدأ بـ &quot;${r.prefix}&quot;`:o.format===&quot;ends_with&quot;?`نَص غير مقبول: يجب أن ينتهي بـ &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`نَص غير مقبول: يجب أن يتضمَّن &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${i[o.format]??r.format} غير مقبول`}case&quot;not_multiple_of&quot;:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`معرف${r.keys.length&gt;1?&quot;ات&quot;:&quot;&quot;} غريب${r.keys.length&gt;1?&quot;ة&quot;:&quot;&quot;}: ${Z(r.keys,&quot;، &quot;)}`;case&quot;invalid_key&quot;:return`معرف غير مقبول في ${r.origin}`;case&quot;invalid_union&quot;:return&quot;مدخل غير مقبول&quot;;case&quot;invalid_element&quot;:return`مدخل غير مقبول في ${r.origin}`;default:return&quot;مدخل غير مقبول&quot;}}};function Gx(){return{localeError:Hx()}}const Qx=()=&gt;{const e={string:{unit:&quot;simvol&quot;,verb:&quot;olmalıdır&quot;},file:{unit:&quot;bayt&quot;,verb:&quot;olmalıdır&quot;},array:{unit:&quot;element&quot;,verb:&quot;olmalıdır&quot;},set:{unit:&quot;element&quot;,verb:&quot;olmalıdır&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;email address&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datetime&quot;,date:&quot;ISO date&quot;,time:&quot;ISO time&quot;,duration:&quot;ISO duration&quot;,ipv4:&quot;IPv4 address&quot;,ipv6:&quot;IPv6 address&quot;,cidrv4:&quot;IPv4 range&quot;,cidrv6:&quot;IPv6 range&quot;,base64:&quot;base64-encoded string&quot;,base64url:&quot;base64url-encoded string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 number&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Yanlış dəyər: gözlənilən ${r.expected}, daxil olan ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Yanlış dəyər: gözlənilən ${ne(r.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Çox böyük: gözlənilən ${r.origin??&quot;dəyər&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;element&quot;}`:`Çox böyük: gözlənilən ${r.origin??&quot;dəyər&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Yanlış mətn: &quot;${o.prefix}&quot; ilə başlamalıdır`:o.format===&quot;ends_with&quot;?`Yanlış mətn: &quot;${o.suffix}&quot; ilə bitməlidir`:o.format===&quot;includes&quot;?`Yanlış mətn: &quot;${o.includes}&quot; daxil olmalıdır`:o.format===&quot;regex&quot;?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Yanlış ədəd: ${r.divisor} ilə bölünə bilən olmalıdır`;case&quot;unrecognized_keys&quot;:return`Tanınmayan açar${r.keys.length&gt;1?&quot;lar&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} daxilində yanlış açar`;case&quot;invalid_union&quot;:return&quot;Yanlış dəyər&quot;;case&quot;invalid_element&quot;:return`${r.origin} daxilində yanlış dəyər`;default:return&quot;Yanlış dəyər&quot;}}};function Xx(){return{localeError:Qx()}}function hh(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a&gt;=11&amp;&amp;a&lt;=19?i:o===1?t:o&gt;=2&amp;&amp;o&lt;=4?n:i}const Yx=()=&gt;{const e={string:{unit:{one:&quot;сімвал&quot;,few:&quot;сімвалы&quot;,many:&quot;сімвалаў&quot;},verb:&quot;мець&quot;},array:{unit:{one:&quot;элемент&quot;,few:&quot;элементы&quot;,many:&quot;элементаў&quot;},verb:&quot;мець&quot;},set:{unit:{one:&quot;элемент&quot;,few:&quot;элементы&quot;,many:&quot;элементаў&quot;},verb:&quot;мець&quot;},file:{unit:{one:&quot;байт&quot;,few:&quot;байты&quot;,many:&quot;байтаў&quot;},verb:&quot;мець&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;лік&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;масіў&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;увод&quot;,email:&quot;email адрас&quot;,url:&quot;URL&quot;,emoji:&quot;эмодзі&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO дата і час&quot;,date:&quot;ISO дата&quot;,time:&quot;ISO час&quot;,duration:&quot;ISO працягласць&quot;,ipv4:&quot;IPv4 адрас&quot;,ipv6:&quot;IPv6 адрас&quot;,cidrv4:&quot;IPv4 дыяпазон&quot;,cidrv6:&quot;IPv6 дыяпазон&quot;,base64:&quot;радок у фармаце base64&quot;,base64url:&quot;радок у фармаце base64url&quot;,json_string:&quot;JSON радок&quot;,e164:&quot;нумар E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;увод&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Няправільны ўвод: чакаўся ${r.expected}, атрымана ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Няправільны ўвод: чакалася ${ne(r.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);if(a){const u=Number(r.maximum),s=hh(u,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??&quot;значэнне&quot;} павінна ${a.verb} ${o}${r.maximum.toString()} ${s}`}return`Занадта вялікі: чакалася, што ${r.origin??&quot;значэнне&quot;} павінна быць ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);if(a){const u=Number(r.minimum),s=hh(u,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${a.verb} ${o}${r.minimum.toString()} ${s}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Няправільны радок: павінен пачынацца з &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Няправільны радок: павінен заканчвацца на &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Няправільны радок: павінен змяшчаць &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Няправільны лік: павінен быць кратным ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Нераспазнаны ${r.keys.length&gt;1?&quot;ключы&quot;:&quot;ключ&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Няправільны ключ у ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Няправільны ўвод&quot;;case&quot;invalid_element&quot;:return`Няправільнае значэнне ў ${r.origin}`;default:return&quot;Няправільны ўвод&quot;}}};function qx(){return{localeError:Yx()}}const eb=()=&gt;{const e={string:{unit:&quot;caràcters&quot;,verb:&quot;contenir&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;contenir&quot;},array:{unit:&quot;elements&quot;,verb:&quot;contenir&quot;},set:{unit:&quot;elements&quot;,verb:&quot;contenir&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;entrada&quot;,email:&quot;adreça electrònica&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data i hora ISO&quot;,date:&quot;data ISO&quot;,time:&quot;hora ISO&quot;,duration:&quot;durada ISO&quot;,ipv4:&quot;adreça IPv4&quot;,ipv6:&quot;adreça IPv6&quot;,cidrv4:&quot;rang IPv4&quot;,cidrv6:&quot;rang IPv6&quot;,base64:&quot;cadena codificada en base64&quot;,base64url:&quot;cadena codificada en base64url&quot;,json_string:&quot;cadena JSON&quot;,e164:&quot;número E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrada&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Tipus invàlid: s&#39;esperava ${r.expected}, s&#39;ha rebut ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Valor invàlid: s&#39;esperava ${ne(r.values[0])}`:`Opció invàlida: s&#39;esperava una de ${Z(r.values,&quot; o &quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;com a màxim&quot;:&quot;menys de&quot;,a=t(r.origin);return a?`Massa gran: s&#39;esperava que ${r.origin??&quot;el valor&quot;} contingués ${o} ${r.maximum.toString()} ${a.unit??&quot;elements&quot;}`:`Massa gran: s&#39;esperava que ${r.origin??&quot;el valor&quot;} fos ${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;com a mínim&quot;:&quot;més de&quot;,a=t(r.origin);return a?`Massa petit: s&#39;esperava que ${r.origin} contingués ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s&#39;esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Format invàlid: ha de començar amb &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Format invàlid: ha d&#39;acabar amb &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Format invàlid: ha d&#39;incloure &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Número invàlid: ha de ser múltiple de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Clau${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} no reconeguda${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Clau invàlida a ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrada invàlida&quot;;case&quot;invalid_element&quot;:return`Element invàlid a ${r.origin}`;default:return&quot;Entrada invàlida&quot;}}};function tb(){return{localeError:eb()}}const nb=()=&gt;{const e={string:{unit:&quot;znaků&quot;,verb:&quot;mít&quot;},file:{unit:&quot;bajtů&quot;,verb:&quot;mít&quot;},array:{unit:&quot;prvků&quot;,verb:&quot;mít&quot;},set:{unit:&quot;prvků&quot;,verb:&quot;mít&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;číslo&quot;;case&quot;string&quot;:return&quot;řetězec&quot;;case&quot;boolean&quot;:return&quot;boolean&quot;;case&quot;bigint&quot;:return&quot;bigint&quot;;case&quot;function&quot;:return&quot;funkce&quot;;case&quot;symbol&quot;:return&quot;symbol&quot;;case&quot;undefined&quot;:return&quot;undefined&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;pole&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;regulární výraz&quot;,email:&quot;e-mailová adresa&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;datum a čas ve formátu ISO&quot;,date:&quot;datum ve formátu ISO&quot;,time:&quot;čas ve formátu ISO&quot;,duration:&quot;doba trvání ISO&quot;,ipv4:&quot;IPv4 adresa&quot;,ipv6:&quot;IPv6 adresa&quot;,cidrv4:&quot;rozsah IPv4&quot;,cidrv6:&quot;rozsah IPv6&quot;,base64:&quot;řetězec zakódovaný ve formátu base64&quot;,base64url:&quot;řetězec zakódovaný ve formátu base64url&quot;,json_string:&quot;řetězec ve formátu JSON&quot;,e164:&quot;číslo E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;vstup&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Neplatný vstup: očekáváno ${r.expected}, obdrženo ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Neplatný vstup: očekáváno ${ne(r.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Hodnota je příliš velká: ${r.origin??&quot;hodnota&quot;} musí mít ${o}${r.maximum.toString()} ${a.unit??&quot;prvků&quot;}`:`Hodnota je příliš velká: ${r.origin??&quot;hodnota&quot;} musí být ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Hodnota je příliš malá: ${r.origin??&quot;hodnota&quot;} musí mít ${o}${r.minimum.toString()} ${a.unit??&quot;prvků&quot;}`:`Hodnota je příliš malá: ${r.origin??&quot;hodnota&quot;} musí být ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Neplatný řetězec: musí začínat na &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Neplatný řetězec: musí končit na &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Neplatný řetězec: musí obsahovat &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Neplatné číslo: musí být násobkem ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Neznámé klíče: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Neplatný klíč v ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Neplatný vstup&quot;;case&quot;invalid_element&quot;:return`Neplatná hodnota v ${r.origin}`;default:return&quot;Neplatný vstup&quot;}}};function rb(){return{localeError:nb()}}const ib=()=&gt;{const e={string:{unit:&quot;Zeichen&quot;,verb:&quot;zu haben&quot;},file:{unit:&quot;Bytes&quot;,verb:&quot;zu haben&quot;},array:{unit:&quot;Elemente&quot;,verb:&quot;zu haben&quot;},set:{unit:&quot;Elemente&quot;,verb:&quot;zu haben&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;Zahl&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;Array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;Eingabe&quot;,email:&quot;E-Mail-Adresse&quot;,url:&quot;URL&quot;,emoji:&quot;Emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-Datum und -Uhrzeit&quot;,date:&quot;ISO-Datum&quot;,time:&quot;ISO-Uhrzeit&quot;,duration:&quot;ISO-Dauer&quot;,ipv4:&quot;IPv4-Adresse&quot;,ipv6:&quot;IPv6-Adresse&quot;,cidrv4:&quot;IPv4-Bereich&quot;,cidrv6:&quot;IPv6-Bereich&quot;,base64:&quot;Base64-codierter String&quot;,base64url:&quot;Base64-URL-codierter String&quot;,json_string:&quot;JSON-String&quot;,e164:&quot;E.164-Nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;Eingabe&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ungültige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ungültige Eingabe: erwartet ${ne(r.values[0])}`:`Ungültige Option: erwartet eine von ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Zu groß: erwartet, dass ${r.origin??&quot;Wert&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;Elemente&quot;} hat`:`Zu groß: erwartet, dass ${r.origin??&quot;Wert&quot;} ${o}${r.maximum.toString()} ist`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ungültiger String: muss mit &quot;${o.prefix}&quot; beginnen`:o.format===&quot;ends_with&quot;?`Ungültiger String: muss mit &quot;${o.suffix}&quot; enden`:o.format===&quot;includes&quot;?`Ungültiger String: muss &quot;${o.includes}&quot; enthalten`:o.format===&quot;regex&quot;?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ungültige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Unbekannte Schlüssel&quot;:&quot;Unbekannter Schlüssel&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ungültiger Schlüssel in ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Ungültige Eingabe&quot;;case&quot;invalid_element&quot;:return`Ungültiger Wert in ${r.origin}`;default:return&quot;Ungültige Eingabe&quot;}}};function ob(){return{localeError:ib()}}const ab=e=&gt;{const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(e))return&quot;array&quot;;if(e===null)return&quot;null&quot;;if(Object.getPrototypeOf(e)!==Object.prototype&amp;&amp;e.constructor)return e.constructor.name}}return t},ub=()=&gt;{const e={string:{unit:&quot;characters&quot;,verb:&quot;to have&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;to have&quot;},array:{unit:&quot;items&quot;,verb:&quot;to have&quot;},set:{unit:&quot;items&quot;,verb:&quot;to have&quot;}};function t(i){return e[i]??null}const n={regex:&quot;input&quot;,email:&quot;email address&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datetime&quot;,date:&quot;ISO date&quot;,time:&quot;ISO time&quot;,duration:&quot;ISO duration&quot;,ipv4:&quot;IPv4 address&quot;,ipv6:&quot;IPv6 address&quot;,cidrv4:&quot;IPv4 range&quot;,cidrv6:&quot;IPv6 range&quot;,base64:&quot;base64-encoded string&quot;,base64url:&quot;base64url-encoded string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 number&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return i=&gt;{switch(i.code){case&quot;invalid_type&quot;:return`Invalid input: expected ${i.expected}, received ${ab(i.input)}`;case&quot;invalid_value&quot;:return i.values.length===1?`Invalid input: expected ${ne(i.values[0])}`:`Invalid option: expected one of ${Z(i.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const r=i.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,o=t(i.origin);return o?`Too big: expected ${i.origin??&quot;value&quot;} to have ${r}${i.maximum.toString()} ${o.unit??&quot;elements&quot;}`:`Too big: expected ${i.origin??&quot;value&quot;} to be ${r}${i.maximum.toString()}`}case&quot;too_small&quot;:{const r=i.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${r}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${r}${i.minimum.toString()}`}case&quot;invalid_format&quot;:{const r=i;return r.format===&quot;starts_with&quot;?`Invalid string: must start with &quot;${r.prefix}&quot;`:r.format===&quot;ends_with&quot;?`Invalid string: must end with &quot;${r.suffix}&quot;`:r.format===&quot;includes&quot;?`Invalid string: must include &quot;${r.includes}&quot;`:r.format===&quot;regex&quot;?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??i.format}`}case&quot;not_multiple_of&quot;:return`Invalid number: must be a multiple of ${i.divisor}`;case&quot;unrecognized_keys&quot;:return`Unrecognized key${i.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(i.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Invalid key in ${i.origin}`;case&quot;invalid_union&quot;:return&quot;Invalid input&quot;;case&quot;invalid_element&quot;:return`Invalid value in ${i.origin}`;default:return&quot;Invalid input&quot;}}};function E0(){return{localeError:ub()}}const sb=e=&gt;{const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;NaN&quot;:&quot;nombro&quot;;case&quot;object&quot;:{if(Array.isArray(e))return&quot;tabelo&quot;;if(e===null)return&quot;senvalora&quot;;if(Object.getPrototypeOf(e)!==Object.prototype&amp;&amp;e.constructor)return e.constructor.name}}return t},lb=()=&gt;{const e={string:{unit:&quot;karaktrojn&quot;,verb:&quot;havi&quot;},file:{unit:&quot;bajtojn&quot;,verb:&quot;havi&quot;},array:{unit:&quot;elementojn&quot;,verb:&quot;havi&quot;},set:{unit:&quot;elementojn&quot;,verb:&quot;havi&quot;}};function t(i){return e[i]??null}const n={regex:&quot;enigo&quot;,email:&quot;retadreso&quot;,url:&quot;URL&quot;,emoji:&quot;emoĝio&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-datotempo&quot;,date:&quot;ISO-dato&quot;,time:&quot;ISO-tempo&quot;,duration:&quot;ISO-daŭro&quot;,ipv4:&quot;IPv4-adreso&quot;,ipv6:&quot;IPv6-adreso&quot;,cidrv4:&quot;IPv4-rango&quot;,cidrv6:&quot;IPv6-rango&quot;,base64:&quot;64-ume kodita karaktraro&quot;,base64url:&quot;URL-64-ume kodita karaktraro&quot;,json_string:&quot;JSON-karaktraro&quot;,e164:&quot;E.164-nombro&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;enigo&quot;};return i=&gt;{switch(i.code){case&quot;invalid_type&quot;:return`Nevalida enigo: atendiĝis ${i.expected}, riceviĝis ${sb(i.input)}`;case&quot;invalid_value&quot;:return i.values.length===1?`Nevalida enigo: atendiĝis ${ne(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${Z(i.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const r=i.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,o=t(i.origin);return o?`Tro granda: atendiĝis ke ${i.origin??&quot;valoro&quot;} havu ${r}${i.maximum.toString()} ${o.unit??&quot;elementojn&quot;}`:`Tro granda: atendiĝis ke ${i.origin??&quot;valoro&quot;} havu ${r}${i.maximum.toString()}`}case&quot;too_small&quot;:{const r=i.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,o=t(i.origin);return o?`Tro malgranda: atendiĝis ke ${i.origin} havu ${r}${i.minimum.toString()} ${o.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${r}${i.minimum.toString()}`}case&quot;invalid_format&quot;:{const r=i;return r.format===&quot;starts_with&quot;?`Nevalida karaktraro: devas komenciĝi per &quot;${r.prefix}&quot;`:r.format===&quot;ends_with&quot;?`Nevalida karaktraro: devas finiĝi per &quot;${r.suffix}&quot;`:r.format===&quot;includes&quot;?`Nevalida karaktraro: devas inkluzivi &quot;${r.includes}&quot;`:r.format===&quot;regex&quot;?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.format]??i.format}`}case&quot;not_multiple_of&quot;:return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case&quot;unrecognized_keys&quot;:return`Nekonata${i.keys.length&gt;1?&quot;j&quot;:&quot;&quot;} ŝlosilo${i.keys.length&gt;1?&quot;j&quot;:&quot;&quot;}: ${Z(i.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Nevalida ŝlosilo en ${i.origin}`;case&quot;invalid_union&quot;:return&quot;Nevalida enigo&quot;;case&quot;invalid_element&quot;:return`Nevalida valoro en ${i.origin}`;default:return&quot;Nevalida enigo&quot;}}};function cb(){return{localeError:lb()}}const db=()=&gt;{const e={string:{unit:&quot;caracteres&quot;,verb:&quot;tener&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;tener&quot;},array:{unit:&quot;elementos&quot;,verb:&quot;tener&quot;},set:{unit:&quot;elementos&quot;,verb:&quot;tener&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;número&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;arreglo&quot;;if(r===null)return&quot;nulo&quot;;if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return o},i={regex:&quot;entrada&quot;,email:&quot;dirección de correo electrónico&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;fecha y hora ISO&quot;,date:&quot;fecha ISO&quot;,time:&quot;hora ISO&quot;,duration:&quot;duración ISO&quot;,ipv4:&quot;dirección IPv4&quot;,ipv6:&quot;dirección IPv6&quot;,cidrv4:&quot;rango IPv4&quot;,cidrv6:&quot;rango IPv6&quot;,base64:&quot;cadena codificada en base64&quot;,base64url:&quot;URL codificada en base64&quot;,json_string:&quot;cadena JSON&quot;,e164:&quot;número E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrada&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Entrada inválida: se esperaba ${r.expected}, recibido ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrada inválida: se esperaba ${ne(r.values[0])}`:`Opción inválida: se esperaba una de ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Demasiado grande: se esperaba que ${r.origin??&quot;valor&quot;} tuviera ${o}${r.maximum.toString()} ${a.unit??&quot;elementos&quot;}`:`Demasiado grande: se esperaba que ${r.origin??&quot;valor&quot;} fuera ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Demasiado pequeño: se esperaba que ${r.origin} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${r.origin} fuera ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Cadena inválida: debe comenzar con &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Cadena inválida: debe terminar en &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Cadena inválida: debe incluir &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Número inválido: debe ser múltiplo de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Llave${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} desconocida${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Llave inválida en ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrada inválida&quot;;case&quot;invalid_element&quot;:return`Valor inválido en ${r.origin}`;default:return&quot;Entrada inválida&quot;}}};function fb(){return{localeError:db()}}const mb=()=&gt;{const e={string:{unit:&quot;کاراکتر&quot;,verb:&quot;داشته باشد&quot;},file:{unit:&quot;بایت&quot;,verb:&quot;داشته باشد&quot;},array:{unit:&quot;آیتم&quot;,verb:&quot;داشته باشد&quot;},set:{unit:&quot;آیتم&quot;,verb:&quot;داشته باشد&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;عدد&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;آرایه&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ورودی&quot;,email:&quot;آدرس ایمیل&quot;,url:&quot;URL&quot;,emoji:&quot;ایموجی&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;تاریخ و زمان ایزو&quot;,date:&quot;تاریخ ایزو&quot;,time:&quot;زمان ایزو&quot;,duration:&quot;مدت زمان ایزو&quot;,ipv4:&quot;IPv4 آدرس&quot;,ipv6:&quot;IPv6 آدرس&quot;,cidrv4:&quot;IPv4 دامنه&quot;,cidrv6:&quot;IPv6 دامنه&quot;,base64:&quot;base64-encoded رشته&quot;,base64url:&quot;base64url-encoded رشته&quot;,json_string:&quot;JSON رشته&quot;,e164:&quot;E.164 عدد&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ورودی&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ورودی نامعتبر: می‌بایست ${r.expected} می‌بود، ${n(r.input)} دریافت شد`;case&quot;invalid_value&quot;:return r.values.length===1?`ورودی نامعتبر: می‌بایست ${ne(r.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${Z(r.values,&quot;|&quot;)} می‌بود`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`خیلی بزرگ: ${r.origin??&quot;مقدار&quot;} باید ${o}${r.maximum.toString()} ${a.unit??&quot;عنصر&quot;} باشد`:`خیلی بزرگ: ${r.origin??&quot;مقدار&quot;} باید ${o}${r.maximum.toString()} باشد`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} باشد`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`رشته نامعتبر: باید با &quot;${o.prefix}&quot; شروع شود`:o.format===&quot;ends_with&quot;?`رشته نامعتبر: باید با &quot;${o.suffix}&quot; تمام شود`:o.format===&quot;includes&quot;?`رشته نامعتبر: باید شامل &quot;${o.includes}&quot; باشد`:o.format===&quot;regex&quot;?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${i[o.format]??r.format} نامعتبر`}case&quot;not_multiple_of&quot;:return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case&quot;unrecognized_keys&quot;:return`کلید${r.keys.length&gt;1?&quot;های&quot;:&quot;&quot;} ناشناس: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`کلید ناشناس در ${r.origin}`;case&quot;invalid_union&quot;:return&quot;ورودی نامعتبر&quot;;case&quot;invalid_element&quot;:return`مقدار نامعتبر در ${r.origin}`;default:return&quot;ورودی نامعتبر&quot;}}};function pb(){return{localeError:mb()}}const hb=()=&gt;{const e={string:{unit:&quot;merkkiä&quot;,subject:&quot;merkkijonon&quot;},file:{unit:&quot;tavua&quot;,subject:&quot;tiedoston&quot;},array:{unit:&quot;alkiota&quot;,subject:&quot;listan&quot;},set:{unit:&quot;alkiota&quot;,subject:&quot;joukon&quot;},number:{unit:&quot;&quot;,subject:&quot;luvun&quot;},bigint:{unit:&quot;&quot;,subject:&quot;suuren kokonaisluvun&quot;},int:{unit:&quot;&quot;,subject:&quot;kokonaisluvun&quot;},date:{unit:&quot;&quot;,subject:&quot;päivämäärän&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;säännöllinen lauseke&quot;,email:&quot;sähköpostiosoite&quot;,url:&quot;URL-osoite&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-aikaleima&quot;,date:&quot;ISO-päivämäärä&quot;,time:&quot;ISO-aika&quot;,duration:&quot;ISO-kesto&quot;,ipv4:&quot;IPv4-osoite&quot;,ipv6:&quot;IPv6-osoite&quot;,cidrv4:&quot;IPv4-alue&quot;,cidrv6:&quot;IPv6-alue&quot;,base64:&quot;base64-koodattu merkkijono&quot;,base64url:&quot;base64url-koodattu merkkijono&quot;,json_string:&quot;JSON-merkkijono&quot;,e164:&quot;E.164-luku&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;templaattimerkkijono&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Virheellinen syöte: täytyy olla ${ne(r.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Virheellinen syöte: täytyy alkaa &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Virheellinen syöte: täytyy loppua &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Virheellinen syöte: täytyy sisältää &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Virheellinen luku: täytyy olla luvun ${r.divisor} monikerta`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Tuntemattomat avaimet&quot;:&quot;Tuntematon avain&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return&quot;Virheellinen avain tietueessa&quot;;case&quot;invalid_union&quot;:return&quot;Virheellinen unioni&quot;;case&quot;invalid_element&quot;:return&quot;Virheellinen arvo joukossa&quot;;default:return&quot;Virheellinen syöte&quot;}}};function vb(){return{localeError:hb()}}const gb=()=&gt;{const e={string:{unit:&quot;caractères&quot;,verb:&quot;avoir&quot;},file:{unit:&quot;octets&quot;,verb:&quot;avoir&quot;},array:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;},set:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;nombre&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tableau&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;entrée&quot;,email:&quot;adresse e-mail&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;date et heure ISO&quot;,date:&quot;date ISO&quot;,time:&quot;heure ISO&quot;,duration:&quot;durée ISO&quot;,ipv4:&quot;adresse IPv4&quot;,ipv6:&quot;adresse IPv6&quot;,cidrv4:&quot;plage IPv4&quot;,cidrv6:&quot;plage IPv6&quot;,base64:&quot;chaîne encodée en base64&quot;,base64url:&quot;chaîne encodée en base64url&quot;,json_string:&quot;chaîne JSON&quot;,e164:&quot;numéro E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrée&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Entrée invalide : ${r.expected} attendu, ${n(r.input)} reçu`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrée invalide : ${ne(r.values[0])} attendu`:`Option invalide : une valeur parmi ${Z(r.values,&quot;|&quot;)} attendue`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Trop grand : ${r.origin??&quot;valeur&quot;} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;élément(s)&quot;}`:`Trop grand : ${r.origin??&quot;valeur&quot;} doit être ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit être ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Chaîne invalide : doit commencer par &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Chaîne invalide : doit se terminer par &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Chaîne invalide : doit inclure &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${i[o.format]??r.format} invalide`}case&quot;not_multiple_of&quot;:return`Nombre invalide : doit être un multiple de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Clé${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} non reconnue${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} : ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Clé invalide dans ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrée invalide&quot;;case&quot;invalid_element&quot;:return`Valeur invalide dans ${r.origin}`;default:return&quot;Entrée invalide&quot;}}};function yb(){return{localeError:gb()}}const _b=()=&gt;{const e={string:{unit:&quot;caractères&quot;,verb:&quot;avoir&quot;},file:{unit:&quot;octets&quot;,verb:&quot;avoir&quot;},array:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;},set:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;entrée&quot;,email:&quot;adresse courriel&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;date-heure ISO&quot;,date:&quot;date ISO&quot;,time:&quot;heure ISO&quot;,duration:&quot;durée ISO&quot;,ipv4:&quot;adresse IPv4&quot;,ipv6:&quot;adresse IPv6&quot;,cidrv4:&quot;plage IPv4&quot;,cidrv6:&quot;plage IPv6&quot;,base64:&quot;chaîne encodée en base64&quot;,base64url:&quot;chaîne encodée en base64url&quot;,json_string:&quot;chaîne JSON&quot;,e164:&quot;numéro E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrée&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Entrée invalide : attendu ${r.expected}, reçu ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrée invalide : attendu ${ne(r.values[0])}`:`Option invalide : attendu l&#39;une des valeurs suivantes ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;≤&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??&quot;la valeur&quot;} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??&quot;la valeur&quot;} soit ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;≥&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Chaîne invalide : doit commencer par &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Chaîne invalide : doit se terminer par &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Chaîne invalide : doit inclure &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${i[o.format]??r.format} invalide`}case&quot;not_multiple_of&quot;:return`Nombre invalide : doit être un multiple de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Clé${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} non reconnue${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} : ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Clé invalide dans ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrée invalide&quot;;case&quot;invalid_element&quot;:return`Valeur invalide dans ${r.origin}`;default:return&quot;Entrée invalide&quot;}}};function wb(){return{localeError:_b()}}const $b=()=&gt;{const e={string:{unit:&quot;אותיות&quot;,verb:&quot;לכלול&quot;},file:{unit:&quot;בייטים&quot;,verb:&quot;לכלול&quot;},array:{unit:&quot;פריטים&quot;,verb:&quot;לכלול&quot;},set:{unit:&quot;פריטים&quot;,verb:&quot;לכלול&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;קלט&quot;,email:&quot;כתובת אימייל&quot;,url:&quot;כתובת רשת&quot;,emoji:&quot;אימוג&#39;י&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;תאריך וזמן ISO&quot;,date:&quot;תאריך ISO&quot;,time:&quot;זמן ISO&quot;,duration:&quot;משך זמן ISO&quot;,ipv4:&quot;כתובת IPv4&quot;,ipv6:&quot;כתובת IPv6&quot;,cidrv4:&quot;טווח IPv4&quot;,cidrv6:&quot;טווח IPv6&quot;,base64:&quot;מחרוזת בבסיס 64&quot;,base64url:&quot;מחרוזת בבסיס 64 לכתובות רשת&quot;,json_string:&quot;מחרוזת JSON&quot;,e164:&quot;מספר E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;קלט&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`קלט לא תקין: צריך ${r.expected}, התקבל ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`קלט לא תקין: צריך ${ne(r.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות  ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`גדול מדי: ${r.origin??&quot;value&quot;} צריך להיות ${o}${r.maximum.toString()} ${a.unit??&quot;elements&quot;}`:`גדול מדי: ${r.origin??&quot;value&quot;} צריך להיות ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`קטן מדי: ${r.origin} צריך להיות ${o}${r.minimum.toString()} ${a.unit}`:`קטן מדי: ${r.origin} צריך להיות ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`מחרוזת לא תקינה: חייבת להתחיל ב&quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`מחרוזת לא תקינה: חייבת להסתיים ב &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`מחרוזת לא תקינה: חייבת לכלול &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${o.pattern}`:`${i[o.format]??r.format} לא תקין`}case&quot;not_multiple_of&quot;:return`מספר לא תקין: חייב להיות מכפלה של ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`מפתח${r.keys.length&gt;1?&quot;ות&quot;:&quot;&quot;} לא מזוה${r.keys.length&gt;1?&quot;ים&quot;:&quot;ה&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`מפתח לא תקין ב${r.origin}`;case&quot;invalid_union&quot;:return&quot;קלט לא תקין&quot;;case&quot;invalid_element&quot;:return`ערך לא תקין ב${r.origin}`;default:return&quot;קלט לא תקין&quot;}}};function kb(){return{localeError:$b()}}const Sb=()=&gt;{const e={string:{unit:&quot;karakter&quot;,verb:&quot;legyen&quot;},file:{unit:&quot;byte&quot;,verb:&quot;legyen&quot;},array:{unit:&quot;elem&quot;,verb:&quot;legyen&quot;},set:{unit:&quot;elem&quot;,verb:&quot;legyen&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;szám&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tömb&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;bemenet&quot;,email:&quot;email cím&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO időbélyeg&quot;,date:&quot;ISO dátum&quot;,time:&quot;ISO idő&quot;,duration:&quot;ISO időintervallum&quot;,ipv4:&quot;IPv4 cím&quot;,ipv6:&quot;IPv6 cím&quot;,cidrv4:&quot;IPv4 tartomány&quot;,cidrv6:&quot;IPv6 tartomány&quot;,base64:&quot;base64-kódolt string&quot;,base64url:&quot;base64url-kódolt string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 szám&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;bemenet&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Érvénytelen bemenet: a várt érték ${r.expected}, a kapott érték ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Érvénytelen bemenet: a várt érték ${ne(r.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Túl nagy: ${r.origin??&quot;érték&quot;} mérete túl nagy ${o}${r.maximum.toString()} ${a.unit??&quot;elem&quot;}`:`Túl nagy: a bemeneti érték ${r.origin??&quot;érték&quot;} túl nagy: ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Túl kicsi: a bemeneti érték ${r.origin} mérete túl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${r.origin} túl kicsi ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Érvénytelen string: &quot;${o.prefix}&quot; értékkel kell kezdődnie`:o.format===&quot;ends_with&quot;?`Érvénytelen string: &quot;${o.suffix}&quot; értékkel kell végződnie`:o.format===&quot;includes&quot;?`Érvénytelen string: &quot;${o.includes}&quot; értéket kell tartalmaznia`:o.format===&quot;regex&quot;?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Érvénytelen szám: ${r.divisor} többszörösének kell lennie`;case&quot;unrecognized_keys&quot;:return`Ismeretlen kulcs${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Érvénytelen kulcs ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Érvénytelen bemenet&quot;;case&quot;invalid_element&quot;:return`Érvénytelen érték: ${r.origin}`;default:return&quot;Érvénytelen bemenet&quot;}}};function xb(){return{localeError:Sb()}}const bb=()=&gt;{const e={string:{unit:&quot;karakter&quot;,verb:&quot;memiliki&quot;},file:{unit:&quot;byte&quot;,verb:&quot;memiliki&quot;},array:{unit:&quot;item&quot;,verb:&quot;memiliki&quot;},set:{unit:&quot;item&quot;,verb:&quot;memiliki&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;alamat email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;tanggal dan waktu format ISO&quot;,date:&quot;tanggal format ISO&quot;,time:&quot;jam format ISO&quot;,duration:&quot;durasi format ISO&quot;,ipv4:&quot;alamat IPv4&quot;,ipv6:&quot;alamat IPv6&quot;,cidrv4:&quot;rentang alamat IPv4&quot;,cidrv6:&quot;rentang alamat IPv6&quot;,base64:&quot;string dengan enkode base64&quot;,base64url:&quot;string dengan enkode base64url&quot;,json_string:&quot;string JSON&quot;,e164:&quot;angka E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Input tidak valid: diharapkan ${ne(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??&quot;value&quot;} memiliki ${o}${r.maximum.toString()} ${a.unit??&quot;elemen&quot;}`:`Terlalu besar: diharapkan ${r.origin??&quot;value&quot;} menjadi ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`String tidak valid: harus dimulai dengan &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`String tidak valid: harus berakhir dengan &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`String tidak valid: harus menyertakan &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`String tidak valid: harus sesuai pola ${o.pattern}`:`${i[o.format]??r.format} tidak valid`}case&quot;not_multiple_of&quot;:return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Kunci tidak dikenali ${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Kunci tidak valid di ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Input tidak valid&quot;;case&quot;invalid_element&quot;:return`Nilai tidak valid di ${r.origin}`;default:return&quot;Input tidak valid&quot;}}};function Ib(){return{localeError:bb()}}const zb=()=&gt;{const e={string:{unit:&quot;caratteri&quot;,verb:&quot;avere&quot;},file:{unit:&quot;byte&quot;,verb:&quot;avere&quot;},array:{unit:&quot;elementi&quot;,verb:&quot;avere&quot;},set:{unit:&quot;elementi&quot;,verb:&quot;avere&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;numero&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;vettore&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;indirizzo email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data e ora ISO&quot;,date:&quot;data ISO&quot;,time:&quot;ora ISO&quot;,duration:&quot;durata ISO&quot;,ipv4:&quot;indirizzo IPv4&quot;,ipv6:&quot;indirizzo IPv6&quot;,cidrv4:&quot;intervallo IPv4&quot;,cidrv6:&quot;intervallo IPv6&quot;,base64:&quot;stringa codificata in base64&quot;,base64url:&quot;URL codificata in base64&quot;,json_string:&quot;stringa JSON&quot;,e164:&quot;numero E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Input non valido: atteso ${ne(r.values[0])}`:`Opzione non valida: atteso uno tra ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Troppo grande: ${r.origin??&quot;valore&quot;} deve avere ${o}${r.maximum.toString()} ${a.unit??&quot;elementi&quot;}`:`Troppo grande: ${r.origin??&quot;valore&quot;} deve essere ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Stringa non valida: deve iniziare con &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Stringa non valida: deve terminare con &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Stringa non valida: deve includere &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Chiav${r.keys.length&gt;1?&quot;i&quot;:&quot;e&quot;} non riconosciut${r.keys.length&gt;1?&quot;e&quot;:&quot;a&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Chiave non valida in ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Input non valido&quot;;case&quot;invalid_element&quot;:return`Valore non valido in ${r.origin}`;default:return&quot;Input non valido&quot;}}};function Ob(){return{localeError:zb()}}const Eb=()=&gt;{const e={string:{unit:&quot;文字&quot;,verb:&quot;である&quot;},file:{unit:&quot;バイト&quot;,verb:&quot;である&quot;},array:{unit:&quot;要素&quot;,verb:&quot;である&quot;},set:{unit:&quot;要素&quot;,verb:&quot;である&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;数値&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;配列&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;入力値&quot;,email:&quot;メールアドレス&quot;,url:&quot;URL&quot;,emoji:&quot;絵文字&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO日時&quot;,date:&quot;ISO日付&quot;,time:&quot;ISO時刻&quot;,duration:&quot;ISO期間&quot;,ipv4:&quot;IPv4アドレス&quot;,ipv6:&quot;IPv6アドレス&quot;,cidrv4:&quot;IPv4範囲&quot;,cidrv6:&quot;IPv6範囲&quot;,base64:&quot;base64エンコード文字列&quot;,base64url:&quot;base64urlエンコード文字列&quot;,json_string:&quot;JSON文字列&quot;,e164:&quot;E.164番号&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;入力値&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`無効な入力: ${r.expected}が期待されましたが、${n(r.input)}が入力されました`;case&quot;invalid_value&quot;:return r.values.length===1?`無効な入力: ${ne(r.values[0])}が期待されました`:`無効な選択: ${Z(r.values,&quot;、&quot;)}のいずれかである必要があります`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;以下である&quot;:&quot;より小さい&quot;,a=t(r.origin);return a?`大きすぎる値: ${r.origin??&quot;値&quot;}は${r.maximum.toString()}${a.unit??&quot;要素&quot;}${o}必要があります`:`大きすぎる値: ${r.origin??&quot;値&quot;}は${r.maximum.toString()}${o}必要があります`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;以上である&quot;:&quot;より大きい&quot;,a=t(r.origin);return a?`小さすぎる値: ${r.origin}は${r.minimum.toString()}${a.unit}${o}必要があります`:`小さすぎる値: ${r.origin}は${r.minimum.toString()}${o}必要があります`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`無効な文字列: &quot;${o.prefix}&quot;で始まる必要があります`:o.format===&quot;ends_with&quot;?`無効な文字列: &quot;${o.suffix}&quot;で終わる必要があります`:o.format===&quot;includes&quot;?`無効な文字列: &quot;${o.includes}&quot;を含む必要があります`:o.format===&quot;regex&quot;?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`無効な数値: ${r.divisor}の倍数である必要があります`;case&quot;unrecognized_keys&quot;:return`認識されていないキー${r.keys.length&gt;1?&quot;群&quot;:&quot;&quot;}: ${Z(r.keys,&quot;、&quot;)}`;case&quot;invalid_key&quot;:return`${r.origin}内の無効なキー`;case&quot;invalid_union&quot;:return&quot;無効な入力&quot;;case&quot;invalid_element&quot;:return`${r.origin}内の無効な値`;default:return&quot;無効な入力&quot;}}};function Nb(){return{localeError:Eb()}}const jb=()=&gt;{const e={string:{unit:&quot;តួអក្សរ&quot;,verb:&quot;គួរមាន&quot;},file:{unit:&quot;បៃ&quot;,verb:&quot;គួរមាន&quot;},array:{unit:&quot;ធាតុ&quot;,verb:&quot;គួរមាន&quot;},set:{unit:&quot;ធាតុ&quot;,verb:&quot;គួរមាន&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;មិនមែនជាលេខ (NaN)&quot;:&quot;លេខ&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;អារេ (Array)&quot;;if(r===null)return&quot;គ្មានតម្លៃ (null)&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ទិន្នន័យបញ្ចូល&quot;,email:&quot;អាសយដ្ឋានអ៊ីមែល&quot;,url:&quot;URL&quot;,emoji:&quot;សញ្ញាអារម្មណ៍&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;កាលបរិច្ឆេទ និងម៉ោង ISO&quot;,date:&quot;កាលបរិច្ឆេទ ISO&quot;,time:&quot;ម៉ោង ISO&quot;,duration:&quot;រយៈពេល ISO&quot;,ipv4:&quot;អាសយដ្ឋាន IPv4&quot;,ipv6:&quot;អាសយដ្ឋាន IPv6&quot;,cidrv4:&quot;ដែនអាសយដ្ឋាន IPv4&quot;,cidrv6:&quot;ដែនអាសយដ្ឋាន IPv6&quot;,base64:&quot;ខ្សែអក្សរអ៊ិកូដ base64&quot;,base64url:&quot;ខ្សែអក្សរអ៊ិកូដ base64url&quot;,json_string:&quot;ខ្សែអក្សរ JSON&quot;,e164:&quot;លេខ E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ទិន្នន័យបញ្ចូល&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${r.expected} ប៉ុន្តែទទួលបាន ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${ne(r.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`ធំពេក៖ ត្រូវការ ${r.origin??&quot;តម្លៃ&quot;} ${o} ${r.maximum.toString()} ${a.unit??&quot;ធាតុ&quot;}`:`ធំពេក៖ ត្រូវការ ${r.origin??&quot;តម្លៃ&quot;} ${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`រកឃើញសោមិនស្គាល់៖ ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;case&quot;invalid_union&quot;:return&quot;ទិន្នន័យមិនត្រឹមត្រូវ&quot;;case&quot;invalid_element&quot;:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;default:return&quot;ទិន្នន័យមិនត្រឹមត្រូវ&quot;}}};function Tb(){return{localeError:jb()}}const Pb=()=&gt;{const e={string:{unit:&quot;문자&quot;,verb:&quot;to have&quot;},file:{unit:&quot;바이트&quot;,verb:&quot;to have&quot;},array:{unit:&quot;개&quot;,verb:&quot;to have&quot;},set:{unit:&quot;개&quot;,verb:&quot;to have&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;입력&quot;,email:&quot;이메일 주소&quot;,url:&quot;URL&quot;,emoji:&quot;이모지&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO 날짜시간&quot;,date:&quot;ISO 날짜&quot;,time:&quot;ISO 시간&quot;,duration:&quot;ISO 기간&quot;,ipv4:&quot;IPv4 주소&quot;,ipv6:&quot;IPv6 주소&quot;,cidrv4:&quot;IPv4 범위&quot;,cidrv6:&quot;IPv6 범위&quot;,base64:&quot;base64 인코딩 문자열&quot;,base64url:&quot;base64url 인코딩 문자열&quot;,json_string:&quot;JSON 문자열&quot;,e164:&quot;E.164 번호&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;입력&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`잘못된 입력: 예상 타입은 ${r.expected}, 받은 타입은 ${n(r.input)}입니다`;case&quot;invalid_value&quot;:return r.values.length===1?`잘못된 입력: 값은 ${ne(r.values[0])} 이어야 합니다`:`잘못된 옵션: ${Z(r.values,&quot;또는 &quot;)} 중 하나여야 합니다`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;이하&quot;:&quot;미만&quot;,a=o===&quot;미만&quot;?&quot;이어야 합니다&quot;:&quot;여야 합니다&quot;,u=t(r.origin),s=(u==null?void 0:u.unit)??&quot;요소&quot;;return u?`${r.origin??&quot;값&quot;}이 너무 큽니다: ${r.maximum.toString()}${s} ${o}${a}`:`${r.origin??&quot;값&quot;}이 너무 큽니다: ${r.maximum.toString()} ${o}${a}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;이상&quot;:&quot;초과&quot;,a=o===&quot;이상&quot;?&quot;이어야 합니다&quot;:&quot;여야 합니다&quot;,u=t(r.origin),s=(u==null?void 0:u.unit)??&quot;요소&quot;;return u?`${r.origin??&quot;값&quot;}이 너무 작습니다: ${r.minimum.toString()}${s} ${o}${a}`:`${r.origin??&quot;값&quot;}이 너무 작습니다: ${r.minimum.toString()} ${o}${a}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`잘못된 문자열: &quot;${o.prefix}&quot;(으)로 시작해야 합니다`:o.format===&quot;ends_with&quot;?`잘못된 문자열: &quot;${o.suffix}&quot;(으)로 끝나야 합니다`:o.format===&quot;includes&quot;?`잘못된 문자열: &quot;${o.includes}&quot;을(를) 포함해야 합니다`:o.format===&quot;regex&quot;?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case&quot;unrecognized_keys&quot;:return`인식할 수 없는 키: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`잘못된 키: ${r.origin}`;case&quot;invalid_union&quot;:return&quot;잘못된 입력&quot;;case&quot;invalid_element&quot;:return`잘못된 값: ${r.origin}`;default:return&quot;잘못된 입력&quot;}}};function Ub(){return{localeError:Pb()}}const Cb=()=&gt;{const e={string:{unit:&quot;знаци&quot;,verb:&quot;да имаат&quot;},file:{unit:&quot;бајти&quot;,verb:&quot;да имаат&quot;},array:{unit:&quot;ставки&quot;,verb:&quot;да имаат&quot;},set:{unit:&quot;ставки&quot;,verb:&quot;да имаат&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;број&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;низа&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;внес&quot;,email:&quot;адреса на е-пошта&quot;,url:&quot;URL&quot;,emoji:&quot;емоџи&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO датум и време&quot;,date:&quot;ISO датум&quot;,time:&quot;ISO време&quot;,duration:&quot;ISO времетраење&quot;,ipv4:&quot;IPv4 адреса&quot;,ipv6:&quot;IPv6 адреса&quot;,cidrv4:&quot;IPv4 опсег&quot;,cidrv6:&quot;IPv6 опсег&quot;,base64:&quot;base64-енкодирана низа&quot;,base64url:&quot;base64url-енкодирана низа&quot;,json_string:&quot;JSON низа&quot;,e164:&quot;E.164 број&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;внес&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Грешен внес: се очекува ${r.expected}, примено ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Invalid input: expected ${ne(r.values[0])}`:`Грешана опција: се очекува една ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Премногу голем: се очекува ${r.origin??&quot;вредноста&quot;} да има ${o}${r.maximum.toString()} ${a.unit??&quot;елементи&quot;}`:`Премногу голем: се очекува ${r.origin??&quot;вредноста&quot;} да биде ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Премногу мал: се очекува ${r.origin} да има ${o}${r.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${r.origin} да биде ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Неважечка низа: мора да започнува со &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Неважечка низа: мора да завршува со &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Неважечка низа: мора да вклучува &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Грешен број: мора да биде делив со ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Непрепознаени клучеви&quot;:&quot;Непрепознаен клуч&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Грешен клуч во ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Грешен внес&quot;;case&quot;invalid_element&quot;:return`Грешна вредност во ${r.origin}`;default:return&quot;Грешен внес&quot;}}};function Ab(){return{localeError:Cb()}}const Db=()=&gt;{const e={string:{unit:&quot;aksara&quot;,verb:&quot;mempunyai&quot;},file:{unit:&quot;bait&quot;,verb:&quot;mempunyai&quot;},array:{unit:&quot;elemen&quot;,verb:&quot;mempunyai&quot;},set:{unit:&quot;elemen&quot;,verb:&quot;mempunyai&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;nombor&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;alamat e-mel&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;tarikh masa ISO&quot;,date:&quot;tarikh ISO&quot;,time:&quot;masa ISO&quot;,duration:&quot;tempoh ISO&quot;,ipv4:&quot;alamat IPv4&quot;,ipv6:&quot;alamat IPv6&quot;,cidrv4:&quot;julat IPv4&quot;,cidrv6:&quot;julat IPv6&quot;,base64:&quot;string dikodkan base64&quot;,base64url:&quot;string dikodkan base64url&quot;,json_string:&quot;string JSON&quot;,e164:&quot;nombor E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Input tidak sah: dijangka ${ne(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??&quot;nilai&quot;} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;elemen&quot;}`:`Terlalu besar: dijangka ${r.origin??&quot;nilai&quot;} adalah ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`String tidak sah: mesti bermula dengan &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`String tidak sah: mesti berakhir dengan &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`String tidak sah: mesti mengandungi &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${i[o.format]??r.format} tidak sah`}case&quot;not_multiple_of&quot;:return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Kunci tidak dikenali: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Kunci tidak sah dalam ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Input tidak sah&quot;;case&quot;invalid_element&quot;:return`Nilai tidak sah dalam ${r.origin}`;default:return&quot;Input tidak sah&quot;}}};function Rb(){return{localeError:Db()}}const Zb=()=&gt;{const e={string:{unit:&quot;tekens&quot;},file:{unit:&quot;bytes&quot;},array:{unit:&quot;elementen&quot;},set:{unit:&quot;elementen&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;getal&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;invoer&quot;,email:&quot;emailadres&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datum en tijd&quot;,date:&quot;ISO datum&quot;,time:&quot;ISO tijd&quot;,duration:&quot;ISO duur&quot;,ipv4:&quot;IPv4-adres&quot;,ipv6:&quot;IPv6-adres&quot;,cidrv4:&quot;IPv4-bereik&quot;,cidrv6:&quot;IPv6-bereik&quot;,base64:&quot;base64-gecodeerde tekst&quot;,base64url:&quot;base64 URL-gecodeerde tekst&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164-nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;invoer&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ongeldige invoer: verwacht ${ne(r.values[0])}`:`Ongeldige optie: verwacht één van ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Te lang: verwacht dat ${r.origin??&quot;waarde&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;elementen&quot;} bevat`:`Te lang: verwacht dat ${r.origin??&quot;waarde&quot;} ${o}${r.maximum.toString()} is`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ongeldige tekst: moet met &quot;${o.prefix}&quot; beginnen`:o.format===&quot;ends_with&quot;?`Ongeldige tekst: moet op &quot;${o.suffix}&quot; eindigen`:o.format===&quot;includes&quot;?`Ongeldige tekst: moet &quot;${o.includes}&quot; bevatten`:o.format===&quot;regex&quot;?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case&quot;unrecognized_keys&quot;:return`Onbekende key${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ongeldige key in ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Ongeldige invoer&quot;;case&quot;invalid_element&quot;:return`Ongeldige waarde in ${r.origin}`;default:return&quot;Ongeldige invoer&quot;}}};function Lb(){return{localeError:Zb()}}const Mb=()=&gt;{const e={string:{unit:&quot;tegn&quot;,verb:&quot;å ha&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;å ha&quot;},array:{unit:&quot;elementer&quot;,verb:&quot;å inneholde&quot;},set:{unit:&quot;elementer&quot;,verb:&quot;å inneholde&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;tall&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;liste&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;e-postadresse&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO dato- og klokkeslett&quot;,date:&quot;ISO-dato&quot;,time:&quot;ISO-klokkeslett&quot;,duration:&quot;ISO-varighet&quot;,ipv4:&quot;IPv4-område&quot;,ipv6:&quot;IPv6-område&quot;,cidrv4:&quot;IPv4-spekter&quot;,cidrv6:&quot;IPv6-spekter&quot;,base64:&quot;base64-enkodet streng&quot;,base64url:&quot;base64url-enkodet streng&quot;,json_string:&quot;JSON-streng&quot;,e164:&quot;E.164-nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ugyldig verdi: forventet ${ne(r.values[0])}`:`Ugyldig valg: forventet en av ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`For stor(t): forventet ${r.origin??&quot;value&quot;} til å ha ${o}${r.maximum.toString()} ${a.unit??&quot;elementer&quot;}`:`For stor(t): forventet ${r.origin??&quot;value&quot;} til å ha ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ugyldig streng: må starte med &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Ugyldig streng: må ende med &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Ugyldig streng: må inneholde &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ugyldig tall: må være et multiplum av ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Ukjente nøkler&quot;:&quot;Ukjent nøkkel&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ugyldig nøkkel i ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Ugyldig input&quot;;case&quot;invalid_element&quot;:return`Ugyldig verdi i ${r.origin}`;default:return&quot;Ugyldig input&quot;}}};function Fb(){return{localeError:Mb()}}const Bb=()=&gt;{const e={string:{unit:&quot;harf&quot;,verb:&quot;olmalıdır&quot;},file:{unit:&quot;bayt&quot;,verb:&quot;olmalıdır&quot;},array:{unit:&quot;unsur&quot;,verb:&quot;olmalıdır&quot;},set:{unit:&quot;unsur&quot;,verb:&quot;olmalıdır&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;numara&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;saf&quot;;if(r===null)return&quot;gayb&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;giren&quot;,email:&quot;epostagâh&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO hengâmı&quot;,date:&quot;ISO tarihi&quot;,time:&quot;ISO zamanı&quot;,duration:&quot;ISO müddeti&quot;,ipv4:&quot;IPv4 nişânı&quot;,ipv6:&quot;IPv6 nişânı&quot;,cidrv4:&quot;IPv4 menzili&quot;,cidrv6:&quot;IPv6 menzili&quot;,base64:&quot;base64-şifreli metin&quot;,base64url:&quot;base64url-şifreli metin&quot;,json_string:&quot;JSON metin&quot;,e164:&quot;E.164 sayısı&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;giren&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Fâsit giren: umulan ${r.expected}, alınan ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Fâsit giren: umulan ${ne(r.values[0])}`:`Fâsit tercih: mûteberler ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Fazla büyük: ${r.origin??&quot;value&quot;}, ${o}${r.maximum.toString()} ${a.unit??&quot;elements&quot;} sahip olmalıydı.`:`Fazla büyük: ${r.origin??&quot;value&quot;}, ${o}${r.maximum.toString()} olmalıydı.`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} olmalıydı.`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Fâsit metin: &quot;${o.prefix}&quot; ile başlamalı.`:o.format===&quot;ends_with&quot;?`Fâsit metin: &quot;${o.suffix}&quot; ile bitmeli.`:o.format===&quot;includes&quot;?`Fâsit metin: &quot;${o.includes}&quot; ihtivâ etmeli.`:o.format===&quot;regex&quot;?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Fâsit sayı: ${r.divisor} katı olmalıydı.`;case&quot;unrecognized_keys&quot;:return`Tanınmayan anahtar ${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} için tanınmayan anahtar var.`;case&quot;invalid_union&quot;:return&quot;Giren tanınamadı.&quot;;case&quot;invalid_element&quot;:return`${r.origin} için tanınmayan kıymet var.`;default:return&quot;Kıymet tanınamadı.&quot;}}};function Vb(){return{localeError:Bb()}}const Wb=()=&gt;{const e={string:{unit:&quot;توکي&quot;,verb:&quot;ولري&quot;},file:{unit:&quot;بایټس&quot;,verb:&quot;ولري&quot;},array:{unit:&quot;توکي&quot;,verb:&quot;ولري&quot;},set:{unit:&quot;توکي&quot;,verb:&quot;ولري&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;عدد&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;ارې&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ورودي&quot;,email:&quot;بریښنالیک&quot;,url:&quot;یو آر ال&quot;,emoji:&quot;ایموجي&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;نیټه او وخت&quot;,date:&quot;نېټه&quot;,time:&quot;وخت&quot;,duration:&quot;موده&quot;,ipv4:&quot;د IPv4 پته&quot;,ipv6:&quot;د IPv6 پته&quot;,cidrv4:&quot;د IPv4 ساحه&quot;,cidrv6:&quot;د IPv6 ساحه&quot;,base64:&quot;base64-encoded متن&quot;,base64url:&quot;base64url-encoded متن&quot;,json_string:&quot;JSON متن&quot;,e164:&quot;د E.164 شمېره&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ورودي&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ناسم ورودي: باید ${r.expected} وای, مګر ${n(r.input)} ترلاسه شو`;case&quot;invalid_value&quot;:return r.values.length===1?`ناسم ورودي: باید ${ne(r.values[0])} وای`:`ناسم انتخاب: باید یو له ${Z(r.values,&quot;|&quot;)} څخه وای`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`ډیر لوی: ${r.origin??&quot;ارزښت&quot;} باید ${o}${r.maximum.toString()} ${a.unit??&quot;عنصرونه&quot;} ولري`:`ډیر لوی: ${r.origin??&quot;ارزښت&quot;} باید ${o}${r.maximum.toString()} وي`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} وي`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`ناسم متن: باید د &quot;${o.prefix}&quot; سره پیل شي`:o.format===&quot;ends_with&quot;?`ناسم متن: باید د &quot;${o.suffix}&quot; سره پای ته ورسيږي`:o.format===&quot;includes&quot;?`ناسم متن: باید &quot;${o.includes}&quot; ولري`:o.format===&quot;regex&quot;?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${i[o.format]??r.format} ناسم دی`}case&quot;not_multiple_of&quot;:return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case&quot;unrecognized_keys&quot;:return`ناسم ${r.keys.length&gt;1?&quot;کلیډونه&quot;:&quot;کلیډ&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`ناسم کلیډ په ${r.origin} کې`;case&quot;invalid_union&quot;:return&quot;ناسمه ورودي&quot;;case&quot;invalid_element&quot;:return`ناسم عنصر په ${r.origin} کې`;default:return&quot;ناسمه ورودي&quot;}}};function Jb(){return{localeError:Wb()}}const Kb=()=&gt;{const e={string:{unit:&quot;znaków&quot;,verb:&quot;mieć&quot;},file:{unit:&quot;bajtów&quot;,verb:&quot;mieć&quot;},array:{unit:&quot;elementów&quot;,verb:&quot;mieć&quot;},set:{unit:&quot;elementów&quot;,verb:&quot;mieć&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;liczba&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tablica&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;wyrażenie&quot;,email:&quot;adres email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data i godzina w formacie ISO&quot;,date:&quot;data w formacie ISO&quot;,time:&quot;godzina w formacie ISO&quot;,duration:&quot;czas trwania ISO&quot;,ipv4:&quot;adres IPv4&quot;,ipv6:&quot;adres IPv6&quot;,cidrv4:&quot;zakres IPv4&quot;,cidrv6:&quot;zakres IPv6&quot;,base64:&quot;ciąg znaków zakodowany w formacie base64&quot;,base64url:&quot;ciąg znaków zakodowany w formacie base64url&quot;,json_string:&quot;ciąg znaków w formacie JSON&quot;,e164:&quot;liczba E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;wejście&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Nieprawidłowe dane wejściowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${ne(r.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Za duża wartość: oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie mieć ${o}${r.maximum.toString()} ${a.unit??&quot;elementów&quot;}`:`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie wynosić ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Za mała wartość: oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie mieć ${o}${r.minimum.toString()} ${a.unit??&quot;elementów&quot;}`:`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie wynosić ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Nieprawidłowy ciąg znaków: musi zaczynać się od &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Nieprawidłowy ciąg znaków: musi kończyć się na &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Nieprawidłowy ciąg znaków: musi zawierać &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Nierozpoznane klucze${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Nieprawidłowy klucz w ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Nieprawidłowe dane wejściowe&quot;;case&quot;invalid_element&quot;:return`Nieprawidłowa wartość w ${r.origin}`;default:return&quot;Nieprawidłowe dane wejściowe&quot;}}};function Hb(){return{localeError:Kb()}}const Gb=()=&gt;{const e={string:{unit:&quot;caracteres&quot;,verb:&quot;ter&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;ter&quot;},array:{unit:&quot;itens&quot;,verb:&quot;ter&quot;},set:{unit:&quot;itens&quot;,verb:&quot;ter&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;número&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;nulo&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;padrão&quot;,email:&quot;endereço de e-mail&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data e hora ISO&quot;,date:&quot;data ISO&quot;,time:&quot;hora ISO&quot;,duration:&quot;duração ISO&quot;,ipv4:&quot;endereço IPv4&quot;,ipv6:&quot;endereço IPv6&quot;,cidrv4:&quot;faixa de IPv4&quot;,cidrv6:&quot;faixa de IPv6&quot;,base64:&quot;texto codificado em base64&quot;,base64url:&quot;URL codificada em base64&quot;,json_string:&quot;texto JSON&quot;,e164:&quot;número E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrada&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Tipo inválido: esperado ${r.expected}, recebido ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrada inválida: esperado ${ne(r.values[0])}`:`Opção inválida: esperada uma das ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??&quot;valor&quot;} tivesse ${o}${r.maximum.toString()} ${a.unit??&quot;elementos&quot;}`:`Muito grande: esperado que ${r.origin??&quot;valor&quot;} fosse ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Texto inválido: deve começar com &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Texto inválido: deve terminar com &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Texto inválido: deve incluir &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${i[o.format]??r.format} inválido`}case&quot;not_multiple_of&quot;:return`Número inválido: deve ser múltiplo de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Chave${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} desconhecida${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Chave inválida em ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrada inválida&quot;;case&quot;invalid_element&quot;:return`Valor inválido em ${r.origin}`;default:return&quot;Campo inválido&quot;}}};function Qb(){return{localeError:Gb()}}function vh(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a&gt;=11&amp;&amp;a&lt;=19?i:o===1?t:o&gt;=2&amp;&amp;o&lt;=4?n:i}const Xb=()=&gt;{const e={string:{unit:{one:&quot;символ&quot;,few:&quot;символа&quot;,many:&quot;символов&quot;},verb:&quot;иметь&quot;},file:{unit:{one:&quot;байт&quot;,few:&quot;байта&quot;,many:&quot;байт&quot;},verb:&quot;иметь&quot;},array:{unit:{one:&quot;элемент&quot;,few:&quot;элемента&quot;,many:&quot;элементов&quot;},verb:&quot;иметь&quot;},set:{unit:{one:&quot;элемент&quot;,few:&quot;элемента&quot;,many:&quot;элементов&quot;},verb:&quot;иметь&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;число&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;массив&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ввод&quot;,email:&quot;email адрес&quot;,url:&quot;URL&quot;,emoji:&quot;эмодзи&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO дата и время&quot;,date:&quot;ISO дата&quot;,time:&quot;ISO время&quot;,duration:&quot;ISO длительность&quot;,ipv4:&quot;IPv4 адрес&quot;,ipv6:&quot;IPv6 адрес&quot;,cidrv4:&quot;IPv4 диапазон&quot;,cidrv6:&quot;IPv6 диапазон&quot;,base64:&quot;строка в формате base64&quot;,base64url:&quot;строка в формате base64url&quot;,json_string:&quot;JSON строка&quot;,e164:&quot;номер E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ввод&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Неверный ввод: ожидалось ${r.expected}, получено ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Неверный ввод: ожидалось ${ne(r.values[0])}`:`Неверный вариант: ожидалось одно из ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);if(a){const u=Number(r.maximum),s=vh(u,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??&quot;значение&quot;} будет иметь ${o}${r.maximum.toString()} ${s}`}return`Слишком большое значение: ожидалось, что ${r.origin??&quot;значение&quot;} будет ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);if(a){const u=Number(r.minimum),s=vh(u,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${o}${r.minimum.toString()} ${s}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Неверная строка: должна начинаться с &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Неверная строка: должна заканчиваться на &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Неверная строка: должна содержать &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Неверное число: должно быть кратным ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Нераспознанн${r.keys.length&gt;1?&quot;ые&quot;:&quot;ый&quot;} ключ${r.keys.length&gt;1?&quot;и&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Неверный ключ в ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Неверные входные данные&quot;;case&quot;invalid_element&quot;:return`Неверное значение в ${r.origin}`;default:return&quot;Неверные входные данные&quot;}}};function Yb(){return{localeError:Xb()}}const qb=()=&gt;{const e={string:{unit:&quot;znakov&quot;,verb:&quot;imeti&quot;},file:{unit:&quot;bajtov&quot;,verb:&quot;imeti&quot;},array:{unit:&quot;elementov&quot;,verb:&quot;imeti&quot;},set:{unit:&quot;elementov&quot;,verb:&quot;imeti&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;število&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tabela&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;vnos&quot;,email:&quot;e-poštni naslov&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datum in čas&quot;,date:&quot;ISO datum&quot;,time:&quot;ISO čas&quot;,duration:&quot;ISO trajanje&quot;,ipv4:&quot;IPv4 naslov&quot;,ipv6:&quot;IPv6 naslov&quot;,cidrv4:&quot;obseg IPv4&quot;,cidrv6:&quot;obseg IPv6&quot;,base64:&quot;base64 kodiran niz&quot;,base64url:&quot;base64url kodiran niz&quot;,json_string:&quot;JSON niz&quot;,e164:&quot;E.164 številka&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;vnos&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Neveljaven vnos: pričakovano ${r.expected}, prejeto ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Neveljaven vnos: pričakovano ${ne(r.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Preveliko: pričakovano, da bo ${r.origin??&quot;vrednost&quot;} imelo ${o}${r.maximum.toString()} ${a.unit??&quot;elementov&quot;}`:`Preveliko: pričakovano, da bo ${r.origin??&quot;vrednost&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Premajhno: pričakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Neveljaven niz: mora se začeti z &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Neveljaven niz: mora se končati z &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Neveljaven niz: mora vsebovati &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Neprepoznan${r.keys.length&gt;1?&quot;i ključi&quot;:&quot; ključ&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Neveljaven ključ v ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Neveljaven vnos&quot;;case&quot;invalid_element&quot;:return`Neveljavna vrednost v ${r.origin}`;default:return&quot;Neveljaven vnos&quot;}}};function eI(){return{localeError:qb()}}const tI=()=&gt;{const e={string:{unit:&quot;tecken&quot;,verb:&quot;att ha&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;att ha&quot;},array:{unit:&quot;objekt&quot;,verb:&quot;att innehålla&quot;},set:{unit:&quot;objekt&quot;,verb:&quot;att innehålla&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;antal&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;lista&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;reguljärt uttryck&quot;,email:&quot;e-postadress&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-datum och tid&quot;,date:&quot;ISO-datum&quot;,time:&quot;ISO-tid&quot;,duration:&quot;ISO-varaktighet&quot;,ipv4:&quot;IPv4-intervall&quot;,ipv6:&quot;IPv6-intervall&quot;,cidrv4:&quot;IPv4-spektrum&quot;,cidrv6:&quot;IPv6-spektrum&quot;,base64:&quot;base64-kodad sträng&quot;,base64url:&quot;base64url-kodad sträng&quot;,json_string:&quot;JSON-sträng&quot;,e164:&quot;E.164-nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;mall-literal&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ogiltig inmatning: förväntat ${r.expected}, fick ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ogiltig inmatning: förväntat ${ne(r.values[0])}`:`Ogiltigt val: förväntade en av ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`För stor(t): förväntade ${r.origin??&quot;värdet&quot;} att ha ${o}${r.maximum.toString()} ${a.unit??&quot;element&quot;}`:`För stor(t): förväntat ${r.origin??&quot;värdet&quot;} att ha ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`För lite(t): förväntade ${r.origin??&quot;värdet&quot;} att ha ${o}${r.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${r.origin??&quot;värdet&quot;} att ha ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ogiltig sträng: måste börja med &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Ogiltig sträng: måste sluta med &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Ogiltig sträng: måste innehålla &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Ogiltig sträng: måste matcha mönstret &quot;${o.pattern}&quot;`:`Ogiltig(t) ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ogiltigt tal: måste vara en multipel av ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Okända nycklar&quot;:&quot;Okänd nyckel&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ogiltig nyckel i ${r.origin??&quot;värdet&quot;}`;case&quot;invalid_union&quot;:return&quot;Ogiltig input&quot;;case&quot;invalid_element&quot;:return`Ogiltigt värde i ${r.origin??&quot;värdet&quot;}`;default:return&quot;Ogiltig input&quot;}}};function nI(){return{localeError:tI()}}const rI=()=&gt;{const e={string:{unit:&quot;எழுத்துக்கள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;},file:{unit:&quot;பைட்டுகள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;},array:{unit:&quot;உறுப்புகள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;},set:{unit:&quot;உறுப்புகள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;எண் அல்லாதது&quot;:&quot;எண்&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;அணி&quot;;if(r===null)return&quot;வெறுமை&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;உள்ளீடு&quot;,email:&quot;மின்னஞ்சல் முகவரி&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO தேதி நேரம்&quot;,date:&quot;ISO தேதி&quot;,time:&quot;ISO நேரம்&quot;,duration:&quot;ISO கால அளவு&quot;,ipv4:&quot;IPv4 முகவரி&quot;,ipv6:&quot;IPv6 முகவரி&quot;,cidrv4:&quot;IPv4 வரம்பு&quot;,cidrv6:&quot;IPv6 வரம்பு&quot;,base64:&quot;base64-encoded சரம்&quot;,base64url:&quot;base64url-encoded சரம்&quot;,json_string:&quot;JSON சரம்&quot;,e164:&quot;E.164 எண்&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${r.expected}, பெறப்பட்டது ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${ne(r.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${Z(r.values,&quot;|&quot;)} இல் ஒன்று`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??&quot;மதிப்பு&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;உறுப்புகள்&quot;} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??&quot;மதிப்பு&quot;} ${o}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`தவறான சரம்: &quot;${o.prefix}&quot; இல் தொடங்க வேண்டும்`:o.format===&quot;ends_with&quot;?`தவறான சரம்: &quot;${o.suffix}&quot; இல் முடிவடைய வேண்டும்`:o.format===&quot;includes&quot;?`தவறான சரம்: &quot;${o.includes}&quot; ஐ உள்ளடக்க வேண்டும்`:o.format===&quot;regex&quot;?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case&quot;unrecognized_keys&quot;:return`அடையாளம் தெரியாத விசை${r.keys.length&gt;1?&quot;கள்&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} இல் தவறான விசை`;case&quot;invalid_union&quot;:return&quot;தவறான உள்ளீடு&quot;;case&quot;invalid_element&quot;:return`${r.origin} இல் தவறான மதிப்பு`;default:return&quot;தவறான உள்ளீடு&quot;}}};function iI(){return{localeError:rI()}}const oI=()=&gt;{const e={string:{unit:&quot;ตัวอักษร&quot;,verb:&quot;ควรมี&quot;},file:{unit:&quot;ไบต์&quot;,verb:&quot;ควรมี&quot;},array:{unit:&quot;รายการ&quot;,verb:&quot;ควรมี&quot;},set:{unit:&quot;รายการ&quot;,verb:&quot;ควรมี&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;ไม่ใช่ตัวเลข (NaN)&quot;:&quot;ตัวเลข&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;อาร์เรย์ (Array)&quot;;if(r===null)return&quot;ไม่มีค่า (null)&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ข้อมูลที่ป้อน&quot;,email:&quot;ที่อยู่อีเมล&quot;,url:&quot;URL&quot;,emoji:&quot;อิโมจิ&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;วันที่เวลาแบบ ISO&quot;,date:&quot;วันที่แบบ ISO&quot;,time:&quot;เวลาแบบ ISO&quot;,duration:&quot;ช่วงเวลาแบบ ISO&quot;,ipv4:&quot;ที่อยู่ IPv4&quot;,ipv6:&quot;ที่อยู่ IPv6&quot;,cidrv4:&quot;ช่วง IP แบบ IPv4&quot;,cidrv6:&quot;ช่วง IP แบบ IPv6&quot;,base64:&quot;ข้อความแบบ Base64&quot;,base64url:&quot;ข้อความแบบ Base64 สำหรับ URL&quot;,json_string:&quot;ข้อความแบบ JSON&quot;,e164:&quot;เบอร์โทรศัพท์ระหว่างประเทศ (E.164)&quot;,jwt:&quot;โทเคน JWT&quot;,template_literal:&quot;ข้อมูลที่ป้อน&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${r.expected} แต่ได้รับ ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${ne(r.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;ไม่เกิน&quot;:&quot;น้อยกว่า&quot;,a=t(r.origin);return a?`เกินกำหนด: ${r.origin??&quot;ค่า&quot;} ควรมี${o} ${r.maximum.toString()} ${a.unit??&quot;รายการ&quot;}`:`เกินกำหนด: ${r.origin??&quot;ค่า&quot;} ควรมี${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;อย่างน้อย&quot;:&quot;มากกว่า&quot;,a=t(r.origin);return a?`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี &quot;${o.includes}&quot; อยู่ในข้อความ`:o.format===&quot;regex&quot;?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case&quot;unrecognized_keys&quot;:return`พบคีย์ที่ไม่รู้จัก: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`คีย์ไม่ถูกต้องใน ${r.origin}`;case&quot;invalid_union&quot;:return&quot;ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้&quot;;case&quot;invalid_element&quot;:return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return&quot;ข้อมูลไม่ถูกต้อง&quot;}}};function aI(){return{localeError:oI()}}const uI=e=&gt;{const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(e))return&quot;array&quot;;if(e===null)return&quot;null&quot;;if(Object.getPrototypeOf(e)!==Object.prototype&amp;&amp;e.constructor)return e.constructor.name}}return t},sI=()=&gt;{const e={string:{unit:&quot;karakter&quot;,verb:&quot;olmalı&quot;},file:{unit:&quot;bayt&quot;,verb:&quot;olmalı&quot;},array:{unit:&quot;öğe&quot;,verb:&quot;olmalı&quot;},set:{unit:&quot;öğe&quot;,verb:&quot;olmalı&quot;}};function t(i){return e[i]??null}const n={regex:&quot;girdi&quot;,email:&quot;e-posta adresi&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO tarih ve saat&quot;,date:&quot;ISO tarih&quot;,time:&quot;ISO saat&quot;,duration:&quot;ISO süre&quot;,ipv4:&quot;IPv4 adresi&quot;,ipv6:&quot;IPv6 adresi&quot;,cidrv4:&quot;IPv4 aralığı&quot;,cidrv6:&quot;IPv6 aralığı&quot;,base64:&quot;base64 ile şifrelenmiş metin&quot;,base64url:&quot;base64url ile şifrelenmiş metin&quot;,json_string:&quot;JSON dizesi&quot;,e164:&quot;E.164 sayısı&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;Şablon dizesi&quot;};return i=&gt;{switch(i.code){case&quot;invalid_type&quot;:return`Geçersiz değer: beklenen ${i.expected}, alınan ${uI(i.input)}`;case&quot;invalid_value&quot;:return i.values.length===1?`Geçersiz değer: beklenen ${ne(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${Z(i.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const r=i.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,o=t(i.origin);return o?`Çok büyük: beklenen ${i.origin??&quot;değer&quot;} ${r}${i.maximum.toString()} ${o.unit??&quot;öğe&quot;}`:`Çok büyük: beklenen ${i.origin??&quot;değer&quot;} ${r}${i.maximum.toString()}`}case&quot;too_small&quot;:{const r=i.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,o=t(i.origin);return o?`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()} ${o.unit}`:`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()}`}case&quot;invalid_format&quot;:{const r=i;return r.format===&quot;starts_with&quot;?`Geçersiz metin: &quot;${r.prefix}&quot; ile başlamalı`:r.format===&quot;ends_with&quot;?`Geçersiz metin: &quot;${r.suffix}&quot; ile bitmeli`:r.format===&quot;includes&quot;?`Geçersiz metin: &quot;${r.includes}&quot; içermeli`:r.format===&quot;regex&quot;?`Geçersiz metin: ${r.pattern} desenine uymalı`:`Geçersiz ${n[r.format]??i.format}`}case&quot;not_multiple_of&quot;:return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case&quot;unrecognized_keys&quot;:return`Tanınmayan anahtar${i.keys.length&gt;1?&quot;lar&quot;:&quot;&quot;}: ${Z(i.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${i.origin} içinde geçersiz anahtar`;case&quot;invalid_union&quot;:return&quot;Geçersiz değer&quot;;case&quot;invalid_element&quot;:return`${i.origin} içinde geçersiz değer`;default:return&quot;Geçersiz değer&quot;}}};function lI(){return{localeError:sI()}}const cI=()=&gt;{const e={string:{unit:&quot;символів&quot;,verb:&quot;матиме&quot;},file:{unit:&quot;байтів&quot;,verb:&quot;матиме&quot;},array:{unit:&quot;елементів&quot;,verb:&quot;матиме&quot;},set:{unit:&quot;елементів&quot;,verb:&quot;матиме&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;число&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;масив&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;вхідні дані&quot;,email:&quot;адреса електронної пошти&quot;,url:&quot;URL&quot;,emoji:&quot;емодзі&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;дата та час ISO&quot;,date:&quot;дата ISO&quot;,time:&quot;час ISO&quot;,duration:&quot;тривалість ISO&quot;,ipv4:&quot;адреса IPv4&quot;,ipv6:&quot;адреса IPv6&quot;,cidrv4:&quot;діапазон IPv4&quot;,cidrv6:&quot;діапазон IPv6&quot;,base64:&quot;рядок у кодуванні base64&quot;,base64url:&quot;рядок у кодуванні base64url&quot;,json_string:&quot;рядок JSON&quot;,e164:&quot;номер E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;вхідні дані&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Неправильні вхідні дані: очікується ${r.expected}, отримано ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Неправильні вхідні дані: очікується ${ne(r.values[0])}`:`Неправильна опція: очікується одне з ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Занадто велике: очікується, що ${r.origin??&quot;значення&quot;} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;елементів&quot;}`:`Занадто велике: очікується, що ${r.origin??&quot;значення&quot;} буде ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Занадто мале: очікується, що ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${r.origin} буде ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Неправильний рядок: повинен починатися з &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Неправильний рядок: повинен закінчуватися на &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Неправильний рядок: повинен містити &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Неправильне число: повинно бути кратним ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Нерозпізнаний ключ${r.keys.length&gt;1?&quot;і&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Неправильний ключ у ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Неправильні вхідні дані&quot;;case&quot;invalid_element&quot;:return`Неправильне значення у ${r.origin}`;default:return&quot;Неправильні вхідні дані&quot;}}};function dI(){return{localeError:cI()}}const fI=()=&gt;{const e={string:{unit:&quot;حروف&quot;,verb:&quot;ہونا&quot;},file:{unit:&quot;بائٹس&quot;,verb:&quot;ہونا&quot;},array:{unit:&quot;آئٹمز&quot;,verb:&quot;ہونا&quot;},set:{unit:&quot;آئٹمز&quot;,verb:&quot;ہونا&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;نمبر&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;آرے&quot;;if(r===null)return&quot;نل&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ان پٹ&quot;,email:&quot;ای میل ایڈریس&quot;,url:&quot;یو آر ایل&quot;,emoji:&quot;ایموجی&quot;,uuid:&quot;یو یو آئی ڈی&quot;,uuidv4:&quot;یو یو آئی ڈی وی 4&quot;,uuidv6:&quot;یو یو آئی ڈی وی 6&quot;,nanoid:&quot;نینو آئی ڈی&quot;,guid:&quot;جی یو آئی ڈی&quot;,cuid:&quot;سی یو آئی ڈی&quot;,cuid2:&quot;سی یو آئی ڈی 2&quot;,ulid:&quot;یو ایل آئی ڈی&quot;,xid:&quot;ایکس آئی ڈی&quot;,ksuid:&quot;کے ایس یو آئی ڈی&quot;,datetime:&quot;آئی ایس او ڈیٹ ٹائم&quot;,date:&quot;آئی ایس او تاریخ&quot;,time:&quot;آئی ایس او وقت&quot;,duration:&quot;آئی ایس او مدت&quot;,ipv4:&quot;آئی پی وی 4 ایڈریس&quot;,ipv6:&quot;آئی پی وی 6 ایڈریس&quot;,cidrv4:&quot;آئی پی وی 4 رینج&quot;,cidrv6:&quot;آئی پی وی 6 رینج&quot;,base64:&quot;بیس 64 ان کوڈڈ سٹرنگ&quot;,base64url:&quot;بیس 64 یو آر ایل ان کوڈڈ سٹرنگ&quot;,json_string:&quot;جے ایس او این سٹرنگ&quot;,e164:&quot;ای 164 نمبر&quot;,jwt:&quot;جے ڈبلیو ٹی&quot;,template_literal:&quot;ان پٹ&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`غلط ان پٹ: ${r.expected} متوقع تھا، ${n(r.input)} موصول ہوا`;case&quot;invalid_value&quot;:return r.values.length===1?`غلط ان پٹ: ${ne(r.values[0])} متوقع تھا`:`غلط آپشن: ${Z(r.values,&quot;|&quot;)} میں سے ایک متوقع تھا`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`بہت بڑا: ${r.origin??&quot;ویلیو&quot;} کے ${o}${r.maximum.toString()} ${a.unit??&quot;عناصر&quot;} ہونے متوقع تھے`:`بہت بڑا: ${r.origin??&quot;ویلیو&quot;} کا ${o}${r.maximum.toString()} ہونا متوقع تھا`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`بہت چھوٹا: ${r.origin} کے ${o}${r.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${r.origin} کا ${o}${r.minimum.toString()} ہونا متوقع تھا`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`غلط سٹرنگ: &quot;${o.prefix}&quot; سے شروع ہونا چاہیے`:o.format===&quot;ends_with&quot;?`غلط سٹرنگ: &quot;${o.suffix}&quot; پر ختم ہونا چاہیے`:o.format===&quot;includes&quot;?`غلط سٹرنگ: &quot;${o.includes}&quot; شامل ہونا چاہیے`:o.format===&quot;regex&quot;?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case&quot;unrecognized_keys&quot;:return`غیر تسلیم شدہ کی${r.keys.length&gt;1?&quot;ز&quot;:&quot;&quot;}: ${Z(r.keys,&quot;، &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} میں غلط کی`;case&quot;invalid_union&quot;:return&quot;غلط ان پٹ&quot;;case&quot;invalid_element&quot;:return`${r.origin} میں غلط ویلیو`;default:return&quot;غلط ان پٹ&quot;}}};function mI(){return{localeError:fI()}}const pI=()=&gt;{const e={string:{unit:&quot;ký tự&quot;,verb:&quot;có&quot;},file:{unit:&quot;byte&quot;,verb:&quot;có&quot;},array:{unit:&quot;phần tử&quot;,verb:&quot;có&quot;},set:{unit:&quot;phần tử&quot;,verb:&quot;có&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;số&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;mảng&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;đầu vào&quot;,email:&quot;địa chỉ email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ngày giờ ISO&quot;,date:&quot;ngày ISO&quot;,time:&quot;giờ ISO&quot;,duration:&quot;khoảng thời gian ISO&quot;,ipv4:&quot;địa chỉ IPv4&quot;,ipv6:&quot;địa chỉ IPv6&quot;,cidrv4:&quot;dải IPv4&quot;,cidrv6:&quot;dải IPv6&quot;,base64:&quot;chuỗi mã hóa base64&quot;,base64url:&quot;chuỗi mã hóa base64url&quot;,json_string:&quot;chuỗi JSON&quot;,e164:&quot;số E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;đầu vào&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Đầu vào không hợp lệ: mong đợi ${r.expected}, nhận được ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Đầu vào không hợp lệ: mong đợi ${ne(r.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Quá lớn: mong đợi ${r.origin??&quot;giá trị&quot;} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;phần tử&quot;}`:`Quá lớn: mong đợi ${r.origin??&quot;giá trị&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Quá nhỏ: mong đợi ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Chuỗi không hợp lệ: phải bắt đầu bằng &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Chuỗi không hợp lệ: phải kết thúc bằng &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Chuỗi không hợp lệ: phải bao gồm &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${i[o.format]??r.format} không hợp lệ`}case&quot;not_multiple_of&quot;:return`Số không hợp lệ: phải là bội số của ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Khóa không được nhận dạng: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Khóa không hợp lệ trong ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Đầu vào không hợp lệ&quot;;case&quot;invalid_element&quot;:return`Giá trị không hợp lệ trong ${r.origin}`;default:return&quot;Đầu vào không hợp lệ&quot;}}};function hI(){return{localeError:pI()}}const vI=()=&gt;{const e={string:{unit:&quot;字符&quot;,verb:&quot;包含&quot;},file:{unit:&quot;字节&quot;,verb:&quot;包含&quot;},array:{unit:&quot;项&quot;,verb:&quot;包含&quot;},set:{unit:&quot;项&quot;,verb:&quot;包含&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;非数字(NaN)&quot;:&quot;数字&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;数组&quot;;if(r===null)return&quot;空值(null)&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;输入&quot;,email:&quot;电子邮件&quot;,url:&quot;URL&quot;,emoji:&quot;表情符号&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO日期时间&quot;,date:&quot;ISO日期&quot;,time:&quot;ISO时间&quot;,duration:&quot;ISO时长&quot;,ipv4:&quot;IPv4地址&quot;,ipv6:&quot;IPv6地址&quot;,cidrv4:&quot;IPv4网段&quot;,cidrv6:&quot;IPv6网段&quot;,base64:&quot;base64编码字符串&quot;,base64url:&quot;base64url编码字符串&quot;,json_string:&quot;JSON字符串&quot;,e164:&quot;E.164号码&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;输入&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`无效输入：期望 ${r.expected}，实际接收 ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`无效输入：期望 ${ne(r.values[0])}`:`无效选项：期望以下之一 ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`数值过大：期望 ${r.origin??&quot;值&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;个元素&quot;}`:`数值过大：期望 ${r.origin??&quot;值&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`数值过小：期望 ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`数值过小：期望 ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`无效字符串：必须以 &quot;${o.prefix}&quot; 开头`:o.format===&quot;ends_with&quot;?`无效字符串：必须以 &quot;${o.suffix}&quot; 结尾`:o.format===&quot;includes&quot;?`无效字符串：必须包含 &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`无效字符串：必须满足正则表达式 ${o.pattern}`:`无效${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`无效数字：必须是 ${r.divisor} 的倍数`;case&quot;unrecognized_keys&quot;:return`出现未知的键(key): ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} 中的键(key)无效`;case&quot;invalid_union&quot;:return&quot;无效输入&quot;;case&quot;invalid_element&quot;:return`${r.origin} 中包含无效值(value)`;default:return&quot;无效输入&quot;}}};function gI(){return{localeError:vI()}}const yI=()=&gt;{const e={string:{unit:&quot;字元&quot;,verb:&quot;擁有&quot;},file:{unit:&quot;位元組&quot;,verb:&quot;擁有&quot;},array:{unit:&quot;項目&quot;,verb:&quot;擁有&quot;},set:{unit:&quot;項目&quot;,verb:&quot;擁有&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;輸入&quot;,email:&quot;郵件地址&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO 日期時間&quot;,date:&quot;ISO 日期&quot;,time:&quot;ISO 時間&quot;,duration:&quot;ISO 期間&quot;,ipv4:&quot;IPv4 位址&quot;,ipv6:&quot;IPv6 位址&quot;,cidrv4:&quot;IPv4 範圍&quot;,cidrv6:&quot;IPv6 範圍&quot;,base64:&quot;base64 編碼字串&quot;,base64url:&quot;base64url 編碼字串&quot;,json_string:&quot;JSON 字串&quot;,e164:&quot;E.164 數值&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;輸入&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`無效的輸入值：預期為 ${r.expected}，但收到 ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`無效的輸入值：預期為 ${ne(r.values[0])}`:`無效的選項：預期為以下其中之一 ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`數值過大：預期 ${r.origin??&quot;值&quot;} 應為 ${o}${r.maximum.toString()} ${a.unit??&quot;個元素&quot;}`:`數值過大：預期 ${r.origin??&quot;值&quot;} 應為 ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`數值過小：預期 ${r.origin} 應為 ${o}${r.minimum.toString()} ${a.unit}`:`數值過小：預期 ${r.origin} 應為 ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`無效的字串：必須以 &quot;${o.prefix}&quot; 開頭`:o.format===&quot;ends_with&quot;?`無效的字串：必須以 &quot;${o.suffix}&quot; 結尾`:o.format===&quot;includes&quot;?`無效的字串：必須包含 &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`無效的字串：必須符合格式 ${o.pattern}`:`無效的 ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`無效的數字：必須為 ${r.divisor} 的倍數`;case&quot;unrecognized_keys&quot;:return`無法識別的鍵值${r.keys.length&gt;1?&quot;們&quot;:&quot;&quot;}：${Z(r.keys,&quot;、&quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} 中有無效的鍵值`;case&quot;invalid_union&quot;:return&quot;無效的輸入值&quot;;case&quot;invalid_element&quot;:return`${r.origin} 中有無效的值`;default:return&quot;無效的輸入值&quot;}}};function _I(){return{localeError:yI()}}const N0=Object.freeze(Object.defineProperty({__proto__:null,ar:Gx,az:Xx,be:qx,ca:tb,cs:rb,de:ob,en:E0,eo:cb,es:fb,fa:pb,fi:vb,fr:yb,frCA:wb,he:kb,hu:xb,id:Ib,it:Ob,ja:Nb,kh:Tb,ko:Ub,mk:Ab,ms:Rb,nl:Lb,no:Fb,ota:Vb,pl:Hb,ps:Jb,pt:Qb,ru:Yb,sl:eI,sv:nI,ta:iI,th:aI,tr:lI,ua:dI,ur:mI,vi:hI,zhCN:gI,zhTW:_I},Symbol.toStringTag,{value:&quot;Module&quot;})),j0=Symbol(&quot;ZodOutput&quot;),T0=Symbol(&quot;ZodInput&quot;);class Gd{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const i=n[0];if(this._map.set(t,i),i&amp;&amp;typeof i==&quot;object&quot;&amp;&amp;&quot;id&quot;in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&amp;&amp;typeof n==&quot;object&quot;&amp;&amp;&quot;id&quot;in n&amp;&amp;this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function Qd(){return new Gd}const sr=Qd();function P0(e,t){return new e({type:&quot;string&quot;,...O(t)})}function U0(e,t){return new e({type:&quot;string&quot;,coerce:!0,...O(t)})}function Xd(e,t){return new e({type:&quot;string&quot;,format:&quot;email&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function xu(e,t){return new e({type:&quot;string&quot;,format:&quot;guid&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function Yd(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function qd(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v4&quot;,...O(t)})}function ef(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v6&quot;,...O(t)})}function tf(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v7&quot;,...O(t)})}function nf(e,t){return new e({type:&quot;string&quot;,format:&quot;url&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function rf(e,t){return new e({type:&quot;string&quot;,format:&quot;emoji&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function of(e,t){return new e({type:&quot;string&quot;,format:&quot;nanoid&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function af(e,t){return new e({type:&quot;string&quot;,format:&quot;cuid&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function uf(e,t){return new e({type:&quot;string&quot;,format:&quot;cuid2&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function sf(e,t){return new e({type:&quot;string&quot;,format:&quot;ulid&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function lf(e,t){return new e({type:&quot;string&quot;,format:&quot;xid&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function cf(e,t){return new e({type:&quot;string&quot;,format:&quot;ksuid&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function df(e,t){return new e({type:&quot;string&quot;,format:&quot;ipv4&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function ff(e,t){return new e({type:&quot;string&quot;,format:&quot;ipv6&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function mf(e,t){return new e({type:&quot;string&quot;,format:&quot;cidrv4&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function pf(e,t){return new e({type:&quot;string&quot;,format:&quot;cidrv6&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function hf(e,t){return new e({type:&quot;string&quot;,format:&quot;base64&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function vf(e,t){return new e({type:&quot;string&quot;,format:&quot;base64url&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function gf(e,t){return new e({type:&quot;string&quot;,format:&quot;e164&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}function yf(e,t){return new e({type:&quot;string&quot;,format:&quot;jwt&quot;,check:&quot;string_format&quot;,abort:!1,...O(t)})}const C0={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function A0(e,t){return new e({type:&quot;string&quot;,format:&quot;datetime&quot;,check:&quot;string_format&quot;,offset:!1,local:!1,precision:null,...O(t)})}function D0(e,t){return new e({type:&quot;string&quot;,format:&quot;date&quot;,check:&quot;string_format&quot;,...O(t)})}function R0(e,t){return new e({type:&quot;string&quot;,format:&quot;time&quot;,check:&quot;string_format&quot;,precision:null,...O(t)})}function Z0(e,t){return new e({type:&quot;string&quot;,format:&quot;duration&quot;,check:&quot;string_format&quot;,...O(t)})}function L0(e,t){return new e({type:&quot;number&quot;,checks:[],...O(t)})}function M0(e,t){return new e({type:&quot;number&quot;,coerce:!0,checks:[],...O(t)})}function F0(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;safeint&quot;,...O(t)})}function B0(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;float32&quot;,...O(t)})}function V0(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;float64&quot;,...O(t)})}function W0(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;int32&quot;,...O(t)})}function J0(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;uint32&quot;,...O(t)})}function K0(e,t){return new e({type:&quot;boolean&quot;,...O(t)})}function H0(e,t){return new e({type:&quot;boolean&quot;,coerce:!0,...O(t)})}function G0(e,t){return new e({type:&quot;bigint&quot;,...O(t)})}function Q0(e,t){return new e({type:&quot;bigint&quot;,coerce:!0,...O(t)})}function X0(e,t){return new e({type:&quot;bigint&quot;,check:&quot;bigint_format&quot;,abort:!1,format:&quot;int64&quot;,...O(t)})}function Y0(e,t){return new e({type:&quot;bigint&quot;,check:&quot;bigint_format&quot;,abort:!1,format:&quot;uint64&quot;,...O(t)})}function q0(e,t){return new e({type:&quot;symbol&quot;,...O(t)})}function ew(e,t){return new e({type:&quot;undefined&quot;,...O(t)})}function tw(e,t){return new e({type:&quot;null&quot;,...O(t)})}function nw(e){return new e({type:&quot;any&quot;})}function bu(e){return new e({type:&quot;unknown&quot;})}function rw(e,t){return new e({type:&quot;never&quot;,...O(t)})}function iw(e,t){return new e({type:&quot;void&quot;,...O(t)})}function ow(e,t){return new e({type:&quot;date&quot;,...O(t)})}function aw(e,t){return new e({type:&quot;date&quot;,coerce:!0,...O(t)})}function uw(e,t){return new e({type:&quot;nan&quot;,...O(t)})}function br(e,t){return new Zd({check:&quot;less_than&quot;,...O(t),value:e,inclusive:!1})}function Vt(e,t){return new Zd({check:&quot;less_than&quot;,...O(t),value:e,inclusive:!0})}function Ir(e,t){return new Ld({check:&quot;greater_than&quot;,...O(t),value:e,inclusive:!1})}function vt(e,t){return new Ld({check:&quot;greater_than&quot;,...O(t),value:e,inclusive:!0})}function sw(e){return Ir(0,e)}function lw(e){return br(0,e)}function cw(e){return Vt(0,e)}function dw(e){return vt(0,e)}function Do(e,t){return new a_({check:&quot;multiple_of&quot;,...O(t),value:e})}function ns(e,t){return new l_({check:&quot;max_size&quot;,...O(t),maximum:e})}function Ro(e,t){return new c_({check:&quot;min_size&quot;,...O(t),minimum:e})}function _f(e,t){return new d_({check:&quot;size_equals&quot;,...O(t),size:e})}function rs(e,t){return new f_({check:&quot;max_length&quot;,...O(t),maximum:e})}function Oi(e,t){return new m_({check:&quot;min_length&quot;,...O(t),minimum:e})}function is(e,t){return new p_({check:&quot;length_equals&quot;,...O(t),length:e})}function wf(e,t){return new h_({check:&quot;string_format&quot;,format:&quot;regex&quot;,...O(t),pattern:e})}function $f(e){return new v_({check:&quot;string_format&quot;,format:&quot;lowercase&quot;,...O(e)})}function kf(e){return new g_({check:&quot;string_format&quot;,format:&quot;uppercase&quot;,...O(e)})}function Sf(e,t){return new y_({check:&quot;string_format&quot;,format:&quot;includes&quot;,...O(t),includes:e})}function xf(e,t){return new __({check:&quot;string_format&quot;,format:&quot;starts_with&quot;,...O(t),prefix:e})}function bf(e,t){return new w_({check:&quot;string_format&quot;,format:&quot;ends_with&quot;,...O(t),suffix:e})}function fw(e,t,n){return new $_({check:&quot;property&quot;,property:e,schema:t,...O(n)})}function If(e,t){return new k_({check:&quot;mime_type&quot;,mime:e,...O(t)})}function jr(e){return new S_({check:&quot;overwrite&quot;,tx:e})}function zf(e){return jr(t=&gt;t.normalize(e))}function Of(){return jr(e=&gt;e.trim())}function Ef(){return jr(e=&gt;e.toLowerCase())}function Nf(){return jr(e=&gt;e.toUpperCase())}function jf(e,t,n){return new e({type:&quot;array&quot;,element:t,...O(n)})}function wI(e,t,n){return new e({type:&quot;union&quot;,options:t,...O(n)})}function $I(e,t,n,i){return new e({type:&quot;union&quot;,options:n,discriminator:t,...O(i)})}function kI(e,t,n){return new e({type:&quot;intersection&quot;,left:t,right:n})}function mw(e,t,n,i){const r=n instanceof ee,o=r?i:n,a=r?n:null;return new e({type:&quot;tuple&quot;,items:t,rest:a,...O(o)})}function SI(e,t,n,i){return new e({type:&quot;record&quot;,keyType:t,valueType:n,...O(i)})}function xI(e,t,n,i){return new e({type:&quot;map&quot;,keyType:t,valueType:n,...O(i)})}function bI(e,t,n){return new e({type:&quot;set&quot;,valueType:t,...O(n)})}function II(e,t,n){const i=Array.isArray(t)?Object.fromEntries(t.map(r=&gt;[r,r])):t;return new e({type:&quot;enum&quot;,entries:i,...O(n)})}function zI(e,t,n){return new e({type:&quot;enum&quot;,entries:t,...O(n)})}function OI(e,t,n){return new e({type:&quot;literal&quot;,values:Array.isArray(t)?t:[t],...O(n)})}function pw(e,t){return new e({type:&quot;file&quot;,...O(t)})}function EI(e,t){return new e({type:&quot;transform&quot;,transform:t})}function NI(e,t){return new e({type:&quot;optional&quot;,innerType:t})}function jI(e,t){return new e({type:&quot;nullable&quot;,innerType:t})}function TI(e,t,n){return new e({type:&quot;default&quot;,innerType:t,get defaultValue(){return typeof n==&quot;function&quot;?n():n}})}function PI(e,t,n){return new e({type:&quot;nonoptional&quot;,innerType:t,...O(n)})}function UI(e,t){return new e({type:&quot;success&quot;,innerType:t})}function CI(e,t,n){return new e({type:&quot;catch&quot;,innerType:t,catchValue:typeof n==&quot;function&quot;?n:()=&gt;n})}function AI(e,t,n){return new e({type:&quot;pipe&quot;,in:t,out:n})}function DI(e,t){return new e({type:&quot;readonly&quot;,innerType:t})}function RI(e,t,n){return new e({type:&quot;template_literal&quot;,parts:t,...O(n)})}function ZI(e,t){return new e({type:&quot;lazy&quot;,getter:t})}function LI(e,t){return new e({type:&quot;promise&quot;,innerType:t})}function hw(e,t,n){const i=O(n);return i.abort??(i.abort=!0),new e({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:t,...i})}function vw(e,t,n){return new e({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:t,...O(n)})}function gw(e,t){const n=O(t);let i=n.truthy??[&quot;true&quot;,&quot;1&quot;,&quot;yes&quot;,&quot;on&quot;,&quot;y&quot;,&quot;enabled&quot;],r=n.falsy??[&quot;false&quot;,&quot;0&quot;,&quot;no&quot;,&quot;off&quot;,&quot;n&quot;,&quot;disabled&quot;];n.case!==&quot;sensitive&quot;&amp;&amp;(i=i.map($=&gt;typeof $==&quot;string&quot;?$.toLowerCase():$),r=r.map($=&gt;typeof $==&quot;string&quot;?$.toLowerCase():$));const o=new Set(i),a=new Set(r),u=e.Pipe??Hd,s=e.Boolean??Bd,l=e.String??qo,m=e.Transform??Kd,p=new m({type:&quot;transform&quot;,transform:($,E)=&gt;{let N=$;return n.case!==&quot;sensitive&quot;&amp;&amp;(N=N.toLowerCase()),o.has(N)?!0:a.has(N)?!1:(E.issues.push({code:&quot;invalid_value&quot;,expected:&quot;stringbool&quot;,values:[...o,...a],input:E.value,inst:p}),{})},error:n.error}),v=new u({type:&quot;pipe&quot;,in:new l({type:&quot;string&quot;,error:n.error}),out:p,error:n.error});return new u({type:&quot;pipe&quot;,in:v,out:new s({type:&quot;boolean&quot;,error:n.error}),error:n.error})}function yw(e,t,n,i={}){const r=O(i),o={...O(i),check:&quot;string_format&quot;,type:&quot;string&quot;,format:t,fn:typeof n==&quot;function&quot;?n:u=&gt;n.test(u),...r};return n instanceof RegExp&amp;&amp;(o.pattern=n),new e(o)}class _w{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!=&quot;function&quot;)throw new Error(&quot;implement() must be called with a function&quot;);const n=(...i)=&gt;{const r=this._def.input?cc(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error(&quot;Invalid arguments schema: not an array or tuple schema.&quot;);const o=t(...r);return this._def.output?cc(this._def.output,o,void 0,{callee:n}):o};return n}implementAsync(t){if(typeof t!=&quot;function&quot;)throw new Error(&quot;implement() must be called with a function&quot;);const n=async(...i)=&gt;{const r=this._def.input?await dc(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error(&quot;Invalid arguments schema: not an array or tuple schema.&quot;);const o=await t(...r);return this._def.output?dc(this._def.output,o,void 0,{callee:n}):o};return n}input(...t){const n=this.constructor;return Array.isArray(t[0])?new n({type:&quot;function&quot;,input:new ts({type:&quot;tuple&quot;,items:t[0],rest:t[1]}),output:this._def.output}):new n({type:&quot;function&quot;,input:t[0],output:this._def.output})}output(t){const n=this.constructor;return new n({type:&quot;function&quot;,input:this._def.input,output:t})}}function ww(e){return new _w({type:&quot;function&quot;,input:Array.isArray(e==null?void 0:e.input)?mw(ts,e==null?void 0:e.input):(e==null?void 0:e.input)??jf(Wd,bu(Su)),output:(e==null?void 0:e.output)??bu(Su)})}class mc{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??sr,this.target=(t==null?void 0:t.target)??&quot;draft-2020-12&quot;,this.unrepresentable=(t==null?void 0:t.unrepresentable)??&quot;throw&quot;,this.override=(t==null?void 0:t.override)??(()=&gt;{}),this.io=(t==null?void 0:t.io)??&quot;output&quot;,this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var p,v,_;var i;const r=t._zod.def,o={guid:&quot;uuid&quot;,url:&quot;uri&quot;,datetime:&quot;date-time&quot;,json_string:&quot;json-string&quot;,regex:&quot;&quot;},a=this.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&amp;&amp;(a.cycle=n.path),a.schema;const u={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(t,u);const s=(v=(p=t._zod).toJSONSchema)==null?void 0:v.call(p);if(s)u.schema=s;else{const $={...n,schemaPath:[...n.schemaPath,t],path:n.path},E=t._zod.parent;if(E)u.ref=E,this.process(E,$),this.seen.get(E).isParent=!0;else{const N=u.schema;switch(r.type){case&quot;string&quot;:{const c=N;c.type=&quot;string&quot;;const{minimum:d,maximum:f,format:k,patterns:I,contentEncoding:P}=t._zod.bag;if(typeof d==&quot;number&quot;&amp;&amp;(c.minLength=d),typeof f==&quot;number&quot;&amp;&amp;(c.maxLength=f),k&amp;&amp;(c.format=o[k]??k,c.format===&quot;&quot;&amp;&amp;delete c.format),P&amp;&amp;(c.contentEncoding=P),I&amp;&amp;I.size&gt;0){const L=[...I];L.length===1?c.pattern=L[0].source:L.length&gt;1&amp;&amp;(u.schema.allOf=[...L.map(F=&gt;({...this.target===&quot;draft-7&quot;?{type:&quot;string&quot;}:{},pattern:F.source}))])}break}case&quot;number&quot;:{const c=N,{minimum:d,maximum:f,format:k,multipleOf:I,exclusiveMaximum:P,exclusiveMinimum:L}=t._zod.bag;typeof k==&quot;string&quot;&amp;&amp;k.includes(&quot;int&quot;)?c.type=&quot;integer&quot;:c.type=&quot;number&quot;,typeof L==&quot;number&quot;&amp;&amp;(c.exclusiveMinimum=L),typeof d==&quot;number&quot;&amp;&amp;(c.minimum=d,typeof L==&quot;number&quot;&amp;&amp;(L&gt;=d?delete c.minimum:delete c.exclusiveMinimum)),typeof P==&quot;number&quot;&amp;&amp;(c.exclusiveMaximum=P),typeof f==&quot;number&quot;&amp;&amp;(c.maximum=f,typeof P==&quot;number&quot;&amp;&amp;(P&lt;=f?delete c.maximum:delete c.exclusiveMaximum)),typeof I==&quot;number&quot;&amp;&amp;(c.multipleOf=I);break}case&quot;boolean&quot;:{const c=N;c.type=&quot;boolean&quot;;break}case&quot;bigint&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;BigInt cannot be represented in JSON Schema&quot;);break}case&quot;symbol&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Symbols cannot be represented in JSON Schema&quot;);break}case&quot;null&quot;:{N.type=&quot;null&quot;;break}case&quot;any&quot;:break;case&quot;unknown&quot;:break;case&quot;undefined&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Undefined cannot be represented in JSON Schema&quot;);break}case&quot;void&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Void cannot be represented in JSON Schema&quot;);break}case&quot;never&quot;:{N.not={};break}case&quot;date&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Date cannot be represented in JSON Schema&quot;);break}case&quot;array&quot;:{const c=N,{minimum:d,maximum:f}=t._zod.bag;typeof d==&quot;number&quot;&amp;&amp;(c.minItems=d),typeof f==&quot;number&quot;&amp;&amp;(c.maxItems=f),c.type=&quot;array&quot;,c.items=this.process(r.element,{...$,path:[...$.path,&quot;items&quot;]});break}case&quot;object&quot;:{const c=N;c.type=&quot;object&quot;,c.properties={};const d=r.shape;for(const I in d)c.properties[I]=this.process(d[I],{...$,path:[...$.path,&quot;properties&quot;,I]});const f=new Set(Object.keys(d)),k=new Set([...f].filter(I=&gt;{const P=r.shape[I]._zod;return this.io===&quot;input&quot;?P.optin===void 0:P.optout===void 0}));k.size&gt;0&amp;&amp;(c.required=Array.from(k)),((_=r.catchall)==null?void 0:_._zod.def.type)===&quot;never&quot;?c.additionalProperties=!1:r.catchall?r.catchall&amp;&amp;(c.additionalProperties=this.process(r.catchall,{...$,path:[...$.path,&quot;additionalProperties&quot;]})):this.io===&quot;output&quot;&amp;&amp;(c.additionalProperties=!1);break}case&quot;union&quot;:{const c=N;c.anyOf=r.options.map((d,f)=&gt;this.process(d,{...$,path:[...$.path,&quot;anyOf&quot;,f]}));break}case&quot;intersection&quot;:{const c=N,d=this.process(r.left,{...$,path:[...$.path,&quot;allOf&quot;,0]}),f=this.process(r.right,{...$,path:[...$.path,&quot;allOf&quot;,1]}),k=P=&gt;&quot;allOf&quot;in P&amp;&amp;Object.keys(P).length===1,I=[...k(d)?d.allOf:[d],...k(f)?f.allOf:[f]];c.allOf=I;break}case&quot;tuple&quot;:{const c=N;c.type=&quot;array&quot;;const d=r.items.map((I,P)=&gt;this.process(I,{...$,path:[...$.path,&quot;prefixItems&quot;,P]}));if(this.target===&quot;draft-2020-12&quot;?c.prefixItems=d:c.items=d,r.rest){const I=this.process(r.rest,{...$,path:[...$.path,&quot;items&quot;]});this.target===&quot;draft-2020-12&quot;?c.items=I:c.additionalItems=I}r.rest&amp;&amp;(c.items=this.process(r.rest,{...$,path:[...$.path,&quot;items&quot;]}));const{minimum:f,maximum:k}=t._zod.bag;typeof f==&quot;number&quot;&amp;&amp;(c.minItems=f),typeof k==&quot;number&quot;&amp;&amp;(c.maxItems=k);break}case&quot;record&quot;:{const c=N;c.type=&quot;object&quot;,c.propertyNames=this.process(r.keyType,{...$,path:[...$.path,&quot;propertyNames&quot;]}),c.additionalProperties=this.process(r.valueType,{...$,path:[...$.path,&quot;additionalProperties&quot;]});break}case&quot;map&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Map cannot be represented in JSON Schema&quot;);break}case&quot;set&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Set cannot be represented in JSON Schema&quot;);break}case&quot;enum&quot;:{const c=N,d=Ed(r.entries);d.every(f=&gt;typeof f==&quot;number&quot;)&amp;&amp;(c.type=&quot;number&quot;),d.every(f=&gt;typeof f==&quot;string&quot;)&amp;&amp;(c.type=&quot;string&quot;),c.enum=d;break}case&quot;literal&quot;:{const c=N,d=[];for(const f of r.values)if(f===void 0){if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Literal `undefined` cannot be represented in JSON Schema&quot;)}else if(typeof f==&quot;bigint&quot;){if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;BigInt literals cannot be represented in JSON Schema&quot;);d.push(Number(f))}else d.push(f);if(d.length!==0)if(d.length===1){const f=d[0];c.type=f===null?&quot;null&quot;:typeof f,c.const=f}else d.every(f=&gt;typeof f==&quot;number&quot;)&amp;&amp;(c.type=&quot;number&quot;),d.every(f=&gt;typeof f==&quot;string&quot;)&amp;&amp;(c.type=&quot;string&quot;),d.every(f=&gt;typeof f==&quot;boolean&quot;)&amp;&amp;(c.type=&quot;string&quot;),d.every(f=&gt;f===null)&amp;&amp;(c.type=&quot;null&quot;),c.enum=d;break}case&quot;file&quot;:{const c=N,d={type:&quot;string&quot;,format:&quot;binary&quot;,contentEncoding:&quot;binary&quot;},{minimum:f,maximum:k,mime:I}=t._zod.bag;f!==void 0&amp;&amp;(d.minLength=f),k!==void 0&amp;&amp;(d.maxLength=k),I?I.length===1?(d.contentMediaType=I[0],Object.assign(c,d)):c.anyOf=I.map(P=&gt;({...d,contentMediaType:P})):Object.assign(c,d);break}case&quot;transform&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Transforms cannot be represented in JSON Schema&quot;);break}case&quot;nullable&quot;:{const c=this.process(r.innerType,$);N.anyOf=[c,{type:&quot;null&quot;}];break}case&quot;nonoptional&quot;:{this.process(r.innerType,$),u.ref=r.innerType;break}case&quot;success&quot;:{const c=N;c.type=&quot;boolean&quot;;break}case&quot;default&quot;:{this.process(r.innerType,$),u.ref=r.innerType,N.default=JSON.parse(JSON.stringify(r.defaultValue));break}case&quot;prefault&quot;:{this.process(r.innerType,$),u.ref=r.innerType,this.io===&quot;input&quot;&amp;&amp;(N._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case&quot;catch&quot;:{this.process(r.innerType,$),u.ref=r.innerType;let c;try{c=r.catchValue(void 0)}catch{throw new Error(&quot;Dynamic catch values are not supported in JSON Schema&quot;)}N.default=c;break}case&quot;nan&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;NaN cannot be represented in JSON Schema&quot;);break}case&quot;template_literal&quot;:{const c=N,d=t._zod.pattern;if(!d)throw new Error(&quot;Pattern not found in template literal&quot;);c.type=&quot;string&quot;,c.pattern=d.source;break}case&quot;pipe&quot;:{const c=this.io===&quot;input&quot;?r.in._zod.def.type===&quot;transform&quot;?r.out:r.in:r.out;this.process(c,$),u.ref=c;break}case&quot;readonly&quot;:{this.process(r.innerType,$),u.ref=r.innerType,N.readOnly=!0;break}case&quot;promise&quot;:{this.process(r.innerType,$),u.ref=r.innerType;break}case&quot;optional&quot;:{this.process(r.innerType,$),u.ref=r.innerType;break}case&quot;lazy&quot;:{const c=t._zod.innerType;this.process(c,$),u.ref=c;break}case&quot;custom&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Custom types cannot be represented in JSON Schema&quot;);break}}}}const l=this.metadataRegistry.get(t);return l&amp;&amp;Object.assign(u.schema,l),this.io===&quot;input&quot;&amp;&amp;Ae(t)&amp;&amp;(delete u.schema.examples,delete u.schema.default),this.io===&quot;input&quot;&amp;&amp;u.schema._prefault&amp;&amp;((i=u.schema).default??(i.default=u.schema._prefault)),delete u.schema._prefault,this.seen.get(t).schema}emit(t,n){var m,p,v,_,$,E;const i={cycles:(n==null?void 0:n.cycles)??&quot;ref&quot;,reused:(n==null?void 0:n.reused)??&quot;inline&quot;,external:(n==null?void 0:n.external)??void 0},r=this.seen.get(t);if(!r)throw new Error(&quot;Unprocessed schema. This is a bug in Zod.&quot;);const o=N=&gt;{var I;const c=this.target===&quot;draft-2020-12&quot;?&quot;$defs&quot;:&quot;definitions&quot;;if(i.external){const P=(I=i.external.registry.get(N[0]))==null?void 0:I.id,L=i.external.uri??(ve=&gt;ve);if(P)return{ref:L(P)};const F=N[1].defId??N[1].schema.id??`schema${this.counter++}`;return N[1].defId=F,{defId:F,ref:`${L(&quot;__shared&quot;)}#/${c}/${F}`}}if(N[1]===r)return{ref:&quot;#&quot;};const f=`#/${c}/`,k=N[1].schema.id??`__schema${this.counter++}`;return{defId:k,ref:f+k}},a=N=&gt;{if(N[1].schema.$ref)return;const c=N[1],{ref:d,defId:f}=o(N);c.def={...c.schema},f&amp;&amp;(c.defId=f);const k=c.schema;for(const I in k)delete k[I];k.$ref=d};if(i.cycles===&quot;throw&quot;)for(const N of this.seen.entries()){const c=N[1];if(c.cycle)throw new Error(`Cycle detected: #/${(m=c.cycle)==null?void 0:m.join(&quot;/&quot;)}/&lt;root&gt;

Set the \`cycles\` parameter to \`&quot;ref&quot;\` to resolve cyclical schemas with defs.`)}for(const N of this.seen.entries()){const c=N[1];if(t===N[0]){a(N);continue}if(i.external){const f=(p=i.external.registry.get(N[0]))==null?void 0:p.id;if(t!==N[0]&amp;&amp;f){a(N);continue}}if((v=this.metadataRegistry.get(N[0]))==null?void 0:v.id){a(N);continue}if(c.cycle){a(N);continue}if(c.count&gt;1&amp;&amp;i.reused===&quot;ref&quot;){a(N);continue}}const u=(N,c)=&gt;{const d=this.seen.get(N),f=d.def??d.schema,k={...f};if(d.ref===null)return;const I=d.ref;if(d.ref=null,I){u(I,c);const P=this.seen.get(I).schema;P.$ref&amp;&amp;c.target===&quot;draft-7&quot;?(f.allOf=f.allOf??[],f.allOf.push(P)):(Object.assign(f,P),Object.assign(f,k))}d.isParent||this.override({zodSchema:N,jsonSchema:f,path:d.path??[]})};for(const N of[...this.seen.entries()].reverse())u(N[0],{target:this.target});const s={};if(this.target===&quot;draft-2020-12&quot;?s.$schema=&quot;https://json-schema.org/draft/2020-12/schema&quot;:this.target===&quot;draft-7&quot;?s.$schema=&quot;http://json-schema.org/draft-07/schema#&quot;:console.warn(`Invalid target: ${this.target}`),(_=i.external)!=null&amp;&amp;_.uri){const N=($=i.external.registry.get(t))==null?void 0:$.id;if(!N)throw new Error(&quot;Schema is missing an `id` property&quot;);s.$id=i.external.uri(N)}Object.assign(s,r.def);const l=((E=i.external)==null?void 0:E.defs)??{};for(const N of this.seen.entries()){const c=N[1];c.def&amp;&amp;c.defId&amp;&amp;(l[c.defId]=c.def)}i.external||Object.keys(l).length&gt;0&amp;&amp;(this.target===&quot;draft-2020-12&quot;?s.$defs=l:s.definitions=l);try{return JSON.parse(JSON.stringify(s))}catch{throw new Error(&quot;Error converting schema to JSON.&quot;)}}}function $w(e,t){if(e instanceof Gd){const i=new mc(t),r={};for(const u of e._idmap.entries()){const[s,l]=u;i.process(l)}const o={},a={registry:e,uri:t==null?void 0:t.uri,defs:r};for(const u of e._idmap.entries()){const[s,l]=u;o[s]=i.emit(l,{...t,external:a})}if(Object.keys(r).length&gt;0){const u=i.target===&quot;draft-2020-12&quot;?&quot;$defs&quot;:&quot;definitions&quot;;o.__shared={[u]:r}}return{schemas:o}}const n=new mc(t);return n.process(e),n.emit(e,t)}function Ae(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;switch(r.type){case&quot;string&quot;:case&quot;number&quot;:case&quot;bigint&quot;:case&quot;boolean&quot;:case&quot;date&quot;:case&quot;symbol&quot;:case&quot;undefined&quot;:case&quot;null&quot;:case&quot;any&quot;:case&quot;unknown&quot;:case&quot;never&quot;:case&quot;void&quot;:case&quot;literal&quot;:case&quot;enum&quot;:case&quot;nan&quot;:case&quot;file&quot;:case&quot;template_literal&quot;:return!1;case&quot;array&quot;:return Ae(r.element,n);case&quot;object&quot;:{for(const o in r.shape)if(Ae(r.shape[o],n))return!0;return!1}case&quot;union&quot;:{for(const o of r.options)if(Ae(o,n))return!0;return!1}case&quot;intersection&quot;:return Ae(r.left,n)||Ae(r.right,n);case&quot;tuple&quot;:{for(const o of r.items)if(Ae(o,n))return!0;return!!(r.rest&amp;&amp;Ae(r.rest,n))}case&quot;record&quot;:return Ae(r.keyType,n)||Ae(r.valueType,n);case&quot;map&quot;:return Ae(r.keyType,n)||Ae(r.valueType,n);case&quot;set&quot;:return Ae(r.valueType,n);case&quot;promise&quot;:case&quot;optional&quot;:case&quot;nonoptional&quot;:case&quot;nullable&quot;:case&quot;readonly&quot;:return Ae(r.innerType,n);case&quot;lazy&quot;:return Ae(r.getter(),n);case&quot;default&quot;:return Ae(r.innerType,n);case&quot;prefault&quot;:return Ae(r.innerType,n);case&quot;custom&quot;:return!1;case&quot;transform&quot;:return!0;case&quot;pipe&quot;:return Ae(r.in,n)||Ae(r.out,n);case&quot;success&quot;:return!1;case&quot;catch&quot;:return!1}throw new Error(`Unknown schema type: ${r.type}`)}const MI=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:&quot;Module&quot;})),FI=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:r0,$ZodArray:Wd,$ZodAsyncError:bi,$ZodBase64:W_,$ZodBase64URL:K_,$ZodBigInt:Vd,$ZodBigIntFormat:q_,$ZodBoolean:Bd,$ZodCIDRv4:B_,$ZodCIDRv6:V_,$ZodCUID:T_,$ZodCUID2:P_,$ZodCatch:k0,$ZodCheck:Te,$ZodCheckBigIntFormat:s_,$ZodCheckEndsWith:w_,$ZodCheckGreaterThan:Ld,$ZodCheckIncludes:y_,$ZodCheckLengthEquals:p_,$ZodCheckLessThan:Zd,$ZodCheckLowerCase:v_,$ZodCheckMaxLength:f_,$ZodCheckMaxSize:l_,$ZodCheckMimeType:k_,$ZodCheckMinLength:m_,$ZodCheckMinSize:c_,$ZodCheckMultipleOf:a_,$ZodCheckNumberFormat:u_,$ZodCheckOverwrite:S_,$ZodCheckProperty:$_,$ZodCheckRegex:h_,$ZodCheckSizeEquals:d_,$ZodCheckStartsWith:__,$ZodCheckStringFormat:Yo,$ZodCheckUpperCase:g_,$ZodCustom:O0,$ZodCustomStringFormat:X_,$ZodDate:a0,$ZodDefault:y0,$ZodDiscriminatedUnion:s0,$ZodE164:H_,$ZodEmail:O_,$ZodEmoji:N_,$ZodEnum:m0,$ZodError:jd,$ZodFile:h0,$ZodFunction:_w,$ZodGUID:I_,$ZodIPv4:M_,$ZodIPv6:F_,$ZodISODate:R_,$ZodISODateTime:D_,$ZodISODuration:L_,$ZodISOTime:Z_,$ZodIntersection:l0,$ZodJWT:Q_,$ZodKSUID:A_,$ZodLazy:z0,$ZodLiteral:p0,$ZodMap:d0,$ZodNaN:S0,$ZodNanoID:j_,$ZodNever:i0,$ZodNonOptional:w0,$ZodNull:n0,$ZodNullable:g0,$ZodNumber:Fd,$ZodNumberFormat:Y_,$ZodObject:u0,$ZodOptional:v0,$ZodPipe:Hd,$ZodPrefault:_0,$ZodPromise:I0,$ZodReadonly:x0,$ZodRealError:Xo,$ZodRecord:c0,$ZodRegistry:Gd,$ZodSet:f0,$ZodString:qo,$ZodStringFormat:ye,$ZodSuccess:$0,$ZodSymbol:e0,$ZodTemplateLiteral:b0,$ZodTransform:Kd,$ZodTuple:ts,$ZodType:ee,$ZodULID:U_,$ZodURL:E_,$ZodUUID:z_,$ZodUndefined:t0,$ZodUnion:Jd,$ZodUnknown:Su,$ZodVoid:o0,$ZodXID:C_,$brand:ay,$constructor:y,$input:T0,$output:j0,Doc:x_,JSONSchema:MI,JSONSchemaGenerator:mc,NEVER:oy,TimePrecision:C0,_any:nw,_array:jf,_base64:hf,_base64url:vf,_bigint:G0,_boolean:K0,_catch:CI,_cidrv4:mf,_cidrv6:pf,_coercedBigint:Q0,_coercedBoolean:H0,_coercedDate:aw,_coercedNumber:M0,_coercedString:U0,_cuid:af,_cuid2:uf,_custom:hw,_date:ow,_default:TI,_discriminatedUnion:$I,_e164:gf,_email:Xd,_emoji:rf,_endsWith:bf,_enum:II,_file:pw,_float32:B0,_float64:V0,_gt:Ir,_gte:vt,_guid:xu,_includes:Sf,_int:F0,_int32:W0,_int64:X0,_intersection:kI,_ipv4:df,_ipv6:ff,_isoDate:D0,_isoDateTime:A0,_isoDuration:Z0,_isoTime:R0,_jwt:yf,_ksuid:cf,_lazy:ZI,_length:is,_literal:OI,_lowercase:$f,_lt:br,_lte:Vt,_map:xI,_max:Vt,_maxLength:rs,_maxSize:ns,_mime:If,_min:vt,_minLength:Oi,_minSize:Ro,_multipleOf:Do,_nan:uw,_nanoid:of,_nativeEnum:zI,_negative:lw,_never:rw,_nonnegative:dw,_nonoptional:PI,_nonpositive:cw,_normalize:zf,_null:tw,_nullable:jI,_number:L0,_optional:NI,_overwrite:jr,_parse:Ud,_parseAsync:Cd,_pipe:AI,_positive:sw,_promise:LI,_property:fw,_readonly:DI,_record:SI,_refine:vw,_regex:wf,_safeParse:Ad,_safeParseAsync:Dd,_set:bI,_size:_f,_startsWith:xf,_string:P0,_stringFormat:yw,_stringbool:gw,_success:UI,_symbol:q0,_templateLiteral:RI,_toLowerCase:Ef,_toUpperCase:Nf,_transform:EI,_trim:Of,_tuple:mw,_uint32:J0,_uint64:Y0,_ulid:sf,_undefined:ew,_union:wI,_unknown:bu,_uppercase:kf,_url:nf,_uuid:Yd,_uuidv4:qd,_uuidv6:ef,_uuidv7:tf,_void:iw,_xid:lf,clone:nn,config:nt,flattenError:Td,formatError:Pd,function:ww,globalConfig:$u,globalRegistry:sr,isValidBase64:Md,isValidBase64URL:J_,isValidJWT:G_,locales:N0,parse:cc,parseAsync:dc,prettifyError:Sy,regexes:i_,registry:Qd,safeParse:xy,safeParseAsync:by,toDotPath:ky,toJSONSchema:$w,treeifyError:$y,util:Rx,version:b_},Symbol.toStringTag,{value:&quot;Module&quot;})),Tf=y(&quot;ZodISODateTime&quot;,(e,t)=&gt;{D_.init(e,t),Se.init(e,t)});function kw(e){return A0(Tf,e)}const Pf=y(&quot;ZodISODate&quot;,(e,t)=&gt;{R_.init(e,t),Se.init(e,t)});function Sw(e){return D0(Pf,e)}const Uf=y(&quot;ZodISOTime&quot;,(e,t)=&gt;{Z_.init(e,t),Se.init(e,t)});function xw(e){return R0(Uf,e)}const Cf=y(&quot;ZodISODuration&quot;,(e,t)=&gt;{L_.init(e,t),Se.init(e,t)});function bw(e){return Z0(Cf,e)}const BI=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Pf,ZodISODateTime:Tf,ZodISODuration:Cf,ZodISOTime:Uf,date:Sw,datetime:kw,duration:bw,time:xw},Symbol.toStringTag,{value:&quot;Module&quot;})),Iw=(e,t)=&gt;{jd.init(e,t),e.name=&quot;ZodError&quot;,Object.defineProperties(e,{format:{value:n=&gt;Pd(e,n)},flatten:{value:n=&gt;Td(e,n)},addIssue:{value:n=&gt;e.issues.push(n)},addIssues:{value:n=&gt;e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},VI=y(&quot;ZodError&quot;,Iw),ea=y(&quot;ZodError&quot;,Iw,{Parent:Error}),zw=Ud(ea),Ow=Cd(ea),Ew=Ad(ea),Nw=Dd(ea),re=y(&quot;ZodType&quot;,(e,t)=&gt;(ee.init(e,t),e.def=t,Object.defineProperty(e,&quot;_def&quot;,{value:t}),e.check=(...n)=&gt;e.clone({...t,checks:[...t.checks??[],...n.map(i=&gt;typeof i==&quot;function&quot;?{_zod:{check:i,def:{check:&quot;custom&quot;},onattach:[]}}:i)]}),e.clone=(n,i)=&gt;nn(e,n,i),e.brand=()=&gt;e,e.register=(n,i)=&gt;(n.add(e,i),e),e.parse=(n,i)=&gt;zw(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=&gt;Ew(e,n,i),e.parseAsync=async(n,i)=&gt;Ow(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=&gt;Nw(e,n,i),e.spa=e.safeParseAsync,e.refine=(n,i)=&gt;e.check(g$(n,i)),e.superRefine=n=&gt;e.check(y$(n)),e.overwrite=n=&gt;e.check(jr(n)),e.optional=()=&gt;Ou(e),e.nullable=()=&gt;Eu(e),e.nullish=()=&gt;Ou(Eu(e)),e.nonoptional=n=&gt;o$(e,n),e.array=()=&gt;nm(e),e.or=n=&gt;ds([e,n]),e.and=n=&gt;Ww(e,n),e.transform=n=&gt;Nu(e,am(n)),e.default=n=&gt;n$(e,n),e.prefault=n=&gt;i$(e,n),e.catch=n=&gt;s$(e,n),e.pipe=n=&gt;Nu(e,n),e.readonly=()=&gt;d$(e),e.describe=n=&gt;{const i=e.clone();return sr.add(i,{description:n}),i},Object.defineProperty(e,&quot;description&quot;,{get(){var n;return(n=sr.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=&gt;{if(n.length===0)return sr.get(e);const i=e.clone();return sr.add(i,n[0]),i},e.isOptional=()=&gt;e.safeParse(void 0).success,e.isNullable=()=&gt;e.safeParse(null).success,e)),Af=y(&quot;_ZodString&quot;,(e,t)=&gt;{qo.init(e,t),re.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=&gt;e.check(wf(...i)),e.includes=(...i)=&gt;e.check(Sf(...i)),e.startsWith=(...i)=&gt;e.check(xf(...i)),e.endsWith=(...i)=&gt;e.check(bf(...i)),e.min=(...i)=&gt;e.check(Oi(...i)),e.max=(...i)=&gt;e.check(rs(...i)),e.length=(...i)=&gt;e.check(is(...i)),e.nonempty=(...i)=&gt;e.check(Oi(1,...i)),e.lowercase=i=&gt;e.check($f(i)),e.uppercase=i=&gt;e.check(kf(i)),e.trim=()=&gt;e.check(Of()),e.normalize=(...i)=&gt;e.check(zf(...i)),e.toLowerCase=()=&gt;e.check(Ef()),e.toUpperCase=()=&gt;e.check(Nf())}),os=y(&quot;ZodString&quot;,(e,t)=&gt;{qo.init(e,t),Af.init(e,t),e.email=n=&gt;e.check(Xd(Df,n)),e.url=n=&gt;e.check(nf(Rf,n)),e.jwt=n=&gt;e.check(yf(qf,n)),e.emoji=n=&gt;e.check(rf(Zf,n)),e.guid=n=&gt;e.check(xu(Iu,n)),e.uuid=n=&gt;e.check(Yd(dn,n)),e.uuidv4=n=&gt;e.check(qd(dn,n)),e.uuidv6=n=&gt;e.check(ef(dn,n)),e.uuidv7=n=&gt;e.check(tf(dn,n)),e.nanoid=n=&gt;e.check(of(Lf,n)),e.guid=n=&gt;e.check(xu(Iu,n)),e.cuid=n=&gt;e.check(af(Mf,n)),e.cuid2=n=&gt;e.check(uf(Ff,n)),e.ulid=n=&gt;e.check(sf(Bf,n)),e.base64=n=&gt;e.check(hf(Qf,n)),e.base64url=n=&gt;e.check(vf(Xf,n)),e.xid=n=&gt;e.check(lf(Vf,n)),e.ksuid=n=&gt;e.check(cf(Wf,n)),e.ipv4=n=&gt;e.check(df(Jf,n)),e.ipv6=n=&gt;e.check(ff(Kf,n)),e.cidrv4=n=&gt;e.check(mf(Hf,n)),e.cidrv6=n=&gt;e.check(pf(Gf,n)),e.e164=n=&gt;e.check(gf(Yf,n)),e.datetime=n=&gt;e.check(kw(n)),e.date=n=&gt;e.check(Sw(n)),e.time=n=&gt;e.check(xw(n)),e.duration=n=&gt;e.check(bw(n))});function pc(e){return P0(os,e)}const Se=y(&quot;ZodStringFormat&quot;,(e,t)=&gt;{ye.init(e,t),Af.init(e,t)}),Df=y(&quot;ZodEmail&quot;,(e,t)=&gt;{O_.init(e,t),Se.init(e,t)});function WI(e){return Xd(Df,e)}const Iu=y(&quot;ZodGUID&quot;,(e,t)=&gt;{I_.init(e,t),Se.init(e,t)});function JI(e){return xu(Iu,e)}const dn=y(&quot;ZodUUID&quot;,(e,t)=&gt;{z_.init(e,t),Se.init(e,t)});function KI(e){return Yd(dn,e)}function HI(e){return qd(dn,e)}function GI(e){return ef(dn,e)}function QI(e){return tf(dn,e)}const Rf=y(&quot;ZodURL&quot;,(e,t)=&gt;{E_.init(e,t),Se.init(e,t)});function XI(e){return nf(Rf,e)}const Zf=y(&quot;ZodEmoji&quot;,(e,t)=&gt;{N_.init(e,t),Se.init(e,t)});function YI(e){return rf(Zf,e)}const Lf=y(&quot;ZodNanoID&quot;,(e,t)=&gt;{j_.init(e,t),Se.init(e,t)});function qI(e){return of(Lf,e)}const Mf=y(&quot;ZodCUID&quot;,(e,t)=&gt;{T_.init(e,t),Se.init(e,t)});function e4(e){return af(Mf,e)}const Ff=y(&quot;ZodCUID2&quot;,(e,t)=&gt;{P_.init(e,t),Se.init(e,t)});function t4(e){return uf(Ff,e)}const Bf=y(&quot;ZodULID&quot;,(e,t)=&gt;{U_.init(e,t),Se.init(e,t)});function n4(e){return sf(Bf,e)}const Vf=y(&quot;ZodXID&quot;,(e,t)=&gt;{C_.init(e,t),Se.init(e,t)});function r4(e){return lf(Vf,e)}const Wf=y(&quot;ZodKSUID&quot;,(e,t)=&gt;{A_.init(e,t),Se.init(e,t)});function i4(e){return cf(Wf,e)}const Jf=y(&quot;ZodIPv4&quot;,(e,t)=&gt;{M_.init(e,t),Se.init(e,t)});function o4(e){return df(Jf,e)}const Kf=y(&quot;ZodIPv6&quot;,(e,t)=&gt;{F_.init(e,t),Se.init(e,t)});function a4(e){return ff(Kf,e)}const Hf=y(&quot;ZodCIDRv4&quot;,(e,t)=&gt;{B_.init(e,t),Se.init(e,t)});function u4(e){return mf(Hf,e)}const Gf=y(&quot;ZodCIDRv6&quot;,(e,t)=&gt;{V_.init(e,t),Se.init(e,t)});function s4(e){return pf(Gf,e)}const Qf=y(&quot;ZodBase64&quot;,(e,t)=&gt;{W_.init(e,t),Se.init(e,t)});function l4(e){return hf(Qf,e)}const Xf=y(&quot;ZodBase64URL&quot;,(e,t)=&gt;{K_.init(e,t),Se.init(e,t)});function c4(e){return vf(Xf,e)}const Yf=y(&quot;ZodE164&quot;,(e,t)=&gt;{H_.init(e,t),Se.init(e,t)});function d4(e){return gf(Yf,e)}const qf=y(&quot;ZodJWT&quot;,(e,t)=&gt;{Q_.init(e,t),Se.init(e,t)});function f4(e){return yf(qf,e)}const jw=y(&quot;ZodCustomStringFormat&quot;,(e,t)=&gt;{X_.init(e,t),Se.init(e,t)});function m4(e,t,n={}){return yw(jw,e,t,n)}const as=y(&quot;ZodNumber&quot;,(e,t)=&gt;{Fd.init(e,t),re.init(e,t),e.gt=(i,r)=&gt;e.check(Ir(i,r)),e.gte=(i,r)=&gt;e.check(vt(i,r)),e.min=(i,r)=&gt;e.check(vt(i,r)),e.lt=(i,r)=&gt;e.check(br(i,r)),e.lte=(i,r)=&gt;e.check(Vt(i,r)),e.max=(i,r)=&gt;e.check(Vt(i,r)),e.int=i=&gt;e.check(hc(i)),e.safe=i=&gt;e.check(hc(i)),e.positive=i=&gt;e.check(Ir(0,i)),e.nonnegative=i=&gt;e.check(vt(0,i)),e.negative=i=&gt;e.check(br(0,i)),e.nonpositive=i=&gt;e.check(Vt(0,i)),e.multipleOf=(i,r)=&gt;e.check(Do(i,r)),e.step=(i,r)=&gt;e.check(Do(i,r)),e.finite=()=&gt;e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??&quot;&quot;).includes(&quot;int&quot;)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Tw(e){return L0(as,e)}const Ci=y(&quot;ZodNumberFormat&quot;,(e,t)=&gt;{Y_.init(e,t),as.init(e,t)});function hc(e){return F0(Ci,e)}function p4(e){return B0(Ci,e)}function h4(e){return V0(Ci,e)}function v4(e){return W0(Ci,e)}function g4(e){return J0(Ci,e)}const us=y(&quot;ZodBoolean&quot;,(e,t)=&gt;{Bd.init(e,t),re.init(e,t)});function Pw(e){return K0(us,e)}const ss=y(&quot;ZodBigInt&quot;,(e,t)=&gt;{Vd.init(e,t),re.init(e,t),e.gte=(i,r)=&gt;e.check(vt(i,r)),e.min=(i,r)=&gt;e.check(vt(i,r)),e.gt=(i,r)=&gt;e.check(Ir(i,r)),e.gte=(i,r)=&gt;e.check(vt(i,r)),e.min=(i,r)=&gt;e.check(vt(i,r)),e.lt=(i,r)=&gt;e.check(br(i,r)),e.lte=(i,r)=&gt;e.check(Vt(i,r)),e.max=(i,r)=&gt;e.check(Vt(i,r)),e.positive=i=&gt;e.check(Ir(BigInt(0),i)),e.negative=i=&gt;e.check(br(BigInt(0),i)),e.nonpositive=i=&gt;e.check(Vt(BigInt(0),i)),e.nonnegative=i=&gt;e.check(vt(BigInt(0),i)),e.multipleOf=(i,r)=&gt;e.check(Do(i,r));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function y4(e){return G0(ss,e)}const em=y(&quot;ZodBigIntFormat&quot;,(e,t)=&gt;{q_.init(e,t),ss.init(e,t)});function _4(e){return X0(em,e)}function w4(e){return Y0(em,e)}const Uw=y(&quot;ZodSymbol&quot;,(e,t)=&gt;{e0.init(e,t),re.init(e,t)});function $4(e){return q0(Uw,e)}const Cw=y(&quot;ZodUndefined&quot;,(e,t)=&gt;{t0.init(e,t),re.init(e,t)});function k4(e){return ew(Cw,e)}const Aw=y(&quot;ZodNull&quot;,(e,t)=&gt;{n0.init(e,t),re.init(e,t)});function Dw(e){return tw(Aw,e)}const Rw=y(&quot;ZodAny&quot;,(e,t)=&gt;{r0.init(e,t),re.init(e,t)});function S4(){return nw(Rw)}const Zw=y(&quot;ZodUnknown&quot;,(e,t)=&gt;{Su.init(e,t),re.init(e,t)});function zu(){return bu(Zw)}const Lw=y(&quot;ZodNever&quot;,(e,t)=&gt;{i0.init(e,t),re.init(e,t)});function ls(e){return rw(Lw,e)}const Mw=y(&quot;ZodVoid&quot;,(e,t)=&gt;{o0.init(e,t),re.init(e,t)});function x4(e){return iw(Mw,e)}const tm=y(&quot;ZodDate&quot;,(e,t)=&gt;{a0.init(e,t),re.init(e,t),e.min=(i,r)=&gt;e.check(vt(i,r)),e.max=(i,r)=&gt;e.check(Vt(i,r));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function b4(e){return ow(tm,e)}const Fw=y(&quot;ZodArray&quot;,(e,t)=&gt;{Wd.init(e,t),re.init(e,t),e.element=t.element,e.min=(n,i)=&gt;e.check(Oi(n,i)),e.nonempty=n=&gt;e.check(Oi(1,n)),e.max=(n,i)=&gt;e.check(rs(n,i)),e.length=(n,i)=&gt;e.check(is(n,i)),e.unwrap=()=&gt;e.element});function nm(e,t){return jf(Fw,e,t)}function I4(e){const t=e._zod.def.shape;return Yw(Object.keys(t))}const cs=y(&quot;ZodObject&quot;,(e,t)=&gt;{u0.init(e,t),re.init(e,t),me(e,&quot;shape&quot;,()=&gt;t.shape),e.keyof=()=&gt;Qw(Object.keys(e._zod.def.shape)),e.catchall=n=&gt;e.clone({...e._zod.def,catchall:n}),e.passthrough=()=&gt;e.clone({...e._zod.def,catchall:zu()}),e.loose=()=&gt;e.clone({...e._zod.def,catchall:zu()}),e.strict=()=&gt;e.clone({...e._zod.def,catchall:ls()}),e.strip=()=&gt;e.clone({...e._zod.def,catchall:void 0}),e.extend=n=&gt;vy(e,n),e.merge=n=&gt;gy(e,n),e.pick=n=&gt;py(e,n),e.omit=n=&gt;hy(e,n),e.partial=(...n)=&gt;yy(um,e,n[0]),e.required=(...n)=&gt;_y(sm,e,n[0])});function z4(e,t){const n={type:&quot;object&quot;,get shape(){return Ui(this,&quot;shape&quot;,{...e}),this.shape},...O(t)};return new cs(n)}function O4(e,t){return new cs({type:&quot;object&quot;,get shape(){return Ui(this,&quot;shape&quot;,{...e}),this.shape},catchall:ls(),...O(t)})}function E4(e,t){return new cs({type:&quot;object&quot;,get shape(){return Ui(this,&quot;shape&quot;,{...e}),this.shape},catchall:zu(),...O(t)})}const rm=y(&quot;ZodUnion&quot;,(e,t)=&gt;{Jd.init(e,t),re.init(e,t),e.options=t.options});function ds(e,t){return new rm({type:&quot;union&quot;,options:e,...O(t)})}const Bw=y(&quot;ZodDiscriminatedUnion&quot;,(e,t)=&gt;{rm.init(e,t),s0.init(e,t)});function N4(e,t,n){return new Bw({type:&quot;union&quot;,options:t,discriminator:e,...O(n)})}const Vw=y(&quot;ZodIntersection&quot;,(e,t)=&gt;{l0.init(e,t),re.init(e,t)});function Ww(e,t){return new Vw({type:&quot;intersection&quot;,left:e,right:t})}const Jw=y(&quot;ZodTuple&quot;,(e,t)=&gt;{ts.init(e,t),re.init(e,t),e.rest=n=&gt;e.clone({...e._zod.def,rest:n})});function j4(e,t,n){const i=t instanceof ee,r=i?n:t,o=i?t:null;return new Jw({type:&quot;tuple&quot;,items:e,rest:o,...O(r)})}const im=y(&quot;ZodRecord&quot;,(e,t)=&gt;{c0.init(e,t),re.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Kw(e,t,n){return new im({type:&quot;record&quot;,keyType:e,valueType:t,...O(n)})}function T4(e,t,n){return new im({type:&quot;record&quot;,keyType:ds([e,ls()]),valueType:t,...O(n)})}const Hw=y(&quot;ZodMap&quot;,(e,t)=&gt;{d0.init(e,t),re.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function P4(e,t,n){return new Hw({type:&quot;map&quot;,keyType:e,valueType:t,...O(n)})}const Gw=y(&quot;ZodSet&quot;,(e,t)=&gt;{f0.init(e,t),re.init(e,t),e.min=(...n)=&gt;e.check(Ro(...n)),e.nonempty=n=&gt;e.check(Ro(1,n)),e.max=(...n)=&gt;e.check(ns(...n)),e.size=(...n)=&gt;e.check(_f(...n))});function U4(e,t){return new Gw({type:&quot;set&quot;,valueType:e,...O(t)})}const Zo=y(&quot;ZodEnum&quot;,(e,t)=&gt;{m0.init(e,t),re.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,r)=&gt;{const o={};for(const a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Zo({...t,checks:[],...O(r),entries:o})},e.exclude=(i,r)=&gt;{const o={...t.entries};for(const a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Zo({...t,checks:[],...O(r),entries:o})}});function Qw(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=&gt;[i,i])):e;return new Zo({type:&quot;enum&quot;,entries:n,...O(t)})}function C4(e,t){return new Zo({type:&quot;enum&quot;,entries:e,...O(t)})}const Xw=y(&quot;ZodLiteral&quot;,(e,t)=&gt;{p0.init(e,t),re.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,&quot;value&quot;,{get(){if(t.values.length&gt;1)throw new Error(&quot;This schema contains multiple valid literal values. Use `.values` instead.&quot;);return t.values[0]}})});function Yw(e,t){return new Xw({type:&quot;literal&quot;,values:Array.isArray(e)?e:[e],...O(t)})}const qw=y(&quot;ZodFile&quot;,(e,t)=&gt;{h0.init(e,t),re.init(e,t),e.min=(n,i)=&gt;e.check(Ro(n,i)),e.max=(n,i)=&gt;e.check(ns(n,i)),e.mime=(n,i)=&gt;e.check(If(Array.isArray(n)?n:[n],i))});function A4(e){return pw(qw,e)}const om=y(&quot;ZodTransform&quot;,(e,t)=&gt;{Kd.init(e,t),re.init(e,t),e._zod.parse=(n,i)=&gt;{n.addIssue=o=&gt;{if(typeof o==&quot;string&quot;)n.issues.push(Ii(o,n.value,t));else{const a=o;a.fatal&amp;&amp;(a.continue=!1),a.code??(a.code=&quot;custom&quot;),a.input??(a.input=n.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),n.issues.push(Ii(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(o=&gt;(n.value=o,n)):(n.value=r,n)}});function am(e){return new om({type:&quot;transform&quot;,transform:e})}const um=y(&quot;ZodOptional&quot;,(e,t)=&gt;{v0.init(e,t),re.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function Ou(e){return new um({type:&quot;optional&quot;,innerType:e})}const e$=y(&quot;ZodNullable&quot;,(e,t)=&gt;{g0.init(e,t),re.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function Eu(e){return new e$({type:&quot;nullable&quot;,innerType:e})}function D4(e){return Ou(Eu(e))}const t$=y(&quot;ZodDefault&quot;,(e,t)=&gt;{y0.init(e,t),re.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType,e.removeDefault=e.unwrap});function n$(e,t){return new t$({type:&quot;default&quot;,innerType:e,get defaultValue(){return typeof t==&quot;function&quot;?t():t}})}const r$=y(&quot;ZodPrefault&quot;,(e,t)=&gt;{_0.init(e,t),re.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function i$(e,t){return new r$({type:&quot;prefault&quot;,innerType:e,get defaultValue(){return typeof t==&quot;function&quot;?t():t}})}const sm=y(&quot;ZodNonOptional&quot;,(e,t)=&gt;{w0.init(e,t),re.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function o$(e,t){return new sm({type:&quot;nonoptional&quot;,innerType:e,...O(t)})}const a$=y(&quot;ZodSuccess&quot;,(e,t)=&gt;{$0.init(e,t),re.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function R4(e){return new a$({type:&quot;success&quot;,innerType:e})}const u$=y(&quot;ZodCatch&quot;,(e,t)=&gt;{k0.init(e,t),re.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType,e.removeCatch=e.unwrap});function s$(e,t){return new u$({type:&quot;catch&quot;,innerType:e,catchValue:typeof t==&quot;function&quot;?t:()=&gt;t})}const l$=y(&quot;ZodNaN&quot;,(e,t)=&gt;{S0.init(e,t),re.init(e,t)});function Z4(e){return uw(l$,e)}const lm=y(&quot;ZodPipe&quot;,(e,t)=&gt;{Hd.init(e,t),re.init(e,t),e.in=t.in,e.out=t.out});function Nu(e,t){return new lm({type:&quot;pipe&quot;,in:e,out:t})}const c$=y(&quot;ZodReadonly&quot;,(e,t)=&gt;{x0.init(e,t),re.init(e,t)});function d$(e){return new c$({type:&quot;readonly&quot;,innerType:e})}const f$=y(&quot;ZodTemplateLiteral&quot;,(e,t)=&gt;{b0.init(e,t),re.init(e,t)});function L4(e,t){return new f$({type:&quot;template_literal&quot;,parts:e,...O(t)})}const m$=y(&quot;ZodLazy&quot;,(e,t)=&gt;{z0.init(e,t),re.init(e,t),e.unwrap=()=&gt;e._zod.def.getter()});function p$(e){return new m$({type:&quot;lazy&quot;,getter:e})}const h$=y(&quot;ZodPromise&quot;,(e,t)=&gt;{I0.init(e,t),re.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function M4(e){return new h$({type:&quot;promise&quot;,innerType:e})}const fs=y(&quot;ZodCustom&quot;,(e,t)=&gt;{O0.init(e,t),re.init(e,t)});function v$(e){const t=new Te({check:&quot;custom&quot;});return t._zod.check=e,t}function F4(e,t){return hw(fs,e??(()=&gt;!0),t)}function g$(e,t={}){return vw(fs,e,t)}function y$(e){const t=v$(n=&gt;(n.addIssue=i=&gt;{if(typeof i==&quot;string&quot;)n.issues.push(Ii(i,n.value,t._zod.def));else{const r=i;r.fatal&amp;&amp;(r.continue=!1),r.code??(r.code=&quot;custom&quot;),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(Ii(r))}},e(n.value,n)));return t}function B4(e,t={error:`Input not instance of ${e.name}`}){const n=new fs({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:i=&gt;i instanceof e,abort:!0,...O(t)});return n._zod.bag.Class=e,n}const V4=(...e)=&gt;gw({Pipe:lm,Boolean:us,String:os,Transform:om},...e);function W4(e){const t=p$(()=&gt;ds([pc(e),Tw(),Pw(),Dw(),nm(t),Kw(pc(),t)]));return t}function J4(e,t){return Nu(am(e),t)}const K4={invalid_type:&quot;invalid_type&quot;,too_big:&quot;too_big&quot;,too_small:&quot;too_small&quot;,invalid_format:&quot;invalid_format&quot;,not_multiple_of:&quot;not_multiple_of&quot;,unrecognized_keys:&quot;unrecognized_keys&quot;,invalid_union:&quot;invalid_union&quot;,invalid_key:&quot;invalid_key&quot;,invalid_element:&quot;invalid_element&quot;,invalid_value:&quot;invalid_value&quot;,custom:&quot;custom&quot;};function H4(e){nt({customError:e})}function G4(){return nt().customError}function Q4(e){return U0(os,e)}function X4(e){return M0(as,e)}function Y4(e){return H0(us,e)}function q4(e){return Q0(ss,e)}function ez(e){return aw(tm,e)}const tz=Object.freeze(Object.defineProperty({__proto__:null,bigint:q4,boolean:Y4,date:ez,number:X4,string:Q4},Symbol.toStringTag,{value:&quot;Module&quot;}));nt(E0());const S=Object.freeze(Object.defineProperty({__proto__:null,$brand:ay,$input:T0,$output:j0,NEVER:oy,TimePrecision:C0,ZodAny:Rw,ZodArray:Fw,ZodBase64:Qf,ZodBase64URL:Xf,ZodBigInt:ss,ZodBigIntFormat:em,ZodBoolean:us,ZodCIDRv4:Hf,ZodCIDRv6:Gf,ZodCUID:Mf,ZodCUID2:Ff,ZodCatch:u$,ZodCustom:fs,ZodCustomStringFormat:jw,ZodDate:tm,ZodDefault:t$,ZodDiscriminatedUnion:Bw,ZodE164:Yf,ZodEmail:Df,ZodEmoji:Zf,ZodEnum:Zo,ZodError:VI,ZodFile:qw,ZodGUID:Iu,ZodIPv4:Jf,ZodIPv6:Kf,ZodISODate:Pf,ZodISODateTime:Tf,ZodISODuration:Cf,ZodISOTime:Uf,ZodIntersection:Vw,ZodIssueCode:K4,ZodJWT:qf,ZodKSUID:Wf,ZodLazy:m$,ZodLiteral:Xw,ZodMap:Hw,ZodNaN:l$,ZodNanoID:Lf,ZodNever:Lw,ZodNonOptional:sm,ZodNull:Aw,ZodNullable:e$,ZodNumber:as,ZodNumberFormat:Ci,ZodObject:cs,ZodOptional:um,ZodPipe:lm,ZodPrefault:r$,ZodPromise:h$,ZodReadonly:c$,ZodRealError:ea,ZodRecord:im,ZodSet:Gw,ZodString:os,ZodStringFormat:Se,ZodSuccess:a$,ZodSymbol:Uw,ZodTemplateLiteral:f$,ZodTransform:om,ZodTuple:Jw,ZodType:re,ZodULID:Bf,ZodURL:Rf,ZodUUID:dn,ZodUndefined:Cw,ZodUnion:rm,ZodUnknown:Zw,ZodVoid:Mw,ZodXID:Vf,_ZodString:Af,_default:n$,any:S4,array:nm,base64:l4,base64url:c4,bigint:y4,boolean:Pw,catch:s$,check:v$,cidrv4:u4,cidrv6:s4,clone:nn,coerce:tz,config:nt,core:FI,cuid:e4,cuid2:t4,custom:F4,date:b4,discriminatedUnion:N4,e164:d4,email:WI,emoji:YI,endsWith:bf,enum:Qw,file:A4,flattenError:Td,float32:p4,float64:h4,formatError:Pd,function:ww,getErrorMap:G4,globalRegistry:sr,gt:Ir,gte:vt,guid:JI,includes:Sf,instanceof:B4,int:hc,int32:v4,int64:_4,intersection:Ww,ipv4:o4,ipv6:a4,iso:BI,json:W4,jwt:f4,keyof:I4,ksuid:i4,lazy:p$,length:is,literal:Yw,locales:N0,looseObject:E4,lowercase:$f,lt:br,lte:Vt,map:P4,maxLength:rs,maxSize:ns,mime:If,minLength:Oi,minSize:Ro,multipleOf:Do,nan:Z4,nanoid:qI,nativeEnum:C4,negative:lw,never:ls,nonnegative:dw,nonoptional:o$,nonpositive:cw,normalize:zf,null:Dw,nullable:Eu,nullish:D4,number:Tw,object:z4,optional:Ou,overwrite:jr,parse:zw,parseAsync:Ow,partialRecord:T4,pipe:Nu,positive:sw,prefault:i$,preprocess:J4,prettifyError:Sy,promise:M4,property:fw,readonly:d$,record:Kw,refine:g$,regex:wf,regexes:i_,registry:Qd,safeParse:Ew,safeParseAsync:Nw,set:U4,setErrorMap:H4,size:_f,startsWith:xf,strictObject:O4,string:pc,stringFormat:m4,stringbool:V4,success:R4,superRefine:y$,symbol:$4,templateLiteral:L4,toJSONSchema:$w,toLowerCase:Ef,toUpperCase:Nf,transform:am,treeifyError:$y,trim:Of,tuple:j4,uint32:g4,uint64:w4,ulid:n4,undefined:k4,union:ds,unknown:zu,uppercase:kf,url:XI,uuid:KI,uuidv4:HI,uuidv6:GI,uuidv7:QI,void:x4,xid:r4},Symbol.toStringTag,{value:&quot;Module&quot;}));var nz=&quot;actor-runtime&quot;;function rz(){return Fg(nz)}function iz(e){throw rz().error(&quot;unreachable&quot;,{value:`${e}`,stack:new Error().stack}),new _S(e)}var cm=iy([&quot;json&quot;,&quot;cbor&quot;]);Ze({a:Od(Pi())});Ze({o:Pi()});var oz=Ze({i:Sx().int(),n:ft(),a:Od(Pi())}),az=Ze({e:ft(),s:xx()});Ze({b:ry([Ze({ar:oz}),Ze({sr:az})])});iy([&quot;websocket&quot;,&quot;sse&quot;]);var Qr=&quot;X-RivetKit-Query&quot;,ir=&quot;X-RivetKit-Encoding&quot;,Xr=&quot;X-RivetKit-Conn-Params&quot;,_$=&quot;X-RivetKit-Actor&quot;,w$=&quot;X-RivetKit-Conn&quot;,$$=&quot;X-RivetKit-Conn-Token&quot;,k$=128,dm=Od(ft().max(k$)),uz=Ze({name:ft(),key:dm,input:Pi().optional(),region:ft().optional()}),sz=Ze({name:ft(),key:dm}),lz=Ze({name:ft(),key:dm,input:Pi().optional(),region:ft().optional()}),fm=ry([Ze({getForId:Ze({actorId:ft()})}),Ze({getForKey:sz}),Ze({getOrCreateForKey:lz}),Ze({create:uz})]);Ze({query:fm.describe(Qr),encoding:cm.describe(ir),connParams:ft().optional().describe(Xr)});Ze({query:fm.describe(&quot;query&quot;),encoding:cm.describe(&quot;encoding&quot;),connParams:Pi().optional().describe(&quot;conn_params&quot;)});Ze({actorId:ft().describe(_$),connId:ft().describe(w$),encoding:cm.describe(ir),connToken:ft().describe($$)});Ze({query:fm.describe(Qr),connParams:ft().optional().describe(Xr)});var cz=S.string().brand(&quot;ActorId&quot;),S$=(e=&gt;(e.Logs=&quot;logs&quot;,e.Config=&quot;config&quot;,e.Connections=&quot;connections&quot;,e.State=&quot;state&quot;,e.Console=&quot;console&quot;,e.Runtime=&quot;runtime&quot;,e.Metrics=&quot;metrics&quot;,e.EventsMonitoring=&quot;events-monitoring&quot;,e.Database=&quot;database&quot;,e))(S$||{});S.object({level:S.string(),message:S.string(),timestamp:S.string(),metadata:S.record(S.string(),S.any()).optional()});S.object({id:cz,name:S.string(),key:S.array(S.string()),tags:S.record(S.string(),S.string()).optional(),region:S.string().optional(),createdAt:S.string().optional(),startedAt:S.string().optional(),destroyedAt:S.string().optional(),features:S.array(S.enum(S$)).optional()});var dz=S.discriminatedUnion(&quot;op&quot;,[S.object({op:S.literal(&quot;remove&quot;),path:S.string()}),S.object({op:S.literal(&quot;add&quot;),path:S.string(),value:S.unknown()}),S.object({op:S.literal(&quot;replace&quot;),path:S.string(),value:S.unknown()}),S.object({op:S.literal(&quot;move&quot;),path:S.string(),from:S.string()}),S.object({op:S.literal(&quot;copy&quot;),path:S.string(),from:S.string()}),S.object({op:S.literal(&quot;test&quot;),path:S.string(),value:S.unknown()})]);S.array(dz);S.object({params:S.record(S.string(),S.any()).optional(),id:S.string(),stateEnabled:S.boolean().optional(),state:S.any().optional(),auth:S.record(S.string(),S.any()).optional()});var fz=S.discriminatedUnion(&quot;type&quot;,[S.object({type:S.literal(&quot;action&quot;),name:S.string(),args:S.array(S.any()),connId:S.string()}),S.object({type:S.literal(&quot;broadcast&quot;),eventName:S.string(),args:S.array(S.any())}),S.object({type:S.literal(&quot;subscribe&quot;),eventName:S.string(),connId:S.string()}),S.object({type:S.literal(&quot;unsubscribe&quot;),eventName:S.string(),connId:S.string()}),S.object({type:S.literal(&quot;event&quot;),eventName:S.string(),args:S.array(S.any()),connId:S.string()})]);fz.and(S.object({id:S.string(),timestamp:S.number()}));S.object({sql:S.string(),args:S.array(S.string().or(S.number()))});var mz=S.object({schema:S.string(),name:S.string(),type:S.enum([&quot;table&quot;,&quot;view&quot;])});S.array(mz);var pz=S.object({cid:S.number(),name:S.string(),type:S.string().toLowerCase().transform(e=&gt;S.enum([&quot;integer&quot;,&quot;text&quot;,&quot;real&quot;,&quot;blob&quot;,&quot;numeric&quot;,&quot;serial&quot;]).parse(e)),notnull:S.coerce.boolean(),dflt_value:S.string().nullable(),pk:S.coerce.boolean().nullable()});S.array(pz);var hz=S.object({id:S.number(),table:S.string(),from:S.string(),to:S.string()});S.array(hz);var vz=S.object({name:S.string(),createdAt:S.string().optional(),tags:S.record(S.string(),S.string()).optional()});S.array(vz);S.object({name:S.string(),key:S.array(S.string().max(k$)),input:S.any()});var gz=function(e,t,n,i,r,o,a,u){if(!e){var s;if(t===void 0)s=new Error(&quot;Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.&quot;);else{var l=[n,i,r,o,a,u],m=0;s=new Error(t.replace(/%s/g,function(){return l[m++]})),s.name=&quot;Invariant Violation&quot;}throw s.framesToPop=1,s}},yz=gz;const _z=zc(yz);/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2022 Joachim Wester
 * MIT licensed
 */var wz=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&amp;&amp;(i[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),$z=Object.prototype.hasOwnProperty;function vc(e,t){return $z.call(e,t)}function gc(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n&lt;t.length;n++)t[n]=&quot;&quot;+n;return t}if(Object.keys)return Object.keys(e);var i=[];for(var r in e)vc(e,r)&amp;&amp;i.push(r);return i}function yt(e){switch(typeof e){case&quot;object&quot;:return JSON.parse(JSON.stringify(e));case&quot;undefined&quot;:return null;default:return e}}function yc(e){for(var t=0,n=e.length,i;t&lt;n;){if(i=e.charCodeAt(t),i&gt;=48&amp;&amp;i&lt;=57){t++;continue}return!1}return!0}function rr(e){return e.indexOf(&quot;/&quot;)===-1&amp;&amp;e.indexOf(&quot;~&quot;)===-1?e:e.replace(/~/g,&quot;~0&quot;).replace(/\//g,&quot;~1&quot;)}function x$(e){return e.replace(/~1/g,&quot;/&quot;).replace(/~0/g,&quot;~&quot;)}function _c(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t&lt;n;t++)if(_c(e[t]))return!0}else if(typeof e==&quot;object&quot;){for(var i=gc(e),r=i.length,o=0;o&lt;r;o++)if(_c(e[i[o]]))return!0}}return!1}function gh(e,t){var n=[e];for(var i in t){var r=typeof t[i]==&quot;object&quot;?JSON.stringify(t[i],null,2):t[i];typeof r&lt;&quot;u&quot;&amp;&amp;n.push(i+&quot;: &quot;+r)}return n.join(`
`)}var b$=function(e){wz(t,e);function t(n,i,r,o,a){var u=this.constructor,s=e.call(this,gh(n,{name:i,index:r,operation:o,tree:a}))||this;return s.name=i,s.index=r,s.operation=o,s.tree=a,Object.setPrototypeOf(s,u.prototype),s.message=gh(n,{name:i,index:r,operation:o,tree:a}),s}return t}(Error),Oe=b$,kz=yt,Yr={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var i=e[t];return delete e[t],{newDocument:n,removed:i}},replace:function(e,t,n){var i=e[t];return e[t]=this.value,{newDocument:n,removed:i}},move:function(e,t,n){var i=ju(n,this.path);i&amp;&amp;(i=yt(i));var r=gr(n,{op:&quot;remove&quot;,path:this.from}).removed;return gr(n,{op:&quot;add&quot;,path:this.path,value:r}),{newDocument:n,removed:i}},copy:function(e,t,n){var i=ju(n,this.from);return gr(n,{op:&quot;add&quot;,path:this.path,value:yt(i)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Lo(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},Sz={add:function(e,t,n){return yc(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var i=e.splice(t,1);return{newDocument:n,removed:i[0]}},replace:function(e,t,n){var i=e[t];return e[t]=this.value,{newDocument:n,removed:i}},move:Yr.move,copy:Yr.copy,test:Yr.test,_get:Yr._get};function ju(e,t){if(t==&quot;&quot;)return e;var n={op:&quot;_get&quot;,path:t};return gr(e,n),n.value}function gr(e,t,n,i,r,o){if(n===void 0&amp;&amp;(n=!1),i===void 0&amp;&amp;(i=!0),r===void 0&amp;&amp;(r=!0),o===void 0&amp;&amp;(o=0),n&amp;&amp;(typeof n==&quot;function&quot;?n(t,0,e,t.path):Tu(t,0)),t.path===&quot;&quot;){var a={newDocument:e};if(t.op===&quot;add&quot;)return a.newDocument=t.value,a;if(t.op===&quot;replace&quot;)return a.newDocument=t.value,a.removed=e,a;if(t.op===&quot;move&quot;||t.op===&quot;copy&quot;)return a.newDocument=ju(e,t.from),t.op===&quot;move&quot;&amp;&amp;(a.removed=e),a;if(t.op===&quot;test&quot;){if(a.test=Lo(e,t.value),a.test===!1)throw new Oe(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,o,t,e);return a.newDocument=e,a}else{if(t.op===&quot;remove&quot;)return a.removed=e,a.newDocument=null,a;if(t.op===&quot;_get&quot;)return t.value=e,a;if(n)throw new Oe(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,o,t,e);return a}}else{i||(e=yt(e));var u=t.path||&quot;&quot;,s=u.split(&quot;/&quot;),l=e,m=1,p=s.length,v=void 0,_=void 0,$=void 0;for(typeof n==&quot;function&quot;?$=n:$=Tu;;){if(_=s[m],_&amp;&amp;_.indexOf(&quot;~&quot;)!=-1&amp;&amp;(_=x$(_)),r&amp;&amp;(_==&quot;__proto__&quot;||_==&quot;prototype&quot;&amp;&amp;m&gt;0&amp;&amp;s[m-1]==&quot;constructor&quot;))throw new TypeError(&quot;JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README&quot;);if(n&amp;&amp;v===void 0&amp;&amp;(l[_]===void 0?v=s.slice(0,m).join(&quot;/&quot;):m==p-1&amp;&amp;(v=t.path),v!==void 0&amp;&amp;$(t,0,e,v)),m++,Array.isArray(l)){if(_===&quot;-&quot;)_=l.length;else{if(n&amp;&amp;!yc(_))throw new Oe(&quot;Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index&quot;,&quot;OPERATION_PATH_ILLEGAL_ARRAY_INDEX&quot;,o,t,e);yc(_)&amp;&amp;(_=~~_)}if(m&gt;=p){if(n&amp;&amp;t.op===&quot;add&quot;&amp;&amp;_&gt;l.length)throw new Oe(&quot;The specified index MUST NOT be greater than the number of elements in the array&quot;,&quot;OPERATION_VALUE_OUT_OF_BOUNDS&quot;,o,t,e);var a=Sz[t.op].call(t,l,_,e);if(a.test===!1)throw new Oe(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,o,t,e);return a}}else if(m&gt;=p){var a=Yr[t.op].call(t,l,_,e);if(a.test===!1)throw new Oe(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,o,t,e);return a}if(l=l[_],n&amp;&amp;m&lt;p&amp;&amp;(!l||typeof l!=&quot;object&quot;))throw new Oe(&quot;Cannot perform operation at the desired path&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,o,t,e)}}}function mm(e,t,n,i,r){if(i===void 0&amp;&amp;(i=!0),r===void 0&amp;&amp;(r=!0),n&amp;&amp;!Array.isArray(t))throw new Oe(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);i||(e=yt(e));for(var o=new Array(t.length),a=0,u=t.length;a&lt;u;a++)o[a]=gr(e,t[a],n,!0,r,a),e=o[a].newDocument;return o.newDocument=e,o}function xz(e,t,n){var i=gr(e,t);if(i.test===!1)throw new Oe(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,n,t,e);return i.newDocument}function Tu(e,t,n,i){if(typeof e!=&quot;object&quot;||e===null||Array.isArray(e))throw new Oe(&quot;Operation is not an object&quot;,&quot;OPERATION_NOT_AN_OBJECT&quot;,t,e,n);if(Yr[e.op]){if(typeof e.path!=&quot;string&quot;)throw new Oe(&quot;Operation `path` property is not a string&quot;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if(e.path.indexOf(&quot;/&quot;)!==0&amp;&amp;e.path.length&gt;0)throw new Oe(&#39;Operation `path` property must start with &quot;/&quot;&#39;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if((e.op===&quot;move&quot;||e.op===&quot;copy&quot;)&amp;&amp;typeof e.from!=&quot;string&quot;)throw new Oe(&quot;Operation `from` property is not present (applicable in `move` and `copy` operations)&quot;,&quot;OPERATION_FROM_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;e.value===void 0)throw new Oe(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;_c(e.value))throw new Oe(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED&quot;,t,e,n);if(n){if(e.op==&quot;add&quot;){var r=e.path.split(&quot;/&quot;).length,o=i.split(&quot;/&quot;).length;if(r!==o+1&amp;&amp;r!==o)throw new Oe(&quot;Cannot perform an `add` operation at the desired path&quot;,&quot;OPERATION_PATH_CANNOT_ADD&quot;,t,e,n)}else if(e.op===&quot;replace&quot;||e.op===&quot;remove&quot;||e.op===&quot;_get&quot;){if(e.path!==i)throw new Oe(&quot;Cannot perform the operation at a path that does not exist&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,t,e,n)}else if(e.op===&quot;move&quot;||e.op===&quot;copy&quot;){var a={op:&quot;_get&quot;,path:e.from,value:void 0},u=I$([a],n);if(u&amp;&amp;u.name===&quot;OPERATION_PATH_UNRESOLVABLE&quot;)throw new Oe(&quot;Cannot perform the operation from a path that does not exist&quot;,&quot;OPERATION_FROM_UNRESOLVABLE&quot;,t,e,n)}}}else throw new Oe(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,t,e,n)}function I$(e,t,n){try{if(!Array.isArray(e))throw new Oe(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);if(t)mm(yt(t),yt(e),n||!0);else{n=n||Tu;for(var i=0;i&lt;e.length;i++)n(e[i],i,t,void 0)}}catch(r){if(r instanceof Oe)return r;throw r}}function Lo(e,t){if(e===t)return!0;if(e&amp;&amp;t&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;typeof t==&quot;object&quot;){var n=Array.isArray(e),i=Array.isArray(t),r,o,a;if(n&amp;&amp;i){if(o=e.length,o!=t.length)return!1;for(r=o;r--!==0;)if(!Lo(e[r],t[r]))return!1;return!0}if(n!=i)return!1;var u=Object.keys(e);if(o=u.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!t.hasOwnProperty(u[r]))return!1;for(r=o;r--!==0;)if(a=u[r],!Lo(e[a],t[a]))return!1;return!0}return e!==e&amp;&amp;t!==t}const bz=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:Oe,_areEquals:Lo,applyOperation:gr,applyPatch:mm,applyReducer:xz,deepClone:kz,getValueByPointer:ju,validate:I$,validator:Tu},Symbol.toStringTag,{value:&quot;Module&quot;}));/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2021 Joachim Wester
 * MIT license
 */var pm=new WeakMap,Iz=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),zz=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function Oz(e){return pm.get(e)}function Ez(e,t){return e.observers.get(t)}function Nz(e,t){e.observers.delete(t.callback)}function jz(e,t){t.unobserve()}function Tz(e,t){var n=[],i,r=Oz(e);if(!r)r=new Iz(e),pm.set(e,r);else{var o=Ez(r,t);i=o&amp;&amp;o.observer}if(i)return i;if(i={},r.value=yt(e),t){i.callback=t,i.next=null;var a=function(){wc(i)},u=function(){clearTimeout(i.next),i.next=setTimeout(a)};typeof window&lt;&quot;u&quot;&amp;&amp;(window.addEventListener(&quot;mouseup&quot;,u),window.addEventListener(&quot;keyup&quot;,u),window.addEventListener(&quot;mousedown&quot;,u),window.addEventListener(&quot;keydown&quot;,u),window.addEventListener(&quot;change&quot;,u))}return i.patches=n,i.object=e,i.unobserve=function(){wc(i),clearTimeout(i.next),Nz(r,i),typeof window&lt;&quot;u&quot;&amp;&amp;(window.removeEventListener(&quot;mouseup&quot;,u),window.removeEventListener(&quot;keyup&quot;,u),window.removeEventListener(&quot;mousedown&quot;,u),window.removeEventListener(&quot;keydown&quot;,u),window.removeEventListener(&quot;change&quot;,u))},r.observers.set(t,new zz(t,i)),i}function wc(e,t){t===void 0&amp;&amp;(t=!1);var n=pm.get(e.object);hm(n.value,e.object,e.patches,&quot;&quot;,t),e.patches.length&amp;&amp;mm(n.value,e.patches);var i=e.patches;return i.length&gt;0&amp;&amp;(e.patches=[],e.callback&amp;&amp;e.callback(i)),i}function hm(e,t,n,i,r){if(t!==e){typeof t.toJSON==&quot;function&quot;&amp;&amp;(t=t.toJSON());for(var o=gc(t),a=gc(e),u=!1,s=a.length-1;s&gt;=0;s--){var l=a[s],m=e[l];if(vc(t,l)&amp;&amp;!(t[l]===void 0&amp;&amp;m!==void 0&amp;&amp;Array.isArray(t)===!1)){var p=t[l];typeof m==&quot;object&quot;&amp;&amp;m!=null&amp;&amp;typeof p==&quot;object&quot;&amp;&amp;p!=null&amp;&amp;Array.isArray(m)===Array.isArray(p)?hm(m,p,n,i+&quot;/&quot;+rr(l),r):m!==p&amp;&amp;(r&amp;&amp;n.push({op:&quot;test&quot;,path:i+&quot;/&quot;+rr(l),value:yt(m)}),n.push({op:&quot;replace&quot;,path:i+&quot;/&quot;+rr(l),value:yt(p)}))}else Array.isArray(e)===Array.isArray(t)?(r&amp;&amp;n.push({op:&quot;test&quot;,path:i+&quot;/&quot;+rr(l),value:yt(m)}),n.push({op:&quot;remove&quot;,path:i+&quot;/&quot;+rr(l)}),u=!0):(r&amp;&amp;n.push({op:&quot;test&quot;,path:i,value:e}),n.push({op:&quot;replace&quot;,path:i,value:t}))}if(!(!u&amp;&amp;o.length==a.length))for(var s=0;s&lt;o.length;s++){var l=o[s];!vc(e,l)&amp;&amp;t[l]!==void 0&amp;&amp;n.push({op:&quot;add&quot;,path:i+&quot;/&quot;+rr(l),value:yt(t[l])})}}}function Pz(e,t,n){n===void 0&amp;&amp;(n=!1);var i=[];return hm(e,t,i,&quot;&quot;,n),i}const Uz=Object.freeze(Object.defineProperty({__proto__:null,compare:Pz,generate:wc,observe:Tz,unobserve:jz},Symbol.toStringTag,{value:&quot;Module&quot;}));Object.assign({},bz,Uz,{JsonPatchError:b$,deepClone:yt,escapePathComponent:rr,unescapePathComponent:x$});new Set(&quot;.\\+*[^]$()&quot;);var z$={};function Ut(e,t){typeof t==&quot;boolean&quot;&amp;&amp;(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&amp;&amp;t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&amp;&amp;(this._cachedTimeouts=this._timeouts.slice(0))}var Cz=Ut;Ut.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ut.prototype.stop=function(){this._timeout&amp;&amp;clearTimeout(this._timeout),this._timer&amp;&amp;clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ut.prototype.retry=function(e){if(this._timeout&amp;&amp;clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&amp;&amp;t-this._operationStart&gt;=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error(&quot;RetryOperation timeout occurred&quot;)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&amp;&amp;(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&amp;&amp;i._timeout.unref()),i._fn(i._attempts)},n),this._options.unref&amp;&amp;this._timer.unref(),!0};Ut.prototype.attempt=function(e,t){this._fn=e,t&amp;&amp;(t.timeout&amp;&amp;(this._operationTimeout=t.timeout),t.cb&amp;&amp;(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&amp;&amp;(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Ut.prototype.try=function(e){console.log(&quot;Using RetryOperation.try() is deprecated&quot;),this.attempt(e)};Ut.prototype.start=function(e){console.log(&quot;Using RetryOperation.start() is deprecated&quot;),this.attempt(e)};Ut.prototype.start=Ut.prototype.try;Ut.prototype.errors=function(){return this._errors};Ut.prototype.attempts=function(){return this._attempts};Ut.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,i=0;i&lt;this._errors.length;i++){var r=this._errors[i],o=r.message,a=(e[o]||0)+1;e[o]=a,a&gt;=n&amp;&amp;(t=r,n=a)}return t};(function(e){var t=Cz;e.operation=function(n){var i=e.timeouts(n);return new t(i,{forever:n&amp;&amp;(n.forever||n.retries===1/0),unref:n&amp;&amp;n.unref,maxRetryTime:n&amp;&amp;n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in n)i[r]=n[r];if(i.minTimeout&gt;i.maxTimeout)throw new Error(&quot;minTimeout is greater than maxTimeout&quot;);for(var o=[],a=0;a&lt;i.retries;a++)o.push(this.createTimeout(a,i));return n&amp;&amp;n.forever&amp;&amp;!o.length&amp;&amp;o.push(this.createTimeout(a,i)),o.sort(function(u,s){return u-s}),o},e.createTimeout=function(n,i){var r=i.randomize?Math.random()+1:1,o=Math.round(r*Math.max(i.minTimeout,1)*Math.pow(i.factor,n));return o=Math.min(o,i.maxTimeout),o},e.wrap=function(n,i,r){if(i instanceof Array&amp;&amp;(r=i,i=null),!r){r=[];for(var o in n)typeof n[o]==&quot;function&quot;&amp;&amp;r.push(o)}for(var a=0;a&lt;r.length;a++){var u=r[a],s=n[u];n[u]=(function(m){var p=e.operation(i),v=Array.prototype.slice.call(arguments,1),_=v.pop();v.push(function($){p.retry($)||($&amp;&amp;(arguments[0]=p.mainError()),_.apply(this,arguments))}),p.attempt(function(){m.apply(n,v)})}).bind(n,s),n[u].options=i}}})(z$);var Az=z$;const Dz=zc(Az),Rz=Object.prototype.toString,Zz=e=&gt;Rz.call(e)===&quot;[object Error]&quot;,Lz=new Set([&quot;network error&quot;,&quot;Failed to fetch&quot;,&quot;NetworkError when attempting to fetch resource.&quot;,&quot;The Internet connection appears to be offline.&quot;,&quot;Load failed&quot;,&quot;Network request failed&quot;,&quot;fetch failed&quot;,&quot;terminated&quot;]);function Mz(e){return e&amp;&amp;Zz(e)&amp;&amp;e.name===&quot;TypeError&quot;&amp;&amp;typeof e.message==&quot;string&quot;?e.message===&quot;Load failed&quot;?e.stack===void 0:Lz.has(e.message):!1}class Fz extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name=&quot;AbortError&quot;,this.message=t}}const yh=(e,t,n)=&gt;{const i=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=i,e};async function Bz(e,t){return new Promise((n,i)=&gt;{t={...t},t.onFailedAttempt??(t.onFailedAttempt=()=&gt;{}),t.shouldRetry??(t.shouldRetry=()=&gt;!0),t.retries??(t.retries=10);const r=Dz.operation(t),o=()=&gt;{var u;r.stop(),i((u=t.signal)==null?void 0:u.reason)};t.signal&amp;&amp;!t.signal.aborted&amp;&amp;t.signal.addEventListener(&quot;abort&quot;,o,{once:!0});const a=()=&gt;{var u;(u=t.signal)==null||u.removeEventListener(&quot;abort&quot;,o),r.stop()};r.attempt(async u=&gt;{try{const s=await e(u);a(),n(s)}catch(s){try{if(!(s instanceof Error))throw new TypeError(`Non-error was thrown: &quot;${s}&quot;. You should only throw errors.`);if(s instanceof Fz)throw s.originalError;if(s instanceof TypeError&amp;&amp;!Mz(s))throw s;if(yh(s,u,t),await t.shouldRetry(s)||(r.stop(),i(s)),await t.onFailedAttempt(s),!r.retry(s))throw r.mainError()}catch(l){yh(l,u,t),a(),i(l)}}})})}var ms=class extends Error{},eo=class extends ms{},Pu=class extends ms{constructor(t,n,i){super(n);Kt(this,&quot;__type&quot;,&quot;ActorError&quot;);this.code=t,this.metadata=i}},Gs=class extends ms{constructor(e,t){super(`HTTP request error: ${e}`,{cause:t==null?void 0:t.cause})}},Vz=class extends ms{constructor(){super(&quot;Attempting to interact with a disposed actor connection.&quot;)}};async function Wz(e,t,n,i,r){let o,a=r||{};if(typeof i==&quot;string&quot;)o=i;else if(i instanceof URL)o=i.pathname+i.search;else if(i instanceof Request){const u=new URL(i.url);o=u.pathname+u.search;const s=new Headers(i.headers),l=new Headers((r==null?void 0:r.headers)||{}),m=new Headers(s);for(const[p,v]of l)m.set(p,v);a={method:i.method,body:i.body,mode:i.mode,credentials:i.credentials,redirect:i.redirect,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,keepalive:i.keepalive,signal:i.signal,...a,headers:m},a.body&amp;&amp;(a.duplex=&quot;half&quot;)}else throw new TypeError(&quot;Invalid input type for fetch&quot;);return await e.rawHttpRequest(void 0,t,&quot;json&quot;,n,o,a,void 0)}async function Jz(e,t,n,i,r){return await e.rawWebSocket(void 0,t,&quot;json&quot;,n,i||&quot;&quot;,r,void 0)}var ai,un,lr,We,sn,$h,Kz=($h=class{constructor(e,t,n,i,r){fe(this,ai);fe(this,un);fe(this,lr);fe(this,We);fe(this,sn);pe(this,ai,e),pe(this,un,t),pe(this,lr,i),pe(this,We,r),pe(this,sn,n)}async action(e){return await b(this,un).action(void 0,b(this,We),b(this,lr),b(this,sn),e.name,e.args,{signal:e.signal})}connect(){Q().debug(&quot;establishing connection from handle&quot;,{query:b(this,We)});const e=new Xz(b(this,ai),b(this,un),b(this,sn),b(this,lr),b(this,We));return b(this,ai)[O$](e)}async fetch(e,t){return Wz(b(this,un),b(this,We),b(this,sn),e,t)}async websocket(e,t){return Jz(b(this,un),b(this,We),b(this,sn),e,t)}async resolve({signal:e}={}){if(&quot;getForKey&quot;in b(this,We)||&quot;getOrCreateForKey&quot;in b(this,We)){const t=await b(this,un).resolveActorId(void 0,b(this,We),b(this,lr),b(this,sn),e?{signal:e}:void 0);return pe(this,We,{getForId:{actorId:t}}),t}else{if(&quot;getForId&quot;in b(this,We))return b(this,We).getForId.actorId;&quot;create&quot;in b(this,We)?_z(!1,&quot;actorQuery cannot be create&quot;):iz(b(this,We))}}},ai=new WeakMap,un=new WeakMap,lr=new WeakMap,We=new WeakMap,sn=new WeakMap,$h),Ma=Symbol(&quot;actorConns&quot;),O$=Symbol(&quot;createActorConnProxy&quot;),mo=Symbol(&quot;transport&quot;),kh,Sh,Mo,ui,si,cr,to,xh,Hz=(xh=class{constructor(e,t){fe(this,cr);fe(this,Mo,!1);Kt(this,Sh,new Set);fe(this,ui);fe(this,si);Kt(this,kh);pe(this,ui,e),pe(this,si,(t==null?void 0:t.encoding)??&quot;cbor&quot;),this[mo]=(t==null?void 0:t.transport)??&quot;websocket&quot;}getForId(e,t,n){Q().debug(&quot;get handle to actor with id&quot;,{name:e,actorId:t,params:n==null?void 0:n.params});const i={getForId:{actorId:t}},r=se(this,cr,to).call(this,n==null?void 0:n.params,i);return Wi(r)}get(e,t,n){const i=typeof t==&quot;string&quot;?[t]:t||[];Q().debug(&quot;get handle to actor&quot;,{name:e,key:i,parameters:n==null?void 0:n.params});const r={getForKey:{name:e,key:i}},o=se(this,cr,to).call(this,n==null?void 0:n.params,r);return Wi(o)}getOrCreate(e,t,n){const i=typeof t==&quot;string&quot;?[t]:t||[];Q().debug(&quot;get or create handle to actor&quot;,{name:e,key:i,parameters:n==null?void 0:n.params,createInRegion:n==null?void 0:n.createInRegion});const r={getOrCreateForKey:{name:e,key:i,input:n==null?void 0:n.createWithInput,region:n==null?void 0:n.createInRegion}},o=se(this,cr,to).call(this,n==null?void 0:n.params,r);return Wi(o)}async create(e,t,n){const i=typeof t==&quot;string&quot;?[t]:t||[],r={create:{...n,name:e,key:i}};Q().debug(&quot;create actor handle&quot;,{name:e,key:i,parameters:n==null?void 0:n.params,create:r.create});const o=await b(this,ui).resolveActorId(void 0,r,b(this,si),n==null?void 0:n.params,n!=null&amp;&amp;n.signal?{signal:n.signal}:void 0);Q().debug(&quot;created actor with ID&quot;,{name:e,key:i,actorId:o});const a={getForId:{actorId:o}},u=se(this,cr,to).call(this,n==null?void 0:n.params,a);return Wi(u)}[(Sh=Ma,kh=mo,O$)](e){return this[Ma].add(e),e[N$](),Wi(e)}async dispose(){if(b(this,Mo)){Q().warn(&quot;client already disconnected&quot;);return}pe(this,Mo,!0),Q().debug(&quot;disposing client&quot;);const e=[];for(const t of this[Ma].values())e.push(t.dispose());await Promise.all(e)}},Mo=new WeakMap,ui=new WeakMap,si=new WeakMap,cr=new WeakSet,to=function(e,t){return new Kz(this,b(this,ui),e,b(this,si),t)},xh);function Gz(e,t){const n=new Hz(e,t);return new Proxy(n,{get:(i,r,o)=&gt;{if(typeof r==&quot;symbol&quot;||r in i){const a=Reflect.get(i,r,o);return typeof a==&quot;function&quot;?a.bind(i):a}if(typeof r==&quot;string&quot;)return{get:(a,u)=&gt;i.get(r,a,u),getOrCreate:(a,u)=&gt;i.getOrCreate(r,a,u),getForId:(a,u)=&gt;i.getForId(r,a,u),create:async(a,u={})=&gt;await i.create(r,a,u)}}})}function Wi(e){const t=new Map;return new Proxy(e,{get(n,i,r){if(typeof i==&quot;symbol&quot;)return Reflect.get(n,i,r);if(i===&quot;constructor&quot;||i in n){const o=Reflect.get(n,i,r);return typeof o==&quot;function&quot;?o.bind(n):o}if(typeof i==&quot;string&quot;){if(i===&quot;then&quot;)return;let o=t.get(i);return o||(o=(...a)=&gt;n.action({name:i,args:a}),t.set(i,o)),o}},has(n,i){return typeof i==&quot;string&quot;?!0:Reflect.has(n,i)},getPrototypeOf(n){return Reflect.getPrototypeOf(n)},ownKeys(n){return Reflect.ownKeys(n)},getOwnPropertyDescriptor(n,i){const r=Reflect.getOwnPropertyDescriptor(n,i);if(r)return r;if(typeof i==&quot;string&quot;)return{configurable:!0,enumerable:!1,writable:!1,value:(...o)=&gt;n.action({name:i,args:o})}}})}function Qz(e){if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer||e instanceof Uint8Array)return e.byteLength;if(typeof e==&quot;string&quot;)return e.length;It(e)}async function _h(e){Q().debug(&quot;sending http request&quot;,{url:e.url,encoding:e.encoding});let t,n;(e.method===&quot;POST&quot;||e.method===&quot;PUT&quot;)&amp;&amp;(e.encoding===&quot;json&quot;?(t=&quot;application/json&quot;,n=JSON.stringify(e.body)):e.encoding===&quot;cbor&quot;?(t=&quot;application/octet-stream&quot;,n=Qg(e.body)):It(e.encoding));let i;try{i=await(e.customFetch??fetch)(new Request(e.url,{method:e.method,headers:{...e.headers,...t?{&quot;Content-Type&quot;:t}:{},&quot;User-Agent&quot;:Da()},body:n,credentials:&quot;include&quot;,signal:e.signal}))}catch(o){throw new Gs(`Request failed: ${o}`,{cause:o})}if(!i.ok){const o=await i.arrayBuffer();let a;try{if(e.encoding===&quot;json&quot;){const u=new TextDecoder().decode(o);a=JSON.parse(u)}else if(e.encoding===&quot;cbor&quot;){const u=new Uint8Array(o);a=fo(u)}else It(e.encoding)}catch{const s=new TextDecoder(&quot;utf-8&quot;,{fatal:!1}).decode(o);throw new Gs(`${i.statusText} (${i.status}):
${s}`)}throw new Pu(a.c,a.m,a.md)}if(e.skipParseResponse)return;let r;try{if(e.encoding===&quot;json&quot;)r=await i.json();else if(e.encoding===&quot;cbor&quot;){const o=await i.arrayBuffer(),a=new Uint8Array(o);r=fo(a)}else It(e.encoding)}catch(o){throw new Gs(`Failed to parse response: ${o}`,{cause:o})}return r}function E$(e,t){if(e===&quot;json&quot;)return JSON.stringify(t);if(e===&quot;cbor&quot;)return Qg(t);It(e)}var N$=Symbol(&quot;connect&quot;),zn,Fo,li,dr,fr,ci,we,On,En,Yt,di,Bo,Vo,pt,Nn,mr,fi,Zt,mi,q,$c,j$,T$,P$,U$,kc,Sc,xc,bc,C$,A$,Ic,Fa,D$,R$,Ba,bh,Xz=(bh=class{constructor(e,t,n,i,r){fe(this,q);fe(this,zn,!1);fe(this,Fo,new AbortController);fe(this,li,!1);fe(this,dr);fe(this,fr);fe(this,ci);fe(this,we);fe(this,On,[]);fe(this,En,new Map);fe(this,Yt,new Map);fe(this,di,new Set);fe(this,Bo,0);fe(this,Vo);fe(this,pt);fe(this,Nn);fe(this,mr);fe(this,fi);fe(this,Zt);fe(this,mi);this.client=e,this.driver=t,this.params=n,this.encodingKind=i,this.actorQuery=r,pe(this,Nn,e),pe(this,mr,t),pe(this,fi,n),pe(this,Zt,i),pe(this,mi,r),pe(this,Vo,setInterval(()=&gt;6e4))}async action(e){Q().debug(&quot;action&quot;,{name:e.name,args:e.args});const t=b(this,Bo);pe(this,Bo,b(this,Bo)+1);const{promise:n,resolve:i,reject:r}=Promise.withResolvers();b(this,En).set(t,{name:e.name,resolve:i,reject:r}),se(this,q,Fa).call(this,{b:{ar:{i:t,n:e.name,a:e.args}}});const{i:o,o:a}=await n;if(o!==t)throw new Error(`Request ID ${t} does not match response ID ${o}`);return a}[N$](){se(this,q,$c).call(this)}on(e,t){return se(this,q,Ic).call(this,e,t,!1)}once(e,t){return se(this,q,Ic).call(this,e,t,!0)}onError(e){return b(this,di).add(e),()=&gt;{b(this,di).delete(e)}}async dispose(){if(b(this,zn)){Q().warn(&quot;connection already disconnected&quot;);return}if(pe(this,zn,!0),Q().debug(&quot;disposing actor&quot;),clearInterval(b(this,Vo)),b(this,Fo).abort(),b(this,Nn)[Ma].delete(this),b(this,we))if(&quot;websocket&quot;in b(this,we)){const{promise:e,resolve:t}=Promise.withResolvers();b(this,we).websocket.addEventListener(&quot;close&quot;,()=&gt;{Q().debug(&quot;ws closed&quot;),t(void 0)}),b(this,we).websocket.close(),await e}else&quot;sse&quot;in b(this,we)?b(this,we).sse.close():It(b(this,we));pe(this,we,void 0)}},zn=new WeakMap,Fo=new WeakMap,li=new WeakMap,dr=new WeakMap,fr=new WeakMap,ci=new WeakMap,we=new WeakMap,On=new WeakMap,En=new WeakMap,Yt=new WeakMap,di=new WeakMap,Bo=new WeakMap,Vo=new WeakMap,pt=new WeakMap,Nn=new WeakMap,mr=new WeakMap,fi=new WeakMap,Zt=new WeakMap,mi=new WeakMap,q=new WeakSet,$c=async function(){pe(this,li,!0);try{await Bz(se(this,q,j$).bind(this),{forever:!0,minTimeout:250,maxTimeout:3e4,onFailedAttempt:e=&gt;{Q().warn(&quot;failed to reconnect&quot;,{attempt:e.attemptNumber,error:zp(e)})},signal:b(this,Fo).signal})}catch(e){if(e.name===&quot;AbortError&quot;){Q().info(&quot;connection retry aborted&quot;);return}else throw e}pe(this,li,!1)},j$=async function(){try{if(b(this,pt))throw new Error(&quot;#onOpenPromise already defined&quot;);pe(this,pt,Promise.withResolvers()),b(this,Nn)[mo]===&quot;websocket&quot;?await se(this,q,T$).call(this):b(this,Nn)[mo]===&quot;sse&quot;?await se(this,q,P$).call(this):It(b(this,Nn)[mo]),await b(this,pt).promise}finally{pe(this,pt,void 0)}},T$=async function({signal:e}={}){const t=await b(this,mr).connectWebSocket(void 0,b(this,mi),b(this,Zt),b(this,fi),e?{signal:e}:void 0);pe(this,we,{websocket:t}),t.addEventListener(&quot;open&quot;,()=&gt;{Q().debug(&quot;websocket open&quot;)}),t.addEventListener(&quot;message&quot;,async n=&gt;{se(this,q,kc).call(this,n.data)}),t.addEventListener(&quot;close&quot;,n=&gt;{se(this,q,Sc).call(this,n)}),t.addEventListener(&quot;error&quot;,n=&gt;{se(this,q,xc).call(this)})},P$=async function({signal:e}={}){const t=await b(this,mr).connectSse(void 0,b(this,mi),b(this,Zt),b(this,fi),e?{signal:e}:void 0);pe(this,we,{sse:t}),t.onopen=()=&gt;{Q().debug(&quot;eventsource open&quot;)},t.onmessage=n=&gt;{se(this,q,kc).call(this,n.data)},t.onerror=n=&gt;{t.readyState===t.CLOSED?se(this,q,Sc).call(this,new Event(&quot;error&quot;)):se(this,q,xc).call(this)}},U$=function(){Q().debug(&quot;socket open&quot;,{messageQueueLength:b(this,On).length}),b(this,pt)?b(this,pt).resolve(void 0):Q().warn(&quot;#onOpenPromise is undefined&quot;);for(const t of b(this,Yt).keys())se(this,q,Ba).call(this,t,!0);const e=b(this,On);pe(this,On,[]);for(const t of e)se(this,q,Fa).call(this,t)},kc=async function(e){var t;Q().trace(&quot;received message&quot;,{dataType:typeof e,isBlob:e instanceof Blob,isArrayBuffer:e instanceof ArrayBuffer});const n=await se(this,q,R$).call(this,e);if(Q().trace(&quot;parsed message&quot;,{response:JSON.stringify(n).substring(0,100)+&quot;...&quot;}),&quot;i&quot;in n.b)pe(this,dr,n.b.i.ai),pe(this,fr,n.b.i.ci),pe(this,ci,n.b.i.ct),Q().trace(&quot;received init message&quot;,{actorId:b(this,dr),connectionId:b(this,fr)}),se(this,q,U$).call(this);else if(&quot;e&quot;in n.b){const{c:i,m:r,md:o,ai:a}=n.b.e;if(a){const u=se(this,q,bc).call(this,a);Q().warn(&quot;action error&quot;,{actionId:a,actionName:u==null?void 0:u.name,code:i,message:r,metadata:o}),u.reject(new Pu(i,r,o))}else{Q().warn(&quot;connection error&quot;,{code:i,message:r,metadata:o});const u=new Pu(i,r,o);b(this,pt)&amp;&amp;b(this,pt).reject(u);for(const[s,l]of b(this,En).entries())l.reject(u),b(this,En).delete(s);se(this,q,A$).call(this,u)}}else if(&quot;ar&quot;in n.b){const{i,o:r}=n.b.ar;Q().trace(&quot;received action response&quot;,{actionId:i,outputType:r});const o=se(this,q,bc).call(this,i);Q().trace(&quot;resolving action promise&quot;,{actionId:i,actionName:o==null?void 0:o.name}),o.resolve(n.b.ar)}else&quot;ev&quot;in n.b?(Q().trace(&quot;received event&quot;,{name:n.b.ev.n,argsCount:(t=n.b.ev.a)==null?void 0:t.length}),se(this,q,C$).call(this,n.b.ev)):It(n.b)},Sc=function(e){b(this,pt)&amp;&amp;b(this,pt).reject(new Error(&quot;Closed&quot;));const t=e;t.wasClean?Q().info(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}):Q().warn(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}),pe(this,we,void 0),!b(this,zn)&amp;&amp;!b(this,li)&amp;&amp;se(this,q,$c).call(this)},xc=function(){b(this,zn)||Q().warn(&quot;socket error&quot;)},bc=function(e){const t=b(this,En).get(e);if(!t)throw new eo(`No in flight response for ${e}`);return b(this,En).delete(e),t},C$=function(e){const{n:t,a:n}=e,i=b(this,Yt).get(t);if(i){for(const r of[...i])r.callback(...n),r.once&amp;&amp;i.delete(r);i.size===0&amp;&amp;b(this,Yt).delete(t)}},A$=function(e){for(const t of[...b(this,di)])try{t(e)}catch(n){Q().error(&quot;Error in connection error handler&quot;,{error:zp(n)})}},Ic=function(e,t,n){const i={callback:t,once:n};let r=b(this,Yt).get(e);return r===void 0&amp;&amp;(r=new Set,b(this,Yt).set(e,r),se(this,q,Ba).call(this,e,!0)),r.add(i),()=&gt;{const o=b(this,Yt).get(e);o&amp;&amp;(o.delete(i),o.size===0&amp;&amp;(b(this,Yt).delete(e),se(this,q,Ba).call(this,e,!1)))}},Fa=function(e,t){if(b(this,zn))throw new Vz;let n=!1;if(!b(this,we))n=!0;else if(&quot;websocket&quot;in b(this,we))if(b(this,we).websocket.readyState===1)try{const i=E$(b(this,Zt),e);b(this,we).websocket.send(i),Q().trace(&quot;sent websocket message&quot;,{len:Qz(i)})}catch(i){Q().warn(&quot;failed to send message, added to queue&quot;,{error:i}),n=!0}else n=!0;else&quot;sse&quot;in b(this,we)?b(this,we).sse.readyState===1?se(this,q,D$).call(this,e,t):n=!0:It(b(this,we));!(t!=null&amp;&amp;t.ephemeral)&amp;&amp;n&amp;&amp;(b(this,On).push(e),Q().debug(&quot;queued connection message&quot;))},D$=async function(e,t){try{if(!b(this,dr)||!b(this,fr)||!b(this,ci))throw new eo(&quot;Missing connection ID or token.&quot;);Q().trace(&quot;sent http message&quot;,{message:JSON.stringify(e).substring(0,100)+&quot;...&quot;});const n=await b(this,mr).sendHttpMessage(void 0,b(this,dr),b(this,Zt),b(this,fr),b(this,ci),e,t!=null&amp;&amp;t.signal?{signal:t.signal}:void 0);if(!n.ok)throw new eo(`Publish message over HTTP error (${n.statusText}):
${await n.text()}`);await n.json()}catch(n){Q().warn(&quot;failed to send message, added to queue&quot;,{error:n}),t!=null&amp;&amp;t.ephemeral||b(this,On).unshift(e)}},R$=async function(e){if(b(this,Zt)===&quot;json&quot;){if(typeof e!=&quot;string&quot;)throw new Error(&quot;received non-string for json parse&quot;);return JSON.parse(e)}else if(b(this,Zt)===&quot;cbor&quot;){if(b(this,we))if(&quot;sse&quot;in b(this,we))if(typeof e==&quot;string&quot;){const t=atob(e);e=new Uint8Array([...t].map(n=&gt;n.charCodeAt(0)))}else throw new eo(`Expected data to be a string for SSE, got ${e}.`);else&quot;websocket&quot;in b(this,we)||It(b(this,we));else throw new Error(&quot;Cannot parse message when no transport defined&quot;);if(e instanceof Blob)return fo(new Uint8Array(await e.arrayBuffer()));if(e instanceof ArrayBuffer)return fo(new Uint8Array(e));if(e instanceof Uint8Array)return fo(e);throw new Error(`received non-binary type for cbor parse: ${typeof e}`)}else It(b(this,Zt))},Ba=function(e,t){se(this,q,Fa).call(this,{b:{sr:{e,s:t}}},{ephemeral:!0})},bh),xa=null;async function Yz(){return xa!==null||(xa=(async()=&gt;{let e;try{e=(await Rg(()=&gt;import(&quot;./index-z2Dkjsn_.js&quot;),[])).EventSource,Q().debug(&quot;using eventsource from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;EventSource support requires installing the &quot;eventsource&quot; peer dependency.&#39;)}},Q().debug(&quot;using mock eventsource&quot;)}return e})()),xa}function qz(e){const t=(async()=&gt;{const[i,r]=await Promise.all([NS(),Yz()]);return{WebSocket:i,EventSource:r}})();return{action:async(i,r,o,a,u,s,l)=&gt;(Q().debug(&quot;actor handle action&quot;,{name:u,args:s,query:r}),(await _h({url:`${e}/registry/actors/actions/${encodeURIComponent(u)}`,method:&quot;POST&quot;,headers:{[ir]:o,[Qr]:JSON.stringify(r),...a!==void 0?{[Xr]:JSON.stringify(a)}:{}},body:{a:s},encoding:o,signal:l==null?void 0:l.signal})).o),resolveActorId:async(i,r,o,a)=&gt;{Q().debug(&quot;resolving actor ID&quot;,{query:r});try{const u=await _h({url:`${e}/registry/actors/resolve`,method:&quot;POST&quot;,headers:{[ir]:o,[Qr]:JSON.stringify(r),...a!==void 0?{[Xr]:JSON.stringify(a)}:{}},body:{},encoding:o});return Q().debug(&quot;resolved actor ID&quot;,{actorId:u.i}),u.i}catch(u){throw Q().error(&quot;failed to resolve actor ID&quot;,{error:u}),u instanceof Pu?u:new eo(`Failed to resolve actor ID: ${String(u)}`)}},connectWebSocket:async(i,r,o,a)=&gt;{const{WebSocket:u}=await t,l=`${e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;)}/registry/actors/connect/websocket`,m=[`query.${encodeURIComponent(JSON.stringify(r))}`,`encoding.${o}`];a&amp;&amp;m.push(`conn_params.${encodeURIComponent(JSON.stringify(a))}`),m.push(&quot;rivetkit&quot;),Q().debug(&quot;connecting to websocket&quot;,{url:l});const p=new u(l,m);if(o===&quot;cbor&quot;)p.binaryType=&quot;arraybuffer&quot;;else if(o===&quot;json&quot;)try{p.binaryType=&quot;blob&quot;}catch{}else It(o);return p},connectSse:async(i,r,o,a)=&gt;{const{EventSource:u}=await t,s=`${e}/registry/actors/connect/sse`;return Q().debug(&quot;connecting to sse&quot;,{url:s}),new u(s,{fetch:(m,p)=&gt;fetch(m,{...p,headers:{...p==null?void 0:p.headers,&quot;User-Agent&quot;:Da(),[ir]:o,[Qr]:JSON.stringify(r),...a!==void 0?{[Xr]:JSON.stringify(a)}:{}},credentials:&quot;include&quot;})})},sendHttpMessage:async(i,r,o,a,u,s)=&gt;{const l=E$(o,s);return await fetch(`${e}/registry/actors/message`,{method:&quot;POST&quot;,headers:{&quot;User-Agent&quot;:Da(),[ir]:o,[_$]:r,[w$]:a,[$$]:u},body:l,credentials:&quot;include&quot;})},rawHttpRequest:async(i,r,o,a,u,s)=&gt;{const l=u.startsWith(&quot;/&quot;)?u.slice(1):u,m=`${e}/registry/actors/raw/http/${l}`;Q().debug(&quot;rewriting http url&quot;,{from:u,to:m});const p=new Headers(s.headers);return p.set(&quot;User-Agent&quot;,Da()),p.set(Qr,JSON.stringify(r)),p.set(ir,o),a!==void 0&amp;&amp;p.set(Xr,JSON.stringify(a)),await fetch(m,{...s,headers:p})},rawWebSocket:async(i,r,o,a,u,s)=&gt;{const{WebSocket:l}=await t,m=e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;),p=u.startsWith(&quot;/&quot;)?u.slice(1):u,v=`${m}/registry/actors/raw/websocket/${p}`;Q().debug(&quot;rewriting websocket url&quot;,{from:u,to:v});const _=[];return _.push(`query.${encodeURIComponent(JSON.stringify(r))}`),_.push(`encoding.${o}`),a&amp;&amp;_.push(`conn_params.${encodeURIComponent(JSON.stringify(a))}`),_.push(&quot;rivetkit&quot;),s&amp;&amp;(Array.isArray(s)?_.push(...s):_.push(s)),Q().debug(&quot;opening raw websocket&quot;,{url:v}),new l(v,_)}}}function eO(e,t){const n=qz(e);return Gz(n,t)}const tO=eO(&quot;http://localhost:8080&quot;);function nO({name:e}){const[t,n]=Pn.useState(null),[i,r]=Pn.useState(!1),o=tO.counter.getOrCreate([e]),a=async()=&gt;{const m=await(await o.fetch(&quot;/count&quot;)).json();n(m.count)},u=async()=&gt;{r(!0);try{const m=await(await o.fetch(&quot;/increment&quot;,{method:&quot;POST&quot;})).json();n(m.count)}finally{r(!1)}},s=async()=&gt;{r(!0);try{const m=await(await fetch(`http://localhost:8080/forward/${e}/increment`,{method:&quot;POST&quot;})).json();n(m.count)}finally{r(!1)}};return Pn.useEffect(()=&gt;{a()},[]),Pe.jsxs(&quot;div&quot;,{children:[Pe.jsx(&quot;h2&quot;,{children:e}),Pe.jsxs(&quot;p&quot;,{children:[&quot;Count: &quot;,t!==null?t:&quot;Loading...&quot;]}),Pe.jsx(&quot;h3&quot;,{children:&quot;Via Actor Fetch&quot;}),Pe.jsx(&quot;button&quot;,{onClick:u,disabled:i,children:&quot;Increment&quot;}),Pe.jsx(&quot;h3&quot;,{children:&quot;Via Forward Endpoint&quot;}),Pe.jsx(&quot;button&quot;,{onClick:s,disabled:i,children:&quot;Increment&quot;}),Pe.jsx(&quot;br&quot;,{}),Pe.jsx(&quot;button&quot;,{onClick:a,disabled:i,children:&quot;Refresh&quot;}),Pe.jsx(&quot;hr&quot;,{})]})}function rO(){const[e,t]=Pn.useState([&quot;counter-1&quot;,&quot;counter-2&quot;]),[n,i]=Pn.useState(&quot;&quot;),r=()=&gt;{n&amp;&amp;!e.includes(n)&amp;&amp;(t([...e,n]),i(&quot;&quot;))};return Pe.jsxs(&quot;div&quot;,{children:[Pe.jsx(&quot;h1&quot;,{children:&quot;RivetKit Raw Fetch Handler Example&quot;}),Pe.jsxs(&quot;div&quot;,{children:[Pe.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:n,onChange:o=&gt;i(o.target.value),placeholder:&quot;Counter name&quot;,onKeyPress:o=&gt;o.key===&quot;Enter&quot;&amp;&amp;r()}),Pe.jsx(&quot;button&quot;,{onClick:r,children:&quot;Add Counter&quot;})]}),Pe.jsx(&quot;hr&quot;,{}),Pe.jsx(&quot;div&quot;,{children:e.map(o=&gt;Pe.jsx(nO,{name:o},o))})]})}Qs.createRoot(document.getElementById(&quot;root&quot;)).render(Pe.jsx(nk.StrictMode,{children:Pe.jsx(rO,{})}));export{zc as g};
">
<input type="hidden" name="project[files][dist/assets/index-z2Dkjsn_.js]" value="class V extends Error{constructor(e,s){super(e),this.name=&quot;ParseError&quot;,this.type=s.type,this.field=s.field,this.value=s.value,this.line=s.line}}function A(t){}function et(t){if(typeof t==&quot;function&quot;)throw new TypeError(&quot;`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?&quot;);const{onEvent:e=A,onError:s=A,onRetry:i=A,onComment:l}=t;let r=&quot;&quot;,d=!0,u,E=&quot;&quot;,f=&quot;&quot;;function $(a){const h=d?a.replace(/^\xEF\xBB\xBF/,&quot;&quot;):a,[m,P]=st(`${r}${h}`);for(const D of m)W(D);r=P,d=!1}function W(a){if(a===&quot;&quot;){U();return}if(a.startsWith(&quot;:&quot;)){l&amp;&amp;l(a.slice(a.startsWith(&quot;: &quot;)?2:1));return}const h=a.indexOf(&quot;:&quot;);if(h!==-1){const m=a.slice(0,h),P=a[h+1]===&quot; &quot;?2:1,D=a.slice(h+P);S(m,D,a);return}S(a,&quot;&quot;,a)}function S(a,h,m){switch(a){case&quot;event&quot;:f=h;break;case&quot;data&quot;:E=`${E}${h}
`;break;case&quot;id&quot;:u=h.includes(&quot;\0&quot;)?void 0:h;break;case&quot;retry&quot;:/^\d+$/.test(h)?i(parseInt(h,10)):s(new V(`Invalid \`retry\` value: &quot;${h}&quot;`,{type:&quot;invalid-retry&quot;,value:h,line:m}));break;default:s(new V(`Unknown field &quot;${a.length&gt;20?`${a.slice(0,20)}…`:a}&quot;`,{type:&quot;unknown-field&quot;,field:a,value:h,line:m}));break}}function U(){E.length&gt;0&amp;&amp;e({id:u,event:f||void 0,data:E.endsWith(`
`)?E.slice(0,-1):E}),u=void 0,E=&quot;&quot;,f=&quot;&quot;}function T(a={}){r&amp;&amp;a.consume&amp;&amp;W(r),d=!0,u=void 0,E=&quot;&quot;,f=&quot;&quot;,r=&quot;&quot;}return{feed:$,reset:T}}function st(t){const e=[];let s=&quot;&quot;,i=0;for(;i&lt;t.length;){const l=t.indexOf(&quot;\r&quot;,i),r=t.indexOf(`
`,i);let d=-1;if(l!==-1&amp;&amp;r!==-1?d=Math.min(l,r):l!==-1?d=l:r!==-1&amp;&amp;(d=r),d===-1){s=t.slice(i);break}else{const u=t.slice(i,d);e.push(u),i=d+1,t[i-1]===&quot;\r&quot;&amp;&amp;t[i]===`
`&amp;&amp;i++}}return[e,s]}class X extends Event{constructor(e,s){var i,l;super(e),this.code=(i=s==null?void 0:s.code)!=null?i:void 0,this.message=(l=s==null?void 0:s.message)!=null?l:void 0}[Symbol.for(&quot;nodejs.util.inspect.custom&quot;)](e,s,i){return i(Y(this),s)}[Symbol.for(&quot;Deno.customInspect&quot;)](e,s){return e(Y(this),s)}}function nt(t){const e=globalThis.DOMException;return typeof e==&quot;function&quot;?new e(t,&quot;SyntaxError&quot;):new SyntaxError(t)}function F(t){return t instanceof Error?&quot;errors&quot;in t&amp;&amp;Array.isArray(t.errors)?t.errors.map(F).join(&quot;, &quot;):&quot;cause&quot;in t&amp;&amp;t.cause instanceof Error?`${t}: ${F(t.cause)}`:t.message:`${t}`}function Y(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var tt=t=&gt;{throw TypeError(t)},Q=(t,e,s)=&gt;e.has(t)||tt(&quot;Cannot &quot;+s),n=(t,e,s)=&gt;(Q(t,e,&quot;read from private field&quot;),s?s.call(t):e.get(t)),c=(t,e,s)=&gt;e.has(t)?tt(&quot;Cannot add the same private member more than once&quot;):e instanceof WeakSet?e.add(t):e.set(t,s),o=(t,e,s,i)=&gt;(Q(t,e,&quot;write to private field&quot;),e.set(t,s),s),w=(t,e,s)=&gt;(Q(t,e,&quot;access private method&quot;),s),p,_,y,I,R,L,b,N,g,C,k,x,M,v,B,q,H,Z,j,z,O,J,K;class G extends EventTarget{constructor(e,s){var i,l;super(),c(this,v),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,c(this,p),c(this,_),c(this,y),c(this,I),c(this,R),c(this,L),c(this,b),c(this,N,null),c(this,g),c(this,C),c(this,k,null),c(this,x,null),c(this,M,null),c(this,q,async r=&gt;{var d;n(this,C).reset();const{body:u,redirected:E,status:f,headers:$}=r;if(f===204){w(this,v,O).call(this,&quot;Server sent HTTP 204, not reconnecting&quot;,204),this.close();return}if(E?o(this,y,new URL(r.url)):o(this,y,void 0),f!==200){w(this,v,O).call(this,`Non-200 status code (${f})`,f);return}if(!($.get(&quot;content-type&quot;)||&quot;&quot;).startsWith(&quot;text/event-stream&quot;)){w(this,v,O).call(this,&#39;Invalid content type, expected &quot;text/event-stream&quot;&#39;,f);return}if(n(this,p)===this.CLOSED)return;o(this,p,this.OPEN);const W=new Event(&quot;open&quot;);if((d=n(this,M))==null||d.call(this,W),this.dispatchEvent(W),typeof u!=&quot;object&quot;||!u||!(&quot;getReader&quot;in u)){w(this,v,O).call(this,&quot;Invalid response body, expected a web ReadableStream&quot;,f),this.close();return}const S=new TextDecoder,U=u.getReader();let T=!0;do{const{done:a,value:h}=await U.read();h&amp;&amp;n(this,C).feed(S.decode(h,{stream:!a})),a&amp;&amp;(T=!1,n(this,C).reset(),w(this,v,J).call(this))}while(T)}),c(this,H,r=&gt;{o(this,g,void 0),!(r.name===&quot;AbortError&quot;||r.type===&quot;aborted&quot;)&amp;&amp;w(this,v,J).call(this,F(r))}),c(this,j,r=&gt;{typeof r.id==&quot;string&quot;&amp;&amp;o(this,N,r.id);const d=new MessageEvent(r.event||&quot;message&quot;,{data:r.data,origin:n(this,y)?n(this,y).origin:n(this,_).origin,lastEventId:r.id||&quot;&quot;});n(this,x)&amp;&amp;(!r.event||r.event===&quot;message&quot;)&amp;&amp;n(this,x).call(this,d),this.dispatchEvent(d)}),c(this,z,r=&gt;{o(this,L,r)}),c(this,K,()=&gt;{o(this,b,void 0),n(this,p)===this.CONNECTING&amp;&amp;w(this,v,B).call(this)});try{if(e instanceof URL)o(this,_,e);else if(typeof e==&quot;string&quot;)o(this,_,new URL(e,it()));else throw new Error(&quot;Invalid URL&quot;)}catch{throw nt(&quot;An invalid or illegal string was specified&quot;)}o(this,C,et({onEvent:n(this,j),onRetry:n(this,z)})),o(this,p,this.CONNECTING),o(this,L,3e3),o(this,R,(i=s==null?void 0:s.fetch)!=null?i:globalThis.fetch),o(this,I,(l=s==null?void 0:s.withCredentials)!=null?l:!1),w(this,v,B).call(this)}get readyState(){return n(this,p)}get url(){return n(this,_).href}get withCredentials(){return n(this,I)}get onerror(){return n(this,k)}set onerror(e){o(this,k,e)}get onmessage(){return n(this,x)}set onmessage(e){o(this,x,e)}get onopen(){return n(this,M)}set onopen(e){o(this,M,e)}addEventListener(e,s,i){const l=s;super.addEventListener(e,l,i)}removeEventListener(e,s,i){const l=s;super.removeEventListener(e,l,i)}close(){n(this,b)&amp;&amp;clearTimeout(n(this,b)),n(this,p)!==this.CLOSED&amp;&amp;(n(this,g)&amp;&amp;n(this,g).abort(),o(this,p,this.CLOSED),o(this,g,void 0))}}p=new WeakMap,_=new WeakMap,y=new WeakMap,I=new WeakMap,R=new WeakMap,L=new WeakMap,b=new WeakMap,N=new WeakMap,g=new WeakMap,C=new WeakMap,k=new WeakMap,x=new WeakMap,M=new WeakMap,v=new WeakSet,B=function(){o(this,p,this.CONNECTING),o(this,g,new AbortController),n(this,R)(n(this,_),w(this,v,Z).call(this)).then(n(this,q)).catch(n(this,H))},q=new WeakMap,H=new WeakMap,Z=function(){var t;const e={mode:&quot;cors&quot;,redirect:&quot;follow&quot;,headers:{Accept:&quot;text/event-stream&quot;,...n(this,N)?{&quot;Last-Event-ID&quot;:n(this,N)}:void 0},cache:&quot;no-store&quot;,signal:(t=n(this,g))==null?void 0:t.signal};return&quot;window&quot;in globalThis&amp;&amp;(e.credentials=this.withCredentials?&quot;include&quot;:&quot;same-origin&quot;),e},j=new WeakMap,z=new WeakMap,O=function(t,e){var s;n(this,p)!==this.CLOSED&amp;&amp;o(this,p,this.CLOSED);const i=new X(&quot;error&quot;,{code:e,message:t});(s=n(this,k))==null||s.call(this,i),this.dispatchEvent(i)},J=function(t,e){var s;if(n(this,p)===this.CLOSED)return;o(this,p,this.CONNECTING);const i=new X(&quot;error&quot;,{code:e,message:t});(s=n(this,k))==null||s.call(this,i),this.dispatchEvent(i),o(this,b,setTimeout(n(this,K),n(this,L)))},K=new WeakMap,G.CONNECTING=0,G.OPEN=1,G.CLOSED=2;function it(){const t=&quot;document&quot;in globalThis?globalThis.document:void 0;return t&amp;&amp;typeof t==&quot;object&quot;&amp;&amp;&quot;baseURI&quot;in t&amp;&amp;typeof t.baseURI==&quot;string&quot;?t.baseURI:void 0}export{X as ErrorEvent,G as EventSource};
">
<input type="hidden" name="project[files][src/backend/registry.ts]" value="import { type ActorContextOf, actor, setup } from &quot;@rivetkit/actor&quot;;
import { Hono } from &quot;hono&quot;;

export const counter = actor({
	state: {
		count: 0,
	},
	onAuth: () =&gt; {
		// Skip auth, make onFetch public
		return {};
	},
	createVars: () =&gt; {
		// Setup router
		return { router: createCounterRouter() };
	},
	onFetch: (c, request) =&gt; {
		return c.vars.router.fetch(request, { actor: c });
	},
	actions: {
		// ...actions...
	},
});

function createCounterRouter(): Hono&lt;any&gt; {
	const app = new Hono&lt;{
		Bindings: { actor: ActorContextOf&lt;typeof counter&gt; };
	}&gt;();

	app.get(&quot;/count&quot;, (c) =&gt; {
		const { actor } = c.env;

		return c.json({
			count: actor.state.count,
		});
	});

	app.post(&quot;/increment&quot;, (c) =&gt; {
		const { actor } = c.env;

		actor.state.count++;
		return c.json({
			count: actor.state.count,
		});
	});

	return app;
}

export const registry = setup({
	use: { counter },
});
">
<input type="hidden" name="project[files][src/backend/server.ts]" value="import { Hono } from &quot;hono&quot;;
import { cors } from &quot;hono/cors&quot;;
import { registry } from &quot;./registry&quot;;

// Start RivetKit
const { client, serve } = registry.createServer();

// Setup router
const app = new Hono();

app.use(
	cors({
		origin: &quot;http://localhost:5173&quot;,
	}),
);

app.get(&quot;/&quot;, (c) =&gt; {
	return c.json({ message: &quot;Fetch Handler Example Server&quot; });
});

// Forward requests to actor&#39;s fetch handler
app.all(&quot;/forward/:name/*&quot;, async (c) =&gt; {
	const name = c.req.param(&quot;name&quot;);

	// Create new URL with the path truncated
	const truncatedPath = c.req.path.replace(`/forward/${name}`, &quot;&quot;);
	const url = new URL(truncatedPath, c.req.url);
	const newRequest = new Request(url, c.req.raw);

	// Forward to actor&#39;s fetch handler
	const actor = client.counter.getOrCreate(name);
	const response = await actor.fetch(truncatedPath, newRequest);

	return response;
});

serve(app);

export { client };
">
<input type="hidden" name="project[files][src/frontend/App.tsx]" value="import { useState, useEffect } from &quot;react&quot;;
import { createClient } from &quot;@rivetkit/react&quot;;
import type { registry } from &quot;../backend/registry&quot;;

// Create a client that connects to the running server
const client = createClient&lt;typeof registry&gt;(&quot;http://localhost:8080&quot;);

function Counter({ name }: { name: string }) {
	const [count, setCount] = useState&lt;number | null&gt;(null);
	const [loading, setLoading] = useState(false);

	const actor = client.counter.getOrCreate([name]);

	const fetchCount = async () =&gt; {
		const response = await actor.fetch(&quot;/count&quot;);
		const data = await response.json();
		setCount(data.count);
	};

	const handleIncrement = async () =&gt; {
		setLoading(true);
		try {
			// Method 1: Using fetch API
			const response = await actor.fetch(&quot;/increment&quot;, { method: &quot;POST&quot; });
			const data = await response.json();
			setCount(data.count);
		} finally {
			setLoading(false);
		}
	};

	const handleForwardIncrement = async () =&gt; {
		setLoading(true);
		try {
			// Method 2: Using the forward endpoint
			const response = await fetch(`http://localhost:8080/forward/${name}/increment`, {
				method: &quot;POST&quot;,
			});
			const data = await response.json();
			setCount(data.count);
		} finally {
			setLoading(false);
		}
	};

	useEffect(() =&gt; {
		fetchCount();
	}, []);

	return (
		&lt;div&gt;
			&lt;h2&gt;{name}&lt;/h2&gt;
			&lt;p&gt;Count: {count !== null ? count : &quot;Loading...&quot;}&lt;/p&gt;
			
			&lt;h3&gt;Via Actor Fetch&lt;/h3&gt;
			&lt;button onClick={handleIncrement} disabled={loading}&gt;
				Increment
			&lt;/button&gt;
			
			&lt;h3&gt;Via Forward Endpoint&lt;/h3&gt;
			&lt;button onClick={handleForwardIncrement} disabled={loading}&gt;
				Increment
			&lt;/button&gt;
			
			&lt;br /&gt;
			&lt;button onClick={fetchCount} disabled={loading}&gt;
				Refresh
			&lt;/button&gt;
			&lt;hr /&gt;
		&lt;/div&gt;
	);
}

function App() {
	const [counters, setCounters] = useState([&quot;counter-1&quot;, &quot;counter-2&quot;]);
	const [newCounterName, setNewCounterName] = useState(&quot;&quot;);

	const addCounter = () =&gt; {
		if (newCounterName &amp;&amp; !counters.includes(newCounterName)) {
			setCounters([...counters, newCounterName]);
			setNewCounterName(&quot;&quot;);
		}
	};

	return (
		&lt;div&gt;
			&lt;h1&gt;RivetKit Raw Fetch Handler Example&lt;/h1&gt;
			
			&lt;div&gt;
				&lt;input
					type=&quot;text&quot;
					value={newCounterName}
					onChange={(e) =&gt; setNewCounterName(e.target.value)}
					placeholder=&quot;Counter name&quot;
					onKeyPress={(e) =&gt; e.key === &quot;Enter&quot; &amp;&amp; addCounter()}
				/&gt;
				&lt;button onClick={addCounter}&gt;Add Counter&lt;/button&gt;
			&lt;/div&gt;
			
			&lt;hr /&gt;
			
			&lt;div&gt;
				{counters.map((name) =&gt; (
					&lt;Counter key={name} name={name} /&gt;
				))}
			&lt;/div&gt;
		&lt;/div&gt;
	);
}

export default App;
">
<input type="hidden" name="project[files][src/frontend/index.html]" value="&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
    &lt;title&gt;RivetKit Fetch Handler Example&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
    &lt;script type=&quot;module&quot; src=&quot;/main.tsx&quot;&gt;&lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;">
<input type="hidden" name="project[files][src/frontend/main.tsx]" value="import React from &quot;react&quot;;
import ReactDOM from &quot;react-dom/client&quot;;
import App from &quot;./App&quot;;

ReactDOM.createRoot(document.getElementById(&quot;root&quot;)!).render(
  &lt;React.StrictMode&gt;
    &lt;App /&gt;
  &lt;/React.StrictMode&gt;
);">
<input type="hidden" name="project[description]" value="generated by https://pkg.pr.new">
<input type="hidden" name="project[template]" value="node">
<input type="hidden" name="project[title]" value="example-raw-fetch-handler">
</form>
<script>document.getElementById("mainForm").submit();</script>

</body></html>