@teammy/server 0.2.19 → 0.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/main.js +30 -7
  2. package/dist/web/assets/Assistant-By7rPMl2.js +1 -0
  3. package/dist/web/assets/Computers-B4ZMJ8tu.js +13 -0
  4. package/dist/web/assets/{Conversation-Bdsoobmv.js → Conversation-BjRCD81A.js} +1 -1
  5. package/dist/web/assets/Dashboard-DmtWx-WI.js +1 -0
  6. package/dist/web/assets/Dropdown-DXEtBxVr.js +55 -0
  7. package/dist/web/assets/Dropdown-ktgqMqAD.css +1 -0
  8. package/dist/web/assets/Files-4IxSFpqk.js +1 -0
  9. package/dist/web/assets/{Help-DHZAzK6c.js → Help-BeJ09zt7.js} +17 -8
  10. package/dist/web/assets/{Markdown-Gk89fXoh.js → Markdown-DGF8VSqv.js} +4 -4
  11. package/dist/web/assets/{MessageComposer-DFvWZibH.js → MessageComposer-0eprbRl2.js} +1 -1
  12. package/dist/web/assets/ResourceLibrary-rlrdDWGo.js +6 -0
  13. package/dist/web/assets/TerminalPane-CEaXud0k.js +22 -0
  14. package/dist/web/assets/WorkspaceTree-CwGvdfr0.js +1 -0
  15. package/dist/web/assets/{file-links-CtHFx6cd.js → file-links-Bo7XBz3i.js} +1 -1
  16. package/dist/web/assets/index-CeKzFsxV.css +1 -0
  17. package/dist/web/assets/index-Cr9kdjwc.js +10 -0
  18. package/dist/web/assets/task-links-B7fExlHK.js +1 -0
  19. package/dist/web/downloads/teammy-inbox-skill.zip +0 -0
  20. package/dist/web/downloads/teammy-skill.zip +0 -0
  21. package/dist/web/index.html +4 -3
  22. package/package.json +1 -1
  23. package/dist/web/assets/Assistant-BAhJ1B8n.js +0 -1
  24. package/dist/web/assets/Computers-hHQYztG9.js +0 -13
  25. package/dist/web/assets/Dashboard-De-8jlcE.js +0 -1
  26. package/dist/web/assets/Dropdown-Dh9Q9fSi.js +0 -55
  27. package/dist/web/assets/Files-DYc1q61J.js +0 -1
  28. package/dist/web/assets/ResourceLibrary-DYwZzWyh.js +0 -6
  29. package/dist/web/assets/TerminalPane-ZhM38vie.js +0 -22
  30. package/dist/web/assets/WorkspaceTree-yST2ByxM.js +0 -1
  31. package/dist/web/assets/index-CWjsEUUy.js +0 -10
  32. package/dist/web/assets/index-u6KD7Soy.css +0 -1
  33. package/dist/web/assets/task-links-ArhNpuGG.js +0 -1
@@ -0,0 +1,55 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));function u(){return document.querySelector(`meta[name="teammy-base-path"]`)?.content??``}function d(e){let t=u();return!e.startsWith(`/`)||e.startsWith(`//`)||!t||e===t||e.startsWith(t+`/`)||e.startsWith(t+`?`)?e:t+e}function f(){let e=u();return e&&(location.pathname===e||location.pathname.startsWith(e+`/`))?location.pathname.slice(e.length)||`/`:location.pathname}function p(e,t,n=``){return d(`/projects/${encodeURIComponent(e)}/help?${new URLSearchParams({doc:t})}${n}`)}function m(){return location.origin+u()}var h=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,ee={};function v(e,t,n){this.props=e,this.context=t,this.refs=ee,this.updater=n||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function te(){}te.prototype=v.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=ee,this.updater=n||g}var ne=y.prototype=new te;ne.constructor=y,_(ne,v.prototype),ne.isPureReactComponent=!0;var re=Array.isArray;function ie(){}var b={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function oe(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function se(e,t){return oe(e.type,t,e.props)}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ce(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var S=/\/+/g;function le(e,t){return typeof e==`object`&&e&&e.key!=null?ce(``+e.key):t.toString(36)}function ue(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(ie,ie):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function C(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,C(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+le(e,0):a,re(o)?(i=``,c!=null&&(i=c.replace(S,`$&/`)+`/`),C(o,r,i,``,function(e){return e})):o!=null&&(x(o)&&(o=se(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(S,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(re(e))for(var u=0;u<e.length;u++)a=e[u],s=l+le(a,u),c+=C(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+le(a,u++),c+=C(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return C(ue(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function de(e,t,n){if(e==null)return e;var r=[],i=0;return C(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function w(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var fe=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function pe(e){var t=b.T,n={};n.types=t===null?null:t.types,b.T=n;try{var r=e(),i=b.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(ie,fe)}catch(e){fe(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),b.T=t}}function me(e){var t=b.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else pe(me.bind(null,e))}var he={map:de,forEach:function(e,t,n){de(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return de(e,function(){t++}),t},toArray:function(e){return de(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=he,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return b.H.useMemoCache(e)}},e.addTransitionType=me,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!ae.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return oe(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)ae.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return oe(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=x,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:w}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=pe,e.unstable_useCacheRefresh=function(){return b.H.useCacheRefresh()},e.use=function(e){return b.H.use(e)},e.useActionState=function(e,t,n){return b.H.useActionState(e,t,n)},e.useCallback=function(e,t){return b.H.useCallback(e,t)},e.useContext=function(e){return b.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return b.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return b.H.useEffect(e,t)},e.useEffectEvent=function(e){return b.H.useEffectEvent(e)},e.useId=function(){return b.H.useId()},e.useImperativeHandle=function(e,t,n){return b.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return b.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return b.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return b.H.useMemo(e,t)},e.useOptimistic=function(e,t){return b.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return b.H.useReducer(e,t,n)},e.useRef=function(e){return b.H.useRef(e)},e.useState=function(e){return b.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return b.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return b.H.useTransition()},e.version=`19.3.1`})),g=o(((e,t)=>{t.exports=h()})),_=o((e=>{var t=g();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),ee=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_()}));function v(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function te(e,t=`|`){return e.map(e=>Se(e)).join(t)}function y(e,t){return typeof t==`bigint`?t.toString():t}var ne=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function re(e){return new ne(e)}function ie(e){return e==null}function b(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function ae(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var oe=Symbol(`evaluating`);function se(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==oe)return r===void 0&&(r=oe,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function x(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ce(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function S(e){return ce(e._zod.def)??e._zod.def.shape}function le(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return x(this,t,e),e},enumerable:!0,configurable:!0})}function ue(e,t,n){t in e?x(e,t,n):e[t]=n}function C(e,t,n,r){let i=S(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?le(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):ue(e,a,r?r(n.value,a):n.value))}}function de(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?le(e,n,()=>t[n]):ue(e,n,r.value))}}function w(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function fe(e){return JSON.stringify(e)}function pe(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var me=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function he(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ge=re(()=>{if(A.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function _e(e){if(he(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return he(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function ve(e){return _e(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var ye=new Set([`string`,`number`,`symbol`]);function be(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function xe(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function T(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Se(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Ce(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var we={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Te={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function Ee(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return C(i,e,De(e,t)),xe(e,w(n,{shape:i,checks:[]}))}function De(e,t){let n=S(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function Oe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(De(e,t)),a={};return C(a,e,Reflect.ownKeys(S(e)).filter(e=>!i.has(e))),xe(e,w(n,{shape:a,checks:[]}))}function ke(e,t){if(!_e(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=S(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return xe(e,w(e._zod.def,{shape:Ae(e,t)}))}function Ae(e,t){let n={};return C(n,e,Reflect.ownKeys(S(e))),de(n,t),n}function je(e,t){if(!_e(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return xe(e,w(e._zod.def,{shape:Ae(e,t)}))}function Me(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return C(n,e,Reflect.ownKeys(S(e))),C(n,t,Reflect.ownKeys(S(t))),xe(e,w(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Ne(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(De(t,n)):void 0,o={};return C(o,t,Reflect.ownKeys(S(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),xe(t,w(t._zod.def,{shape:o,checks:[]}))}function Pe(e,t,n){let r=n?new Set(De(t,n)):void 0,i={};return C(i,t,Reflect.ownKeys(S(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),xe(t,w(t._zod.def,{shape:i}))}function E(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Fe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ie(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Le(e){return typeof e==`string`?e:e?.message}function Re(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function ze(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function D(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:Le(e.inst?._zod.def?.error?.(e))??Le(a?.(e))??Le(t?.error?.(e))??Le(n.customError?.(e))??Le(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Be=/[\uD800-\uDBFF]/;function Ve(e){let t=e.length;if(!Be.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function He(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Ue(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function We(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ge(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Ye(e,n,r.value)}}function Ke(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function qe(e,t,n){return Ke(e,t,n,!1)}function Je(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Ke(this,n,r(this))},set(e){Ke(this,n,e)}})}return t}function Ye(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Ke(this,t,n.bind(this))},set(e){Ke(this,t,e)}})}function Xe(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Ze,Qe=!1,$e={configurable:!0,get(){Qe=!0}};function O(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Ze!==e._zod?Ze=void 0:(Ze=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,$e);let e=Qe;Qe=!1;try{let r=n(this);return Qe?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),Qe||=e,r}catch(n){throw delete this[t],Qe||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function et(e,t,n,r){let i=Xe(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var tt=`~constantCatch`;function nt(e){let t=()=>e;return t[tt]=!0,t}var rt,it={value:void 0,enumerable:!1},at=`captureStackTrace`in Error?Error:null;function ot(e){let t=at;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return at=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function k(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){it.value=new a(r);try{Object.defineProperty(n,"_zod",it)}finally{it.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Ge(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?ot(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var st=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ct=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(rt=globalThis).__zod_globalConfig??(rt.__zod_globalConfig={});var A=globalThis.__zod_globalConfig;function j(e){return e&&Object.assign(A,e),A}function lt(){let e=this._zod;return e.message??=JSON.stringify(e.def,y,2),e.message}function ut(e){this._zod.message=e}var dt={get:lt,set:ut,enumerable:!0,configurable:!0},ft={value:void 0,enumerable:!1},pt=new WeakSet([Object.prototype,Error.prototype]),mt=k(`$ZodError`,(e,t)=>{e.name=`$ZodError`,ft.value=t,Object.defineProperty(e,"issues",ft),ft.value=void 0,Object.defineProperty(e,"message",dt);let n=Object.getPrototypeOf(e);pt.has(n)||(pt.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))});function ht(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function gt(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?ht(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function _t(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function vt(e,t){return{callee:t?.callee??e,Err:t?.Err}}var yt=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new st;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>D(e,o,j())));throw me(n,a?.callee??t),n}return s.value};return t},bt=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>D(e,o,j())));throw me(n,a?.callee??t),n}return s.value};return t},xt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new st;return a.issues.length?St(e,a.issues,i):{success:!0,data:a.value}};function St(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>D(e,n,j()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var Ct=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?St(e,a.issues,i):{success:!0,data:a.value}},wt=Symbol.for(`zod.compile.invalid`),Tt=Symbol.for(`zod.compile.fallback`),Et=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==wt)return!0;if(r.definite===!0&&n===void 0)return!1}return Dt(e,t,n)});function Dt(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[Tt]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new st;return a.issues.length===0}var Ot=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},kt=e=>{let t=yt(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,vt(n,a))};return n},At=e=>{let t=yt(e),n=(e,r,i,a)=>t(e,r,i,vt(n,a));return n},jt=e=>{let t=bt(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,vt(n,a))};return n},Mt=e=>{let t=bt(e),n=async(e,r,i,a)=>await t(e,r,i,vt(n,a));return n},Nt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return xt(e)(t,n,i)},Pt=e=>(t,n,r)=>xt(e)(t,n,r),Ft=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ct(e)(t,n,i)},It=e=>async(t,n,r)=>Ct(e)(t,n,r),Lt=/^[cC][0-9a-z]{6,}$/,Rt=/^[0-9a-z]+$/,zt=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Bt=/^[0-9a-vA-V]{20}$/,Vt=/^[A-Za-z0-9]{27}$/,Ht=/^[a-zA-Z0-9_-]{21}$/;function Ut(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Wt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Gt=/^([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})$/,Kt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,qt=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Jt=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function Yt(){return new RegExp(Jt,`u`)}var Xt=/^(?:(?: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])$/,Zt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Qt=/^((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])$/,$t=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,en=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tn=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,nn=/^https?$/,rn=/^\+[1-9]\d{6,14}$/,an=`(?:(?:\\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])))`;function on(e){return RegExp(`^${e}$`)}var sn=on(an);function cn(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ln(e){return RegExp(`^${cn(e)}$`)}function un(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${cn({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${cn({precision:e.precision})}`:n;return RegExp(`^${an}T(?:${r})$`)}var dn=/^[\s\S]{0,}$/,fn=/^-?\d+$/,pn=/^-?\d+(?:\.\d+)?$/,mn=/^(?:true|false)$/i,hn=/^[^A-Z]*$/,gn=/^[^a-z]*$/,M=k(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),_n=e=>{let t=e.value;return!ie(t)&&t.length!==void 0},vn={number:`number`,bigint:`bigint`,object:`date`},yn=k(`$ZodCheckLessThan`,(e,t)=>{M.init(e,t);let n=vn[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:vn[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),bn=k(`$ZodCheckGreaterThan`,(e,t)=>{M.init(e,t);let n=vn[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:vn[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),xn=k(`$ZodCheckMultipleOf`,(e,t)=>{M.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):ae(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Sn=k(`$ZodCheckNumberFormat`,(e,t)=>{M.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=we[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Cn=k(`$ZodCheckMaxLength`,(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=_n),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Ve(r):i)<=t.maximum)return;let a=He(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),wn=k(`$ZodCheckMinLength`,(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=_n),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Ve(r):i)>=t.minimum)return;let a=He(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Tn=k(`$ZodCheckLengthEquals`,(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=_n),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Ve(r):i;if(a===t.length)return;let o=He(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),En=k(`$ZodCheckStringFormat`,(e,t)=>{var n,r;M.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Dn=k(`$ZodCheckRegex`,(e,t)=>{En.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),On=k(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=hn,En.init(e,t)}),kn=k(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=gn,En.init(e,t)}),An=k(`$ZodCheckIncludes`,(e,t)=>{M.init(e,t);let n=be(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),jn=k(`$ZodCheckStartsWith`,(e,t)=>{M.init(e,t);let n=RegExp(`^${be(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Mn=k(`$ZodCheckEndsWith`,(e,t)=>{M.init(e,t);let n=RegExp(`.*${be(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Nn=k(`$ZodCheckOverwrite`,(e,t)=>{M.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Pn=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
2
+ `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
3
+ `)}\n};`)(...Object.values(this.closed))}},Fn={major:4,minor:6,patch:7},N=k(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Fn;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=E(t),a;for(let o of n){if(o._zod.def.when){if(Fe(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new st;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(ze(t.issues,n,e),i||=E(t,n))});else{if(t.issues.length===n)continue;ze(t.issues,n,e),i||=E(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(E(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new st;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new st;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return qe(this,`~standard`,Rn(this))},set"~standard"(e){Ke(this,`~standard`,e)}}),In=(e,t)=>e.issues.length?{issues:e.issues.map(e=>D(e,t,j()))}:{value:e.value};async function Ln(e,t){let n={async:!0};return In(await e._zod.run({value:t,issues:[]},n),n)}function Rn(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return In(r,n)}catch{}return Ln(e,t)},vendor:`zod`,version:1}}var zn=k(`$ZodString`,(e,t)=>{N.init(e,t),e._zod.pattern=t.pattern??dn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),P=k(`$ZodStringFormat`,(e,t)=>{En.init(e,t),zn.init(e,t)}),Bn=k(`$ZodGUID`,(e,t)=>{t.pattern??=Gt,P.init(e,t)}),Vn=k(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Kt(e)}else t.pattern??=Kt();P.init(e,t)}),Hn=k(`$ZodEmail`,(e,t)=>{t.pattern??=qt,P.init(e,t)});function Un(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Wn(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?Un(e)||2:Gn(e,t)}function Gn(e,t){if(!t.normalize&&t.protocol?.source===nn.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var Kn=/[\t\n\r]/g;function qn(e){return e.replace(Kn,``)}function Jn(e,t){return t.lastIndex=0,t.test(e.hostname)}function Yn(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var Xn=k(`$ZodURL`,(e,t)=>{P.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=Wn(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=qn(r);return}t.hostname&&!Jn(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Yn(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:qn(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Zn=k(`$ZodEmoji`,(e,t)=>{t.pattern??=Yt(),P.init(e,t)}),Qn=k(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?Ht:Ut(t.length),P.init(e,t)}),$n=k(`$ZodCUID`,(e,t)=>{t.pattern??=Lt,P.init(e,t)}),er=k(`$ZodCUID2`,(e,t)=>{t.pattern??=Rt,P.init(e,t)}),tr=k(`$ZodULID`,(e,t)=>{t.pattern??=zt,P.init(e,t)}),nr=k(`$ZodXID`,(e,t)=>{t.pattern??=Bt,P.init(e,t)}),rr=k(`$ZodKSUID`,(e,t)=>{t.pattern??=Vt,P.init(e,t)}),ir=k(`$ZodISODateTime`,(e,t)=>{t.pattern??=un(t),P.init(e,t)}),ar=k(`$ZodISODate`,(e,t)=>{t.pattern??=sn,P.init(e,t)}),or=k(`$ZodISOTime`,(e,t)=>{t.pattern??=ln(t),P.init(e,t)}),sr=k(`$ZodISODuration`,(e,t)=>{t.pattern??=Wt,P.init(e,t)}),cr=k(`$ZodIPv4`,(e,t)=>{t.pattern??=Xt,P.init(e,t)}),lr=/^[0-9a-fA-F:.]+$/;function ur(e){return lr.test(e)?Un(`http://[${e}]`):!1}var dr=k(`$ZodIPv6`,(e,t)=>{t.pattern??=Zt,P.init(e,t),e._zod.check=n=>{ur(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),fr=k(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Qt,P.init(e,t)});function pr(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:ur(n)}var mr=k(`$ZodCIDRv6`,(e,t)=>{t.pattern??=$t,P.init(e,t),e._zod.check=n=>{pr(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function hr(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var gr=/^[0-9a-zA-Z+/]*={0,2}$/,_r=k(`$ZodBase64`,(e,t)=>{t.pattern??=gr,P.init(e,t),e._zod.check=n=>{hr(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),vr=/^[A-Za-z0-9_-]*$/;function yr(e){if(!vr.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return hr(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var br=k(`$ZodBase64URL`,(e,t)=>{t.pattern??=vr,P.init(e,t),e._zod.check=n=>{yr(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),xr=k(`$ZodE164`,(e,t)=>{t.pattern??=rn,P.init(e,t)});function Sr(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Cr=k(`$ZodJWT`,(e,t)=>{P.init(e,t),e._zod.check=n=>{Sr(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),wr=k(`$ZodNumber`,(e,t)=>{N.init(e,t),e._zod.pattern=pn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Tr=k(`$ZodNumberFormat`,(e,t)=>{Sn.init(e,t),wr.init(e,t)}),Er=k(`$ZodBoolean`,(e,t)=>{N.init(e,t),e._zod.pattern=mn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Dr=k(`$ZodUnknown`,(e,t)=>{N.init(e,t),e._zod.parse=e=>e}),Or=k(`$ZodNever`,(e,t)=>{N.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function kr(e,t){let n=Re(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of Re(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,ze(n.issues,t,e),n}}return i(n,a)}}var Ar=e=>Array.isArray(e)?e.length:-1;function jr(e,t,n){e.issues.length&&t.issues.push(...Ie(n,e.issues)),t.value[n]=e.value}var Mr=k(`$ZodArray`,(e,t)=>{N.init(e,t);let n=A.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>jr(t,r,e)));else if(jr(c,r,e),s&&c.issues.length!==0&&E(c))break}return o.length?Promise.all(o).then(()=>r):r},kr(e,Ar)});function Nr(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...Ie(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var Pr=[];function Fr(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Pr,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=Ce(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function Ir(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(E(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Nr(e,n,i,t,d,f))):Nr(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Lr=k(`$ZodObject`,(e,t)=>{N.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=re(()=>Fr(t));O(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||x(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=he,o=t.catchall,s,c=A.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(E(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>Nr(n,t,e,r,a,o))):Nr(s,t,e,r,a,o)}return o?Ir(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Rr=k(`$ZodObjectJIT`,(e,t)=>{Lr.init(e,t);let n=e._zod.parse,r=re(()=>Fr(t)),i=A.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new Pn([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
4
+ let ${e}_ab = false;
5
+ for (let i = 0; i < ${e}.issues.length; i++) {
6
+ const iss = ${e}.issues[i];
7
+ iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
8
+ payload.issues.push(iss);
9
+ if (iss.continue !== true) ${e}_ab = true;
10
+ }
11
+ if (${e}_ab && ctx && ctx.abortEarly) {
12
+ payload.value = newResult;
13
+ return payload;
14
+ }`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:fe(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
15
+ const ${n}_present = ${i};
16
+ if (!${n}.issues.length || ${n}_present) {
17
+ if (${n}.issues.length) {${c(n,r)}
18
+ }
19
+
20
+ if (${e}) {
21
+ newResult[${r}] = ${n}.value;
22
+ }
23
+ }
24
+
25
+ `)}else f?(o.write(`
26
+ if (${n}.issues.length) {${c(n,r)}
27
+ }
28
+ `),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
29
+ if (${n}.value !== undefined || ${i}) {
30
+ newResult[${r}] = ${n}.value;
31
+ }
32
+ `)):o.write(`
33
+ const ${n}_present = ${i};
34
+ if (${n}.issues.length) {${c(n,r)}
35
+ }
36
+ if (!${n}_present && !${n}.issues.length) {
37
+ payload.issues.push({
38
+ code: "invalid_type",
39
+ expected: "nonoptional",
40
+ input: undefined,
41
+ path: [${r}]
42
+ });
43
+ if (ctx && ctx.abortEarly) {
44
+ payload.value = newResult;
45
+ return payload;
46
+ }
47
+ }
48
+
49
+ if (${n}_present) {
50
+ newResult[${r}] = ${n}.value;
51
+ }
52
+
53
+ `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=he,c=!A.jitless,l=c&&ge.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?Ir([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function zr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!E(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>D(e,r,j())))}),t)}var Br=k(`$ZodUnion`,(e,t)=>{N.init(e,t),O(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),O(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),O(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),O(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>b(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>zr(t,r,e,i)):zr(o,r,e,i)}});function Vr(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var Hr=k(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Br.init(e,t);let n=e._zod.parse;O(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||x(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=ce(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=re(()=>Vr(t));e._zod.parse=(i,a)=>{let o=i.value;if(!he(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),Ur=k(`$ZodIntersection`,(e,t)=>{N.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Gr(e,t,n)):Gr(e,i,a)}});function Wr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(_e(e)&&_e(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Wr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Wr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Gr(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Wr(t.value,n.value);if(!c.valid){if(E(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Kr=k(`$ZodRecord`,(e,t)=>{N.init(e,t);let n=A.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!_e(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>D(e,i,j())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...Ie(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...Ie(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&pn.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>D(e,i,j())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...Ie(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...Ie(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),qr=k(`$ZodEnum`,(e,t)=>{N.init(e,t);let n=v(t.entries),r=new Set(n);e._zod.values=r,O(e,`pattern`,e=>{let t=v(e.def.entries).filter(e=>ye.has(typeof e));return RegExp(t.length?`^(${t.map(e=>be(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Jr=k(`$ZodLiteral`,(e,t)=>{N.init(e,t);let n=new Set(t.values);e._zod.values=n,O(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?be(e):e?be(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Yr=k(`$ZodTransform`,(e,t)=>{N.init(e,t),e._zod.optin=`optional`,A.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ct(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new st;return n.value=i,n}});function Xr(e,t){return e.value=t.issues.length?void 0:t.value,e}var Zr=k(`$ZodOptional`,(e,t)=>{N.init(e,t),O(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,O(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),O(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${b(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>Xr(e,t)):Xr(e,r)}return t.innerType._zod.run(e,n)}}),Qr=k(`$ZodExactOptional`,(e,t)=>{Zr.init(e,t),O(e,`values`,e=>e.def.innerType._zod.values),O(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),$r=k(`$ZodNullable`,(e,t)=>{N.init(e,t),O(e,`optin`,e=>e.def.innerType._zod.optin),O(e,`optout`,e=>e.def.innerType._zod.optout),O(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${b(t.source)}|null)$`):void 0}),O(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ei=k(`$ZodDefault`,(e,t)=>{N.init(e,t),e._zod.optin=`defaulted`,O(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>ti(e,t)):ti(r,t)}});function ti(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ni=k(`$ZodPrefault`,(e,t)=>{N.init(e,t),e._zod.optin=`defaulted`,O(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ri=k(`$ZodNonOptional`,(e,t)=>{N.init(e,t),O(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ii(t,e)):ii(i,e)}});function ii(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function ai(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>D(e,r,j()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var oi=k(`$ZodCatch`,(e,t)=>{N.init(e,t),O(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),O(e,`optout`,e=>e.def.innerType._zod.optout),O(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>ai(e,r,t,n)):ai(e,r,t,n)}}),si=k(`$ZodPipe`,(e,t)=>{N.init(e,t),O(e,`values`,e=>e.def.in._zod.values),O(e,`optin`,e=>e.def.in._zod.optin),O(e,`optout`,e=>e.def.out._zod.optout),O(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>ci(e,t.in,n)):ci(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>ci(e,t.out,n)):ci(r,t.out,n)}});function ci(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var li=k(`$ZodReadonly`,(e,t)=>{N.init(e,t),O(e,`propValues`,e=>e.def.innerType._zod.propValues),O(e,`values`,e=>e.def.innerType._zod.values),O(e,`optin`,e=>e.def.innerType?._zod?.optin),O(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(ui):ui(r)}});function ui(e){return e.memo||(e.value=Object.freeze(e.value)),e}var di=k(`$ZodLazy`,(e,t)=>{N.init(e,t),se(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),O(e,`pattern`,e=>e.innerType?._zod?.pattern),O(e,`propValues`,e=>e.innerType?._zod?.propValues),O(e,`optin`,e=>e.innerType?._zod?.optin??void 0),O(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),fi=k(`$ZodCustom`,(e,t)=>{M.init(e,t),N.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>pi(t,n,r,e));pi(i,n,r,e)}});function pi(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(We(e))}}var mi=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},hi=`~memo`,gi=[];function _i(e){return typeof e==`object`&&!!e}function vi(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var yi=new WeakMap,bi=0,xi=1,Si=2;function Ci(e,t,n){let r=yi.get(e);if(r!==void 0)return r?Si:bi;if(t.has(e))return Si;t.add(e);let i=bi,a=e=>{if(i!==Si&&e?._zod){let r=Ci(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=bi;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?xi:o.value?._zod?Ci(o.value,t,n):bi;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=ce(c);s(e?o(e,!0):xi),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?Ci(r,t,!1):xi);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),wi(e,i)}function wi(e,t){return t!==xi&&yi.set(e,t===Si),t}function Ti(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Ei,Di=[],Oi={alloc(e,t,n){let r=Ei;if(!r)return n;Ei=void 0;let i={value:n,issues:null};return r.set(t.value,i),Di.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&Ai(n,e.value))throw new mi;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=Ci(e,new Set,!1);if(i===bi)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===Si||r?n=!0:r=!0}let l=s.value;if(!_i(l))return t(s,c);let u=c[hi];u||(u={buckets:new WeakMap,backEdges:void 0},c[hi]=u);let d;i===c?d=a:(d=Ti(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...vi(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;Ei=d;let p=Di.length,m=t(s,c);Ei=void 0;let h=Di.length>p?Di.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?vi(e.issues):gi),e)):(h&&(h.issues=m.issues.length?vi(m.issues):gi),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function ki(){return Oi}function Ai(e,t){let n=e[hi]?.backEdges;return n!==void 0&&_i(t)&&n.has(t)}var ji=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(Ue(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Se(e.values[0])}`:`Invalid option: expected one of ${te(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${te(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function Mi(){return{localeError:ji()}}var Ni,Pi=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Fi(){return new Pi}(Ni=globalThis).__zod_globalRegistry??(Ni.__zod_globalRegistry=Fi());var Ii=globalThis.__zod_globalRegistry;function Li(e){return e.checks&&=[...e.checks],e}function Ri(e,t){return new e(Li({type:`string`,...T(t)}))}function zi(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...T(t)})}function Bi(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...T(t)})}function Vi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...T(t)})}function Hi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...T(t)})}function Ui(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...T(t)})}function Wi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...T(t)})}function Gi(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...T(t)})}function Ki(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...T(t)})}function qi(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...T(t)})}function Ji(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...T(t)})}function Yi(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...T(t)})}function Xi(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...T(t)})}function Zi(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...T(t)})}function Qi(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...T(t)})}function $i(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...T(t)})}function ea(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...T(t)})}function ta(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...T(t)})}function na(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...T(t)})}function ra(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...T(t)})}function ia(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...T(t)})}function aa(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...T(t)})}function oa(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...T(t)})}function sa(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...T(t)})}function ca(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...T(t)})}function la(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...T(t)})}function ua(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...T(t)})}function da(e,t){return new e(Li({type:`number`,checks:[],...T(t)}))}function fa(e,t){return new e(Li({type:`number`,coerce:!0,checks:[],...T(t)}))}function pa(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...T(t)})}function ma(e,t){return new e({type:`boolean`,...T(t)})}function ha(e){return new e({type:`unknown`})}function ga(e,t){return new e({type:`never`,...T(t)})}function _a(e,t){return new yn({check:`less_than`,...T(t),value:e,inclusive:!1})}function va(e,t){return new yn({check:`less_than`,...T(t),value:e,inclusive:!0})}function ya(e,t){return new bn({check:`greater_than`,...T(t),value:e,inclusive:!1})}function ba(e,t){return new bn({check:`greater_than`,...T(t),value:e,inclusive:!0})}function xa(e,t){return new xn({check:`multiple_of`,...T(t),value:e})}function Sa(e,t){return new Cn({check:`max_length`,...T(t),maximum:e})}function Ca(e,t){return new wn({check:`min_length`,...T(t),minimum:e})}function wa(e,t){return new Tn({check:`length_equals`,...T(t),length:e})}function Ta(e,t){return new Dn({check:`string_format`,format:`regex`,...T(t),pattern:e})}function Ea(e){return new On({check:`string_format`,format:`lowercase`,...T(e)})}function Da(e){return new kn({check:`string_format`,format:`uppercase`,...T(e)})}function Oa(e,t){return new An({check:`string_format`,format:`includes`,...T(t),includes:e})}function ka(e,t){return new jn({check:`string_format`,format:`starts_with`,...T(t),prefix:e})}function Aa(e,t){return new Mn({check:`string_format`,format:`ends_with`,...T(t),suffix:e})}function ja(e){return new Nn({check:`overwrite`,tx:e})}function Ma(e){return ja(t=>t.normalize(e))}function Na(){return ja(e=>e.trim())}function Pa(){return ja(e=>e.toLowerCase())}function Fa(){return ja(e=>e.toUpperCase())}function Ia(){return ja(e=>pe(e))}function La(e,t,n){return new e({type:`array`,element:t,...T(n)})}function Ra(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...T(n)})}function za(e,t){let n=Ba(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(We(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(We(r))}},e(t.value,t)),t);return n}function Ba(e,t){let n=new M({check:`custom`,...T(t)});return n._zod.check=e,n}function Va(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&x(e,t,n[t]);return e}function Ha(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Ii,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function Ua(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function F(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,F(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Va(o.schema,c),t.io===`input`&&I(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Wa(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Ga(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Wa(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Wa(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
54
+
55
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function Ka(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Ka(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var qa=new Set([`type`,`properties`,`required`,`additionalProperties`]),Ja=[`oneOf`,`anyOf`];function Ya(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Xa(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!qa.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Ya(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}x(n,r,e.length===1?e[0]:Xa(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Ya(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Za(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of qa)if(t in e)return;let n=t.filter(e=>Ja.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Xa(t);else{let e=n[0],i=Ja.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Xa([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Va(e,r))}function Qa(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Va(i,s),Va(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Ka(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Za(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Va(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,x(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:eo(t,`input`,e.processors),output:eo(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function I(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return I(r.element,n);if(r.type===`set`)return I(r.valueType,n);if(r.type===`lazy`)return I(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return I(r.innerType,n);if(r.type===`intersection`)return I(r.left,n)||I(r.right,n);if(r.type===`record`||r.type===`map`)return I(r.keyType,n)||I(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:I(r.in,n)||I(r.out,n);if(r.type===`object`){for(let e in r.shape)if(I(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(I(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(I(e,n))return!0;return!!(r.rest&&I(r.rest,n))}return!1}var $a=(e,t={})=>n=>{let r=Ha({...n,processors:t});return F(e,r),Ga(r,e),Qa(r,e)},eo=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Ha({...i??{},target:a,io:t,processors:n});return F(e,o),Ga(o,e),Qa(o,e)},to=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},no=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},ro=(e,t)=>{to(e,`minimum`,t),no(e,`maximum`,t)},io=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},ao=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},oo=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},so=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},co=(e,t)=>to(e,`minimum`,t.minimum),lo=(e,t)=>no(e,`maximum`,t.maximum),uo=e=>(t,n)=>{so(t,n.format);let[r,i]=e[n.format];to(t,`minimum`,r),no(t,`maximum`,i)},fo={greater_than:(e,t)=>to(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>no(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>io(e,t.value),number_format:uo(we),bigint_format:uo(Te),min_length:co,max_length:lo,length_equals:(e,t)=>ro(e,t.length),min_size:co,max_size:lo,size_equals:(e,t)=>ro(e,t.size),string_format:(e,t)=>{so(e,t.format),t.pattern&&ao(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>oo(e,t.mime)};function L(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)fo[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&to(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&to(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&no(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&no(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&io(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&oo(t,i.mime);for(let e of i.patterns??[])ao(t,e);return t}var po={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},mo=new Map([[gr,en],[vr,tn]]),ho=e=>mo.get(e)??e,go=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=L(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=po[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(ho);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},_o=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=L(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):Ua(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},vo=(e,t,n,r)=>{n.type=`boolean`},yo=(e,t,n,r)=>{n.not={}},bo=(e,t,n,r)=>{let i=e._zod.def,a=v(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},xo=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(Ua(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(Ua(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},So=(e,t,n,r)=>{Ua(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},Co=(e,t,n,r)=>{Ua(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},wo=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=L(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=F(a.element,t,{...r,path:[...r.path,`items`]})};function To(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?To(t.out):t.type===`catch`?To(t.innerType):e._zod.optin}var Eo=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Ua(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)x(i.properties,e,F(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?To(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=F(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Do=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>F(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Oo=(e,t,n,r)=>{let i=e._zod.def,a=F(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=F(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)};function ko(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=ko(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>ko(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?pn:fn).source)),p}var Ao=new WeakMap;function jo(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of Ao.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=ko(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var Mo=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=L(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=F(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)x(i.patternProperties,ho(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=F(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=Ao.get(t);n||(n=[],Ao.set(t,n),t.deferred.push(()=>jo(t))),n.push(e)}i.additionalProperties=F(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&To(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},No=(e,t,n,r)=>{let i=e._zod.def,a=F(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Po=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Fo=Symbol();function Io(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Ua(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),Fo):JSON.parse(o)}var Lo=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=Io(i.defaultValue,e,t,n,r);o!==Fo&&(n.default=o)},Ro=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=Io(i.defaultValue,e,t,n,r);o!==Fo&&(n._prefault=o)},zo=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Ua(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},Bo=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;F(o,t,r);let s=t.seen.get(e);s.ref=o},Vo=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Ho=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Uo=(e,t,n,r)=>{let i=e._zod.innerType;F(i,t,r);let a=t.seen.get(e);a.ref=i},Wo=new WeakSet([Object.prototype,Error.prototype]);function Go(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Ko=(e,t)=>{mt.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);Wo.has(n)||(Wo.add(n),Go(n,`format`,e=>t=>_t(e,t)),Go(n,`flatten`,e=>t=>gt(e,t)),Go(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,y,2)}),Go(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,y,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},qo=k(`ZodError`,Ko),R=k(`ZodError`,Ko,void 0,{Parent:Error}),Jo=yt(R),Yo=bt(R),Xo=xt(R),Zo=Ct(R),Qo=kt(R),$o=At(R),es=jt(R),ts=Mt(R),ns=Nt(R),rs=Pt(R),is=Ft(R),as=It(R);function os(){A.localeError||j(Mi())}function ss(){A.memoizer||j({memoizer:ki()})}var z=k(`ZodType`,(e,t)=>(os(),N.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(w(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return xe(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Tc(e,t))},superRefine(e,t){return this.check(Ec(e,t))},overwrite(e){return this.check(ja(e))},optional(){return ac(this)},exactOptional(){return sc(this)},nullable(){return lc(this)},nullish(){return ac(lc(this))},nonoptional(e){return hc(this,e)},array(){return G(this)},or(e){return Gs([this,e])},and(e){return Ys(this,e)},transform(e){return yc(this,rc(e))},default(e){return dc(this,e)},prefault(e){return pc(this,e)},catch(e){return _c(this,e)},pipe(e){return yc(this,e)},readonly(){return xc(this)},describe(e){let t=this.clone();return Ii.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ii.get(this);let t=this.clone();return Ii.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return qe(this,`~standard`,{...Rn(this),jsonSchema:{input:eo(this,`input`),output:eo(this,`output`)}})},set"~standard"(e){Ke(this,`~standard`,e)},parse:function e(t,n){return Jo(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Yo(this,t,n,{callee:e})},safeParse(e,t){return Xo(this,e,t)},async safeParseAsync(e,t){return Zo(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Ke(this,`spa`,e)},validate(e,t){return Et(this,e,t)},validateAsync(e,t){return Ot(this,e,t)},encode:function e(t,n){return Qo(this,t,n,{callee:e})},decode:function e(t,n){return $o(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await es(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await ts(this,t,n,{callee:e})},safeEncode(e,t){return ns(this,e,t)},safeDecode(e,t){return rs(this,e,t)},async safeEncodeAsync(e,t){return is(this,e,t)},async safeDecodeAsync(e,t){return as(this,e,t)},toJSONSchema(e){return $a(this,{})(e)},get description(){return Ii.get(this)?.description},get _def(){return this._zod.def}}),cs=k(`_ZodString`,(e,t)=>{zn.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>go(e,t,n,r)},Je({format:e=>L(e).format??null,minLength:e=>L(e).minimum??null,maxLength:e=>L(e).maximum??null},{regex(...e){return this.check(Ta(...e))},includes(...e){return this.check(Oa(...e))},startsWith(...e){return this.check(ka(...e))},endsWith(...e){return this.check(Aa(...e))},min(...e){return this.check(Ca(...e))},max(...e){return this.check(Sa(...e))},length(...e){return this.check(wa(...e))},nonempty(...e){return this.check(Ca(1,...e))},lowercase(e){return this.check(Ea(e))},uppercase(e){return this.check(Da(e))},trim(){return this.check(Na())},normalize(...e){return this.check(Ma(...e))},toLowerCase(){return this.check(Pa())},toUpperCase(){return this.check(Fa())},slugify(){return this.check(Ia())}})),ls=k(`ZodString`,(e,t)=>{zn.init(e,t),cs.init(e,t)},{email(e){return this.check(zi(ms,e))},url(e){return this.check(Gi(_s,e))},jwt(e){return this.check(oa(Ns,e))},emoji(e){return this.check(Ki(ys,e))},guid(e){return this.check(Bi(hs,e))},uuid(e){return this.check(Vi(gs,e))},uuidv4(e){return this.check(Hi(gs,e))},uuidv6(e){return this.check(Ui(gs,e))},uuidv7(e){return this.check(Wi(gs,e))},nanoid(e){return this.check(qi(bs,e))},cuid(e){return this.check(Ji(xs,e))},cuid2(e){return this.check(Yi(Ss,e))},ulid(e){return this.check(Xi(Cs,e))},base64(e){return this.check(ra(As,e))},base64url(e){return this.check(ia(js,e))},xid(e){return this.check(Zi(ws,e))},ksuid(e){return this.check(Qi(Ts,e))},ipv4(e){return this.check($i(Es,e))},ipv6(e){return this.check(ea(Ds,e))},cidrv4(e){return this.check(ta(Os,e))},cidrv6(e){return this.check(na(ks,e))},e164(e){return this.check(aa(Ms,e))},datetime(e){return this.check(sa(us,e))},date(e){return this.check(ca(ds,e))},time(e){return this.check(la(fs,e))},duration(e){return this.check(ua(ps,e))}});function B(e){return Ri(ls,e)}var V=k(`ZodStringFormat`,(e,t)=>{P.init(e,t),cs.init(e,t)}),us=k(`ZodISODateTime`,(e,t)=>{ir.init(e,t),V.init(e,t)}),ds=k(`ZodISODate`,(e,t)=>{ar.init(e,t),V.init(e,t)}),fs=k(`ZodISOTime`,(e,t)=>{or.init(e,t),V.init(e,t)}),ps=k(`ZodISODuration`,(e,t)=>{sr.init(e,t),V.init(e,t)}),ms=k(`ZodEmail`,(e,t)=>{Hn.init(e,t),V.init(e,t)}),hs=k(`ZodGUID`,(e,t)=>{Bn.init(e,t),V.init(e,t)}),gs=k(`ZodUUID`,(e,t)=>{Vn.init(e,t),V.init(e,t)});function H(e){return Vi(gs,e)}var _s=k(`ZodURL`,(e,t)=>{Xn.init(e,t),V.init(e,t)});function vs(e){return Gi(_s,e)}var ys=k(`ZodEmoji`,(e,t)=>{Zn.init(e,t),V.init(e,t)}),bs=k(`ZodNanoID`,(e,t)=>{Qn.init(e,t),V.init(e,t)}),xs=k(`ZodCUID`,(e,t)=>{$n.init(e,t),V.init(e,t)}),Ss=k(`ZodCUID2`,(e,t)=>{er.init(e,t),V.init(e,t)}),Cs=k(`ZodULID`,(e,t)=>{tr.init(e,t),V.init(e,t)}),ws=k(`ZodXID`,(e,t)=>{nr.init(e,t),V.init(e,t)}),Ts=k(`ZodKSUID`,(e,t)=>{rr.init(e,t),V.init(e,t)}),Es=k(`ZodIPv4`,(e,t)=>{cr.init(e,t),V.init(e,t)}),Ds=k(`ZodIPv6`,(e,t)=>{dr.init(e,t),V.init(e,t)}),Os=k(`ZodCIDRv4`,(e,t)=>{fr.init(e,t),V.init(e,t)}),ks=k(`ZodCIDRv6`,(e,t)=>{mr.init(e,t),V.init(e,t)}),As=k(`ZodBase64`,(e,t)=>{_r.init(e,t),V.init(e,t)}),js=k(`ZodBase64URL`,(e,t)=>{br.init(e,t),V.init(e,t)}),Ms=k(`ZodE164`,(e,t)=>{xr.init(e,t),V.init(e,t)}),Ns=k(`ZodJWT`,(e,t)=>{Cr.init(e,t),V.init(e,t)}),Ps=k(`ZodNumber`,(e,t)=>{wr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_o(e,t,n,r),e.isFinite=!0},Je({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=L(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=L(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=L(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>L(e).format??null},{gt(e,t){return this.check(ya(e,t))},gte(e,t){return this.check(ba(e,t))},min(e,t){return this.check(ba(e,t))},lt(e,t){return this.check(_a(e,t))},lte(e,t){return this.check(va(e,t))},max(e,t){return this.check(va(e,t))},int(e){return this.check(Is(e))},safe(e){return this.check(Is(e))},positive(e){return this.check(ya(0,e))},nonnegative(e){return this.check(ba(0,e))},negative(e){return this.check(_a(0,e))},nonpositive(e){return this.check(va(0,e))},multipleOf(e,t){return this.check(xa(e,t))},step(e,t){return this.check(xa(e,t))},finite(){return this}}));function U(e){return da(Ps,e)}var Fs=k(`ZodNumberFormat`,(e,t)=>{Tr.init(e,t),Ps.init(e,t)});function Is(e){return pa(Fs,e)}var Ls=k(`ZodBoolean`,(e,t)=>{Er.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vo(e,t,n,r)});function W(e){return ma(Ls,e)}var Rs=k(`ZodUnknown`,(e,t)=>{Dr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function zs(){return ha(Rs)}var Bs=k(`ZodNever`,(e,t)=>{Or.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yo(e,t,n,r)});function Vs(e){return ga(Bs,e)}var Hs=k(`ZodArray`,(e,t)=>{ss(),Mr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wo(e,t,n,r),e.element=t.element},{min(e,t){return this.check(Ca(e,t))},nonempty(e){return this.check(Ca(1,e))},max(e,t){return this.check(Sa(e,t))},length(e,t){return this.check(wa(e,t))},unwrap(){return this.element}});function G(e,t){return La(Hs,e,t)}var Us=k(`ZodObject`,(e,t)=>{ss(),Rr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eo(e,t,n,r),et(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return ec(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(w(this._zod.def,{catchall:e}))},passthrough(){return this.clone(w(this._zod.def,{catchall:zs()}))},loose(){return this.clone(w(this._zod.def,{catchall:zs()}))},strict(){return this.clone(w(this._zod.def,{catchall:Vs()}))},strip(){return this.clone(w(this._zod.def,{catchall:void 0}))},extend(e){return ke(this,e)},safeExtend(e){return je(this,e)},merge(e){return Me(this,e)},pick(e){return Ee(this,e)},omit(e){return Oe(this,e)},partial(...e){return Ne(ic,this,e[0])},exactPartial(...e){return Ne(oc,this,e[0],`exactPartial`)},required(...e){return Pe(mc,this,e[0])}});function K(e,t){return new Us({type:`object`,shape:e??{},...T(t)})}var Ws=k(`ZodUnion`,(e,t)=>{Br.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Do(e,t,n,r),e.options=t.options});function Gs(e,t){return new Ws({type:`union`,options:e,...T(t)})}var Ks=k(`ZodDiscriminatedUnion`,(e,t)=>{Ws.init(e,t),Hr.init(e,t)});function qs(e,t,n){return new Ks({type:`union`,options:t,discriminator:e,...T(n)})}var Js=k(`ZodIntersection`,(e,t)=>{Ur.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oo(e,t,n,r)});function Ys(e,t){return new Js({type:`intersection`,left:e,right:t})}var Xs=k(`ZodRecord`,(e,t)=>{ss(),Kr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mo(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Zs(e,t,n){return!t||!t._zod?new Xs({type:`record`,keyType:B(),valueType:e,...T(t)}):new Xs({type:`record`,keyType:e,valueType:t,...T(n)})}function Qs(e,t,n){return new Xs({type:`record`,keyType:e,valueType:t,...T(n),partial:!0})}var $s=k(`ZodEnum`,(e,t)=>{qr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bo(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new $s({...t,checks:[],...T(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new $s({...t,checks:[],...T(r),entries:i})}});function ec(e,t){return new $s({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...T(t)})}var tc=k(`ZodLiteral`,(e,t)=>{Jr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xo(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function q(e,t){return new tc({type:`literal`,values:Array.isArray(e)?e:[e],...T(t)})}var nc=k(`ZodTransform`,(e,t)=>{ss(),Yr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Co(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ct(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(We(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(We(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function rc(e){return new nc({type:`transform`,transform:e})}var ic=k(`ZodOptional`,(e,t)=>{Zr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ho(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ac(e){return new ic({type:`optional`,innerType:e})}var oc=k(`ZodExactOptional`,(e,t)=>{Qr.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ho(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function sc(e){return new oc({type:`optional`,innerType:e})}var cc=k(`ZodNullable`,(e,t)=>{$r.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>No(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function lc(e){return new cc({type:`nullable`,innerType:e})}var uc=k(`ZodDefault`,(e,t)=>{ei.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function dc(e,t){return new uc({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ve(t)}})}var fc=k(`ZodPrefault`,(e,t)=>{ni.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ro(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pc(e,t){return new fc({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ve(t)}})}var mc=k(`ZodNonOptional`,(e,t)=>{ri.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Po(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function hc(e,t){return new mc({type:`nonoptional`,innerType:e,...T(t)})}var gc=k(`ZodCatch`,(e,t)=>{oi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _c(e,t){return new gc({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:nt(t)})}var vc=k(`ZodPipe`,(e,t)=>{si.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bo(e,t,n,r),e.in=t.in,e.out=t.out});function yc(e,t){return new vc({type:`pipe`,in:e,out:t})}var bc=k(`ZodReadonly`,(e,t)=>{li.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function xc(e){return new bc({type:`readonly`,innerType:e})}var Sc=k(`ZodLazy`,(e,t)=>{di.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uo(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function Cc(e){return new Sc({type:`lazy`,getter:e})}var wc=k(`ZodCustom`,(e,t)=>{fi.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>So(e,t,n,r)});function Tc(e,t={}){return Ra(wc,e,t)}function Ec(e,t){return za(e,t)}var J=g(),Y=B().regex(/^[a-z][a-z0-9_-]{0,63}$/),Dc=H();K({deviceId:Dc,projectId:Y.optional()}).strict(),K({workspaceId:Y,memberId:Y,deviceId:Dc}),K({members:G(Y)});var Oc=134217728,kc=10485760,Ac=3e5,jc=B().regex(/^[a-f0-9]{64}$/),X=U().int().nonnegative().max(2**53-1),Mc=B().min(1).max(1024).refine(e=>e!==e.normalize(`NFC`)||/[\\\x00-\x1f\x7f:<>"|?*]/.test(e)?!1:e.split(`/`).every(e=>e.length>0&&e.length<=255&&e!==`.`&&e!==`..`&&!/[. ]$/.test(e)&&!/^\.teammy(?:-|$)/i.test(e)&&!/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(e)),`Path must be a portable, normalized relative file path.`),Nc=K({sha256:jc,size:U().int().min(0).max(Oc)}),Pc=Nc.extend({size:U().int().min(0).max(kc)}),Fc=qs(`kind`,[Pc.extend({kind:q(`upsert`),path:Mc}).strict(),K({kind:q(`delete`),path:Mc}).strict()]);K({operationId:H(),parentRevision:X,changes:G(Fc)}).strict().refine(e=>new Set(e.changes.map(e=>e.path)).size===e.changes.length,`Duplicate paths in a publication.`),K({operationId:H(),revision:X});var Ic=Pc.extend({path:Mc,revision:X});K({revision:X,complete:W().default(!1),files:G(Ic),nextCursor:B().nullable()}),K({headRevision:X,revisions:G(K({revision:X,operationId:H(),createdAt:B(),changes:G(Fc)}))}),K({hashes:G(jc).max(200)}).strict(),K({missing:G(jc)});var Lc=qs(`kind`,[Ic.extend({kind:q(`file`)}),K({kind:q(`directory`),path:Mc,fileCount:U().int().positive()})]),Rc=K({revision:X,path:Gs([q(``),Mc]),entries:G(Lc),nextCursor:B().nullable()}),zc=K({revision:X,file:Ic}),Bc=B().url().max(2048).refine(e=>{let t=new URL(e);return[`http:`,`https:`].includes(t.protocol)&&!t.username&&!t.password&&!t.search&&!t.hash},`Use an HTTP(S) server URL without credentials, query or fragment.`),Vc=K({checkIntervalSeconds:U().int().min(1).max(86400),fileSettleSeconds:U().int().min(0).max(86400)}).strict(),Hc=K({schemaVersion:q(1),projectId:Y,projectName:B().trim().min(1).max(120),description:B().max(2e3),publicServerUrl:Bc,configRevision:X,scopeProfile:q(`workspace-and-sessions-v1`),sync:Vc}).strict(),Uc=K({operationId:H(),publicServerUrl:Bc,adminId:Y}).strict(),Wc=K({initialized:W(),authMode:ec([`member-id`,`tai`]).default(`member-id`)}),Gc=Hc.pick({projectName:!0,description:!0}).extend({expectedRevision:X.optional()}).strict(),Kc=K({id:Y,displayName:B().max(120),enabled:W(),accountEnabled:W(),revision:X,bound:W(),fileRevision:X,lastPublishedAt:B().nullable(),hasFiles:W().default(!1),hasSessions:W().default(!1)}),qc=K({memberId:Y,displayName:B(),siteRole:ec([`admin`,`member`])}),Jc=qc.extend({workspaceId:Y}),Yc=K({seen:W()}),Xc=K({id:Y}).strict(),Zc=K({expectedRevision:X,displayName:B().trim().max(120).optional(),enabled:W().optional()}).strict();K({operationId:H(),projectName:B().trim().min(1).max(120),description:B().max(2e3).default(``),workspacePath:B().trim().min(1).optional()}).strict();var Qc=K({projects:G(K({projectId:Y,projectName:B(),description:B()}))}),$c=U().int().positive().nullable(),el=K({sync:Vc,publicServerUrl:Bc,maxConcurrentRuns:$c.default(null),revision:X}),tl=K({publicServerUrl:Bc.optional(),sync:Vc.optional(),maxConcurrentRuns:$c.optional(),expectedRevision:X}).strict().refine(e=>e.publicServerUrl!==void 0||e.sync!==void 0||e.maxConcurrentRuns!==void 0,`Provide a setting to update.`),nl=K({id:Y,displayName:B(),siteRole:ec([`admin`,`member`]),enabled:W(),revision:X}),rl=K({id:Y,displayName:B().trim().max(120).default(``),siteRole:ec([`admin`,`member`]).default(`member`)}).strict(),il=K({expectedRevision:X,displayName:B().trim().max(120).optional(),enabled:W().optional(),siteRole:ec([`admin`,`member`]).optional()}).strict();K({status:q(`ok`)});var al=K({name:q(`teammy`),version:B().min(1),protocolVersion:q(1),capabilities:G(B()),clientUrl:B().url().optional()});K({error:K({code:B(),message:B(),requestId:B()})});var ol=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,sl=B().regex(/^tmy_[a-f0-9]{64}$/);K({operationId:H(),projectId:Y,memberId:Y,deviceId:Dc,credential:sl,multiDevice:q(!0).optional()}).strict();var cl=K({checkIntervalSeconds:U().min(1).max(86400),fileSettleSeconds:U().min(0).max(86400)}).strict(),ll=K({checkedAt:B(),published:W(),appliedFiles:U().int().nonnegative(),pendingFiles:U().int().nonnegative(),sessionSources:U().int().nonnegative(),errors:G(B().max(1e3)).max(20)}).strict(),ul=K({clientVersion:B().max(64),receivedRevision:X.nullable(),appliedRevision:X.nullable(),effectivePolicy:cl,overrides:G(ec([`checkIntervalSeconds`,`fileSettleSeconds`])).max(2),configError:B().max(2e3).nullable(),reportError:B().max(2e3).nullable(),lastSync:ll.nullable()}).strict(),dl=B().max(64).regex(ol),fl=K({running:B().min(1).max(64),waiting:dl.optional(),issue:B().max(1500).optional()});fl.extend({installation:H()}),K({enabled:W(),target:dl.nullable()});var pl=K({devices:G(K({memberId:Y,deviceId:Dc.nullish(),name:B().nullish(),bound:W(),lastSeenAt:B().nullable(),status:ul.nullable(),autoUpdate:fl.extend({enabled:W()}).optional()}))}),Z={brand:`Teammy`,navigation:`主导航`,filePreview:`文件预览`,versionPicker:`选择目录版本`,connectCommand:`连接命令`,syncCommand:`开启同步命令`,syncStopCommand:`停止同步命令`,installCommandLabel:`安装命令`,skipToMain:`跳到主要内容`,loading:`正在加载…`,retry:`重试`,refresh:`刷新`,cancel:`取消`,close:`关闭`,save:`保存`,saving:`正在保存…`,next:`下一步`,back:`上一步`,confirm:`确认`,logout:`退出登录`,menu:`导航菜单`,files:`工作区`,dashboard:`工作看板`,sessions:`会话库`,members:`成员`,settings:`设置`,account:`个人账户`,project:`项目`,projectName:`项目名称`,description:`项目说明`,address:`团队接入地址`,addressHint:`填写成员设备能够访问的服务地址。`,adminId:`管理员 ID`,memberId:`成员 ID`,idHint:`以小写字母开头,最多 64 位,可包含数字、短横线或下划线。ID 创建后不可修改。`,displayName:`显示名称`,admin:`管理员`,member:`成员`,enabled:`已启用`,disabled:`已停用`,login:`进入工作台`,loginTitle:`连接你的团队`,loginHint:`输入管理员预先建立的成员 ID。`,existing:`接入已有工作区`,choose:`请选择`,interval:`文件检查间隔(秒)`,settle:`文件稳定等待(秒)`,timingHint:`文件停止修改后开始计时。新设置约 30 秒后下发,当前批次结束后生效。`,scope:`共享范围`,owner:`文件所属成员`,noFiles:`该目录版本暂无文件`,noFilesHint:`运行客户端同步后查看。`,pickFile:`选择文件,查看内容`,more:`加载更多`,name:`文件路径`,size:`大小`,version:`版本`,directoryVersion:`目录版本`,latest:`最新版本`,viewVersion:`查看版本`,download:`下载原文件`,raw:`原文`,rendered:`预览`,previewUnavailable:`该文件不支持文本预览,请下载查看。`,previewLarge:`文件超过 512 KiB,请下载查看完整内容。`,readOnly:`只读`,refreshFiles:`刷新目录`,remoteImage:`图片`,addMember:`添加成员`,editName:`修改名称`,disableMember:`停用成员`,enableMember:`启用成员`,resetDevice:`重置设备`,resetHint:`撤销该成员的设备凭证,保留共享文件与历史。成员需要重新运行 connect --reconnect。`,disableHint:`停止该成员访问和同步本项目,保留历史资料。其他项目不受影响。`,enableHint:`恢复本项目访问权限。设备需要重新接入。`,bound:`设备已绑定`,unbound:`尚未绑定设备`,noContact:`尚无状态报告`,lastContact:`最近联系`,lastPublished:`最近发布`,noPublication:`尚未发布文件`,stale:`报告已超过 2 分钟`,applied:`已应用`,waiting:`等待应用`,failed:`应用失败`,received:`已接收`,saved:`服务端已保存`,override:`含命令行覆盖`,effective:`当前有效策略`,syncResult:`最近同步`,pending:`待发文件`,clientVersion:`客户端版本`,syncIssues:`同步提示`,statusHint:`最近上报状态,非实时在线状态。`,connectTitle:`连接项目目录`,connectHint:`在工作目录(例如 utu/)运行以下命令,并在打开的网页中确认用户 ID,将当前工作目录连接到 Teammy 服务:`,connectAfter:`注意:会话采集以工作目录为范围,只采集该目录及其子目录中的 Agent 会话。因此,建议在项目根目录(例如 utu/)执行此命令。`,install:`首次使用`,installHint:`需要 Node.js 22.19+。安装后按上方说明连接项目。`,copy:`复制`,copied:`已复制`,copyFailed:`复制失败,请手动选择命令。`,configSaved:`设置已保存,等待客户端接收并上报。`,reloadConfig:`读取最新设置`,configConflict:`设置已被其他成员修改。先读取最新设置,再重新编辑。`,permissionHint:`公共设置由管理员维护。`,application:`配置应用情况`,serverVersion:`服务端版本`,notReported:`未上报`,seconds:`秒`,errors:{AI_DEFAULT_REQUIRED:`请选择模型,或先设置默认接入点。`,AI_PROFILE_DISABLED:`该模型接入点已停用,请重新选择。`,AI_CONFIG_CONFLICT:`模型设置已更新,请重新载入后保存。`,SITE_ADMIN_REQUIRED:`此操作需要站点管理员身份。`,USER_NOT_FOUND:`用户尚未建立或账号已停用,请联系站点管理员。`,USER_EXISTS:`该用户 ID 已存在。`,PROJECT_NOT_FOUND:`项目不存在或你已不再是该项目成员。`,PROJECT_REQUIRED:`请选择一个项目。`,PROJECT_MISMATCH:`设备凭证属于其他项目。`,UNKNOWN_MEMBER:`成员 ID 不存在或已被停用。`,LOGIN_REQUIRED:`登录已失效,请重新登录。`,ADMIN_REQUIRED:`此操作需要管理员身份。`,STALE_CONFIG:`设置已变更,请读取最新设置后重试。`,STALE_MEMBER:`成员信息已变更,请刷新后重试。`,LAST_ADMIN:`至少需要保留一位启用的管理员。`,MEMBER_EXISTS:`该成员 ID 已存在。`,ALREADY_INITIALIZED:`服务已初始化,请刷新页面进入登录。`,INVALID_REQUEST:`请检查输入内容和数值范围。`,INVALID_RESPONSE:`服务返回了无法识别的响应,请刷新后重试。`,GATEWAY_ERROR:`服务网关未能转发请求,请检查部署配置。`,FORBIDDEN:`没有执行此操作的权限。`,INVALID_REVISION:`该目录版本不存在。`}};function ml(e){let t=e.replace(/\s+/g,` `).trim()||`未命名对话`,n=Array.from(t);return n.length>56?n.slice(0,56).join(``)+`…`:t}var hl=class extends Error{code;status;constructor(e,t,n){super(Z.errors[e]??t),this.code=e,this.status=n}},gl;async function _l(e,t,n={}){let r=n.method??`GET`,i=n.body instanceof Blob?n.body:void 0,a=await fetch(d(`/api/v1/${e}`),{method:r===`PATCH`?`POST`:r,headers:{accept:`application/json`,...r===`PATCH`?{"x-http-method-override":`PATCH`}:{},...n.body===void 0?{}:{"content-type":i?`application/octet-stream`:`application/json`},...r===`GET`?{}:{"x-teammy-web":`1`}},body:i??(n.body===void 0?void 0:JSON.stringify(n.body)),signal:n.signal?AbortSignal.any([n.signal,AbortSignal.timeout(n.timeoutMs??15e3)]):AbortSignal.timeout(n.timeoutMs??15e3),credentials:`same-origin`}),o=a.headers.get(`x-teammy-data-generation`);if(o){let e=gl!==void 0&&gl!==o;gl=o,e&&window.dispatchEvent(new Event(`teammy:data-reset`))}let s=await a.json().catch(()=>{throw new hl(`INVALID_RESPONSE`,``,a.status)});if(s?.Response?.Error)throw new hl(`GATEWAY_ERROR`,``,a.status);if(!a.ok){let e=new hl(s?.error?.code??`HTTP_ERROR`,s?.error?.message??`HTTP ${a.status}`,a.status);throw e.code===`LOGIN_REQUIRED`&&window.dispatchEvent(new Event(`teammy:logout`)),e}let c=t.safeParse(s);if(!c.success)throw new hl(`INVALID_RESPONSE`,``,a.status);return c.data}var vl={clientLatest:e=>_l(`client/latest`,K({version:B().min(1),versions:G(B()).default([])}),{signal:e}),server:e=>_l(`server`,al,{signal:e}),projects:e=>_l(`projects`,Qc,{signal:e}),setup:e=>_l(`setup`,Wc,{signal:e}),session:e=>_l(`web/session`,qc,{signal:e}),login:e=>_l(`web/session`,qc,{method:`POST`,body:{id:e}}),logout:()=>_l(`web/session`,K({ok:W()}),{method:`DELETE`})};function yl(e){return{config:t=>e(`project/config`,Hc,{signal:t}),members:t=>e(`web/members`,K({members:G(Kc)}),{signal:t}),devices:t=>e(`web/devices`,pl,{signal:t}),file:(t,n,r,i)=>e(`files/${encodeURIComponent(t)}/entry?${new URLSearchParams({path:n,...r===void 0?{}:{revision:String(r)}})}`,zc,{signal:i}),tree:(t,n,r,i,a)=>e(`files/${encodeURIComponent(t)}/tree?${new URLSearchParams({path:n,after:i,limit:`100`,...r===void 0?{}:{revision:String(r)}})}`,Rc,{signal:a})}}function bl(e){return e instanceof qo?Z.errors.INVALID_REQUEST:e instanceof Error?e.message:String(e)}function xl(e){return`'${e.replaceAll(`'`,`'\\''`)}'`}function Sl(){let e=crypto.getRandomValues(new Uint8Array(16));e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t=Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}async function Cl(e,t,n){let r=await fetch(d(`${n}/blobs/${e.sha256}`),{signal:AbortSignal.any([t,AbortSignal.timeout(Ac)])});if(!r.ok)throw r.status===401&&window.dispatchEvent(new Event(`teammy:logout`)),new hl(`HTTP_ERROR`,`HTTP ${r.status}`,r.status);let i=await r.arrayBuffer();if(i.byteLength!==e.size)throw Error(`File size mismatch.`);let a;try{a=new TextDecoder(`utf-8`,{fatal:!0}).decode(i)}catch{throw Error(Z.previewUnavailable)}if(a.includes(`\0`))throw Error(Z.previewUnavailable);return a}var wl=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Tl=o(((e,t)=>{t.exports=wl()})),Q=Tl(),El=class{values=new Map;get(e){return this.values.get(e)}set(e,t){this.values.set(e,t)}delete(e){this.values.delete(e)}},Dl=(0,J.createContext)(void 0);function Ol({children:e}){let[{cache:t,generation:n},r]=(0,J.useState)(()=>({cache:new El,generation:0}));return(0,J.useEffect)(()=>{let e=()=>{let e=new URL(location.href);for(let t of[`chat`,`message`])e.searchParams.delete(t);history.replaceState(history.state,``,e),r(e=>({cache:new El,generation:e.generation+1}))};return window.addEventListener(`teammy:data-reset`,e),()=>window.removeEventListener(`teammy:data-reset`,e)},[]),(0,Q.jsx)(Dl.Provider,{value:t,children:(0,Q.jsx)(J.Fragment,{children:e},n)})}var kl=()=>(0,J.useContext)(Dl),Al=(...e)=>JSON.stringify(e);function jl(e,t=!1,n){let r=kl(),i=n??e,a=()=>n?r?.get(n):void 0,[o,s]=(0,J.useState)(()=>({source:i,data:a(),error:``,loading:!0})),c=o.source===i?o:{source:i,data:a(),error:``,loading:!0},l=(0,J.useRef)(null),u=(0,J.useRef)(0),d=(0,J.useCallback)(async t=>{l.current?.abort();let o=new AbortController;l.current=o;let c=++u.current;s(e=>({source:i,data:e.source===i?e.data:a(),error:t&&e.source===i?e.error:``,loading:!0}));try{let t=await e(o.signal);c===u.current&&(n&&r?.set(n,t),s({source:i,data:t,error:``,loading:!1}))}catch(e){if(!o.signal.aborted&&c===u.current){let t=e instanceof hl&&[401,403,404].includes(e.status);t&&n&&r?.delete(n),s(n=>({...n,data:t?void 0:n.data,error:bl(e)}))}}finally{c===u.current&&(s(e=>({...e,loading:!1})),l.current=null)}},[e,n,r]),f=(0,J.useCallback)(()=>d(!1),[d]);return(0,J.useEffect)(()=>{f();let e=()=>{!document.hidden&&!l.current&&d(!0)},n=t?setInterval(e,typeof t==`number`?t:3e4):void 0;return t&&document.addEventListener(`visibilitychange`,e),()=>{u.current++,l.current?.abort(),l.current=null,clearInterval(n),document.removeEventListener(`visibilitychange`,e)}},[f,d,t]),{data:c.data,error:c.error,loading:c.loading,reload:f}}function Ml(){return jl(vl.clientLatest,3e5)}function Nl(){let[e]=(0,J.useState)(()=>new AbortController);return(0,J.useEffect)(()=>()=>e.abort(),[e]),e.signal}async function Pl(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.activeElement,n=window.getSelection(),r=n?Array.from({length:n.rangeCount},(e,t)=>n.getRangeAt(t).cloneRange()):[],i=document.createElement(`textarea`);i.value=e,i.readOnly=!0,i.style.cssText=`position:fixed;left:0;top:0;opacity:0;pointer-events:none;`,(t?.closest(`dialog[open]`)??document.body).append(i);try{if(i.focus({preventScroll:!0}),i.select(),!document.execCommand(`copy`))throw Error(`Clipboard copy was denied.`)}finally{if(i.remove(),t instanceof HTMLElement&&t.focus({preventScroll:!0}),n){n.removeAllRanges();for(let e of r)n.addRange(e)}}}var Fl=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Il(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Fl(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Ll=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Rl=e=>{let t=Ll(e);return t.charAt(0).toUpperCase()+t.slice(1)},zl=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Bl={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Vl(e){return e!=null}function Hl(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Bl.width,a=e.size??e.height??Bl.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?zl(...c):zl(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Bl[`stroke-width`])*Number(e.size??e.width??Bl.width)/Number(t.size??t.width??Bl.width):t.strokeWidth??Bl[`stroke-width`];return[`svg`,{...Object.entries(Bl).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Vl(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Vl(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Vl(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Ul(e,t={}){return Hl(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Wl=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Gl=(0,J.createContext)({}),Kl=()=>(0,J.useContext)(Gl),ql=(0,J.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:ee=``}=Kl()??{},v=!!c||Wl(d),[te,y,ne=[]]=Ul(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:zl(ee,s),hasA11yProp:v,attributes:d});return(0,J.createElement)(te,{ref:f,...y},[...ne.map(([e,t])=>(0,J.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function $(e,t=[],n=[]){let r=typeof e==`string`?Il(e,t,n):e,i=(0,J.forwardRef)(({className:e,...t},n)=>(0,J.createElement)(ql,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Rl(r.name)),i}var Jl={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};Jl.node;var Yl=$(Jl),Xl={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};Xl.node;var Zl=$(Xl),Ql={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Ql.node;var $l=$(Ql),eu={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};eu.node;var tu=$(eu),nu={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};nu.node;var ru=$(nu),iu={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4`,key:`5nuw1p`}],[`path`,{d:`M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294`,key:`18ldcf`}],[`path`,{d:`M17.996 5.125a4 4 0 012.526 5.77`,key:`1sdu8q`}],[`path`,{d:`M18 18a4 4 0 002-7.465`,key:`7xqqvr`}],[`path`,{d:`M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517`,key:`t46ysz`}],[`path`,{d:`M6 18a4 4 0 01-2-7.465`,key:`1y2m15`}],[`path`,{d:`M6.004 5.125a4 4 0 00-2.526 5.77`,key:`3cw1ss`}]]};iu.node;var au=$(iu),ou={name:`brush-cleaning`,size:24,node:[[`path`,{d:`m16 22-1-4`,key:`1ow2iv`}],[`path`,{d:`M19 14a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v1a1 1 0 0 0 1 1`,key:`11gii7`}],[`path`,{d:`M19 14H5l-1.973 6.767A1 1 0 0 0 4 22h16a1 1 0 0 0 .973-1.233z`,key:`bju7h4`}],[`path`,{d:`m8 22 1-4`,key:`s3unb`}]]};ou.node;var su=$(ou),cu={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};cu.node;var lu=$(cu),uu={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};uu.node;var du=$(uu),fu={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};fu.node;var pu=$(fu),mu={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};mu.node;var hu=$(mu),gu={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};gu.node;var _u=$(gu),vu={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};vu.node;var yu=$(vu),bu={name:`clipboard-paste`,size:24,node:[[`path`,{d:`M11 14h10`,key:`1w8e9d`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v1.344`,key:`1e62lh`}],[`path`,{d:`m17 18 4-4-4-4`,key:`z2g111`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113`,key:`bjbb7m`}],[`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,key:`ublpy`}]]};bu.node;var xu=$(bu),Su={name:`clock-3`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]};Su.node;var Cu=$(Su),wu={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};wu.node;var Tu=$(wu),Eu={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};Eu.node;var Du=$(Eu),Ou={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};Ou.node;var ku=$(Ou),Au={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};Au.node;var ju=$(Au),Mu={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};Mu.node;var Nu=$(Mu),Pu={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Pu.node;var Fu=$(Pu),Iu={name:`file-code`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]};Iu.node;var Lu=$(Iu),Ru={name:`file-image`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]};Ru.node;var zu=$(Ru),Bu={name:`file-plus-corner`,size:24,node:[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]],aliases:[`file-plus-2`]};Bu.node;var Vu=$(Bu),Hu={name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]};Hu.node;var Uu=$(Hu),Wu={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};Wu.node;var Gu=$(Wu),Ku={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};Ku.node;var qu=$(Ku),Ju={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};Ju.node;var Yu=$(Ju),Xu={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};Xu.node;var Zu=$(Xu),Qu={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Qu.node;var $u=$(Qu),ed={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};ed.node;var td=$(ed),nd={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};nd.node;var rd=$(nd),id={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};id.node;var ad=$(id),od={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};od.node;var sd=$(od),cd={name:`list-plus`,size:24,node:[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]};cd.node;var ld=$(cd),ud={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};ud.node;var dd=$(ud),fd={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};fd.node;var pd=$(fd),md={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};md.node;var hd=$(md),gd={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};gd.node;var _d=$(gd),vd={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]};vd.node;var yd=$(vd),bd={name:`minimize-2`,size:24,node:[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]};bd.node;var xd=$(bd),Sd={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};Sd.node;var Cd=$(Sd),wd={name:`paperclip`,size:24,node:[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]};wd.node;var Td=$(wd),Ed={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};Ed.node;var Dd=$(Ed),Od={name:`pin`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]};Od.node;var kd=$(Od),Ad={name:`plug`,size:24,node:[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]};Ad.node;var jd=$(Ad),Md={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Md.node;var Nd=$(Md),Pd={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};Pd.node;var Fd=$(Pd),Id={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};Id.node;var Ld=$(Id),Rd={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};Rd.node;var zd=$(Rd),Bd={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Bd.node;var Vd=$(Bd),Hd={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};Hd.node;var Ud=$(Hd),Wd={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};Wd.node;var Gd=$(Wd),Kd={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};Kd.node;var qd=$(Kd),Jd={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};Jd.node;var Yd=$(Jd),Xd={name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]};Xd.node;var Zd=$(Xd),Qd={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Qd.node;var $d=$(Qd),ef={name:`user-round-check`,size:24,node:[[`path`,{d:`M2 21a8 8 0 0 1 13.292-6`,key:`bjp14o`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`m16 19 2 2 4-4`,key:`1b14m6`}]],aliases:[`user-check-2`]};ef.node;var tf=$(ef),nf={name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]};nf.node;var rf=$(nf),af={name:`user-round-x`,size:24,node:[[`path`,{d:`m16.5 16.5 5 5`,key:`zc9lw7`}],[`path`,{d:`M2 21a8 8 0 0 1 11.531-7.18`,key:`x5izle`}],[`path`,{d:`m21.5 16.5-5 5`,key:`1empo3`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}]],aliases:[`user-x-2`]};af.node;var of=$(af),sf={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};sf.node;var cf=$(sf),lf={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};lf.node;var uf=$(lf),df={name:`zoom-in`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};df.node;var ff=$(df),pf={name:`zoom-out`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};pf.node;var mf=$(pf),hf=ee(),gf=(0,J.createContext)(null),_f=(0,J.createContext)(!0),vf=(0,J.createContext)(null),yf=()=>(0,J.useContext)(vf);function bf({visible:e,children:t}){let n=(0,J.useContext)(_f);return(0,Q.jsx)(_f.Provider,{value:n&&e,children:t})}function xf({children:e}){let[t,n]=(0,J.useState)([]),[r,i]=(0,J.useState)([]),a=(0,J.useCallback)((e,t,r)=>{n(n=>{let i=n.find(t=>t.source===e);if((i?.message??``)===t&&i?.retry===r)return n;let a=i?n.filter(e=>e!==i):n;return t?[...a,{source:e,message:t,retry:r}]:a})},[]),o=(0,J.useCallback)(e=>{n(t=>t.filter(t=>t.message!==e))},[]),s=(0,J.useCallback)(e=>(i(t=>[...t,e]),()=>i(t=>t.filter(t=>t!==e))),[]),c=(0,J.useMemo)(()=>{let e=new Map;for(let n of t)(!e.has(n.message)||n.retry)&&e.set(n.message,n);return[...e.values()].slice(0,3)},[t]);return(0,Q.jsxs)(gf.Provider,{value:a,children:[(0,Q.jsx)(vf.Provider,{value:s,children:e}),c.length>0&&(0,hf.createPortal)((0,Q.jsx)(`aside`,{className:`error-notifications`,"aria-label":`错误提醒`,children:c.map(e=>(0,Q.jsx)(Sf,{entry:e,dismiss:o},e.message))}),r.at(-1)??document.body)]})}function Sf({entry:{message:e,retry:t},dismiss:n}){let[r,i]=(0,J.useState)(!1),[a,o]=(0,J.useState)(!1);return(0,J.useEffect)(()=>{if(r||a||t)return;let i=window.setTimeout(()=>n(e),8e3);return()=>window.clearTimeout(i)},[e,n,r,a,t]),(0,Q.jsxs)(`div`,{className:`error-toast`,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),children:[(0,Q.jsx)(_u,{"aria-hidden":`true`,size:16,strokeWidth:1.5}),(0,Q.jsxs)(`div`,{className:`error-toast-body`,children:[(0,Q.jsx)(`span`,{role:`alert`,children:e}),t&&(0,Q.jsx)(`button`,{type:`button`,className:`error-retry`,onClick:t,children:`重试`})]}),(0,Q.jsx)(`button`,{className:`error-toast-close`,type:`button`,"aria-label":`关闭提醒`,onClick:()=>n(e),children:(0,Q.jsx)(uf,{"aria-hidden":`true`,size:14,strokeWidth:1.5})})]})}function Cf(){let e=(0,J.useContext)(gf),t=(0,J.useId)(),n=(0,J.useContext)(_f),r=(0,J.useRef)(!0);return(0,J.useEffect)(()=>(r.current=n,()=>{r.current=!1,e(t,``)}),[e,t,n]),(0,J.useCallback)((i,a)=>{r.current&&n&&e(t,i,a)},[e,t,n])}function wf({message:e,retry:t}){let n=Cf();return(0,J.useEffect)(()=>{n(e??``,t)},[n,e,t]),null}function Tf({children:e,retry:t,announce:n=!1}){return e?(0,Q.jsxs)(`div`,{className:`error-detail`,children:[(0,Q.jsx)(`span`,{role:n?`alert`:void 0,children:e}),t&&(0,Q.jsx)(`button`,{type:`button`,className:`error-retry`,onClick:t,children:`重试`})]}):null}function Ef({resource:e}){return e.error?e.data===void 0?(0,Q.jsx)(Tf,{announce:!0,retry:e.reload,children:e.error}):(0,Q.jsx)(wf,{message:e.error}):null}var Df=new URL(`teammy-logo-light-B6BoNVcp.svg`,import.meta.url).href,Of=new URL(`teammy-logo-dark-GROHRRMa.svg`,import.meta.url).href,kf=new URL(`teammy-y-standard-light-Bl5D78Uj.svg`,import.meta.url).href,Af=new URL(`teammy-y-standard-dark-C4LRaRpE.svg`,import.meta.url).href,jf={light:{logo:Df,standard:kf,focus:`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20role='img'%20aria-labelledby='title%20desc'%3e%3ctitle%20id='title'%3eteammy-y-focus-light%3c/title%3e%3cdesc%20id='desc'%3eteammy%20v02%20y%20mascot,%20focus%20pose,%20transparent%20background;%20for%20light%20backgrounds.%3c/desc%3e%3cg%20transform='translate(112%2060)%20scale(1.3)'%3e%3cg%20id='y-pose'%20transform='rotate(-3%20111.0%20302)'%3e%3cpath%20id='y-body'%20fill='%23FD523A'%20fill-rule='evenodd'%20d='M%2049.317%20300.497%20C%2028.532%20295.979%2018.688%20282.992%2023.472%20266.402%20C%2026.05%20257.459%2033.188%20245.557%2064.462%20198.05%20C%2073.677%20184.052%2081.395%20172.127%2081.613%20171.55%20C%2081.831%20170.972%2078.97%20168.935%2075.255%20167.022%20C%2065.861%20162.185%2050.569%20146.814%2041.34%20132.932%20C%2029.015%20114.392%2010.878%2075.899%203.443%2052.5%20C%201.197%2045.434%200.575%2041.566%200.546%2034.5%20C%200.514%2026.44%200.839%2024.805%203.66%2018.841%20C%207.579%2010.555%2013.474%204.715%2020.613%202.044%20C%2029.833%20-1.406%2039.061%20-0.444%2046.837%204.779%20C%2054.765%2010.103%2057.482%2015.595%2066.49%2044.5%20C%2083.08%2097.73%2096.468%20117.452%20112.993%20113.002%20C%20118.444%20111.534%20127.482%20103.119%20133.012%2094.364%20C%20142.105%2079.966%20149.119%2064.195%20159.042%2035.835%20C%20167.649%2011.235%20170.163%207.091%20179.22%202.578%20C%20183.328%200.531%20185.863%20-0%20191.537%200%20C%20203.952%200%20214.157%206.698%20219.622%2018.435%20C%20222.964%2025.612%20222.934%2037.364%20219.549%2047.449%20C%20216.06%2057.842%20204.241%2083.895%20194.889%20101.805%20C%20181.005%20128.395%20171.321%20144.622%20133.006%20205.5%20C%20113.066%20237.182%20105%20250.137%20105%20250.478%20C%20105%20250.627%20111.412%20250.979%20119.25%20251.262%20C%20135.581%20251.85%20142.206%20253.486%20147.663%20258.277%20C%20156.782%20266.284%20156.024%20279.688%20145.965%20288.298%20C%20138.721%20294.498%20128.637%20297.41%20103.721%20300.494%20C%2088.557%20302.372%2057.948%20302.373%2049.317%20300.497%20Z'/%3e%3cg%20fill='%23161615'%20transform='translate(2.5%203)'%3e%3cpath%20id='y-eye-1'%20d='M%20107%2045.5%20C%20107%2054.613%20102.075%2062%2096%2062%20C%2089.925%2062%2085%2054.613%2085%2045.5%20C%2085%2036.387%2089.925%2029%2096%2029%20C%20102.075%2029%20107%2036.387%20107%2045.5%20Z'/%3e%3cpath%20id='y-eye-2'%20d='M%20139%2045.5%20C%20139%2054.613%20134.075%2062%20128%2062%20C%20121.925%2062%20117%2054.613%20117%2045.5%20C%20117%2036.387%20121.925%2029%20128%2029%20C%20134.075%2029%20139%2036.387%20139%2045.5%20Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,respond:`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20role='img'%20aria-labelledby='title%20desc'%3e%3ctitle%20id='title'%3eteammy-y-respond-light%3c/title%3e%3cdesc%20id='desc'%3eteammy%20v02%20y%20mascot,%20respond%20pose,%20transparent%20background;%20for%20light%20backgrounds.%3c/desc%3e%3cg%20transform='translate(112%2060)%20scale(1.3)'%3e%3cg%20id='y-pose'%20transform='rotate(2.5%20111.0%20302)'%3e%3cpath%20id='y-body'%20fill='%23FD523A'%20fill-rule='evenodd'%20d='M%2049.317%20300.497%20C%2028.532%20295.979%2018.688%20282.992%2023.472%20266.402%20C%2026.05%20257.459%2033.188%20245.557%2064.462%20198.05%20C%2073.677%20184.052%2081.395%20172.127%2081.613%20171.55%20C%2081.831%20170.972%2078.97%20168.935%2075.255%20167.022%20C%2065.861%20162.185%2050.569%20146.814%2041.34%20132.932%20C%2029.015%20114.392%2010.878%2075.899%203.443%2052.5%20C%201.197%2045.434%200.575%2041.566%200.546%2034.5%20C%200.514%2026.44%200.839%2024.805%203.66%2018.841%20C%207.579%2010.555%2013.474%204.715%2020.613%202.044%20C%2029.833%20-1.406%2039.061%20-0.444%2046.837%204.779%20C%2054.765%2010.103%2057.482%2015.595%2066.49%2044.5%20C%2083.08%2097.73%2096.468%20117.452%20112.993%20112.856%20C%20118.444%20111.12%20127.482%20101.716%20133.012%2091.812%20C%20142.105%2074.963%20149.119%2057.285%20159.042%2027.157%20C%20167.649%201.542%20170.163%20-2.773%20179.22%20-7.422%20C%20183.328%20-9.469%20185.863%20-10%20191.537%20-10%20C%20203.952%20-10%20214.157%20-3.302%20219.622%208.435%20C%20222.964%2015.612%20222.934%2027.364%20219.549%2037.449%20C%20216.06%2047.842%20204.241%2075.158%20194.889%2095.806%20C%20181.005%20126.785%20171.321%20144.508%20133.006%20205.5%20C%20113.066%20237.182%20105%20250.137%20105%20250.478%20C%20105%20250.627%20111.412%20250.979%20119.25%20251.262%20C%20135.581%20251.85%20142.206%20253.486%20147.663%20258.277%20C%20156.782%20266.284%20156.024%20279.688%20145.965%20288.298%20C%20138.721%20294.498%20128.637%20297.41%20103.721%20300.494%20C%2088.557%20302.372%2057.948%20302.373%2049.317%20300.497%20Z'/%3e%3cg%20fill='%23161615'%20transform='translate(0%20-1.5)'%3e%3cpath%20id='y-eye-1'%20d='M%20107%2045.5%20C%20107%2054.613%20102.075%2062%2096%2062%20C%2089.925%2062%2085%2054.613%2085%2045.5%20C%2085%2036.387%2089.925%2029%2096%2029%20C%20102.075%2029%20107%2036.387%20107%2045.5%20Z'/%3e%3cpath%20id='y-eye-2'%20d='M%20139%2045.5%20C%20139%2054.613%20134.075%2062%20128%2062%20C%20121.925%2062%20117%2054.613%20117%2045.5%20C%20117%2036.387%20121.925%2029%20128%2029%20C%20134.075%2029%20139%2036.387%20139%2045.5%20Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`},dark:{logo:Of,standard:Af,focus:`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20role='img'%20aria-labelledby='title%20desc'%3e%3ctitle%20id='title'%3eteammy-y-focus-dark%3c/title%3e%3cdesc%20id='desc'%3eteammy%20v02%20y%20mascot,%20focus%20pose,%20transparent%20background;%20for%20dark%20backgrounds.%3c/desc%3e%3cg%20transform='translate(112%2060)%20scale(1.3)'%3e%3cg%20id='y-pose'%20transform='rotate(-3%20111.0%20302)'%3e%3cpath%20id='y-body'%20fill='%23FD523A'%20fill-rule='evenodd'%20d='M%2049.317%20300.497%20C%2028.532%20295.979%2018.688%20282.992%2023.472%20266.402%20C%2026.05%20257.459%2033.188%20245.557%2064.462%20198.05%20C%2073.677%20184.052%2081.395%20172.127%2081.613%20171.55%20C%2081.831%20170.972%2078.97%20168.935%2075.255%20167.022%20C%2065.861%20162.185%2050.569%20146.814%2041.34%20132.932%20C%2029.015%20114.392%2010.878%2075.899%203.443%2052.5%20C%201.197%2045.434%200.575%2041.566%200.546%2034.5%20C%200.514%2026.44%200.839%2024.805%203.66%2018.841%20C%207.579%2010.555%2013.474%204.715%2020.613%202.044%20C%2029.833%20-1.406%2039.061%20-0.444%2046.837%204.779%20C%2054.765%2010.103%2057.482%2015.595%2066.49%2044.5%20C%2083.08%2097.73%2096.468%20117.452%20112.993%20113.002%20C%20118.444%20111.534%20127.482%20103.119%20133.012%2094.364%20C%20142.105%2079.966%20149.119%2064.195%20159.042%2035.835%20C%20167.649%2011.235%20170.163%207.091%20179.22%202.578%20C%20183.328%200.531%20185.863%20-0%20191.537%200%20C%20203.952%200%20214.157%206.698%20219.622%2018.435%20C%20222.964%2025.612%20222.934%2037.364%20219.549%2047.449%20C%20216.06%2057.842%20204.241%2083.895%20194.889%20101.805%20C%20181.005%20128.395%20171.321%20144.622%20133.006%20205.5%20C%20113.066%20237.182%20105%20250.137%20105%20250.478%20C%20105%20250.627%20111.412%20250.979%20119.25%20251.262%20C%20135.581%20251.85%20142.206%20253.486%20147.663%20258.277%20C%20156.782%20266.284%20156.024%20279.688%20145.965%20288.298%20C%20138.721%20294.498%20128.637%20297.41%20103.721%20300.494%20C%2088.557%20302.372%2057.948%20302.373%2049.317%20300.497%20Z'/%3e%3cg%20fill='%23FFFFFF'%20transform='translate(2.5%203)'%3e%3cpath%20id='y-eye-1'%20d='M%20107%2045.5%20C%20107%2054.613%20102.075%2062%2096%2062%20C%2089.925%2062%2085%2054.613%2085%2045.5%20C%2085%2036.387%2089.925%2029%2096%2029%20C%20102.075%2029%20107%2036.387%20107%2045.5%20Z'/%3e%3cpath%20id='y-eye-2'%20d='M%20139%2045.5%20C%20139%2054.613%20134.075%2062%20128%2062%20C%20121.925%2062%20117%2054.613%20117%2045.5%20C%20117%2036.387%20121.925%2029%20128%2029%20C%20134.075%2029%20139%2036.387%20139%2045.5%20Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,respond:`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20role='img'%20aria-labelledby='title%20desc'%3e%3ctitle%20id='title'%3eteammy-y-respond-dark%3c/title%3e%3cdesc%20id='desc'%3eteammy%20v02%20y%20mascot,%20respond%20pose,%20transparent%20background;%20for%20dark%20backgrounds.%3c/desc%3e%3cg%20transform='translate(112%2060)%20scale(1.3)'%3e%3cg%20id='y-pose'%20transform='rotate(2.5%20111.0%20302)'%3e%3cpath%20id='y-body'%20fill='%23FD523A'%20fill-rule='evenodd'%20d='M%2049.317%20300.497%20C%2028.532%20295.979%2018.688%20282.992%2023.472%20266.402%20C%2026.05%20257.459%2033.188%20245.557%2064.462%20198.05%20C%2073.677%20184.052%2081.395%20172.127%2081.613%20171.55%20C%2081.831%20170.972%2078.97%20168.935%2075.255%20167.022%20C%2065.861%20162.185%2050.569%20146.814%2041.34%20132.932%20C%2029.015%20114.392%2010.878%2075.899%203.443%2052.5%20C%201.197%2045.434%200.575%2041.566%200.546%2034.5%20C%200.514%2026.44%200.839%2024.805%203.66%2018.841%20C%207.579%2010.555%2013.474%204.715%2020.613%202.044%20C%2029.833%20-1.406%2039.061%20-0.444%2046.837%204.779%20C%2054.765%2010.103%2057.482%2015.595%2066.49%2044.5%20C%2083.08%2097.73%2096.468%20117.452%20112.993%20112.856%20C%20118.444%20111.12%20127.482%20101.716%20133.012%2091.812%20C%20142.105%2074.963%20149.119%2057.285%20159.042%2027.157%20C%20167.649%201.542%20170.163%20-2.773%20179.22%20-7.422%20C%20183.328%20-9.469%20185.863%20-10%20191.537%20-10%20C%20203.952%20-10%20214.157%20-3.302%20219.622%208.435%20C%20222.964%2015.612%20222.934%2027.364%20219.549%2037.449%20C%20216.06%2047.842%20204.241%2075.158%20194.889%2095.806%20C%20181.005%20126.785%20171.321%20144.508%20133.006%20205.5%20C%20113.066%20237.182%20105%20250.137%20105%20250.478%20C%20105%20250.627%20111.412%20250.979%20119.25%20251.262%20C%20135.581%20251.85%20142.206%20253.486%20147.663%20258.277%20C%20156.782%20266.284%20156.024%20279.688%20145.965%20288.298%20C%20138.721%20294.498%20128.637%20297.41%20103.721%20300.494%20C%2088.557%20302.372%2057.948%20302.373%2049.317%20300.497%20Z'/%3e%3cg%20fill='%23FFFFFF'%20transform='translate(0%20-1.5)'%3e%3cpath%20id='y-eye-1'%20d='M%20107%2045.5%20C%20107%2054.613%20102.075%2062%2096%2062%20C%2089.925%2062%2085%2054.613%2085%2045.5%20C%2085%2036.387%2089.925%2029%2096%2029%20C%20102.075%2029%20107%2036.387%20107%2045.5%20Z'/%3e%3cpath%20id='y-eye-2'%20d='M%20139%2045.5%20C%20139%2054.613%20134.075%2062%20128%2062%20C%20121.925%2062%20117%2054.613%20117%2045.5%20C%20117%2036.387%20121.925%2029%20128%2029%20C%20134.075%2029%20139%2036.387%20139%2045.5%20Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`}};function Mf({compact:e=!1,background:t=`light`}){return(0,Q.jsx)(`div`,{className:`brand ${e?`brand-compact`:``}`,children:(0,Q.jsx)(`img`,{src:jf[t][e?`standard`:`logo`],alt:`Teammy`})})}function Nf({pose:e=`focus`,background:t=`light`}){return(0,Q.jsx)(`img`,{className:`mascot mascot-${e}`,src:jf[t][e],alt:``,"aria-hidden":`true`})}function Pf({name:e,small:t=!1}){return(0,Q.jsx)(`span`,{className:`avatar ${t?`small`:``}`,"aria-hidden":`true`,children:Array.from(e)[0]?.toUpperCase()})}function Ff({children:e}){return(0,Q.jsx)(`span`,{className:`count`,children:e})}function If({title:e,description:t,icon:n,mascot:r=!1,children:i}){return(0,Q.jsxs)(`div`,{className:`empty-state`,children:[r?(0,Q.jsx)(Nf,{}):n?(0,Q.jsx)(qf,{name:n}):null,(0,Q.jsx)(`h3`,{children:e}),t&&(0,Q.jsx)(`p`,{children:t}),i]})}function Lf({title:e,count:t,children:n}){return(0,Q.jsxs)(`div`,{className:`section-heading`,children:[(0,Q.jsxs)(`h2`,{children:[e,t!==void 0&&(0,Q.jsx)(Ff,{children:t})]}),n]})}function Rf({label:e,children:t}){return(0,Q.jsx)(`div`,{className:`toolbar-actions`,role:`group`,"aria-label":e,children:t})}function zf({children:e}){return e?(0,Q.jsx)(`div`,{"data-testid":`notice`,"data-kind":`info`,className:`notice`,role:`status`,children:e}):null}function Bf({id:e,name:t,label:n,hint:r,children:i}){let a=[i.props[`aria-describedby`],r?`${e}-hint`:void 0].filter(Boolean).join(` `)||void 0;return(0,Q.jsxs)(`label`,{className:`field`,htmlFor:e,children:[(0,Q.jsx)(`span`,{id:`${e}-label`,children:n}),(0,J.cloneElement)(i,{id:e,name:t??i.props.name??e,"data-testid":e,"aria-labelledby":`${e}-label`,"aria-describedby":a}),r&&(0,Q.jsx)(`small`,{id:`${e}-hint`,children:r})]})}function Vf({title:e,description:t,children:n}){return(0,Q.jsxs)(`header`,{className:`page-header`,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h1`,{children:e}),t&&(0,Q.jsx)(`p`,{children:t})]}),n]})}function Hf({id:e,title:t,label:n,actions:r,onKeyDown:i,children:a,onClose:o}){let s=(0,J.useRef)(null),c=yf();return(0,J.useEffect)(()=>{let e=document.activeElement,t=s.current;t.showModal();let n=c?.(t);return()=>{n?.(),t.close(),e?.focus()}},[c]),(0,Q.jsx)(`dialog`,{id:e,"data-testid":e,"aria-labelledby":n?void 0:`${e}-title`,"aria-label":n,ref:s,onKeyDown:i,onCancel:e=>{e.preventDefault(),o()},onClick:e=>{e.target===e.currentTarget&&o()},children:(0,Q.jsxs)(`div`,{className:`dialog-content`,children:[(0,Q.jsxs)(`header`,{className:`dialog-header`,children:[(0,Q.jsx)(`h2`,{id:`${e}-title`,children:t}),r,(0,Q.jsx)(Xf,{icon:`close`,label:Z.close,"data-testid":`dialog-close`,onClick:o})]}),a]})})}function Uf({id:e,label:t,value:n}){let[r,i]=(0,J.useState)(``),a=Cf();return(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`div`,{className:`command`,"data-testid":e,children:[(0,Q.jsx)(`code`,{"data-testid":`${e}-value`,children:n}),(0,Q.jsx)(Xf,{icon:`copy`,"data-testid":`${e}-copy`,label:`${Z.copy}${t}`,onClick:async()=>{try{a(``),await Pl(n),i(Z.copied)}catch{i(``),a(Z.copyFailed)}}})]}),r&&(0,Q.jsx)(`small`,{"data-testid":`${e}-feedback`,role:`status`,children:r})]})}function Wf({value:e}){return e?(0,Q.jsx)(`time`,{dateTime:e,children:new Date(e).toLocaleString(`zh-CN`,{hour12:!1})}):(0,Q.jsx)(`span`,{children:`—`})}var Gf={clear:su,assistant:Gd,messages:_d,channels:yd,pin:kd,more:Nu,computers:Cd,archive:Zl,send:$l,activity:Yl,dashboard:ad,home:$u,clock:Cu,warning:$d,command:Yd,sessions:yd,message:_d,files:Yu,materials:ru,memory:au,question:yu,folderOpen:qu,chevronUp:hu,chevronDown:du,members:cf,settings:Vd,help:yu,filter:Zu,compact:xd,stop:qd,restore:Ld,refresh:Fd,loading:dd,chevron:pu,file:Gu,text:Zd,link:sd,attachment:Td,image:td,paste:xu,zoomIn:ff,zoomOut:mf,imageFile:zu,spreadsheetFile:Uu,codeFile:Lu,addText:ld,addFile:Vu,download:ju,code:Tu,preview:Fu,sparkles:Gd,close:uf,plus:Nd,edit:Dd,device:Cd,disable:of,enable:tf,reset:rd,menu:hd,logout:pd,account:rf,copy:Du,general:Ud,connect:jd,model:ku,check:lu,search:zd,notifications:tu,attention:_u},Kf={small:16,normal:24,navigation:38};function qf({name:e,size:t=`normal`}){let n=Gf[e];return(0,Q.jsx)(n,{className:`icon`,size:Kf[t],strokeWidth:2,absoluteStrokeWidth:!0,"aria-hidden":`true`})}var Jf={channels:(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`path`,{d:`M4.3 2.3h9.5a2.3 2.3 0 0 1 2.3 2.3v5.8a2.3 2.3 0 0 1-2.3 2.3H6.9l-3.5 2.9a.85.85 0 0 1-1.4-.65V4.6a2.3 2.3 0 0 1 2.3-2.3Z`}),(0,Q.jsx)(`path`,{d:`M18 8.5h1.8a2.2 2.2 0 0 1 2.2 2.2v10a.85.85 0 0 1-1.4.65L17.4 19h-7.2A2.2 2.2 0 0 1 8 16.8v-2.2h5.8a4.2 4.2 0 0 0 4.2-4.2Z`})]}),materials:(0,Q.jsx)(`path`,{d:`M2 5a2 2 0 0 1 2-2h3.1c1.6 0 2.9.45 4 1.3v16.4a6.4 6.4 0 0 0-3.9-1.2H4a2 2 0 0 1-2-2Zm20 0a2 2 0 0 0-2-2h-3.1c-1.6 0-2.9.45-4 1.3v16.4a6.4 6.4 0 0 1 3.9-1.2H20a2 2 0 0 0 2-2Z`}),help:(0,Q.jsx)(`path`,{fillRule:`evenodd`,d:`M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0ZM8.5 8.9a3.6 3.6 0 0 1 7 .9c0 1.8-1.3 2.7-2.4 3.5-.5.4-.6.7-.6 1.3h-1.8c0-1.4.5-2.1 1.5-2.8 1-.7 1.5-1.2 1.5-2a1.8 1.8 0 0 0-3.5-.45ZM13 17.2a1.15 1.15 0 1 1-2.3 0 1.15 1.15 0 0 1 2.3 0Z`}),settings:(0,Q.jsx)(`path`,{fillRule:`evenodd`,d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.32-1.915ZM15.4 12a3.4 3.4 0 1 1-6.8 0 3.4 3.4 0 0 1 6.8 0Z`})};function Yf({name:e,selected:t}){let n=t&&Jf[e];return n?(0,Q.jsx)(`svg`,{className:`icon`,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,Q.jsx)(`g`,{stroke:`none`,children:n})}):(0,Q.jsx)(qf,{name:e})}function Xf({label:e,icon:t,tooltip:n=t!==`refresh`,className:r=``,variant:i=`ghost`,...a}){return(0,Q.jsx)(`button`,{type:`button`,...a,className:`icon-button ${i===`primary`?`primary`:``} ${r}`,"aria-label":e,"data-tooltip":n===!0?e:n||void 0,children:(0,Q.jsx)(qf,{name:t})})}function Zf({id:e,label:t,trigger:n,triggerId:r,className:i=``,disabled:a=!1,placement:o=`bottom`,routeKey:s,children:c,open:l,onOpenChange:u,focusFirst:d=!0}){let[f,p]=(0,J.useState)(!1),m=l??f,h=e=>{p(e),u?.(e)},g=(0,J.useRef)(null),_=(0,J.useRef)(null),ee=(0,J.useRef)(!1),v=(0,J.useRef)(null),[te,y]=(0,J.useState)();return(0,J.useLayoutEffect)(()=>{if(!m||o!==`top`)return;let e=()=>{if(!_.current||!v.current)return;let e=_.current.getBoundingClientRect(),t=v.current.getBoundingClientRect().width;y({position:`fixed`,top:`auto`,bottom:innerHeight-e.top+8,left:Math.max(8,Math.min(e.left,innerWidth-t-8)),maxHeight:`min(var(--dropdown-max-height, 70dvh), ${Math.max(80,e.top-24)}px)`})};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[m,o]),(0,J.useEffect)(()=>h(!1),[s]),(0,J.useEffect)(()=>{if(!m)return;let e=g.current?.querySelectorAll(`[role="menuitem"]:not(:disabled)`);d&&e?.[ee.current?e.length-1:0]?.focus();let t=e=>{g.current?.contains(e.target)||h(!1)};return document.addEventListener(`pointerdown`,t),()=>document.removeEventListener(`pointerdown`,t)},[m]),(0,Q.jsxs)(`div`,{className:`dropdown ${i}`,ref:g,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||h(!1)},onKeyDown:e=>{e.key===`Escape`&&m&&(e.stopPropagation(),h(!1),_.current?.focus())},children:[(0,Q.jsx)(`button`,{ref:_,type:`button`,disabled:a,className:`dropdown-trigger`,"data-testid":r,"aria-label":t,"aria-haspopup":`menu`,"aria-expanded":m,"aria-controls":e,onClick:()=>{ee.current=!1,h(!m)},onKeyDown:e=>{(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),ee.current=e.key===`ArrowUp`,h(!0))},children:n}),m&&(0,Q.jsx)(`div`,{id:e,ref:v,style:o===`top`?te:void 0,className:`dropdown-menu`,role:`menu`,"aria-label":t,"data-testid":e,onKeyDown:e=>{let t=[...e.currentTarget.querySelectorAll(`[role="menuitem"]:not(:disabled)`)],n=t.indexOf(document.activeElement),r=e.key===`ArrowDown`?(n+1)%t.length:e.key===`ArrowUp`?(n+t.length-1)%t.length:e.key===`Home`?0:e.key===`End`?t.length-1:void 0;r!==void 0&&(e.preventDefault(),t[r]?.focus())},children:c(()=>{h(!1),_.current?.focus()})})]})}export{rl as $,kl as A,d as At,ml as B,Cf as C,Gs as Ct,jl as D,fa as Dt,Nl as E,H as Et,bl as F,o as Ft,Kc as G,pl as H,Sl as I,s as It,Yc as J,Zc as K,Cl as L,l as Lt,hl as M,u as Mt,vl as N,m as Nt,Ol as O,ee as Ot,yl as P,p as Pt,tl as Q,_l as R,bf as S,B as St,Ml as T,vs as Tt,Gc as U,Z as V,Xc as W,Uc as X,Bc as Y,el as Z,Wf as _,q as _t,Ff as a,Nc as at,wf as b,Qs as bt,qf as c,X as ct,Hf as d,Ps as dt,nl as et,Yf as f,ec as ft,Rf as g,Cc as gt,Lf as h,qs as ht,Uf as i,Ac as it,Tl as j,f as jt,Al as k,g as kt,Xf as l,Dc as lt,Vf as m,W as mt,Pf as n,qc as nt,If as o,Mc as ot,zf as p,G as pt,Hc as q,Mf as r,Jc as rt,Bf as s,jc as st,Zf as t,il as tt,Nf as u,Y as ut,Tf as v,U as vt,Pl as w,zs as wt,Ef as x,Zs as xt,xf as y,K as yt,xl as z};
@@ -0,0 +1 @@
1
+ .error-notifications{z-index:1000;top:max(16px, env(safe-area-inset-top));right:max(16px, env(safe-area-inset-right));pointer-events:none;gap:8px;width:min(340px,100vw - 32px);display:grid;position:fixed}.error-toast{border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text);box-shadow:var(--shadow-menu);font-size:var(--text-sm);pointer-events:auto;grid-template-columns:16px minmax(0,1fr) 24px;align-items:start;gap:9px;padding:10px 8px 10px 13px;line-height:20px;display:grid}.error-toast>svg{color:var(--color-link);margin-top:4px}.error-toast-body{white-space:pre-line;overflow-wrap:anywhere;max-height:20dvh;padding-block:2px;overflow:auto}.error-toast-close{border-radius:var(--radius-sm);width:24px;min-width:0;height:24px;min-height:0;color:var(--color-muted);background:0 0;border:0;place-items:center;padding:0;display:grid}.error-toast-close:hover,.error-toast-close:focus-visible{background:var(--color-hover);color:var(--color-text)}.error-detail{align-items:baseline;gap:var(--space-2);font-size:var(--text-sm);color:var(--color-danger);overflow-wrap:anywhere;flex-wrap:wrap;display:flex}.error-retry{min-height:24px;color:var(--color-text);text-underline-offset:3px;background:0 0;border:0;padding:0 4px;text-decoration:underline}@media (prefers-reduced-motion:no-preference){.error-toast{animation:.14s ease-out show-error-toast}@keyframes show-error-toast{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}}
@@ -0,0 +1 @@
1
+ import{At as e,C as t,D as n,M as r,V as i,b as a,c as o,g as s,j as c,k as l,kt as u,l as d,o as f,ot as p,v as m}from"./Dropdown-DXEtBxVr.js";import{B as h,M as g,N as _,P as v}from"./index-Cr9kdjwc.js";import{r as y}from"./task-links-B7fExlHK.js";import{t as b}from"./Markdown-DGF8VSqv.js";import{a as x,i as S,l as C,n as w,o as T,s as E,t as D}from"./WorkspaceTree-CwGvdfr0.js";import{t as O}from"./file-links-Bo7XBz3i.js";var k=u(),A=c();function j(e,t){let n=t.split(`/`).slice(0,-1);return n.map((t,r)=>w(e,n.slice(0,r+1).join(`/`))).concat(w(e,``))}function M({members:o,onRefresh:s}){let{api:c,projectId:l}=h(),[u,g]=(0,k.useState)(()=>{let e=new URLSearchParams(location.search),t=e.get(`owner`),n=p.safeParse(e.get(`path`));return t&&(E(t)||o.some(e=>e.id===t))&&n.success&&!T(n.data)?{owner:t,path:n.data}:void 0}),[b,C]=(0,k.useState)(()=>new Set(u?j(u.owner,u.path):[])),[M,F]=(0,k.useState)(()=>u?{...u,kind:`file`}:void 0),[I,L]=(0,k.useState)(0),R=t(),[z,B]=(0,k.useState)(()=>{let e=new URLSearchParams(location.search);return!u&&(e.has(`owner`)||e.has(`path`))?`文件链接不完整或目标已不可用。`:``}),V=(0,k.useCallback)(async e=>{if(u)try{return{owner:u.owner,...await c.file(u.owner,u.path,void 0,e)}}catch(e){throw e instanceof r&&e.code===`FILE_NOT_FOUND`?new r(e.code,`找不到这个文件,可能已被删除或移动。`,e.status):e}},[c,u?.owner,u?.path]),H=n(V),U=H.data?.owner===u?.owner&&H.data?.file.path===u?.path?H.data:void 0;function W(e,t){let n=t.split(`/`).filter(Boolean);C(t=>{let r=new Set(t);for(let t=0;t<=n.length;t++)r.add(w(e,n.slice(0,t).join(`/`)));return r})}function G(t,n){R(``),B(``),W(t,n.split(`/`).slice(0,-1).join(`/`)),g({owner:t,path:n}),F({owner:t,path:n,kind:`file`}),history.replaceState(null,``,e(y(l,t,n)))}function K(t){if(!u)return!1;R(``);let n=O(E(u.owner)?u.path:`${u.owner}/${u.path}`,t);if(!n)return!/^[a-z][a-z0-9+.-]*:/i.test(t)&&!t.startsWith(`//`)&&(R(`该链接超出工作区,请在原仓库查看。`),!0);if(T(n.path))return R(`配置文件不在文件浏览中显示。`),!0;if(x(n.path))return location.assign(e(`/projects/${l}/memory`)),!0;let[r,...i]=n.path.split(`/`),a=o.some(e=>e.id===r),s=a?r:S,c=a?i.join(`/`):n.path;return B(``),n.directory?(W(s,c),F({owner:s,path:c,kind:`directory`})):s===u.owner&&c===u.path?n.anchor&&[...document.querySelectorAll(`.markdown h1,.markdown h2,.markdown h3,.markdown h4`)].find(e=>e.textContent?.trim().toLowerCase().replace(/\s+/g,`-`)===n.anchor.toLowerCase())?.scrollIntoView({block:`center`}):G(s,c),!0}return(0,A.jsx)(_,{"data-testid":`file-browser`,label:`文件资源管理器`,navigation:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(v,{title:`工作区`,children:(0,A.jsx)(d,{icon:`refresh`,label:`刷新文件`,"data-testid":`files-refresh`,onClick:()=>{B(``),L(e=>e+1),H.reload(),s()}})}),(0,A.jsx)(D,{members:o,expanded:b,selected:M,revealed:!H.loading&&!H.error&&U?{owner:U.owner,path:U.file.path,file:U.file}:void 0,onSelect:G,onToggle:(e,t)=>{F({owner:e,path:t,kind:`directory`}),C(n=>{let r=new Set(n),i=w(e,t);return r.has(i)?r.delete(i):r.add(i),r})}},I)]}),children:(0,A.jsxs)(`section`,{className:`file-detail`,"data-testid":`file-preview`,"data-owner-id":u?.owner,"data-file-path":u?.path,"aria-label":i.filePreview,children:[U&&(0,A.jsx)(a,{message:H.error}),U?(0,A.jsx)(P,{owner:U.owner,file:U.file,onLink:K},`${U.owner}:${U.file.path}:${U.file.sha256}`):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(N,{target:u}),(0,A.jsxs)(`div`,{className:`reader-body`,children:[(0,A.jsx)(m,{announce:!0,retry:H.error?H.reload:void 0,children:z||H.error}),u&&H.loading&&(0,A.jsx)(`p`,{className:`preview-body`,role:`status`,children:i.loading}),!u&&!z&&(0,A.jsx)(f,{mascot:!0,title:`查看工作区文件`,description:i.pickFile})]})]})]})})}function N({target:e,children:t}){let n=e&&(E(e.owner)?`teamcontext`:e.owner);return(0,A.jsx)(g,{title:e?(0,A.jsxs)(`h2`,{className:`file-detail-path`,title:`${n}/${e.path}`,children:[(0,A.jsxs)(`span`,{children:[n,` / `]}),e.path]}):i.filePreview,actions:t})}function P({owner:e,file:t,onLink:r}){let{readTextBlob:c,blobUrl:u,projectId:f}=h(),[p,g]=(0,k.useState)(!1),_=t.size>524288,v=/\.(md|markdown)$/i.test(t.path),y=/\.html?$/i.test(t.path),x=(0,k.useCallback)(e=>_?Promise.resolve(void 0):c(t,e),[t.sha256,t.size,_]),S=n(x,!1,l(f,`file-body`,t.sha256));return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(N,{target:{owner:e,path:t.path},children:(0,A.jsxs)(s,{label:`文件操作`,children:[(v||y)&&(0,A.jsx)(d,{icon:p?`preview`:`code`,label:p?`切换为预览`:`切换为原文`,"data-testid":`file-toggle-raw`,"aria-pressed":p,onClick:()=>g(!p)}),(0,A.jsx)(`a`,{className:`icon-button`,"data-testid":`file-download`,"aria-label":i.download,title:i.download,href:u(t.sha256),download:t.path.split(`/`).at(-1),children:(0,A.jsx)(o,{name:`download`})})]})}),(0,A.jsxs)(`div`,{className:`reader-body`,children:[S.data!==void 0&&(0,A.jsx)(a,{message:S.error}),_?(0,A.jsx)(`div`,{className:`empty`,children:(0,A.jsx)(`p`,{children:i.previewLarge})}):S.error&&S.data===void 0?(0,A.jsx)(`div`,{className:`preview-body`,children:(0,A.jsx)(m,{announce:!0,retry:S.reload,children:S.error})}):S.loading&&S.data===void 0?(0,A.jsx)(`p`,{className:`preview-body`,role:`status`,children:i.loading}):(0,A.jsx)(`div`,{className:`preview-body${y&&!p?` preview-body-html`:``}`,children:y&&!p?(0,A.jsx)(C,{url:u(t.sha256),name:t.path.split(`/`).at(-1)}):v&&!p?(0,A.jsx)(`article`,{className:`markdown`,"data-testid":`file-content`,"data-format":`markdown`,children:(0,A.jsx)(b,{onLink:r,children:S.data??``})}):(0,A.jsx)(`pre`,{className:`raw`,"data-testid":`file-content`,"data-format":`text`,children:S.data})})]})]})}export{M as Files};
@@ -1,4 +1,4 @@
1
- import{D as e,Dt as t,N as n,St as r,T as i,i as a,o,x as s,y as c}from"./Dropdown-Dh9Q9fSi.js";import{L as l,M as u,N as d,j as f,n as p}from"./index-CWjsEUUy.js";import{t as m}from"./Markdown-Gk89fXoh.js";var h=`# 帮助
1
+ import{D as e,N as t,Pt as n,T as r,i,j as a,kt as o,o as s,z as c}from"./Dropdown-DXEtBxVr.js";import{M as l,N as u,P as d,R as f,n as p}from"./index-Cr9kdjwc.js";import{t as m}from"./Markdown-DGF8VSqv.js";var h=`# 帮助
2
2
 
3
3
  网页目录按 [index.json](index.json) 中的分组和文章顺序展示。
4
4
 
@@ -92,6 +92,7 @@ import{D as e,Dt as t,N as n,St as r,T as i,i as a,o,x as s,y as c}from"./Dropdo
92
92
  | 26/11/19 | v0.2.17 | 任务编号及相关交互;电脑会话完成时企微提醒;客户端静默更新。 |
93
93
  | 26/11/19 | v0.2.18 | 设置交互更新;修复已知问题。 |
94
94
  | 26/11/19 | v0.2.19 | 支持自动更新;修复已知问题。 |
95
+ | 26/11/20 | v0.2.20 | 电脑接入 CodeBuddy、DSH;补全子 Agent 进度、会话恢复与压缩;统一网页错误提醒。 |
95
96
  `,_=`# 让开发 Agent 使用 Teammy
96
97
 
97
98
  正在使用的开发 Agent 可以通过 Teammy 查询任务、资料和历史会话。开始一项工作前,让 Agent 查找团队已有的结论,有助于减少重复摸索。
@@ -151,7 +152,7 @@ Agent 可以读取结果并继续查询;需要与 Tim 交流时,使用网页
151
152
 
152
153
  项目成员均可接入本地 Agent,无需管理员单独开放。登记的目录默认可接收 Tim 转交;新工作从已关联的会话中选择。
153
154
 
154
- 本地 Agent 支持 Codex、原版 Claude Code、Cursor CLI、Pi 和 OpenCode。先完成[客户端安装与项目连接](../getting-started/installation.md),并在同一台机器上安装、登录所需 Agent。Codex 需要 0.166.0 或更新版本;Claude Code 和 Cursor CLI 建议保持当前稳定版本;Pi 需要 \`@earendil-works/pi-coding-agent\` 1.4.0 或更新版本;OpenCode 需要 \`@opencode/cli\` 2.2 或更新的 2.x 版本。在已连接项目的根目录或子目录执行下面的命令,登记当前目录:
155
+ 本地 Agent 支持 Codex、原版 Claude Code、Cursor CLI、Pi、OpenCode、CodeBuddy 和 DSH。先完成[客户端安装与项目连接](../getting-started/installation.md),并在同一台机器上安装、登录所需 Agent。Codex 需要 0.166.0 或更新版本;Claude Code 和 Cursor CLI 建议保持当前稳定版本;Pi 需要 \`@earendil-works/pi-coding-agent\` 1.4.0 或更新版本;OpenCode 需要 \`@opencode/cli\` 2.2 或更新的 2.x 版本。在已连接项目的根目录或子目录执行下面的命令,登记当前目录:
155
156
 
156
157
  \`\`\`sh
157
158
  teammy agent register --provider codex --cwd .
@@ -177,7 +178,7 @@ teammy agent register --provider codex --cwd .
177
178
 
178
179
  ## 在网页中工作
179
180
 
180
- 在会话中说明目标和要求,Agent 会在对应目录开展工作,并将回复和问题显示在同一会话中。点击目录旁的 **+**,选择 Codex、Claude Code、Cursor、Pi 或 OpenCode,可以在同一目录创建不同 Agent 的独立会话。选择「终端」可[直接操作本机 Shell](terminal.md)。
181
+ 在会话中说明目标和要求,Agent 会在对应目录开展工作,并将回复和问题显示在同一会话中。点击目录旁的 **+**,选择这台设备上可用的 Agent,可以在同一目录创建不同 Agent 的独立会话。选择「终端」可[直接操作本机 Shell](terminal.md)。
181
182
 
182
183
  每个会话保留独立的聊天记录和上下文,再次打开会沿用原会话。同一目录下的会话共享文件,可以并发工作;同一会话的消息按顺序处理。需要在企业微信中继续时,可为会话[连接专用群](../conversations/wecom.md#连接本地-agent-专用群)。
183
184
 
@@ -187,7 +188,7 @@ teammy agent register --provider codex --cwd .
187
188
 
188
189
  ### 导入已有会话
189
190
 
190
- 点击目录旁的 **+**,选择执行目录,再点击「导入历史会话」并选择 Agent。点击 Session 输入框展开当前目录的历史列表,可按标题或 ID 筛选;也可以直接粘贴原生 Session ID,点击「导入」。支持 Codex、Claude Code、Cursor、Pi 和 OpenCode;开发机器需要在线,并使用支持历史导入的新版客户端。
191
+ 点击目录旁的 **+**,选择执行目录,再点击「导入历史会话」并选择 Agent。点击 Session 输入框展开当前目录的历史列表,可按标题或 ID 筛选;也可以直接粘贴原生 Session ID,点击「导入」。七种本地 Agent 均支持按目录导入。开发机器需要在线,并使用支持历史导入的新版客户端。
191
192
 
192
193
  Codex 会话的工作目录从项目根目录或中间目录切到子目录后,可在该子目录的历史列表中找到。
193
194
 
@@ -217,7 +218,7 @@ Tim 根据目录职责和已关联的会话标题选择接收位置。明确指
217
218
 
218
219
  > 开发机离线时,已发送的附件最多等待 7 天。开发机确认保存后,服务端清除中转文件。需要长期共享的文件可上传到「资料」。
219
220
 
220
- Agent 工作时,按 Enter 或点击发送即可插话。Codex、Claude Code、Pi 和 OpenCode 通过原生会话接收补充,正在执行的工具可能先完成。Cursor 会先中断当前轮次,再在同一会话处理新消息。希望留到下一轮处理时,按 Ctrl + Enter(Mac 上也可按 ⌘ + Enter)。
221
+ Agent 工作时,按 Enter 或点击发送即可插话。Codex、Claude Code、Pi 和 OpenCode 通过原生会话接收补充,正在执行的工具可能先完成。Cursor、CodeBuddy 和 DSH 会先中断当前轮次,再在同一会话处理新消息。希望留到下一轮处理时,按 Ctrl + Enter(Mac 上也可按 ⌘ + Enter)。
221
222
 
222
223
  Agent 暂停等待授权或回答时,在卡片中操作。期间发送的普通消息会在会话恢复后交付。发送按钮左侧的停止按钮可中断工作。悬停消息下的小图标可查看等待或异常状态。
223
224
 
@@ -229,7 +230,7 @@ Agent 暂停等待授权或回答时,在卡片中操作。期间发送的普
229
230
 
230
231
  会话空闲时,将鼠标移到已执行的用户消息上,可通过下方的复制、编辑图标操作。编辑后点击发送,会话从该消息之前继续,之后的对话由新内容替换;工作区文件保持当前状态,不撤销已经执行的文件修改。运行中的会话需要先停止。
231
232
 
232
- 当前支持 Codex、Claude Code、Pi 和 OpenCode;Cursor 暂不显示编辑入口。需要新版客户端在线,并保留该条消息的本地执行记录。原生回退确认前,网页仍显示原记录;失败时保留修改内容,可重试。结果未确认时,先在原编辑位置重试回退,再继续发送新消息。
233
+ 当前支持 Codex、Claude Code、Pi 和 OpenCode。需要新版客户端在线,并保留该条消息的本地执行记录。原生回退确认前,网页仍显示原记录;失败时保留修改内容,可重试。结果未确认时,先在原编辑位置重试回退,再继续发送新消息。
233
234
 
234
235
  > 此功能用于接入网页后发送的普通消息。Pi 仅支持已记录回退位置的新版消息;同一原生轮次中途追加的消息,需要从该轮首条消息编辑。原生历史保留,但网页暂不提供分支切换。
235
236
 
@@ -251,7 +252,7 @@ Agent 需要你作决定时,会显示问题卡片。可以选择选项;原
251
252
 
252
253
  > 如果 Agent 必须先收到答案才能继续,普通消息会暂存,待它恢复处理后再送达。
253
254
 
254
- > Codex 工具审批在消息呈现后,连续 60 秒没有回复会自动允许;「允许」按钮显示本地执行端回传的剩余秒数,刷新页面不会重置;期间收到回复会暂停自动批准。Claude、Cursor 和 OpenCode 的手动工具审批、Plan 确认及普通问题不会超时自动同意。
255
+ > Codex 工具审批在消息呈现后,连续 60 秒没有回复会自动允许;「允许」按钮显示本地执行端回传的剩余秒数,刷新页面不会重置;期间收到回复会暂停自动批准。Claude、Cursor、OpenCode、CodeBuddy 和 DSH 的手动工具审批、Plan 确认及普通问题不会超时自动同意。
255
256
 
256
257
  ## Claude 的计划与恢复
257
258
 
@@ -271,6 +272,14 @@ Cursor 的工作模式和权限分开选择:Agent 用于实施,Plan 用于
271
272
 
272
273
  网页刷新保留待答卡片;客户端重启后使用原生历史继续,旧进程的未决操作需先核对。
273
274
 
275
+ ## CodeBuddy 和 DSH
276
+
277
+ 在开发机安装并配置所需 CLI,然后在「电脑」的目录旁点击 **+** 选择 CodeBuddy 或 DSH。已有目录也可以用 \`teammy agent register --provider codebuddy --cwd .\` 或 \`teammy agent register --provider dsh --cwd .\` 登记。客户端使用接入电脑上的 \`codebuddy --acp\` 或 \`dsh --profile acp\`。DSH 0.2.2-rc.1 需要 Node.js 24.9 或更新版本。
278
+
279
+ 首次打开原生会话后,模型菜单会显示 CLI 提供的模型和当前模型的思考选项。图片按钮取决于 CLI 和模型能力。工具详情、停止、通知和 Tim 转交沿用「电脑」的操作方式。导入历史时,CodeBuddy 从本机项目记录中读取,DSH 从原生会话列表中读取;均可按当前目录选择会话。
280
+
281
+ CodeBuddy 发起选项题时,在问题卡内选择或输入答案;DSH 的文字问题直接在输入框回复。两者发起一次性工具审批时,网页等待你选择允许或拒绝。
282
+
274
283
  ## Pi 的原生会话
275
284
 
276
285
  登记 Pi 默认目录可使用 \`teammy agent register --provider pi --cwd .\`,也可在已有目录中新建 Pi 会话。执行使用接入电脑上的 Pi CLI、登录配置、模型和扩展;如果命令不在 PATH 中,可设置 \`TEAMMY_PI_EXECUTABLE\`。无需在运行网页的电脑上安装 Pi。
@@ -990,4 +999,4 @@ teamcontext/alice/2026-11-12-data-check/
990
999
  标有「需要确认」的任务,表示记录中有影响判断的歧义。查看来源后,可以修改内容再保存;如果当前内容已经准确,直接保存即可确认。
991
1000
 
992
1001
  > 网页修订保存在对应任务的 \`_task_update/\` 子目录中,作为补充记录同步,不改写原任务正文。
993
- `,N=new URL(`workflow-h92qCEHO.svg`,import.meta.url).href,P=r(),F={sections:[{title:`开始使用`,documents:[{title:`新成员接入指南`,path:`getting-started/onboarding.md`},{title:`认识 Teammy`,path:`getting-started/overview.md`},{title:`安装与首次接入`,path:`getting-started/installation.md`}]},{title:`工作区与任务`,documents:[{title:`工作记录与任务看板`,path:`workspace/work-records.md`}]},{title:`对话与协作`,documents:[{title:`与 Tim 交流`,path:`conversations/talk-to-tim.md`},{title:`在企业微信中使用 Teammy`,path:`conversations/wecom.md`},{title:`代码仓库与 PR/MR 评审`,path:`conversations/code-review.md`}]},{title:`电脑与本地执行`,documents:[{title:`使用本地 Agent`,path:`computers/local-agent.md`},{title:`使用终端`,path:`computers/terminal.md`},{title:`让开发 Agent 使用 Teammy`,path:`computers/agent-integration.md`}]},{title:`资料与经验`,documents:[{title:`资料、记忆与会话库`,path:`resources/library.md`}]},{title:`设置与维护`,documents:[{title:`项目与成员管理`,path:`settings/project-and-members.md`},{title:`消息与通知`,path:`settings/notifications.md`},{title:`模型接入与选择`,path:`settings/models.md`},{title:`客户端维护与同步`,path:`settings/client-maintenance.md`}]},{title:`问题排查`,documents:[{title:`常见问题`,path:`troubleshooting/common-issues.md`}]},{title:`Changelog`,documents:[{title:`版本更新`,path:`changelog.md`}]}]},I=i(),L=new Map(Object.entries(Object.assign({"../../../../docs/help/README.md":h,"../../../../docs/help/changelog.md":g,"../../../../docs/help/computers/agent-integration.md":_,"../../../../docs/help/computers/local-agent.md":v,"../../../../docs/help/computers/terminal.md":y,"../../../../docs/help/conversations/code-review.md":b,"../../../../docs/help/conversations/talk-to-tim.md":x,"../../../../docs/help/conversations/wecom.md":S,"../../../../docs/help/getting-started/installation.md":C,"../../../../docs/help/getting-started/onboarding.md":w,"../../../../docs/help/getting-started/overview.md":T,"../../../../docs/help/resources/library.md":E,"../../../../docs/help/settings/client-maintenance.md":D,"../../../../docs/help/settings/models.md":O,"../../../../docs/help/settings/notifications.md":k,"../../../../docs/help/settings/project-and-members.md":A,"../../../../docs/help/troubleshooting/common-issues.md":j,"../../../../docs/help/workspace/work-records.md":M})).map(([e,t])=>[e.slice(22),t])),R=new Map(Object.entries(Object.assign({"../../../../docs/help/assets/workflow.svg":N})).map(([e,t])=>[e.slice(22),t])),z=F.sections.flatMap(e=>e.documents)[0]??{title:`帮助`,path:`README.md`};function B(e,t){if(!/^(?:[a-z][a-z\d+.-]*:|\/)/i.test(e))try{let n=new URL(e,`https://help.invalid/${t}`);return{path:decodeURIComponent(n.pathname.slice(1)),hash:n.hash}}catch{}}function V({config:r,navigate:i}){let h=new URLSearchParams(location.search).get(`doc`),g=h||z.path,_=L.get(g),v=_?.match(/^# [^\r\n]+(?:\r?\n|$)/)?.[0],y=F.sections.flatMap(e=>e.documents).find(e=>e.path===g)?.title,b=location.hash,x=(0,P.useRef)(null),S=c(),C=s(e.server,!0),w=`teammy connect --url ${n(C.data?.clientUrl??r.publicServerUrl)} --project ${n(r.projectId)}`,T=(e,n=``)=>t(r.projectId,e,n);(0,P.useEffect)(()=>{let e=x.current;if(!e)return;if(!h&&!b){window.scrollTo(0,0);return}let t=``;try{t=decodeURIComponent(b.slice(1)).toLowerCase()}catch{}((t?[...e.querySelectorAll(`h1,h2,h3,h4,h5,h6`)].find(e=>e.textContent?.trim().toLowerCase().replace(/\s+/g,`-`)===t):void 0)??e).scrollIntoView({block:`start`})},[h,b]);function E(e,t){e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),i(t))}function D(e){return({children:t,href:n=``})=>{let r=B(n,e);if(!r||!r.path.endsWith(`.md`))return(0,I.jsx)(`a`,{href:r&&R.get(r.path)||n,target:`_blank`,rel:`noreferrer noopener`,children:t});let i=T(r.path,r.hash);return(0,I.jsx)(`a`,{href:i,onClick:e=>E(e,i),children:t})}}return(0,I.jsx)(u,{reading:!0,className:`help-explorer`,label:`帮助目录`,navigation:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(d,{title:`帮助`}),(0,I.jsx)(`nav`,{className:`help-navigation`,"aria-label":`帮助文档`,children:F.sections.map(e=>(0,I.jsxs)(`section`,{children:[(0,I.jsx)(`h2`,{children:e.title}),(0,I.jsx)(`ul`,{children:e.documents.map(e=>(0,I.jsx)(`li`,{children:(0,I.jsx)(l,{href:T(e.path),"aria-current":g===e.path?`page`:void 0,onClick:t=>E(t,T(e.path)),children:e.title})},e.path))})]},e.title))})]}),children:(0,I.jsxs)(`section`,{className:`session-reader`,"aria-label":`帮助内容`,ref:x,"data-testid":_?`help-content`:void 0,children:[(0,I.jsx)(f,{title:v?(0,I.jsx)(m,{children:v}):y||`帮助文档`}),_?(0,I.jsxs)(`article`,{className:`session-reader-content markdown`,children:[g===`getting-started/onboarding.md`&&(0,I.jsx)(p,{}),(0,I.jsx)(m,{components:{a:D(g),img:({src:e,alt:t})=>{let n=typeof e==`string`?B(e,g):void 0;return(0,I.jsx)(`img`,{src:n&&R.get(n.path)||e,alt:t,loading:`lazy`})},p:({children:e,node:t})=>t?.children.some(e=>e.type===`element`&&e.tagName===`code`&&e.children[0]?.type===`text`&&e.children[0].value===`{{TEAMMY_CLIENT_VERSION}}`)&&(!S.data||S.error)?(0,I.jsx)(`p`,{role:`status`,children:S.error?`暂时无法获取最新版客户端版本,如出现问题,请安装更新到最新版。`:`正在查询最新版客户端版本…`}):(0,I.jsx)(`p`,{children:e}),code:({children:e,className:t})=>(0,I.jsx)(`code`,{className:t,children:e===`{{TEAMMY_CLIENT_VERSION}}`?S.data?.version:e}),pre:({children:e,node:t})=>{let n=t?.children[0];return n?.type===`element`&&n.tagName===`code`&&n.children.length===1&&n.children[0]?.type===`text`&&n.children[0].value.trim()===`{{TEAMMY_CONNECT_COMMAND}}`?(0,I.jsx)(a,{id:`help-connect-command`,label:`连接命令`,value:w},w):(0,I.jsx)(`pre`,{children:e})}},children:_.slice(v?.length??0)})]}):(0,I.jsxs)(`div`,{className:`reader-body`,children:[(0,I.jsx)(o,{title:`未找到这篇帮助文档`}),(0,I.jsxs)(`a`,{href:T(z.path),onClick:e=>E(e,T(z.path)),children:[`返回`,z.title]})]})]})})}export{V as Help};
1002
+ `,N=new URL(`workflow-h92qCEHO.svg`,import.meta.url).href,P=o(),F={sections:[{title:`开始使用`,documents:[{title:`新成员接入指南`,path:`getting-started/onboarding.md`},{title:`认识 Teammy`,path:`getting-started/overview.md`},{title:`安装与首次接入`,path:`getting-started/installation.md`}]},{title:`工作区与任务`,documents:[{title:`工作记录与任务看板`,path:`workspace/work-records.md`}]},{title:`对话与协作`,documents:[{title:`与 Tim 交流`,path:`conversations/talk-to-tim.md`},{title:`在企业微信中使用 Teammy`,path:`conversations/wecom.md`},{title:`代码仓库与 PR/MR 评审`,path:`conversations/code-review.md`}]},{title:`电脑与本地执行`,documents:[{title:`使用本地 Agent`,path:`computers/local-agent.md`},{title:`使用终端`,path:`computers/terminal.md`},{title:`让开发 Agent 使用 Teammy`,path:`computers/agent-integration.md`}]},{title:`资料与经验`,documents:[{title:`资料、记忆与会话库`,path:`resources/library.md`}]},{title:`设置与维护`,documents:[{title:`项目与成员管理`,path:`settings/project-and-members.md`},{title:`消息与通知`,path:`settings/notifications.md`},{title:`模型接入与选择`,path:`settings/models.md`},{title:`客户端维护与同步`,path:`settings/client-maintenance.md`}]},{title:`问题排查`,documents:[{title:`常见问题`,path:`troubleshooting/common-issues.md`}]},{title:`Changelog`,documents:[{title:`版本更新`,path:`changelog.md`}]}]},I=a(),L=new Map(Object.entries(Object.assign({"../../../../docs/help/README.md":h,"../../../../docs/help/changelog.md":g,"../../../../docs/help/computers/agent-integration.md":_,"../../../../docs/help/computers/local-agent.md":v,"../../../../docs/help/computers/terminal.md":y,"../../../../docs/help/conversations/code-review.md":b,"../../../../docs/help/conversations/talk-to-tim.md":x,"../../../../docs/help/conversations/wecom.md":S,"../../../../docs/help/getting-started/installation.md":C,"../../../../docs/help/getting-started/onboarding.md":w,"../../../../docs/help/getting-started/overview.md":T,"../../../../docs/help/resources/library.md":E,"../../../../docs/help/settings/client-maintenance.md":D,"../../../../docs/help/settings/models.md":O,"../../../../docs/help/settings/notifications.md":k,"../../../../docs/help/settings/project-and-members.md":A,"../../../../docs/help/troubleshooting/common-issues.md":j,"../../../../docs/help/workspace/work-records.md":M})).map(([e,t])=>[e.slice(22),t])),R=new Map(Object.entries(Object.assign({"../../../../docs/help/assets/workflow.svg":N})).map(([e,t])=>[e.slice(22),t])),z=F.sections.flatMap(e=>e.documents)[0]??{title:`帮助`,path:`README.md`};function B(e,t){if(!/^(?:[a-z][a-z\d+.-]*:|\/)/i.test(e))try{let n=new URL(e,`https://help.invalid/${t}`);return{path:decodeURIComponent(n.pathname.slice(1)),hash:n.hash}}catch{}}function V({config:a,navigate:o}){let h=new URLSearchParams(location.search).get(`doc`),g=h||z.path,_=L.get(g),v=_?.match(/^# [^\r\n]+(?:\r?\n|$)/)?.[0],y=F.sections.flatMap(e=>e.documents).find(e=>e.path===g)?.title,b=location.hash,x=(0,P.useRef)(null),S=r(),C=e(t.server,!0),w=`teammy connect --url ${c(C.data?.clientUrl??a.publicServerUrl)} --project ${c(a.projectId)}`,T=(e,t=``)=>n(a.projectId,e,t);(0,P.useEffect)(()=>{let e=x.current;if(!e)return;if(!h&&!b){window.scrollTo(0,0);return}let t=``;try{t=decodeURIComponent(b.slice(1)).toLowerCase()}catch{}((t?[...e.querySelectorAll(`h1,h2,h3,h4,h5,h6`)].find(e=>e.textContent?.trim().toLowerCase().replace(/\s+/g,`-`)===t):void 0)??e).scrollIntoView({block:`start`})},[h,b]);function E(e,t){e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),o(t))}function D(e){return({children:t,href:n=``})=>{let r=B(n,e);if(!r||!r.path.endsWith(`.md`))return(0,I.jsx)(`a`,{href:r&&R.get(r.path)||n,target:`_blank`,rel:`noreferrer noopener`,children:t});let i=T(r.path,r.hash);return(0,I.jsx)(`a`,{href:i,onClick:e=>E(e,i),children:t})}}return(0,I.jsx)(u,{reading:!0,className:`help-explorer`,label:`帮助目录`,navigation:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(d,{title:`帮助`}),(0,I.jsx)(`nav`,{className:`help-navigation`,"aria-label":`帮助文档`,children:F.sections.map(e=>(0,I.jsxs)(`section`,{children:[(0,I.jsx)(`h2`,{children:e.title}),(0,I.jsx)(`ul`,{children:e.documents.map(e=>(0,I.jsx)(`li`,{children:(0,I.jsx)(f,{href:T(e.path),"aria-current":g===e.path?`page`:void 0,onClick:t=>E(t,T(e.path)),children:e.title})},e.path))})]},e.title))})]}),children:(0,I.jsxs)(`section`,{className:`session-reader`,"aria-label":`帮助内容`,ref:x,"data-testid":_?`help-content`:void 0,children:[(0,I.jsx)(l,{title:v?(0,I.jsx)(m,{children:v}):y||`帮助文档`}),_?(0,I.jsxs)(`article`,{className:`session-reader-content markdown`,children:[g===`getting-started/onboarding.md`&&(0,I.jsx)(p,{}),(0,I.jsx)(m,{components:{a:D(g),img:({src:e,alt:t})=>{let n=typeof e==`string`?B(e,g):void 0;return(0,I.jsx)(`img`,{src:n&&R.get(n.path)||e,alt:t,loading:`lazy`})},p:({children:e,node:t})=>t?.children.some(e=>e.type===`element`&&e.tagName===`code`&&e.children[0]?.type===`text`&&e.children[0].value===`{{TEAMMY_CLIENT_VERSION}}`)&&(!S.data||S.error)?(0,I.jsx)(`p`,{role:`status`,children:S.error?`暂时无法获取最新版客户端版本,如出现问题,请安装更新到最新版。`:`正在查询最新版客户端版本…`}):(0,I.jsx)(`p`,{children:e}),code:({children:e,className:t})=>(0,I.jsx)(`code`,{className:t,children:e===`{{TEAMMY_CLIENT_VERSION}}`?S.data?.version:e}),pre:({children:e,node:t})=>{let n=t?.children[0];return n?.type===`element`&&n.tagName===`code`&&n.children.length===1&&n.children[0]?.type===`text`&&n.children[0].value.trim()===`{{TEAMMY_CONNECT_COMMAND}}`?(0,I.jsx)(i,{id:`help-connect-command`,label:`连接命令`,value:w},w):(0,I.jsx)(`pre`,{children:e})}},children:_.slice(v?.length??0)})]}):(0,I.jsxs)(`div`,{className:`reader-body`,children:[(0,I.jsx)(s,{title:`未找到这篇帮助文档`}),(0,I.jsxs)(`a`,{href:T(z.path),onClick:e=>E(e,T(z.path)),children:[`返回`,z.title]})]})]})})}export{V as Help};