@legioncodeinc/honeycomb 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/bundle/cli.js +496 -74
- package/daemon/dashboard-app.js +23 -23
- package/daemon/index.js +1576 -769
- package/daemon/restart-helper.js +41 -0
- package/embeddings/embed-daemon.js +1 -1
- package/harnesses/claude-code/.claude-plugin/plugin.json +1 -1
- package/harnesses/claude-code/bundle/capture.js +45 -31
- package/harnesses/claude-code/bundle/index.js +45 -31
- package/harnesses/claude-code/bundle/pre-tool-use.js +45 -31
- package/harnesses/claude-code/bundle/session-end.js +45 -31
- package/harnesses/claude-code/bundle/session-start.js +45 -31
- package/harnesses/codex/bundle/capture.js +45 -31
- package/harnesses/codex/bundle/index.js +45 -31
- package/harnesses/codex/bundle/pre-tool-use.js +45 -31
- package/harnesses/codex/bundle/session-start.js +45 -31
- package/harnesses/codex/package.json +1 -1
- package/harnesses/cursor/bundle/capture.js +45 -31
- package/harnesses/cursor/bundle/index.js +45 -31
- package/harnesses/cursor/bundle/pre-tool-use.js +45 -31
- package/harnesses/cursor/bundle/session-end.js +45 -31
- package/harnesses/cursor/bundle/session-start.js +45 -31
- package/harnesses/openclaw/dist/index.js +1 -1
- package/harnesses/openclaw/openclaw.plugin.json +1 -1
- package/harnesses/openclaw/package.json +1 -1
- package/mcp/bundle/server.js +1 -1
- package/package.json +1 -1
package/daemon/dashboard-app.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var Jw=Object.create;var Bu=Object.defineProperty;var Gw=Object.getOwnPropertyDescriptor;var Xw=Object.getOwnPropertyNames;var Kw=Object.getPrototypeOf,Yw=Object.prototype.hasOwnProperty;var Cn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Tn=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},Qw=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xw(t))!Yw.call(e,n)&&n!==r&&Bu(e,n,{get:()=>t[n],enumerable:!(o=Gw(t,n))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Jw(Kw(e)):{},Qw(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e));var rx=Cn(ce=>{"use strict";var zi=Symbol.for("react.element"),qw=Symbol.for("react.portal"),e1=Symbol.for("react.fragment"),t1=Symbol.for("react.strict_mode"),n1=Symbol.for("react.profiler"),r1=Symbol.for("react.provider"),o1=Symbol.for("react.context"),i1=Symbol.for("react.forward_ref"),a1=Symbol.for("react.suspense"),l1=Symbol.for("react.memo"),s1=Symbol.for("react.lazy"),Hh=Symbol.iterator;function c1(e){return e===null||typeof e!="object"?null:(e=Hh&&e[Hh]||e["@@iterator"],typeof e=="function"?e:null)}var Xh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kh=Object.assign,Yh={};function io(e,t,r){this.props=e,this.context=t,this.refs=Yh,this.updater=r||Xh}io.prototype.isReactComponent={};io.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};io.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qh(){}Qh.prototype=io.prototype;function Hu(e,t,r){this.props=e,this.context=t,this.refs=Yh,this.updater=r||Xh}var Ju=Hu.prototype=new Qh;Ju.constructor=Hu;Kh(Ju,io.prototype);Ju.isPureReactComponent=!0;var Jh=Array.isArray,qh=Object.prototype.hasOwnProperty,Gu={current:null},ex={key:!0,ref:!0,__self:!0,__source:!0};function tx(e,t,r){var o,n={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)qh.call(t,o)&&!ex.hasOwnProperty(o)&&(n[o]=t[o]);var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)n[o]===void 0&&(n[o]=l[o]);return{$$typeof:zi,type:e,key:i,ref:a,props:n,_owner:Gu.current}}function u1(e,t){return{$$typeof:zi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xu(e){return typeof e=="object"&&e!==null&&e.$$typeof===zi}function d1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Gh=/\/+/g;function Vu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?d1(""+e.key):t.toString(36)}function cl(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case zi:case qw:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+Vu(a,0):o,Jh(n)?(r="",e!=null&&(r=e.replace(Gh,"$&/")+"/"),cl(n,t,r,"",function(c){return c})):n!=null&&(Xu(n)&&(n=u1(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(Gh,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",Jh(e))for(var l=0;l<e.length;l++){i=e[l];var s=o+Vu(i,l);a+=cl(i,t,r,s,n)}else if(s=c1(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=o+Vu(i,l++),a+=cl(i,t,r,s,n);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function sl(e,t,r){if(e==null)return e;var o=[],n=0;return cl(e,o,"","",function(i){return t.call(r,i,n++)}),o}function p1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pt={current:null},ul={transition:null},f1={ReactCurrentDispatcher:pt,ReactCurrentBatchConfig:ul,ReactCurrentOwner:Gu};function nx(){throw Error("act(...) is not supported in production builds of React.")}ce.Children={map:sl,forEach:function(e,t,r){sl(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return sl(e,function(){t++}),t},toArray:function(e){return sl(e,function(t){return t})||[]},only:function(e){if(!Xu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=io;ce.Fragment=e1;ce.Profiler=n1;ce.PureComponent=Hu;ce.StrictMode=t1;ce.Suspense=a1;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f1;ce.act=nx;ce.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=Kh({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Gu.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)qh.call(t,s)&&!ex.hasOwnProperty(s)&&(o[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:zi,type:e.type,key:n,ref:i,props:o,_owner:a}};ce.createContext=function(e){return e={$$typeof:o1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:r1,_context:e},e.Consumer=e};ce.createElement=tx;ce.createFactory=function(e){var t=tx.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:i1,render:e}};ce.isValidElement=Xu;ce.lazy=function(e){return{$$typeof:s1,_payload:{_status:-1,_result:e},_init:p1}};ce.memo=function(e,t){return{$$typeof:l1,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=ul.transition;ul.transition={};try{e()}finally{ul.transition=t}};ce.unstable_act=nx;ce.useCallback=function(e,t){return pt.current.useCallback(e,t)};ce.useContext=function(e){return pt.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return pt.current.useDeferredValue(e)};ce.useEffect=function(e,t){return pt.current.useEffect(e,t)};ce.useId=function(){return pt.current.useId()};ce.useImperativeHandle=function(e,t,r){return pt.current.useImperativeHandle(e,t,r)};ce.useInsertionEffect=function(e,t){return pt.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return pt.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return pt.current.useMemo(e,t)};ce.useReducer=function(e,t,r){return pt.current.useReducer(e,t,r)};ce.useRef=function(e){return pt.current.useRef(e)};ce.useState=function(e){return pt.current.useState(e)};ce.useSyncExternalStore=function(e,t,r){return pt.current.useSyncExternalStore(e,t,r)};ce.useTransition=function(){return pt.current.useTransition()};ce.version="18.3.1"});var ke=Cn((Nj,ox)=>{"use strict";ox.exports=rx()});var mx=Cn(_e=>{"use strict";function qu(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<dl(n,t))e[o]=t,e[r]=n,r=o;else break e}}function qt(e){return e.length===0?null:e[0]}function fl(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,i=n>>>1;o<i;){var a=2*(o+1)-1,l=e[a],s=a+1,c=e[s];if(0>dl(l,r))s<n&&0>dl(c,l)?(e[o]=c,e[s]=r,o=s):(e[o]=l,e[a]=r,o=a);else if(s<n&&0>dl(c,r))e[o]=c,e[s]=r,o=s;else break e}}return t}function dl(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ix=performance,_e.unstable_now=function(){return ix.now()}):(Ku=Date,ax=Ku.now(),_e.unstable_now=function(){return Ku.now()-ax});var ix,Ku,ax,yn=[],Yn=[],m1=1,Zt=null,ot=3,ml=!1,jr=!1,Pi=!1,cx=typeof setTimeout=="function"?setTimeout:null,ux=typeof clearTimeout=="function"?clearTimeout:null,lx=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ed(e){for(var t=qt(Yn);t!==null;){if(t.callback===null)fl(Yn);else if(t.startTime<=e)fl(Yn),t.sortIndex=t.expirationTime,qu(yn,t);else break;t=qt(Yn)}}function td(e){if(Pi=!1,ed(e),!jr)if(qt(yn)!==null)jr=!0,rd(nd);else{var t=qt(Yn);t!==null&&od(td,t.startTime-e)}}function nd(e,t){jr=!1,Pi&&(Pi=!1,ux(Ei),Ei=-1),ml=!0;var r=ot;try{for(ed(t),Zt=qt(yn);Zt!==null&&(!(Zt.expirationTime>t)||e&&!fx());){var o=Zt.callback;if(typeof o=="function"){Zt.callback=null,ot=Zt.priorityLevel;var n=o(Zt.expirationTime<=t);t=_e.unstable_now(),typeof n=="function"?Zt.callback=n:Zt===qt(yn)&&fl(yn),ed(t)}else fl(yn);Zt=qt(yn)}if(Zt!==null)var i=!0;else{var a=qt(Yn);a!==null&&od(td,a.startTime-t),i=!1}return i}finally{Zt=null,ot=r,ml=!1}}var gl=!1,pl=null,Ei=-1,dx=5,px=-1;function fx(){return!(_e.unstable_now()-px<dx)}function Yu(){if(pl!==null){var e=_e.unstable_now();px=e;var t=!0;try{t=pl(!0,e)}finally{t?Ii():(gl=!1,pl=null)}}else gl=!1}var Ii;typeof lx=="function"?Ii=function(){lx(Yu)}:typeof MessageChannel<"u"?(Qu=new MessageChannel,sx=Qu.port2,Qu.port1.onmessage=Yu,Ii=function(){sx.postMessage(null)}):Ii=function(){cx(Yu,0)};var Qu,sx;function rd(e){pl=e,gl||(gl=!0,Ii())}function od(e,t){Ei=cx(function(){e(_e.unstable_now())},t)}_e.unstable_IdlePriority=5;_e.unstable_ImmediatePriority=1;_e.unstable_LowPriority=4;_e.unstable_NormalPriority=3;_e.unstable_Profiling=null;_e.unstable_UserBlockingPriority=2;_e.unstable_cancelCallback=function(e){e.callback=null};_e.unstable_continueExecution=function(){jr||ml||(jr=!0,rd(nd))};_e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):dx=0<e?Math.floor(1e3/e):5};_e.unstable_getCurrentPriorityLevel=function(){return ot};_e.unstable_getFirstCallbackNode=function(){return qt(yn)};_e.unstable_next=function(e){switch(ot){case 1:case 2:case 3:var t=3;break;default:t=ot}var r=ot;ot=t;try{return e()}finally{ot=r}};_e.unstable_pauseExecution=function(){};_e.unstable_requestPaint=function(){};_e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=ot;ot=e;try{return t()}finally{ot=r}};_e.unstable_scheduleCallback=function(e,t,r){var o=_e.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:m1++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,qu(Yn,e),qt(yn)===null&&e===qt(Yn)&&(Pi?(ux(Ei),Ei=-1):Pi=!0,od(td,r-o))):(e.sortIndex=n,qu(yn,e),jr||ml||(jr=!0,rd(nd))),e};_e.unstable_shouldYield=fx;_e.unstable_wrapCallback=function(e){var t=ot;return function(){var r=ot;ot=t;try{return e.apply(this,arguments)}finally{ot=r}}}});var vx=Cn((Uj,gx)=>{"use strict";gx.exports=mx()});var bk=Cn(Dt=>{"use strict";var g1=ke(),jt=vx();function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var _b=new Set,Yi={};function Hr(e,t){Io(e,t),Io(e+"Capture",t)}function Io(e,t){for(Yi[e]=t,e=0;e<t.length;e++)_b.add(t[e])}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Id=Object.prototype.hasOwnProperty,v1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yx={},hx={};function y1(e){return Id.call(hx,e)?!0:Id.call(yx,e)?!1:v1.test(e)?hx[e]=!0:(yx[e]=!0,!1)}function h1(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function x1(e,t,r,o){if(t===null||typeof t>"u"||h1(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gt(e,t,r,o,n,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new gt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){tt[e]=new gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xp=/[\-:]([a-z])/g;function bp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xp,bp);tt[t]=new gt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xp,bp);tt[t]=new gt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xp,bp);tt[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new gt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sp(e,t,r,o){var n=tt.hasOwnProperty(t)?tt[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(x1(t,r,n,o)&&(r=null),o||n===null?y1(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,o=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var Mn=g1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vl=Symbol.for("react.element"),so=Symbol.for("react.portal"),co=Symbol.for("react.fragment"),kp=Symbol.for("react.strict_mode"),Pd=Symbol.for("react.profiler"),$b=Symbol.for("react.provider"),wb=Symbol.for("react.context"),_p=Symbol.for("react.forward_ref"),Ed=Symbol.for("react.suspense"),Rd=Symbol.for("react.suspense_list"),$p=Symbol.for("react.memo"),qn=Symbol.for("react.lazy"),zb=Symbol.for("react.offscreen"),xx=Symbol.iterator;function Ri(e){return e===null||typeof e!="object"?null:(e=xx&&e[xx]||e["@@iterator"],typeof e=="function"?e:null)}var je=Object.assign,id;function Ui(e){if(id===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);id=t&&t[1]||""}return`
|
|
1
|
+
var Xw=Object.create;var Bu=Object.defineProperty;var Kw=Object.getOwnPropertyDescriptor;var Yw=Object.getOwnPropertyNames;var qw=Object.getPrototypeOf,Qw=Object.prototype.hasOwnProperty;var jn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},On=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},e1=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Yw(t))!Qw.call(e,n)&&n!==r&&Bu(e,n,{get:()=>t[n],enumerable:!(o=Kw(t,n))||o.enumerable});return e};var W=(e,t,r)=>(r=e!=null?Xw(qw(e)):{},e1(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e));var tx=jn(se=>{"use strict";var zi=Symbol.for("react.element"),t1=Symbol.for("react.portal"),n1=Symbol.for("react.fragment"),r1=Symbol.for("react.strict_mode"),o1=Symbol.for("react.profiler"),i1=Symbol.for("react.provider"),a1=Symbol.for("react.context"),l1=Symbol.for("react.forward_ref"),s1=Symbol.for("react.suspense"),c1=Symbol.for("react.memo"),u1=Symbol.for("react.lazy"),Bh=Symbol.iterator;function d1(e){return e===null||typeof e!="object"?null:(e=Bh&&e[Bh]||e["@@iterator"],typeof e=="function"?e:null)}var Jh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gh=Object.assign,Xh={};function ao(e,t,r){this.props=e,this.context=t,this.refs=Xh,this.updater=r||Jh}ao.prototype.isReactComponent={};ao.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kh(){}Kh.prototype=ao.prototype;function Hu(e,t,r){this.props=e,this.context=t,this.refs=Xh,this.updater=r||Jh}var Ju=Hu.prototype=new Kh;Ju.constructor=Hu;Gh(Ju,ao.prototype);Ju.isPureReactComponent=!0;var Vh=Array.isArray,Yh=Object.prototype.hasOwnProperty,Gu={current:null},qh={key:!0,ref:!0,__self:!0,__source:!0};function Qh(e,t,r){var o,n={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Yh.call(t,o)&&!qh.hasOwnProperty(o)&&(n[o]=t[o]);var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)n[o]===void 0&&(n[o]=l[o]);return{$$typeof:zi,type:e,key:i,ref:a,props:n,_owner:Gu.current}}function p1(e,t){return{$$typeof:zi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xu(e){return typeof e=="object"&&e!==null&&e.$$typeof===zi}function f1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Hh=/\/+/g;function Vu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?f1(""+e.key):t.toString(36)}function sl(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case zi:case t1:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+Vu(a,0):o,Vh(n)?(r="",e!=null&&(r=e.replace(Hh,"$&/")+"/"),sl(n,t,r,"",function(c){return c})):n!=null&&(Xu(n)&&(n=p1(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(Hh,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",Vh(e))for(var l=0;l<e.length;l++){i=e[l];var s=o+Vu(i,l);a+=sl(i,t,r,s,n)}else if(s=d1(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=o+Vu(i,l++),a+=sl(i,t,r,s,n);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function ll(e,t,r){if(e==null)return e;var o=[],n=0;return sl(e,o,"","",function(i){return t.call(r,i,n++)}),o}function m1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pt={current:null},cl={transition:null},g1={ReactCurrentDispatcher:pt,ReactCurrentBatchConfig:cl,ReactCurrentOwner:Gu};function ex(){throw Error("act(...) is not supported in production builds of React.")}se.Children={map:ll,forEach:function(e,t,r){ll(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ll(e,function(){t++}),t},toArray:function(e){return ll(e,function(t){return t})||[]},only:function(e){if(!Xu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Component=ao;se.Fragment=n1;se.Profiler=o1;se.PureComponent=Hu;se.StrictMode=r1;se.Suspense=s1;se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g1;se.act=ex;se.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=Gh({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Gu.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Yh.call(t,s)&&!qh.hasOwnProperty(s)&&(o[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:zi,type:e.type,key:n,ref:i,props:o,_owner:a}};se.createContext=function(e){return e={$$typeof:a1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:i1,_context:e},e.Consumer=e};se.createElement=Qh;se.createFactory=function(e){var t=Qh.bind(null,e);return t.type=e,t};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:l1,render:e}};se.isValidElement=Xu;se.lazy=function(e){return{$$typeof:u1,_payload:{_status:-1,_result:e},_init:m1}};se.memo=function(e,t){return{$$typeof:c1,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=cl.transition;cl.transition={};try{e()}finally{cl.transition=t}};se.unstable_act=ex;se.useCallback=function(e,t){return pt.current.useCallback(e,t)};se.useContext=function(e){return pt.current.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e){return pt.current.useDeferredValue(e)};se.useEffect=function(e,t){return pt.current.useEffect(e,t)};se.useId=function(){return pt.current.useId()};se.useImperativeHandle=function(e,t,r){return pt.current.useImperativeHandle(e,t,r)};se.useInsertionEffect=function(e,t){return pt.current.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return pt.current.useLayoutEffect(e,t)};se.useMemo=function(e,t){return pt.current.useMemo(e,t)};se.useReducer=function(e,t,r){return pt.current.useReducer(e,t,r)};se.useRef=function(e){return pt.current.useRef(e)};se.useState=function(e){return pt.current.useState(e)};se.useSyncExternalStore=function(e,t,r){return pt.current.useSyncExternalStore(e,t,r)};se.useTransition=function(){return pt.current.useTransition()};se.version="18.3.1"});var _e=jn((Mj,nx)=>{"use strict";nx.exports=tx()});var px=jn($e=>{"use strict";function Qu(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<ul(n,t))e[o]=t,e[r]=n,r=o;else break e}}function Qt(e){return e.length===0?null:e[0]}function pl(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,i=n>>>1;o<i;){var a=2*(o+1)-1,l=e[a],s=a+1,c=e[s];if(0>ul(l,r))s<n&&0>ul(c,l)?(e[o]=c,e[s]=r,o=s):(e[o]=l,e[a]=r,o=a);else if(s<n&&0>ul(c,r))e[o]=c,e[s]=r,o=s;else break e}}return t}function ul(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(rx=performance,$e.unstable_now=function(){return rx.now()}):(Ku=Date,ox=Ku.now(),$e.unstable_now=function(){return Ku.now()-ox});var rx,Ku,ox,vn=[],Yn=[],v1=1,Wt=null,it=3,fl=!1,Tr=!1,Pi=!1,lx=typeof setTimeout=="function"?setTimeout:null,sx=typeof clearTimeout=="function"?clearTimeout:null,ix=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ed(e){for(var t=Qt(Yn);t!==null;){if(t.callback===null)pl(Yn);else if(t.startTime<=e)pl(Yn),t.sortIndex=t.expirationTime,Qu(vn,t);else break;t=Qt(Yn)}}function td(e){if(Pi=!1,ed(e),!Tr)if(Qt(vn)!==null)Tr=!0,rd(nd);else{var t=Qt(Yn);t!==null&&od(td,t.startTime-e)}}function nd(e,t){Tr=!1,Pi&&(Pi=!1,sx(Ri),Ri=-1),fl=!0;var r=it;try{for(ed(t),Wt=Qt(vn);Wt!==null&&(!(Wt.expirationTime>t)||e&&!dx());){var o=Wt.callback;if(typeof o=="function"){Wt.callback=null,it=Wt.priorityLevel;var n=o(Wt.expirationTime<=t);t=$e.unstable_now(),typeof n=="function"?Wt.callback=n:Wt===Qt(vn)&&pl(vn),ed(t)}else pl(vn);Wt=Qt(vn)}if(Wt!==null)var i=!0;else{var a=Qt(Yn);a!==null&&od(td,a.startTime-t),i=!1}return i}finally{Wt=null,it=r,fl=!1}}var ml=!1,dl=null,Ri=-1,cx=5,ux=-1;function dx(){return!($e.unstable_now()-ux<cx)}function Yu(){if(dl!==null){var e=$e.unstable_now();ux=e;var t=!0;try{t=dl(!0,e)}finally{t?Ii():(ml=!1,dl=null)}}else ml=!1}var Ii;typeof ix=="function"?Ii=function(){ix(Yu)}:typeof MessageChannel<"u"?(qu=new MessageChannel,ax=qu.port2,qu.port1.onmessage=Yu,Ii=function(){ax.postMessage(null)}):Ii=function(){lx(Yu,0)};var qu,ax;function rd(e){dl=e,ml||(ml=!0,Ii())}function od(e,t){Ri=lx(function(){e($e.unstable_now())},t)}$e.unstable_IdlePriority=5;$e.unstable_ImmediatePriority=1;$e.unstable_LowPriority=4;$e.unstable_NormalPriority=3;$e.unstable_Profiling=null;$e.unstable_UserBlockingPriority=2;$e.unstable_cancelCallback=function(e){e.callback=null};$e.unstable_continueExecution=function(){Tr||fl||(Tr=!0,rd(nd))};$e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):cx=0<e?Math.floor(1e3/e):5};$e.unstable_getCurrentPriorityLevel=function(){return it};$e.unstable_getFirstCallbackNode=function(){return Qt(vn)};$e.unstable_next=function(e){switch(it){case 1:case 2:case 3:var t=3;break;default:t=it}var r=it;it=t;try{return e()}finally{it=r}};$e.unstable_pauseExecution=function(){};$e.unstable_requestPaint=function(){};$e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=it;it=e;try{return t()}finally{it=r}};$e.unstable_scheduleCallback=function(e,t,r){var o=$e.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:v1++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,Qu(Yn,e),Qt(vn)===null&&e===Qt(Yn)&&(Pi?(sx(Ri),Ri=-1):Pi=!0,od(td,r-o))):(e.sortIndex=n,Qu(vn,e),Tr||fl||(Tr=!0,rd(nd))),e};$e.unstable_shouldYield=dx;$e.unstable_wrapCallback=function(e){var t=it;return function(){var r=it;it=t;try{return e.apply(this,arguments)}finally{it=r}}}});var mx=jn((Bj,fx)=>{"use strict";fx.exports=px()});var hk=jn(Ot=>{"use strict";var y1=_e(),Tt=mx();function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var Sb=new Set,Yi={};function Vr(e,t){Po(e,t),Po(e+"Capture",t)}function Po(e,t){for(Yi[e]=t,e=0;e<t.length;e++)Sb.add(t[e])}var Fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Id=Object.prototype.hasOwnProperty,h1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,gx={},vx={};function x1(e){return Id.call(vx,e)?!0:Id.call(gx,e)?!1:h1.test(e)?vx[e]=!0:(gx[e]=!0,!1)}function b1(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function S1(e,t,r,o){if(t===null||typeof t>"u"||b1(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gt(e,t,r,o,n,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new gt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){tt[e]=new gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xp=/[\-:]([a-z])/g;function bp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xp,bp);tt[t]=new gt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xp,bp);tt[t]=new gt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xp,bp);tt[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new gt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sp(e,t,r,o){var n=tt.hasOwnProperty(t)?tt[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(S1(t,r,n,o)&&(r=null),o||n===null?x1(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,o=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var Bn=y1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gl=Symbol.for("react.element"),co=Symbol.for("react.portal"),uo=Symbol.for("react.fragment"),kp=Symbol.for("react.strict_mode"),Pd=Symbol.for("react.profiler"),kb=Symbol.for("react.provider"),_b=Symbol.for("react.context"),_p=Symbol.for("react.forward_ref"),Rd=Symbol.for("react.suspense"),Ed=Symbol.for("react.suspense_list"),$p=Symbol.for("react.memo"),Qn=Symbol.for("react.lazy"),$b=Symbol.for("react.offscreen"),yx=Symbol.iterator;function Ei(e){return e===null||typeof e!="object"?null:(e=yx&&e[yx]||e["@@iterator"],typeof e=="function"?e:null)}var je=Object.assign,id;function Ui(e){if(id===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);id=t&&t[1]||""}return`
|
|
2
2
|
`+id+e}var ad=!1;function ld(e,t){if(!e||ad)return"";ad=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var o=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){o=c}e.call(t.prototype)}else{try{throw Error()}catch(c){o=c}e()}}catch(c){if(c&&o&&typeof c.stack=="string"){for(var n=c.stack.split(`
|
|
3
3
|
`),i=o.stack.split(`
|
|
4
4
|
`),a=n.length-1,l=i.length-1;1<=a&&0<=l&&n[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(n[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||n[a]!==i[l]){var s=`
|
|
5
|
-
`+n[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ad=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ui(e):""}function b1(e){switch(e.tag){case 5:return Ui(e.type);case 16:return Ui("Lazy");case 13:return Ui("Suspense");case 19:return Ui("SuspenseList");case 0:case 2:case 15:return e=ld(e.type,!1),e;case 11:return e=ld(e.type.render,!1),e;case 1:return e=ld(e.type,!0),e;default:return""}}function Cd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case co:return"Fragment";case so:return"Portal";case Pd:return"Profiler";case kp:return"StrictMode";case Ed:return"Suspense";case Rd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wb:return(e.displayName||"Context")+".Consumer";case $b:return(e._context.displayName||"Context")+".Provider";case _p:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $p:return t=e.displayName||null,t!==null?t:Cd(e.type)||"Memo";case qn:t=e._payload,e=e._init;try{return Cd(e(t))}catch{}}return null}function S1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cd(t);case 8:return t===kp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ib(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k1(e){var t=Ib(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yl(e){e._valueTracker||(e._valueTracker=k1(e))}function Pb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=Ib(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Vl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Td(e,t){var r=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function bx(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=fr(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Eb(e,t){t=t.checked,t!=null&&Sp(e,"checked",t,!1)}function jd(e,t){Eb(e,t);var r=fr(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Od(e,t.type,r):t.hasOwnProperty("defaultValue")&&Od(e,t.type,fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sx(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Od(e,t,r){(t!=="number"||Vl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ai=Array.isArray;function So(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+fr(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Dd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(Ai(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:fr(r)}}function Rb(e,t){var r=fr(t.value),o=fr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function _x(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Cb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Nd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Cb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hl,Tb=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,n)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hl=hl||document.createElement("div"),hl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qi(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Mi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_1=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(e){_1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mi[t]=Mi[e]})});function jb(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Mi.hasOwnProperty(e)&&Mi[e]?(""+t).trim():t+"px"}function Ob(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=jb(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var $1=je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ld(e,t){if(t){if($1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Ud(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ad=null;function wp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fd=null,ko=null,_o=null;function $x(e){if(e=va(e)){if(typeof Fd!="function")throw Error(R(280));var t=e.stateNode;t&&(t=xs(t),Fd(e.stateNode,e.type,t))}}function Db(e){ko?_o?_o.push(e):_o=[e]:ko=e}function Nb(){if(ko){var e=ko,t=_o;if(_o=ko=null,$x(e),t)for(e=0;e<t.length;e++)$x(t[e])}}function Lb(e,t){return e(t)}function Ub(){}var sd=!1;function Ab(e,t,r){if(sd)return e(t,r);sd=!0;try{return Lb(e,t,r)}finally{sd=!1,(ko!==null||_o!==null)&&(Ub(),Nb())}}function qi(e,t){var r=e.stateNode;if(r===null)return null;var o=xs(r);if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var Wd=!1;if(Un)try{ao={},Object.defineProperty(ao,"passive",{get:function(){Wd=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{Wd=!1}var ao;function w1(e,t,r,o,n,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Zi=!1,Hl=null,Jl=!1,Md=null,z1={onError:function(e){Zi=!0,Hl=e}};function I1(e,t,r,o,n,i,a,l,s){Zi=!1,Hl=null,w1.apply(z1,arguments)}function P1(e,t,r,o,n,i,a,l,s){if(I1.apply(this,arguments),Zi){if(Zi){var c=Hl;Zi=!1,Hl=null}else throw Error(R(198));Jl||(Jl=!0,Md=c)}}function Jr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Fb(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function wx(e){if(Jr(e)!==e)throw Error(R(188))}function E1(e){var t=e.alternate;if(!t){if(t=Jr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return wx(n),e;if(i===o)return wx(n),t;i=i.sibling}throw Error(R(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,l=n.child;l;){if(l===r){a=!0,r=n,o=i;break}if(l===o){a=!0,o=n,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,o=n;break}if(l===o){a=!0,o=i,r=n;break}l=l.sibling}if(!a)throw Error(R(189))}}if(r.alternate!==o)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function Wb(e){return e=E1(e),e!==null?Mb(e):null}function Mb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Mb(e);if(t!==null)return t;e=e.sibling}return null}var Zb=jt.unstable_scheduleCallback,zx=jt.unstable_cancelCallback,R1=jt.unstable_shouldYield,C1=jt.unstable_requestPaint,Ae=jt.unstable_now,T1=jt.unstable_getCurrentPriorityLevel,zp=jt.unstable_ImmediatePriority,Bb=jt.unstable_UserBlockingPriority,Gl=jt.unstable_NormalPriority,j1=jt.unstable_LowPriority,Vb=jt.unstable_IdlePriority,gs=null,Sn=null;function O1(e){if(Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(gs,e,void 0,(e.current.flags&128)===128)}catch{}}var on=Math.clz32?Math.clz32:L1,D1=Math.log,N1=Math.LN2;function L1(e){return e>>>=0,e===0?32:31-(D1(e)/N1|0)|0}var xl=64,bl=4194304;function Fi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xl(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~n;l!==0?o=Fi(l):(i&=a,i!==0&&(o=Fi(i)))}else a=r&~n,a!==0?o=Fi(a):i!==0&&(o=Fi(i));if(o===0)return 0;if(t!==0&&t!==o&&(t&n)===0&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-on(t),n=1<<r,o|=e[r],t&=~n;return o}function U1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function A1(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-on(i),l=1<<a,s=n[a];s===-1?((l&r)===0||(l&o)!==0)&&(n[a]=U1(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Zd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hb(){var e=xl;return xl<<=1,(xl&4194240)===0&&(xl=64),e}function cd(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ma(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-on(t),e[t]=r}function F1(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-on(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function Ip(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-on(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var ge=0;function Jb(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Gb,Pp,Xb,Kb,Yb,Bd=!1,Sl=[],ir=null,ar=null,lr=null,ea=new Map,ta=new Map,tr=[],W1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ix(e,t){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":ar=null;break;case"mouseover":case"mouseout":lr=null;break;case"pointerover":case"pointerout":ea.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ta.delete(t.pointerId)}}function Ci(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=va(t),t!==null&&Pp(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function M1(e,t,r,o,n){switch(t){case"focusin":return ir=Ci(ir,e,t,r,o,n),!0;case"dragenter":return ar=Ci(ar,e,t,r,o,n),!0;case"mouseover":return lr=Ci(lr,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return ea.set(i,Ci(ea.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,ta.set(i,Ci(ta.get(i)||null,e,t,r,o,n)),!0}return!1}function Qb(e){var t=Nr(e.target);if(t!==null){var r=Jr(t);if(r!==null){if(t=r.tag,t===13){if(t=Fb(r),t!==null){e.blockedOn=t,Yb(e.priority,function(){Xb(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Vd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Ad=o,r.target.dispatchEvent(o),Ad=null}else return t=va(r),t!==null&&Pp(t),e.blockedOn=r,!1;t.shift()}return!0}function Px(e,t,r){Dl(e)&&r.delete(t)}function Z1(){Bd=!1,ir!==null&&Dl(ir)&&(ir=null),ar!==null&&Dl(ar)&&(ar=null),lr!==null&&Dl(lr)&&(lr=null),ea.forEach(Px),ta.forEach(Px)}function Ti(e,t){e.blockedOn===t&&(e.blockedOn=null,Bd||(Bd=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,Z1)))}function na(e){function t(n){return Ti(n,e)}if(0<Sl.length){Ti(Sl[0],e);for(var r=1;r<Sl.length;r++){var o=Sl[r];o.blockedOn===e&&(o.blockedOn=null)}}for(ir!==null&&Ti(ir,e),ar!==null&&Ti(ar,e),lr!==null&&Ti(lr,e),ea.forEach(t),ta.forEach(t),r=0;r<tr.length;r++)o=tr[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<tr.length&&(r=tr[0],r.blockedOn===null);)Qb(r),r.blockedOn===null&&tr.shift()}var $o=Mn.ReactCurrentBatchConfig,Kl=!0;function B1(e,t,r,o){var n=ge,i=$o.transition;$o.transition=null;try{ge=1,Ep(e,t,r,o)}finally{ge=n,$o.transition=i}}function V1(e,t,r,o){var n=ge,i=$o.transition;$o.transition=null;try{ge=4,Ep(e,t,r,o)}finally{ge=n,$o.transition=i}}function Ep(e,t,r,o){if(Kl){var n=Vd(e,t,r,o);if(n===null)vd(e,t,o,Yl,r),Ix(e,o);else if(M1(n,e,t,r,o))o.stopPropagation();else if(Ix(e,o),t&4&&-1<W1.indexOf(e)){for(;n!==null;){var i=va(n);if(i!==null&&Gb(i),i=Vd(e,t,r,o),i===null&&vd(e,t,o,Yl,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else vd(e,t,o,null,r)}}var Yl=null;function Vd(e,t,r,o){if(Yl=null,e=wp(o),e=Nr(e),e!==null)if(t=Jr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Fb(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yl=e,null}function qb(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(T1()){case zp:return 1;case Bb:return 4;case Gl:case j1:return 16;case Vb:return 536870912;default:return 16}default:return 16}}var rr=null,Rp=null,Nl=null;function eS(){if(Nl)return Nl;var e,t=Rp,r=t.length,o,n="value"in rr?rr.value:rr.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return Nl=n.slice(e,1<o?1-o:void 0)}function Ll(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function kl(){return!0}function Ex(){return!1}function Ot(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?kl:Ex,this.isPropagationStopped=Ex,this}return je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=kl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=kl)},persist:function(){},isPersistent:kl}),t}var Oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cp=Ot(Oo),ga=je({},Oo,{view:0,detail:0}),H1=Ot(ga),ud,dd,ji,vs=je({},ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ji&&(ji&&e.type==="mousemove"?(ud=e.screenX-ji.screenX,dd=e.screenY-ji.screenY):dd=ud=0,ji=e),ud)},movementY:function(e){return"movementY"in e?e.movementY:dd}}),Rx=Ot(vs),J1=je({},vs,{dataTransfer:0}),G1=Ot(J1),X1=je({},ga,{relatedTarget:0}),pd=Ot(X1),K1=je({},Oo,{animationName:0,elapsedTime:0,pseudoElement:0}),Y1=Ot(K1),Q1=je({},Oo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),q1=Ot(Q1),ez=je({},Oo,{data:0}),Cx=Ot(ez),tz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nz={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rz[e])?!!t[e]:!1}function Tp(){return oz}var iz=je({},ga,{key:function(e){if(e.key){var t=tz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tp,charCode:function(e){return e.type==="keypress"?Ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),az=Ot(iz),lz=je({},vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tx=Ot(lz),sz=je({},ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tp}),cz=Ot(sz),uz=je({},Oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),dz=Ot(uz),pz=je({},vs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fz=Ot(pz),mz=[9,13,27,32],jp=Un&&"CompositionEvent"in window,Bi=null;Un&&"documentMode"in document&&(Bi=document.documentMode);var gz=Un&&"TextEvent"in window&&!Bi,tS=Un&&(!jp||Bi&&8<Bi&&11>=Bi),jx=" ",Ox=!1;function nS(e,t){switch(e){case"keyup":return mz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var uo=!1;function vz(e,t){switch(e){case"compositionend":return rS(t);case"keypress":return t.which!==32?null:(Ox=!0,jx);case"textInput":return e=t.data,e===jx&&Ox?null:e;default:return null}}function yz(e,t){if(uo)return e==="compositionend"||!jp&&nS(e,t)?(e=eS(),Nl=Rp=rr=null,uo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return tS&&t.locale!=="ko"?null:t.data;default:return null}}var hz={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hz[e.type]:t==="textarea"}function oS(e,t,r,o){Db(o),t=Ql(t,"onChange"),0<t.length&&(r=new Cp("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Vi=null,ra=null;function xz(e){gS(e,0)}function ys(e){var t=mo(e);if(Pb(t))return e}function bz(e,t){if(e==="change")return t}var iS=!1;Un&&(Un?($l="oninput"in document,$l||(fd=document.createElement("div"),fd.setAttribute("oninput","return;"),$l=typeof fd.oninput=="function"),_l=$l):_l=!1,iS=_l&&(!document.documentMode||9<document.documentMode));var _l,$l,fd;function Nx(){Vi&&(Vi.detachEvent("onpropertychange",aS),ra=Vi=null)}function aS(e){if(e.propertyName==="value"&&ys(ra)){var t=[];oS(t,ra,e,wp(e)),Ab(xz,t)}}function Sz(e,t,r){e==="focusin"?(Nx(),Vi=t,ra=r,Vi.attachEvent("onpropertychange",aS)):e==="focusout"&&Nx()}function kz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ys(ra)}function _z(e,t){if(e==="click")return ys(t)}function $z(e,t){if(e==="input"||e==="change")return ys(t)}function wz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ln=typeof Object.is=="function"?Object.is:wz;function oa(e,t){if(ln(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!Id.call(t,n)||!ln(e[n],t[n]))return!1}return!0}function Lx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ux(e,t){var r=Lx(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Lx(r)}}function lS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sS(){for(var e=window,t=Vl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Vl(e.document)}return t}function Op(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zz(e){var t=sS(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&lS(r.ownerDocument.documentElement,r)){if(o!==null&&Op(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!e.extend&&i>o&&(n=o,o=i,i=n),n=Ux(r,i);var a=Ux(r,o);n&&a&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Iz=Un&&"documentMode"in document&&11>=document.documentMode,po=null,Hd=null,Hi=null,Jd=!1;function Ax(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Jd||po==null||po!==Vl(o)||(o=po,"selectionStart"in o&&Op(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Hi&&oa(Hi,o)||(Hi=o,o=Ql(Hd,"onSelect"),0<o.length&&(t=new Cp("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=po)))}function wl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var fo={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionend:wl("Transition","TransitionEnd")},md={},cS={};Un&&(cS=document.createElement("div").style,"AnimationEvent"in window||(delete fo.animationend.animation,delete fo.animationiteration.animation,delete fo.animationstart.animation),"TransitionEvent"in window||delete fo.transitionend.transition);function hs(e){if(md[e])return md[e];if(!fo[e])return e;var t=fo[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in cS)return md[e]=t[r];return e}var uS=hs("animationend"),dS=hs("animationiteration"),pS=hs("animationstart"),fS=hs("transitionend"),mS=new Map,Fx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gr(e,t){mS.set(e,t),Hr(t,[e])}for(zl=0;zl<Fx.length;zl++)Il=Fx[zl],Wx=Il.toLowerCase(),Mx=Il[0].toUpperCase()+Il.slice(1),gr(Wx,"on"+Mx);var Il,Wx,Mx,zl;gr(uS,"onAnimationEnd");gr(dS,"onAnimationIteration");gr(pS,"onAnimationStart");gr("dblclick","onDoubleClick");gr("focusin","onFocus");gr("focusout","onBlur");gr(fS,"onTransitionEnd");Io("onMouseEnter",["mouseout","mouseover"]);Io("onMouseLeave",["mouseout","mouseover"]);Io("onPointerEnter",["pointerout","pointerover"]);Io("onPointerLeave",["pointerout","pointerover"]);Hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pz=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wi));function Zx(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,P1(o,t,void 0,e),e.currentTarget=null}function gS(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var l=o[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&n.isPropagationStopped())break e;Zx(n,l,c),i=s}else for(a=0;a<o.length;a++){if(l=o[a],s=l.instance,c=l.currentTarget,l=l.listener,s!==i&&n.isPropagationStopped())break e;Zx(n,l,c),i=s}}}if(Jl)throw e=Md,Jl=!1,Md=null,e}function we(e,t){var r=t[Qd];r===void 0&&(r=t[Qd]=new Set);var o=e+"__bubble";r.has(o)||(vS(t,e,2,!1),r.add(o))}function gd(e,t,r){var o=0;t&&(o|=4),vS(r,e,o,t)}var Pl="_reactListening"+Math.random().toString(36).slice(2);function ia(e){if(!e[Pl]){e[Pl]=!0,_b.forEach(function(r){r!=="selectionchange"&&(Pz.has(r)||gd(r,!1,e),gd(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pl]||(t[Pl]=!0,gd("selectionchange",!1,t))}}function vS(e,t,r,o){switch(qb(t)){case 1:var n=B1;break;case 4:n=V1;break;default:n=Ep}r=n.bind(null,t,r,e),n=void 0,!Wd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function vd(e,t,r,o,n){var i=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var l=o.stateNode.containerInfo;if(l===n||l.nodeType===8&&l.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===n||s.nodeType===8&&s.parentNode===n))return;a=a.return}for(;l!==null;){if(a=Nr(l),a===null)return;if(s=a.tag,s===5||s===6){o=i=a;continue e}l=l.parentNode}}o=o.return}Ab(function(){var c=i,d=wp(r),p=[];e:{var f=mS.get(e);if(f!==void 0){var g=Cp,x=e;switch(e){case"keypress":if(Ll(r)===0)break e;case"keydown":case"keyup":g=az;break;case"focusin":x="focus",g=pd;break;case"focusout":x="blur",g=pd;break;case"beforeblur":case"afterblur":g=pd;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Rx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=G1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=cz;break;case uS:case dS:case pS:g=Y1;break;case fS:g=dz;break;case"scroll":g=H1;break;case"wheel":g=fz;break;case"copy":case"cut":case"paste":g=q1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Tx}var b=(t&4)!==0,w=!b&&e==="scroll",v=b?f!==null?f+"Capture":null:f;b=[];for(var m=c,y;m!==null;){y=m;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=qi(m,v),S!=null&&b.push(aa(m,S,y)))),w)break;m=m.return}0<b.length&&(f=new g(f,x,null,r,d),p.push({event:f,listeners:b}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&r!==Ad&&(x=r.relatedTarget||r.fromElement)&&(Nr(x)||x[An]))break e;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(x=r.relatedTarget||r.toElement,g=c,x=x?Nr(x):null,x!==null&&(w=Jr(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=c),g!==x)){if(b=Rx,S="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=Tx,S="onPointerLeave",v="onPointerEnter",m="pointer"),w=g==null?f:mo(g),y=x==null?f:mo(x),f=new b(S,m+"leave",g,r,d),f.target=w,f.relatedTarget=y,S=null,Nr(d)===c&&(b=new b(v,m+"enter",x,r,d),b.target=y,b.relatedTarget=w,S=b),w=S,g&&x)t:{for(b=g,v=x,m=0,y=b;y;y=lo(y))m++;for(y=0,S=v;S;S=lo(S))y++;for(;0<m-y;)b=lo(b),m--;for(;0<y-m;)v=lo(v),y--;for(;m--;){if(b===v||v!==null&&b===v.alternate)break t;b=lo(b),v=lo(v)}b=null}else b=null;g!==null&&Bx(p,f,g,b,!1),x!==null&&w!==null&&Bx(p,w,x,b,!0)}}e:{if(f=c?mo(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var _=bz;else if(Dx(f))if(iS)_=$z;else{_=kz;var E=Sz}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=_z);if(_&&(_=_(e,c))){oS(p,_,r,d);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Od(f,"number",f.value)}switch(E=c?mo(c):window,e){case"focusin":(Dx(E)||E.contentEditable==="true")&&(po=E,Hd=c,Hi=null);break;case"focusout":Hi=Hd=po=null;break;case"mousedown":Jd=!0;break;case"contextmenu":case"mouseup":case"dragend":Jd=!1,Ax(p,r,d);break;case"selectionchange":if(Iz)break;case"keydown":case"keyup":Ax(p,r,d)}var O;if(jp)e:{switch(e){case"compositionstart":var W="onCompositionStart";break e;case"compositionend":W="onCompositionEnd";break e;case"compositionupdate":W="onCompositionUpdate";break e}W=void 0}else uo?nS(e,r)&&(W="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(W="onCompositionStart");W&&(tS&&r.locale!=="ko"&&(uo||W!=="onCompositionStart"?W==="onCompositionEnd"&&uo&&(O=eS()):(rr=d,Rp="value"in rr?rr.value:rr.textContent,uo=!0)),E=Ql(c,W),0<E.length&&(W=new Cx(W,e,null,r,d),p.push({event:W,listeners:E}),O?W.data=O:(O=rS(r),O!==null&&(W.data=O)))),(O=gz?vz(e,r):yz(e,r))&&(c=Ql(c,"onBeforeInput"),0<c.length&&(d=new Cx("onBeforeInput","beforeinput",null,r,d),p.push({event:d,listeners:c}),d.data=O))}gS(p,t)})}function aa(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ql(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=qi(e,r),i!=null&&o.unshift(aa(e,i,n)),i=qi(e,t),i!=null&&o.push(aa(e,i,n))),e=e.return}return o}function lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Bx(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===o)break;l.tag===5&&c!==null&&(l=c,n?(s=qi(r,i),s!=null&&a.unshift(aa(r,s,l))):n||(s=qi(r,i),s!=null&&a.push(aa(r,s,l)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var Ez=/\r\n?/g,Rz=/\u0000|\uFFFD/g;function Vx(e){return(typeof e=="string"?e:""+e).replace(Ez,`
|
|
6
|
-
`).replace(Rz,"")}function El(e,t,r){if(t=Vx(t),Vx(e)!==t&&r)throw Error(R(425))}function ql(){}var Gd=null,Xd=null;function Kd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yd=typeof setTimeout=="function"?setTimeout:void 0,Cz=typeof clearTimeout=="function"?clearTimeout:void 0,Hx=typeof Promise=="function"?Promise:void 0,Tz=typeof queueMicrotask=="function"?queueMicrotask:typeof Hx<"u"?function(e){return Hx.resolve(null).then(e).catch(jz)}:Yd;function jz(e){setTimeout(function(){throw e})}function yd(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),na(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);na(t)}function sr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Jx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Do=Math.random().toString(36).slice(2),bn="__reactFiber$"+Do,la="__reactProps$"+Do,An="__reactContainer$"+Do,Qd="__reactEvents$"+Do,Oz="__reactListeners$"+Do,Dz="__reactHandles$"+Do;function Nr(e){var t=e[bn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[An]||r[bn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Jx(e);e!==null;){if(r=e[bn])return r;e=Jx(e)}return t}e=r,r=e.parentNode}return null}function va(e){return e=e[bn]||e[An],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function xs(e){return e[la]||null}var qd=[],go=-1;function vr(e){return{current:e}}function ze(e){0>go||(e.current=qd[go],qd[go]=null,go--)}function $e(e,t){go++,qd[go]=e.current,e.current=t}var mr={},st=vr(mr),_t=vr(!1),Wr=mr;function Po(e,t){var r=e.type.contextTypes;if(!r)return mr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function $t(e){return e=e.childContextTypes,e!=null}function es(){ze(_t),ze(st)}function Gx(e,t,r){if(st.current!==mr)throw Error(R(168));$e(st,t),$e(_t,r)}function yS(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(R(108,S1(e)||"Unknown",n));return je({},r,o)}function ts(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mr,Wr=st.current,$e(st,e),$e(_t,_t.current),!0}function Xx(e,t,r){var o=e.stateNode;if(!o)throw Error(R(169));r?(e=yS(e,t,Wr),o.__reactInternalMemoizedMergedChildContext=e,ze(_t),ze(st),$e(st,e)):ze(_t),$e(_t,r)}var On=null,bs=!1,hd=!1;function hS(e){On===null?On=[e]:On.push(e)}function Nz(e){bs=!0,hS(e)}function yr(){if(!hd&&On!==null){hd=!0;var e=0,t=ge;try{var r=On;for(ge=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}On=null,bs=!1}catch(n){throw On!==null&&(On=On.slice(e+1)),Zb(zp,yr),n}finally{ge=t,hd=!1}}return null}var vo=[],yo=0,ns=null,rs=0,Bt=[],Vt=0,Mr=null,Dn=1,Nn="";function Or(e,t){vo[yo++]=rs,vo[yo++]=ns,ns=e,rs=t}function xS(e,t,r){Bt[Vt++]=Dn,Bt[Vt++]=Nn,Bt[Vt++]=Mr,Mr=e;var o=Dn;e=Nn;var n=32-on(o)-1;o&=~(1<<n),r+=1;var i=32-on(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Dn=1<<32-on(t)+n|r<<n|o,Nn=i+e}else Dn=1<<i|r<<n|o,Nn=e}function Dp(e){e.return!==null&&(Or(e,1),xS(e,1,0))}function Np(e){for(;e===ns;)ns=vo[--yo],vo[yo]=null,rs=vo[--yo],vo[yo]=null;for(;e===Mr;)Mr=Bt[--Vt],Bt[Vt]=null,Nn=Bt[--Vt],Bt[Vt]=null,Dn=Bt[--Vt],Bt[Vt]=null}var Tt=null,Ct=null,Ee=!1,rn=null;function bS(e,t){var r=Ht(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Kx(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tt=e,Ct=sr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tt=e,Ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Mr!==null?{id:Dn,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ht(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Tt=e,Ct=null,!0):!1;default:return!1}}function ep(e){return(e.mode&1)!==0&&(e.flags&128)===0}function tp(e){if(Ee){var t=Ct;if(t){var r=t;if(!Kx(e,t)){if(ep(e))throw Error(R(418));t=sr(r.nextSibling);var o=Tt;t&&Kx(e,t)?bS(o,r):(e.flags=e.flags&-4097|2,Ee=!1,Tt=e)}}else{if(ep(e))throw Error(R(418));e.flags=e.flags&-4097|2,Ee=!1,Tt=e}}}function Yx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tt=e}function Rl(e){if(e!==Tt)return!1;if(!Ee)return Yx(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Kd(e.type,e.memoizedProps)),t&&(t=Ct)){if(ep(e))throw SS(),Error(R(418));for(;t;)bS(e,t),t=sr(t.nextSibling)}if(Yx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ct=sr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ct=null}}else Ct=Tt?sr(e.stateNode.nextSibling):null;return!0}function SS(){for(var e=Ct;e;)e=sr(e.nextSibling)}function Eo(){Ct=Tt=null,Ee=!1}function Lp(e){rn===null?rn=[e]:rn.push(e)}var Lz=Mn.ReactCurrentBatchConfig;function Oi(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var o=r.stateNode}if(!o)throw Error(R(147,e));var n=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=n.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function Cl(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qx(e){var t=e._init;return t(e._payload)}function kS(e){function t(v,m){if(e){var y=v.deletions;y===null?(v.deletions=[m],v.flags|=16):y.push(m)}}function r(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function o(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function n(v,m){return v=pr(v,m),v.index=0,v.sibling=null,v}function i(v,m,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<m?(v.flags|=2,m):y):(v.flags|=2,m)):(v.flags|=1048576,m)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,m,y,S){return m===null||m.tag!==6?(m=wd(y,v.mode,S),m.return=v,m):(m=n(m,y),m.return=v,m)}function s(v,m,y,S){var _=y.type;return _===co?d(v,m,y.props.children,S,y.key):m!==null&&(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qn&&Qx(_)===m.type)?(S=n(m,y.props),S.ref=Oi(v,m,y),S.return=v,S):(S=Bl(y.type,y.key,y.props,null,v.mode,S),S.ref=Oi(v,m,y),S.return=v,S)}function c(v,m,y,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=zd(y,v.mode,S),m.return=v,m):(m=n(m,y.children||[]),m.return=v,m)}function d(v,m,y,S,_){return m===null||m.tag!==7?(m=Fr(y,v.mode,S,_),m.return=v,m):(m=n(m,y),m.return=v,m)}function p(v,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=wd(""+m,v.mode,y),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case vl:return y=Bl(m.type,m.key,m.props,null,v.mode,y),y.ref=Oi(v,null,m),y.return=v,y;case so:return m=zd(m,v.mode,y),m.return=v,m;case qn:var S=m._init;return p(v,S(m._payload),y)}if(Ai(m)||Ri(m))return m=Fr(m,v.mode,y,null),m.return=v,m;Cl(v,m)}return null}function f(v,m,y,S){var _=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:l(v,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case vl:return y.key===_?s(v,m,y,S):null;case so:return y.key===_?c(v,m,y,S):null;case qn:return _=y._init,f(v,m,_(y._payload),S)}if(Ai(y)||Ri(y))return _!==null?null:d(v,m,y,S,null);Cl(v,y)}return null}function g(v,m,y,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(y)||null,l(m,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case vl:return v=v.get(S.key===null?y:S.key)||null,s(m,v,S,_);case so:return v=v.get(S.key===null?y:S.key)||null,c(m,v,S,_);case qn:var E=S._init;return g(v,m,y,E(S._payload),_)}if(Ai(S)||Ri(S))return v=v.get(y)||null,d(m,v,S,_,null);Cl(m,S)}return null}function x(v,m,y,S){for(var _=null,E=null,O=m,W=m=0,G=null;O!==null&&W<y.length;W++){O.index>W?(G=O,O=null):G=O.sibling;var Z=f(v,O,y[W],S);if(Z===null){O===null&&(O=G);break}e&&O&&Z.alternate===null&&t(v,O),m=i(Z,m,W),E===null?_=Z:E.sibling=Z,E=Z,O=G}if(W===y.length)return r(v,O),Ee&&Or(v,W),_;if(O===null){for(;W<y.length;W++)O=p(v,y[W],S),O!==null&&(m=i(O,m,W),E===null?_=O:E.sibling=O,E=O);return Ee&&Or(v,W),_}for(O=o(v,O);W<y.length;W++)G=g(O,v,W,y[W],S),G!==null&&(e&&G.alternate!==null&&O.delete(G.key===null?W:G.key),m=i(G,m,W),E===null?_=G:E.sibling=G,E=G);return e&&O.forEach(function(Ze){return t(v,Ze)}),Ee&&Or(v,W),_}function b(v,m,y,S){var _=Ri(y);if(typeof _!="function")throw Error(R(150));if(y=_.call(y),y==null)throw Error(R(151));for(var E=_=null,O=m,W=m=0,G=null,Z=y.next();O!==null&&!Z.done;W++,Z=y.next()){O.index>W?(G=O,O=null):G=O.sibling;var Ze=f(v,O,Z.value,S);if(Ze===null){O===null&&(O=G);break}e&&O&&Ze.alternate===null&&t(v,O),m=i(Ze,m,W),E===null?_=Ze:E.sibling=Ze,E=Ze,O=G}if(Z.done)return r(v,O),Ee&&Or(v,W),_;if(O===null){for(;!Z.done;W++,Z=y.next())Z=p(v,Z.value,S),Z!==null&&(m=i(Z,m,W),E===null?_=Z:E.sibling=Z,E=Z);return Ee&&Or(v,W),_}for(O=o(v,O);!Z.done;W++,Z=y.next())Z=g(O,v,W,Z.value,S),Z!==null&&(e&&Z.alternate!==null&&O.delete(Z.key===null?W:Z.key),m=i(Z,m,W),E===null?_=Z:E.sibling=Z,E=Z);return e&&O.forEach(function(bt){return t(v,bt)}),Ee&&Or(v,W),_}function w(v,m,y,S){if(typeof y=="object"&&y!==null&&y.type===co&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case vl:e:{for(var _=y.key,E=m;E!==null;){if(E.key===_){if(_=y.type,_===co){if(E.tag===7){r(v,E.sibling),m=n(E,y.props.children),m.return=v,v=m;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qn&&Qx(_)===E.type){r(v,E.sibling),m=n(E,y.props),m.ref=Oi(v,E,y),m.return=v,v=m;break e}r(v,E);break}else t(v,E);E=E.sibling}y.type===co?(m=Fr(y.props.children,v.mode,S,y.key),m.return=v,v=m):(S=Bl(y.type,y.key,y.props,null,v.mode,S),S.ref=Oi(v,m,y),S.return=v,v=S)}return a(v);case so:e:{for(E=y.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=n(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=zd(y,v.mode,S),m.return=v,v=m}return a(v);case qn:return E=y._init,w(v,m,E(y._payload),S)}if(Ai(y))return x(v,m,y,S);if(Ri(y))return b(v,m,y,S);Cl(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=n(m,y),m.return=v,v=m):(r(v,m),m=wd(y,v.mode,S),m.return=v,v=m),a(v)):r(v,m)}return w}var Ro=kS(!0),_S=kS(!1),os=vr(null),is=null,ho=null,Up=null;function Ap(){Up=ho=is=null}function Fp(e){var t=os.current;ze(os),e._currentValue=t}function np(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function wo(e,t){is=e,Up=ho=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(kt=!0),e.firstContext=null)}function Gt(e){var t=e._currentValue;if(Up!==e)if(e={context:e,memoizedValue:t,next:null},ho===null){if(is===null)throw Error(R(308));ho=e,is.dependencies={lanes:0,firstContext:e}}else ho=ho.next=e;return t}var Lr=null;function Wp(e){Lr===null?Lr=[e]:Lr.push(e)}function $S(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,Wp(t)):(r.next=n.next,n.next=r),t.interleaved=r,Fn(e,o)}function Fn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var er=!1;function Mp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ln(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cr(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(de&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,Fn(e,r)}return n=o.interleaved,n===null?(t.next=t,Wp(o)):(t.next=n.next,n.next=t),o.interleaved=t,Fn(e,r)}function Ul(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Ip(e,r)}}function qx(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function as(e,t,r,o){var n=e.updateQueue;er=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,l=n.shared.pending;if(l!==null){n.shared.pending=null;var s=l,c=s.next;s.next=null,a===null?i=c:a.next=c,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(i!==null){var p=n.baseState;a=0,d=c=s=null,l=i;do{var f=l.lane,g=l.eventTime;if((o&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,b=l;switch(f=t,g=r,b.tag){case 1:if(x=b.payload,typeof x=="function"){p=x.call(g,p,f);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,f=typeof x=="function"?x.call(g,p,f):x,f==null)break e;p=je({},p,f);break e;case 2:er=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=p):d=d.next=g,a|=f;if(l=l.next,l===null){if(l=n.shared.pending,l===null)break;f=l,l=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(d===null&&(s=p),n.baseState=s,n.firstBaseUpdate=c,n.lastBaseUpdate=d,t=n.shared.interleaved,t!==null){n=t;do a|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);Br|=a,e.lanes=a,e.memoizedState=p}}function eb(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],n=o.callback;if(n!==null){if(o.callback=null,o=r,typeof n!="function")throw Error(R(191,n));n.call(o)}}}var ya={},kn=vr(ya),sa=vr(ya),ca=vr(ya);function Ur(e){if(e===ya)throw Error(R(174));return e}function Zp(e,t){switch($e(ca,t),$e(sa,e),$e(kn,ya),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nd(t,e)}ze(kn),$e(kn,t)}function Co(){ze(kn),ze(sa),ze(ca)}function zS(e){Ur(ca.current);var t=Ur(kn.current),r=Nd(t,e.type);t!==r&&($e(sa,e),$e(kn,r))}function Bp(e){sa.current===e&&(ze(kn),ze(sa))}var Ce=vr(0);function ls(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xd=[];function Vp(){for(var e=0;e<xd.length;e++)xd[e]._workInProgressVersionPrimary=null;xd.length=0}var Al=Mn.ReactCurrentDispatcher,bd=Mn.ReactCurrentBatchConfig,Zr=0,Te=null,Ve=null,Ke=null,ss=!1,Ji=!1,ua=0,Uz=0;function it(){throw Error(R(321))}function Hp(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ln(e[r],t[r]))return!1;return!0}function Jp(e,t,r,o,n,i){if(Zr=i,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Al.current=e===null||e.memoizedState===null?Mz:Zz,e=r(o,n),Ji){i=0;do{if(Ji=!1,ua=0,25<=i)throw Error(R(301));i+=1,Ke=Ve=null,t.updateQueue=null,Al.current=Bz,e=r(o,n)}while(Ji)}if(Al.current=cs,t=Ve!==null&&Ve.next!==null,Zr=0,Ke=Ve=Te=null,ss=!1,t)throw Error(R(300));return e}function Gp(){var e=ua!==0;return ua=0,e}function xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Te.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Xt(){if(Ve===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=Ke===null?Te.memoizedState:Ke.next;if(t!==null)Ke=t,Ve=e;else{if(e===null)throw Error(R(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},Ke===null?Te.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function da(e,t){return typeof t=="function"?t(e):t}function Sd(e){var t=Xt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var o=Ve,n=o.baseQueue,i=r.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}o.baseQueue=n=i,r.pending=null}if(n!==null){i=n.next,o=o.baseState;var l=a=null,s=null,c=i;do{var d=c.lane;if((Zr&d)===d)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(l=s=p,a=o):s=s.next=p,Te.lanes|=d,Br|=d}c=c.next}while(c!==null&&c!==i);s===null?a=o:s.next=l,ln(o,t.memoizedState)||(kt=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=s,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,Te.lanes|=i,Br|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function kd(e){var t=Xt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);ln(i,t.memoizedState)||(kt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function IS(){}function PS(e,t){var r=Te,o=Xt(),n=t(),i=!ln(o.memoizedState,n);if(i&&(o.memoizedState=n,kt=!0),o=o.queue,Xp(CS.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||Ke!==null&&Ke.memoizedState.tag&1){if(r.flags|=2048,pa(9,RS.bind(null,r,o,n,t),void 0,null),Ye===null)throw Error(R(349));(Zr&30)!==0||ES(r,t,n)}return n}function ES(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function RS(e,t,r,o){t.value=r,t.getSnapshot=o,TS(t)&&jS(e)}function CS(e,t,r){return r(function(){TS(t)&&jS(e)})}function TS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ln(e,r)}catch{return!0}}function jS(e){var t=Fn(e,1);t!==null&&an(t,e,1,-1)}function tb(e){var t=xn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t.queue=e,e=e.dispatch=Wz.bind(null,Te,e),[t.memoizedState,e]}function pa(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function OS(){return Xt().memoizedState}function Fl(e,t,r,o){var n=xn();Te.flags|=e,n.memoizedState=pa(1|t,r,void 0,o===void 0?null:o)}function Ss(e,t,r,o){var n=Xt();o=o===void 0?null:o;var i=void 0;if(Ve!==null){var a=Ve.memoizedState;if(i=a.destroy,o!==null&&Hp(o,a.deps)){n.memoizedState=pa(t,r,i,o);return}}Te.flags|=e,n.memoizedState=pa(1|t,r,i,o)}function nb(e,t){return Fl(8390656,8,e,t)}function Xp(e,t){return Ss(2048,8,e,t)}function DS(e,t){return Ss(4,2,e,t)}function NS(e,t){return Ss(4,4,e,t)}function LS(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function US(e,t,r){return r=r!=null?r.concat([e]):null,Ss(4,4,LS.bind(null,t,e),r)}function Kp(){}function AS(e,t){var r=Xt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Hp(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function FS(e,t){var r=Xt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Hp(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function WS(e,t,r){return(Zr&21)===0?(e.baseState&&(e.baseState=!1,kt=!0),e.memoizedState=r):(ln(r,t)||(r=Hb(),Te.lanes|=r,Br|=r,e.baseState=!0),t)}function Az(e,t){var r=ge;ge=r!==0&&4>r?r:4,e(!0);var o=bd.transition;bd.transition={};try{e(!1),t()}finally{ge=r,bd.transition=o}}function MS(){return Xt().memoizedState}function Fz(e,t,r){var o=dr(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},ZS(e))BS(t,r);else if(r=$S(e,t,r,o),r!==null){var n=mt();an(r,e,o,n),VS(r,t,o)}}function Wz(e,t,r){var o=dr(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(ZS(e))BS(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(n.hasEagerState=!0,n.eagerState=l,ln(l,a)){var s=t.interleaved;s===null?(n.next=n,Wp(t)):(n.next=s.next,s.next=n),t.interleaved=n;return}}catch{}r=$S(e,t,n,o),r!==null&&(n=mt(),an(r,e,o,n),VS(r,t,o))}}function ZS(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function BS(e,t){Ji=ss=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function VS(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Ip(e,r)}}var cs={readContext:Gt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Mz={readContext:Gt,useCallback:function(e,t){return xn().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:nb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Fl(4194308,4,LS.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Fl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fl(4,2,e,t)},useMemo:function(e,t){var r=xn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=xn();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Fz.bind(null,Te,e),[o.memoizedState,e]},useRef:function(e){var t=xn();return e={current:e},t.memoizedState=e},useState:tb,useDebugValue:Kp,useDeferredValue:function(e){return xn().memoizedState=e},useTransition:function(){var e=tb(!1),t=e[0];return e=Az.bind(null,e[1]),xn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Te,n=xn();if(Ee){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Ye===null)throw Error(R(349));(Zr&30)!==0||ES(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,nb(CS.bind(null,o,i,e),[e]),o.flags|=2048,pa(9,RS.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=xn(),t=Ye.identifierPrefix;if(Ee){var r=Nn,o=Dn;r=(o&~(1<<32-on(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=ua++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Uz++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zz={readContext:Gt,useCallback:AS,useContext:Gt,useEffect:Xp,useImperativeHandle:US,useInsertionEffect:DS,useLayoutEffect:NS,useMemo:FS,useReducer:Sd,useRef:OS,useState:function(){return Sd(da)},useDebugValue:Kp,useDeferredValue:function(e){var t=Xt();return WS(t,Ve.memoizedState,e)},useTransition:function(){var e=Sd(da)[0],t=Xt().memoizedState;return[e,t]},useMutableSource:IS,useSyncExternalStore:PS,useId:MS,unstable_isNewReconciler:!1},Bz={readContext:Gt,useCallback:AS,useContext:Gt,useEffect:Xp,useImperativeHandle:US,useInsertionEffect:DS,useLayoutEffect:NS,useMemo:FS,useReducer:kd,useRef:OS,useState:function(){return kd(da)},useDebugValue:Kp,useDeferredValue:function(e){var t=Xt();return Ve===null?t.memoizedState=e:WS(t,Ve.memoizedState,e)},useTransition:function(){var e=kd(da)[0],t=Xt().memoizedState;return[e,t]},useMutableSource:IS,useSyncExternalStore:PS,useId:MS,unstable_isNewReconciler:!1};function tn(e,t){if(e&&e.defaultProps){t=je({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function rp(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:je({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ks={isMounted:function(e){return(e=e._reactInternals)?Jr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=mt(),n=dr(e),i=Ln(o,n);i.payload=t,r!=null&&(i.callback=r),t=cr(e,i,n),t!==null&&(an(t,e,n,o),Ul(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=mt(),n=dr(e),i=Ln(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=cr(e,i,n),t!==null&&(an(t,e,n,o),Ul(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=mt(),o=dr(e),n=Ln(r,o);n.tag=2,t!=null&&(n.callback=t),t=cr(e,n,o),t!==null&&(an(t,e,o,r),Ul(t,e,o))}};function rb(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!oa(r,o)||!oa(n,i):!0}function HS(e,t,r){var o=!1,n=mr,i=t.contextType;return typeof i=="object"&&i!==null?i=Gt(i):(n=$t(t)?Wr:st.current,o=t.contextTypes,i=(o=o!=null)?Po(e,n):mr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ks,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function ob(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&ks.enqueueReplaceState(t,t.state,null)}function op(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},Mp(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Gt(i):(i=$t(t)?Wr:st.current,n.context=Po(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(rp(e,t,i,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&ks.enqueueReplaceState(n,n.state,null),as(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function To(e,t){try{var r="",o=t;do r+=b1(o),o=o.return;while(o);var n=r}catch(i){n=`
|
|
5
|
+
`+n[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ad=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ui(e):""}function k1(e){switch(e.tag){case 5:return Ui(e.type);case 16:return Ui("Lazy");case 13:return Ui("Suspense");case 19:return Ui("SuspenseList");case 0:case 2:case 15:return e=ld(e.type,!1),e;case 11:return e=ld(e.type.render,!1),e;case 1:return e=ld(e.type,!0),e;default:return""}}function Cd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uo:return"Fragment";case co:return"Portal";case Pd:return"Profiler";case kp:return"StrictMode";case Rd:return"Suspense";case Ed:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _b:return(e.displayName||"Context")+".Consumer";case kb:return(e._context.displayName||"Context")+".Provider";case _p:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $p:return t=e.displayName||null,t!==null?t:Cd(e.type)||"Memo";case Qn:t=e._payload,e=e._init;try{return Cd(e(t))}catch{}}return null}function _1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cd(t);case 8:return t===kp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $1(e){var t=wb(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vl(e){e._valueTracker||(e._valueTracker=$1(e))}function zb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=wb(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Bl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Td(e,t){var r=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function hx(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=fr(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ib(e,t){t=t.checked,t!=null&&Sp(e,"checked",t,!1)}function jd(e,t){Ib(e,t);var r=fr(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Od(e,t.type,r):t.hasOwnProperty("defaultValue")&&Od(e,t.type,fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xx(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Od(e,t,r){(t!=="number"||Bl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ai=Array.isArray;function ko(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+fr(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Dd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(E(92));if(Ai(r)){if(1<r.length)throw Error(E(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:fr(r)}}function Pb(e,t){var r=fr(t.value),o=fr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function Sx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Rb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Nd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Rb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yl,Eb=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,n)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(yl=yl||document.createElement("div"),yl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qi(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Mi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},w1=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(e){w1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mi[t]=Mi[e]})});function Cb(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Mi.hasOwnProperty(e)&&Mi[e]?(""+t).trim():t+"px"}function Tb(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=Cb(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var z1=je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ld(e,t){if(t){if(z1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ud(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ad=null;function wp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fd=null,_o=null,$o=null;function kx(e){if(e=va(e)){if(typeof Fd!="function")throw Error(E(280));var t=e.stateNode;t&&(t=hs(t),Fd(e.stateNode,e.type,t))}}function jb(e){_o?$o?$o.push(e):$o=[e]:_o=e}function Ob(){if(_o){var e=_o,t=$o;if($o=_o=null,kx(e),t)for(e=0;e<t.length;e++)kx(t[e])}}function Db(e,t){return e(t)}function Nb(){}var sd=!1;function Lb(e,t,r){if(sd)return e(t,r);sd=!0;try{return Db(e,t,r)}finally{sd=!1,(_o!==null||$o!==null)&&(Nb(),Ob())}}function Qi(e,t){var r=e.stateNode;if(r===null)return null;var o=hs(r);if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(E(231,t,typeof r));return r}var Wd=!1;if(Fn)try{lo={},Object.defineProperty(lo,"passive",{get:function(){Wd=!0}}),window.addEventListener("test",lo,lo),window.removeEventListener("test",lo,lo)}catch{Wd=!1}var lo;function I1(e,t,r,o,n,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Zi=!1,Vl=null,Hl=!1,Md=null,P1={onError:function(e){Zi=!0,Vl=e}};function R1(e,t,r,o,n,i,a,l,s){Zi=!1,Vl=null,I1.apply(P1,arguments)}function E1(e,t,r,o,n,i,a,l,s){if(R1.apply(this,arguments),Zi){if(Zi){var c=Vl;Zi=!1,Vl=null}else throw Error(E(198));Hl||(Hl=!0,Md=c)}}function Hr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Ub(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _x(e){if(Hr(e)!==e)throw Error(E(188))}function C1(e){var t=e.alternate;if(!t){if(t=Hr(e),t===null)throw Error(E(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return _x(n),e;if(i===o)return _x(n),t;i=i.sibling}throw Error(E(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,l=n.child;l;){if(l===r){a=!0,r=n,o=i;break}if(l===o){a=!0,o=n,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,o=n;break}if(l===o){a=!0,o=i,r=n;break}l=l.sibling}if(!a)throw Error(E(189))}}if(r.alternate!==o)throw Error(E(190))}if(r.tag!==3)throw Error(E(188));return r.stateNode.current===r?e:t}function Ab(e){return e=C1(e),e!==null?Fb(e):null}function Fb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fb(e);if(t!==null)return t;e=e.sibling}return null}var Wb=Tt.unstable_scheduleCallback,$x=Tt.unstable_cancelCallback,T1=Tt.unstable_shouldYield,j1=Tt.unstable_requestPaint,Ue=Tt.unstable_now,O1=Tt.unstable_getCurrentPriorityLevel,zp=Tt.unstable_ImmediatePriority,Mb=Tt.unstable_UserBlockingPriority,Jl=Tt.unstable_NormalPriority,D1=Tt.unstable_LowPriority,Zb=Tt.unstable_IdlePriority,ms=null,bn=null;function N1(e){if(bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(ms,e,void 0,(e.current.flags&128)===128)}catch{}}var on=Math.clz32?Math.clz32:A1,L1=Math.log,U1=Math.LN2;function A1(e){return e>>>=0,e===0?32:31-(L1(e)/U1|0)|0}var hl=64,xl=4194304;function Fi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gl(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~n;l!==0?o=Fi(l):(i&=a,i!==0&&(o=Fi(i)))}else a=r&~n,a!==0?o=Fi(a):i!==0&&(o=Fi(i));if(o===0)return 0;if(t!==0&&t!==o&&(t&n)===0&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-on(t),n=1<<r,o|=e[r],t&=~n;return o}function F1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function W1(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-on(i),l=1<<a,s=n[a];s===-1?((l&r)===0||(l&o)!==0)&&(n[a]=F1(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Zd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Bb(){var e=hl;return hl<<=1,(hl&4194240)===0&&(hl=64),e}function cd(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ma(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-on(t),e[t]=r}function M1(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-on(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function Ip(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-on(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var ve=0;function Vb(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Hb,Pp,Jb,Gb,Xb,Bd=!1,bl=[],ir=null,ar=null,lr=null,ea=new Map,ta=new Map,tr=[],Z1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function wx(e,t){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":ar=null;break;case"mouseover":case"mouseout":lr=null;break;case"pointerover":case"pointerout":ea.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ta.delete(t.pointerId)}}function Ci(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=va(t),t!==null&&Pp(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function B1(e,t,r,o,n){switch(t){case"focusin":return ir=Ci(ir,e,t,r,o,n),!0;case"dragenter":return ar=Ci(ar,e,t,r,o,n),!0;case"mouseover":return lr=Ci(lr,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return ea.set(i,Ci(ea.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,ta.set(i,Ci(ta.get(i)||null,e,t,r,o,n)),!0}return!1}function Kb(e){var t=Dr(e.target);if(t!==null){var r=Hr(t);if(r!==null){if(t=r.tag,t===13){if(t=Ub(r),t!==null){e.blockedOn=t,Xb(e.priority,function(){Jb(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ol(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Vd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Ad=o,r.target.dispatchEvent(o),Ad=null}else return t=va(r),t!==null&&Pp(t),e.blockedOn=r,!1;t.shift()}return!0}function zx(e,t,r){Ol(e)&&r.delete(t)}function V1(){Bd=!1,ir!==null&&Ol(ir)&&(ir=null),ar!==null&&Ol(ar)&&(ar=null),lr!==null&&Ol(lr)&&(lr=null),ea.forEach(zx),ta.forEach(zx)}function Ti(e,t){e.blockedOn===t&&(e.blockedOn=null,Bd||(Bd=!0,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,V1)))}function na(e){function t(n){return Ti(n,e)}if(0<bl.length){Ti(bl[0],e);for(var r=1;r<bl.length;r++){var o=bl[r];o.blockedOn===e&&(o.blockedOn=null)}}for(ir!==null&&Ti(ir,e),ar!==null&&Ti(ar,e),lr!==null&&Ti(lr,e),ea.forEach(t),ta.forEach(t),r=0;r<tr.length;r++)o=tr[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<tr.length&&(r=tr[0],r.blockedOn===null);)Kb(r),r.blockedOn===null&&tr.shift()}var wo=Bn.ReactCurrentBatchConfig,Xl=!0;function H1(e,t,r,o){var n=ve,i=wo.transition;wo.transition=null;try{ve=1,Rp(e,t,r,o)}finally{ve=n,wo.transition=i}}function J1(e,t,r,o){var n=ve,i=wo.transition;wo.transition=null;try{ve=4,Rp(e,t,r,o)}finally{ve=n,wo.transition=i}}function Rp(e,t,r,o){if(Xl){var n=Vd(e,t,r,o);if(n===null)vd(e,t,o,Kl,r),wx(e,o);else if(B1(n,e,t,r,o))o.stopPropagation();else if(wx(e,o),t&4&&-1<Z1.indexOf(e)){for(;n!==null;){var i=va(n);if(i!==null&&Hb(i),i=Vd(e,t,r,o),i===null&&vd(e,t,o,Kl,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else vd(e,t,o,null,r)}}var Kl=null;function Vd(e,t,r,o){if(Kl=null,e=wp(o),e=Dr(e),e!==null)if(t=Hr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Ub(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kl=e,null}function Yb(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(O1()){case zp:return 1;case Mb:return 4;case Jl:case D1:return 16;case Zb:return 536870912;default:return 16}default:return 16}}var rr=null,Ep=null,Dl=null;function qb(){if(Dl)return Dl;var e,t=Ep,r=t.length,o,n="value"in rr?rr.value:rr.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return Dl=n.slice(e,1<o?1-o:void 0)}function Nl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Sl(){return!0}function Ix(){return!1}function jt(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Sl:Ix,this.isPropagationStopped=Ix,this}return je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Sl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Sl)},persist:function(){},isPersistent:Sl}),t}var Do={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cp=jt(Do),ga=je({},Do,{view:0,detail:0}),G1=jt(ga),ud,dd,ji,gs=je({},ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ji&&(ji&&e.type==="mousemove"?(ud=e.screenX-ji.screenX,dd=e.screenY-ji.screenY):dd=ud=0,ji=e),ud)},movementY:function(e){return"movementY"in e?e.movementY:dd}}),Px=jt(gs),X1=je({},gs,{dataTransfer:0}),K1=jt(X1),Y1=je({},ga,{relatedTarget:0}),pd=jt(Y1),q1=je({},Do,{animationName:0,elapsedTime:0,pseudoElement:0}),Q1=jt(q1),ez=je({},Do,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tz=jt(ez),nz=je({},Do,{data:0}),Rx=jt(nz),rz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oz={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},iz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function az(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iz[e])?!!t[e]:!1}function Tp(){return az}var lz=je({},ga,{key:function(e){if(e.key){var t=rz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tp,charCode:function(e){return e.type==="keypress"?Nl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sz=jt(lz),cz=je({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ex=jt(cz),uz=je({},ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tp}),dz=jt(uz),pz=je({},Do,{propertyName:0,elapsedTime:0,pseudoElement:0}),fz=jt(pz),mz=je({},gs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gz=jt(mz),vz=[9,13,27,32],jp=Fn&&"CompositionEvent"in window,Bi=null;Fn&&"documentMode"in document&&(Bi=document.documentMode);var yz=Fn&&"TextEvent"in window&&!Bi,Qb=Fn&&(!jp||Bi&&8<Bi&&11>=Bi),Cx=" ",Tx=!1;function eS(e,t){switch(e){case"keyup":return vz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var po=!1;function hz(e,t){switch(e){case"compositionend":return tS(t);case"keypress":return t.which!==32?null:(Tx=!0,Cx);case"textInput":return e=t.data,e===Cx&&Tx?null:e;default:return null}}function xz(e,t){if(po)return e==="compositionend"||!jp&&eS(e,t)?(e=qb(),Dl=Ep=rr=null,po=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qb&&t.locale!=="ko"?null:t.data;default:return null}}var bz={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bz[e.type]:t==="textarea"}function nS(e,t,r,o){jb(o),t=Yl(t,"onChange"),0<t.length&&(r=new Cp("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Vi=null,ra=null;function Sz(e){fS(e,0)}function vs(e){var t=go(e);if(zb(t))return e}function kz(e,t){if(e==="change")return t}var rS=!1;Fn&&(Fn?(_l="oninput"in document,_l||(fd=document.createElement("div"),fd.setAttribute("oninput","return;"),_l=typeof fd.oninput=="function"),kl=_l):kl=!1,rS=kl&&(!document.documentMode||9<document.documentMode));var kl,_l,fd;function Ox(){Vi&&(Vi.detachEvent("onpropertychange",oS),ra=Vi=null)}function oS(e){if(e.propertyName==="value"&&vs(ra)){var t=[];nS(t,ra,e,wp(e)),Lb(Sz,t)}}function _z(e,t,r){e==="focusin"?(Ox(),Vi=t,ra=r,Vi.attachEvent("onpropertychange",oS)):e==="focusout"&&Ox()}function $z(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vs(ra)}function wz(e,t){if(e==="click")return vs(t)}function zz(e,t){if(e==="input"||e==="change")return vs(t)}function Iz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ln=typeof Object.is=="function"?Object.is:Iz;function oa(e,t){if(ln(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!Id.call(t,n)||!ln(e[n],t[n]))return!1}return!0}function Dx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nx(e,t){var r=Dx(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Dx(r)}}function iS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function aS(){for(var e=window,t=Bl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Bl(e.document)}return t}function Op(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pz(e){var t=aS(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&iS(r.ownerDocument.documentElement,r)){if(o!==null&&Op(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!e.extend&&i>o&&(n=o,o=i,i=n),n=Nx(r,i);var a=Nx(r,o);n&&a&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Rz=Fn&&"documentMode"in document&&11>=document.documentMode,fo=null,Hd=null,Hi=null,Jd=!1;function Lx(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Jd||fo==null||fo!==Bl(o)||(o=fo,"selectionStart"in o&&Op(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Hi&&oa(Hi,o)||(Hi=o,o=Yl(Hd,"onSelect"),0<o.length&&(t=new Cp("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=fo)))}function $l(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var mo={animationend:$l("Animation","AnimationEnd"),animationiteration:$l("Animation","AnimationIteration"),animationstart:$l("Animation","AnimationStart"),transitionend:$l("Transition","TransitionEnd")},md={},lS={};Fn&&(lS=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function ys(e){if(md[e])return md[e];if(!mo[e])return e;var t=mo[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in lS)return md[e]=t[r];return e}var sS=ys("animationend"),cS=ys("animationiteration"),uS=ys("animationstart"),dS=ys("transitionend"),pS=new Map,Ux="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gr(e,t){pS.set(e,t),Vr(t,[e])}for(wl=0;wl<Ux.length;wl++)zl=Ux[wl],Ax=zl.toLowerCase(),Fx=zl[0].toUpperCase()+zl.slice(1),gr(Ax,"on"+Fx);var zl,Ax,Fx,wl;gr(sS,"onAnimationEnd");gr(cS,"onAnimationIteration");gr(uS,"onAnimationStart");gr("dblclick","onDoubleClick");gr("focusin","onFocus");gr("focusout","onBlur");gr(dS,"onTransitionEnd");Po("onMouseEnter",["mouseout","mouseover"]);Po("onMouseLeave",["mouseout","mouseover"]);Po("onPointerEnter",["pointerout","pointerover"]);Po("onPointerLeave",["pointerout","pointerover"]);Vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ez=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wi));function Wx(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,E1(o,t,void 0,e),e.currentTarget=null}function fS(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var l=o[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&n.isPropagationStopped())break e;Wx(n,l,c),i=s}else for(a=0;a<o.length;a++){if(l=o[a],s=l.instance,c=l.currentTarget,l=l.listener,s!==i&&n.isPropagationStopped())break e;Wx(n,l,c),i=s}}}if(Hl)throw e=Md,Hl=!1,Md=null,e}function Ie(e,t){var r=t[qd];r===void 0&&(r=t[qd]=new Set);var o=e+"__bubble";r.has(o)||(mS(t,e,2,!1),r.add(o))}function gd(e,t,r){var o=0;t&&(o|=4),mS(r,e,o,t)}var Il="_reactListening"+Math.random().toString(36).slice(2);function ia(e){if(!e[Il]){e[Il]=!0,Sb.forEach(function(r){r!=="selectionchange"&&(Ez.has(r)||gd(r,!1,e),gd(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Il]||(t[Il]=!0,gd("selectionchange",!1,t))}}function mS(e,t,r,o){switch(Yb(t)){case 1:var n=H1;break;case 4:n=J1;break;default:n=Rp}r=n.bind(null,t,r,e),n=void 0,!Wd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function vd(e,t,r,o,n){var i=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var l=o.stateNode.containerInfo;if(l===n||l.nodeType===8&&l.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===n||s.nodeType===8&&s.parentNode===n))return;a=a.return}for(;l!==null;){if(a=Dr(l),a===null)return;if(s=a.tag,s===5||s===6){o=i=a;continue e}l=l.parentNode}}o=o.return}Lb(function(){var c=i,d=wp(r),p=[];e:{var f=pS.get(e);if(f!==void 0){var g=Cp,b=e;switch(e){case"keypress":if(Nl(r)===0)break e;case"keydown":case"keyup":g=sz;break;case"focusin":b="focus",g=pd;break;case"focusout":b="blur",g=pd;break;case"beforeblur":case"afterblur":g=pd;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Px;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=K1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=dz;break;case sS:case cS:case uS:g=Q1;break;case dS:g=fz;break;case"scroll":g=G1;break;case"wheel":g=gz;break;case"copy":case"cut":case"paste":g=tz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ex}var h=(t&4)!==0,w=!h&&e==="scroll",v=h?f!==null?f+"Capture":null:f;h=[];for(var m=c,y;m!==null;){y=m;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=Qi(m,v),S!=null&&h.push(aa(m,S,y)))),w)break;m=m.return}0<h.length&&(f=new g(f,b,null,r,d),p.push({event:f,listeners:h}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&r!==Ad&&(b=r.relatedTarget||r.fromElement)&&(Dr(b)||b[Wn]))break e;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(b=r.relatedTarget||r.toElement,g=c,b=b?Dr(b):null,b!==null&&(w=Hr(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(g=null,b=c),g!==b)){if(h=Px,S="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(h=Ex,S="onPointerLeave",v="onPointerEnter",m="pointer"),w=g==null?f:go(g),y=b==null?f:go(b),f=new h(S,m+"leave",g,r,d),f.target=w,f.relatedTarget=y,S=null,Dr(d)===c&&(h=new h(v,m+"enter",b,r,d),h.target=y,h.relatedTarget=w,S=h),w=S,g&&b)t:{for(h=g,v=b,m=0,y=h;y;y=so(y))m++;for(y=0,S=v;S;S=so(S))y++;for(;0<m-y;)h=so(h),m--;for(;0<y-m;)v=so(v),y--;for(;m--;){if(h===v||v!==null&&h===v.alternate)break t;h=so(h),v=so(v)}h=null}else h=null;g!==null&&Mx(p,f,g,h,!1),b!==null&&w!==null&&Mx(p,w,b,h,!0)}}e:{if(f=c?go(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var P=kz;else if(jx(f))if(rS)P=zz;else{P=$z;var O=_z}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(P=wz);if(P&&(P=P(e,c))){nS(p,P,r,d);break e}O&&O(e,f,c),e==="focusout"&&(O=f._wrapperState)&&O.controlled&&f.type==="number"&&Od(f,"number",f.value)}switch(O=c?go(c):window,e){case"focusin":(jx(O)||O.contentEditable==="true")&&(fo=O,Hd=c,Hi=null);break;case"focusout":Hi=Hd=fo=null;break;case"mousedown":Jd=!0;break;case"contextmenu":case"mouseup":case"dragend":Jd=!1,Lx(p,r,d);break;case"selectionchange":if(Rz)break;case"keydown":case"keyup":Lx(p,r,d)}var T;if(jp)e:{switch(e){case"compositionstart":var B="onCompositionStart";break e;case"compositionend":B="onCompositionEnd";break e;case"compositionupdate":B="onCompositionUpdate";break e}B=void 0}else po?eS(e,r)&&(B="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(B="onCompositionStart");B&&(Qb&&r.locale!=="ko"&&(po||B!=="onCompositionStart"?B==="onCompositionEnd"&&po&&(T=qb()):(rr=d,Ep="value"in rr?rr.value:rr.textContent,po=!0)),O=Yl(c,B),0<O.length&&(B=new Rx(B,e,null,r,d),p.push({event:B,listeners:O}),T?B.data=T:(T=tS(r),T!==null&&(B.data=T)))),(T=yz?hz(e,r):xz(e,r))&&(c=Yl(c,"onBeforeInput"),0<c.length&&(d=new Rx("onBeforeInput","beforeinput",null,r,d),p.push({event:d,listeners:c}),d.data=T))}fS(p,t)})}function aa(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Yl(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=Qi(e,r),i!=null&&o.unshift(aa(e,i,n)),i=Qi(e,t),i!=null&&o.push(aa(e,i,n))),e=e.return}return o}function so(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mx(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===o)break;l.tag===5&&c!==null&&(l=c,n?(s=Qi(r,i),s!=null&&a.unshift(aa(r,s,l))):n||(s=Qi(r,i),s!=null&&a.push(aa(r,s,l)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var Cz=/\r\n?/g,Tz=/\u0000|\uFFFD/g;function Zx(e){return(typeof e=="string"?e:""+e).replace(Cz,`
|
|
6
|
+
`).replace(Tz,"")}function Pl(e,t,r){if(t=Zx(t),Zx(e)!==t&&r)throw Error(E(425))}function ql(){}var Gd=null,Xd=null;function Kd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yd=typeof setTimeout=="function"?setTimeout:void 0,jz=typeof clearTimeout=="function"?clearTimeout:void 0,Bx=typeof Promise=="function"?Promise:void 0,Oz=typeof queueMicrotask=="function"?queueMicrotask:typeof Bx<"u"?function(e){return Bx.resolve(null).then(e).catch(Dz)}:Yd;function Dz(e){setTimeout(function(){throw e})}function yd(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),na(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);na(t)}function sr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Vx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var No=Math.random().toString(36).slice(2),xn="__reactFiber$"+No,la="__reactProps$"+No,Wn="__reactContainer$"+No,qd="__reactEvents$"+No,Nz="__reactListeners$"+No,Lz="__reactHandles$"+No;function Dr(e){var t=e[xn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Wn]||r[xn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Vx(e);e!==null;){if(r=e[xn])return r;e=Vx(e)}return t}e=r,r=e.parentNode}return null}function va(e){return e=e[xn]||e[Wn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function go(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function hs(e){return e[la]||null}var Qd=[],vo=-1;function vr(e){return{current:e}}function Pe(e){0>vo||(e.current=Qd[vo],Qd[vo]=null,vo--)}function we(e,t){vo++,Qd[vo]=e.current,e.current=t}var mr={},ct=vr(mr),_t=vr(!1),Fr=mr;function Ro(e,t){var r=e.type.contextTypes;if(!r)return mr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function $t(e){return e=e.childContextTypes,e!=null}function Ql(){Pe(_t),Pe(ct)}function Hx(e,t,r){if(ct.current!==mr)throw Error(E(168));we(ct,t),we(_t,r)}function gS(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(E(108,_1(e)||"Unknown",n));return je({},r,o)}function es(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mr,Fr=ct.current,we(ct,e),we(_t,_t.current),!0}function Jx(e,t,r){var o=e.stateNode;if(!o)throw Error(E(169));r?(e=gS(e,t,Fr),o.__reactInternalMemoizedMergedChildContext=e,Pe(_t),Pe(ct),we(ct,e)):Pe(_t),we(_t,r)}var Nn=null,xs=!1,hd=!1;function vS(e){Nn===null?Nn=[e]:Nn.push(e)}function Uz(e){xs=!0,vS(e)}function yr(){if(!hd&&Nn!==null){hd=!0;var e=0,t=ve;try{var r=Nn;for(ve=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}Nn=null,xs=!1}catch(n){throw Nn!==null&&(Nn=Nn.slice(e+1)),Wb(zp,yr),n}finally{ve=t,hd=!1}}return null}var yo=[],ho=0,ts=null,ns=0,Mt=[],Zt=0,Wr=null,Ln=1,Un="";function jr(e,t){yo[ho++]=ns,yo[ho++]=ts,ts=e,ns=t}function yS(e,t,r){Mt[Zt++]=Ln,Mt[Zt++]=Un,Mt[Zt++]=Wr,Wr=e;var o=Ln;e=Un;var n=32-on(o)-1;o&=~(1<<n),r+=1;var i=32-on(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Ln=1<<32-on(t)+n|r<<n|o,Un=i+e}else Ln=1<<i|r<<n|o,Un=e}function Dp(e){e.return!==null&&(jr(e,1),yS(e,1,0))}function Np(e){for(;e===ts;)ts=yo[--ho],yo[ho]=null,ns=yo[--ho],yo[ho]=null;for(;e===Wr;)Wr=Mt[--Zt],Mt[Zt]=null,Un=Mt[--Zt],Mt[Zt]=null,Ln=Mt[--Zt],Mt[Zt]=null}var Ct=null,Et=null,Re=!1,rn=null;function hS(e,t){var r=Bt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Gx(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,Et=sr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,Et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Wr!==null?{id:Ln,overflow:Un}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Bt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Ct=e,Et=null,!0):!1;default:return!1}}function ep(e){return(e.mode&1)!==0&&(e.flags&128)===0}function tp(e){if(Re){var t=Et;if(t){var r=t;if(!Gx(e,t)){if(ep(e))throw Error(E(418));t=sr(r.nextSibling);var o=Ct;t&&Gx(e,t)?hS(o,r):(e.flags=e.flags&-4097|2,Re=!1,Ct=e)}}else{if(ep(e))throw Error(E(418));e.flags=e.flags&-4097|2,Re=!1,Ct=e}}}function Xx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function Rl(e){if(e!==Ct)return!1;if(!Re)return Xx(e),Re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Kd(e.type,e.memoizedProps)),t&&(t=Et)){if(ep(e))throw xS(),Error(E(418));for(;t;)hS(e,t),t=sr(t.nextSibling)}if(Xx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Et=sr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Et=null}}else Et=Ct?sr(e.stateNode.nextSibling):null;return!0}function xS(){for(var e=Et;e;)e=sr(e.nextSibling)}function Eo(){Et=Ct=null,Re=!1}function Lp(e){rn===null?rn=[e]:rn.push(e)}var Az=Bn.ReactCurrentBatchConfig;function Oi(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(E(309));var o=r.stateNode}if(!o)throw Error(E(147,e));var n=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=n.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!r._owner)throw Error(E(290,e))}return e}function El(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kx(e){var t=e._init;return t(e._payload)}function bS(e){function t(v,m){if(e){var y=v.deletions;y===null?(v.deletions=[m],v.flags|=16):y.push(m)}}function r(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function o(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function n(v,m){return v=pr(v,m),v.index=0,v.sibling=null,v}function i(v,m,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<m?(v.flags|=2,m):y):(v.flags|=2,m)):(v.flags|=1048576,m)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,m,y,S){return m===null||m.tag!==6?(m=wd(y,v.mode,S),m.return=v,m):(m=n(m,y),m.return=v,m)}function s(v,m,y,S){var P=y.type;return P===uo?d(v,m,y.props.children,S,y.key):m!==null&&(m.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qn&&Kx(P)===m.type)?(S=n(m,y.props),S.ref=Oi(v,m,y),S.return=v,S):(S=Zl(y.type,y.key,y.props,null,v.mode,S),S.ref=Oi(v,m,y),S.return=v,S)}function c(v,m,y,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=zd(y,v.mode,S),m.return=v,m):(m=n(m,y.children||[]),m.return=v,m)}function d(v,m,y,S,P){return m===null||m.tag!==7?(m=Ar(y,v.mode,S,P),m.return=v,m):(m=n(m,y),m.return=v,m)}function p(v,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=wd(""+m,v.mode,y),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case gl:return y=Zl(m.type,m.key,m.props,null,v.mode,y),y.ref=Oi(v,null,m),y.return=v,y;case co:return m=zd(m,v.mode,y),m.return=v,m;case Qn:var S=m._init;return p(v,S(m._payload),y)}if(Ai(m)||Ei(m))return m=Ar(m,v.mode,y,null),m.return=v,m;El(v,m)}return null}function f(v,m,y,S){var P=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return P!==null?null:l(v,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case gl:return y.key===P?s(v,m,y,S):null;case co:return y.key===P?c(v,m,y,S):null;case Qn:return P=y._init,f(v,m,P(y._payload),S)}if(Ai(y)||Ei(y))return P!==null?null:d(v,m,y,S,null);El(v,y)}return null}function g(v,m,y,S,P){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(y)||null,l(m,v,""+S,P);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case gl:return v=v.get(S.key===null?y:S.key)||null,s(m,v,S,P);case co:return v=v.get(S.key===null?y:S.key)||null,c(m,v,S,P);case Qn:var O=S._init;return g(v,m,y,O(S._payload),P)}if(Ai(S)||Ei(S))return v=v.get(y)||null,d(m,v,S,P,null);El(m,S)}return null}function b(v,m,y,S){for(var P=null,O=null,T=m,B=m=0,X=null;T!==null&&B<y.length;B++){T.index>B?(X=T,T=null):X=T.sibling;var M=f(v,T,y[B],S);if(M===null){T===null&&(T=X);break}e&&T&&M.alternate===null&&t(v,T),m=i(M,m,B),O===null?P=M:O.sibling=M,O=M,T=X}if(B===y.length)return r(v,T),Re&&jr(v,B),P;if(T===null){for(;B<y.length;B++)T=p(v,y[B],S),T!==null&&(m=i(T,m,B),O===null?P=T:O.sibling=T,O=T);return Re&&jr(v,B),P}for(T=o(v,T);B<y.length;B++)X=g(T,v,B,y[B],S),X!==null&&(e&&X.alternate!==null&&T.delete(X.key===null?B:X.key),m=i(X,m,B),O===null?P=X:O.sibling=X,O=X);return e&&T.forEach(function(Ze){return t(v,Ze)}),Re&&jr(v,B),P}function h(v,m,y,S){var P=Ei(y);if(typeof P!="function")throw Error(E(150));if(y=P.call(y),y==null)throw Error(E(151));for(var O=P=null,T=m,B=m=0,X=null,M=y.next();T!==null&&!M.done;B++,M=y.next()){T.index>B?(X=T,T=null):X=T.sibling;var Ze=f(v,T,M.value,S);if(Ze===null){T===null&&(T=X);break}e&&T&&Ze.alternate===null&&t(v,T),m=i(Ze,m,B),O===null?P=Ze:O.sibling=Ze,O=Ze,T=X}if(M.done)return r(v,T),Re&&jr(v,B),P;if(T===null){for(;!M.done;B++,M=y.next())M=p(v,M.value,S),M!==null&&(m=i(M,m,B),O===null?P=M:O.sibling=M,O=M);return Re&&jr(v,B),P}for(T=o(v,T);!M.done;B++,M=y.next())M=g(T,v,B,M.value,S),M!==null&&(e&&M.alternate!==null&&T.delete(M.key===null?B:M.key),m=i(M,m,B),O===null?P=M:O.sibling=M,O=M);return e&&T.forEach(function(re){return t(v,re)}),Re&&jr(v,B),P}function w(v,m,y,S){if(typeof y=="object"&&y!==null&&y.type===uo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case gl:e:{for(var P=y.key,O=m;O!==null;){if(O.key===P){if(P=y.type,P===uo){if(O.tag===7){r(v,O.sibling),m=n(O,y.props.children),m.return=v,v=m;break e}}else if(O.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qn&&Kx(P)===O.type){r(v,O.sibling),m=n(O,y.props),m.ref=Oi(v,O,y),m.return=v,v=m;break e}r(v,O);break}else t(v,O);O=O.sibling}y.type===uo?(m=Ar(y.props.children,v.mode,S,y.key),m.return=v,v=m):(S=Zl(y.type,y.key,y.props,null,v.mode,S),S.ref=Oi(v,m,y),S.return=v,v=S)}return a(v);case co:e:{for(O=y.key;m!==null;){if(m.key===O)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=n(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=zd(y,v.mode,S),m.return=v,v=m}return a(v);case Qn:return O=y._init,w(v,m,O(y._payload),S)}if(Ai(y))return b(v,m,y,S);if(Ei(y))return h(v,m,y,S);El(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=n(m,y),m.return=v,v=m):(r(v,m),m=wd(y,v.mode,S),m.return=v,v=m),a(v)):r(v,m)}return w}var Co=bS(!0),SS=bS(!1),rs=vr(null),os=null,xo=null,Up=null;function Ap(){Up=xo=os=null}function Fp(e){var t=rs.current;Pe(rs),e._currentValue=t}function np(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function zo(e,t){os=e,Up=xo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(kt=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(Up!==e)if(e={context:e,memoizedValue:t,next:null},xo===null){if(os===null)throw Error(E(308));xo=e,os.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Nr=null;function Wp(e){Nr===null?Nr=[e]:Nr.push(e)}function kS(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,Wp(t)):(r.next=n.next,n.next=r),t.interleaved=r,Mn(e,o)}function Mn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var er=!1;function Mp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _S(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function An(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cr(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(pe&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,Mn(e,r)}return n=o.interleaved,n===null?(t.next=t,Wp(o)):(t.next=n.next,n.next=t),o.interleaved=t,Mn(e,r)}function Ll(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Ip(e,r)}}function Yx(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function is(e,t,r,o){var n=e.updateQueue;er=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,l=n.shared.pending;if(l!==null){n.shared.pending=null;var s=l,c=s.next;s.next=null,a===null?i=c:a.next=c,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(i!==null){var p=n.baseState;a=0,d=c=s=null,l=i;do{var f=l.lane,g=l.eventTime;if((o&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,h=l;switch(f=t,g=r,h.tag){case 1:if(b=h.payload,typeof b=="function"){p=b.call(g,p,f);break e}p=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=h.payload,f=typeof b=="function"?b.call(g,p,f):b,f==null)break e;p=je({},p,f);break e;case 2:er=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=p):d=d.next=g,a|=f;if(l=l.next,l===null){if(l=n.shared.pending,l===null)break;f=l,l=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(d===null&&(s=p),n.baseState=s,n.firstBaseUpdate=c,n.lastBaseUpdate=d,t=n.shared.interleaved,t!==null){n=t;do a|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);Zr|=a,e.lanes=a,e.memoizedState=p}}function qx(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],n=o.callback;if(n!==null){if(o.callback=null,o=r,typeof n!="function")throw Error(E(191,n));n.call(o)}}}var ya={},Sn=vr(ya),sa=vr(ya),ca=vr(ya);function Lr(e){if(e===ya)throw Error(E(174));return e}function Zp(e,t){switch(we(ca,t),we(sa,e),we(Sn,ya),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nd(t,e)}Pe(Sn),we(Sn,t)}function To(){Pe(Sn),Pe(sa),Pe(ca)}function $S(e){Lr(ca.current);var t=Lr(Sn.current),r=Nd(t,e.type);t!==r&&(we(sa,e),we(Sn,r))}function Bp(e){sa.current===e&&(Pe(Sn),Pe(sa))}var Ce=vr(0);function as(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xd=[];function Vp(){for(var e=0;e<xd.length;e++)xd[e]._workInProgressVersionPrimary=null;xd.length=0}var Ul=Bn.ReactCurrentDispatcher,bd=Bn.ReactCurrentBatchConfig,Mr=0,Te=null,Ve=null,Ke=null,ls=!1,Ji=!1,ua=0,Fz=0;function at(){throw Error(E(321))}function Hp(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ln(e[r],t[r]))return!1;return!0}function Jp(e,t,r,o,n,i){if(Mr=i,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ul.current=e===null||e.memoizedState===null?Bz:Vz,e=r(o,n),Ji){i=0;do{if(Ji=!1,ua=0,25<=i)throw Error(E(301));i+=1,Ke=Ve=null,t.updateQueue=null,Ul.current=Hz,e=r(o,n)}while(Ji)}if(Ul.current=ss,t=Ve!==null&&Ve.next!==null,Mr=0,Ke=Ve=Te=null,ls=!1,t)throw Error(E(300));return e}function Gp(){var e=ua!==0;return ua=0,e}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Te.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Jt(){if(Ve===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=Ke===null?Te.memoizedState:Ke.next;if(t!==null)Ke=t,Ve=e;else{if(e===null)throw Error(E(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},Ke===null?Te.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function da(e,t){return typeof t=="function"?t(e):t}function Sd(e){var t=Jt(),r=t.queue;if(r===null)throw Error(E(311));r.lastRenderedReducer=e;var o=Ve,n=o.baseQueue,i=r.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}o.baseQueue=n=i,r.pending=null}if(n!==null){i=n.next,o=o.baseState;var l=a=null,s=null,c=i;do{var d=c.lane;if((Mr&d)===d)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(l=s=p,a=o):s=s.next=p,Te.lanes|=d,Zr|=d}c=c.next}while(c!==null&&c!==i);s===null?a=o:s.next=l,ln(o,t.memoizedState)||(kt=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=s,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,Te.lanes|=i,Zr|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function kd(e){var t=Jt(),r=t.queue;if(r===null)throw Error(E(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);ln(i,t.memoizedState)||(kt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function wS(){}function zS(e,t){var r=Te,o=Jt(),n=t(),i=!ln(o.memoizedState,n);if(i&&(o.memoizedState=n,kt=!0),o=o.queue,Xp(RS.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||Ke!==null&&Ke.memoizedState.tag&1){if(r.flags|=2048,pa(9,PS.bind(null,r,o,n,t),void 0,null),Ye===null)throw Error(E(349));(Mr&30)!==0||IS(r,t,n)}return n}function IS(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function PS(e,t,r,o){t.value=r,t.getSnapshot=o,ES(t)&&CS(e)}function RS(e,t,r){return r(function(){ES(t)&&CS(e)})}function ES(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ln(e,r)}catch{return!0}}function CS(e){var t=Mn(e,1);t!==null&&an(t,e,1,-1)}function Qx(e){var t=hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t.queue=e,e=e.dispatch=Zz.bind(null,Te,e),[t.memoizedState,e]}function pa(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function TS(){return Jt().memoizedState}function Al(e,t,r,o){var n=hn();Te.flags|=e,n.memoizedState=pa(1|t,r,void 0,o===void 0?null:o)}function bs(e,t,r,o){var n=Jt();o=o===void 0?null:o;var i=void 0;if(Ve!==null){var a=Ve.memoizedState;if(i=a.destroy,o!==null&&Hp(o,a.deps)){n.memoizedState=pa(t,r,i,o);return}}Te.flags|=e,n.memoizedState=pa(1|t,r,i,o)}function eb(e,t){return Al(8390656,8,e,t)}function Xp(e,t){return bs(2048,8,e,t)}function jS(e,t){return bs(4,2,e,t)}function OS(e,t){return bs(4,4,e,t)}function DS(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function NS(e,t,r){return r=r!=null?r.concat([e]):null,bs(4,4,DS.bind(null,t,e),r)}function Kp(){}function LS(e,t){var r=Jt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Hp(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function US(e,t){var r=Jt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Hp(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function AS(e,t,r){return(Mr&21)===0?(e.baseState&&(e.baseState=!1,kt=!0),e.memoizedState=r):(ln(r,t)||(r=Bb(),Te.lanes|=r,Zr|=r,e.baseState=!0),t)}function Wz(e,t){var r=ve;ve=r!==0&&4>r?r:4,e(!0);var o=bd.transition;bd.transition={};try{e(!1),t()}finally{ve=r,bd.transition=o}}function FS(){return Jt().memoizedState}function Mz(e,t,r){var o=dr(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},WS(e))MS(t,r);else if(r=kS(e,t,r,o),r!==null){var n=mt();an(r,e,o,n),ZS(r,t,o)}}function Zz(e,t,r){var o=dr(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(WS(e))MS(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(n.hasEagerState=!0,n.eagerState=l,ln(l,a)){var s=t.interleaved;s===null?(n.next=n,Wp(t)):(n.next=s.next,s.next=n),t.interleaved=n;return}}catch{}r=kS(e,t,n,o),r!==null&&(n=mt(),an(r,e,o,n),ZS(r,t,o))}}function WS(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function MS(e,t){Ji=ls=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ZS(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Ip(e,r)}}var ss={readContext:Ht,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},Bz={readContext:Ht,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:eb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Al(4194308,4,DS.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Al(4194308,4,e,t)},useInsertionEffect:function(e,t){return Al(4,2,e,t)},useMemo:function(e,t){var r=hn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=hn();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Mz.bind(null,Te,e),[o.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:Qx,useDebugValue:Kp,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=Qx(!1),t=e[0];return e=Wz.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Te,n=hn();if(Re){if(r===void 0)throw Error(E(407));r=r()}else{if(r=t(),Ye===null)throw Error(E(349));(Mr&30)!==0||IS(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,eb(RS.bind(null,o,i,e),[e]),o.flags|=2048,pa(9,PS.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=hn(),t=Ye.identifierPrefix;if(Re){var r=Un,o=Ln;r=(o&~(1<<32-on(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=ua++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Fz++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Vz={readContext:Ht,useCallback:LS,useContext:Ht,useEffect:Xp,useImperativeHandle:NS,useInsertionEffect:jS,useLayoutEffect:OS,useMemo:US,useReducer:Sd,useRef:TS,useState:function(){return Sd(da)},useDebugValue:Kp,useDeferredValue:function(e){var t=Jt();return AS(t,Ve.memoizedState,e)},useTransition:function(){var e=Sd(da)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:wS,useSyncExternalStore:zS,useId:FS,unstable_isNewReconciler:!1},Hz={readContext:Ht,useCallback:LS,useContext:Ht,useEffect:Xp,useImperativeHandle:NS,useInsertionEffect:jS,useLayoutEffect:OS,useMemo:US,useReducer:kd,useRef:TS,useState:function(){return kd(da)},useDebugValue:Kp,useDeferredValue:function(e){var t=Jt();return Ve===null?t.memoizedState=e:AS(t,Ve.memoizedState,e)},useTransition:function(){var e=kd(da)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:wS,useSyncExternalStore:zS,useId:FS,unstable_isNewReconciler:!1};function tn(e,t){if(e&&e.defaultProps){t=je({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function rp(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:je({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ss={isMounted:function(e){return(e=e._reactInternals)?Hr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=mt(),n=dr(e),i=An(o,n);i.payload=t,r!=null&&(i.callback=r),t=cr(e,i,n),t!==null&&(an(t,e,n,o),Ll(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=mt(),n=dr(e),i=An(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=cr(e,i,n),t!==null&&(an(t,e,n,o),Ll(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=mt(),o=dr(e),n=An(r,o);n.tag=2,t!=null&&(n.callback=t),t=cr(e,n,o),t!==null&&(an(t,e,o,r),Ll(t,e,o))}};function tb(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!oa(r,o)||!oa(n,i):!0}function BS(e,t,r){var o=!1,n=mr,i=t.contextType;return typeof i=="object"&&i!==null?i=Ht(i):(n=$t(t)?Fr:ct.current,o=t.contextTypes,i=(o=o!=null)?Ro(e,n):mr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ss,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function nb(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Ss.enqueueReplaceState(t,t.state,null)}function op(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},Mp(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Ht(i):(i=$t(t)?Fr:ct.current,n.context=Ro(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(rp(e,t,i,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&Ss.enqueueReplaceState(n,n.state,null),is(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function jo(e,t){try{var r="",o=t;do r+=k1(o),o=o.return;while(o);var n=r}catch(i){n=`
|
|
7
7
|
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}return{value:e,source:t,stack:n,digest:null}}function _d(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ip(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Vz=typeof WeakMap=="function"?WeakMap:Map;function JS(e,t,r){r=Ln(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){ds||(ds=!0,gp=o),ip(e,t)},r}function GS(e,t,r){r=Ln(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var n=t.value;r.payload=function(){return o(n)},r.callback=function(){ip(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){ip(e,t),typeof o!="function"&&(ur===null?ur=new Set([this]):ur.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function ib(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new Vz;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(n.add(r),e=iI.bind(null,e,t,r),t.then(e,e))}function ab(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lb(e,t,r,o,n){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ln(-1,1),t.tag=2,cr(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var Hz=Mn.ReactCurrentOwner,kt=!1;function ft(e,t,r,o){t.child=e===null?_S(t,null,r,o):Ro(t,e.child,r,o)}function sb(e,t,r,o,n){r=r.render;var i=t.ref;return wo(t,n),o=Jp(e,t,r,o,i,n),r=Gp(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Wn(e,t,n)):(Ee&&r&&Dp(t),t.flags|=1,ft(e,t,o,n),t.child)}function cb(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!of(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,XS(e,t,i,o,n)):(e=Bl(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&n)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:oa,r(a,o)&&e.ref===t.ref)return Wn(e,t,n)}return t.flags|=1,e=pr(i,o),e.ref=t.ref,e.return=t,t.child=e}function XS(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(oa(i,o)&&e.ref===t.ref)if(kt=!1,t.pendingProps=o=i,(e.lanes&n)!==0)(e.flags&131072)!==0&&(kt=!0);else return t.lanes=e.lanes,Wn(e,t,n)}return ap(e,t,r,o,n)}function KS(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(bo,Rt),Rt|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(bo,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,$e(bo,Rt),Rt|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,$e(bo,Rt),Rt|=o;return ft(e,t,n,r),t.child}function YS(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ap(e,t,r,o,n){var i=$t(r)?Wr:st.current;return i=Po(t,i),wo(t,n),r=Jp(e,t,r,o,i,n),o=Gp(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Wn(e,t,n)):(Ee&&o&&Dp(t),t.flags|=1,ft(e,t,r,n),t.child)}function ub(e,t,r,o,n){if($t(r)){var i=!0;ts(t)}else i=!1;if(wo(t,n),t.stateNode===null)Wl(e,t),HS(t,r,o),op(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Gt(c):(c=$t(r)?Wr:st.current,c=Po(t,c));var d=r.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==o||s!==c)&&ob(t,a,o,c),er=!1;var f=t.memoizedState;a.state=f,as(t,o,a,n),s=t.memoizedState,l!==o||f!==s||_t.current||er?(typeof d=="function"&&(rp(t,r,d,o),s=t.memoizedState),(l=er||rb(t,r,l,o,f,s,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=s),a.props=o,a.state=s,a.context=c,o=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,wS(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:tn(t.type,l),a.props=c,p=t.pendingProps,f=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=Gt(s):(s=$t(r)?Wr:st.current,s=Po(t,s));var g=r.getDerivedStateFromProps;(d=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||f!==s)&&ob(t,a,o,s),er=!1,f=t.memoizedState,a.state=f,as(t,o,a,n);var x=t.memoizedState;l!==p||f!==x||_t.current||er?(typeof g=="function"&&(rp(t,r,g,o),x=t.memoizedState),(c=er||rb(t,r,c,o,f,x,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,x,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,x,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=x),a.props=o,a.state=x,a.context=s,o=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return lp(e,t,r,o,i,n)}function lp(e,t,r,o,n,i){YS(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&Xx(t,r,!1),Wn(e,t,i);o=t.stateNode,Hz.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=Ro(t,e.child,null,i),t.child=Ro(t,null,l,i)):ft(e,t,l,i),t.memoizedState=o.state,n&&Xx(t,r,!0),t.child}function QS(e){var t=e.stateNode;t.pendingContext?Gx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gx(e,t.context,!1),Zp(e,t.containerInfo)}function db(e,t,r,o,n){return Eo(),Lp(n),t.flags|=256,ft(e,t,r,o),t.child}var sp={dehydrated:null,treeContext:null,retryLane:0};function cp(e){return{baseLanes:e,cachePool:null,transitions:null}}function qS(e,t,r){var o=t.pendingProps,n=Ce.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(n&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),$e(Ce,n&1),e===null)return tp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},(o&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=ws(a,o,0,null),e=Fr(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=cp(r),t.memoizedState=sp,e):Yp(t,a));if(n=e.memoizedState,n!==null&&(l=n.dehydrated,l!==null))return Jz(e,t,a,o,l,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,l=n.sibling;var s={mode:"hidden",children:o.children};return(a&1)===0&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=s,t.deletions=null):(o=pr(n,s),o.subtreeFlags=n.subtreeFlags&14680064),l!==null?i=pr(l,i):(i=Fr(i,a,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?cp(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=sp,o}return i=e.child,e=i.sibling,o=pr(i,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Yp(e,t){return t=ws({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tl(e,t,r,o){return o!==null&&Lp(o),Ro(t,e.child,null,r),e=Yp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jz(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=_d(Error(R(422))),Tl(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=ws({mode:"visible",children:o.children},n,0,null),i=Fr(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&Ro(t,e.child,null,a),t.child.memoizedState=cp(a),t.memoizedState=sp,i);if((t.mode&1)===0)return Tl(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,i=Error(R(419)),o=_d(i,o,void 0),Tl(e,t,a,o)}if(l=(a&e.childLanes)!==0,kt||l){if(o=Ye,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(o.suspendedLanes|a))!==0?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,Fn(e,n),an(o,e,n,-1))}return rf(),o=_d(Error(R(421))),Tl(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=aI.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,Ct=sr(n.nextSibling),Tt=t,Ee=!0,rn=null,e!==null&&(Bt[Vt++]=Dn,Bt[Vt++]=Nn,Bt[Vt++]=Mr,Dn=e.id,Nn=e.overflow,Mr=t),t=Yp(t,o.children),t.flags|=4096,t)}function pb(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),np(e.return,t,r)}function $d(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function ek(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(ft(e,t,o.children,r),o=Ce.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pb(e,r,t);else if(e.tag===19)pb(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if($e(Ce,o),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&ls(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),$d(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ls(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}$d(t,!0,r,null,i);break;case"together":$d(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Br|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=pr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=pr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Gz(e,t,r){switch(t.tag){case 3:QS(t),Eo();break;case 5:zS(t);break;case 1:$t(t.type)&&ts(t);break;case 4:Zp(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;$e(os,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?($e(Ce,Ce.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?qS(e,t,r):($e(Ce,Ce.current&1),e=Wn(e,t,r),e!==null?e.sibling:null);$e(Ce,Ce.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return ek(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),$e(Ce,Ce.current),o)break;return null;case 22:case 23:return t.lanes=0,KS(e,t,r)}return Wn(e,t,r)}var tk,up,nk,rk;tk=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};up=function(){};nk=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,Ur(kn.current);var i=null;switch(r){case"input":n=Td(e,n),o=Td(e,o),i=[];break;case"select":n=je({},n,{value:void 0}),o=je({},o,{value:void 0}),i=[];break;case"textarea":n=Dd(e,n),o=Dd(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=ql)}Ld(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var l=n[c];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Yi.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var s=o[c];if(l=n?.[c],o.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Yi.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&we("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};rk=function(e,t,r,o){r!==o&&(t.flags|=4)};function Di(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function Xz(e,t,r){var o=t.pendingProps;switch(Np(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return $t(t.type)&&es(),at(t),null;case 3:return o=t.stateNode,Co(),ze(_t),ze(st),Vp(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rn!==null&&(hp(rn),rn=null))),up(e,t),at(t),null;case 5:Bp(t);var n=Ur(ca.current);if(r=t.type,e!==null&&t.stateNode!=null)nk(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(R(166));return at(t),null}if(e=Ur(kn.current),Rl(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[bn]=t,o[la]=i,e=(t.mode&1)!==0,r){case"dialog":we("cancel",o),we("close",o);break;case"iframe":case"object":case"embed":we("load",o);break;case"video":case"audio":for(n=0;n<Wi.length;n++)we(Wi[n],o);break;case"source":we("error",o);break;case"img":case"image":case"link":we("error",o),we("load",o);break;case"details":we("toggle",o);break;case"input":bx(o,i),we("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},we("invalid",o);break;case"textarea":kx(o,i),we("invalid",o)}Ld(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?o.textContent!==l&&(i.suppressHydrationWarning!==!0&&El(o.textContent,l,e),n=["children",l]):typeof l=="number"&&o.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&El(o.textContent,l,e),n=["children",""+l]):Yi.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&we("scroll",o)}switch(r){case"input":yl(o),Sx(o,i,!0);break;case"textarea":yl(o),_x(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=ql)}o=n,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Cb(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(r,{is:o.is}):(e=a.createElement(r),r==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,r),e[bn]=t,e[la]=o,tk(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ud(r,o),r){case"dialog":we("cancel",e),we("close",e),n=o;break;case"iframe":case"object":case"embed":we("load",e),n=o;break;case"video":case"audio":for(n=0;n<Wi.length;n++)we(Wi[n],e);n=o;break;case"source":we("error",e),n=o;break;case"img":case"image":case"link":we("error",e),we("load",e),n=o;break;case"details":we("toggle",e),n=o;break;case"input":bx(e,o),n=Td(e,o),we("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=je({},o,{value:void 0}),we("invalid",e);break;case"textarea":kx(e,o),n=Dd(e,o),we("invalid",e);break;default:n=o}Ld(r,n),l=n;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?Ob(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Tb(e,s)):i==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&Qi(e,s):typeof s=="number"&&Qi(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Yi.hasOwnProperty(i)?s!=null&&i==="onScroll"&&we("scroll",e):s!=null&&Sp(e,i,s,a))}switch(r){case"input":yl(e),Sx(e,o,!1);break;case"textarea":yl(e),_x(e);break;case"option":o.value!=null&&e.setAttribute("value",""+fr(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?So(e,!!o.multiple,i,!1):o.defaultValue!=null&&So(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=ql)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return at(t),null;case 6:if(e&&t.stateNode!=null)rk(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(R(166));if(r=Ur(ca.current),Ur(kn.current),Rl(t)){if(o=t.stateNode,r=t.memoizedProps,o[bn]=t,(i=o.nodeValue!==r)&&(e=Tt,e!==null))switch(e.tag){case 3:El(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&El(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[bn]=t,t.stateNode=o}return at(t),null;case 13:if(ze(Ce),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&Ct!==null&&(t.mode&1)!==0&&(t.flags&128)===0)SS(),Eo(),t.flags|=98560,i=!1;else if(i=Rl(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[bn]=t}else Eo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),i=!1}else rn!==null&&(hp(rn),rn=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ce.current&1)!==0?He===0&&(He=3):rf())),t.updateQueue!==null&&(t.flags|=4),at(t),null);case 4:return Co(),up(e,t),e===null&&ia(t.stateNode.containerInfo),at(t),null;case 10:return Fp(t.type._context),at(t),null;case 17:return $t(t.type)&&es(),at(t),null;case 19:if(ze(Ce),i=t.memoizedState,i===null)return at(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)Di(i,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=ls(e),a!==null){for(t.flags|=128,Di(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return $e(Ce,Ce.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>jo&&(t.flags|=128,o=!0,Di(i,!1),t.lanes=4194304)}else{if(!o)if(e=ls(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ee)return at(t),null}else 2*Ae()-i.renderingStartTime>jo&&r!==1073741824&&(t.flags|=128,o=!0,Di(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,r=Ce.current,$e(Ce,o?r&1|2:r&1),t):(at(t),null);case 22:case 23:return nf(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Rt&1073741824)!==0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Kz(e,t){switch(Np(t),t.tag){case 1:return $t(t.type)&&es(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Co(),ze(_t),ze(st),Vp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Bp(t),null;case 13:if(ze(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ze(Ce),null;case 4:return Co(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nf(),null;case 24:return null;default:return null}}var jl=!1,lt=!1,Yz=typeof WeakSet=="function"?WeakSet:Set,B=null;function xo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Ne(e,t,o)}else r.current=null}function dp(e,t,r){try{r()}catch(o){Ne(e,t,o)}}var fb=!1;function Qz(e,t){if(Gd=Kl,e=sS(),Op(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var g;p!==r||n!==0&&p.nodeType!==3||(l=a+n),p!==i||o!==0&&p.nodeType!==3||(s=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(g=p.firstChild)!==null;)f=p,p=g;for(;;){if(p===e)break t;if(f===r&&++c===n&&(l=a),f===i&&++d===o&&(s=a),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xd={focusedElem:e,selectionRange:r},Kl=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var x=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,w=x.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:tn(t.type,b),w);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){Ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return x=fb,fb=!1,x}function Gi(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&dp(t,r,i)}n=n.next}while(n!==o)}}function _s(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function pp(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function ok(e){var t=e.alternate;t!==null&&(e.alternate=null,ok(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bn],delete t[la],delete t[Qd],delete t[Oz],delete t[Dz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ik(e){return e.tag===5||e.tag===3||e.tag===4}function mb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ik(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fp(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ql));else if(o!==4&&(e=e.child,e!==null))for(fp(e,t,r),e=e.sibling;e!==null;)fp(e,t,r),e=e.sibling}function mp(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(mp(e,t,r),e=e.sibling;e!==null;)mp(e,t,r),e=e.sibling}var qe=null,nn=!1;function Qn(e,t,r){for(r=r.child;r!==null;)ak(e,t,r),r=r.sibling}function ak(e,t,r){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(gs,r)}catch{}switch(r.tag){case 5:lt||xo(r,t);case 6:var o=qe,n=nn;qe=null,Qn(e,t,r),qe=o,nn=n,qe!==null&&(nn?(e=qe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):qe.removeChild(r.stateNode));break;case 18:qe!==null&&(nn?(e=qe,r=r.stateNode,e.nodeType===8?yd(e.parentNode,r):e.nodeType===1&&yd(e,r),na(e)):yd(qe,r.stateNode));break;case 4:o=qe,n=nn,qe=r.stateNode.containerInfo,nn=!0,Qn(e,t,r),qe=o,nn=n;break;case 0:case 11:case 14:case 15:if(!lt&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&dp(r,t,a),n=n.next}while(n!==o)}Qn(e,t,r);break;case 1:if(!lt&&(xo(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(l){Ne(r,t,l)}Qn(e,t,r);break;case 21:Qn(e,t,r);break;case 22:r.mode&1?(lt=(o=lt)||r.memoizedState!==null,Qn(e,t,r),lt=o):Qn(e,t,r);break;default:Qn(e,t,r)}}function gb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Yz),t.forEach(function(o){var n=lI.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function en(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:qe=l.stateNode,nn=!1;break e;case 3:qe=l.stateNode.containerInfo,nn=!0;break e;case 4:qe=l.stateNode.containerInfo,nn=!0;break e}l=l.return}if(qe===null)throw Error(R(160));ak(i,a,n),qe=null,nn=!1;var s=n.alternate;s!==null&&(s.return=null),n.return=null}catch(c){Ne(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lk(t,e),t=t.sibling}function lk(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),hn(e),o&4){try{Gi(3,e,e.return),_s(3,e)}catch(b){Ne(e,e.return,b)}try{Gi(5,e,e.return)}catch(b){Ne(e,e.return,b)}}break;case 1:en(t,e),hn(e),o&512&&r!==null&&xo(r,r.return);break;case 5:if(en(t,e),hn(e),o&512&&r!==null&&xo(r,r.return),e.flags&32){var n=e.stateNode;try{Qi(n,"")}catch(b){Ne(e,e.return,b)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Eb(n,i),Ud(l,a);var c=Ud(l,i);for(a=0;a<s.length;a+=2){var d=s[a],p=s[a+1];d==="style"?Ob(n,p):d==="dangerouslySetInnerHTML"?Tb(n,p):d==="children"?Qi(n,p):Sp(n,d,p,c)}switch(l){case"input":jd(n,i);break;case"textarea":Rb(n,i);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?So(n,!!i.multiple,g,!1):f!==!!i.multiple&&(i.defaultValue!=null?So(n,!!i.multiple,i.defaultValue,!0):So(n,!!i.multiple,i.multiple?[]:"",!1))}n[la]=i}catch(b){Ne(e,e.return,b)}}break;case 6:if(en(t,e),hn(e),o&4){if(e.stateNode===null)throw Error(R(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(b){Ne(e,e.return,b)}}break;case 3:if(en(t,e),hn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{na(t.containerInfo)}catch(b){Ne(e,e.return,b)}break;case 4:en(t,e),hn(e);break;case 13:en(t,e),hn(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(ef=Ae())),o&4&&gb(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(lt=(c=lt)||d,en(t,e),lt=c):en(t,e),hn(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&(e.mode&1)!==0)for(B=e,d=e.child;d!==null;){for(p=B=d;B!==null;){switch(f=B,g=f.child,f.tag){case 0:case 11:case 14:case 15:Gi(4,f,f.return);break;case 1:xo(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){o=f,r=f.return;try{t=o,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){Ne(o,r,b)}}break;case 5:xo(f,f.return);break;case 22:if(f.memoizedState!==null){yb(p);continue}}g!==null?(g.return=f,B=g):yb(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{n=p.stateNode,c?(i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=p.stateNode,s=p.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=jb("display",a))}catch(b){Ne(e,e.return,b)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(b){Ne(e,e.return,b)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:en(t,e),hn(e),o&4&&gb(e);break;case 21:break;default:en(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(ik(r)){var o=r;break e}r=r.return}throw Error(R(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(Qi(n,""),o.flags&=-33);var i=mb(e);mp(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,l=mb(e);fp(e,l,a);break;default:throw Error(R(161))}}catch(s){Ne(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qz(e,t,r){B=e,sk(e,t,r)}function sk(e,t,r){for(var o=(e.mode&1)!==0;B!==null;){var n=B,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||jl;if(!a){var l=n.alternate,s=l!==null&&l.memoizedState!==null||lt;l=jl;var c=lt;if(jl=a,(lt=s)&&!c)for(B=n;B!==null;)a=B,s=a.child,a.tag===22&&a.memoizedState!==null?hb(n):s!==null?(s.return=a,B=s):hb(n);for(;i!==null;)B=i,sk(i,t,r),i=i.sibling;B=n,jl=l,lt=c}vb(e,t,r)}else(n.subtreeFlags&8772)!==0&&i!==null?(i.return=n,B=i):vb(e,t,r)}}function vb(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:lt||_s(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!lt)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:tn(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&eb(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}eb(t,a,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&na(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}lt||t.flags&512&&pp(t)}catch(f){Ne(t,t.return,f)}}if(t===e){B=null;break}if(r=t.sibling,r!==null){r.return=t.return,B=r;break}B=t.return}}function yb(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var r=t.sibling;if(r!==null){r.return=t.return,B=r;break}B=t.return}}function hb(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{_s(4,t)}catch(s){Ne(t,r,s)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(s){Ne(t,n,s)}}var i=t.return;try{pp(t)}catch(s){Ne(t,i,s)}break;case 5:var a=t.return;try{pp(t)}catch(s){Ne(t,a,s)}}}catch(s){Ne(t,t.return,s)}if(t===e){B=null;break}var l=t.sibling;if(l!==null){l.return=t.return,B=l;break}B=t.return}}var eI=Math.ceil,us=Mn.ReactCurrentDispatcher,Qp=Mn.ReactCurrentOwner,Jt=Mn.ReactCurrentBatchConfig,de=0,Ye=null,Fe=null,et=0,Rt=0,bo=vr(0),He=0,fa=null,Br=0,$s=0,qp=0,Xi=null,St=null,ef=0,jo=1/0,jn=null,ds=!1,gp=null,ur=null,Ol=!1,or=null,ps=0,Ki=0,vp=null,Ml=-1,Zl=0;function mt(){return(de&6)!==0?Ae():Ml!==-1?Ml:Ml=Ae()}function dr(e){return(e.mode&1)===0?1:(de&2)!==0&&et!==0?et&-et:Lz.transition!==null?(Zl===0&&(Zl=Hb()),Zl):(e=ge,e!==0||(e=window.event,e=e===void 0?16:qb(e.type)),e)}function an(e,t,r,o){if(50<Ki)throw Ki=0,vp=null,Error(R(185));ma(e,r,o),((de&2)===0||e!==Ye)&&(e===Ye&&((de&2)===0&&($s|=r),He===4&&nr(e,et)),wt(e,o),r===1&&de===0&&(t.mode&1)===0&&(jo=Ae()+500,bs&&yr()))}function wt(e,t){var r=e.callbackNode;A1(e,t);var o=Xl(e,e===Ye?et:0);if(o===0)r!==null&&zx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&zx(r),t===1)e.tag===0?Nz(xb.bind(null,e)):hS(xb.bind(null,e)),Tz(function(){(de&6)===0&&yr()}),r=null;else{switch(Jb(o)){case 1:r=zp;break;case 4:r=Bb;break;case 16:r=Gl;break;case 536870912:r=Vb;break;default:r=Gl}r=vk(r,ck.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ck(e,t){if(Ml=-1,Zl=0,(de&6)!==0)throw Error(R(327));var r=e.callbackNode;if(zo()&&e.callbackNode!==r)return null;var o=Xl(e,e===Ye?et:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=fs(e,o);else{t=o;var n=de;de|=2;var i=dk();(Ye!==e||et!==t)&&(jn=null,jo=Ae()+500,Ar(e,t));do try{rI();break}catch(l){uk(e,l)}while(!0);Ap(),us.current=i,de=n,Fe!==null?t=0:(Ye=null,et=0,t=He)}if(t!==0){if(t===2&&(n=Zd(e),n!==0&&(o=n,t=yp(e,n))),t===1)throw r=fa,Ar(e,0),nr(e,o),wt(e,Ae()),r;if(t===6)nr(e,o);else{if(n=e.current.alternate,(o&30)===0&&!tI(n)&&(t=fs(e,o),t===2&&(i=Zd(e),i!==0&&(o=i,t=yp(e,i))),t===1))throw r=fa,Ar(e,0),nr(e,o),wt(e,Ae()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(R(345));case 2:Dr(e,St,jn);break;case 3:if(nr(e,o),(o&130023424)===o&&(t=ef+500-Ae(),10<t)){if(Xl(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){mt(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Yd(Dr.bind(null,e,St,jn),t);break}Dr(e,St,jn);break;case 4:if(nr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-on(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=Ae()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*eI(o/1960))-o,10<o){e.timeoutHandle=Yd(Dr.bind(null,e,St,jn),o);break}Dr(e,St,jn);break;case 5:Dr(e,St,jn);break;default:throw Error(R(329))}}}return wt(e,Ae()),e.callbackNode===r?ck.bind(null,e):null}function yp(e,t){var r=Xi;return e.current.memoizedState.isDehydrated&&(Ar(e,t).flags|=256),e=fs(e,t),e!==2&&(t=St,St=r,t!==null&&hp(t)),e}function hp(e){St===null?St=e:St.push.apply(St,e)}function tI(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!ln(i(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nr(e,t){for(t&=~qp,t&=~$s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-on(t),o=1<<r;e[r]=-1,t&=~o}}function xb(e){if((de&6)!==0)throw Error(R(327));zo();var t=Xl(e,0);if((t&1)===0)return wt(e,Ae()),null;var r=fs(e,t);if(e.tag!==0&&r===2){var o=Zd(e);o!==0&&(t=o,r=yp(e,o))}if(r===1)throw r=fa,Ar(e,0),nr(e,t),wt(e,Ae()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dr(e,St,jn),wt(e,Ae()),null}function tf(e,t){var r=de;de|=1;try{return e(t)}finally{de=r,de===0&&(jo=Ae()+500,bs&&yr())}}function Vr(e){or!==null&&or.tag===0&&(de&6)===0&&zo();var t=de;de|=1;var r=Jt.transition,o=ge;try{if(Jt.transition=null,ge=1,e)return e()}finally{ge=o,Jt.transition=r,de=t,(de&6)===0&&yr()}}function nf(){Rt=bo.current,ze(bo)}function Ar(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Cz(r)),Fe!==null)for(r=Fe.return;r!==null;){var o=r;switch(Np(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&es();break;case 3:Co(),ze(_t),ze(st),Vp();break;case 5:Bp(o);break;case 4:Co();break;case 13:ze(Ce);break;case 19:ze(Ce);break;case 10:Fp(o.type._context);break;case 22:case 23:nf()}r=r.return}if(Ye=e,Fe=e=pr(e.current,null),et=Rt=t,He=0,fa=null,qp=$s=Br=0,St=Xi=null,Lr!==null){for(t=0;t<Lr.length;t++)if(r=Lr[t],o=r.interleaved,o!==null){r.interleaved=null;var n=o.next,i=r.pending;if(i!==null){var a=i.next;i.next=n,o.next=a}r.pending=o}Lr=null}return e}function uk(e,t){do{var r=Fe;try{if(Ap(),Al.current=cs,ss){for(var o=Te.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}ss=!1}if(Zr=0,Ke=Ve=Te=null,Ji=!1,ua=0,Qp.current=null,r===null||r.return===null){He=1,fa=t,Fe=null;break}e:{var i=e,a=r.return,l=r,s=t;if(t=et,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,d=l,p=d.tag;if((d.mode&1)===0&&(p===0||p===11||p===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=ab(a);if(g!==null){g.flags&=-257,lb(g,a,l,i,t),g.mode&1&&ib(i,c,t),t=g,s=c;var x=t.updateQueue;if(x===null){var b=new Set;b.add(s),t.updateQueue=b}else x.add(s);break e}else{if((t&1)===0){ib(i,c,t),rf();break e}s=Error(R(426))}}else if(Ee&&l.mode&1){var w=ab(a);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),lb(w,a,l,i,t),Lp(To(s,l));break e}}i=s=To(s,l),He!==4&&(He=2),Xi===null?Xi=[i]:Xi.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=JS(i,s,t);qx(i,v);break e;case 1:l=s;var m=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ur===null||!ur.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=GS(i,l,t);qx(i,S);break e}}i=i.return}while(i!==null)}fk(r)}catch(_){t=_,Fe===r&&r!==null&&(Fe=r=r.return);continue}break}while(!0)}function dk(){var e=us.current;return us.current=cs,e===null?cs:e}function rf(){(He===0||He===3||He===2)&&(He=4),Ye===null||(Br&268435455)===0&&($s&268435455)===0||nr(Ye,et)}function fs(e,t){var r=de;de|=2;var o=dk();(Ye!==e||et!==t)&&(jn=null,Ar(e,t));do try{nI();break}catch(n){uk(e,n)}while(!0);if(Ap(),de=r,us.current=o,Fe!==null)throw Error(R(261));return Ye=null,et=0,He}function nI(){for(;Fe!==null;)pk(Fe)}function rI(){for(;Fe!==null&&!R1();)pk(Fe)}function pk(e){var t=gk(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?fk(e):Fe=t,Qp.current=null}function fk(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Xz(r,t,Rt),r!==null){Fe=r;return}}else{if(r=Kz(r,t),r!==null){r.flags&=32767,Fe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{He=6,Fe=null;return}}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);He===0&&(He=5)}function Dr(e,t,r){var o=ge,n=Jt.transition;try{Jt.transition=null,ge=1,oI(e,t,r,o)}finally{Jt.transition=n,ge=o}return null}function oI(e,t,r,o){do zo();while(or!==null);if((de&6)!==0)throw Error(R(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(F1(e,i),e===Ye&&(Fe=Ye=null,et=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ol||(Ol=!0,vk(Gl,function(){return zo(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Jt.transition,Jt.transition=null;var a=ge;ge=1;var l=de;de|=4,Qp.current=null,Qz(e,r),lk(r,e),zz(Xd),Kl=!!Gd,Xd=Gd=null,e.current=r,qz(r,e,n),C1(),de=l,ge=a,Jt.transition=i}else e.current=r;if(Ol&&(Ol=!1,or=e,ps=n),i=e.pendingLanes,i===0&&(ur=null),O1(r.stateNode,o),wt(e,Ae()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],o(n.value,{componentStack:n.stack,digest:n.digest});if(ds)throw ds=!1,e=gp,gp=null,e;return(ps&1)!==0&&e.tag!==0&&zo(),i=e.pendingLanes,(i&1)!==0?e===vp?Ki++:(Ki=0,vp=e):Ki=0,yr(),null}function zo(){if(or!==null){var e=Jb(ps),t=Jt.transition,r=ge;try{if(Jt.transition=null,ge=16>e?16:e,or===null)var o=!1;else{if(e=or,or=null,ps=0,(de&6)!==0)throw Error(R(331));var n=de;for(de|=4,B=e.current;B!==null;){var i=B,a=i.child;if((B.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(B=c;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:Gi(8,d,i)}var p=d.child;if(p!==null)p.return=d,B=p;else for(;B!==null;){d=B;var f=d.sibling,g=d.return;if(ok(d),d===c){B=null;break}if(f!==null){f.return=g,B=f;break}B=g}}}var x=i.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}B=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,B=a;else e:for(;B!==null;){if(i=B,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Gi(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,B=v;break e}B=i.return}}var m=e.current;for(B=m;B!==null;){a=B;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,B=y;else e:for(a=m;B!==null;){if(l=B,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:_s(9,l)}}catch(_){Ne(l,l.return,_)}if(l===a){B=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,B=S;break e}B=l.return}}if(de=n,yr(),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(gs,e)}catch{}o=!0}return o}finally{ge=r,Jt.transition=t}}return!1}function bb(e,t,r){t=To(r,t),t=JS(e,t,1),e=cr(e,t,1),t=mt(),e!==null&&(ma(e,1,t),wt(e,t))}function Ne(e,t,r){if(e.tag===3)bb(e,e,r);else for(;t!==null;){if(t.tag===3){bb(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ur===null||!ur.has(o))){e=To(r,e),e=GS(t,e,1),t=cr(t,e,1),e=mt(),t!==null&&(ma(t,1,e),wt(t,e));break}}t=t.return}}function iI(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&r,Ye===e&&(et&r)===r&&(He===4||He===3&&(et&130023424)===et&&500>Ae()-ef?Ar(e,0):qp|=r),wt(e,t)}function mk(e,t){t===0&&((e.mode&1)===0?t=1:(t=bl,bl<<=1,(bl&130023424)===0&&(bl=4194304)));var r=mt();e=Fn(e,t),e!==null&&(ma(e,t,r),wt(e,r))}function aI(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),mk(e,r)}function lI(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(R(314))}o!==null&&o.delete(t),mk(e,r)}var gk;gk=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)kt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return kt=!1,Gz(e,t,r);kt=(e.flags&131072)!==0}else kt=!1,Ee&&(t.flags&1048576)!==0&&xS(t,rs,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Wl(e,t),e=t.pendingProps;var n=Po(t,st.current);wo(t,r),n=Jp(null,t,o,e,n,r);var i=Gp();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(o)?(i=!0,ts(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Mp(t),n.updater=ks,t.stateNode=n,n._reactInternals=t,op(t,o,e,r),t=lp(null,t,o,!0,i,r)):(t.tag=0,Ee&&i&&Dp(t),ft(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=cI(o),e=tn(o,e),n){case 0:t=ap(null,t,o,e,r);break e;case 1:t=ub(null,t,o,e,r);break e;case 11:t=sb(null,t,o,e,r);break e;case 14:t=cb(null,t,o,tn(o.type,e),r);break e}throw Error(R(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),ap(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),ub(e,t,o,n,r);case 3:e:{if(QS(t),e===null)throw Error(R(387));o=t.pendingProps,i=t.memoizedState,n=i.element,wS(e,t),as(t,o,null,r);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=To(Error(R(423)),t),t=db(e,t,o,r,n);break e}else if(o!==n){n=To(Error(R(424)),t),t=db(e,t,o,r,n);break e}else for(Ct=sr(t.stateNode.containerInfo.firstChild),Tt=t,Ee=!0,rn=null,r=_S(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Eo(),o===n){t=Wn(e,t,r);break e}ft(e,t,o,r)}t=t.child}return t;case 5:return zS(t),e===null&&tp(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,Kd(o,n)?a=null:i!==null&&Kd(o,i)&&(t.flags|=32),YS(e,t),ft(e,t,a,r),t.child;case 6:return e===null&&tp(t),null;case 13:return qS(e,t,r);case 4:return Zp(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ro(t,null,o,r):ft(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),sb(e,t,o,n,r);case 7:return ft(e,t,t.pendingProps,r),t.child;case 8:return ft(e,t,t.pendingProps.children,r),t.child;case 12:return ft(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,i=t.memoizedProps,a=n.value,$e(os,o._currentValue),o._currentValue=a,i!==null)if(ln(i.value,a)){if(i.children===n.children&&!_t.current){t=Wn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===o){if(i.tag===1){s=Ln(-1,r&-r),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),np(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(R(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),np(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ft(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,wo(t,r),n=Gt(n),o=o(n),t.flags|=1,ft(e,t,o,r),t.child;case 14:return o=t.type,n=tn(o,t.pendingProps),n=tn(o.type,n),cb(e,t,o,n,r);case 15:return XS(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),Wl(e,t),t.tag=1,$t(o)?(e=!0,ts(t)):e=!1,wo(t,r),HS(t,o,n),op(t,o,n,r),lp(null,t,o,!0,e,r);case 19:return ek(e,t,r);case 22:return KS(e,t,r)}throw Error(R(156,t.tag))};function vk(e,t){return Zb(e,t)}function sI(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,r,o){return new sI(e,t,r,o)}function of(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cI(e){if(typeof e=="function")return of(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_p)return 11;if(e===$p)return 14}return 2}function pr(e,t){var r=e.alternate;return r===null?(r=Ht(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Bl(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")of(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case co:return Fr(r.children,n,i,t);case kp:a=8,n|=8;break;case Pd:return e=Ht(12,r,t,n|2),e.elementType=Pd,e.lanes=i,e;case Ed:return e=Ht(13,r,t,n),e.elementType=Ed,e.lanes=i,e;case Rd:return e=Ht(19,r,t,n),e.elementType=Rd,e.lanes=i,e;case zb:return ws(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $b:a=10;break e;case wb:a=9;break e;case _p:a=11;break e;case $p:a=14;break e;case qn:a=16,o=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Ht(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function Fr(e,t,r,o){return e=Ht(7,e,o,t),e.lanes=r,e}function ws(e,t,r,o){return e=Ht(22,e,o,t),e.elementType=zb,e.lanes=r,e.stateNode={isHidden:!1},e}function wd(e,t,r){return e=Ht(6,e,null,t),e.lanes=r,e}function zd(e,t,r){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uI(e,t,r,o,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cd(0),this.expirationTimes=cd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cd(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function af(e,t,r,o,n,i,a,l,s){return e=new uI(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mp(i),e}function dI(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:so,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function yk(e){if(!e)return mr;e=e._reactInternals;e:{if(Jr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if($t(r))return yS(e,r,t)}return t}function hk(e,t,r,o,n,i,a,l,s){return e=af(r,o,!0,e,n,i,a,l,s),e.context=yk(null),r=e.current,o=mt(),n=dr(r),i=Ln(o,n),i.callback=t??null,cr(r,i,n),e.current.lanes=n,ma(e,n,o),wt(e,o),e}function zs(e,t,r,o){var n=t.current,i=mt(),a=dr(n);return r=yk(r),t.context===null?t.context=r:t.pendingContext=r,t=Ln(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=cr(n,t,a),e!==null&&(an(e,n,a,i),Ul(e,n,a)),a}function ms(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Sb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function lf(e,t){Sb(e,t),(e=e.alternate)&&Sb(e,t)}function pI(){return null}var xk=typeof reportError=="function"?reportError:function(e){console.error(e)};function sf(e){this._internalRoot=e}Is.prototype.render=sf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));zs(e,t,null,null)};Is.prototype.unmount=sf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vr(function(){zs(null,e,null,null)}),t[An]=null}};function Is(e){this._internalRoot=e}Is.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kb();e={blockedOn:null,target:e,priority:t};for(var r=0;r<tr.length&&t!==0&&t<tr[r].priority;r++);tr.splice(r,0,e),r===0&&Qb(e)}};function cf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ps(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kb(){}function fI(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=ms(a);i.call(c)}}var a=hk(t,o,e,0,null,!1,!1,"",kb);return e._reactRootContainer=a,e[An]=a.current,ia(e.nodeType===8?e.parentNode:e),Vr(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var l=o;o=function(){var c=ms(s);l.call(c)}}var s=af(e,0,!1,null,null,!1,!1,"",kb);return e._reactRootContainer=s,e[An]=s.current,ia(e.nodeType===8?e.parentNode:e),Vr(function(){zs(t,s,r,o)}),s}function Es(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var l=n;n=function(){var s=ms(a);l.call(s)}}zs(t,a,e,n)}else a=fI(r,t,e,n,o);return ms(a)}Gb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Fi(t.pendingLanes);r!==0&&(Ip(t,r|1),wt(t,Ae()),(de&6)===0&&(jo=Ae()+500,yr()))}break;case 13:Vr(function(){var o=Fn(e,1);if(o!==null){var n=mt();an(o,e,1,n)}}),lf(e,1)}};Pp=function(e){if(e.tag===13){var t=Fn(e,134217728);if(t!==null){var r=mt();an(t,e,134217728,r)}lf(e,134217728)}};Xb=function(e){if(e.tag===13){var t=dr(e),r=Fn(e,t);if(r!==null){var o=mt();an(r,e,t,o)}lf(e,t)}};Kb=function(){return ge};Yb=function(e,t){var r=ge;try{return ge=e,t()}finally{ge=r}};Fd=function(e,t,r){switch(t){case"input":if(jd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=xs(o);if(!n)throw Error(R(90));Pb(o),jd(o,n)}}}break;case"textarea":Rb(e,r);break;case"select":t=r.value,t!=null&&So(e,!!r.multiple,t,!1)}};Lb=tf;Ub=Vr;var mI={usingClientEntryPoint:!1,Events:[va,mo,xs,Db,Nb,tf]},Ni={findFiberByHostInstance:Nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gI={bundleType:Ni.bundleType,version:Ni.version,rendererPackageName:Ni.rendererPackageName,rendererConfig:Ni.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Wb(e),e===null?null:e.stateNode},findFiberByHostInstance:Ni.findFiberByHostInstance||pI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Li=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Li.isDisabled&&Li.supportsFiber))try{gs=Li.inject(gI),Sn=Li}catch{}var Li;Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mI;Dt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cf(t))throw Error(R(200));return dI(e,t,null,r)};Dt.createRoot=function(e,t){if(!cf(e))throw Error(R(299));var r=!1,o="",n=xk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=af(e,1,!1,null,null,r,!1,o,n),e[An]=t.current,ia(e.nodeType===8?e.parentNode:e),new sf(t)};Dt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Wb(t),e=e===null?null:e.stateNode,e};Dt.flushSync=function(e){return Vr(e)};Dt.hydrate=function(e,t,r){if(!Ps(t))throw Error(R(200));return Es(null,e,t,!0,r)};Dt.hydrateRoot=function(e,t,r){if(!cf(e))throw Error(R(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=xk;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=hk(t,null,e,1,r??null,n,!1,i,a),e[An]=t.current,ia(e),o)for(e=0;e<o.length;e++)r=o[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new Is(t)};Dt.render=function(e,t,r){if(!Ps(t))throw Error(R(200));return Es(null,e,t,!1,r)};Dt.unmountComponentAtNode=function(e){if(!Ps(e))throw Error(R(40));return e._reactRootContainer?(Vr(function(){Es(null,null,e,!1,function(){e._reactRootContainer=null,e[An]=null})}),!0):!1};Dt.unstable_batchedUpdates=tf;Dt.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ps(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Es(e,t,r,!1,o)};Dt.version="18.3.1-next-f1338f8080-20240426"});var _k=Cn((Fj,kk)=>{"use strict";function Sk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sk)}catch(e){console.error(e)}}Sk(),kk.exports=bk()});var wk=Cn(uf=>{"use strict";var $k=_k();uf.createRoot=$k.createRoot,uf.hydrateRoot=$k.hydrateRoot;var Wj});var Ik=Cn(Rs=>{"use strict";var vI=ke(),yI=Symbol.for("react.element"),hI=Symbol.for("react.fragment"),xI=Object.prototype.hasOwnProperty,bI=vI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,SI={key:!0,ref:!0,__self:!0,__source:!0};function zk(e,t,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)xI.call(t,o)&&!SI.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:yI,type:e,key:i,ref:a,props:n,_owner:bI.current}}Rs.Fragment=hI;Rs.jsx=zk;Rs.jsxs=zk});var K=Cn((Bj,Pk)=>{"use strict";Pk.exports=Ik()});var Vw=A(ke(),1),Hw=A(wk(),1);var Ge=A(ke(),1);var Ek=A(ke(),1),pe=A(K(),1);function F({children:e,variant:t="primary",size:r="md",disabled:o=!1,iconLeft:n,iconRight:i,onClick:a,type:l="button",style:s,...c}){let d={sm:{height:32,padding:"0 12px",font:"var(--text-sm)",gap:6},md:{height:40,padding:"0 16px",font:"var(--text-sm)",gap:8},lg:{height:48,padding:"0 22px",font:"var(--text-base)",gap:8}},p=d[r]??d.md,f={primary:{background:"var(--honey)",color:"var(--honey-on)",border:"1px solid transparent"},secondary:{background:"var(--bg-elevated)",color:"var(--text-primary)",border:"1px solid var(--border-strong)"},ghost:{background:"transparent",color:"var(--text-secondary)",border:"1px solid transparent"},pollinate:{background:"var(--pollinate)",color:"#FFFFFF",border:"1px solid transparent"},danger:{background:"var(--severity-critical-bg)",color:"var(--severity-critical)",border:"1px solid var(--severity-critical)"}},g=f[t]??f.primary,x={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:p.gap,height:p.height,padding:p.padding,fontFamily:"var(--font-sans)",fontSize:p.font,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,borderRadius:"var(--radius-md)",cursor:o?"not-allowed":"pointer",opacity:o?.45:1,transition:"background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out)",whiteSpace:"nowrap",userSelect:"none",...g,...s},b={primary:"var(--honey-hover)",secondary:"var(--bg-subtle)",ghost:"var(--bg-elevated)",pollinate:"var(--pollinate-hover)",danger:"var(--severity-critical-bg)"};return(0,pe.jsxs)("button",{type:l,disabled:o,onClick:a,style:x,onMouseEnter:S=>{o||(S.currentTarget.style.background=b[t]??b.primary)},onMouseLeave:S=>{o||(S.currentTarget.style.background=String(g.background))},onMouseDown:S=>{o||(S.currentTarget.style.transform="translateY(1px)")},onMouseUp:S=>{o||(S.currentTarget.style.transform="none")},...c,children:[n,e,i]})}function q({children:e,tone:t="neutral",mono:r=!1,dot:o=!1,style:n}){let i={neutral:{bg:"var(--bg-subtle)",fg:"var(--text-secondary)",bd:"var(--border-strong)"},honey:{bg:"var(--honey-subtle)",fg:"var(--honey)",bd:"var(--honey-border)"},verified:{bg:"var(--severity-success-bg)",fg:"var(--verified)",bd:"var(--verified)"},pollinate:{bg:"var(--pollinate-subtle)",fg:"var(--pollinate)",bd:"var(--pollinate-border)"},info:{bg:"var(--severity-info-bg)",fg:"var(--severity-info)",bd:"var(--severity-info)"},warning:{bg:"var(--severity-warning-bg)",fg:"var(--severity-warning)",bd:"var(--severity-warning)"},critical:{bg:"var(--severity-critical-bg)",fg:"var(--severity-critical)",bd:"var(--severity-critical)"}},a=i[t]??i.neutral;return(0,pe.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,height:22,padding:"0 9px",background:a.bg,color:a.fg,border:`1px solid ${a.bd}`,borderRadius:"var(--radius-full)",fontFamily:r?"var(--font-mono)":"var(--font-sans)",fontSize:"var(--text-xs)",fontWeight:600,letterSpacing:r?"0.02em":"0",lineHeight:1,whiteSpace:"nowrap",...n},children:[o&&(0,pe.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:a.fg,flex:"none"}}),e]})}function sn({value:e,defaultValue:t,onChange:r,placeholder:o,mono:n=!1,size:i="md",disabled:a=!1,iconLeft:l,type:s="text",style:c,...d}){let[p,f]=Ek.default.useState(!1),x={sm:32,md:40,lg:48}[i]??40;return(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,height:x,padding:"0 12px",background:"var(--bg-surface)",border:`1px solid ${p?"var(--honey)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",boxShadow:p?"0 0 0 3px var(--honey-subtle)":"none",transition:"border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out)",opacity:a?.5:1,...c},children:[l&&(0,pe.jsx)("span",{style:{display:"inline-flex",color:"var(--text-tertiary)",flex:"none"},children:l}),(0,pe.jsx)("input",{type:s,value:e,defaultValue:t,onChange:r,placeholder:o,disabled:a,onFocus:()=>f(!0),onBlur:()=>f(!1),style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",color:"var(--text-primary)",fontFamily:n?"var(--font-mono)":"var(--font-sans)",fontSize:n?"var(--text-sm)":"var(--text-base)",letterSpacing:n?"0.01em":"0"},...d})]})}function Kt({label:e,value:t,unit:r,delta:o,accent:n="honey",style:i}){let a={honey:"var(--honey)",pollinate:"var(--pollinate)",verified:"var(--verified)",neutral:"var(--text-primary)"},l=a[n]??a.honey,s=typeof o=="number"?o>=0:null;return(0,pe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",...i},children:[(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:l,letterSpacing:"-0.01em"},children:t}),r&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",color:"var(--text-tertiary)"},children:r})]}),o!=null&&(0,pe.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:s?"var(--verified)":"var(--severity-critical)"},children:[s?"\u25B2":"\u25BC"," ",Math.abs(o)," this week"]})]})}function Cs({memoryKey:e,snippet:t,source:r,score:o,scope:n="personal",verified:i=!1,pollinating:a=!1,kind:l,secondary:s=!1,style:c}){let d=a?"var(--pollinate)":i?"var(--verified)":"var(--honey)";return(0,pe.jsxs)("div",{style:{display:"flex",gap:14,padding:16,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",transition:"border-color var(--dur-base) var(--ease-out)",opacity:s?.72:1,...c},children:[(0,pe.jsx)("div",{style:{flex:"none",paddingTop:2},children:(0,pe.jsx)("div",{style:{width:34,height:38,clipPath:"polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)",background:d,opacity:a?.9:1,animation:a?"hc-pollinate-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"}})}),(0,pe.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:7},children:[(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",fontWeight:600,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e}),i&&!a&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)",flex:"none"},children:"\u2713 verified"}),(s||l==="session")&&!a&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",flex:"none"},children:"session"}),a&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--pollinate)",flex:"none"},children:"pollinating\u2026"})]}),(0,pe.jsx)("div",{style:{fontSize:"var(--text-sm)",lineHeight:"20px",color:"var(--text-primary)"},children:t}),(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:1},children:[r&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:220},children:r}),(0,pe.jsx)("span",{style:{flex:1}}),(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:n}),typeof o=="number"&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,fontWeight:600,color:"var(--text-secondary)"},children:o.toFixed(2)})]})]}),(0,pe.jsx)("style",{children:"@keyframes hc-pollinate-pulse { from { opacity: .5 } to { opacity: 1 } }"})]})}var dt=A(ke(),1);var _u=A(ke(),1);var Gr=A(ke(),1);var ha=A(K(),1);function df({wire:e,onBuilt:t}){let[r,o]=Gr.default.useState(!1),[n,i]=Gr.default.useState(!1),a=Gr.default.useRef(!1),l=Gr.default.useRef(!0);Gr.default.useEffect(()=>(l.current=!0,()=>{l.current=!1}),[]);let s=Gr.default.useCallback(async()=>{if(a.current)return;a.current=!0,o(!0),i(!1);let c=!1;try{let d=await e.buildGraph();c=d.built,d.built&&await t()}catch{}finally{a.current=!1,l.current&&(o(!1),i(!c))}},[e,t]);return(0,ha.jsxs)("div",{"data-testid":"build-graph",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[(0,ha.jsx)(F,{variant:"primary",onClick:()=>{s()},disabled:r,"data-testid":"build-graph-button",children:r?"Building\u2026":"Build graph"}),n&&(0,ha.jsx)("span",{"data-testid":"build-graph-error",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Build failed \u2014 the daemon could not build the graph. Try again."})]})}function kI(e,t){let r=new Map,o=e.length,n=Math.ceil(Math.sqrt(o)),i=Math.ceil(o/n),a=Math.max(1,t.width-56),l=Math.max(1,t.height-56),s=n>1?a/(n-1):0,c=i>1?l/(i-1):0;for(let d=0;d<o;d++){let p=e[d];if(p===void 0)continue;let f=d%n,g=Math.floor(d/n);r.set(p.id,{x:n>1?28+f*s:t.width/2,y:i>1?28+g*c:t.height/2})}return r}function Ts(e,t,r){let o=new Map,n=e.length;if(n===0)return o;let i=r.width/2,a=r.height/2;if(n===1){let c=e[0];return c!==void 0&&o.set(c.id,{x:i,y:a}),o}if(n>36)return kI(e,r);let l=Math.max(0,Math.min(i,a)-28),s=n-1;for(let c=0;c<n;c++){let d=e[c];if(d===void 0)continue;if(c===0){o.set(d.id,{x:i,y:a});continue}let p=-Math.PI/2+2*Math.PI*(c-1)/s;o.set(d.id,{x:i+l*Math.cos(p),y:a+l*Math.sin(p)})}return o}function Rk(e,t){let r=new Map,o=new Map,n=new Set,i=new Set,a=[],l=[];for(let s of t){if(s.from===e&&s.to!==e){let c=`${s.kind}\0${s.to}`;n.has(c)||(n.add(c),r.has(s.kind)||(r.set(s.kind,[]),a.push(s.kind)),r.get(s.kind)?.push(s.to))}if(s.to===e&&s.from!==e){let c=`${s.kind}\0${s.from}`;i.has(c)||(i.add(c),o.has(s.kind)||(o.set(s.kind,[]),l.push(s.kind)),o.get(s.kind)?.push(s.from))}}return{outgoing:a.map(s=>({kind:s,ids:r.get(s)??[]})),incoming:l.map(s=>({kind:s,ids:o.get(s)??[]}))}}var u={};Tn(u,{$brand:()=>ff,$input:()=>Og,$output:()=>jg,NEVER:()=>pf,TimePrecision:()=>Ug,ZodAny:()=>Iy,ZodArray:()=>Cy,ZodBase64:()=>iu,ZodBase64URL:()=>au,ZodBigInt:()=>pi,ZodBigIntFormat:()=>cu,ZodBoolean:()=>di,ZodCIDRv4:()=>ru,ZodCIDRv6:()=>ou,ZodCUID:()=>Kc,ZodCUID2:()=>Yc,ZodCatch:()=>qy,ZodCodec:()=>Ka,ZodCustom:()=>Ya,ZodCustomStringFormat:()=>ci,ZodDate:()=>Va,ZodDefault:()=>Jy,ZodDiscriminatedUnion:()=>jy,ZodE164:()=>lu,ZodEmail:()=>Jc,ZodEmoji:()=>Gc,ZodEnum:()=>li,ZodError:()=>qE,ZodExactOptional:()=>By,ZodFile:()=>My,ZodFirstPartyTypeKind:()=>ph,ZodFunction:()=>ch,ZodGUID:()=>Fa,ZodIPv4:()=>tu,ZodIPv6:()=>nu,ZodISODate:()=>Wc,ZodISODateTime:()=>Fc,ZodISODuration:()=>Zc,ZodISOTime:()=>Mc,ZodIntersection:()=>Oy,ZodIssueCode:()=>tR,ZodJWT:()=>su,ZodKSUID:()=>eu,ZodLazy:()=>ah,ZodLiteral:()=>Wy,ZodMAC:()=>by,ZodMap:()=>Ay,ZodNaN:()=>th,ZodNanoID:()=>Xc,ZodNever:()=>Ey,ZodNonOptional:()=>gu,ZodNull:()=>wy,ZodNullable:()=>Hy,ZodNumber:()=>ui,ZodNumberFormat:()=>ro,ZodObject:()=>Ja,ZodOptional:()=>mu,ZodPipe:()=>Xa,ZodPrefault:()=>Xy,ZodPreprocess:()=>nh,ZodPromise:()=>sh,ZodReadonly:()=>rh,ZodRealError:()=>Pt,ZodRecord:()=>ai,ZodSet:()=>Fy,ZodString:()=>si,ZodStringFormat:()=>he,ZodSuccess:()=>Qy,ZodSymbol:()=>_y,ZodTemplateLiteral:()=>ih,ZodTransform:()=>Zy,ZodTuple:()=>Ny,ZodType:()=>ne,ZodULID:()=>Qc,ZodURL:()=>Ba,ZodUUID:()=>zn,ZodUndefined:()=>$y,ZodUnion:()=>Ga,ZodUnknown:()=>Py,ZodVoid:()=>Ry,ZodXID:()=>qc,ZodXor:()=>Ty,_ZodString:()=>Hc,_default:()=>Gy,_function:()=>h0,any:()=>X$,array:()=>Ha,base64:()=>T$,base64url:()=>j$,bigint:()=>B$,boolean:()=>ky,catch:()=>eh,check:()=>x0,cidrv4:()=>R$,cidrv6:()=>C$,clone:()=>vt,codec:()=>m0,coerce:()=>fh,config:()=>Le,core:()=>Vn,cuid:()=>k$,cuid2:()=>_$,custom:()=>b0,date:()=>Y$,decode:()=>fy,decodeAsync:()=>gy,describe:()=>S0,discriminatedUnion:()=>r0,e164:()=>O$,email:()=>p$,emoji:()=>b$,encode:()=>py,encodeAsync:()=>my,endsWith:()=>Ko,enum:()=>pu,exactOptional:()=>Vy,file:()=>u0,flattenError:()=>za,float32:()=>F$,float64:()=>W$,formatError:()=>Ia,fromJSONSchema:()=>P0,function:()=>h0,getErrorMap:()=>rR,globalRegistry:()=>nt,gt:()=>$n,gte:()=>ht,guid:()=>f$,hash:()=>A$,hex:()=>U$,hostname:()=>L$,httpUrl:()=>x$,includes:()=>Go,instanceof:()=>_0,int:()=>Bc,int32:()=>M$,int64:()=>V$,intersection:()=>Dy,invertCodec:()=>g0,ipv4:()=>I$,ipv6:()=>E$,iso:()=>ii,json:()=>w0,jwt:()=>D$,keyof:()=>Q$,ksuid:()=>z$,lazy:()=>lh,length:()=>to,literal:()=>c0,locales:()=>Da,looseObject:()=>t0,looseRecord:()=>i0,lowercase:()=>Ho,lt:()=>_n,lte:()=>Lt,mac:()=>P$,map:()=>a0,maxLength:()=>eo,maxSize:()=>$r,meta:()=>k0,mime:()=>Yo,minLength:()=>Bn,minSize:()=>wn,multipleOf:()=>_r,nan:()=>f0,nanoid:()=>S$,nativeEnum:()=>s0,negative:()=>Rc,never:()=>uu,nonnegative:()=>Tc,nonoptional:()=>Yy,nonpositive:()=>Cc,normalize:()=>Qo,null:()=>zy,nullable:()=>Ma,nullish:()=>d0,number:()=>Sy,object:()=>q$,optional:()=>Wa,overwrite:()=>un,parse:()=>sy,parseAsync:()=>cy,partialRecord:()=>o0,pipe:()=>Vc,positive:()=>Ec,prefault:()=>Ky,preprocess:()=>z0,prettifyError:()=>zf,promise:()=>y0,property:()=>jc,readonly:()=>oh,record:()=>Uy,refine:()=>uh,regex:()=>Vo,regexes:()=>Nt,registry:()=>sc,safeDecode:()=>yy,safeDecodeAsync:()=>xy,safeEncode:()=>vy,safeEncodeAsync:()=>hy,safeParse:()=>uy,safeParseAsync:()=>dy,set:()=>l0,setErrorMap:()=>nR,size:()=>qr,slugify:()=>ni,startsWith:()=>Xo,strictObject:()=>e0,string:()=>Aa,stringFormat:()=>N$,stringbool:()=>$0,success:()=>p0,superRefine:()=>dh,symbol:()=>J$,templateLiteral:()=>v0,toJSONSchema:()=>Lc,toLowerCase:()=>ei,toUpperCase:()=>ti,transform:()=>fu,treeifyError:()=>wf,trim:()=>qo,tuple:()=>Ly,uint32:()=>Z$,uint64:()=>H$,ulid:()=>$$,undefined:()=>G$,union:()=>du,unknown:()=>no,uppercase:()=>Jo,url:()=>h$,util:()=>P,uuid:()=>m$,uuidv4:()=>g$,uuidv6:()=>v$,uuidv7:()=>y$,void:()=>K$,xid:()=>w$,xor:()=>n0});var Vn={};Tn(Vn,{$ZodAny:()=>tg,$ZodArray:()=>ag,$ZodAsyncError:()=>cn,$ZodBase64:()=>Vm,$ZodBase64URL:()=>Hm,$ZodBigInt:()=>ec,$ZodBigIntFormat:()=>Ym,$ZodBoolean:()=>Ca,$ZodCIDRv4:()=>Mm,$ZodCIDRv6:()=>Zm,$ZodCUID:()=>Rm,$ZodCUID2:()=>Cm,$ZodCatch:()=>$g,$ZodCheck:()=>be,$ZodCheckBigIntFormat:()=>am,$ZodCheckEndsWith:()=>hm,$ZodCheckGreaterThan:()=>Gs,$ZodCheckIncludes:()=>vm,$ZodCheckLengthEquals:()=>pm,$ZodCheckLessThan:()=>Js,$ZodCheckLowerCase:()=>mm,$ZodCheckMaxLength:()=>um,$ZodCheckMaxSize:()=>lm,$ZodCheckMimeType:()=>bm,$ZodCheckMinLength:()=>dm,$ZodCheckMinSize:()=>sm,$ZodCheckMultipleOf:()=>om,$ZodCheckNumberFormat:()=>im,$ZodCheckOverwrite:()=>Sm,$ZodCheckProperty:()=>xm,$ZodCheckRegex:()=>fm,$ZodCheckSizeEquals:()=>cm,$ZodCheckStartsWith:()=>ym,$ZodCheckStringFormat:()=>Zo,$ZodCheckUpperCase:()=>gm,$ZodCodec:()=>ja,$ZodCustom:()=>Tg,$ZodCustomStringFormat:()=>Xm,$ZodDate:()=>ig,$ZodDefault:()=>bg,$ZodDiscriminatedUnion:()=>cg,$ZodE164:()=>Jm,$ZodEmail:()=>zm,$ZodEmoji:()=>Pm,$ZodEncodeError:()=>hr,$ZodEnum:()=>mg,$ZodError:()=>wa,$ZodExactOptional:()=>hg,$ZodFile:()=>vg,$ZodFunction:()=>Eg,$ZodGUID:()=>$m,$ZodIPv4:()=>Am,$ZodIPv6:()=>Fm,$ZodISODate:()=>Nm,$ZodISODateTime:()=>Dm,$ZodISODuration:()=>Um,$ZodISOTime:()=>Lm,$ZodIntersection:()=>ug,$ZodJWT:()=>Gm,$ZodKSUID:()=>Om,$ZodLazy:()=>Cg,$ZodLiteral:()=>gg,$ZodMAC:()=>Wm,$ZodMap:()=>pg,$ZodNaN:()=>wg,$ZodNanoID:()=>Em,$ZodNever:()=>rg,$ZodNonOptional:()=>kg,$ZodNull:()=>eg,$ZodNullable:()=>xg,$ZodNumber:()=>qs,$ZodNumberFormat:()=>Km,$ZodObject:()=>l_,$ZodObjectJIT:()=>lg,$ZodOptional:()=>nc,$ZodPipe:()=>rc,$ZodPrefault:()=>Sg,$ZodPreprocess:()=>zg,$ZodPromise:()=>Rg,$ZodReadonly:()=>Ig,$ZodRealError:()=>It,$ZodRecord:()=>dg,$ZodRegistry:()=>lc,$ZodSet:()=>fg,$ZodString:()=>Qr,$ZodStringFormat:()=>ye,$ZodSuccess:()=>_g,$ZodSymbol:()=>Qm,$ZodTemplateLiteral:()=>Pg,$ZodTransform:()=>yg,$ZodTuple:()=>tc,$ZodType:()=>ee,$ZodULID:()=>Tm,$ZodURL:()=>Im,$ZodUUID:()=>wm,$ZodUndefined:()=>qm,$ZodUnion:()=>Ta,$ZodUnknown:()=>ng,$ZodVoid:()=>og,$ZodXID:()=>jm,$ZodXor:()=>sg,$brand:()=>ff,$constructor:()=>h,$input:()=>Og,$output:()=>jg,Doc:()=>Ra,JSONSchema:()=>c$,JSONSchemaGenerator:()=>Uc,NEVER:()=>pf,TimePrecision:()=>Ug,_any:()=>iv,_array:()=>pv,_base64:()=>wc,_base64url:()=>zc,_bigint:()=>Qg,_boolean:()=>Kg,_catch:()=>VE,_check:()=>s$,_cidrv4:()=>_c,_cidrv6:()=>$c,_coercedBigint:()=>qg,_coercedBoolean:()=>Yg,_coercedDate:()=>uv,_coercedNumber:()=>Bg,_coercedString:()=>Ng,_cuid:()=>vc,_cuid2:()=>yc,_custom:()=>mv,_date:()=>cv,_decode:()=>Us,_decodeAsync:()=>Fs,_default:()=>ME,_discriminatedUnion:()=>RE,_e164:()=>Ic,_email:()=>cc,_emoji:()=>mc,_encode:()=>Ls,_encodeAsync:()=>As,_endsWith:()=>Ko,_enum:()=>NE,_file:()=>fv,_float32:()=>Hg,_float64:()=>Jg,_gt:()=>$n,_gte:()=>ht,_guid:()=>Na,_includes:()=>Go,_int:()=>Vg,_int32:()=>Gg,_int64:()=>ev,_intersection:()=>CE,_ipv4:()=>Sc,_ipv6:()=>kc,_isoDate:()=>Fg,_isoDateTime:()=>Ag,_isoDuration:()=>Mg,_isoTime:()=>Wg,_jwt:()=>Pc,_ksuid:()=>bc,_lazy:()=>XE,_length:()=>to,_literal:()=>UE,_lowercase:()=>Ho,_lt:()=>_n,_lte:()=>Lt,_mac:()=>Lg,_map:()=>OE,_max:()=>Lt,_maxLength:()=>eo,_maxSize:()=>$r,_mime:()=>Yo,_min:()=>ht,_minLength:()=>Bn,_minSize:()=>wn,_multipleOf:()=>_r,_nan:()=>dv,_nanoid:()=>gc,_nativeEnum:()=>LE,_negative:()=>Rc,_never:()=>lv,_nonnegative:()=>Tc,_nonoptional:()=>ZE,_nonpositive:()=>Cc,_normalize:()=>Qo,_null:()=>ov,_nullable:()=>WE,_number:()=>Zg,_optional:()=>FE,_overwrite:()=>un,_parse:()=>Ao,_parseAsync:()=>Fo,_pipe:()=>HE,_positive:()=>Ec,_promise:()=>KE,_property:()=>jc,_readonly:()=>JE,_record:()=>jE,_refine:()=>gv,_regex:()=>Vo,_safeDecode:()=>Ms,_safeDecodeAsync:()=>Bs,_safeEncode:()=>Ws,_safeEncodeAsync:()=>Zs,_safeParse:()=>Wo,_safeParseAsync:()=>Mo,_set:()=>DE,_size:()=>qr,_slugify:()=>ni,_startsWith:()=>Xo,_string:()=>Dg,_stringFormat:()=>ri,_stringbool:()=>xv,_success:()=>BE,_superRefine:()=>vv,_symbol:()=>nv,_templateLiteral:()=>GE,_toLowerCase:()=>ei,_toUpperCase:()=>ti,_transform:()=>AE,_trim:()=>qo,_tuple:()=>TE,_uint32:()=>Xg,_uint64:()=>tv,_ulid:()=>hc,_undefined:()=>rv,_union:()=>PE,_unknown:()=>av,_uppercase:()=>Jo,_url:()=>La,_uuid:()=>uc,_uuidv4:()=>dc,_uuidv6:()=>pc,_uuidv7:()=>fc,_void:()=>sv,_xid:()=>xc,_xor:()=>EE,clone:()=>vt,config:()=>Le,createStandardJSONSchemaMethod:()=>oi,createToJSONSchemaMethod:()=>bv,decode:()=>KI,decodeAsync:()=>QI,describe:()=>yv,encode:()=>XI,encodeAsync:()=>YI,extractDefs:()=>zr,finalize:()=>Ir,flattenError:()=>za,formatError:()=>Ia,globalConfig:()=>Xr,globalRegistry:()=>nt,initializeContext:()=>wr,isValidBase64:()=>Bm,isValidBase64URL:()=>r_,isValidJWT:()=>o_,locales:()=>Da,meta:()=>hv,parse:()=>Ds,parseAsync:()=>Ns,prettifyError:()=>zf,process:()=>fe,regexes:()=>Nt,registry:()=>sc,safeDecode:()=>eP,safeDecodeAsync:()=>nP,safeEncode:()=>qI,safeEncodeAsync:()=>tP,safeParse:()=>If,safeParseAsync:()=>Pf,toDotPath:()=>Nk,toJSONSchema:()=>Lc,treeifyError:()=>wf,util:()=>P,version:()=>km});var Ck,pf=Object.freeze({status:"aborted"});function h(e,t,r){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);let c=a.prototype,d=Object.keys(c);for(let p=0;p<d.length;p++){let f=d[p];f in l||(l[f]=c[f].bind(l))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let c=r?.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var ff=Symbol("zod_brand"),cn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},hr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Ck=globalThis).__zod_globalConfig??(Ck.__zod_globalConfig={});var Xr=globalThis.__zod_globalConfig;function Le(e){return e&&Object.assign(Xr,e),Xr}var P={};Tn(P,{BIGINT_FORMAT_RANGES:()=>_f,Class:()=>gf,NUMBER_FORMAT_RANGES:()=>kf,aborted:()=>kr,allowsEval:()=>hf,assert:()=>II,assertEqual:()=>_I,assertIs:()=>wI,assertNever:()=>zI,assertNotEqual:()=>$I,assignProp:()=>br,base64ToUint8Array:()=>jk,base64urlToUint8Array:()=>BI,cached:()=>Lo,captureStackTrace:()=>Os,cleanEnum:()=>ZI,cleanRegex:()=>Sa,clone:()=>vt,cloneDef:()=>EI,createTransparentProxy:()=>DI,defineLazy:()=>ae,esc:()=>js,escapeRegex:()=>Yt,explicitlyAborted:()=>$f,extend:()=>UI,finalizeIssue:()=>yt,floatSafeRemainder:()=>vf,getElementAtPath:()=>RI,getEnumValues:()=>ba,getLengthableOrigin:()=>$a,getParsedType:()=>OI,getSizableOrigin:()=>_a,hexToUint8Array:()=>HI,isObject:()=>Kr,isPlainObject:()=>Sr,issue:()=>Uo,joinValues:()=>k,jsonStringifyReplacer:()=>No,merge:()=>FI,mergeDefs:()=>Zn,normalizeParams:()=>T,nullish:()=>xr,numKeys:()=>jI,objectClone:()=>PI,omit:()=>LI,optionalKeys:()=>Sf,parsedType:()=>I,partial:()=>WI,pick:()=>NI,prefixIssues:()=>zt,primitiveTypes:()=>bf,promiseAllObject:()=>CI,propertyKeyTypes:()=>ka,randomString:()=>TI,required:()=>MI,safeExtend:()=>AI,shallowClone:()=>xf,slugify:()=>yf,stringifyPrimitive:()=>z,uint8ArrayToBase64:()=>Ok,uint8ArrayToBase64url:()=>VI,uint8ArrayToHex:()=>JI,unwrapMessage:()=>xa});function _I(e){return e}function $I(e){return e}function wI(e){}function zI(e){throw new Error("Unexpected value in exhaustive check")}function II(e){}function ba(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function k(e,t="|"){return e.map(r=>z(r)).join(t)}function No(e,t){return typeof t=="bigint"?t.toString():t}function Lo(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function xr(e){return e==null}function Sa(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function vf(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var Tk=Symbol("evaluating");function ae(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Tk)return o===void 0&&(o=Tk,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function PI(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function br(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Zn(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function EI(e){return Zn(e._zod.def)}function RI(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function CI(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function TI(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function js(e){return JSON.stringify(e)}function yf(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Os="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var hf=Lo(()=>{if(Xr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Sr(e){if(Kr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Kr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function xf(e){return Sr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function jI(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var OI=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},ka=new Set(["string","number","symbol"]),bf=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Yt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}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 new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function DI(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Sf(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var kf={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},_f={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function NI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Zn(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return br(this,"shape",a),a},checks:[]});return vt(e,i)}function LI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Zn(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return br(this,"shape",a),a},checks:[]});return vt(e,i)}function UI(e,t){if(!Sr(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Zn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return br(this,"shape",i),i}});return vt(e,n)}function AI(e,t){if(!Sr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Zn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return br(this,"shape",o),o}});return vt(e,r)}function FI(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Zn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return br(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return vt(e,r)}function WI(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Zn(t._zod.def,{get shape(){let l=t._zod.def.shape,s={...l};if(r)for(let c in r){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(let c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return br(this,"shape",s),s},checks:[]});return vt(t,a)}function MI(e,t,r){let o=Zn(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return br(this,"shape",i),i}});return vt(t,o)}function kr(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function $f(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function zt(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function xa(e){return typeof e=="string"?e:e?.message}function yt(e,t,r){let o=e.message?e.message:xa(e.inst?._zod.def?.error?.(e))??xa(t?.error?.(e))??xa(r.customError?.(e))??xa(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t?.reportInput&&(l.input=a),l}function _a(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function $a(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function I(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 r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Uo(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function ZI(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function jk(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function Ok(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function BI(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return jk(t+r)}function VI(e){return Ok(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function HI(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function JI(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var gf=class{constructor(...t){}};var Dk=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,No,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},wa=h("$ZodError",Dk),It=h("$ZodError",Dk,{Parent:Error});function za(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function Ia(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let l=[...i,...a.path];if(l.length===0)r._errors.push(t(a));else{let s=r,c=0;for(;c<l.length;){let d=l[c];c===l.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(a))):s[d]=s[d]||{_errors:[]},s=s[d],c++}}}};return o(e),r}function wf(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,l;for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0){r.errors.push(t(s));continue}let d=r,p=0;for(;p<c.length;){let f=c[p],g=p===c.length-1;typeof f=="string"?(d.properties??(d.properties={}),(a=d.properties)[f]??(a[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(l=d.items)[f]??(l[f]={errors:[]}),d=d.items[f]),g&&d.errors.push(t(s)),p++}}};return o(e),r}function Nk(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function zf(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Nk(o.path)}`);return t.join(`
|
|
9
|
-
`)}var Ao=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new cn;if(a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>yt(s,i,Le())));throw Os(l,n?.callee),l}return a.value},Ds=Ao(It),Fo=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>yt(s,i,Le())));throw Os(l,n?.callee),l}return a.value},Ns=Fo(It),Wo=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new cn;return i.issues.length?{success:!1,error:new(e??wa)(i.issues.map(a=>yt(a,n,Le())))}:{success:!0,data:i.value}},If=Wo(It),Mo=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>yt(a,n,Le())))}:{success:!0,data:i.value}},Pf=Mo(It),Ls=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Ao(e)(t,r,n)},XI=Ls(It),Us=e=>(t,r,o)=>Ao(e)(t,r,o),KI=Us(It),As=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Fo(e)(t,r,n)},YI=As(It),Fs=e=>async(t,r,o)=>Fo(e)(t,r,o),QI=Fs(It),Ws=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Wo(e)(t,r,n)},qI=Ws(It),Ms=e=>(t,r,o)=>Wo(e)(t,r,o),eP=Ms(It),Zs=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Mo(e)(t,r,n)},tP=Zs(It),Bs=e=>async(t,r,o)=>Mo(e)(t,r,o),nP=Bs(It);var Nt={};Tn(Nt,{base64:()=>Bf,base64url:()=>Vs,bigint:()=>Yf,boolean:()=>qf,browserEmail:()=>uP,cidrv4:()=>Mf,cidrv6:()=>Zf,cuid:()=>Ef,cuid2:()=>Rf,date:()=>Jf,datetime:()=>Xf,domain:()=>fP,duration:()=>Df,e164:()=>Hf,email:()=>Lf,emoji:()=>Uf,extendedDuration:()=>rP,guid:()=>Nf,hex:()=>mP,hostname:()=>pP,html5Email:()=>lP,httpProtocol:()=>Vf,idnEmail:()=>cP,integer:()=>Qf,ipv4:()=>Af,ipv6:()=>Ff,ksuid:()=>jf,lowercase:()=>nm,mac:()=>Wf,md5_base64:()=>vP,md5_base64url:()=>yP,md5_hex:()=>gP,nanoid:()=>Of,null:()=>em,number:()=>Hs,rfc5322Email:()=>sP,sha1_base64:()=>xP,sha1_base64url:()=>bP,sha1_hex:()=>hP,sha256_base64:()=>kP,sha256_base64url:()=>_P,sha256_hex:()=>SP,sha384_base64:()=>wP,sha384_base64url:()=>zP,sha384_hex:()=>$P,sha512_base64:()=>PP,sha512_base64url:()=>EP,sha512_hex:()=>IP,string:()=>Kf,time:()=>Gf,ulid:()=>Cf,undefined:()=>tm,unicodeEmail:()=>Lk,uppercase:()=>rm,uuid:()=>Yr,uuid4:()=>oP,uuid6:()=>iP,uuid7:()=>aP,xid:()=>Tf});var Ef=/^[cC][0-9a-z]{6,}$/,Rf=/^[0-9a-z]+$/,Cf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Tf=/^[0-9a-vA-V]{20}$/,jf=/^[A-Za-z0-9]{27}$/,Of=/^[a-zA-Z0-9_-]{21}$/,Df=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rP=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Nf=/^([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})$/,Yr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,oP=Yr(4),iP=Yr(6),aP=Yr(7),Lf=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,lP=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,sP=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Lk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,cP=Lk,uP=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,dP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Uf(){return new RegExp(dP,"u")}var Af=/^(?:(?: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])$/,Ff=/^(([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}|:))$/,Wf=e=>{let t=Yt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Mf=/^((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])$/,Zf=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Bf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Vs=/^[A-Za-z0-9_-]*$/,pP=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,fP=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Vf=/^https?$/,Hf=/^\+[1-9]\d{6,14}$/,Uk="(?:(?:\\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])))",Jf=new RegExp(`^${Uk}$`);function Ak(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}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Gf(e){return new RegExp(`^${Ak(e)}$`)}function Xf(e){let t=Ak({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${Uk}T(?:${o})$`)}var Kf=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Yf=/^-?\d+n?$/,Qf=/^-?\d+$/,Hs=/^-?\d+(?:\.\d+)?$/,qf=/^(?:true|false)$/i,em=/^null$/i;var tm=/^undefined$/i;var nm=/^[^A-Z]*$/,rm=/^[^a-z]*$/,mP=/^[0-9a-fA-F]*$/;function Pa(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ea(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var gP=/^[0-9a-fA-F]{32}$/,vP=Pa(22,"=="),yP=Ea(22),hP=/^[0-9a-fA-F]{40}$/,xP=Pa(27,"="),bP=Ea(27),SP=/^[0-9a-fA-F]{64}$/,kP=Pa(43,"="),_P=Ea(43),$P=/^[0-9a-fA-F]{96}$/,wP=Pa(64,""),zP=Ea(64),IP=/^[0-9a-fA-F]{128}$/,PP=Pa(86,"=="),EP=Ea(86);var be=h("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Wk={number:"number",bigint:"bigint",object:"date"},Js=h("$ZodCheckLessThan",(e,t)=>{be.init(e,t);let r=Wk[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Gs=h("$ZodCheckGreaterThan",(e,t)=>{be.init(e,t);let r=Wk[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),om=h("$ZodCheckMultipleOf",(e,t)=>{be.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):vf(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),im=h("$ZodCheckNumberFormat",(e,t)=>{be.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=kf[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=n,l.maximum=i,r&&(l.pattern=Qf)}),e._zod.check=a=>{let l=a.value;if(r){if(!Number.isInteger(l)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}l<n&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),am=h("$ZodCheckBigIntFormat",(e,t)=>{be.init(e,t);let[r,o]=_f[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),lm=h("$ZodCheckMaxSize",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:_a(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sm=h("$ZodCheckMinSize",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:_a(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),cm=h("$ZodCheckSizeEquals",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:_a(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),um=h("$ZodCheckMaxLength",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=$a(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),dm=h("$ZodCheckMinLength",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=$a(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),pm=h("$ZodCheckLengthEquals",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=$a(n),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Zo=h("$ZodCheckStringFormat",(e,t)=>{var r,o;be.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),fm=h("$ZodCheckRegex",(e,t)=>{Zo.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),mm=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=nm),Zo.init(e,t)}),gm=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=rm),Zo.init(e,t)}),vm=h("$ZodCheckIncludes",(e,t)=>{be.init(e,t);let r=Yt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ym=h("$ZodCheckStartsWith",(e,t)=>{be.init(e,t);let r=new RegExp(`^${Yt(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),hm=h("$ZodCheckEndsWith",(e,t)=>{be.init(e,t);let r=new RegExp(`.*${Yt(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Fk(e,t,r){e.issues.length&&t.issues.push(...zt(r,e.issues))}var xm=h("$ZodCheckProperty",(e,t)=>{be.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>Fk(n,r,t.property));Fk(o,r,t.property)}}),bm=h("$ZodCheckMimeType",(e,t)=>{be.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Sm=h("$ZodCheckOverwrite",(e,t)=>{be.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Ra=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
|
|
8
|
+
`+i.stack}return{value:e,source:t,stack:n,digest:null}}function _d(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ip(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Jz=typeof WeakMap=="function"?WeakMap:Map;function VS(e,t,r){r=An(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){us||(us=!0,gp=o),ip(e,t)},r}function HS(e,t,r){r=An(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var n=t.value;r.payload=function(){return o(n)},r.callback=function(){ip(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){ip(e,t),typeof o!="function"&&(ur===null?ur=new Set([this]):ur.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function rb(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new Jz;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(n.add(r),e=lI.bind(null,e,t,r),t.then(e,e))}function ob(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ib(e,t,r,o,n){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=An(-1,1),t.tag=2,cr(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var Gz=Bn.ReactCurrentOwner,kt=!1;function ft(e,t,r,o){t.child=e===null?SS(t,null,r,o):Co(t,e.child,r,o)}function ab(e,t,r,o,n){r=r.render;var i=t.ref;return zo(t,n),o=Jp(e,t,r,o,i,n),r=Gp(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Zn(e,t,n)):(Re&&r&&Dp(t),t.flags|=1,ft(e,t,o,n),t.child)}function lb(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!of(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,JS(e,t,i,o,n)):(e=Zl(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&n)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:oa,r(a,o)&&e.ref===t.ref)return Zn(e,t,n)}return t.flags|=1,e=pr(i,o),e.ref=t.ref,e.return=t,t.child=e}function JS(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(oa(i,o)&&e.ref===t.ref)if(kt=!1,t.pendingProps=o=i,(e.lanes&n)!==0)(e.flags&131072)!==0&&(kt=!0);else return t.lanes=e.lanes,Zn(e,t,n)}return ap(e,t,r,o,n)}function GS(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(So,Rt),Rt|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(So,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,we(So,Rt),Rt|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,we(So,Rt),Rt|=o;return ft(e,t,n,r),t.child}function XS(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ap(e,t,r,o,n){var i=$t(r)?Fr:ct.current;return i=Ro(t,i),zo(t,n),r=Jp(e,t,r,o,i,n),o=Gp(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Zn(e,t,n)):(Re&&o&&Dp(t),t.flags|=1,ft(e,t,r,n),t.child)}function sb(e,t,r,o,n){if($t(r)){var i=!0;es(t)}else i=!1;if(zo(t,n),t.stateNode===null)Fl(e,t),BS(t,r,o),op(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Ht(c):(c=$t(r)?Fr:ct.current,c=Ro(t,c));var d=r.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==o||s!==c)&&nb(t,a,o,c),er=!1;var f=t.memoizedState;a.state=f,is(t,o,a,n),s=t.memoizedState,l!==o||f!==s||_t.current||er?(typeof d=="function"&&(rp(t,r,d,o),s=t.memoizedState),(l=er||tb(t,r,l,o,f,s,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=s),a.props=o,a.state=s,a.context=c,o=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,_S(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:tn(t.type,l),a.props=c,p=t.pendingProps,f=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=Ht(s):(s=$t(r)?Fr:ct.current,s=Ro(t,s));var g=r.getDerivedStateFromProps;(d=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||f!==s)&&nb(t,a,o,s),er=!1,f=t.memoizedState,a.state=f,is(t,o,a,n);var b=t.memoizedState;l!==p||f!==b||_t.current||er?(typeof g=="function"&&(rp(t,r,g,o),b=t.memoizedState),(c=er||tb(t,r,c,o,f,b,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,b,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,b,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=b),a.props=o,a.state=b,a.context=s,o=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return lp(e,t,r,o,i,n)}function lp(e,t,r,o,n,i){XS(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&Jx(t,r,!1),Zn(e,t,i);o=t.stateNode,Gz.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=Co(t,e.child,null,i),t.child=Co(t,null,l,i)):ft(e,t,l,i),t.memoizedState=o.state,n&&Jx(t,r,!0),t.child}function KS(e){var t=e.stateNode;t.pendingContext?Hx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hx(e,t.context,!1),Zp(e,t.containerInfo)}function cb(e,t,r,o,n){return Eo(),Lp(n),t.flags|=256,ft(e,t,r,o),t.child}var sp={dehydrated:null,treeContext:null,retryLane:0};function cp(e){return{baseLanes:e,cachePool:null,transitions:null}}function YS(e,t,r){var o=t.pendingProps,n=Ce.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(n&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),we(Ce,n&1),e===null)return tp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},(o&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=$s(a,o,0,null),e=Ar(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=cp(r),t.memoizedState=sp,e):Yp(t,a));if(n=e.memoizedState,n!==null&&(l=n.dehydrated,l!==null))return Xz(e,t,a,o,l,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,l=n.sibling;var s={mode:"hidden",children:o.children};return(a&1)===0&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=s,t.deletions=null):(o=pr(n,s),o.subtreeFlags=n.subtreeFlags&14680064),l!==null?i=pr(l,i):(i=Ar(i,a,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?cp(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=sp,o}return i=e.child,e=i.sibling,o=pr(i,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Yp(e,t){return t=$s({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Cl(e,t,r,o){return o!==null&&Lp(o),Co(t,e.child,null,r),e=Yp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xz(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=_d(Error(E(422))),Cl(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=$s({mode:"visible",children:o.children},n,0,null),i=Ar(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&Co(t,e.child,null,a),t.child.memoizedState=cp(a),t.memoizedState=sp,i);if((t.mode&1)===0)return Cl(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,i=Error(E(419)),o=_d(i,o,void 0),Cl(e,t,a,o)}if(l=(a&e.childLanes)!==0,kt||l){if(o=Ye,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(o.suspendedLanes|a))!==0?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,Mn(e,n),an(o,e,n,-1))}return rf(),o=_d(Error(E(421))),Cl(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=sI.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,Et=sr(n.nextSibling),Ct=t,Re=!0,rn=null,e!==null&&(Mt[Zt++]=Ln,Mt[Zt++]=Un,Mt[Zt++]=Wr,Ln=e.id,Un=e.overflow,Wr=t),t=Yp(t,o.children),t.flags|=4096,t)}function ub(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),np(e.return,t,r)}function $d(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function qS(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(ft(e,t,o.children,r),o=Ce.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ub(e,r,t);else if(e.tag===19)ub(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(we(Ce,o),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&as(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),$d(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&as(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}$d(t,!0,r,null,i);break;case"together":$d(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Zr|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,r=pr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=pr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Kz(e,t,r){switch(t.tag){case 3:KS(t),Eo();break;case 5:$S(t);break;case 1:$t(t.type)&&es(t);break;case 4:Zp(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;we(rs,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(we(Ce,Ce.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?YS(e,t,r):(we(Ce,Ce.current&1),e=Zn(e,t,r),e!==null?e.sibling:null);we(Ce,Ce.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return qS(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),we(Ce,Ce.current),o)break;return null;case 22:case 23:return t.lanes=0,GS(e,t,r)}return Zn(e,t,r)}var QS,up,ek,tk;QS=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};up=function(){};ek=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,Lr(Sn.current);var i=null;switch(r){case"input":n=Td(e,n),o=Td(e,o),i=[];break;case"select":n=je({},n,{value:void 0}),o=je({},o,{value:void 0}),i=[];break;case"textarea":n=Dd(e,n),o=Dd(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=ql)}Ld(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var l=n[c];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Yi.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var s=o[c];if(l=n?.[c],o.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Yi.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Ie("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};tk=function(e,t,r,o){r!==o&&(t.flags|=4)};function Di(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function Yz(e,t,r){var o=t.pendingProps;switch(Np(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return $t(t.type)&&Ql(),lt(t),null;case 3:return o=t.stateNode,To(),Pe(_t),Pe(ct),Vp(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rn!==null&&(hp(rn),rn=null))),up(e,t),lt(t),null;case 5:Bp(t);var n=Lr(ca.current);if(r=t.type,e!==null&&t.stateNode!=null)ek(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(E(166));return lt(t),null}if(e=Lr(Sn.current),Rl(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[xn]=t,o[la]=i,e=(t.mode&1)!==0,r){case"dialog":Ie("cancel",o),Ie("close",o);break;case"iframe":case"object":case"embed":Ie("load",o);break;case"video":case"audio":for(n=0;n<Wi.length;n++)Ie(Wi[n],o);break;case"source":Ie("error",o);break;case"img":case"image":case"link":Ie("error",o),Ie("load",o);break;case"details":Ie("toggle",o);break;case"input":hx(o,i),Ie("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},Ie("invalid",o);break;case"textarea":bx(o,i),Ie("invalid",o)}Ld(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?o.textContent!==l&&(i.suppressHydrationWarning!==!0&&Pl(o.textContent,l,e),n=["children",l]):typeof l=="number"&&o.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Pl(o.textContent,l,e),n=["children",""+l]):Yi.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Ie("scroll",o)}switch(r){case"input":vl(o),xx(o,i,!0);break;case"textarea":vl(o),Sx(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=ql)}o=n,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Rb(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(r,{is:o.is}):(e=a.createElement(r),r==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,r),e[xn]=t,e[la]=o,QS(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ud(r,o),r){case"dialog":Ie("cancel",e),Ie("close",e),n=o;break;case"iframe":case"object":case"embed":Ie("load",e),n=o;break;case"video":case"audio":for(n=0;n<Wi.length;n++)Ie(Wi[n],e);n=o;break;case"source":Ie("error",e),n=o;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),n=o;break;case"details":Ie("toggle",e),n=o;break;case"input":hx(e,o),n=Td(e,o),Ie("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=je({},o,{value:void 0}),Ie("invalid",e);break;case"textarea":bx(e,o),n=Dd(e,o),Ie("invalid",e);break;default:n=o}Ld(r,n),l=n;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?Tb(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Eb(e,s)):i==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&qi(e,s):typeof s=="number"&&qi(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Yi.hasOwnProperty(i)?s!=null&&i==="onScroll"&&Ie("scroll",e):s!=null&&Sp(e,i,s,a))}switch(r){case"input":vl(e),xx(e,o,!1);break;case"textarea":vl(e),Sx(e);break;case"option":o.value!=null&&e.setAttribute("value",""+fr(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?ko(e,!!o.multiple,i,!1):o.defaultValue!=null&&ko(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=ql)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return lt(t),null;case 6:if(e&&t.stateNode!=null)tk(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(E(166));if(r=Lr(ca.current),Lr(Sn.current),Rl(t)){if(o=t.stateNode,r=t.memoizedProps,o[xn]=t,(i=o.nodeValue!==r)&&(e=Ct,e!==null))switch(e.tag){case 3:Pl(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Pl(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[xn]=t,t.stateNode=o}return lt(t),null;case 13:if(Pe(Ce),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Re&&Et!==null&&(t.mode&1)!==0&&(t.flags&128)===0)xS(),Eo(),t.flags|=98560,i=!1;else if(i=Rl(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[xn]=t}else Eo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),i=!1}else rn!==null&&(hp(rn),rn=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ce.current&1)!==0?He===0&&(He=3):rf())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return To(),up(e,t),e===null&&ia(t.stateNode.containerInfo),lt(t),null;case 10:return Fp(t.type._context),lt(t),null;case 17:return $t(t.type)&&Ql(),lt(t),null;case 19:if(Pe(Ce),i=t.memoizedState,i===null)return lt(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)Di(i,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=as(e),a!==null){for(t.flags|=128,Di(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return we(Ce,Ce.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ue()>Oo&&(t.flags|=128,o=!0,Di(i,!1),t.lanes=4194304)}else{if(!o)if(e=as(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Re)return lt(t),null}else 2*Ue()-i.renderingStartTime>Oo&&r!==1073741824&&(t.flags|=128,o=!0,Di(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ue(),t.sibling=null,r=Ce.current,we(Ce,o?r&1|2:r&1),t):(lt(t),null);case 22:case 23:return nf(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Rt&1073741824)!==0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function qz(e,t){switch(Np(t),t.tag){case 1:return $t(t.type)&&Ql(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return To(),Pe(_t),Pe(ct),Vp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Bp(t),null;case 13:if(Pe(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Ce),null;case 4:return To(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nf(),null;case 24:return null;default:return null}}var Tl=!1,st=!1,Qz=typeof WeakSet=="function"?WeakSet:Set,Z=null;function bo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){De(e,t,o)}else r.current=null}function dp(e,t,r){try{r()}catch(o){De(e,t,o)}}var db=!1;function eI(e,t){if(Gd=Xl,e=aS(),Op(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var g;p!==r||n!==0&&p.nodeType!==3||(l=a+n),p!==i||o!==0&&p.nodeType!==3||(s=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(g=p.firstChild)!==null;)f=p,p=g;for(;;){if(p===e)break t;if(f===r&&++c===n&&(l=a),f===i&&++d===o&&(s=a),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xd={focusedElem:e,selectionRange:r},Xl=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var b=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var h=b.memoizedProps,w=b.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:tn(t.type,h),w);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){De(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return b=db,db=!1,b}function Gi(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&dp(t,r,i)}n=n.next}while(n!==o)}}function ks(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function pp(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function nk(e){var t=e.alternate;t!==null&&(e.alternate=null,nk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xn],delete t[la],delete t[qd],delete t[Nz],delete t[Lz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rk(e){return e.tag===5||e.tag===3||e.tag===4}function pb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rk(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fp(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ql));else if(o!==4&&(e=e.child,e!==null))for(fp(e,t,r),e=e.sibling;e!==null;)fp(e,t,r),e=e.sibling}function mp(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(mp(e,t,r),e=e.sibling;e!==null;)mp(e,t,r),e=e.sibling}var Qe=null,nn=!1;function qn(e,t,r){for(r=r.child;r!==null;)ok(e,t,r),r=r.sibling}function ok(e,t,r){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(ms,r)}catch{}switch(r.tag){case 5:st||bo(r,t);case 6:var o=Qe,n=nn;Qe=null,qn(e,t,r),Qe=o,nn=n,Qe!==null&&(nn?(e=Qe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Qe.removeChild(r.stateNode));break;case 18:Qe!==null&&(nn?(e=Qe,r=r.stateNode,e.nodeType===8?yd(e.parentNode,r):e.nodeType===1&&yd(e,r),na(e)):yd(Qe,r.stateNode));break;case 4:o=Qe,n=nn,Qe=r.stateNode.containerInfo,nn=!0,qn(e,t,r),Qe=o,nn=n;break;case 0:case 11:case 14:case 15:if(!st&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&dp(r,t,a),n=n.next}while(n!==o)}qn(e,t,r);break;case 1:if(!st&&(bo(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(l){De(r,t,l)}qn(e,t,r);break;case 21:qn(e,t,r);break;case 22:r.mode&1?(st=(o=st)||r.memoizedState!==null,qn(e,t,r),st=o):qn(e,t,r);break;default:qn(e,t,r)}}function fb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Qz),t.forEach(function(o){var n=cI.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function en(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Qe=l.stateNode,nn=!1;break e;case 3:Qe=l.stateNode.containerInfo,nn=!0;break e;case 4:Qe=l.stateNode.containerInfo,nn=!0;break e}l=l.return}if(Qe===null)throw Error(E(160));ok(i,a,n),Qe=null,nn=!1;var s=n.alternate;s!==null&&(s.return=null),n.return=null}catch(c){De(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ik(t,e),t=t.sibling}function ik(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),yn(e),o&4){try{Gi(3,e,e.return),ks(3,e)}catch(h){De(e,e.return,h)}try{Gi(5,e,e.return)}catch(h){De(e,e.return,h)}}break;case 1:en(t,e),yn(e),o&512&&r!==null&&bo(r,r.return);break;case 5:if(en(t,e),yn(e),o&512&&r!==null&&bo(r,r.return),e.flags&32){var n=e.stateNode;try{qi(n,"")}catch(h){De(e,e.return,h)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Ib(n,i),Ud(l,a);var c=Ud(l,i);for(a=0;a<s.length;a+=2){var d=s[a],p=s[a+1];d==="style"?Tb(n,p):d==="dangerouslySetInnerHTML"?Eb(n,p):d==="children"?qi(n,p):Sp(n,d,p,c)}switch(l){case"input":jd(n,i);break;case"textarea":Pb(n,i);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?ko(n,!!i.multiple,g,!1):f!==!!i.multiple&&(i.defaultValue!=null?ko(n,!!i.multiple,i.defaultValue,!0):ko(n,!!i.multiple,i.multiple?[]:"",!1))}n[la]=i}catch(h){De(e,e.return,h)}}break;case 6:if(en(t,e),yn(e),o&4){if(e.stateNode===null)throw Error(E(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(h){De(e,e.return,h)}}break;case 3:if(en(t,e),yn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{na(t.containerInfo)}catch(h){De(e,e.return,h)}break;case 4:en(t,e),yn(e);break;case 13:en(t,e),yn(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(ef=Ue())),o&4&&fb(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(st=(c=st)||d,en(t,e),st=c):en(t,e),yn(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&(e.mode&1)!==0)for(Z=e,d=e.child;d!==null;){for(p=Z=d;Z!==null;){switch(f=Z,g=f.child,f.tag){case 0:case 11:case 14:case 15:Gi(4,f,f.return);break;case 1:bo(f,f.return);var b=f.stateNode;if(typeof b.componentWillUnmount=="function"){o=f,r=f.return;try{t=o,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(h){De(o,r,h)}}break;case 5:bo(f,f.return);break;case 22:if(f.memoizedState!==null){gb(p);continue}}g!==null?(g.return=f,Z=g):gb(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{n=p.stateNode,c?(i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=p.stateNode,s=p.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=Cb("display",a))}catch(h){De(e,e.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(h){De(e,e.return,h)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:en(t,e),yn(e),o&4&&fb(e);break;case 21:break;default:en(t,e),yn(e)}}function yn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(rk(r)){var o=r;break e}r=r.return}throw Error(E(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(qi(n,""),o.flags&=-33);var i=pb(e);mp(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,l=pb(e);fp(e,l,a);break;default:throw Error(E(161))}}catch(s){De(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tI(e,t,r){Z=e,ak(e,t,r)}function ak(e,t,r){for(var o=(e.mode&1)!==0;Z!==null;){var n=Z,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||Tl;if(!a){var l=n.alternate,s=l!==null&&l.memoizedState!==null||st;l=Tl;var c=st;if(Tl=a,(st=s)&&!c)for(Z=n;Z!==null;)a=Z,s=a.child,a.tag===22&&a.memoizedState!==null?vb(n):s!==null?(s.return=a,Z=s):vb(n);for(;i!==null;)Z=i,ak(i,t,r),i=i.sibling;Z=n,Tl=l,st=c}mb(e,t,r)}else(n.subtreeFlags&8772)!==0&&i!==null?(i.return=n,Z=i):mb(e,t,r)}}function mb(e){for(;Z!==null;){var t=Z;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:st||ks(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!st)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:tn(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&qx(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}qx(t,a,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&na(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}st||t.flags&512&&pp(t)}catch(f){De(t,t.return,f)}}if(t===e){Z=null;break}if(r=t.sibling,r!==null){r.return=t.return,Z=r;break}Z=t.return}}function gb(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Z=r;break}Z=t.return}}function vb(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ks(4,t)}catch(s){De(t,r,s)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(s){De(t,n,s)}}var i=t.return;try{pp(t)}catch(s){De(t,i,s)}break;case 5:var a=t.return;try{pp(t)}catch(s){De(t,a,s)}}}catch(s){De(t,t.return,s)}if(t===e){Z=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Z=l;break}Z=t.return}}var nI=Math.ceil,cs=Bn.ReactCurrentDispatcher,qp=Bn.ReactCurrentOwner,Vt=Bn.ReactCurrentBatchConfig,pe=0,Ye=null,Ae=null,et=0,Rt=0,So=vr(0),He=0,fa=null,Zr=0,_s=0,Qp=0,Xi=null,St=null,ef=0,Oo=1/0,Dn=null,us=!1,gp=null,ur=null,jl=!1,or=null,ds=0,Ki=0,vp=null,Wl=-1,Ml=0;function mt(){return(pe&6)!==0?Ue():Wl!==-1?Wl:Wl=Ue()}function dr(e){return(e.mode&1)===0?1:(pe&2)!==0&&et!==0?et&-et:Az.transition!==null?(Ml===0&&(Ml=Bb()),Ml):(e=ve,e!==0||(e=window.event,e=e===void 0?16:Yb(e.type)),e)}function an(e,t,r,o){if(50<Ki)throw Ki=0,vp=null,Error(E(185));ma(e,r,o),((pe&2)===0||e!==Ye)&&(e===Ye&&((pe&2)===0&&(_s|=r),He===4&&nr(e,et)),wt(e,o),r===1&&pe===0&&(t.mode&1)===0&&(Oo=Ue()+500,xs&&yr()))}function wt(e,t){var r=e.callbackNode;W1(e,t);var o=Gl(e,e===Ye?et:0);if(o===0)r!==null&&$x(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&$x(r),t===1)e.tag===0?Uz(yb.bind(null,e)):vS(yb.bind(null,e)),Oz(function(){(pe&6)===0&&yr()}),r=null;else{switch(Vb(o)){case 1:r=zp;break;case 4:r=Mb;break;case 16:r=Jl;break;case 536870912:r=Zb;break;default:r=Jl}r=mk(r,lk.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function lk(e,t){if(Wl=-1,Ml=0,(pe&6)!==0)throw Error(E(327));var r=e.callbackNode;if(Io()&&e.callbackNode!==r)return null;var o=Gl(e,e===Ye?et:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=ps(e,o);else{t=o;var n=pe;pe|=2;var i=ck();(Ye!==e||et!==t)&&(Dn=null,Oo=Ue()+500,Ur(e,t));do try{iI();break}catch(l){sk(e,l)}while(!0);Ap(),cs.current=i,pe=n,Ae!==null?t=0:(Ye=null,et=0,t=He)}if(t!==0){if(t===2&&(n=Zd(e),n!==0&&(o=n,t=yp(e,n))),t===1)throw r=fa,Ur(e,0),nr(e,o),wt(e,Ue()),r;if(t===6)nr(e,o);else{if(n=e.current.alternate,(o&30)===0&&!rI(n)&&(t=ps(e,o),t===2&&(i=Zd(e),i!==0&&(o=i,t=yp(e,i))),t===1))throw r=fa,Ur(e,0),nr(e,o),wt(e,Ue()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(E(345));case 2:Or(e,St,Dn);break;case 3:if(nr(e,o),(o&130023424)===o&&(t=ef+500-Ue(),10<t)){if(Gl(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){mt(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Yd(Or.bind(null,e,St,Dn),t);break}Or(e,St,Dn);break;case 4:if(nr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-on(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=Ue()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*nI(o/1960))-o,10<o){e.timeoutHandle=Yd(Or.bind(null,e,St,Dn),o);break}Or(e,St,Dn);break;case 5:Or(e,St,Dn);break;default:throw Error(E(329))}}}return wt(e,Ue()),e.callbackNode===r?lk.bind(null,e):null}function yp(e,t){var r=Xi;return e.current.memoizedState.isDehydrated&&(Ur(e,t).flags|=256),e=ps(e,t),e!==2&&(t=St,St=r,t!==null&&hp(t)),e}function hp(e){St===null?St=e:St.push.apply(St,e)}function rI(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!ln(i(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nr(e,t){for(t&=~Qp,t&=~_s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-on(t),o=1<<r;e[r]=-1,t&=~o}}function yb(e){if((pe&6)!==0)throw Error(E(327));Io();var t=Gl(e,0);if((t&1)===0)return wt(e,Ue()),null;var r=ps(e,t);if(e.tag!==0&&r===2){var o=Zd(e);o!==0&&(t=o,r=yp(e,o))}if(r===1)throw r=fa,Ur(e,0),nr(e,t),wt(e,Ue()),r;if(r===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Or(e,St,Dn),wt(e,Ue()),null}function tf(e,t){var r=pe;pe|=1;try{return e(t)}finally{pe=r,pe===0&&(Oo=Ue()+500,xs&&yr())}}function Br(e){or!==null&&or.tag===0&&(pe&6)===0&&Io();var t=pe;pe|=1;var r=Vt.transition,o=ve;try{if(Vt.transition=null,ve=1,e)return e()}finally{ve=o,Vt.transition=r,pe=t,(pe&6)===0&&yr()}}function nf(){Rt=So.current,Pe(So)}function Ur(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,jz(r)),Ae!==null)for(r=Ae.return;r!==null;){var o=r;switch(Np(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Ql();break;case 3:To(),Pe(_t),Pe(ct),Vp();break;case 5:Bp(o);break;case 4:To();break;case 13:Pe(Ce);break;case 19:Pe(Ce);break;case 10:Fp(o.type._context);break;case 22:case 23:nf()}r=r.return}if(Ye=e,Ae=e=pr(e.current,null),et=Rt=t,He=0,fa=null,Qp=_s=Zr=0,St=Xi=null,Nr!==null){for(t=0;t<Nr.length;t++)if(r=Nr[t],o=r.interleaved,o!==null){r.interleaved=null;var n=o.next,i=r.pending;if(i!==null){var a=i.next;i.next=n,o.next=a}r.pending=o}Nr=null}return e}function sk(e,t){do{var r=Ae;try{if(Ap(),Ul.current=ss,ls){for(var o=Te.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}ls=!1}if(Mr=0,Ke=Ve=Te=null,Ji=!1,ua=0,qp.current=null,r===null||r.return===null){He=1,fa=t,Ae=null;break}e:{var i=e,a=r.return,l=r,s=t;if(t=et,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,d=l,p=d.tag;if((d.mode&1)===0&&(p===0||p===11||p===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=ob(a);if(g!==null){g.flags&=-257,ib(g,a,l,i,t),g.mode&1&&rb(i,c,t),t=g,s=c;var b=t.updateQueue;if(b===null){var h=new Set;h.add(s),t.updateQueue=h}else b.add(s);break e}else{if((t&1)===0){rb(i,c,t),rf();break e}s=Error(E(426))}}else if(Re&&l.mode&1){var w=ob(a);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),ib(w,a,l,i,t),Lp(jo(s,l));break e}}i=s=jo(s,l),He!==4&&(He=2),Xi===null?Xi=[i]:Xi.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=VS(i,s,t);Yx(i,v);break e;case 1:l=s;var m=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ur===null||!ur.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=HS(i,l,t);Yx(i,S);break e}}i=i.return}while(i!==null)}dk(r)}catch(P){t=P,Ae===r&&r!==null&&(Ae=r=r.return);continue}break}while(!0)}function ck(){var e=cs.current;return cs.current=ss,e===null?ss:e}function rf(){(He===0||He===3||He===2)&&(He=4),Ye===null||(Zr&268435455)===0&&(_s&268435455)===0||nr(Ye,et)}function ps(e,t){var r=pe;pe|=2;var o=ck();(Ye!==e||et!==t)&&(Dn=null,Ur(e,t));do try{oI();break}catch(n){sk(e,n)}while(!0);if(Ap(),pe=r,cs.current=o,Ae!==null)throw Error(E(261));return Ye=null,et=0,He}function oI(){for(;Ae!==null;)uk(Ae)}function iI(){for(;Ae!==null&&!T1();)uk(Ae)}function uk(e){var t=fk(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?dk(e):Ae=t,qp.current=null}function dk(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Yz(r,t,Rt),r!==null){Ae=r;return}}else{if(r=qz(r,t),r!==null){r.flags&=32767,Ae=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{He=6,Ae=null;return}}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);He===0&&(He=5)}function Or(e,t,r){var o=ve,n=Vt.transition;try{Vt.transition=null,ve=1,aI(e,t,r,o)}finally{Vt.transition=n,ve=o}return null}function aI(e,t,r,o){do Io();while(or!==null);if((pe&6)!==0)throw Error(E(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(M1(e,i),e===Ye&&(Ae=Ye=null,et=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||jl||(jl=!0,mk(Jl,function(){return Io(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Vt.transition,Vt.transition=null;var a=ve;ve=1;var l=pe;pe|=4,qp.current=null,eI(e,r),ik(r,e),Pz(Xd),Xl=!!Gd,Xd=Gd=null,e.current=r,tI(r,e,n),j1(),pe=l,ve=a,Vt.transition=i}else e.current=r;if(jl&&(jl=!1,or=e,ds=n),i=e.pendingLanes,i===0&&(ur=null),N1(r.stateNode,o),wt(e,Ue()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],o(n.value,{componentStack:n.stack,digest:n.digest});if(us)throw us=!1,e=gp,gp=null,e;return(ds&1)!==0&&e.tag!==0&&Io(),i=e.pendingLanes,(i&1)!==0?e===vp?Ki++:(Ki=0,vp=e):Ki=0,yr(),null}function Io(){if(or!==null){var e=Vb(ds),t=Vt.transition,r=ve;try{if(Vt.transition=null,ve=16>e?16:e,or===null)var o=!1;else{if(e=or,or=null,ds=0,(pe&6)!==0)throw Error(E(331));var n=pe;for(pe|=4,Z=e.current;Z!==null;){var i=Z,a=i.child;if((Z.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(Z=c;Z!==null;){var d=Z;switch(d.tag){case 0:case 11:case 15:Gi(8,d,i)}var p=d.child;if(p!==null)p.return=d,Z=p;else for(;Z!==null;){d=Z;var f=d.sibling,g=d.return;if(nk(d),d===c){Z=null;break}if(f!==null){f.return=g,Z=f;break}Z=g}}}var b=i.alternate;if(b!==null){var h=b.child;if(h!==null){b.child=null;do{var w=h.sibling;h.sibling=null,h=w}while(h!==null)}}Z=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,Z=a;else e:for(;Z!==null;){if(i=Z,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Gi(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,Z=v;break e}Z=i.return}}var m=e.current;for(Z=m;Z!==null;){a=Z;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,Z=y;else e:for(a=m;Z!==null;){if(l=Z,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:ks(9,l)}}catch(P){De(l,l.return,P)}if(l===a){Z=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,Z=S;break e}Z=l.return}}if(pe=n,yr(),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(ms,e)}catch{}o=!0}return o}finally{ve=r,Vt.transition=t}}return!1}function hb(e,t,r){t=jo(r,t),t=VS(e,t,1),e=cr(e,t,1),t=mt(),e!==null&&(ma(e,1,t),wt(e,t))}function De(e,t,r){if(e.tag===3)hb(e,e,r);else for(;t!==null;){if(t.tag===3){hb(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ur===null||!ur.has(o))){e=jo(r,e),e=HS(t,e,1),t=cr(t,e,1),e=mt(),t!==null&&(ma(t,1,e),wt(t,e));break}}t=t.return}}function lI(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&r,Ye===e&&(et&r)===r&&(He===4||He===3&&(et&130023424)===et&&500>Ue()-ef?Ur(e,0):Qp|=r),wt(e,t)}function pk(e,t){t===0&&((e.mode&1)===0?t=1:(t=xl,xl<<=1,(xl&130023424)===0&&(xl=4194304)));var r=mt();e=Mn(e,t),e!==null&&(ma(e,t,r),wt(e,r))}function sI(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),pk(e,r)}function cI(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(E(314))}o!==null&&o.delete(t),pk(e,r)}var fk;fk=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)kt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return kt=!1,Kz(e,t,r);kt=(e.flags&131072)!==0}else kt=!1,Re&&(t.flags&1048576)!==0&&yS(t,ns,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Fl(e,t),e=t.pendingProps;var n=Ro(t,ct.current);zo(t,r),n=Jp(null,t,o,e,n,r);var i=Gp();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(o)?(i=!0,es(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Mp(t),n.updater=Ss,t.stateNode=n,n._reactInternals=t,op(t,o,e,r),t=lp(null,t,o,!0,i,r)):(t.tag=0,Re&&i&&Dp(t),ft(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Fl(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=dI(o),e=tn(o,e),n){case 0:t=ap(null,t,o,e,r);break e;case 1:t=sb(null,t,o,e,r);break e;case 11:t=ab(null,t,o,e,r);break e;case 14:t=lb(null,t,o,tn(o.type,e),r);break e}throw Error(E(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),ap(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),sb(e,t,o,n,r);case 3:e:{if(KS(t),e===null)throw Error(E(387));o=t.pendingProps,i=t.memoizedState,n=i.element,_S(e,t),is(t,o,null,r);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=jo(Error(E(423)),t),t=cb(e,t,o,r,n);break e}else if(o!==n){n=jo(Error(E(424)),t),t=cb(e,t,o,r,n);break e}else for(Et=sr(t.stateNode.containerInfo.firstChild),Ct=t,Re=!0,rn=null,r=SS(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Eo(),o===n){t=Zn(e,t,r);break e}ft(e,t,o,r)}t=t.child}return t;case 5:return $S(t),e===null&&tp(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,Kd(o,n)?a=null:i!==null&&Kd(o,i)&&(t.flags|=32),XS(e,t),ft(e,t,a,r),t.child;case 6:return e===null&&tp(t),null;case 13:return YS(e,t,r);case 4:return Zp(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Co(t,null,o,r):ft(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),ab(e,t,o,n,r);case 7:return ft(e,t,t.pendingProps,r),t.child;case 8:return ft(e,t,t.pendingProps.children,r),t.child;case 12:return ft(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,i=t.memoizedProps,a=n.value,we(rs,o._currentValue),o._currentValue=a,i!==null)if(ln(i.value,a)){if(i.children===n.children&&!_t.current){t=Zn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===o){if(i.tag===1){s=An(-1,r&-r),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),np(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(E(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),np(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ft(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,zo(t,r),n=Ht(n),o=o(n),t.flags|=1,ft(e,t,o,r),t.child;case 14:return o=t.type,n=tn(o,t.pendingProps),n=tn(o.type,n),lb(e,t,o,n,r);case 15:return JS(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),Fl(e,t),t.tag=1,$t(o)?(e=!0,es(t)):e=!1,zo(t,r),BS(t,o,n),op(t,o,n,r),lp(null,t,o,!0,e,r);case 19:return qS(e,t,r);case 22:return GS(e,t,r)}throw Error(E(156,t.tag))};function mk(e,t){return Wb(e,t)}function uI(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,r,o){return new uI(e,t,r,o)}function of(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dI(e){if(typeof e=="function")return of(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_p)return 11;if(e===$p)return 14}return 2}function pr(e,t){var r=e.alternate;return r===null?(r=Bt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Zl(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")of(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case uo:return Ar(r.children,n,i,t);case kp:a=8,n|=8;break;case Pd:return e=Bt(12,r,t,n|2),e.elementType=Pd,e.lanes=i,e;case Rd:return e=Bt(13,r,t,n),e.elementType=Rd,e.lanes=i,e;case Ed:return e=Bt(19,r,t,n),e.elementType=Ed,e.lanes=i,e;case $b:return $s(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kb:a=10;break e;case _b:a=9;break e;case _p:a=11;break e;case $p:a=14;break e;case Qn:a=16,o=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Bt(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function Ar(e,t,r,o){return e=Bt(7,e,o,t),e.lanes=r,e}function $s(e,t,r,o){return e=Bt(22,e,o,t),e.elementType=$b,e.lanes=r,e.stateNode={isHidden:!1},e}function wd(e,t,r){return e=Bt(6,e,null,t),e.lanes=r,e}function zd(e,t,r){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pI(e,t,r,o,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cd(0),this.expirationTimes=cd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cd(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function af(e,t,r,o,n,i,a,l,s){return e=new pI(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mp(i),e}function fI(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:co,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function gk(e){if(!e)return mr;e=e._reactInternals;e:{if(Hr(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var r=e.type;if($t(r))return gS(e,r,t)}return t}function vk(e,t,r,o,n,i,a,l,s){return e=af(r,o,!0,e,n,i,a,l,s),e.context=gk(null),r=e.current,o=mt(),n=dr(r),i=An(o,n),i.callback=t??null,cr(r,i,n),e.current.lanes=n,ma(e,n,o),wt(e,o),e}function ws(e,t,r,o){var n=t.current,i=mt(),a=dr(n);return r=gk(r),t.context===null?t.context=r:t.pendingContext=r,t=An(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=cr(n,t,a),e!==null&&(an(e,n,a,i),Ll(e,n,a)),a}function fs(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function xb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function lf(e,t){xb(e,t),(e=e.alternate)&&xb(e,t)}function mI(){return null}var yk=typeof reportError=="function"?reportError:function(e){console.error(e)};function sf(e){this._internalRoot=e}zs.prototype.render=sf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));ws(e,t,null,null)};zs.prototype.unmount=sf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Br(function(){ws(null,e,null,null)}),t[Wn]=null}};function zs(e){this._internalRoot=e}zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gb();e={blockedOn:null,target:e,priority:t};for(var r=0;r<tr.length&&t!==0&&t<tr[r].priority;r++);tr.splice(r,0,e),r===0&&Kb(e)}};function cf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Is(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bb(){}function gI(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=fs(a);i.call(c)}}var a=vk(t,o,e,0,null,!1,!1,"",bb);return e._reactRootContainer=a,e[Wn]=a.current,ia(e.nodeType===8?e.parentNode:e),Br(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var l=o;o=function(){var c=fs(s);l.call(c)}}var s=af(e,0,!1,null,null,!1,!1,"",bb);return e._reactRootContainer=s,e[Wn]=s.current,ia(e.nodeType===8?e.parentNode:e),Br(function(){ws(t,s,r,o)}),s}function Ps(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var l=n;n=function(){var s=fs(a);l.call(s)}}ws(t,a,e,n)}else a=gI(r,t,e,n,o);return fs(a)}Hb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Fi(t.pendingLanes);r!==0&&(Ip(t,r|1),wt(t,Ue()),(pe&6)===0&&(Oo=Ue()+500,yr()))}break;case 13:Br(function(){var o=Mn(e,1);if(o!==null){var n=mt();an(o,e,1,n)}}),lf(e,1)}};Pp=function(e){if(e.tag===13){var t=Mn(e,134217728);if(t!==null){var r=mt();an(t,e,134217728,r)}lf(e,134217728)}};Jb=function(e){if(e.tag===13){var t=dr(e),r=Mn(e,t);if(r!==null){var o=mt();an(r,e,t,o)}lf(e,t)}};Gb=function(){return ve};Xb=function(e,t){var r=ve;try{return ve=e,t()}finally{ve=r}};Fd=function(e,t,r){switch(t){case"input":if(jd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=hs(o);if(!n)throw Error(E(90));zb(o),jd(o,n)}}}break;case"textarea":Pb(e,r);break;case"select":t=r.value,t!=null&&ko(e,!!r.multiple,t,!1)}};Db=tf;Nb=Br;var vI={usingClientEntryPoint:!1,Events:[va,go,hs,jb,Ob,tf]},Ni={findFiberByHostInstance:Dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},yI={bundleType:Ni.bundleType,version:Ni.version,rendererPackageName:Ni.rendererPackageName,rendererConfig:Ni.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ab(e),e===null?null:e.stateNode},findFiberByHostInstance:Ni.findFiberByHostInstance||mI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Li=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Li.isDisabled&&Li.supportsFiber))try{ms=Li.inject(yI),bn=Li}catch{}var Li;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vI;Ot.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cf(t))throw Error(E(200));return fI(e,t,null,r)};Ot.createRoot=function(e,t){if(!cf(e))throw Error(E(299));var r=!1,o="",n=yk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=af(e,1,!1,null,null,r,!1,o,n),e[Wn]=t.current,ia(e.nodeType===8?e.parentNode:e),new sf(t)};Ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=Ab(t),e=e===null?null:e.stateNode,e};Ot.flushSync=function(e){return Br(e)};Ot.hydrate=function(e,t,r){if(!Is(t))throw Error(E(200));return Ps(null,e,t,!0,r)};Ot.hydrateRoot=function(e,t,r){if(!cf(e))throw Error(E(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=yk;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=vk(t,null,e,1,r??null,n,!1,i,a),e[Wn]=t.current,ia(e),o)for(e=0;e<o.length;e++)r=o[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new zs(t)};Ot.render=function(e,t,r){if(!Is(t))throw Error(E(200));return Ps(null,e,t,!1,r)};Ot.unmountComponentAtNode=function(e){if(!Is(e))throw Error(E(40));return e._reactRootContainer?(Br(function(){Ps(null,null,e,!1,function(){e._reactRootContainer=null,e[Wn]=null})}),!0):!1};Ot.unstable_batchedUpdates=tf;Ot.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Is(r))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return Ps(e,t,r,!1,o)};Ot.version="18.3.1-next-f1338f8080-20240426"});var Sk=jn((Hj,bk)=>{"use strict";function xk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xk)}catch(e){console.error(e)}}xk(),bk.exports=hk()});var _k=jn(uf=>{"use strict";var kk=Sk();uf.createRoot=kk.createRoot,uf.hydrateRoot=kk.hydrateRoot;var Jj});var wk=jn(Rs=>{"use strict";var hI=_e(),xI=Symbol.for("react.element"),bI=Symbol.for("react.fragment"),SI=Object.prototype.hasOwnProperty,kI=hI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_I={key:!0,ref:!0,__self:!0,__source:!0};function $k(e,t,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)SI.call(t,o)&&!_I.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:xI,type:e,key:i,ref:a,props:n,_owner:kI.current}}Rs.Fragment=bI;Rs.jsx=$k;Rs.jsxs=$k});var q=jn((Kj,zk)=>{"use strict";zk.exports=wk()});var Hw=W(_e(),1),Jw=W(_k(),1);var Xe=W(_e(),1);var Ik=W(_e(),1),fe=W(q(),1);function A({children:e,variant:t="primary",size:r="md",disabled:o=!1,iconLeft:n,iconRight:i,onClick:a,type:l="button",style:s,...c}){let d={sm:{height:32,padding:"0 12px",font:"var(--text-sm)",gap:6},md:{height:40,padding:"0 16px",font:"var(--text-sm)",gap:8},lg:{height:48,padding:"0 22px",font:"var(--text-base)",gap:8}},p=d[r]??d.md,f={primary:{background:"var(--honey)",color:"var(--honey-on)",border:"1px solid transparent"},secondary:{background:"var(--bg-elevated)",color:"var(--text-primary)",border:"1px solid var(--border-strong)"},ghost:{background:"transparent",color:"var(--text-secondary)",border:"1px solid transparent"},pollinate:{background:"var(--pollinate)",color:"#FFFFFF",border:"1px solid transparent"},danger:{background:"var(--severity-critical-bg)",color:"var(--severity-critical)",border:"1px solid var(--severity-critical)"}},g=f[t]??f.primary,b={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:p.gap,height:p.height,padding:p.padding,fontFamily:"var(--font-sans)",fontSize:p.font,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,borderRadius:"var(--radius-md)",cursor:o?"not-allowed":"pointer",opacity:o?.45:1,transition:"background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out)",whiteSpace:"nowrap",userSelect:"none",...g,...s},h={primary:"var(--honey-hover)",secondary:"var(--bg-subtle)",ghost:"var(--bg-elevated)",pollinate:"var(--pollinate-hover)",danger:"var(--severity-critical-bg)"};return(0,fe.jsxs)("button",{type:l,disabled:o,onClick:a,style:b,onMouseEnter:S=>{o||(S.currentTarget.style.background=h[t]??h.primary)},onMouseLeave:S=>{o||(S.currentTarget.style.background=String(g.background))},onMouseDown:S=>{o||(S.currentTarget.style.transform="translateY(1px)")},onMouseUp:S=>{o||(S.currentTarget.style.transform="none")},...c,children:[n,e,i]})}function Q({children:e,tone:t="neutral",mono:r=!1,dot:o=!1,style:n}){let i={neutral:{bg:"var(--bg-subtle)",fg:"var(--text-secondary)",bd:"var(--border-strong)"},honey:{bg:"var(--honey-subtle)",fg:"var(--honey)",bd:"var(--honey-border)"},verified:{bg:"var(--severity-success-bg)",fg:"var(--verified)",bd:"var(--verified)"},pollinate:{bg:"var(--pollinate-subtle)",fg:"var(--pollinate)",bd:"var(--pollinate-border)"},info:{bg:"var(--severity-info-bg)",fg:"var(--severity-info)",bd:"var(--severity-info)"},warning:{bg:"var(--severity-warning-bg)",fg:"var(--severity-warning)",bd:"var(--severity-warning)"},critical:{bg:"var(--severity-critical-bg)",fg:"var(--severity-critical)",bd:"var(--severity-critical)"}},a=i[t]??i.neutral;return(0,fe.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,height:22,padding:"0 9px",background:a.bg,color:a.fg,border:`1px solid ${a.bd}`,borderRadius:"var(--radius-full)",fontFamily:r?"var(--font-mono)":"var(--font-sans)",fontSize:"var(--text-xs)",fontWeight:600,letterSpacing:r?"0.02em":"0",lineHeight:1,whiteSpace:"nowrap",...n},children:[o&&(0,fe.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:a.fg,flex:"none"}}),e]})}function sn({value:e,defaultValue:t,onChange:r,placeholder:o,mono:n=!1,size:i="md",disabled:a=!1,iconLeft:l,type:s="text",style:c,...d}){let[p,f]=Ik.default.useState(!1),b={sm:32,md:40,lg:48}[i]??40;return(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,height:b,padding:"0 12px",background:"var(--bg-surface)",border:`1px solid ${p?"var(--honey)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",boxShadow:p?"0 0 0 3px var(--honey-subtle)":"none",transition:"border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out)",opacity:a?.5:1,...c},children:[l&&(0,fe.jsx)("span",{style:{display:"inline-flex",color:"var(--text-tertiary)",flex:"none"},children:l}),(0,fe.jsx)("input",{type:s,value:e,defaultValue:t,onChange:r,placeholder:o,disabled:a,onFocus:()=>f(!0),onBlur:()=>f(!1),style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",color:"var(--text-primary)",fontFamily:n?"var(--font-mono)":"var(--font-sans)",fontSize:n?"var(--text-sm)":"var(--text-base)",letterSpacing:n?"0.01em":"0"},...d})]})}function Gt({label:e,value:t,unit:r,delta:o,accent:n="honey",style:i}){let a={honey:"var(--honey)",pollinate:"var(--pollinate)",verified:"var(--verified)",neutral:"var(--text-primary)"},l=a[n]??a.honey,s=typeof o=="number"?o>=0:null;return(0,fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",...i},children:[(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:l,letterSpacing:"-0.01em"},children:t}),r&&(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",color:"var(--text-tertiary)"},children:r})]}),o!=null&&(0,fe.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:s?"var(--verified)":"var(--severity-critical)"},children:[s?"\u25B2":"\u25BC"," ",Math.abs(o)," this week"]})]})}function Es({memoryKey:e,snippet:t,source:r,score:o,scope:n="personal",verified:i=!1,pollinating:a=!1,kind:l,secondary:s=!1,style:c}){let d=a?"var(--pollinate)":i?"var(--verified)":"var(--honey)";return(0,fe.jsxs)("div",{style:{display:"flex",gap:14,padding:16,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",transition:"border-color var(--dur-base) var(--ease-out)",opacity:s?.72:1,...c},children:[(0,fe.jsx)("div",{style:{flex:"none",paddingTop:2},children:(0,fe.jsx)("div",{style:{width:34,height:38,clipPath:"polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)",background:d,opacity:a?.9:1,animation:a?"hc-pollinate-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"}})}),(0,fe.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:7},children:[(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",fontWeight:600,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e}),i&&!a&&(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)",flex:"none"},children:"\u2713 verified"}),(s||l==="session")&&!a&&(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",flex:"none"},children:"session"}),a&&(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--pollinate)",flex:"none"},children:"pollinating\u2026"})]}),(0,fe.jsx)("div",{style:{fontSize:"var(--text-sm)",lineHeight:"20px",color:"var(--text-primary)"},children:t}),(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:1},children:[r&&(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:220},children:r}),(0,fe.jsx)("span",{style:{flex:1}}),(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:n}),typeof o=="number"&&(0,fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,fontWeight:600,color:"var(--text-secondary)"},children:o.toFixed(2)})]})]}),(0,fe.jsx)("style",{children:"@keyframes hc-pollinate-pulse { from { opacity: .5 } to { opacity: 1 } }"})]})}var dt=W(_e(),1);var In=W(_e(),1);var $I=W(_e(),1);var Pk=W(q(),1);function wI(e,t){let r=new Map,o=e.length,n=Math.ceil(Math.sqrt(o)),i=Math.ceil(o/n),a=Math.max(1,t.width-56),l=Math.max(1,t.height-56),s=n>1?a/(n-1):0,c=i>1?l/(i-1):0;for(let d=0;d<o;d++){let p=e[d];if(p===void 0)continue;let f=d%n,g=Math.floor(d/n);r.set(p.id,{x:n>1?28+f*s:t.width/2,y:i>1?28+g*c:t.height/2})}return r}function Cs(e,t,r){let o=new Map,n=e.length;if(n===0)return o;let i=r.width/2,a=r.height/2;if(n===1){let c=e[0];return c!==void 0&&o.set(c.id,{x:i,y:a}),o}if(n>36)return wI(e,r);let l=Math.max(0,Math.min(i,a)-28),s=n-1;for(let c=0;c<n;c++){let d=e[c];if(d===void 0)continue;if(c===0){o.set(d.id,{x:i,y:a});continue}let p=-Math.PI/2+2*Math.PI*(c-1)/s;o.set(d.id,{x:i+l*Math.cos(p),y:a+l*Math.sin(p)})}return o}function Rk(e,t){let r=new Map,o=new Map,n=new Set,i=new Set,a=[],l=[];for(let s of t){if(s.from===e&&s.to!==e){let c=`${s.kind}\0${s.to}`;n.has(c)||(n.add(c),r.has(s.kind)||(r.set(s.kind,[]),a.push(s.kind)),r.get(s.kind)?.push(s.to))}if(s.to===e&&s.from!==e){let c=`${s.kind}\0${s.from}`;i.has(c)||(i.add(c),o.has(s.kind)||(o.set(s.kind,[]),l.push(s.kind)),o.get(s.kind)?.push(s.from))}}return{outgoing:a.map(s=>({kind:s,ids:r.get(s)??[]})),incoming:l.map(s=>({kind:s,ids:o.get(s)??[]}))}}var u={};On(u,{$brand:()=>pf,$input:()=>jg,$output:()=>Tg,NEVER:()=>df,TimePrecision:()=>Lg,ZodAny:()=>zy,ZodArray:()=>Ey,ZodBase64:()=>ou,ZodBase64URL:()=>iu,ZodBigInt:()=>fi,ZodBigIntFormat:()=>su,ZodBoolean:()=>pi,ZodCIDRv4:()=>nu,ZodCIDRv6:()=>ru,ZodCUID:()=>Xc,ZodCUID2:()=>Kc,ZodCatch:()=>qy,ZodCodec:()=>Xa,ZodCustom:()=>Ka,ZodCustomStringFormat:()=>ui,ZodDate:()=>Ba,ZodDefault:()=>Hy,ZodDiscriminatedUnion:()=>Ty,ZodE164:()=>au,ZodEmail:()=>Hc,ZodEmoji:()=>Jc,ZodEnum:()=>si,ZodError:()=>nE,ZodExactOptional:()=>Zy,ZodFile:()=>Wy,ZodFirstPartyTypeKind:()=>dh,ZodFunction:()=>sh,ZodGUID:()=>Aa,ZodIPv4:()=>eu,ZodIPv6:()=>tu,ZodISODate:()=>Fc,ZodISODateTime:()=>Ac,ZodISODuration:()=>Mc,ZodISOTime:()=>Wc,ZodIntersection:()=>jy,ZodIssueCode:()=>oE,ZodJWT:()=>lu,ZodKSUID:()=>Qc,ZodLazy:()=>ih,ZodLiteral:()=>Fy,ZodMAC:()=>xy,ZodMap:()=>Uy,ZodNaN:()=>eh,ZodNanoID:()=>Gc,ZodNever:()=>Py,ZodNonOptional:()=>mu,ZodNull:()=>$y,ZodNullable:()=>Vy,ZodNumber:()=>di,ZodNumberFormat:()=>to,ZodObject:()=>Ha,ZodOptional:()=>fu,ZodPipe:()=>Ga,ZodPrefault:()=>Gy,ZodPreprocess:()=>th,ZodPromise:()=>lh,ZodReadonly:()=>nh,ZodRealError:()=>Pt,ZodRecord:()=>li,ZodSet:()=>Ay,ZodString:()=>ci,ZodStringFormat:()=>he,ZodSuccess:()=>Yy,ZodSymbol:()=>ky,ZodTemplateLiteral:()=>oh,ZodTransform:()=>My,ZodTuple:()=>Dy,ZodType:()=>oe,ZodULID:()=>Yc,ZodURL:()=>Za,ZodUUID:()=>wn,ZodUndefined:()=>_y,ZodUnion:()=>Ja,ZodUnknown:()=>Iy,ZodVoid:()=>Ry,ZodXID:()=>qc,ZodXor:()=>Cy,_ZodString:()=>Vc,_default:()=>Jy,_function:()=>y0,any:()=>G$,array:()=>Va,base64:()=>C$,base64url:()=>T$,bigint:()=>Z$,boolean:()=>Sy,catch:()=>Qy,check:()=>h0,cidrv4:()=>R$,cidrv6:()=>E$,clone:()=>vt,codec:()=>f0,coerce:()=>ph,config:()=>Ne,core:()=>Jn,cuid:()=>S$,cuid2:()=>k$,custom:()=>x0,date:()=>K$,decode:()=>py,decodeAsync:()=>my,describe:()=>b0,discriminatedUnion:()=>n0,e164:()=>j$,email:()=>d$,emoji:()=>x$,encode:()=>dy,encodeAsync:()=>fy,endsWith:()=>Yo,enum:()=>du,exactOptional:()=>By,file:()=>c0,flattenError:()=>wa,float32:()=>A$,float64:()=>F$,formatError:()=>za,fromJSONSchema:()=>I0,function:()=>y0,getErrorMap:()=>aE,globalRegistry:()=>nt,gt:()=>_n,gte:()=>ht,guid:()=>p$,hash:()=>U$,hex:()=>L$,hostname:()=>N$,httpUrl:()=>h$,includes:()=>Xo,instanceof:()=>k0,int:()=>Zc,int32:()=>W$,int64:()=>B$,intersection:()=>Oy,invertCodec:()=>m0,ipv4:()=>z$,ipv6:()=>P$,iso:()=>ai,json:()=>$0,jwt:()=>O$,keyof:()=>Y$,ksuid:()=>w$,lazy:()=>ah,length:()=>Qr,literal:()=>s0,locales:()=>Oa,looseObject:()=>e0,looseRecord:()=>o0,lowercase:()=>Jo,lt:()=>kn,lte:()=>Nt,mac:()=>I$,map:()=>i0,maxLength:()=>qr,maxSize:()=>$r,meta:()=>S0,mime:()=>qo,minLength:()=>Hn,minSize:()=>$n,multipleOf:()=>_r,nan:()=>p0,nanoid:()=>b$,nativeEnum:()=>l0,negative:()=>Rc,never:()=>cu,nonnegative:()=>Cc,nonoptional:()=>Ky,nonpositive:()=>Ec,normalize:()=>Qo,null:()=>wy,nullable:()=>Wa,nullish:()=>u0,number:()=>by,object:()=>q$,optional:()=>Fa,overwrite:()=>un,parse:()=>ly,parseAsync:()=>sy,partialRecord:()=>r0,pipe:()=>Bc,positive:()=>Pc,prefault:()=>Xy,preprocess:()=>w0,prettifyError:()=>wf,promise:()=>v0,property:()=>Tc,readonly:()=>rh,record:()=>Ly,refine:()=>ch,regex:()=>Ho,regexes:()=>Dt,registry:()=>lc,safeDecode:()=>vy,safeDecodeAsync:()=>hy,safeEncode:()=>gy,safeEncodeAsync:()=>yy,safeParse:()=>cy,safeParseAsync:()=>uy,set:()=>a0,setErrorMap:()=>iE,size:()=>Yr,slugify:()=>ri,startsWith:()=>Ko,strictObject:()=>Q$,string:()=>Ua,stringFormat:()=>D$,stringbool:()=>_0,success:()=>d0,superRefine:()=>uh,symbol:()=>H$,templateLiteral:()=>g0,toJSONSchema:()=>Nc,toLowerCase:()=>ti,toUpperCase:()=>ni,transform:()=>pu,treeifyError:()=>$f,trim:()=>ei,tuple:()=>Ny,uint32:()=>M$,uint64:()=>V$,ulid:()=>_$,undefined:()=>J$,union:()=>uu,unknown:()=>eo,uppercase:()=>Go,url:()=>y$,util:()=>R,uuid:()=>f$,uuidv4:()=>m$,uuidv6:()=>g$,uuidv7:()=>v$,void:()=>X$,xid:()=>$$,xor:()=>t0});var Jn={};On(Jn,{$ZodAny:()=>eg,$ZodArray:()=>ig,$ZodAsyncError:()=>cn,$ZodBase64:()=>Bm,$ZodBase64URL:()=>Vm,$ZodBigInt:()=>Qs,$ZodBigIntFormat:()=>Km,$ZodBoolean:()=>Ea,$ZodCIDRv4:()=>Wm,$ZodCIDRv6:()=>Mm,$ZodCUID:()=>Rm,$ZodCUID2:()=>Em,$ZodCatch:()=>_g,$ZodCheck:()=>be,$ZodCheckBigIntFormat:()=>im,$ZodCheckEndsWith:()=>ym,$ZodCheckGreaterThan:()=>Js,$ZodCheckIncludes:()=>gm,$ZodCheckLengthEquals:()=>dm,$ZodCheckLessThan:()=>Hs,$ZodCheckLowerCase:()=>fm,$ZodCheckMaxLength:()=>cm,$ZodCheckMaxSize:()=>am,$ZodCheckMimeType:()=>xm,$ZodCheckMinLength:()=>um,$ZodCheckMinSize:()=>lm,$ZodCheckMultipleOf:()=>rm,$ZodCheckNumberFormat:()=>om,$ZodCheckOverwrite:()=>bm,$ZodCheckProperty:()=>hm,$ZodCheckRegex:()=>pm,$ZodCheckSizeEquals:()=>sm,$ZodCheckStartsWith:()=>vm,$ZodCheckStringFormat:()=>Bo,$ZodCheckUpperCase:()=>mm,$ZodCodec:()=>Ta,$ZodCustom:()=>Cg,$ZodCustomStringFormat:()=>Gm,$ZodDate:()=>og,$ZodDefault:()=>xg,$ZodDiscriminatedUnion:()=>sg,$ZodE164:()=>Hm,$ZodEmail:()=>wm,$ZodEmoji:()=>Im,$ZodEncodeError:()=>hr,$ZodEnum:()=>fg,$ZodError:()=>$a,$ZodExactOptional:()=>yg,$ZodFile:()=>gg,$ZodFunction:()=>Pg,$ZodGUID:()=>_m,$ZodIPv4:()=>Um,$ZodIPv6:()=>Am,$ZodISODate:()=>Dm,$ZodISODateTime:()=>Om,$ZodISODuration:()=>Lm,$ZodISOTime:()=>Nm,$ZodIntersection:()=>cg,$ZodJWT:()=>Jm,$ZodKSUID:()=>jm,$ZodLazy:()=>Eg,$ZodLiteral:()=>mg,$ZodMAC:()=>Fm,$ZodMap:()=>dg,$ZodNaN:()=>$g,$ZodNanoID:()=>Pm,$ZodNever:()=>ng,$ZodNonOptional:()=>Sg,$ZodNull:()=>Qm,$ZodNullable:()=>hg,$ZodNumber:()=>qs,$ZodNumberFormat:()=>Xm,$ZodObject:()=>a_,$ZodObjectJIT:()=>ag,$ZodOptional:()=>tc,$ZodPipe:()=>nc,$ZodPrefault:()=>bg,$ZodPreprocess:()=>wg,$ZodPromise:()=>Rg,$ZodReadonly:()=>zg,$ZodRealError:()=>It,$ZodRecord:()=>ug,$ZodRegistry:()=>ac,$ZodSet:()=>pg,$ZodString:()=>Kr,$ZodStringFormat:()=>ye,$ZodSuccess:()=>kg,$ZodSymbol:()=>Ym,$ZodTemplateLiteral:()=>Ig,$ZodTransform:()=>vg,$ZodTuple:()=>ec,$ZodType:()=>ee,$ZodULID:()=>Cm,$ZodURL:()=>zm,$ZodUUID:()=>$m,$ZodUndefined:()=>qm,$ZodUnion:()=>Ca,$ZodUnknown:()=>tg,$ZodVoid:()=>rg,$ZodXID:()=>Tm,$ZodXor:()=>lg,$brand:()=>pf,$constructor:()=>x,$input:()=>jg,$output:()=>Tg,Doc:()=>Ra,JSONSchema:()=>s$,JSONSchemaGenerator:()=>Lc,NEVER:()=>df,TimePrecision:()=>Lg,_any:()=>ov,_array:()=>dv,_base64:()=>$c,_base64url:()=>wc,_bigint:()=>Yg,_boolean:()=>Xg,_catch:()=>GR,_check:()=>l$,_cidrv4:()=>kc,_cidrv6:()=>_c,_coercedBigint:()=>qg,_coercedBoolean:()=>Kg,_coercedDate:()=>cv,_coercedNumber:()=>Zg,_coercedString:()=>Dg,_cuid:()=>gc,_cuid2:()=>vc,_custom:()=>fv,_date:()=>sv,_decode:()=>Ls,_decodeAsync:()=>As,_default:()=>VR,_discriminatedUnion:()=>jR,_e164:()=>zc,_email:()=>sc,_emoji:()=>fc,_encode:()=>Ns,_encodeAsync:()=>Us,_endsWith:()=>Yo,_enum:()=>AR,_file:()=>pv,_float32:()=>Vg,_float64:()=>Hg,_gt:()=>_n,_gte:()=>ht,_guid:()=>Da,_includes:()=>Xo,_int:()=>Bg,_int32:()=>Jg,_int64:()=>Qg,_intersection:()=>OR,_ipv4:()=>bc,_ipv6:()=>Sc,_isoDate:()=>Ag,_isoDateTime:()=>Ug,_isoDuration:()=>Wg,_isoTime:()=>Fg,_jwt:()=>Ic,_ksuid:()=>xc,_lazy:()=>qR,_length:()=>Qr,_literal:()=>WR,_lowercase:()=>Jo,_lt:()=>kn,_lte:()=>Nt,_mac:()=>Ng,_map:()=>LR,_max:()=>Nt,_maxLength:()=>qr,_maxSize:()=>$r,_mime:()=>qo,_min:()=>ht,_minLength:()=>Hn,_minSize:()=>$n,_multipleOf:()=>_r,_nan:()=>uv,_nanoid:()=>mc,_nativeEnum:()=>FR,_negative:()=>Rc,_never:()=>av,_nonnegative:()=>Cc,_nonoptional:()=>HR,_nonpositive:()=>Ec,_normalize:()=>Qo,_null:()=>rv,_nullable:()=>BR,_number:()=>Mg,_optional:()=>ZR,_overwrite:()=>un,_parse:()=>Fo,_parseAsync:()=>Wo,_pipe:()=>XR,_positive:()=>Pc,_promise:()=>QR,_property:()=>Tc,_readonly:()=>KR,_record:()=>NR,_refine:()=>mv,_regex:()=>Ho,_safeDecode:()=>Ws,_safeDecodeAsync:()=>Zs,_safeEncode:()=>Fs,_safeEncodeAsync:()=>Ms,_safeParse:()=>Mo,_safeParseAsync:()=>Zo,_set:()=>UR,_size:()=>Yr,_slugify:()=>ri,_startsWith:()=>Ko,_string:()=>Og,_stringFormat:()=>oi,_stringbool:()=>hv,_success:()=>JR,_superRefine:()=>gv,_symbol:()=>tv,_templateLiteral:()=>YR,_toLowerCase:()=>ti,_toUpperCase:()=>ni,_transform:()=>MR,_trim:()=>ei,_tuple:()=>DR,_uint32:()=>Gg,_uint64:()=>ev,_ulid:()=>yc,_undefined:()=>nv,_union:()=>CR,_unknown:()=>iv,_uppercase:()=>Go,_url:()=>Na,_uuid:()=>cc,_uuidv4:()=>uc,_uuidv6:()=>dc,_uuidv7:()=>pc,_void:()=>lv,_xid:()=>hc,_xor:()=>TR,clone:()=>vt,config:()=>Ne,createStandardJSONSchemaMethod:()=>ii,createToJSONSchemaMethod:()=>xv,decode:()=>QI,decodeAsync:()=>tP,describe:()=>vv,encode:()=>qI,encodeAsync:()=>eP,extractDefs:()=>zr,finalize:()=>Ir,flattenError:()=>wa,formatError:()=>za,globalConfig:()=>Jr,globalRegistry:()=>nt,initializeContext:()=>wr,isValidBase64:()=>Zm,isValidBase64URL:()=>n_,isValidJWT:()=>r_,locales:()=>Oa,meta:()=>yv,parse:()=>Os,parseAsync:()=>Ds,prettifyError:()=>wf,process:()=>me,regexes:()=>Dt,registry:()=>lc,safeDecode:()=>rP,safeDecodeAsync:()=>iP,safeEncode:()=>nP,safeEncodeAsync:()=>oP,safeParse:()=>zf,safeParseAsync:()=>If,toDotPath:()=>Dk,toJSONSchema:()=>Nc,treeifyError:()=>$f,util:()=>R,version:()=>Sm});var Ek,df=Object.freeze({status:"aborted"});function x(e,t,r){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);let c=a.prototype,d=Object.keys(c);for(let p=0;p<d.length;p++){let f=d[p];f in l||(l[f]=c[f].bind(l))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let c=r?.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var pf=Symbol("zod_brand"),cn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},hr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Ek=globalThis).__zod_globalConfig??(Ek.__zod_globalConfig={});var Jr=globalThis.__zod_globalConfig;function Ne(e){return e&&Object.assign(Jr,e),Jr}var R={};On(R,{BIGINT_FORMAT_RANGES:()=>kf,Class:()=>mf,NUMBER_FORMAT_RANGES:()=>Sf,aborted:()=>kr,allowsEval:()=>yf,assert:()=>EI,assertEqual:()=>zI,assertIs:()=>PI,assertNever:()=>RI,assertNotEqual:()=>II,assignProp:()=>br,base64ToUint8Array:()=>Tk,base64urlToUint8Array:()=>JI,cached:()=>Uo,captureStackTrace:()=>js,cleanEnum:()=>HI,cleanRegex:()=>ba,clone:()=>vt,cloneDef:()=>TI,createTransparentProxy:()=>UI,defineLazy:()=>le,esc:()=>Ts,escapeRegex:()=>Xt,explicitlyAborted:()=>_f,extend:()=>WI,finalizeIssue:()=>yt,floatSafeRemainder:()=>gf,getElementAtPath:()=>jI,getEnumValues:()=>xa,getLengthableOrigin:()=>_a,getParsedType:()=>LI,getSizableOrigin:()=>ka,hexToUint8Array:()=>XI,isObject:()=>Gr,isPlainObject:()=>Sr,issue:()=>Ao,joinValues:()=>k,jsonStringifyReplacer:()=>Lo,merge:()=>ZI,mergeDefs:()=>Vn,normalizeParams:()=>j,nullish:()=>xr,numKeys:()=>NI,objectClone:()=>CI,omit:()=>FI,optionalKeys:()=>bf,parsedType:()=>I,partial:()=>BI,pick:()=>AI,prefixIssues:()=>zt,primitiveTypes:()=>xf,promiseAllObject:()=>OI,propertyKeyTypes:()=>Sa,randomString:()=>DI,required:()=>VI,safeExtend:()=>MI,shallowClone:()=>hf,slugify:()=>vf,stringifyPrimitive:()=>z,uint8ArrayToBase64:()=>jk,uint8ArrayToBase64url:()=>GI,uint8ArrayToHex:()=>KI,unwrapMessage:()=>ha});function zI(e){return e}function II(e){return e}function PI(e){}function RI(e){throw new Error("Unexpected value in exhaustive check")}function EI(e){}function xa(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function k(e,t="|"){return e.map(r=>z(r)).join(t)}function Lo(e,t){return typeof t=="bigint"?t.toString():t}function Uo(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function xr(e){return e==null}function ba(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function gf(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var Ck=Symbol("evaluating");function le(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Ck)return o===void 0&&(o=Ck,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function CI(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function br(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Vn(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function TI(e){return Vn(e._zod.def)}function jI(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function OI(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function DI(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Ts(e){return JSON.stringify(e)}function vf(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var js="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var yf=Uo(()=>{if(Jr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Sr(e){if(Gr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Gr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function hf(e){return Sr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function NI(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var LI=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Sa=new Set(["string","number","symbol"]),xf=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Xt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function j(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 new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function UI(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function bf(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Sf={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},kf={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function AI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Vn(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return br(this,"shape",a),a},checks:[]});return vt(e,i)}function FI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Vn(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return br(this,"shape",a),a},checks:[]});return vt(e,i)}function WI(e,t){if(!Sr(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Vn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return br(this,"shape",i),i}});return vt(e,n)}function MI(e,t){if(!Sr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Vn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return br(this,"shape",o),o}});return vt(e,r)}function ZI(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Vn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return br(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return vt(e,r)}function BI(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Vn(t._zod.def,{get shape(){let l=t._zod.def.shape,s={...l};if(r)for(let c in r){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(let c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return br(this,"shape",s),s},checks:[]});return vt(t,a)}function VI(e,t,r){let o=Vn(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return br(this,"shape",i),i}});return vt(t,o)}function kr(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function _f(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function zt(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function ha(e){return typeof e=="string"?e:e?.message}function yt(e,t,r){let o=e.message?e.message:ha(e.inst?._zod.def?.error?.(e))??ha(t?.error?.(e))??ha(r.customError?.(e))??ha(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t?.reportInput&&(l.input=a),l}function ka(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function _a(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function I(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 r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Ao(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function HI(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Tk(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function jk(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function JI(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Tk(t+r)}function GI(e){return jk(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function XI(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function KI(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var mf=class{constructor(...t){}};var Ok=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Lo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},$a=x("$ZodError",Ok),It=x("$ZodError",Ok,{Parent:Error});function wa(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function za(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let l=[...i,...a.path];if(l.length===0)r._errors.push(t(a));else{let s=r,c=0;for(;c<l.length;){let d=l[c];c===l.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(a))):s[d]=s[d]||{_errors:[]},s=s[d],c++}}}};return o(e),r}function $f(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,l;for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0){r.errors.push(t(s));continue}let d=r,p=0;for(;p<c.length;){let f=c[p],g=p===c.length-1;typeof f=="string"?(d.properties??(d.properties={}),(a=d.properties)[f]??(a[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(l=d.items)[f]??(l[f]={errors:[]}),d=d.items[f]),g&&d.errors.push(t(s)),p++}}};return o(e),r}function Dk(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function wf(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Dk(o.path)}`);return t.join(`
|
|
9
|
+
`)}var Fo=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new cn;if(a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>yt(s,i,Ne())));throw js(l,n?.callee),l}return a.value},Os=Fo(It),Wo=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>yt(s,i,Ne())));throw js(l,n?.callee),l}return a.value},Ds=Wo(It),Mo=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new cn;return i.issues.length?{success:!1,error:new(e??$a)(i.issues.map(a=>yt(a,n,Ne())))}:{success:!0,data:i.value}},zf=Mo(It),Zo=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>yt(a,n,Ne())))}:{success:!0,data:i.value}},If=Zo(It),Ns=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Fo(e)(t,r,n)},qI=Ns(It),Ls=e=>(t,r,o)=>Fo(e)(t,r,o),QI=Ls(It),Us=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Wo(e)(t,r,n)},eP=Us(It),As=e=>async(t,r,o)=>Wo(e)(t,r,o),tP=As(It),Fs=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Mo(e)(t,r,n)},nP=Fs(It),Ws=e=>(t,r,o)=>Mo(e)(t,r,o),rP=Ws(It),Ms=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Zo(e)(t,r,n)},oP=Ms(It),Zs=e=>async(t,r,o)=>Zo(e)(t,r,o),iP=Zs(It);var Dt={};On(Dt,{base64:()=>Zf,base64url:()=>Bs,bigint:()=>Kf,boolean:()=>qf,browserEmail:()=>fP,cidrv4:()=>Wf,cidrv6:()=>Mf,cuid:()=>Pf,cuid2:()=>Rf,date:()=>Hf,datetime:()=>Gf,domain:()=>vP,duration:()=>Of,e164:()=>Vf,email:()=>Nf,emoji:()=>Lf,extendedDuration:()=>aP,guid:()=>Df,hex:()=>yP,hostname:()=>gP,html5Email:()=>uP,httpProtocol:()=>Bf,idnEmail:()=>pP,integer:()=>Yf,ipv4:()=>Uf,ipv6:()=>Af,ksuid:()=>Tf,lowercase:()=>tm,mac:()=>Ff,md5_base64:()=>xP,md5_base64url:()=>bP,md5_hex:()=>hP,nanoid:()=>jf,null:()=>Qf,number:()=>Vs,rfc5322Email:()=>dP,sha1_base64:()=>kP,sha1_base64url:()=>_P,sha1_hex:()=>SP,sha256_base64:()=>wP,sha256_base64url:()=>zP,sha256_hex:()=>$P,sha384_base64:()=>PP,sha384_base64url:()=>RP,sha384_hex:()=>IP,sha512_base64:()=>CP,sha512_base64url:()=>TP,sha512_hex:()=>EP,string:()=>Xf,time:()=>Jf,ulid:()=>Ef,undefined:()=>em,unicodeEmail:()=>Nk,uppercase:()=>nm,uuid:()=>Xr,uuid4:()=>lP,uuid6:()=>sP,uuid7:()=>cP,xid:()=>Cf});var Pf=/^[cC][0-9a-z]{6,}$/,Rf=/^[0-9a-z]+$/,Ef=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Cf=/^[0-9a-vA-V]{20}$/,Tf=/^[A-Za-z0-9]{27}$/,jf=/^[a-zA-Z0-9_-]{21}$/,Of=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,aP=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Df=/^([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})$/,Xr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,lP=Xr(4),sP=Xr(6),cP=Xr(7),Nf=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,uP=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,dP=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Nk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,pP=Nk,fP=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,mP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Lf(){return new RegExp(mP,"u")}var Uf=/^(?:(?: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])$/,Af=/^(([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}|:))$/,Ff=e=>{let t=Xt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Wf=/^((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])$/,Mf=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Zf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Bs=/^[A-Za-z0-9_-]*$/,gP=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,vP=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Bf=/^https?$/,Vf=/^\+[1-9]\d{6,14}$/,Lk="(?:(?:\\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])))",Hf=new RegExp(`^${Lk}$`);function Uk(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}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Jf(e){return new RegExp(`^${Uk(e)}$`)}function Gf(e){let t=Uk({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${Lk}T(?:${o})$`)}var Xf=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Kf=/^-?\d+n?$/,Yf=/^-?\d+$/,Vs=/^-?\d+(?:\.\d+)?$/,qf=/^(?:true|false)$/i,Qf=/^null$/i;var em=/^undefined$/i;var tm=/^[^A-Z]*$/,nm=/^[^a-z]*$/,yP=/^[0-9a-fA-F]*$/;function Ia(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Pa(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var hP=/^[0-9a-fA-F]{32}$/,xP=Ia(22,"=="),bP=Pa(22),SP=/^[0-9a-fA-F]{40}$/,kP=Ia(27,"="),_P=Pa(27),$P=/^[0-9a-fA-F]{64}$/,wP=Ia(43,"="),zP=Pa(43),IP=/^[0-9a-fA-F]{96}$/,PP=Ia(64,""),RP=Pa(64),EP=/^[0-9a-fA-F]{128}$/,CP=Ia(86,"=="),TP=Pa(86);var be=x("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Fk={number:"number",bigint:"bigint",object:"date"},Hs=x("$ZodCheckLessThan",(e,t)=>{be.init(e,t);let r=Fk[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Js=x("$ZodCheckGreaterThan",(e,t)=>{be.init(e,t);let r=Fk[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rm=x("$ZodCheckMultipleOf",(e,t)=>{be.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):gf(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),om=x("$ZodCheckNumberFormat",(e,t)=>{be.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Sf[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=n,l.maximum=i,r&&(l.pattern=Yf)}),e._zod.check=a=>{let l=a.value;if(r){if(!Number.isInteger(l)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}l<n&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),im=x("$ZodCheckBigIntFormat",(e,t)=>{be.init(e,t);let[r,o]=kf[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),am=x("$ZodCheckMaxSize",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:ka(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),lm=x("$ZodCheckMinSize",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:ka(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sm=x("$ZodCheckSizeEquals",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:ka(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),cm=x("$ZodCheckMaxLength",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=_a(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),um=x("$ZodCheckMinLength",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=_a(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),dm=x("$ZodCheckLengthEquals",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=_a(n),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Bo=x("$ZodCheckStringFormat",(e,t)=>{var r,o;be.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),pm=x("$ZodCheckRegex",(e,t)=>{Bo.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),fm=x("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tm),Bo.init(e,t)}),mm=x("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=nm),Bo.init(e,t)}),gm=x("$ZodCheckIncludes",(e,t)=>{be.init(e,t);let r=Xt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),vm=x("$ZodCheckStartsWith",(e,t)=>{be.init(e,t);let r=new RegExp(`^${Xt(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),ym=x("$ZodCheckEndsWith",(e,t)=>{be.init(e,t);let r=new RegExp(`.*${Xt(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Ak(e,t,r){e.issues.length&&t.issues.push(...zt(r,e.issues))}var hm=x("$ZodCheckProperty",(e,t)=>{be.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>Ak(n,r,t.property));Ak(o,r,t.property)}}),xm=x("$ZodCheckMimeType",(e,t)=>{be.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),bm=x("$ZodCheckOverwrite",(e,t)=>{be.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Ra=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
|
|
10
10
|
`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
|
|
11
|
-
`))}};var km={major:4,minor:4,patch:3};var ee=h("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=km;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,l,s)=>{let c=kr(a),d;for(let p of l){if(p._zod.def.when){if($f(a)||!p._zod.def.when(a))continue}else if(c)continue;let f=a.issues.length,g=p._zod.check(a);if(g instanceof Promise&&s?.async===!1)throw new cn;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await g,a.issues.length!==f&&(c||(c=kr(a,f)))});else{if(a.issues.length===f)continue;c||(c=kr(a,f))}}return d?d.then(()=>a):a},i=(a,l,s)=>{if(kr(a))return a.aborted=!0,a;let c=n(l,o,s);if(c instanceof Promise){if(s.async===!1)throw new cn;return c.then(d=>e._zod.parse(d,s))}return e._zod.parse(c,s)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return c instanceof Promise?c.then(d=>i(d,a,l)):i(c,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===!1)throw new cn;return s.then(c=>n(c,o,l))}return n(s,o,l)}}ae(e,"~standard",()=>({validate:n=>{try{let i=If(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Pf(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Qr=h("$ZodString",(e,t)=>{ee.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Kf(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ye=h("$ZodStringFormat",(e,t)=>{Zo.init(e,t),Qr.init(e,t)}),$m=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Nf),ye.init(e,t)}),wm=h("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Yr(o))}else t.pattern??(t.pattern=Yr());ye.init(e,t)}),zm=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Lf),ye.init(e,t)}),Im=h("$ZodURL",(e,t)=>{ye.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===Vf.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Pm=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Uf()),ye.init(e,t)}),Em=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Of),ye.init(e,t)}),Rm=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ef),ye.init(e,t)}),Cm=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Rf),ye.init(e,t)}),Tm=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Cf),ye.init(e,t)}),jm=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Tf),ye.init(e,t)}),Om=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=jf),ye.init(e,t)}),Dm=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Xf(t)),ye.init(e,t)}),Nm=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Jf),ye.init(e,t)}),Lm=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Gf(t)),ye.init(e,t)}),Um=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Df),ye.init(e,t)}),Am=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Af),ye.init(e,t),e._zod.bag.format="ipv4"}),Fm=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ff),ye.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Wm=h("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Wf(t.delimiter)),ye.init(e,t),e._zod.bag.format="mac"}),Mm=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Mf),ye.init(e,t)}),Zm=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zf),ye.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Bm(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Vm=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Bf),ye.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Bm(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function r_(e){if(!Vs.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Bm(r)}var Hm=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Vs),ye.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{r_(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Jm=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Hf),ye.init(e,t)});function o_(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Gm=h("$ZodJWT",(e,t)=>{ye.init(e,t),e._zod.check=r=>{o_(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Xm=h("$ZodCustomStringFormat",(e,t)=>{ye.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),qs=h("$ZodNumber",(e,t)=>{ee.init(e,t),e._zod.pattern=e._zod.bag.pattern??Hs,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Km=h("$ZodNumberFormat",(e,t)=>{im.init(e,t),qs.init(e,t)}),Ca=h("$ZodBoolean",(e,t)=>{ee.init(e,t),e._zod.pattern=qf,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),ec=h("$ZodBigInt",(e,t)=>{ee.init(e,t),e._zod.pattern=Yf,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Ym=h("$ZodBigIntFormat",(e,t)=>{am.init(e,t),ec.init(e,t)}),Qm=h("$ZodSymbol",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),qm=h("$ZodUndefined",(e,t)=>{ee.init(e,t),e._zod.pattern=tm,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),eg=h("$ZodNull",(e,t)=>{ee.init(e,t),e._zod.pattern=em,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),tg=h("$ZodAny",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),ng=h("$ZodUnknown",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),rg=h("$ZodNever",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),og=h("$ZodVoid",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),ig=h("$ZodDate",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Zk(e,t,r){e.issues.length&&t.issues.push(...zt(r,e.issues)),t.value[r]=e.value}var ag=h("$ZodArray",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let l=n[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Zk(c,r,a))):Zk(s,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function Qs(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...zt(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function i_(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Sf(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function a_(e,t,r,o,n,i){let a=[],l=n.keySet,s=n.catchall._zod,c=s.def.type,d=s.optin==="optional",p=s.optout==="optional";for(let f in t){if(f==="__proto__"||l.has(f))continue;if(c==="never"){a.push(f);continue}let g=s.run({value:t[f],issues:[]},o);g instanceof Promise?e.push(g.then(x=>Qs(x,r,f,t,d,p))):Qs(g,r,f,t,d,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var l_=h("$ZodObject",(e,t)=>{if(ee.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}let o=Lo(()=>i_(t));ae(e._zod,"propValues",()=>{let l=t.shape,s={};for(let c in l){let d=l[c]._zod;if(d.values){s[c]??(s[c]=new Set);for(let p of d.values)s[c].add(p)}}return s});let n=Kr,i=t.catchall,a;e._zod.parse=(l,s)=>{a??(a=o.value);let c=l.value;if(!n(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};let d=[],p=a.shape;for(let f of a.keys){let g=p[f],x=g._zod.optin==="optional",b=g._zod.optout==="optional",w=g._zod.run({value:c[f],issues:[]},s);w instanceof Promise?d.push(w.then(v=>Qs(v,l,f,c,x,b))):Qs(w,l,f,c,x,b)}return i?a_(d,c,l,s,o.value,e):d.length?Promise.all(d).then(()=>l):l}}),lg=h("$ZodObjectJIT",(e,t)=>{l_.init(e,t);let r=e._zod.parse,o=Lo(()=>i_(t)),n=f=>{let g=new Ra(["shape","payload","ctx"]),x=o.value,b=y=>{let S=js(y);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};g.write("const input = payload.value;");let w=Object.create(null),v=0;for(let y of x.keys)w[y]=`key_${v++}`;g.write("const newResult = {};");for(let y of x.keys){let S=w[y],_=js(y),E=f[y],O=E?._zod?.optin==="optional",W=E?._zod?.optout==="optional";g.write(`const ${S} = ${b(y)};`),O&&W?g.write(`
|
|
11
|
+
`))}};var Sm={major:4,minor:4,patch:3};var ee=x("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Sm;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,l,s)=>{let c=kr(a),d;for(let p of l){if(p._zod.def.when){if(_f(a)||!p._zod.def.when(a))continue}else if(c)continue;let f=a.issues.length,g=p._zod.check(a);if(g instanceof Promise&&s?.async===!1)throw new cn;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await g,a.issues.length!==f&&(c||(c=kr(a,f)))});else{if(a.issues.length===f)continue;c||(c=kr(a,f))}}return d?d.then(()=>a):a},i=(a,l,s)=>{if(kr(a))return a.aborted=!0,a;let c=n(l,o,s);if(c instanceof Promise){if(s.async===!1)throw new cn;return c.then(d=>e._zod.parse(d,s))}return e._zod.parse(c,s)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return c instanceof Promise?c.then(d=>i(d,a,l)):i(c,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===!1)throw new cn;return s.then(c=>n(c,o,l))}return n(s,o,l)}}le(e,"~standard",()=>({validate:n=>{try{let i=zf(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return If(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Kr=x("$ZodString",(e,t)=>{ee.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Xf(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ye=x("$ZodStringFormat",(e,t)=>{Bo.init(e,t),Kr.init(e,t)}),_m=x("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Df),ye.init(e,t)}),$m=x("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Xr(o))}else t.pattern??(t.pattern=Xr());ye.init(e,t)}),wm=x("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Nf),ye.init(e,t)}),zm=x("$ZodURL",(e,t)=>{ye.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===Bf.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Im=x("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Lf()),ye.init(e,t)}),Pm=x("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=jf),ye.init(e,t)}),Rm=x("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Pf),ye.init(e,t)}),Em=x("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Rf),ye.init(e,t)}),Cm=x("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ef),ye.init(e,t)}),Tm=x("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Cf),ye.init(e,t)}),jm=x("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Tf),ye.init(e,t)}),Om=x("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Gf(t)),ye.init(e,t)}),Dm=x("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Hf),ye.init(e,t)}),Nm=x("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Jf(t)),ye.init(e,t)}),Lm=x("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Of),ye.init(e,t)}),Um=x("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Uf),ye.init(e,t),e._zod.bag.format="ipv4"}),Am=x("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Af),ye.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Fm=x("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ff(t.delimiter)),ye.init(e,t),e._zod.bag.format="mac"}),Wm=x("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Wf),ye.init(e,t)}),Mm=x("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Mf),ye.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Zm(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Bm=x("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Zf),ye.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Zm(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function n_(e){if(!Bs.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Zm(r)}var Vm=x("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Bs),ye.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{n_(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Hm=x("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Vf),ye.init(e,t)});function r_(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Jm=x("$ZodJWT",(e,t)=>{ye.init(e,t),e._zod.check=r=>{r_(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Gm=x("$ZodCustomStringFormat",(e,t)=>{ye.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),qs=x("$ZodNumber",(e,t)=>{ee.init(e,t),e._zod.pattern=e._zod.bag.pattern??Vs,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Xm=x("$ZodNumberFormat",(e,t)=>{om.init(e,t),qs.init(e,t)}),Ea=x("$ZodBoolean",(e,t)=>{ee.init(e,t),e._zod.pattern=qf,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Qs=x("$ZodBigInt",(e,t)=>{ee.init(e,t),e._zod.pattern=Kf,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Km=x("$ZodBigIntFormat",(e,t)=>{im.init(e,t),Qs.init(e,t)}),Ym=x("$ZodSymbol",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),qm=x("$ZodUndefined",(e,t)=>{ee.init(e,t),e._zod.pattern=em,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Qm=x("$ZodNull",(e,t)=>{ee.init(e,t),e._zod.pattern=Qf,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),eg=x("$ZodAny",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),tg=x("$ZodUnknown",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),ng=x("$ZodNever",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),rg=x("$ZodVoid",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),og=x("$ZodDate",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Mk(e,t,r){e.issues.length&&t.issues.push(...zt(r,e.issues)),t.value[r]=e.value}var ig=x("$ZodArray",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let l=n[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Mk(c,r,a))):Mk(s,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function Ys(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...zt(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function o_(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=bf(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function i_(e,t,r,o,n,i){let a=[],l=n.keySet,s=n.catchall._zod,c=s.def.type,d=s.optin==="optional",p=s.optout==="optional";for(let f in t){if(f==="__proto__"||l.has(f))continue;if(c==="never"){a.push(f);continue}let g=s.run({value:t[f],issues:[]},o);g instanceof Promise?e.push(g.then(b=>Ys(b,r,f,t,d,p))):Ys(g,r,f,t,d,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var a_=x("$ZodObject",(e,t)=>{if(ee.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}let o=Uo(()=>o_(t));le(e._zod,"propValues",()=>{let l=t.shape,s={};for(let c in l){let d=l[c]._zod;if(d.values){s[c]??(s[c]=new Set);for(let p of d.values)s[c].add(p)}}return s});let n=Gr,i=t.catchall,a;e._zod.parse=(l,s)=>{a??(a=o.value);let c=l.value;if(!n(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};let d=[],p=a.shape;for(let f of a.keys){let g=p[f],b=g._zod.optin==="optional",h=g._zod.optout==="optional",w=g._zod.run({value:c[f],issues:[]},s);w instanceof Promise?d.push(w.then(v=>Ys(v,l,f,c,b,h))):Ys(w,l,f,c,b,h)}return i?i_(d,c,l,s,o.value,e):d.length?Promise.all(d).then(()=>l):l}}),ag=x("$ZodObjectJIT",(e,t)=>{a_.init(e,t);let r=e._zod.parse,o=Uo(()=>o_(t)),n=f=>{let g=new Ra(["shape","payload","ctx"]),b=o.value,h=y=>{let S=Ts(y);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};g.write("const input = payload.value;");let w=Object.create(null),v=0;for(let y of b.keys)w[y]=`key_${v++}`;g.write("const newResult = {};");for(let y of b.keys){let S=w[y],P=Ts(y),O=f[y],T=O?._zod?.optin==="optional",B=O?._zod?.optout==="optional";g.write(`const ${S} = ${h(y)};`),T&&B?g.write(`
|
|
12
12
|
if (${S}.issues.length) {
|
|
13
|
-
if (${
|
|
13
|
+
if (${P} in input) {
|
|
14
14
|
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
15
15
|
...iss,
|
|
16
|
-
path: iss.path ? [${
|
|
16
|
+
path: iss.path ? [${P}, ...iss.path] : [${P}]
|
|
17
17
|
})));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
if (${S}.value === undefined) {
|
|
22
|
-
if (${
|
|
23
|
-
newResult[${
|
|
22
|
+
if (${P} in input) {
|
|
23
|
+
newResult[${P}] = undefined;
|
|
24
24
|
}
|
|
25
25
|
} else {
|
|
26
|
-
newResult[${
|
|
26
|
+
newResult[${P}] = ${S}.value;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
`):
|
|
29
|
+
`):T?g.write(`
|
|
30
30
|
if (${S}.issues.length) {
|
|
31
31
|
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
32
32
|
...iss,
|
|
33
|
-
path: iss.path ? [${
|
|
33
|
+
path: iss.path ? [${P}, ...iss.path] : [${P}]
|
|
34
34
|
})));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
if (${S}.value === undefined) {
|
|
38
|
-
if (${
|
|
39
|
-
newResult[${
|
|
38
|
+
if (${P} in input) {
|
|
39
|
+
newResult[${P}] = undefined;
|
|
40
40
|
}
|
|
41
41
|
} else {
|
|
42
|
-
newResult[${
|
|
42
|
+
newResult[${P}] = ${S}.value;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
`):g.write(`
|
|
46
|
-
const ${S}_present = ${
|
|
46
|
+
const ${S}_present = ${P} in input;
|
|
47
47
|
if (${S}.issues.length) {
|
|
48
48
|
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
49
49
|
...iss,
|
|
50
|
-
path: iss.path ? [${
|
|
50
|
+
path: iss.path ? [${P}, ...iss.path] : [${P}]
|
|
51
51
|
})));
|
|
52
52
|
}
|
|
53
53
|
if (!${S}_present && !${S}.issues.length) {
|
|
@@ -55,21 +55,21 @@ Error generating stack: `+i.message+`
|
|
|
55
55
|
code: "invalid_type",
|
|
56
56
|
expected: "nonoptional",
|
|
57
57
|
input: undefined,
|
|
58
|
-
path: [${
|
|
58
|
+
path: [${P}]
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
if (${S}_present) {
|
|
63
63
|
if (${S}.value === undefined) {
|
|
64
|
-
newResult[${
|
|
64
|
+
newResult[${P}] = undefined;
|
|
65
65
|
} else {
|
|
66
|
-
newResult[${
|
|
66
|
+
newResult[${P}] = ${S}.value;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
`)}g.write("payload.value = newResult;"),g.write("return payload;");let m=g.compile();return(y,S)=>m(f,y,S)},i,a=Kr,l=!Xr.jitless,c=l&&hf.value,d=t.catchall,p;e._zod.parse=(f,g)=>{p??(p=o.value);let x=f.value;return a(x)?l&&c&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),f=i(f,g),d?a_([],x,f,g,p,e):f):r(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),f)}});function Bk(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!kr(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>yt(a,o,Le())))}),t)}var Ta=h("$ZodUnion",(e,t)=>{ee.init(e,t),ae(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ae(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ae(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ae(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>Sa(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Bk(l,o,e,n)):Bk(a,o,e,n)}});function Vk(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>yt(a,o,Le())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var sg=h("$ZodXor",(e,t)=>{Ta.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);s instanceof Promise?(a.push(s),i=!0):a.push(s)}return i?Promise.all(a).then(l=>Vk(l,o,e,n)):Vk(a,o,e,n)}}),cg=h("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ta.init(e,t);let r=e._zod.parse;ae(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[l,s]of Object.entries(a)){n[l]||(n[l]=new Set);for(let c of s)n[l].add(c)}}return n});let o=Lo(()=>{let n=t.options,i=new Map;for(let a of n){let l=a._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let s of l){if(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Kr(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let l=o.value.get(a?.[t.discriminator]);return l?l._zod.run(n,i):t.unionFallback||i.direction==="backward"?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),ug=h("$ZodIntersection",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Hk(r,s,c)):Hk(r,i,a)}});function _m(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Sr(e)&&Sr(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=_m(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=_m(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Hk(e,t,r){let o=new Map,n;for(let l of t.issues)if(l.code==="unrecognized_keys"){n??(n=l);for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);let i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&n&&e.issues.push({...n,keys:i}),kr(e))return e;let a=_m(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var tc=h("$ZodTuple",(e,t)=>{ee.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],l=Jk(r,"optin"),s=Jk(r,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:i,inst:e,origin:"array"})}let c=new Array(r.length);for(let d=0;d<r.length;d++){let p=r[d]._zod.run({value:i[d],issues:[]},n);p instanceof Promise?a.push(p.then(f=>{c[d]=f})):c[d]=p}if(t.rest){let d=r.length-1,p=i.slice(r.length);for(let f of p){d++;let g=t.rest._zod.run({value:f,issues:[]},n);g instanceof Promise?a.push(g.then(x=>Gk(x,o,d))):Gk(g,o,d)}}return a.length?Promise.all(a).then(()=>Xk(c,o,r,i,s)):Xk(c,o,r,i,s)}});function Jk(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function Gk(e,t,r){e.issues.length&&t.issues.push(...zt(r,e.issues)),t.value[r]=e.value}function Xk(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=n){t.value.length=i;break}t.issues.push(...zt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(r[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var dg=h("$ZodRecord",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Sr(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let l=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);let d=t.keyType._zod.run({value:c,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(g=>yt(g,o,Le())),input:c,path:[c],inst:e});continue}let p=d.value,f=t.valueType._zod.run({value:n[c],issues:[]},o);f instanceof Promise?i.push(f.then(g=>{g.issues.length&&r.issues.push(...zt(c,g.issues)),r.value[p]=g.value})):(f.issues.length&&r.issues.push(...zt(c,f.issues)),r.value[p]=f.value)}let s;for(let c in n)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else{r.value={};for(let l of Reflect.ownKeys(n)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Hs.test(l)&&s.issues.length){let p=t.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){t.mode==="loose"?r.value[l]=n[l]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>yt(p,o,Le())),input:l,path:[l],inst:e});continue}let d=t.valueType._zod.run({value:n[l],issues:[]},o);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&r.issues.push(...zt(l,p.issues)),r.value[s.value]=p.value})):(d.issues.length&&r.issues.push(...zt(l,d.issues)),r.value[s.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),pg=h("$ZodMap",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,l]of n){let s=t.keyType._zod.run({value:a,issues:[]},o),c=t.valueType._zod.run({value:l,issues:[]},o);s instanceof Promise||c instanceof Promise?i.push(Promise.all([s,c]).then(([d,p])=>{Kk(d,p,r,a,n,e,o)})):Kk(s,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function Kk(e,t,r,o,n,i,a){e.issues.length&&(ka.has(typeof o)?r.issues.push(...zt(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(l=>yt(l,a,Le()))})),t.issues.length&&(ka.has(typeof o)?r.issues.push(...zt(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(l=>yt(l,a,Le()))})),r.value.set(e.value,t.value)}var fg=h("$ZodSet",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let l=t.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(s=>Yk(s,r))):Yk(l,r)}return i.length?Promise.all(i).then(()=>r):r}});function Yk(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var mg=h("$ZodEnum",(e,t)=>{ee.init(e,t);let r=ba(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>ka.has(typeof n)).map(n=>typeof n=="string"?Yt(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),gg=h("$ZodLiteral",(e,t)=>{if(ee.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Yt(o):o?Yt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),vg=h("$ZodFile",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),yg=h("$ZodTransform",(e,t)=>{ee.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new hr(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new cn;return r.value=n,r.fallback=!0,r}});function Qk(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var nc=h("$ZodOptional",(e,t)=>{ee.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ae(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ae(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Sa(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,i=t.innerType._zod.run(r,o);return i instanceof Promise?i.then(a=>Qk(a,n)):Qk(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),hg=h("$ZodExactOptional",(e,t)=>{nc.init(e,t),ae(e._zod,"values",()=>t.innerType._zod.values),ae(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),xg=h("$ZodNullable",(e,t)=>{ee.init(e,t),ae(e._zod,"optin",()=>t.innerType._zod.optin),ae(e._zod,"optout",()=>t.innerType._zod.optout),ae(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Sa(r.source)}|null)$`):void 0}),ae(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),bg=h("$ZodDefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",ae(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>qk(i,t)):qk(n,t)}});function qk(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Sg=h("$ZodPrefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",ae(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),kg=h("$ZodNonOptional",(e,t)=>{ee.init(e,t),ae(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>e_(i,e)):e_(n,e)}});function e_(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var _g=h("$ZodSuccess",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new hr("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),$g=h("$ZodCatch",(e,t)=>{ee.init(e,t),e._zod.optin="optional",ae(e._zod,"optout",()=>t.innerType._zod.optout),ae(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>yt(a,o,Le()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>yt(i,o,Le()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),wg=h("$ZodNaN",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),rc=h("$ZodPipe",(e,t)=>{ee.init(e,t),ae(e._zod,"values",()=>t.in._zod.values),ae(e._zod,"optin",()=>t.in._zod.optin),ae(e._zod,"optout",()=>t.out._zod.optout),ae(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Xs(a,t.in,o)):Xs(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Xs(i,t.out,o)):Xs(n,t.out,o)}});function Xs(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var ja=h("$ZodCodec",(e,t)=>{ee.init(e,t),ae(e._zod,"values",()=>t.in._zod.values),ae(e._zod,"optin",()=>t.in._zod.optin),ae(e._zod,"optout",()=>t.out._zod.optout),ae(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>Ks(a,t,o)):Ks(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Ks(a,t,o)):Ks(i,t,o)}}});function Ks(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>Ys(e,i,t.out,r)):Ys(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>Ys(e,i,t.in,r)):Ys(e,n,t.in,r)}}function Ys(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var zg=h("$ZodPreprocess",(e,t)=>{rc.init(e,t)}),Ig=h("$ZodReadonly",(e,t)=>{ee.init(e,t),ae(e._zod,"propValues",()=>t.innerType._zod.propValues),ae(e._zod,"values",()=>t.innerType._zod.values),ae(e._zod,"optin",()=>t.innerType?._zod?.optin),ae(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(t_):t_(n)}});function t_(e){return e.value=Object.freeze(e.value),e}var Pg=h("$ZodTemplateLiteral",(e,t)=>{ee.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||bf.has(typeof o))r.push(Yt(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Eg=h("$ZodFunction",(e,t)=>(ee.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?Ds(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Ds(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Ns(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Ns(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new tc({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),Rg=h("$ZodPromise",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),Cg=h("$ZodLazy",(e,t)=>{ee.init(e,t),ae(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),ae(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ae(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ae(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ae(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Tg=h("$ZodCustom",(e,t)=>{be.init(e,t),ee.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>n_(i,r,o,e));n_(n,r,o,e)}});function n_(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Uo(n))}}var Da={};Tn(Da,{ar:()=>s_,az:()=>c_,be:()=>d_,bg:()=>p_,ca:()=>f_,cs:()=>m_,da:()=>g_,de:()=>v_,el:()=>y_,en:()=>oc,eo:()=>h_,es:()=>x_,fa:()=>b_,fi:()=>S_,fr:()=>k_,frCA:()=>__,he:()=>$_,hr:()=>w_,hu:()=>z_,hy:()=>P_,id:()=>E_,is:()=>R_,it:()=>C_,ja:()=>T_,ka:()=>j_,kh:()=>O_,km:()=>ic,ko:()=>D_,lt:()=>L_,mk:()=>U_,ms:()=>A_,nl:()=>F_,no:()=>W_,ota:()=>M_,pl:()=>B_,ps:()=>Z_,pt:()=>V_,ro:()=>H_,ru:()=>G_,sl:()=>X_,sv:()=>K_,ta:()=>Y_,th:()=>Q_,tr:()=>q_,ua:()=>e$,uk:()=>ac,ur:()=>t$,uz:()=>n$,vi:()=>r$,yo:()=>a$,zhCN:()=>o$,zhTW:()=>i$});var CP=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${z(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function s_(){return{localeError:CP()}}var TP=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${l}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${z(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function c_(){return{localeError:TP()}}function u_(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var jP=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${z(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=u_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=u_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function d_(){return{localeError:jP()}}var OP=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${z(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function p_(){return{localeError:OP()}}var DP=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${l}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${z(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${k(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function f_(){return{localeError:DP()}}var NP=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${l}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${z(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${k(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function m_(){return{localeError:NP()}}var LP=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${l}`:`Ugyldigt input: forventede ${i}, fik ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${z(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For lille: forventede ${l} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function g_(){return{localeError:LP()}}var UP=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${l}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${z(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function v_(){return{localeError:UP()}}var AP=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(n){return e[n]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${z(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function y_(){return{localeError:AP()}}var FP=()=>{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(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`Invalid option: expected one of ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function oc(){return{localeError:FP()}}var WP=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${l}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${z(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function h_(){return{localeError:WP()}}var MP=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${z(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function x_(){return{localeError:MP()}}var ZP=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${z(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${k(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${k(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function b_(){return{localeError:ZP()}}var BP=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${l}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${z(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${k(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function S_(){return{localeError:BP()}}var VP=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${l} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${z(n.values[0])} attendu`:`Option invalide : une valeur parmi ${k(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function k_(){return{localeError:VP()}}var HP=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${l}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${z(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function __(){return{localeError:HP()}}var JP=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=c=>c?e[c]:void 0,o=c=>{let d=r(c);return d?d.label:c??e.unknown.label},n=c=>`\u05D4${o(c)}`,i=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let d=c.expected,p=s[d??""]??o(d),f=I(c.input),g=s[f]??e[f]?.label??f;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${z(c.values[0])}`;let d=c.values.map(g=>z(g));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let p=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let x=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",b=c.inclusive?`${c.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=c.inclusive?"<=":"<",g=i(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()}`}case"too_small":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let x=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let w=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`}let b=c.inclusive?`${c.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=c.inclusive?">=":">",g=i(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()}`}case"invalid_format":{let d=c;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let p=l[d.format],f=p?.label??d.format,x=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${x}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${k(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function $_(){return{localeError:JP()}}var GP=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${l}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${z(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${r[i.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function w_(){return{localeError:GP()}}var XP=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${z(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function z_(){return{localeError:XP()}}function I_(e,t,r){return Math.abs(e)===1?t:r}function Bo(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var KP=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${z(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=I_(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=I_(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bo(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bo(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${k(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Bo(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Bo(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function P_(){return{localeError:KP()}}var YP=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${z(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function E_(){return{localeError:YP()}}var QP=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${z(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${k(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function R_(){return{localeError:QP()}}var qP=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${l}`:`Input non valido: atteso ${i}, ricevuto ${l}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${z(n.values[0])}`:`Opzione non valida: atteso uno tra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${k(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function C_(){return{localeError:qP()}}var eE=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${z(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${k(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function T_(){return{localeError:eE()}}var tE=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${z(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${k(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function j_(){return{localeError:tE()}}var nE=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${z(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${k(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function ic(){return{localeError:nE()}}function O_(){return ic()}var rE=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${z(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${k(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${k(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function D_(){return{localeError:rE()}}var Oa=e=>e.charAt(0).toUpperCase()+e.slice(1);function N_(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var oE=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,i,a,l){let s=e[n]??null;return s===null?s:{unit:s.unit[i],verb:s.verb[l][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${z(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${k(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,N_(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Oa(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Oa(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,N_(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Oa(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Oa(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${k(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Oa(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function L_(){return{localeError:oE()}}var iE=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function U_(){return{localeError:iE()}}var aE=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${l}`:`Input tidak sah: dijangka ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${z(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function A_(){return{localeError:aE()}}var lE=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${i}, ontving ${l}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${z(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function F_(){return{localeError:lE()}}var sE=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${l}`:`Ugyldig input: forventet ${i}, fikk ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${z(n.values[0])}`:`Ugyldig valg: forventet en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function W_(){return{localeError:sE()}}var cE=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${z(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function M_(){return{localeError:cE()}}var uE=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${z(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${k(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Z_(){return{localeError:uE()}}var dE=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${l}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${z(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function B_(){return{localeError:dE()}}var pE=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${z(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function V_(){return{localeError:pE()}}var fE=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(n){return e[n]??null}let r={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${l}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${z(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${r[i.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${k(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function H_(){return{localeError:fE()}}function J_(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var mE=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${z(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=J_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=J_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function G_(){return{localeError:mE()}}var gE=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${l}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${z(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function X_(){return{localeError:gE()}}var vE=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${l}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${z(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function K_(){return{localeError:vE()}}var yE=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${z(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${k(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Y_(){return{localeError:yE()}}var hE=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${z(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${k(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Q_(){return{localeError:hE()}}var xE=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${z(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function q_(){return{localeError:xE()}}var bE=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${z(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function ac(){return{localeError:bE()}}function e$(){return ac()}var SE=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${z(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${k(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function t$(){return{localeError:SE()}}var kE=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${l}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${z(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function n$(){return{localeError:kE()}}var _E=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${z(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${k(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function r$(){return{localeError:_E()}}var $E=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${z(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function o$(){return{localeError:$E()}}var wE=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${z(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function i$(){return{localeError:wE()}}var zE=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${z(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${k(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function a$(){return{localeError:zE()}}var l$,jg=Symbol("ZodOutput"),Og=Symbol("ZodInput"),lc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function sc(){return new lc}(l$=globalThis).__zod_globalRegistry??(l$.__zod_globalRegistry=sc());var nt=globalThis.__zod_globalRegistry;function Dg(e,t){return new e({type:"string",...T(t)})}function Ng(e,t){return new e({type:"string",coerce:!0,...T(t)})}function cc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...T(t)})}function Na(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...T(t)})}function uc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...T(t)})}function dc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...T(t)})}function pc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...T(t)})}function fc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...T(t)})}function La(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...T(t)})}function mc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...T(t)})}function gc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...T(t)})}function vc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...T(t)})}function yc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...T(t)})}function hc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...T(t)})}function xc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...T(t)})}function bc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...T(t)})}function Sc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...T(t)})}function kc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...T(t)})}function Lg(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...T(t)})}function _c(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...T(t)})}function $c(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...T(t)})}function wc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...T(t)})}function zc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...T(t)})}function Ic(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...T(t)})}function Pc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...T(t)})}var Ug={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ag(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...T(t)})}function Fg(e,t){return new e({type:"string",format:"date",check:"string_format",...T(t)})}function Wg(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...T(t)})}function Mg(e,t){return new e({type:"string",format:"duration",check:"string_format",...T(t)})}function Zg(e,t){return new e({type:"number",checks:[],...T(t)})}function Bg(e,t){return new e({type:"number",coerce:!0,checks:[],...T(t)})}function Vg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...T(t)})}function Hg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...T(t)})}function Jg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...T(t)})}function Gg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...T(t)})}function Xg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...T(t)})}function Kg(e,t){return new e({type:"boolean",...T(t)})}function Yg(e,t){return new e({type:"boolean",coerce:!0,...T(t)})}function Qg(e,t){return new e({type:"bigint",...T(t)})}function qg(e,t){return new e({type:"bigint",coerce:!0,...T(t)})}function ev(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...T(t)})}function tv(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...T(t)})}function nv(e,t){return new e({type:"symbol",...T(t)})}function rv(e,t){return new e({type:"undefined",...T(t)})}function ov(e,t){return new e({type:"null",...T(t)})}function iv(e){return new e({type:"any"})}function av(e){return new e({type:"unknown"})}function lv(e,t){return new e({type:"never",...T(t)})}function sv(e,t){return new e({type:"void",...T(t)})}function cv(e,t){return new e({type:"date",...T(t)})}function uv(e,t){return new e({type:"date",coerce:!0,...T(t)})}function dv(e,t){return new e({type:"nan",...T(t)})}function _n(e,t){return new Js({check:"less_than",...T(t),value:e,inclusive:!1})}function Lt(e,t){return new Js({check:"less_than",...T(t),value:e,inclusive:!0})}function $n(e,t){return new Gs({check:"greater_than",...T(t),value:e,inclusive:!1})}function ht(e,t){return new Gs({check:"greater_than",...T(t),value:e,inclusive:!0})}function Ec(e){return $n(0,e)}function Rc(e){return _n(0,e)}function Cc(e){return Lt(0,e)}function Tc(e){return ht(0,e)}function _r(e,t){return new om({check:"multiple_of",...T(t),value:e})}function $r(e,t){return new lm({check:"max_size",...T(t),maximum:e})}function wn(e,t){return new sm({check:"min_size",...T(t),minimum:e})}function qr(e,t){return new cm({check:"size_equals",...T(t),size:e})}function eo(e,t){return new um({check:"max_length",...T(t),maximum:e})}function Bn(e,t){return new dm({check:"min_length",...T(t),minimum:e})}function to(e,t){return new pm({check:"length_equals",...T(t),length:e})}function Vo(e,t){return new fm({check:"string_format",format:"regex",...T(t),pattern:e})}function Ho(e){return new mm({check:"string_format",format:"lowercase",...T(e)})}function Jo(e){return new gm({check:"string_format",format:"uppercase",...T(e)})}function Go(e,t){return new vm({check:"string_format",format:"includes",...T(t),includes:e})}function Xo(e,t){return new ym({check:"string_format",format:"starts_with",...T(t),prefix:e})}function Ko(e,t){return new hm({check:"string_format",format:"ends_with",...T(t),suffix:e})}function jc(e,t,r){return new xm({check:"property",property:e,schema:t,...T(r)})}function Yo(e,t){return new bm({check:"mime_type",mime:e,...T(t)})}function un(e){return new Sm({check:"overwrite",tx:e})}function Qo(e){return un(t=>t.normalize(e))}function qo(){return un(e=>e.trim())}function ei(){return un(e=>e.toLowerCase())}function ti(){return un(e=>e.toUpperCase())}function ni(){return un(e=>yf(e))}function pv(e,t,r){return new e({type:"array",element:t,...T(r)})}function PE(e,t,r){return new e({type:"union",options:t,...T(r)})}function EE(e,t,r){return new e({type:"union",options:t,inclusive:!1,...T(r)})}function RE(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...T(o)})}function CE(e,t,r){return new e({type:"intersection",left:t,right:r})}function TE(e,t,r,o){let n=r instanceof ee,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...T(i)})}function jE(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...T(o)})}function OE(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...T(o)})}function DE(e,t,r){return new e({type:"set",valueType:t,...T(r)})}function NE(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...T(r)})}function LE(e,t,r){return new e({type:"enum",entries:t,...T(r)})}function UE(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...T(r)})}function fv(e,t){return new e({type:"file",...T(t)})}function AE(e,t){return new e({type:"transform",transform:t})}function FE(e,t){return new e({type:"optional",innerType:t})}function WE(e,t){return new e({type:"nullable",innerType:t})}function ME(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():xf(r)}})}function ZE(e,t,r){return new e({type:"nonoptional",innerType:t,...T(r)})}function BE(e,t){return new e({type:"success",innerType:t})}function VE(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function HE(e,t,r){return new e({type:"pipe",in:t,out:r})}function JE(e,t){return new e({type:"readonly",innerType:t})}function GE(e,t,r){return new e({type:"template_literal",parts:t,...T(r)})}function XE(e,t){return new e({type:"lazy",getter:t})}function KE(e,t){return new e({type:"promise",innerType:t})}function mv(e,t,r){let o=T(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function gv(e,t,r){return new e({type:"custom",check:"custom",fn:t,...T(r)})}function vv(e,t){let r=s$(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(Uo(n,o.value,r._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(Uo(i))}},e(o.value,o)),t);return r}function s$(e,t){let r=new be({check:"custom",...T(t)});return r._zod.check=e,r}function yv(e){let t=new be({check:"describe"});return t._zod.onattach=[r=>{let o=nt.get(r)??{};nt.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function hv(e){let t=new be({check:"meta"});return t._zod.onattach=[r=>{let o=nt.get(r)??{};nt.add(r,{...o,...e})}],t._zod.check=()=>{},t}function xv(e,t){let r=T(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),l=e.Codec??ja,s=e.Boolean??Ca,c=e.String??Qr,d=new c({type:"string",error:r.error}),p=new s({type:"boolean",error:r.error}),f=new l({type:"pipe",in:d,out:p,transform:((g,x)=>{let b=g;return r.case!=="sensitive"&&(b=b.toLowerCase()),i.has(b)?!0:a.has(b)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:f,continue:!1}),{})}),reverseTransform:((g,x)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function ri(e,t,r,o={}){let n=T(o),i={...T(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:l=>r.test(l),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function wr(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??nt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function fe(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let f=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,f,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),fe(p,t,d),t.seen.get(p).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&xt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function zr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let s=o.get(l);if(s&&s!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(l,a[0])}}let n=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,f=e.external.uri??(x=>x);if(p)return{ref:f(p)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${f("__shared")}#/${l}/${g}`}}if(a[1]===r)return{ref:"#"};let c=`#/${l}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},i=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:s,defId:c}=n(a);l.def={...l.schema},c&&(l.defId=c);let d=l.schema;for(let p in d)delete d[p];d.$ref=s};if(e.cycles==="throw")for(let a of e.seen.entries()){let l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
70
|
+
`)}g.write("payload.value = newResult;"),g.write("return payload;");let m=g.compile();return(y,S)=>m(f,y,S)},i,a=Gr,l=!Jr.jitless,c=l&&yf.value,d=t.catchall,p;e._zod.parse=(f,g)=>{p??(p=o.value);let b=f.value;return a(b)?l&&c&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),f=i(f,g),d?i_([],b,f,g,p,e):f):r(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),f)}});function Zk(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!kr(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>yt(a,o,Ne())))}),t)}var Ca=x("$ZodUnion",(e,t)=>{ee.init(e,t),le(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),le(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),le(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),le(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>ba(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Zk(l,o,e,n)):Zk(a,o,e,n)}});function Bk(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>yt(a,o,Ne())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var lg=x("$ZodXor",(e,t)=>{Ca.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);s instanceof Promise?(a.push(s),i=!0):a.push(s)}return i?Promise.all(a).then(l=>Bk(l,o,e,n)):Bk(a,o,e,n)}}),sg=x("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ca.init(e,t);let r=e._zod.parse;le(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[l,s]of Object.entries(a)){n[l]||(n[l]=new Set);for(let c of s)n[l].add(c)}}return n});let o=Uo(()=>{let n=t.options,i=new Map;for(let a of n){let l=a._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let s of l){if(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Gr(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let l=o.value.get(a?.[t.discriminator]);return l?l._zod.run(n,i):t.unionFallback||i.direction==="backward"?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),cg=x("$ZodIntersection",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Vk(r,s,c)):Vk(r,i,a)}});function km(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Sr(e)&&Sr(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=km(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=km(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Vk(e,t,r){let o=new Map,n;for(let l of t.issues)if(l.code==="unrecognized_keys"){n??(n=l);for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);let i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&n&&e.issues.push({...n,keys:i}),kr(e))return e;let a=km(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var ec=x("$ZodTuple",(e,t)=>{ee.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],l=Hk(r,"optin"),s=Hk(r,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:i,inst:e,origin:"array"})}let c=new Array(r.length);for(let d=0;d<r.length;d++){let p=r[d]._zod.run({value:i[d],issues:[]},n);p instanceof Promise?a.push(p.then(f=>{c[d]=f})):c[d]=p}if(t.rest){let d=r.length-1,p=i.slice(r.length);for(let f of p){d++;let g=t.rest._zod.run({value:f,issues:[]},n);g instanceof Promise?a.push(g.then(b=>Jk(b,o,d))):Jk(g,o,d)}}return a.length?Promise.all(a).then(()=>Gk(c,o,r,i,s)):Gk(c,o,r,i,s)}});function Hk(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function Jk(e,t,r){e.issues.length&&t.issues.push(...zt(r,e.issues)),t.value[r]=e.value}function Gk(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=n){t.value.length=i;break}t.issues.push(...zt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(r[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var ug=x("$ZodRecord",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Sr(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let l=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);let d=t.keyType._zod.run({value:c,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(g=>yt(g,o,Ne())),input:c,path:[c],inst:e});continue}let p=d.value,f=t.valueType._zod.run({value:n[c],issues:[]},o);f instanceof Promise?i.push(f.then(g=>{g.issues.length&&r.issues.push(...zt(c,g.issues)),r.value[p]=g.value})):(f.issues.length&&r.issues.push(...zt(c,f.issues)),r.value[p]=f.value)}let s;for(let c in n)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else{r.value={};for(let l of Reflect.ownKeys(n)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Vs.test(l)&&s.issues.length){let p=t.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){t.mode==="loose"?r.value[l]=n[l]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>yt(p,o,Ne())),input:l,path:[l],inst:e});continue}let d=t.valueType._zod.run({value:n[l],issues:[]},o);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&r.issues.push(...zt(l,p.issues)),r.value[s.value]=p.value})):(d.issues.length&&r.issues.push(...zt(l,d.issues)),r.value[s.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),dg=x("$ZodMap",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,l]of n){let s=t.keyType._zod.run({value:a,issues:[]},o),c=t.valueType._zod.run({value:l,issues:[]},o);s instanceof Promise||c instanceof Promise?i.push(Promise.all([s,c]).then(([d,p])=>{Xk(d,p,r,a,n,e,o)})):Xk(s,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function Xk(e,t,r,o,n,i,a){e.issues.length&&(Sa.has(typeof o)?r.issues.push(...zt(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(l=>yt(l,a,Ne()))})),t.issues.length&&(Sa.has(typeof o)?r.issues.push(...zt(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(l=>yt(l,a,Ne()))})),r.value.set(e.value,t.value)}var pg=x("$ZodSet",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let l=t.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(s=>Kk(s,r))):Kk(l,r)}return i.length?Promise.all(i).then(()=>r):r}});function Kk(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var fg=x("$ZodEnum",(e,t)=>{ee.init(e,t);let r=xa(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Sa.has(typeof n)).map(n=>typeof n=="string"?Xt(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),mg=x("$ZodLiteral",(e,t)=>{if(ee.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Xt(o):o?Xt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),gg=x("$ZodFile",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),vg=x("$ZodTransform",(e,t)=>{ee.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new hr(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new cn;return r.value=n,r.fallback=!0,r}});function Yk(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var tc=x("$ZodOptional",(e,t)=>{ee.init(e,t),e._zod.optin="optional",e._zod.optout="optional",le(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),le(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${ba(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,i=t.innerType._zod.run(r,o);return i instanceof Promise?i.then(a=>Yk(a,n)):Yk(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),yg=x("$ZodExactOptional",(e,t)=>{tc.init(e,t),le(e._zod,"values",()=>t.innerType._zod.values),le(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),hg=x("$ZodNullable",(e,t)=>{ee.init(e,t),le(e._zod,"optin",()=>t.innerType._zod.optin),le(e._zod,"optout",()=>t.innerType._zod.optout),le(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${ba(r.source)}|null)$`):void 0}),le(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),xg=x("$ZodDefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",le(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>qk(i,t)):qk(n,t)}});function qk(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var bg=x("$ZodPrefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",le(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),Sg=x("$ZodNonOptional",(e,t)=>{ee.init(e,t),le(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Qk(i,e)):Qk(n,e)}});function Qk(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var kg=x("$ZodSuccess",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new hr("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),_g=x("$ZodCatch",(e,t)=>{ee.init(e,t),e._zod.optin="optional",le(e._zod,"optout",()=>t.innerType._zod.optout),le(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>yt(a,o,Ne()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>yt(i,o,Ne()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),$g=x("$ZodNaN",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),nc=x("$ZodPipe",(e,t)=>{ee.init(e,t),le(e._zod,"values",()=>t.in._zod.values),le(e._zod,"optin",()=>t.in._zod.optin),le(e._zod,"optout",()=>t.out._zod.optout),le(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Gs(a,t.in,o)):Gs(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Gs(i,t.out,o)):Gs(n,t.out,o)}});function Gs(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var Ta=x("$ZodCodec",(e,t)=>{ee.init(e,t),le(e._zod,"values",()=>t.in._zod.values),le(e._zod,"optin",()=>t.in._zod.optin),le(e._zod,"optout",()=>t.out._zod.optout),le(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>Xs(a,t,o)):Xs(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Xs(a,t,o)):Xs(i,t,o)}}});function Xs(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>Ks(e,i,t.out,r)):Ks(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>Ks(e,i,t.in,r)):Ks(e,n,t.in,r)}}function Ks(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var wg=x("$ZodPreprocess",(e,t)=>{nc.init(e,t)}),zg=x("$ZodReadonly",(e,t)=>{ee.init(e,t),le(e._zod,"propValues",()=>t.innerType._zod.propValues),le(e._zod,"values",()=>t.innerType._zod.values),le(e._zod,"optin",()=>t.innerType?._zod?.optin),le(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(e_):e_(n)}});function e_(e){return e.value=Object.freeze(e.value),e}var Ig=x("$ZodTemplateLiteral",(e,t)=>{ee.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||xf.has(typeof o))r.push(Xt(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Pg=x("$ZodFunction",(e,t)=>(ee.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?Os(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Os(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Ds(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Ds(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new ec({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),Rg=x("$ZodPromise",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),Eg=x("$ZodLazy",(e,t)=>{ee.init(e,t),le(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),le(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),le(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),le(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),le(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Cg=x("$ZodCustom",(e,t)=>{be.init(e,t),ee.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>t_(i,r,o,e));t_(n,r,o,e)}});function t_(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Ao(n))}}var Oa={};On(Oa,{ar:()=>l_,az:()=>s_,be:()=>u_,bg:()=>d_,ca:()=>p_,cs:()=>f_,da:()=>m_,de:()=>g_,el:()=>v_,en:()=>rc,eo:()=>y_,es:()=>h_,fa:()=>x_,fi:()=>b_,fr:()=>S_,frCA:()=>k_,he:()=>__,hr:()=>$_,hu:()=>w_,hy:()=>I_,id:()=>P_,is:()=>R_,it:()=>E_,ja:()=>C_,ka:()=>T_,kh:()=>j_,km:()=>oc,ko:()=>O_,lt:()=>N_,mk:()=>L_,ms:()=>U_,nl:()=>A_,no:()=>F_,ota:()=>W_,pl:()=>Z_,ps:()=>M_,pt:()=>B_,ro:()=>V_,ru:()=>J_,sl:()=>G_,sv:()=>X_,ta:()=>K_,th:()=>Y_,tr:()=>q_,ua:()=>Q_,uk:()=>ic,ur:()=>e$,uz:()=>t$,vi:()=>n$,yo:()=>i$,zhCN:()=>r$,zhTW:()=>o$});var OP=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${z(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function l_(){return{localeError:OP()}}var DP=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${l}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${z(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function s_(){return{localeError:DP()}}function c_(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var NP=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${z(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=c_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=c_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function u_(){return{localeError:NP()}}var LP=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${z(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function d_(){return{localeError:LP()}}var UP=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${l}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${z(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${k(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function p_(){return{localeError:UP()}}var AP=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${l}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${z(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${k(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function f_(){return{localeError:AP()}}var FP=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${l}`:`Ugyldigt input: forventede ${i}, fik ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${z(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For lille: forventede ${l} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function m_(){return{localeError:FP()}}var WP=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${l}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${z(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function g_(){return{localeError:WP()}}var MP=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(n){return e[n]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${z(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function v_(){return{localeError:MP()}}var ZP=()=>{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(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`Invalid option: expected one of ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function rc(){return{localeError:ZP()}}var BP=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${l}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${z(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function y_(){return{localeError:BP()}}var VP=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${z(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function h_(){return{localeError:VP()}}var HP=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${z(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${k(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${k(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function x_(){return{localeError:HP()}}var JP=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${l}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${z(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${k(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function b_(){return{localeError:JP()}}var GP=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${l} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${z(n.values[0])} attendu`:`Option invalide : une valeur parmi ${k(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function S_(){return{localeError:GP()}}var XP=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${l}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${z(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function k_(){return{localeError:XP()}}var KP=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=c=>c?e[c]:void 0,o=c=>{let d=r(c);return d?d.label:c??e.unknown.label},n=c=>`\u05D4${o(c)}`,i=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let d=c.expected,p=s[d??""]??o(d),f=I(c.input),g=s[f]??e[f]?.label??f;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${z(c.values[0])}`;let d=c.values.map(g=>z(g));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let p=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let b=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(c.origin==="array"||c.origin==="set"){let b=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=c.inclusive?`${c.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?"<=":"<",g=i(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()}`}case"too_small":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let b=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(c.origin==="array"||c.origin==="set"){let b=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let w=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`}let h=c.inclusive?`${c.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?">=":">",g=i(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()}`}case"invalid_format":{let d=c;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let p=l[d.format],f=p?.label??d.format,b=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${b}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${k(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function __(){return{localeError:KP()}}var YP=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${l}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${z(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${r[i.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function $_(){return{localeError:YP()}}var qP=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${z(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function w_(){return{localeError:qP()}}function z_(e,t,r){return Math.abs(e)===1?t:r}function Vo(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var QP=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${z(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=z_(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Vo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Vo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=z_(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Vo(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Vo(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${k(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Vo(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Vo(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function I_(){return{localeError:QP()}}var eR=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${z(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function P_(){return{localeError:eR()}}var tR=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${z(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${k(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function R_(){return{localeError:tR()}}var nR=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${l}`:`Input non valido: atteso ${i}, ricevuto ${l}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${z(n.values[0])}`:`Opzione non valida: atteso uno tra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${k(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function E_(){return{localeError:nR()}}var rR=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${z(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${k(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function C_(){return{localeError:rR()}}var oR=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${z(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${k(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function T_(){return{localeError:oR()}}var iR=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${z(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${k(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function oc(){return{localeError:iR()}}function j_(){return oc()}var aR=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${z(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${k(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${k(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function O_(){return{localeError:aR()}}var ja=e=>e.charAt(0).toUpperCase()+e.slice(1);function D_(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var lR=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,i,a,l){let s=e[n]??null;return s===null?s:{unit:s.unit[i],verb:s.verb[l][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${z(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${k(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,D_(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${ja(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ja(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,D_(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${ja(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ja(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${k(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${ja(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function N_(){return{localeError:lR()}}var sR=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function L_(){return{localeError:sR()}}var cR=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${l}`:`Input tidak sah: dijangka ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${z(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function U_(){return{localeError:cR()}}var uR=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${i}, ontving ${l}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${z(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function A_(){return{localeError:uR()}}var dR=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${l}`:`Ugyldig input: forventet ${i}, fikk ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${z(n.values[0])}`:`Ugyldig valg: forventet en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function F_(){return{localeError:dR()}}var pR=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${z(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function W_(){return{localeError:pR()}}var fR=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${z(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${k(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function M_(){return{localeError:fR()}}var mR=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${l}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${z(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Z_(){return{localeError:mR()}}var gR=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${z(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function B_(){return{localeError:gR()}}var vR=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(n){return e[n]??null}let r={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${l}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${z(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${r[i.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${k(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function V_(){return{localeError:vR()}}function H_(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var yR=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${z(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=H_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=H_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function J_(){return{localeError:yR()}}var hR=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${l}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${z(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function G_(){return{localeError:hR()}}var xR=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${l}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${z(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function X_(){return{localeError:xR()}}var bR=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${z(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${k(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function K_(){return{localeError:bR()}}var SR=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${z(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${k(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Y_(){return{localeError:SR()}}var kR=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${z(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function q_(){return{localeError:kR()}}var _R=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${z(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function ic(){return{localeError:_R()}}function Q_(){return ic()}var $R=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${z(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${k(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function e$(){return{localeError:$R()}}var wR=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${l}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${z(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function t$(){return{localeError:wR()}}var zR=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${z(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${k(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function n$(){return{localeError:zR()}}var IR=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${z(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function r$(){return{localeError:IR()}}var PR=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${z(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function o$(){return{localeError:PR()}}var RR=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${z(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${k(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function i$(){return{localeError:RR()}}var a$,Tg=Symbol("ZodOutput"),jg=Symbol("ZodInput"),ac=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function lc(){return new ac}(a$=globalThis).__zod_globalRegistry??(a$.__zod_globalRegistry=lc());var nt=globalThis.__zod_globalRegistry;function Og(e,t){return new e({type:"string",...j(t)})}function Dg(e,t){return new e({type:"string",coerce:!0,...j(t)})}function sc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function Da(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function cc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function uc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function dc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function pc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function Na(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function fc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function mc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function gc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function vc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function yc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function hc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function xc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function bc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function Sc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function Ng(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...j(t)})}function kc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function _c(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function $c(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function wc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function zc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function Ic(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}var Lg={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ug(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function Ag(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function Fg(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function Wg(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function Mg(e,t){return new e({type:"number",checks:[],...j(t)})}function Zg(e,t){return new e({type:"number",coerce:!0,checks:[],...j(t)})}function Bg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...j(t)})}function Vg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...j(t)})}function Hg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...j(t)})}function Jg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...j(t)})}function Gg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...j(t)})}function Xg(e,t){return new e({type:"boolean",...j(t)})}function Kg(e,t){return new e({type:"boolean",coerce:!0,...j(t)})}function Yg(e,t){return new e({type:"bigint",...j(t)})}function qg(e,t){return new e({type:"bigint",coerce:!0,...j(t)})}function Qg(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...j(t)})}function ev(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...j(t)})}function tv(e,t){return new e({type:"symbol",...j(t)})}function nv(e,t){return new e({type:"undefined",...j(t)})}function rv(e,t){return new e({type:"null",...j(t)})}function ov(e){return new e({type:"any"})}function iv(e){return new e({type:"unknown"})}function av(e,t){return new e({type:"never",...j(t)})}function lv(e,t){return new e({type:"void",...j(t)})}function sv(e,t){return new e({type:"date",...j(t)})}function cv(e,t){return new e({type:"date",coerce:!0,...j(t)})}function uv(e,t){return new e({type:"nan",...j(t)})}function kn(e,t){return new Hs({check:"less_than",...j(t),value:e,inclusive:!1})}function Nt(e,t){return new Hs({check:"less_than",...j(t),value:e,inclusive:!0})}function _n(e,t){return new Js({check:"greater_than",...j(t),value:e,inclusive:!1})}function ht(e,t){return new Js({check:"greater_than",...j(t),value:e,inclusive:!0})}function Pc(e){return _n(0,e)}function Rc(e){return kn(0,e)}function Ec(e){return Nt(0,e)}function Cc(e){return ht(0,e)}function _r(e,t){return new rm({check:"multiple_of",...j(t),value:e})}function $r(e,t){return new am({check:"max_size",...j(t),maximum:e})}function $n(e,t){return new lm({check:"min_size",...j(t),minimum:e})}function Yr(e,t){return new sm({check:"size_equals",...j(t),size:e})}function qr(e,t){return new cm({check:"max_length",...j(t),maximum:e})}function Hn(e,t){return new um({check:"min_length",...j(t),minimum:e})}function Qr(e,t){return new dm({check:"length_equals",...j(t),length:e})}function Ho(e,t){return new pm({check:"string_format",format:"regex",...j(t),pattern:e})}function Jo(e){return new fm({check:"string_format",format:"lowercase",...j(e)})}function Go(e){return new mm({check:"string_format",format:"uppercase",...j(e)})}function Xo(e,t){return new gm({check:"string_format",format:"includes",...j(t),includes:e})}function Ko(e,t){return new vm({check:"string_format",format:"starts_with",...j(t),prefix:e})}function Yo(e,t){return new ym({check:"string_format",format:"ends_with",...j(t),suffix:e})}function Tc(e,t,r){return new hm({check:"property",property:e,schema:t,...j(r)})}function qo(e,t){return new xm({check:"mime_type",mime:e,...j(t)})}function un(e){return new bm({check:"overwrite",tx:e})}function Qo(e){return un(t=>t.normalize(e))}function ei(){return un(e=>e.trim())}function ti(){return un(e=>e.toLowerCase())}function ni(){return un(e=>e.toUpperCase())}function ri(){return un(e=>vf(e))}function dv(e,t,r){return new e({type:"array",element:t,...j(r)})}function CR(e,t,r){return new e({type:"union",options:t,...j(r)})}function TR(e,t,r){return new e({type:"union",options:t,inclusive:!1,...j(r)})}function jR(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...j(o)})}function OR(e,t,r){return new e({type:"intersection",left:t,right:r})}function DR(e,t,r,o){let n=r instanceof ee,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...j(i)})}function NR(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...j(o)})}function LR(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...j(o)})}function UR(e,t,r){return new e({type:"set",valueType:t,...j(r)})}function AR(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...j(r)})}function FR(e,t,r){return new e({type:"enum",entries:t,...j(r)})}function WR(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...j(r)})}function pv(e,t){return new e({type:"file",...j(t)})}function MR(e,t){return new e({type:"transform",transform:t})}function ZR(e,t){return new e({type:"optional",innerType:t})}function BR(e,t){return new e({type:"nullable",innerType:t})}function VR(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():hf(r)}})}function HR(e,t,r){return new e({type:"nonoptional",innerType:t,...j(r)})}function JR(e,t){return new e({type:"success",innerType:t})}function GR(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function XR(e,t,r){return new e({type:"pipe",in:t,out:r})}function KR(e,t){return new e({type:"readonly",innerType:t})}function YR(e,t,r){return new e({type:"template_literal",parts:t,...j(r)})}function qR(e,t){return new e({type:"lazy",getter:t})}function QR(e,t){return new e({type:"promise",innerType:t})}function fv(e,t,r){let o=j(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function mv(e,t,r){return new e({type:"custom",check:"custom",fn:t,...j(r)})}function gv(e,t){let r=l$(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(Ao(n,o.value,r._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(Ao(i))}},e(o.value,o)),t);return r}function l$(e,t){let r=new be({check:"custom",...j(t)});return r._zod.check=e,r}function vv(e){let t=new be({check:"describe"});return t._zod.onattach=[r=>{let o=nt.get(r)??{};nt.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function yv(e){let t=new be({check:"meta"});return t._zod.onattach=[r=>{let o=nt.get(r)??{};nt.add(r,{...o,...e})}],t._zod.check=()=>{},t}function hv(e,t){let r=j(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),l=e.Codec??Ta,s=e.Boolean??Ea,c=e.String??Kr,d=new c({type:"string",error:r.error}),p=new s({type:"boolean",error:r.error}),f=new l({type:"pipe",in:d,out:p,transform:((g,b)=>{let h=g;return r.case!=="sensitive"&&(h=h.toLowerCase()),i.has(h)?!0:a.has(h)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:b.value,inst:f,continue:!1}),{})}),reverseTransform:((g,b)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function oi(e,t,r,o={}){let n=j(o),i={...j(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:l=>r.test(l),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function wr(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??nt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function me(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let f=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,f,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),me(p,t,d),t.seen.get(p).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&xt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function zr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let s=o.get(l);if(s&&s!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(l,a[0])}}let n=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,f=e.external.uri??(b=>b);if(p)return{ref:f(p)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${f("__shared")}#/${l}/${g}`}}if(a[1]===r)return{ref:"#"};let c=`#/${l}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},i=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:s,defId:c}=n(a);l.def={...l.schema},c&&(l.defId=c);let d=l.schema;for(let p in d)delete d[p];d.$ref=s};if(e.cycles==="throw")for(let a of e.seen.entries()){let l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
71
71
|
|
|
72
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let l=a[1];if(t===a[0]){i(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(l.cycle){i(a);continue}if(l.count>1&&e.reused==="ref"){i(a);continue}}}function Ir(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=l=>{let s=e.seen.get(l);if(s.ref===null)return;let c=s.def??s.schema,d={...c},p=s.ref;if(s.ref=null,p){o(p);let g=e.seen.get(p),x=g.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(x)):Object.assign(c,x),Object.assign(c,d),l._zod.parent===p)for(let w in c)w==="$ref"||w==="allOf"||w in d||delete c[w];if(x.$ref&&g.def)for(let w in c)w==="$ref"||w==="allOf"||w in g.def&&JSON.stringify(c[w])===JSON.stringify(g.def[w])&&delete c[w]}let f=l._zod.parent;if(f&&f!==p){o(f);let g=e.seen.get(f);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let x in c)x==="$ref"||x==="allOf"||x in g.def&&JSON.stringify(c[x])===JSON.stringify(g.def[x])&&delete c[x]}e.override({zodSchema:l,jsonSchema:c,path:s.path??[]})};for(let l of[...e.seen.entries()].reverse())o(l[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(l)}Object.assign(n,r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&n.id===i&&delete n.id;let a=e.external?.defs??{};for(let l of e.seen.entries()){let s=l[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,a[s.defId]=s.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let l=JSON.parse(JSON.stringify(n));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:oi(t,"input",e.processors),output:oi(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function xt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return xt(o.element,r);if(o.type==="set")return xt(o.valueType,r);if(o.type==="lazy")return xt(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return xt(o.innerType,r);if(o.type==="intersection")return xt(o.left,r)||xt(o.right,r);if(o.type==="record"||o.type==="map")return xt(o.keyType,r)||xt(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:xt(o.in,r)||xt(o.out,r);if(o.type==="object"){for(let n in o.shape)if(xt(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(xt(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(xt(n,r))return!0;return!!(o.rest&&xt(o.rest,r))}return!1}var bv=(e,t={})=>r=>{let o=wr({...r,processors:t});return fe(e,o),zr(o,e),Ir(o,e)},oi=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=wr({...n??{},target:i,io:t,processors:r});return fe(e,a),zr(a,e),Ir(a,e)};var YE={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Sv=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),l&&(n.format=YE[l]??l,n.format===""&&delete n.format,l==="time"&&delete n.format),c&&(n.contentEncoding=c),s&&s.size>0){let d=[...s];d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},kv=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?n.type="integer":n.type="number";let p=typeof d=="number"&&d>=(i??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";p?g?(n.minimum=d,n.exclusiveMinimum=!0):n.exclusiveMinimum=d:typeof i=="number"&&(n.minimum=i),f?g?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof s=="number"&&(n.multipleOf=s)},_v=(e,t,r,o)=>{r.type="boolean"},$v=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},wv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},zv=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Iv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Pv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Ev=(e,t,r,o)=>{r.not={}},Rv=(e,t,r,o)=>{},Cv=(e,t,r,o)=>{},Tv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},jv=(e,t,r,o)=>{let n=e._zod.def,i=ba(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},Ov=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},Dv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Nv=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},Lv=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:s}=e._zod.bag;a!==void 0&&(i.minLength=a),l!==void 0&&(i.maxLength=l),s?s.length===1?(i.contentMediaType=s[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(n,i)},Uv=(e,t,r,o)=>{r.type="boolean"},Av=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Fv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Wv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Mv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Zv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Bv=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof l=="number"&&(n.maxItems=l),n.type="array",n.items=fe(i.element,t,{...o,path:[...o.path,"items"]})},Vv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let c in a)n.properties[c]=fe(a[c],t,{...o,path:[...o.path,"properties",c]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(c=>{let d=i.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(n.required=Array.from(s)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=fe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Dc=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((l,s)=>fe(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?r.oneOf=a:r.anyOf=a},Hv=(e,t,r,o)=>{let n=e._zod.def,i=fe(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=fe(n.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];r.allOf=s},Jv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((f,g)=>fe(f,t,{...o,path:[...o.path,a,g]})),c=i.rest?fe(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=s,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:s},c&&n.items.anyOf.push(c),n.minItems=s.length,c||(n.maxItems=s.length)):(n.items=s,c&&(n.additionalItems=c));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(n.minItems=d),typeof p=="number"&&(n.maxItems=p)},Gv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,s=a._zod.bag?.patterns;if(i.mode==="loose"&&s&&s.size>0){let d=fe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let p of s)n.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=fe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=fe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=a._zod.values;if(c){let d=[...c].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(n.required=d)}},Xv=(e,t,r,o)=>{let n=e._zod.def,i=fe(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Kv=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Yv=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Qv=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},qv=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},ey=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?n.out:n.in:n.out;fe(a,t,o);let l=t.seen.get(e);l.ref=a},ty=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},ny=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Nc=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},ry=(e,t,r,o)=>{let n=e._zod.innerType;fe(n,t,o);let i=t.seen.get(e);i.ref=n},Oc={string:Sv,number:kv,boolean:_v,bigint:$v,symbol:wv,null:zv,undefined:Iv,void:Pv,never:Ev,any:Rv,unknown:Cv,date:Tv,enum:jv,literal:Ov,nan:Dv,template_literal:Nv,file:Lv,success:Uv,custom:Av,function:Fv,transform:Wv,map:Mv,set:Zv,array:Bv,object:Vv,union:Dc,intersection:Hv,tuple:Jv,record:Gv,nullable:Xv,nonoptional:Kv,default:Yv,prefault:Qv,catch:qv,pipe:ey,readonly:ty,promise:ny,optional:Nc,lazy:ry};function Lc(e,t){if("_idmap"in e){let o=e,n=wr({...t,processors:Oc}),i={};for(let s of o._idmap.entries()){let[c,d]=s;fe(d,n)}let a={},l={registry:o,uri:t?.uri,defs:i};n.external=l;for(let s of o._idmap.entries()){let[c,d]=s;zr(n,d),a[c]=Ir(n,d)}if(Object.keys(i).length>0){let s=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:i}}return{schemas:a}}let r=wr({...t,processors:Oc});return fe(e,r),zr(r,e),Ir(r,e)}var Uc=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=wr({processors:Oc,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return fe(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),zr(this.ctx,t);let o=Ir(this.ctx,t),{"~standard":n,...i}=o;return i}};var c$={};var Ua={};Tn(Ua,{ZodAny:()=>Iy,ZodArray:()=>Cy,ZodBase64:()=>iu,ZodBase64URL:()=>au,ZodBigInt:()=>pi,ZodBigIntFormat:()=>cu,ZodBoolean:()=>di,ZodCIDRv4:()=>ru,ZodCIDRv6:()=>ou,ZodCUID:()=>Kc,ZodCUID2:()=>Yc,ZodCatch:()=>qy,ZodCodec:()=>Ka,ZodCustom:()=>Ya,ZodCustomStringFormat:()=>ci,ZodDate:()=>Va,ZodDefault:()=>Jy,ZodDiscriminatedUnion:()=>jy,ZodE164:()=>lu,ZodEmail:()=>Jc,ZodEmoji:()=>Gc,ZodEnum:()=>li,ZodExactOptional:()=>By,ZodFile:()=>My,ZodFunction:()=>ch,ZodGUID:()=>Fa,ZodIPv4:()=>tu,ZodIPv6:()=>nu,ZodIntersection:()=>Oy,ZodJWT:()=>su,ZodKSUID:()=>eu,ZodLazy:()=>ah,ZodLiteral:()=>Wy,ZodMAC:()=>by,ZodMap:()=>Ay,ZodNaN:()=>th,ZodNanoID:()=>Xc,ZodNever:()=>Ey,ZodNonOptional:()=>gu,ZodNull:()=>wy,ZodNullable:()=>Hy,ZodNumber:()=>ui,ZodNumberFormat:()=>ro,ZodObject:()=>Ja,ZodOptional:()=>mu,ZodPipe:()=>Xa,ZodPrefault:()=>Xy,ZodPreprocess:()=>nh,ZodPromise:()=>sh,ZodReadonly:()=>rh,ZodRecord:()=>ai,ZodSet:()=>Fy,ZodString:()=>si,ZodStringFormat:()=>he,ZodSuccess:()=>Qy,ZodSymbol:()=>_y,ZodTemplateLiteral:()=>ih,ZodTransform:()=>Zy,ZodTuple:()=>Ny,ZodType:()=>ne,ZodULID:()=>Qc,ZodURL:()=>Ba,ZodUUID:()=>zn,ZodUndefined:()=>$y,ZodUnion:()=>Ga,ZodUnknown:()=>Py,ZodVoid:()=>Ry,ZodXID:()=>qc,ZodXor:()=>Ty,_ZodString:()=>Hc,_default:()=>Gy,_function:()=>h0,any:()=>X$,array:()=>Ha,base64:()=>T$,base64url:()=>j$,bigint:()=>B$,boolean:()=>ky,catch:()=>eh,check:()=>x0,cidrv4:()=>R$,cidrv6:()=>C$,codec:()=>m0,cuid:()=>k$,cuid2:()=>_$,custom:()=>b0,date:()=>Y$,describe:()=>S0,discriminatedUnion:()=>r0,e164:()=>O$,email:()=>p$,emoji:()=>b$,enum:()=>pu,exactOptional:()=>Vy,file:()=>u0,float32:()=>F$,float64:()=>W$,function:()=>h0,guid:()=>f$,hash:()=>A$,hex:()=>U$,hostname:()=>L$,httpUrl:()=>x$,instanceof:()=>_0,int:()=>Bc,int32:()=>M$,int64:()=>V$,intersection:()=>Dy,invertCodec:()=>g0,ipv4:()=>I$,ipv6:()=>E$,json:()=>w0,jwt:()=>D$,keyof:()=>Q$,ksuid:()=>z$,lazy:()=>lh,literal:()=>c0,looseObject:()=>t0,looseRecord:()=>i0,mac:()=>P$,map:()=>a0,meta:()=>k0,nan:()=>f0,nanoid:()=>S$,nativeEnum:()=>s0,never:()=>uu,nonoptional:()=>Yy,null:()=>zy,nullable:()=>Ma,nullish:()=>d0,number:()=>Sy,object:()=>q$,optional:()=>Wa,partialRecord:()=>o0,pipe:()=>Vc,prefault:()=>Ky,preprocess:()=>z0,promise:()=>y0,readonly:()=>oh,record:()=>Uy,refine:()=>uh,set:()=>l0,strictObject:()=>e0,string:()=>Aa,stringFormat:()=>N$,stringbool:()=>$0,success:()=>p0,superRefine:()=>dh,symbol:()=>J$,templateLiteral:()=>v0,transform:()=>fu,tuple:()=>Ly,uint32:()=>Z$,uint64:()=>H$,ulid:()=>$$,undefined:()=>G$,union:()=>du,unknown:()=>no,url:()=>h$,uuid:()=>m$,uuidv4:()=>g$,uuidv6:()=>v$,uuidv7:()=>y$,void:()=>K$,xid:()=>w$,xor:()=>n0});var Ac={};Tn(Ac,{endsWith:()=>Ko,gt:()=>$n,gte:()=>ht,includes:()=>Go,length:()=>to,lowercase:()=>Ho,lt:()=>_n,lte:()=>Lt,maxLength:()=>eo,maxSize:()=>$r,mime:()=>Yo,minLength:()=>Bn,minSize:()=>wn,multipleOf:()=>_r,negative:()=>Rc,nonnegative:()=>Tc,nonpositive:()=>Cc,normalize:()=>Qo,overwrite:()=>un,positive:()=>Ec,property:()=>jc,regex:()=>Vo,size:()=>qr,slugify:()=>ni,startsWith:()=>Xo,toLowerCase:()=>ei,toUpperCase:()=>ti,trim:()=>qo,uppercase:()=>Jo});var ii={};Tn(ii,{ZodISODate:()=>Wc,ZodISODateTime:()=>Fc,ZodISODuration:()=>Zc,ZodISOTime:()=>Mc,date:()=>iy,datetime:()=>oy,duration:()=>ly,time:()=>ay});var Fc=h("ZodISODateTime",(e,t)=>{Dm.init(e,t),he.init(e,t)});function oy(e){return Ag(Fc,e)}var Wc=h("ZodISODate",(e,t)=>{Nm.init(e,t),he.init(e,t)});function iy(e){return Fg(Wc,e)}var Mc=h("ZodISOTime",(e,t)=>{Lm.init(e,t),he.init(e,t)});function ay(e){return Wg(Mc,e)}var Zc=h("ZodISODuration",(e,t)=>{Um.init(e,t),he.init(e,t)});function ly(e){return Mg(Zc,e)}var u$=(e,t)=>{wa.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Ia(e,r)},flatten:{value:r=>za(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,No,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,No,2)}},isEmpty:{get(){return e.issues.length===0}}})},qE=h("ZodError",u$),Pt=h("ZodError",u$,{Parent:Error});var sy=Ao(Pt),cy=Fo(Pt),uy=Wo(Pt),dy=Mo(Pt),py=Ls(Pt),fy=Us(Pt),my=As(Pt),gy=Fs(Pt),vy=Ws(Pt),yy=Ms(Pt),hy=Zs(Pt),xy=Bs(Pt);var d$=new WeakMap;function Za(e,t,r){let o=Object.getPrototypeOf(e),n=d$.get(o);if(n||(n=new Set,d$.set(o,n)),!n.has(t)){n.add(t);for(let i in r){let a=r[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var ne=h("ZodType",(e,t)=>(ee.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:oi(e,"input"),output:oi(e,"output")}}),e.toJSONSchema=bv(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>sy(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>uy(e,r,o),e.parseAsync=async(r,o)=>cy(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>dy(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>py(e,r,o),e.decode=(r,o)=>fy(e,r,o),e.encodeAsync=async(r,o)=>my(e,r,o),e.decodeAsync=async(r,o)=>gy(e,r,o),e.safeEncode=(r,o)=>vy(e,r,o),e.safeDecode=(r,o)=>yy(e,r,o),e.safeEncodeAsync=async(r,o)=>hy(e,r,o),e.safeDecodeAsync=async(r,o)=>xy(e,r,o),Za(e,"ZodType",{check(...r){let o=this.def;return this.clone(P.mergeDefs(o,{checks:[...o.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return vt(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(uh(r,o))},superRefine(r,o){return this.check(dh(r,o))},overwrite(r){return this.check(un(r))},optional(){return Wa(this)},exactOptional(){return Vy(this)},nullable(){return Ma(this)},nullish(){return Wa(Ma(this))},nonoptional(r){return Yy(this,r)},array(){return Ha(this)},or(r){return du([this,r])},and(r){return Dy(this,r)},transform(r){return Vc(this,fu(r))},default(r){return Gy(this,r)},prefault(r){return Ky(this,r)},catch(r){return eh(this,r)},pipe(r){return Vc(this,r)},readonly(){return oh(this)},describe(r){let o=this.clone();return nt.add(o,{description:r}),o},meta(...r){if(r.length===0)return nt.get(this);let o=this.clone();return nt.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return nt.get(e)?.description},configurable:!0}),e)),Hc=h("_ZodString",(e,t)=>{Qr.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Sv(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Za(e,"_ZodString",{regex(...o){return this.check(Vo(...o))},includes(...o){return this.check(Go(...o))},startsWith(...o){return this.check(Xo(...o))},endsWith(...o){return this.check(Ko(...o))},min(...o){return this.check(Bn(...o))},max(...o){return this.check(eo(...o))},length(...o){return this.check(to(...o))},nonempty(...o){return this.check(Bn(1,...o))},lowercase(o){return this.check(Ho(o))},uppercase(o){return this.check(Jo(o))},trim(){return this.check(qo())},normalize(...o){return this.check(Qo(...o))},toLowerCase(){return this.check(ei())},toUpperCase(){return this.check(ti())},slugify(){return this.check(ni())}})}),si=h("ZodString",(e,t)=>{Qr.init(e,t),Hc.init(e,t),e.email=r=>e.check(cc(Jc,r)),e.url=r=>e.check(La(Ba,r)),e.jwt=r=>e.check(Pc(su,r)),e.emoji=r=>e.check(mc(Gc,r)),e.guid=r=>e.check(Na(Fa,r)),e.uuid=r=>e.check(uc(zn,r)),e.uuidv4=r=>e.check(dc(zn,r)),e.uuidv6=r=>e.check(pc(zn,r)),e.uuidv7=r=>e.check(fc(zn,r)),e.nanoid=r=>e.check(gc(Xc,r)),e.guid=r=>e.check(Na(Fa,r)),e.cuid=r=>e.check(vc(Kc,r)),e.cuid2=r=>e.check(yc(Yc,r)),e.ulid=r=>e.check(hc(Qc,r)),e.base64=r=>e.check(wc(iu,r)),e.base64url=r=>e.check(zc(au,r)),e.xid=r=>e.check(xc(qc,r)),e.ksuid=r=>e.check(bc(eu,r)),e.ipv4=r=>e.check(Sc(tu,r)),e.ipv6=r=>e.check(kc(nu,r)),e.cidrv4=r=>e.check(_c(ru,r)),e.cidrv6=r=>e.check($c(ou,r)),e.e164=r=>e.check(Ic(lu,r)),e.datetime=r=>e.check(oy(r)),e.date=r=>e.check(iy(r)),e.time=r=>e.check(ay(r)),e.duration=r=>e.check(ly(r))});function Aa(e){return Dg(si,e)}var he=h("ZodStringFormat",(e,t)=>{ye.init(e,t),Hc.init(e,t)}),Jc=h("ZodEmail",(e,t)=>{zm.init(e,t),he.init(e,t)});function p$(e){return cc(Jc,e)}var Fa=h("ZodGUID",(e,t)=>{$m.init(e,t),he.init(e,t)});function f$(e){return Na(Fa,e)}var zn=h("ZodUUID",(e,t)=>{wm.init(e,t),he.init(e,t)});function m$(e){return uc(zn,e)}function g$(e){return dc(zn,e)}function v$(e){return pc(zn,e)}function y$(e){return fc(zn,e)}var Ba=h("ZodURL",(e,t)=>{Im.init(e,t),he.init(e,t)});function h$(e){return La(Ba,e)}function x$(e){return La(Ba,{protocol:Nt.httpProtocol,hostname:Nt.domain,...P.normalizeParams(e)})}var Gc=h("ZodEmoji",(e,t)=>{Pm.init(e,t),he.init(e,t)});function b$(e){return mc(Gc,e)}var Xc=h("ZodNanoID",(e,t)=>{Em.init(e,t),he.init(e,t)});function S$(e){return gc(Xc,e)}var Kc=h("ZodCUID",(e,t)=>{Rm.init(e,t),he.init(e,t)});function k$(e){return vc(Kc,e)}var Yc=h("ZodCUID2",(e,t)=>{Cm.init(e,t),he.init(e,t)});function _$(e){return yc(Yc,e)}var Qc=h("ZodULID",(e,t)=>{Tm.init(e,t),he.init(e,t)});function $$(e){return hc(Qc,e)}var qc=h("ZodXID",(e,t)=>{jm.init(e,t),he.init(e,t)});function w$(e){return xc(qc,e)}var eu=h("ZodKSUID",(e,t)=>{Om.init(e,t),he.init(e,t)});function z$(e){return bc(eu,e)}var tu=h("ZodIPv4",(e,t)=>{Am.init(e,t),he.init(e,t)});function I$(e){return Sc(tu,e)}var by=h("ZodMAC",(e,t)=>{Wm.init(e,t),he.init(e,t)});function P$(e){return Lg(by,e)}var nu=h("ZodIPv6",(e,t)=>{Fm.init(e,t),he.init(e,t)});function E$(e){return kc(nu,e)}var ru=h("ZodCIDRv4",(e,t)=>{Mm.init(e,t),he.init(e,t)});function R$(e){return _c(ru,e)}var ou=h("ZodCIDRv6",(e,t)=>{Zm.init(e,t),he.init(e,t)});function C$(e){return $c(ou,e)}var iu=h("ZodBase64",(e,t)=>{Vm.init(e,t),he.init(e,t)});function T$(e){return wc(iu,e)}var au=h("ZodBase64URL",(e,t)=>{Hm.init(e,t),he.init(e,t)});function j$(e){return zc(au,e)}var lu=h("ZodE164",(e,t)=>{Jm.init(e,t),he.init(e,t)});function O$(e){return Ic(lu,e)}var su=h("ZodJWT",(e,t)=>{Gm.init(e,t),he.init(e,t)});function D$(e){return Pc(su,e)}var ci=h("ZodCustomStringFormat",(e,t)=>{Xm.init(e,t),he.init(e,t)});function N$(e,t,r={}){return ri(ci,e,t,r)}function L$(e){return ri(ci,"hostname",Nt.hostname,e)}function U$(e){return ri(ci,"hex",Nt.hex,e)}function A$(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Nt[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return ri(ci,o,n,t)}var ui=h("ZodNumber",(e,t)=>{qs.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>kv(e,o,n,i),Za(e,"ZodNumber",{gt(o,n){return this.check($n(o,n))},gte(o,n){return this.check(ht(o,n))},min(o,n){return this.check(ht(o,n))},lt(o,n){return this.check(_n(o,n))},lte(o,n){return this.check(Lt(o,n))},max(o,n){return this.check(Lt(o,n))},int(o){return this.check(Bc(o))},safe(o){return this.check(Bc(o))},positive(o){return this.check($n(0,o))},nonnegative(o){return this.check(ht(0,o))},negative(o){return this.check(_n(0,o))},nonpositive(o){return this.check(Lt(0,o))},multipleOf(o,n){return this.check(_r(o,n))},step(o,n){return this.check(_r(o,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Sy(e){return Zg(ui,e)}var ro=h("ZodNumberFormat",(e,t)=>{Km.init(e,t),ui.init(e,t)});function Bc(e){return Vg(ro,e)}function F$(e){return Hg(ro,e)}function W$(e){return Jg(ro,e)}function M$(e){return Gg(ro,e)}function Z$(e){return Xg(ro,e)}var di=h("ZodBoolean",(e,t)=>{Ca.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_v(e,r,o,n)});function ky(e){return Kg(di,e)}var pi=h("ZodBigInt",(e,t)=>{ec.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>$v(e,o,n,i),e.gte=(o,n)=>e.check(ht(o,n)),e.min=(o,n)=>e.check(ht(o,n)),e.gt=(o,n)=>e.check($n(o,n)),e.gte=(o,n)=>e.check(ht(o,n)),e.min=(o,n)=>e.check(ht(o,n)),e.lt=(o,n)=>e.check(_n(o,n)),e.lte=(o,n)=>e.check(Lt(o,n)),e.max=(o,n)=>e.check(Lt(o,n)),e.positive=o=>e.check($n(BigInt(0),o)),e.negative=o=>e.check(_n(BigInt(0),o)),e.nonpositive=o=>e.check(Lt(BigInt(0),o)),e.nonnegative=o=>e.check(ht(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(_r(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function B$(e){return Qg(pi,e)}var cu=h("ZodBigIntFormat",(e,t)=>{Ym.init(e,t),pi.init(e,t)});function V$(e){return ev(cu,e)}function H$(e){return tv(cu,e)}var _y=h("ZodSymbol",(e,t)=>{Qm.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wv(e,r,o,n)});function J$(e){return nv(_y,e)}var $y=h("ZodUndefined",(e,t)=>{qm.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Iv(e,r,o,n)});function G$(e){return rv($y,e)}var wy=h("ZodNull",(e,t)=>{eg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zv(e,r,o,n)});function zy(e){return ov(wy,e)}var Iy=h("ZodAny",(e,t)=>{tg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Rv(e,r,o,n)});function X$(){return iv(Iy)}var Py=h("ZodUnknown",(e,t)=>{ng.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Cv(e,r,o,n)});function no(){return av(Py)}var Ey=h("ZodNever",(e,t)=>{rg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ev(e,r,o,n)});function uu(e){return lv(Ey,e)}var Ry=h("ZodVoid",(e,t)=>{og.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pv(e,r,o,n)});function K$(e){return sv(Ry,e)}var Va=h("ZodDate",(e,t)=>{ig.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Tv(e,o,n,i),e.min=(o,n)=>e.check(ht(o,n)),e.max=(o,n)=>e.check(Lt(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Y$(e){return cv(Va,e)}var Cy=h("ZodArray",(e,t)=>{ag.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Bv(e,r,o,n),e.element=t.element,Za(e,"ZodArray",{min(r,o){return this.check(Bn(r,o))},nonempty(r){return this.check(Bn(1,r))},max(r,o){return this.check(eo(r,o))},length(r,o){return this.check(to(r,o))},unwrap(){return this.element}})});function Ha(e,t){return pv(Cy,e,t)}function Q$(e){let t=e._zod.def.shape;return pu(Object.keys(t))}var Ja=h("ZodObject",(e,t)=>{lg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Vv(e,r,o,n),P.defineLazy(e,"shape",()=>t.shape),Za(e,"ZodObject",{keyof(){return pu(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:no()})},loose(){return this.clone({...this._zod.def,catchall:no()})},strict(){return this.clone({...this._zod.def,catchall:uu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return P.extend(this,r)},safeExtend(r){return P.safeExtend(this,r)},merge(r){return P.merge(this,r)},pick(r){return P.pick(this,r)},omit(r){return P.omit(this,r)},partial(...r){return P.partial(mu,this,r[0])},required(...r){return P.required(gu,this,r[0])}})});function q$(e,t){let r={type:"object",shape:e??{},...P.normalizeParams(t)};return new Ja(r)}function e0(e,t){return new Ja({type:"object",shape:e,catchall:uu(),...P.normalizeParams(t)})}function t0(e,t){return new Ja({type:"object",shape:e,catchall:no(),...P.normalizeParams(t)})}var Ga=h("ZodUnion",(e,t)=>{Ta.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dc(e,r,o,n),e.options=t.options});function du(e,t){return new Ga({type:"union",options:e,...P.normalizeParams(t)})}var Ty=h("ZodXor",(e,t)=>{Ga.init(e,t),sg.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dc(e,r,o,n),e.options=t.options});function n0(e,t){return new Ty({type:"union",options:e,inclusive:!1,...P.normalizeParams(t)})}var jy=h("ZodDiscriminatedUnion",(e,t)=>{Ga.init(e,t),cg.init(e,t)});function r0(e,t,r){return new jy({type:"union",options:t,discriminator:e,...P.normalizeParams(r)})}var Oy=h("ZodIntersection",(e,t)=>{ug.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hv(e,r,o,n)});function Dy(e,t){return new Oy({type:"intersection",left:e,right:t})}var Ny=h("ZodTuple",(e,t)=>{tc.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jv(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Ly(e,t,r){let o=t instanceof ee,n=o?r:t,i=o?t:null;return new Ny({type:"tuple",items:e,rest:i,...P.normalizeParams(n)})}var ai=h("ZodRecord",(e,t)=>{dg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gv(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function Uy(e,t,r){return!t||!t._zod?new ai({type:"record",keyType:Aa(),valueType:e,...P.normalizeParams(t)}):new ai({type:"record",keyType:e,valueType:t,...P.normalizeParams(r)})}function o0(e,t,r){let o=vt(e);return o._zod.values=void 0,new ai({type:"record",keyType:o,valueType:t,...P.normalizeParams(r)})}function i0(e,t,r){return new ai({type:"record",keyType:e,valueType:t,mode:"loose",...P.normalizeParams(r)})}var Ay=h("ZodMap",(e,t)=>{pg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Mv(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(wn(...r)),e.nonempty=r=>e.check(wn(1,r)),e.max=(...r)=>e.check($r(...r)),e.size=(...r)=>e.check(qr(...r))});function a0(e,t,r){return new Ay({type:"map",keyType:e,valueType:t,...P.normalizeParams(r)})}var Fy=h("ZodSet",(e,t)=>{fg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zv(e,r,o,n),e.min=(...r)=>e.check(wn(...r)),e.nonempty=r=>e.check(wn(1,r)),e.max=(...r)=>e.check($r(...r)),e.size=(...r)=>e.check(qr(...r))});function l0(e,t){return new Fy({type:"set",valueType:e,...P.normalizeParams(t)})}var li=h("ZodEnum",(e,t)=>{mg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>jv(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new li({...t,checks:[],...P.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new li({...t,checks:[],...P.normalizeParams(n),entries:i})}});function pu(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new li({type:"enum",entries:r,...P.normalizeParams(t)})}function s0(e,t){return new li({type:"enum",entries:e,...P.normalizeParams(t)})}var Wy=h("ZodLiteral",(e,t)=>{gg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ov(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function c0(e,t){return new Wy({type:"literal",values:Array.isArray(e)?e:[e],...P.normalizeParams(t)})}var My=h("ZodFile",(e,t)=>{vg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Lv(e,r,o,n),e.min=(r,o)=>e.check(wn(r,o)),e.max=(r,o)=>e.check($r(r,o)),e.mime=(r,o)=>e.check(Yo(Array.isArray(r)?r:[r],o))});function u0(e){return fv(My,e)}var Zy=h("ZodTransform",(e,t)=>{yg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Wv(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new hr(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(P.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(P.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function fu(e){return new Zy({type:"transform",transform:e})}var mu=h("ZodOptional",(e,t)=>{nc.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Wa(e){return new mu({type:"optional",innerType:e})}var By=h("ZodExactOptional",(e,t)=>{hg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Vy(e){return new By({type:"optional",innerType:e})}var Hy=h("ZodNullable",(e,t)=>{xg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ma(e){return new Hy({type:"nullable",innerType:e})}function d0(e){return Wa(Ma(e))}var Jy=h("ZodDefault",(e,t)=>{bg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Gy(e,t){return new Jy({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():P.shallowClone(t)}})}var Xy=h("ZodPrefault",(e,t)=>{Sg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ky(e,t){return new Xy({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():P.shallowClone(t)}})}var gu=h("ZodNonOptional",(e,t)=>{kg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Kv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Yy(e,t){return new gu({type:"nonoptional",innerType:e,...P.normalizeParams(t)})}var Qy=h("ZodSuccess",(e,t)=>{_g.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Uv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function p0(e){return new Qy({type:"success",innerType:e})}var qy=h("ZodCatch",(e,t)=>{$g.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function eh(e,t){return new qy({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var th=h("ZodNaN",(e,t)=>{wg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dv(e,r,o,n)});function f0(e){return dv(th,e)}var Xa=h("ZodPipe",(e,t)=>{rc.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ey(e,r,o,n),e.in=t.in,e.out=t.out});function Vc(e,t){return new Xa({type:"pipe",in:e,out:t})}var Ka=h("ZodCodec",(e,t)=>{Xa.init(e,t),ja.init(e,t)});function m0(e,t,r){return new Ka({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function g0(e){let t=e._zod.def;return new Ka({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var nh=h("ZodPreprocess",(e,t)=>{Xa.init(e,t),zg.init(e,t)}),rh=h("ZodReadonly",(e,t)=>{Ig.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ty(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function oh(e){return new rh({type:"readonly",innerType:e})}var ih=h("ZodTemplateLiteral",(e,t)=>{Pg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nv(e,r,o,n)});function v0(e,t){return new ih({type:"template_literal",parts:e,...P.normalizeParams(t)})}var ah=h("ZodLazy",(e,t)=>{Cg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ry(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function lh(e){return new ah({type:"lazy",getter:e})}var sh=h("ZodPromise",(e,t)=>{Rg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ny(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function y0(e){return new sh({type:"promise",innerType:e})}var ch=h("ZodFunction",(e,t)=>{Eg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Fv(e,r,o,n)});function h0(e){return new ch({type:"function",input:Array.isArray(e?.input)?Ly(e?.input):e?.input??Ha(no()),output:e?.output??no()})}var Ya=h("ZodCustom",(e,t)=>{Tg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Av(e,r,o,n)});function x0(e){let t=new be({check:"custom"});return t._zod.check=e,t}function b0(e,t){return mv(Ya,e??(()=>!0),t)}function uh(e,t={}){return gv(Ya,e,t)}function dh(e,t){return vv(e,t)}var S0=yv,k0=hv;function _0(e,t={}){let r=new Ya({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...P.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var $0=(...e)=>xv({Codec:Ka,Boolean:di,String:si},...e);function w0(e){let t=lh(()=>du([Aa(e),Sy(),ky(),zy(),Ha(t),Uy(Aa(),t)]));return t}function z0(e,t){return new nh({type:"pipe",in:fu(e),out:t})}var tR={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function nR(e){Le({customError:e})}function rR(){return Le().customError}var ph;ph||(ph={});var L={...Ua,...Ac,iso:ii},oR=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function iR(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function aR(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function I0(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return L.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return L.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=aR(n,t),a=ct(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return L.null();if(n.length===0)return L.never();if(n.length===1)return L.literal(n[0]);if(n.every(a=>typeof a=="string"))return L.enum(n);let i=n.map(a=>L.literal(a));return i.length<2?i[0]:L.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return L.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return I0(a,t)});return n.length===0?L.never():n.length===1?n[0]:L.union(n)}if(!r)return L.any();let o;switch(r){case"string":{let n=L.string();if(e.format){let i=e.format;i==="email"?n=n.check(L.email()):i==="uri"||i==="uri-reference"?n=n.check(L.url()):i==="uuid"||i==="guid"?n=n.check(L.uuid()):i==="date-time"?n=n.check(L.iso.datetime()):i==="date"?n=n.check(L.iso.date()):i==="time"?n=n.check(L.iso.time()):i==="duration"?n=n.check(L.iso.duration()):i==="ipv4"?n=n.check(L.ipv4()):i==="ipv6"?n=n.check(L.ipv6()):i==="mac"?n=n.check(L.mac()):i==="cidr"?n=n.check(L.cidrv4()):i==="cidr-v6"?n=n.check(L.cidrv6()):i==="base64"?n=n.check(L.base64()):i==="base64url"?n=n.check(L.base64url()):i==="e164"?n=n.check(L.e164()):i==="jwt"?n=n.check(L.jwt()):i==="emoji"?n=n.check(L.emoji()):i==="nanoid"?n=n.check(L.nanoid()):i==="cuid"?n=n.check(L.cuid()):i==="cuid2"?n=n.check(L.cuid2()):i==="ulid"?n=n.check(L.ulid()):i==="xid"?n=n.check(L.xid()):i==="ksuid"&&(n=n.check(L.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?L.number().int():L.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=L.boolean();break}case"null":{o=L.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[s,c]of Object.entries(i)){let d=ct(c,t);n[s]=a.has(s)?d:d.optional()}if(e.propertyNames){let s=ct(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?ct(e.additionalProperties,t):L.any();if(Object.keys(n).length===0){o=L.record(s,c);break}let d=L.object(n).passthrough(),p=L.looseRecord(s,c);o=L.intersection(d,p);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),d=[];for(let f of c){let g=ct(s[f],t),x=L.string().regex(new RegExp(f));d.push(L.looseRecord(x,g))}let p=[];if(Object.keys(n).length>0&&p.push(L.object(n).passthrough()),p.push(...d),p.length===0)o=L.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=L.intersection(p[0],p[1]);for(let g=2;g<p.length;g++)f=L.intersection(f,p[g]);o=f}break}let l=L.object(n);e.additionalProperties===!1?o=l.strict():typeof e.additionalProperties=="object"?o=l.catchall(ct(e.additionalProperties,t)):o=l.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(s=>ct(s,t)),l=i&&typeof i=="object"&&!Array.isArray(i)?ct(i,t):void 0;l?o=L.tuple(a).rest(l):o=L.tuple(a),typeof e.minItems=="number"&&(o=o.check(L.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(L.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(s=>ct(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?ct(e.additionalItems,t):void 0;l?o=L.tuple(a).rest(l):o=L.tuple(a),typeof e.minItems=="number"&&(o=o.check(L.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(L.maxLength(e.maxItems)))}else if(i!==void 0){let a=ct(i,t),l=L.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),o=l}else o=L.array(L.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function ct(e,t){if(typeof e=="boolean")return e?L.any():L.never();let r=I0(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(c=>ct(c,t)),s=L.union(l);r=o?L.intersection(r,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(c=>ct(c,t)),s=L.xor(l);r=o?L.intersection(r,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:L.any();else{let l=o?r:ct(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)l=L.intersection(l,ct(e.allOf[c],t));r=l}e.nullable===!0&&t.version==="openapi-3.0"&&(r=L.nullable(r)),e.readOnly===!0&&(r=L.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of i)l in e&&(n[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(n[l]=e[l]);for(let l of Object.keys(e))oR.has(l)||(n[l]=e[l]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function P0(e,t){if(typeof e=="boolean")return e?L.any():L.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=iR(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??nt};return ct(r,i)}var fh={};Tn(fh,{bigint:()=>uR,boolean:()=>cR,date:()=>dR,number:()=>sR,string:()=>lR});function lR(e){return Ng(si,e)}function sR(e){return Bg(ui,e)}function cR(e){return Yg(di,e)}function uR(e){return qg(pi,e)}function dR(e){return uv(Va,e)}Le(oc());var BD=Object.freeze({kpis:{memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},sessions:{sessions:[]},settings:{orgId:"",orgName:"",workspace:"",settings:{}},graph:{built:!1,nodes:[],edges:[]},rules:{rules:[]},skillSync:{skills:[]}});var vu=Object.freeze({savings:{status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null},infra:{status:"absent",cents:0,costBasis:"none"},pollination:{status:"absent",cents:0,lines:[]},net:{status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"},rollups:[],perUserAvailable:!1,scopedAcrossDevices:!1,ratesAsOf:""}),yu=Object.freeze({status:"absent",series:[],startedAt:""});var Y=Object.freeze({kpis:"/api/diagnostics/kpis",sessions:"/api/diagnostics/sessions",settings:"/api/diagnostics/settings",rules:"/api/diagnostics/rules",skills:"/api/diagnostics/skills",graph:"/api/graph",graphBuild:"/api/graph/build",memoryGraph:"/api/diagnostics/memory-graph",recall:"/api/memories/recall",memories:"/api/memories",compact:"/api/diagnostics/compact",lifecycleConflicts:"/api/memories/conflicts",lifecycleStaleRefs:"/api/memories/stale-refs",lifecycleHistory:"/api/memories/history",calibration:"/api/memories/calibration",logs:"/api/logs",logsStream:"/api/logs/stream",harnesses:"/api/diagnostics/harnesses",assets:"/api/diagnostics/assets",syncAction:"/api/diagnostics/sync",health:"/health",pollinate:"/api/diagnostics/pollinate",vaultSettings:"/api/settings",secrets:"/api/secrets",authStatus:"/api/auth/status",setupState:"/setup/state",setupLogin:"/setup/login",setupMigrate:"/setup/migrate-from-hivemind",setupMigrateRollback:"/setup/migrate-from-hivemind/rollback",scopeOrgs:"/api/diagnostics/scope/orgs",scopeWorkspaces:"/api/diagnostics/scope/workspaces",scopeProjects:"/api/diagnostics/scope/projects",fsBrowse:"/api/diagnostics/fs/browse",projectsBind:"/api/diagnostics/projects/bind",projectsBindExisting:"/api/diagnostics/projects/bind-existing",projectsUnbind:"/api/diagnostics/projects/unbind",scopeOrgSwitch:"/api/diagnostics/scope/org-switch",scopeWorkspaceSwitch:"/api/diagnostics/scope/workspace-switch",roi:"/api/diagnostics/roi",roiTrend:"/api/diagnostics/roi/trend"}),pR="x-honeycomb-project";function fi(e){return e!==void 0&&e!==""?{[pR]:e}:{}}var fR=50,mR=u.object({memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),turnCount:u.number().catch(0),estimatedSavings:u.number().catch(0),teamSkillCount:u.number().catch(0)}),N0=u.object({sessionId:u.string().catch(""),project:u.string().catch(""),startedAt:u.string().catch(""),eventCount:u.number().catch(0),status:u.string().catch("captured")}),gR=u.object({sessions:u.array(N0).catch([])}),vR=u.object({orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),settings:u.record(u.string(),u.string()).catch({})}),yR=u.object({id:u.string().catch(""),label:u.string().catch(""),kind:u.string().catch("")}),hR=u.object({from:u.string().catch(""),to:u.string().catch(""),kind:u.string().catch("")}),xR=u.object({totalNodes:u.number().catch(0),totalEdges:u.number().catch(0),shownNodes:u.number().catch(0),shownEdges:u.number().catch(0),truncated:u.boolean().catch(!1)}),E0=u.object({built:u.boolean().catch(!1),nodes:u.array(yR).catch([]),edges:u.array(hR).catch([]),meta:xR.optional().catch(void 0)}),bR=u.object({id:u.string().catch(""),title:u.string().catch(""),active:u.boolean().catch(!1)}),SR=u.object({rules:u.array(bR).catch([])}),kR=u.object({name:u.string().catch(""),scope:u.string().catch(""),syncState:u.string().catch("pending")}),_R=u.object({skills:u.array(kR).catch([])}),In=u.number().int().catch(0),gh=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("absent"),L0=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("unreachable"),vh=u.enum(["measured","allocated","none"]).catch("none"),$R=u.object({kind:u.string().catch(""),assumptionText:u.string().catch(""),signedOff:u.boolean().catch(!1)}),wR=u.object({status:gh,measuredCents:In,modeledCents:In,assumption:$R.catch({kind:"",assumptionText:"",signedOff:!1}),blendedCentsPerMtok:u.number().int().nullable().catch(null)}),zR=u.object({status:L0,cents:In,costBasis:vh}),IR=u.object({label:u.string().catch(""),cents:In}),PR=u.object({status:L0,cents:In,lines:u.array(IR).catch([])}),ER=u.object({status:gh,computed:u.boolean().catch(!1),netCents:In,modeled:u.boolean().catch(!0),costBasis:vh}),RR=u.object({key:u.string().catch(""),label:u.string().catch(""),measuredSavingsCents:In,netCents:In,infraCostCents:In,costBasis:vh,sessions:u.number().int().catch(0)}),CR=u.object({dimension:u.enum(["org","team","agent","project"]).catch("org"),rows:u.array(RR).catch([]),mixedBasis:u.boolean().catch(!1)}),TR=u.object({savings:wR.catch({status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null}),infra:zR.catch({status:"unreachable",cents:0,costBasis:"none"}),pollination:PR.catch({status:"unreachable",cents:0,lines:[]}),net:ER.catch({status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"}),rollups:u.array(CR).catch([]),perUserAvailable:u.boolean().catch(!1),scopedAcrossDevices:u.boolean().catch(!1),ratesAsOf:u.string().catch("")}),jR=u.object({period:u.string().catch(""),cents:In}),OR=u.object({label:u.string().catch(""),modeled:u.boolean().catch(!1),points:u.array(jR).catch([])}),DR=u.object({status:gh,series:u.array(OR).catch([]),startedAt:u.string().catch("")}),R0=u.object({assetType:u.enum(["skill","agent"]).catch("skill"),name:u.string().catch(""),description:u.string().catch(""),state:u.enum(["local","pulled","shared"]).catch("local"),scope:u.string().catch(""),sourceHarness:u.string().catch(""),tier:u.string().catch(""),style:u.string().catch(""),version:u.number().catch(0),honeycombId:u.string().catch(""),authoredByMe:u.boolean().catch(!1)}),NR=u.object({skills:u.array(R0).catch([]),agents:u.array(R0).catch([])}),LR=u.object({ok:u.boolean().catch(!1),action:u.enum(["promote","pull","demote","enable","disable"]).catch("promote"),assetType:u.enum(["skill","agent"]).catch("skill"),honeycombId:u.string().catch(""),state:u.enum(["local","pulled","shared",""]).catch(""),version:u.number().catch(0)}),hu=Object.freeze({skills:[],agents:[]}),UR=u.object({source:u.string().catch(""),id:u.string().catch(""),text:u.string().catch(""),score:u.number().catch(0),kind:u.enum(["memory","session"]).catch("memory"),secondary:u.boolean().catch(!1)}),AR=u.object({hits:u.array(UR).catch([]),sources:u.array(u.string()).catch([]),degraded:u.boolean().catch(!0)}),U0=u.object({id:u.string().catch(""),type:u.string().catch(""),content:u.string().catch(""),confidence:u.number().catch(0),agentId:u.string().catch(""),createdAt:u.string().catch(""),updatedAt:u.string().catch(""),visibility:u.string().catch(""),sourceType:u.string().catch(""),sourceId:u.string().catch(""),version:u.number().catch(0),hasEmbedding:u.boolean().catch(!1)}),FR=u.object({memories:u.array(U0).catch([])}),WR=u.object({memory:U0}),MR=u.object({id:u.string().nullable().catch(null),action:u.string().catch("")}),C0=u.object({id:u.string().nullable().catch(null),action:u.string().catch(""),audited:u.boolean().catch(!1)}),ZR=u.object({table:u.string().catch(""),keysScanned:u.number().catch(0),keysCompacted:u.number().catch(0),rowsReaped:u.number().catch(0),keysSkipped:u.number().catch(0),errored:u.number().catch(0)}),BR=u.object({ok:u.boolean().catch(!1),summaries:u.array(ZR).catch([]),skippedTables:u.array(u.string()).catch([])}),VR=u.object({id:u.string().catch(""),memoryAId:u.string().catch(""),memoryBId:u.string().catch(""),verdict:u.string().catch("review"),winnerId:u.string().nullable().catch(null),status:u.string().catch("open"),contraScore:u.number().catch(0)}),HR=u.object({conflicts:u.array(VR).catch([]),status:u.string().catch("open")}),JR=u.object({memoryId:u.string().catch(""),refStatus:u.string().catch("stale"),staleRefs:u.array(u.string()).catch([]),verifiedAt:u.string().nullable().catch(null)}),GR=u.object({staleRefs:u.array(JR).catch([])}),XR=u.object({id:u.string().catch(""),memoryId:u.string().catch(""),actor:u.string().catch("pipeline"),operation:u.string().catch(""),reason:u.string().catch(""),confidence:u.number().catch(0),timestamp:u.string().catch("")}),KR=u.object({history:u.array(XR).catch([]),type:u.string().catch("lifecycle")}),YR=u.object({lower:u.number().catch(0),upper:u.number().catch(0),meanConfidence:u.number().catch(0),accuracy:u.number().catch(0),count:u.number().catch(0)}),QR=u.object({ece:u.number().catch(0),brier:u.number().catch(0),nSamples:u.number().catch(0),fitAt:u.string().nullable().catch(null),identity:u.boolean().catch(!0),reliabilityDiagram:u.array(YR).catch([])}),xu=Object.freeze({ece:0,brier:0,nSamples:0,fitAt:null,identity:!0,reliabilityDiagram:[]}),yh=u.object({time:u.string().catch(""),method:u.string().catch(""),path:u.string().catch(""),status:u.number().catch(0),durationMs:u.number().optional(),mode:u.string().optional(),org:u.string().optional(),workspace:u.string().optional()}),qR=u.object({records:u.array(yh).catch([]),count:u.number().catch(0)}),eC=u.object({records:u.array(yh).catch([]),count:u.number().catch(0),nextCursor:u.string().nullable().catch(null),persistent:u.boolean().catch(!1)}),tC=u.object({sessions:u.array(N0).catch([]),nextCursor:u.string().nullable().catch(null)}),nC=u.object({kind:u.string().catch(""),binary:u.string().catch(""),fallbackBin:u.string().optional()}),rC=u.object({bin:u.string().catch(""),args:u.array(u.string()).catch([]),fallbackBin:u.string().optional()}),oC=u.object({name:u.string().catch(""),runtimePath:u.string().catch(""),contextChannel:u.string().catch(""),hostCli:rC.catch({bin:"",args:[]}),lifecycleEvents:u.array(u.string()).catch([]),agents:nC.optional(),workspaceRoots:u.boolean().optional(),mcpRegistration:u.boolean().optional(),contractedTools:u.boolean().optional(),agentsMdContext:u.boolean().optional(),userVisibleLogin:u.boolean().optional()}),iC=u.object({name:u.string().catch(""),installed:u.boolean().catch(!1),active:u.boolean().catch(!1),lastSeen:u.string().nullable().catch(null),turnsCaptured:u.number().catch(0),runtimePath:u.string().catch(""),capabilities:oC.catch({name:"",runtimePath:"",contextChannel:"",hostCli:{bin:"",args:[]},lifecycleEvents:[]})}),aC=u.object({harnesses:u.array(iC).catch([])}),lC=u.object({triggered:u.boolean().catch(!1),status:u.string().catch("skipped"),reason:u.string().optional()}),sC=u.object({built:u.boolean().catch(!1),nodeCount:u.number().catch(0),edgeCount:u.number().catch(0),fileCount:u.number().catch(0)}),mh=Object.freeze({built:!1,nodeCount:0,edgeCount:0,fileCount:0}),cC=12e4,uC=u.object({storage:u.enum(["reachable","unreachable"]).catch("reachable"),embeddings:u.enum(["on","off"]).catch("on"),schema:u.enum(["ok","missing_table"]).catch("ok")}),dC=u.object({status:u.string().catch("ok"),reasons:uC.optional()}),pC=u.object({id:u.string().catch(""),label:u.string().catch(""),models:u.array(u.string()).catch([]),openEnded:u.boolean().catch(!1)}),fC=u.union([u.string(),u.number(),u.boolean()]).catch(""),mC=u.object({settings:u.record(u.string(),fC).catch({}),catalog:u.array(pC).catch([])}),gC=u.object({names:u.array(u.string()).catch([])}),Qa=Object.freeze({settings:{},catalog:[]}),vC=u.object({connected:u.boolean().catch(!1),orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),agentId:u.string().catch(""),source:u.enum(["env","file","none"]).catch("none"),savedAt:u.string().catch(""),expiresAt:u.number().optional()}),hh=Object.freeze({connected:!1,orgId:"",orgName:"",workspace:"",agentId:"",source:"none",savedAt:""}),yC=u.object({deeplake:u.boolean().catch(!1),honeycomb:u.boolean().catch(!1),hivemind:u.boolean().catch(!1)}),hC=u.object({enabled:u.boolean().catch(!1),live:u.boolean().catch(!1),warm:u.boolean().catch(!1)}),xC=u.object({credentials:yC.catch({deeplake:!1,honeycomb:!1,hivemind:!1}),phase:u.enum(["fresh","installed","linking","linked","migrating","migrated"]).catch("fresh"),priorTool:u.object({hivemind:u.enum(["absent","present","migrated"]).catch("absent")}).catch({hivemind:"absent"}),firstTimeSetupComplete:u.boolean().catch(!1),authenticated:u.boolean().catch(!1),warmup:hC.catch({enabled:!1,live:!1,warm:!1}),migration:u.object({phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),startedAt:u.string().catch(""),backupPath:u.string().optional()}).optional()}),xh=Object.freeze({credentials:{deeplake:!1,honeycomb:!1,hivemind:!1},phase:"fresh",priorTool:{hivemind:"absent"},firstTimeSetupComplete:!1,authenticated:!1,warmup:{enabled:!1,live:!1,warm:!1}}),bC=u.object({user_code:u.string().catch(""),verification_uri:u.string().catch(""),verification_uri_complete:u.string().optional()}),SC=u.object({ok:u.boolean().catch(!1),phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),message:u.string().catch(""),backupPath:u.string().optional(),needsLogin:u.boolean().optional(),migrated:u.boolean().optional()}),kC=Object.freeze({ok:!1,phase:"backup",message:"Migration is unavailable right now. Retry, or run the uninstall + `honeycomb login` in your terminal."}),_C=u.object({ok:u.boolean().catch(!1),phase:u.literal("rolled_back").catch("rolled_back"),message:u.string().catch("")}),$C=Object.freeze({ok:!1,phase:"rolled_back",message:"Rollback is unavailable right now. Retry."}),wC=u.object({id:u.string().catch(""),name:u.string().catch("")}),zC=u.object({orgs:u.array(wC).catch([])}),IC=u.object({id:u.string().catch(""),name:u.string().catch("")}),PC=u.object({workspaces:u.array(IC).catch([]),org:u.string().catch(""),reminted:u.boolean().catch(!1)}),EC=u.object({projectId:u.string().catch(""),name:u.string().catch(""),boundLocally:u.boolean().catch(!1),boundPaths:u.array(u.string()).catch([]),remote:u.string().catch(""),memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),lastCapture:u.string().nullable().catch(null)}),RC=u.object({projects:u.array(EC).catch([]),org:u.string().catch(""),workspace:u.string().catch("")}),CC=u.object({name:u.string().catch(""),path:u.string().catch(""),isGitRepo:u.boolean().catch(!1)}),TC=u.object({path:u.string().catch(""),root:u.string().catch(""),parent:u.string().nullable().catch(null),children:u.array(CC).catch([]),error:u.string().optional()}),bh=Object.freeze({path:"",root:"",parent:null,children:[]}),T0=u.object({bound:u.boolean().catch(!1),path:u.string().catch(""),projectId:u.string().catch(""),error:u.string().optional()}),j0=Object.freeze({bound:!1,path:"",projectId:"",error:"unavailable"}),jC=u.object({unbound:u.boolean().catch(!1),path:u.string().catch("")}),OC=Object.freeze({unbound:!1,path:""}),DC=u.object({switched:u.boolean().catch(!1),org:u.string().catch(""),orgName:u.string().optional(),reminted:u.boolean().catch(!1),error:u.string().optional()}),NC=Object.freeze({switched:!1,org:"",reminted:!1,error:"unavailable"}),LC=u.object({switched:u.boolean().catch(!1),workspace:u.string().catch(""),error:u.string().optional()}),UC=Object.freeze({switched:!1,workspace:"",error:"unavailable"}),Hn=Object.freeze({"x-honeycomb-runtime-path":"plugin","x-honeycomb-session":"dashboard-web"});async function xe(e,t,r,o={}){try{let n=await e(t,{headers:{accept:"application/json",...Hn,...o}});if(!n.ok)return null;let i=await n.json(),a=r.safeParse(i);return a.success?a.data:null}catch{return null}}async function Ut(e,t,r,o){try{let n=await e(t,{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn},body:JSON.stringify(r)});if(!n.ok)return null;let i=o.safeParse(await n.json());return i.success?i.data:null}catch{return null}}function AC(e){return e==="memories"?"team":e==="memory"?"org":"session"}var O0=280;function FC(e){if(typeof e!="object"||e===null)return"";let t=e;for(let r of["file_path","path","command","pattern","query","url","prompt","description"]){let o=t[r];if(typeof o=="string"&&o.trim()!=="")return o.trim()}return""}function WC(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let r=t,o=l=>typeof l=="string"?l.trim():"",n=o(r.kind)||o(r.type),i=o(r.tool)||o(r.tool_name),a=o(r.text)||o(r.prompt)||o(r.message);if(n.startsWith("assistant")&&a!=="")return`assistant: ${a}`;if(n.startsWith("user")&&a!=="")return`user: ${a}`;if(i!==""||n==="tool_call"){let l=FC(r.input??r.tool_input),s=i!==""?i:"tool";return l!==""?`${s} \xB7 ${l}`:s}return a!==""?a:null}function MC(e,t){let r=e.trim(),o=r;if(t==="session"||r.startsWith("{")||r.startsWith("[")){let n=WC(r);n!==null&&(o=n)}return o=o.replace(/\s+/g," ").trim(),o.length<=O0?o:`${o.slice(0,O0-1).trimEnd()}\u2026`}var Sh={memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},kh={orgId:"",orgName:"",workspace:"",settings:{}},mi={built:!1,nodes:[],edges:[]},bu=1500,D0=5e3;function _h(e,t){let r=e.nodes.length>t,o=e.edges.length>D0;if(!r&&!o)return{graph:e,capped:!1};let n=r?e.nodes.slice(0,t):e.nodes,i=new Set(n.map(l=>l.id)),a=[];for(let l of e.edges)if(!(!i.has(l.from)||!i.has(l.to))&&(a.push(l),a.length>=D0))break;return{graph:{...e,nodes:n,edges:a},capped:!0}}var $h=Object.freeze({records:[],count:0,nextCursor:null,persistent:!1}),ZC=Object.freeze({sessions:[],nextCursor:null});function BC(e){let t=[],r=(o,n)=>{n===void 0||n===""||t.push(`${o}=${encodeURIComponent(String(n))}`)};return r("since",e.since),r("until",e.until),r("status",e.status),r("path",e.path),r("org",e.org),r("limit",e.limit),r("cursor",e.cursor),t.length>0?`?${t.join("&")}`:""}function Su(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async kpis(){return await xe(r,o(Y.kpis),mR)??Sh},async sessions(){return(await xe(r,o(Y.sessions),gR))?.sessions??[]},async settings(){return await xe(r,o(Y.settings),vR)??kh},async rules(){return(await xe(r,o(Y.rules),SR))?.rules??[]},async skills(){return(await xe(r,o(Y.skills),_R))?.skills??[]},async graph(n){return await xe(r,o(Y.graph),E0,fi(n))??mi},async memoryGraph(n){return await xe(r,o(Y.memoryGraph),E0,fi(n))??mi},async roi(n){return await xe(r,o(Y.roi),TR,fi(n))??vu},async roiTrend(n,i){let a=n!==""?`?range=${encodeURIComponent(n)}`:"";return await xe(r,o(`${Y.roiTrend}${a}`),DR,fi(i))??yu},async recall(n,i){try{let a=await r(o(Y.recall),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn,...fi(i)},body:JSON.stringify({query:n})});if(!a.ok)return{memories:[],degraded:!0};let l=AR.safeParse(await a.json());return l.success?{memories:l.data.hits.map((c,d)=>({memoryKey:c.id!==""?c.id:`hit-${d+1}`,snippet:MC(c.text,c.kind),source:c.source,score:c.score,scope:AC(c.source),verified:c.source==="memories",kind:c.kind,secondary:c.secondary})),degraded:l.data.degraded}:{memories:[],degraded:!0}}catch{return{memories:[],degraded:!0}}},async listMemories(n=fR,i){return(await xe(r,o(`${Y.memories}?limit=${n}`),FR,fi(i)))?.memories??[]},async getMemory(n){return(await xe(r,o(`${Y.memories}/${encodeURIComponent(n)}`),WR))?.memory??null},async addMemory(n){let i={content:n.content};return n.type!==void 0&&(i.type=n.type),n.agentId!==void 0&&(i.agentId=n.agentId),Ut(r,o(Y.memories),i,MR)},async modifyMemory(n,i){let a={content:i.content,reason:i.reason};return i.agentId!==void 0&&(a.agentId=i.agentId),Ut(r,o(`${Y.memories}/${encodeURIComponent(n)}/modify`),a,C0)},async forgetMemory(n,i){return Ut(r,o(`${Y.memories}/${encodeURIComponent(n)}/forget`),{reason:i.reason},C0)},async compact(n){let i=n!==void 0&&n!==""?{table:n}:{};return Ut(r,o(Y.compact),i,BR)},async lifecycleConflicts(n="open"){return(await xe(r,o(`${Y.lifecycleConflicts}?status=${encodeURIComponent(n)}`),HR))?.conflicts??[]},async resolveConflict(n,i){try{let a={verdict:i.verdict};return i.winnerId!==void 0&&i.winnerId!==""&&(a.winnerId=i.winnerId),i.reason!==void 0&&i.reason!==""&&(a.reason=i.reason),(await r(o(`${Y.lifecycleConflicts}/${encodeURIComponent(n)}/resolve`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn},body:JSON.stringify(a)})).ok}catch{return!1}},async lifecycleStaleRefs(){return(await xe(r,o(Y.lifecycleStaleRefs),GR))?.staleRefs??[]},async lifecycleHistory(){return(await xe(r,o(`${Y.lifecycleHistory}?type=lifecycle`),KR))?.history??[]},async calibration(){return await xe(r,o(Y.calibration),QR)??xu},async logs(n=40){return(await xe(r,o(`${Y.logs}?limit=${n}`),qR))?.records??[]},logsStream(n){let i=globalThis.EventSource;if(i===void 0)return()=>{};let a;try{a=new i(o(Y.logsStream))}catch{return()=>{}}let l=s=>{let c=VC(s.data);c!==null&&n(c)};return a.addEventListener("log",l),()=>{try{a.removeEventListener("log",l),a.close()}catch{}}},async logsHistory(n={}){let i=BC(n);return await xe(r,o(`${Y.logs}/history${i}`),eC)??$h},async turnsHistory(n={}){let i=[];n.limit!==void 0&&i.push(`limit=${encodeURIComponent(String(n.limit))}`),n.cursor!==void 0&&n.cursor!==""&&i.push(`cursor=${encodeURIComponent(n.cursor)}`);let a=i.length>0?`?${i.join("&")}`:"";return await xe(r,o(`${Y.sessions}${a}`),tC)??ZC},async harnesses(){return(await xe(r,o(Y.harnesses),aC))?.harnesses??[]},async assetsView(){return await xe(r,o(Y.assets),NR)??hu},async syncAction(n,i){let a={assetType:i.assetType,name:i.name};return i.native!==void 0&&(a.native=i.native),i.honeycombId!==void 0&&i.honeycombId!==""&&(a.honeycombId=i.honeycombId),i.harness!==void 0&&i.harness!==""&&(a.harness=i.harness),Ut(r,o(`${Y.syncAction}/${n}`),a,LR)},async health(){try{let n=await r(o(Y.health),{headers:{accept:"application/json",...Hn}}),i=n.ok,a=null;try{let l=await n.json(),s=dC.safeParse(l);a=s.success?s.data.reasons??null:null}catch{a=null}return{up:i,reasons:a}}catch{return{up:!1,reasons:null}}},async pollinate(){try{let n=await r(o(Y.pollinate),{method:"POST",headers:{...Hn}}),i=lC.safeParse(await n.json());return i.success?i.data:{triggered:!1,status:"skipped",reason:"unavailable"}}catch{return{triggered:!1,status:"skipped",reason:"unavailable"}}},async buildGraph(){let n=new AbortController,i=setTimeout(()=>n.abort(),cC);try{let a=await r(o(Y.graphBuild),{method:"POST",headers:{accept:"application/json",...Hn},signal:n.signal});if(!a.ok)return mh;let l=sC.safeParse(await a.json());return l.success?l.data:mh}catch{return mh}finally{clearTimeout(i)}},async vaultSettings(){return await xe(r,o(Y.vaultSettings),mC)??Qa},async setSetting(n,i){try{return(await r(o(`${Y.vaultSettings}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn},body:JSON.stringify({value:i})})).ok}catch{return!1}},async secretNames(){return(await xe(r,o(Y.secrets),gC))?.names??[]},async setSecret(n,i){try{return(await r(o(`${Y.secrets}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn},body:JSON.stringify({value:i})})).ok}catch{return!1}},async authStatus(){return await xe(r,o(Y.authStatus),vC)??hh},async setupState(){return await xe(r,o(Y.setupState),xC)??xh},async setupLogin(){return Ut(r,o(Y.setupLogin),{},bC)},async migrateFromHivemind(){return await Ut(r,o(Y.setupMigrate),{},SC)??kC},async rollbackMigration(){return await Ut(r,o(Y.setupMigrateRollback),{},_C)??$C},async scopeOrgs(){return(await xe(r,o(Y.scopeOrgs),zC))?.orgs??[]},async scopeWorkspaces(n){let i=n!==void 0&&n!==""?`?org=${encodeURIComponent(n)}`:"";return await xe(r,o(`${Y.scopeWorkspaces}${i}`),PC)??{workspaces:[],org:n??"",reminted:!1}},async scopeProjects(n={}){let i=n.unbound===!0?"?unbound=1":"";return(await xe(r,o(`${Y.scopeProjects}${i}`),RC))?.projects??[]},async fsBrowse(n){let i=n!==void 0&&n!==""?`?path=${encodeURIComponent(n)}`:"";return await xe(r,o(`${Y.fsBrowse}${i}`),TC)??bh},async bindProject(n){let i={path:n.path};return n.name!==void 0&&n.name!==""&&(i.name=n.name),await Ut(r,o(Y.projectsBind),i,T0)??j0},async bindExistingProject(n){let i={path:n.path,projectId:n.projectId};return await Ut(r,o(Y.projectsBindExisting),i,T0)??j0},async unbindProject(n){return await Ut(r,o(Y.projectsUnbind),{path:n.path},jC)??OC},async switchOrg(n){return await Ut(r,o(Y.scopeOrgSwitch),{org:n},DC)??NC},async switchWorkspace(n){return await Ut(r,o(Y.scopeWorkspaceSwitch),{workspace:n},LC)??UC}}}function VC(e){if(typeof e!="string")return null;try{let t=yh.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}function Pr(e){let t=(e.time||"").slice(11,19)||(e.time||"").slice(0,8),r=e.status>0?` ${e.status}`:"";return`${t} ${e.method} ${e.path}${r}`.trimEnd()}var A0="/api/diagnostics/sync/";function ku(e){return(e.path??"").startsWith(A0)}function F0(e){let t=(e.path??"").slice(A0.length).split("/")[0]??"";switch(t){case"promote":return"published";case"pull":return"pulled";case"demote":return"tombstoned";case"enable":return"enabled";case"disable":return"disabled";default:return t}}var U=A(K(),1);function le({title:e,eyebrow:t,right:r,children:o,style:n}){return(0,U.jsxs)("section",{style:{background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden",display:"flex",flexDirection:"column",...n},children:[(0,U.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:10,padding:"13px 16px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,U.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:600,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em"},children:e}),t&&(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t}),(0,U.jsx)("span",{style:{flex:1}}),r]}),(0,U.jsx)("div",{style:{padding:16,flex:1},children:o})]})}function zh({children:e}){return(0,U.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:e})}var el={cursor:"var(--severity-info)","claude-code":"var(--honey)",codex:"var(--pollinate)",openclaw:"var(--verified)",hermes:"var(--severity-warning)",pi:"var(--severity-critical)"},tl="var(--text-tertiary)",qa=5;function W0({label:e,onClick:t,disabled:r}){return(0,U.jsx)("button",{type:"button",onClick:t,disabled:r,style:{width:22,height:22,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1,cursor:r?"default":"pointer",opacity:r?.4:1},children:e})}function Z0({sessions:e}){let t=e.length,r=Math.max(1,Math.ceil(t/qa)),[o,n]=_u.default.useState(0),i=Math.min(o,r-1),a=i*qa,l=e.slice(a,a+qa),s=t===0?0:a+1,c=Math.min(a+qa,t),d=t>qa?(0,U.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,U.jsx)(W0,{label:"\u2039",onClick:()=>n(p=>Math.max(0,p-1)),disabled:i===0}),(0,U.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap"},children:[s,"\u2013",c," of ",t]}),(0,U.jsx)(W0,{label:"\u203A",onClick:()=>n(p=>Math.min(r-1,p+1)),disabled:i>=r-1})]}):void 0;return(0,U.jsx)(le,{title:"Turns",eyebrow:`${t} captured`,right:d,children:t===0?(0,U.jsx)(zh,{children:"No turns captured yet."}):(0,U.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:l.map((p,f)=>(0,U.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"84px 1fr auto auto",alignItems:"center",gap:12,padding:"10px 6px",borderTop:f===0?"none":"1px solid var(--border-subtle)"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:p.sessionId}),(0,U.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,U.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--text-tertiary)",flex:"none"}}),(0,U.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.project})]}),(0,U.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[p.startedAt,p.eventCount>0?` \xB7 ${p.eventCount}e`:""]}),(0,U.jsx)(q,{tone:p.status==="summarized"?"verified":"neutral",mono:!0,children:p.status})]},p.sessionId||f))})})}function B0({rules:e}){return(0,U.jsx)(le,{title:"Rules",eyebrow:"org-wide",children:e.length===0?(0,U.jsx)(zh,{children:"No rules defined."}):(0,U.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map((t,r)=>(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 6px"},children:[(0,U.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:t.active?"var(--verified)":"var(--text-disabled)",flex:"none"}}),(0,U.jsx)("span",{style:{fontSize:14,color:t.active?"var(--text-primary)":"var(--text-tertiary)"},children:t.title}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.id})]},t.id||r))})})}var Ih={shared:"verified",synced:"verified",pulled:"honey",pending:"warning",local:"neutral"};function V0({skills:e}){return(0,U.jsx)(le,{title:"Skill-sync",eyebrow:`${e.length} skills`,children:e.length===0?(0,U.jsx)(zh,{children:"No skills synced."}):(0,U.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:e.map((t,r)=>(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.scope}),(0,U.jsx)(q,{tone:Ih[t.syncState]??"neutral",mono:!0,dot:!0,children:t.syncState})]},t.name||r))})})}var $u={file:"var(--honey)",function:"var(--severity-info)",class:"var(--pollinate)"},wu="var(--text-tertiary)";function Er({lines:e}){return(0,U.jsx)(le,{title:"Live log",right:(0,U.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,U.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"streaming"})]}),children:(0,U.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:e.length===0?(0,U.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for daemon activity\u2026"}):e.map((t,r)=>(0,U.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:r===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:t},r))})})}var dn=Object.freeze({activeProvider:"activeProvider",activeModel:"activeModel",pollinatingEnabled:"pollinating.enabled",recallMode:"recallMode"}),zu=Object.freeze({anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",openrouter:"OPENROUTER_API_KEY",cohere:"COHERE_API_KEY"});function M0({value:e,onChange:t,options:r,ariaLabel:o}){return(0,U.jsx)("select",{"aria-label":o,value:e,onChange:n=>t(n.target.value),style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:180},children:r.map(n=>(0,U.jsx)("option",{value:n.value,children:n.label},n.value))})}function JC({on:e,onToggle:t,ariaLabel:r}){return(0,U.jsxs)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r,onClick:t,style:{display:"inline-flex",alignItems:"center",gap:8,height:36,padding:"0 14px",background:e?"var(--pollinate-subtle)":"var(--bg-elevated)",border:`1px solid ${e?"var(--pollinate-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:e?"var(--pollinate)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,cursor:"pointer"},children:[(0,U.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:e?"var(--pollinate)":"var(--text-disabled)"}}),e?"on":"off"]})}function wh({label:e,hint:t,children:r}){return(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,U.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,U.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:e}),t&&(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t})]}),(0,U.jsx)("span",{style:{flex:1}}),r]})}function Iu({catalog:e,settings:t,secretNames:r,onSave:o}){let n=String(t[dn.activeProvider]??""),i=String(t[dn.activeModel]??""),a=t[dn.pollinatingEnabled]===!0||t[dn.pollinatingEnabled]==="true",l=e.find(b=>b.id===n),[s,c]=_u.default.useState(i);_u.default.useEffect(()=>c(i),[i]);let d=[{value:"",label:"\u2014 select \u2014"},...e.map(b=>({value:b.id,label:b.label||b.id}))],p=[{value:"",label:"\u2014 select \u2014"},...(l?.models??[]).map(b=>({value:b,label:b}))],f=b=>{o(dn.activeProvider,b)},g=b=>{b.length!==0&&o(dn.activeModel,b)},x=()=>{let b=s.trim();b.length>0&&b!==i&&o(dn.activeModel,b)};return(0,U.jsx)(le,{title:"Settings",eyebrow:"provider \xB7 model \xB7 pollinating",children:(0,U.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,U.jsxs)(wh,{label:"Provider",hint:"inference provider",children:[(0,U.jsx)(M0,{ariaLabel:"provider",value:n,onChange:f,options:d}),n.length>0&&(0,U.jsx)(GC,{provider:n,secretNames:r})]}),(0,U.jsx)(wh,{label:"Model",hint:l?.openEnded?"free-form id":"from catalog",children:l===void 0?(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"pick a provider first"}):l.openEnded?(0,U.jsx)("input",{"aria-label":"model",type:"text",value:s,placeholder:"vendor/model",onChange:b=>c(b.target.value),onBlur:x,onKeyDown:b=>{b.key==="Enter"&&x()},style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:200}}):(0,U.jsx)(M0,{ariaLabel:"model",value:i,onChange:g,options:p})}),(0,U.jsx)(wh,{label:"Pollinating",hint:"background consolidation",children:(0,U.jsx)(JC,{ariaLabel:"pollinating",on:a,onToggle:()=>{o(dn.pollinatingEnabled,!a)}})})]})})}function GC({provider:e,secretNames:t}){let r=zu[e],o=r!==void 0&&t.includes(r);return(0,U.jsx)(q,{tone:o?"verified":"neutral",mono:!0,dot:!0,children:o?"key set \u2713":"not set"})}function H0({url:e,onRetry:t}){return(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,padding:"14px 18px",background:"var(--severity-critical-bg)",border:"1px solid var(--severity-critical)",borderRadius:"var(--radius-lg)"},children:[(0,U.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:"var(--severity-critical)",flex:"none"}}),(0,U.jsxs)("div",{style:{flex:1},children:[(0,U.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Daemon not reachable"}),(0,U.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:e})]}),(0,U.jsx)("button",{onClick:t,style:{height:34,padding:"0 16px",background:"transparent",border:"1px solid var(--severity-critical)",color:"var(--severity-critical)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:"Retry"})]})}var Se=A(ke(),1);var nw=A(ke(),1);var nl=A(ke(),1);var Pu=A(ke(),1),Jn=A(K(),1),Eu=1180;function Qe({title:e,eyebrow:t,right:r,children:o}){return(0,Jn.jsxs)("div",{style:{maxWidth:Eu,margin:"0 auto",width:"100%"},children:[(0,Jn.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:18},children:[(0,Jn.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0},children:[t!==void 0&&t!==""&&(0,Jn.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:t}),(0,Jn.jsx)("h1",{style:{fontSize:"var(--text-lg)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em",lineHeight:1.1},children:e})]}),(0,Jn.jsx)("span",{style:{flex:1}}),r]}),(0,Jn.jsx)("div",{children:o})]})}function gi(e,t){let r=Pu.default.useRef(e);Pu.default.useEffect(()=>{r.current=e},[e]),Pu.default.useEffect(()=>{let o=!0,n=async()=>{o&&await r.current()};n();let i=setInterval(()=>{n()},t);return()=>{o=!1,clearInterval(i)}},[t])}var Ru=A(ke(),1);function J0(e){let r=(e.startsWith("#")?e.slice(1):e).trim();return r===""?"/":r}function Cu(){let[e,t]=Ru.default.useState(()=>typeof window>"u"?"/":J0(window.location.hash));Ru.default.useEffect(()=>{if(typeof window>"u")return;let o=()=>t(J0(window.location.hash));return o(),window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]);let r=Ru.default.useCallback(o=>{if(typeof window>"u")return;let n=o.startsWith("#")?o:`#${o}`;window.location.hash=n},[]);return{route:e,navigate:r}}var D=A(K(),1),XC=5e3,KC=2500,G0=12,X0="/harnesses/";function YC(e){if(!e.startsWith(X0))return null;let t=e.slice(X0.length).split("/")[0]??"";return t===""?null:t}function Ph({name:e}){return(0,D.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",flex:"none",background:el[e]??tl}})}function Tu(e){return e.installed?e.active?"active":"idle":"not installed"}var Y0={active:"verified",idle:"neutral","not installed":"neutral"};function vi(e,t=Date.now()){if(e===null||e==="")return"never";let r=Date.parse(e);if(!Number.isFinite(r))return e;let o=Math.max(0,t-r),n=Math.floor(o/1e3);if(n<60)return`${n}s ago`;let i=Math.floor(n/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}var Q0={active:"active",idle:"idle","not installed":"not installed"};function QC({h:e,onOpen:t}){let r=Tu(e),o=r==="not installed";return(0,D.jsxs)("button",{type:"button","data-testid":`harness-card-${e.name}`,"data-harness":e.name,onClick:()=>t(e.name),style:{display:"flex",flexDirection:"column",gap:12,padding:16,textAlign:"left",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",cursor:"pointer",opacity:o?.6:1},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9},children:[(0,D.jsx)(Ph,{name:e.name}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:e.name}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)(q,{tone:Y0[r],mono:!0,dot:!0,children:Q0[r]})]}),(0,D.jsx)(Kt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,D.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",vi(e.lastSeen)]})]})}function K0({on:e}){return(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:e?"var(--verified)":"var(--text-tertiary)"},children:e?"\u2713":"\u2014"})}function qC({harnesses:e,onOpen:t}){return(0,D.jsx)(le,{title:"Fleet",eyebrow:`${e.length} harnesses`,children:(0,D.jsxs)("div",{role:"table","aria-label":"installed/active matrix",style:{display:"flex",flexDirection:"column"},children:[(0,D.jsx)("div",{role:"row",style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,padding:"6px 6px",borderBottom:"1px solid var(--border-subtle)"},children:["harness","installed","active","last seen","turns"].map(r=>(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:r},r))}),e.map(r=>(0,D.jsxs)("div",{role:"row","data-testid":`harness-row-${r.name}`,"data-harness":r.name,onClick:()=>t(r.name),style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,alignItems:"center",padding:"9px 6px",cursor:"pointer",borderTop:"1px solid var(--border-subtle)",opacity:r.installed?1:.6},children:[(0,D.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,D.jsx)(Ph,{name:r.name}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)"},children:r.name})]}),(0,D.jsx)(K0,{on:r.installed}),(0,D.jsx)(K0,{on:r.active}),(0,D.jsx)("span",{title:r.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:vi(r.lastSeen)}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:r.turnsCaptured.toLocaleString()})]},r.name))]})})}function e4({harnesses:e,onOpen:t}){return(0,D.jsx)(Qe,{title:"Harnesses",eyebrow:`${e.length} \xB7 fleet`,children:e.length===0?(0,D.jsx)(le,{title:"Harnesses",children:(0,D.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harness telemetry yet."})}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:12,marginBottom:16},children:e.map(r=>(0,D.jsx)(QC,{h:r,onOpen:t},r.name))}),(0,D.jsx)(qC,{harnesses:e,onOpen:t})]})})}function At({label:e,children:t}){return(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right"},children:t})]})}function t4({cap:e}){let t=`${e.hostCli.bin}${e.hostCli.args.length>0?" "+e.hostCli.args.join(" "):""}`.trim();return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(le,{title:"Runtime",eyebrow:e.runtimePath||"\u2014",style:{marginBottom:16},children:[(0,D.jsx)(At,{label:"runtime path",children:e.runtimePath||"\u2014"}),(0,D.jsx)(At,{label:"context channel",children:e.contextChannel||"\u2014"}),(0,D.jsx)(At,{label:"host CLI",children:t||"\u2014"}),e.hostCli.fallbackBin!==void 0&&e.hostCli.fallbackBin!==""&&(0,D.jsx)(At,{label:"fallback CLI",children:e.hostCli.fallbackBin}),(0,D.jsx)(At,{label:"lifecycle events",children:e.lifecycleEvents.length>0?e.lifecycleEvents.join(", "):"\u2014"})]}),e.agents!==void 0&&(0,D.jsx)("div",{"data-testid":"cap-agents",style:{marginBottom:16},children:(0,D.jsxs)(le,{title:"Agents",eyebrow:"cursor-agent",children:[(0,D.jsx)(At,{label:"agent kind",children:e.agents.kind}),(0,D.jsx)(At,{label:"binary",children:e.agents.binary}),e.agents.fallbackBin!==void 0&&e.agents.fallbackBin!==""&&(0,D.jsx)(At,{label:"fallback",children:e.agents.fallbackBin}),e.workspaceRoots===!0&&(0,D.jsx)(At,{label:"workspace roots",children:"yes"})]})}),e.mcpRegistration===!0&&(0,D.jsx)("div",{"data-testid":"cap-mcp",style:{marginBottom:16},children:(0,D.jsx)(le,{title:"MCP",eyebrow:"registered",children:(0,D.jsx)(At,{label:"honeycomb tools",children:"honeycomb_search \xB7 honeycomb_read \xB7 honeycomb_index"})})}),e.contractedTools===!0&&(0,D.jsx)("div",{"data-testid":"cap-contracted",style:{marginBottom:16},children:(0,D.jsx)(le,{title:"Contracted tools",eyebrow:"registered",children:(0,D.jsx)(At,{label:"tool registration",children:"contracted (no pre-tool hook)"})})}),e.agentsMdContext===!0&&(0,D.jsx)("div",{"data-testid":"cap-agentsmd",style:{marginBottom:16},children:(0,D.jsx)(le,{title:"Context surface",eyebrow:"AGENTS.md",children:(0,D.jsx)(At,{label:"injection",children:"static AGENTS.md block"})})}),e.userVisibleLogin===!0&&(0,D.jsx)("div",{"data-testid":"cap-login",style:{marginBottom:16},children:(0,D.jsx)(le,{title:"Context surface",eyebrow:"login line",children:(0,D.jsx)(At,{label:"injection",children:"user-visible login line"})})})]})}function n4(e,t){if(t==="")return[];let r=t.toLowerCase();return e.filter(o=>(o.path??"").toLowerCase().includes(r))}function r4({name:e,status:t,lines:r,onBack:o}){let n=(0,D.jsx)("button",{type:"button",onClick:o,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"\u2039 Harnesses"});if(t===null)return(0,D.jsx)(Qe,{title:e,eyebrow:"harness",right:n,children:(0,D.jsx)(le,{title:"Unknown harness",children:(0,D.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No telemetry for ",(0,D.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--text-secondary)"},children:e})," \u2014 it is not one of the six canonical harnesses."]})})});let i=Tu(t);return(0,D.jsxs)(Qe,{title:e,eyebrow:"harness",right:n,children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,D.jsx)(Ph,{name:e}),(0,D.jsx)(q,{tone:Y0[i],mono:!0,dot:!0,children:Q0[i]}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},title:t.lastSeen??"never",children:["last seen ",vi(t.lastSeen)]})]}),(0,D.jsxs)("div",{className:"kpirow",style:{marginBottom:18},children:[(0,D.jsx)(Kt,{label:"Turns",value:t.turnsCaptured.toLocaleString(),accent:t.active?"verified":"neutral"}),(0,D.jsx)(Kt,{label:"Installed",value:t.installed?"yes":"no",accent:t.installed?"honey":"neutral"}),(0,D.jsx)(Kt,{label:"Runtime",value:t.runtimePath||"\u2014",accent:"pollinate"})]}),(0,D.jsx)(t4,{cap:t.capabilities}),(0,D.jsx)(Er,{lines:r})]})}function q0({wire:e}){let{route:t,navigate:r}=Cu(),o=YC(t),[n,i]=nl.default.useState([]),[a,l]=nl.default.useState([]);gi(async()=>i(await e.harnesses()),XC),gi(async()=>{if(o===null){l([]);return}let d=await e.logs(G0*4),p=n4(d,o);l(p.slice(-G0).reverse().map(Pr))},KC);let s=nl.default.useCallback(d=>r(`/harnesses/${d}`),[r]),c=nl.default.useCallback(()=>r("/harnesses"),[r]);if(o!==null){let d=n.find(p=>p.name===o)??null;return(0,D.jsx)(r4,{name:o,status:d,lines:a,onBack:c})}return(0,D.jsx)(e4,{harnesses:n,onOpen:s})}function ew(e){return Array.isArray(e)?e.map(t=>t!==null&&typeof t=="object"&&"name"in t?String(t.name):"").filter(t=>t!=="").map(t=>({route:`/harnesses/${t}`,label:t})):[]}var We=A(K(),1),tw={active:"verified",idle:"neutral"};function o4({h:e}){let r=Tu(e)==="active"?tw.active:tw.idle;return(0,We.jsx)("span",{"data-testid":`harness-chip-${e.name}`,"data-harness":e.name,title:`${e.name} \xB7 last seen ${vi(e.lastSeen)}`,style:{display:"inline-flex"},children:(0,We.jsxs)(q,{tone:r,mono:!0,dot:!0,style:{background:"transparent"},children:[(0,We.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",flex:"none",background:el[e.name]??tl}}),e.name]})})}function i4({h:e}){return(0,We.jsxs)("div",{"data-testid":`harness-tile-${e.name}`,"data-harness":e.name,style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,We.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,We.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:el[e.name]??tl}}),(0,We.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e.name})]}),(0,We.jsx)(Kt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,We.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",vi(e.lastSeen)]})]})}function rw({harnesses:e,streamLines:t}){let r=nw.default.useMemo(()=>e.filter(o=>o.installed),[e]);return(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,We.jsx)(le,{title:"Harnesses",eyebrow:`${r.length} wired in`,children:r.length===0?(0,We.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harnesses wired in yet."}):(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,We.jsx)("div",{"data-testid":"harness-chips",style:{display:"flex",flexWrap:"wrap",gap:8},children:r.map(o=>(0,We.jsx)(o4,{h:o},o.name))}),(0,We.jsx)("div",{"data-testid":"harness-tiles",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12},children:r.map(o=>(0,We.jsx)(i4,{h:o},o.name))})]})}),(0,We.jsx)(Er,{lines:t})]})}var re=A(K(),1),a4=2500,l4=5e3,s4=5e3,ju=8,c4=5;function u4(){return new Date().toTimeString().slice(0,8)}function d4({query:e,setQuery:t,onRecall:r,busy:o}){return(0,re.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:18},children:[(0,re.jsx)("div",{style:{flex:1},children:(0,re.jsx)(sn,{mono:!0,size:"lg",value:e,placeholder:"recall\u2026 e.g. how do we deploy",onChange:n=>t(n.target.value),onKeyDown:n=>{n.key==="Enter"&&r()}})}),(0,re.jsx)(F,{variant:"primary",size:"lg",onClick:r,disabled:o,children:o?"\u2026":"Recall"})]})}function p4(){return(0,re.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",style:{display:"inline-flex"},children:(0,re.jsx)(q,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})}var f4=[{key:"storage",label:"storage",degraded:e=>e.storage==="unreachable"},{key:"embeddings",label:"semantic",degraded:e=>e.embeddings==="off"},{key:"schema",label:"schema",degraded:e=>e.schema==="missing_table"}];function m4({reasons:e}){return e===null?null:(0,re.jsxs)("div",{"data-testid":"health-strip",style:{display:"flex",alignItems:"center",gap:8,marginBottom:18,flexWrap:"wrap"},children:[(0,re.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"subsystems"}),f4.map(t=>{let r=t.degraded(e),o=String(e[t.key]);return(0,re.jsxs)(q,{tone:r?"critical":"verified",mono:!0,dot:!0,children:[t.label,": ",o]},t.key)})]})}function ow({wire:e,pollinating:t=!1}){let[r,o]=Se.default.useState(null),[n,i]=Se.default.useState(Sh),[a,l]=Se.default.useState([]),[s,c]=Se.default.useState([]),[d,p]=Se.default.useState([]),[f,g]=Se.default.useState(Qa),[x,b]=Se.default.useState([]),[w,v]=Se.default.useState([]),[m,y]=Se.default.useState("how do we deploy"),[S,_]=Se.default.useState([]),[E,O]=Se.default.useState(!1),[W,G]=Se.default.useState(!1),[Z,Ze]=Se.default.useState(0),[bt,Xn]=Se.default.useState(!1),[Xe,Kn]=Se.default.useState([]),[Rn,Cr]=Se.default.useState([]),vn=Se.default.useCallback(Re=>{Cr(Pe=>[`${u4()} ${Re}`,...Pe].slice(0,ju))},[]),ie=Se.default.useCallback(async()=>{let[Re,Pe,Et,Q,ve,Be]=await Promise.all([e.kpis(),e.sessions(),e.rules(),e.skills(),e.vaultSettings(),e.secretNames()]);i(Re),l(Pe),c(Et),p(Q),g(ve),b(Be)},[e]),se=Se.default.useCallback(async(Re,Pe)=>{let Et=await e.setSetting(Re,Pe),[Q,ve]=await Promise.all([e.vaultSettings(),e.secretNames()]);return g(Q),b(ve),Et},[e]);Se.default.useEffect(()=>{ie()},[ie]),Se.default.useEffect(()=>{let Re=!0,Pe=async()=>{let Q=await e.logs(ju);Re&&Kn(Q.slice(-ju).reverse().map(Pr))};Pe();let Et=setInterval(()=>{Pe()},a4);return()=>{Re=!1,clearInterval(Et)}},[e]),Se.default.useEffect(()=>{let Re=!0,Pe=async()=>{let{reasons:Q}=await e.health();Re&&o(Q)};Pe();let Et=setInterval(()=>{Pe()},l4);return()=>{Re=!1,clearInterval(Et)}},[e]),Se.default.useEffect(()=>{let Re=!0,Pe=async()=>{let Q=await e.harnesses();Re&&v(Q)};Pe();let Et=setInterval(()=>{Pe()},s4);return()=>{Re=!1,clearInterval(Et)}},[e]);let Ie=Se.default.useCallback(async()=>{let Re=m.trim();if(Re===""||E)return;O(!0);let{memories:Pe,degraded:Et}=await e.recall(Re);_(Pe),G(!0),Xn(Et),Ze(ve=>ve+1);let Q=Pe.length>0?` \xB7 ${Pe[0]?.score.toFixed(2)} top`:"";vn(`recall "${Re}" \u2192 ${Pe.length} hits${Q}`),O(!1)},[m,E,e,vn]),Mt=Se.default.useMemo(()=>[...Rn,...Xe].slice(0,ju),[Rn,Xe]),$i=Se.default.useMemo(()=>Xe.slice(0,c4),[Xe]);return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)("section",{"data-area":"kpi-band","aria-label":"Key metrics",style:{marginBottom:22},children:[(0,re.jsx)(m4,{reasons:r}),(0,re.jsxs)("div",{className:"kpirow",children:[(0,re.jsx)(Kt,{label:"Memories",value:n.memoryCount.toLocaleString(),accent:"honey"}),(0,re.jsx)(Kt,{label:"Turns",value:n.turnCount||n.sessionCount,accent:"neutral"}),(0,re.jsx)(Kt,{label:"Est. savings",value:n.estimatedSavings.toLocaleString(),unit:"tok",accent:"verified"}),(0,re.jsx)(Kt,{label:"Team skills",value:n.teamSkillCount,accent:"pollinate"})]})]}),(0,re.jsxs)("section",{"data-area":"recall-area","aria-label":"Memory search",style:{marginBottom:22},children:[(0,re.jsx)(d4,{query:m,setQuery:y,onRecall:Ie,busy:E}),W&&bt&&(0,re.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,re.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,re.jsx)(p4,{})]}),(0,re.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:S.length===0?W&&(0,re.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):S.map((Re,Pe)=>(0,re.jsx)("div",{className:"mem-enter",style:{animationDelay:`${Pe*55}ms`},children:(0,re.jsx)(Cs,{...Re,pollinating:t&&Pe===1})},Re.memoryKey))},Z)]}),(0,re.jsxs)("section",{"data-area":"harness-area","aria-label":"Harnesses and activity",children:[(0,re.jsx)("div",{style:{marginBottom:16},children:(0,re.jsx)(rw,{harnesses:w,streamLines:$i})}),(0,re.jsxs)("div",{className:"grid2",style:{marginBottom:16},children:[(0,re.jsxs)("div",{className:"col",children:[(0,re.jsx)(Z0,{sessions:a}),(0,re.jsx)(B0,{rules:s})]}),(0,re.jsxs)("div",{className:"col",children:[(0,re.jsx)(Iu,{catalog:f.catalog,settings:f.settings,secretNames:x,onSave:se}),(0,re.jsx)(V0,{skills:d})]})]}),(0,re.jsx)(Er,{lines:Mt})]})]})}var Oe=A(ke(),1);var Ue=A(ke(),1),Je=A(K(),1),Ch=Object.freeze({org:"local",workspace:"default"}),iw="honeycomb.dashboard.scope",aw=Ue.default.createContext({scope:Ch,setScope:()=>{}});function pn(){return Ue.default.useContext(aw)}var g4=Object.freeze({orgs:[],workspaces:[],projects:[],projectsHydrated:!1,loadingWorkspaces:!1,switchFeedback:null,selectOrg:()=>{},selectWorkspace:()=>{},selectProject:()=>{}}),lw=Ue.default.createContext(g4);function Th(){return Ue.default.useContext(lw)}function v4(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(iw);if(e===null||e==="")return null;let t=JSON.parse(e);if(typeof t!="object"||t===null)return null;let r=t,o=typeof r.org=="string"?r.org:"",n=typeof r.workspace=="string"?r.workspace:"";if(o===""||n==="")return null;let i=typeof r.project=="string"&&r.project!==""?r.project:void 0;return i!==void 0?{org:o,workspace:n,project:i}:{org:o,workspace:n}}catch{return null}}function y4(e){try{if(typeof localStorage>"u")return;localStorage.setItem(iw,JSON.stringify(e))}catch{}}function sw({wire:e,children:t}){let r=Ue.default.useMemo(()=>v4(),[]),[o,n]=Ue.default.useState(r??Ch),[i,a]=Ue.default.useState([]),[l,s]=Ue.default.useState([]),[c,d]=Ue.default.useState([]),[p,f]=Ue.default.useState(!1),[g,x]=Ue.default.useState(!1),[b,w]=Ue.default.useState(null),v=Ue.default.useCallback(G=>{n(G),y4(G)},[]),m=Ue.default.useCallback(G=>v(G),[v]),y=Ue.default.useCallback(async()=>{let G=await e.scopeProjects();d(G),f(!0)},[e]);Ue.default.useEffect(()=>{let G=!0;return(async()=>{let Z=await e.scopeOrgs();G&&a(Z)})(),(async()=>{let Z=await e.scopeWorkspaces();G&&s(Z.workspaces)})(),y(),()=>{G=!1}},[e,y]);let S=Ue.default.useCallback(G=>{x(!0),w({kind:"persisted",message:"switching org\u2026",pending:!0}),(async()=>{try{let Z=await e.switchOrg(G);if(!Z.switched){w({kind:"error",message:Z.error!==void 0&&Z.error!==""?`could not switch: ${Z.error}`:"could not switch org"});return}v({org:Z.org,workspace:Ch.workspace,project:void 0});let Ze=await e.scopeWorkspaces(Z.org);s(Ze.workspaces),d([]),f(!0),w({kind:"persisted",message:Z.reminted?`switched to ${Z.orgName??Z.org} \xB7 re-minted`:`switched to ${Z.orgName??Z.org}`})}finally{x(!1)}})()},[e,v]),_=Ue.default.useCallback(G=>{w({kind:"persisted",message:"switching workspace\u2026",pending:!0}),(async()=>{let Z=await e.switchWorkspace(G);if(!Z.switched){w({kind:"error",message:Z.error!==void 0&&Z.error!==""?`could not switch: ${Z.error}`:"could not switch workspace"});return}v({org:o.org,workspace:Z.workspace,project:void 0}),await y(),w({kind:"persisted",message:`switched to ${Z.workspace}`})})()},[e,v,o.org,y]),E=Ue.default.useCallback(G=>{v({org:o.org,workspace:o.workspace,...G!==void 0?{project:G}:{}}),w({kind:"view",message:G!==void 0?"view filter \u2014 capture is set by folder binding":"view cleared"})},[v,o.org,o.workspace]),O=Ue.default.useMemo(()=>({scope:o,setScope:m}),[o,m]),W=Ue.default.useMemo(()=>({orgs:i,workspaces:l,projects:c,projectsHydrated:p,loadingWorkspaces:g,switchFeedback:b,selectOrg:S,selectWorkspace:_,selectProject:E}),[i,l,c,p,g,b,S,_,E]);return(0,Je.jsx)(aw.Provider,{value:O,children:(0,Je.jsx)(lw.Provider,{value:W,children:t})})}var h4={width:"100%",height:30,padding:"0 8px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"};function Eh({label:e,testId:t,value:r,disabled:o,onChange:n,children:i}){return(0,Je.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:3},children:[(0,Je.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:e}),(0,Je.jsx)("select",{"data-testid":t,value:r,disabled:o,onChange:a=>n(a.target.value),style:{...h4,opacity:o?.6:1},children:i})]})}var x4="__unsorted__",Rh="";function cw({collapsed:e}){let{scope:t}=pn(),r=Th();return e?null:(0,Je.jsxs)("div",{"data-testid":"scope-switcher",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,Je.jsxs)(Eh,{label:"org",testId:"scope-org",value:t.org,onChange:r.selectOrg,children:[r.orgs.length===0&&(0,Je.jsx)("option",{value:t.org,children:t.org}),r.orgs.map(o=>(0,Je.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,Je.jsxs)(Eh,{label:"workspace",testId:"scope-workspace",value:t.workspace,disabled:r.loadingWorkspaces,onChange:r.selectWorkspace,children:[r.workspaces.length===0&&(0,Je.jsx)("option",{value:t.workspace,children:r.loadingWorkspaces?"loading\u2026":t.workspace}),r.workspaces.map(o=>(0,Je.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,Je.jsxs)(Eh,{label:"project \xB7 view filter",testId:"scope-project",value:t.project??Rh,onChange:o=>r.selectProject(o===Rh?void 0:o),children:[(0,Je.jsx)("option",{value:Rh,children:"\u2014 select a project \u2014"}),r.projects.map(o=>(0,Je.jsx)("option",{value:o.projectId,children:o.projectId===x4?"(unsorted inbox)":o.name!==""?o.name:o.projectId},o.projectId))]}),(0,Je.jsx)("span",{"data-testid":"project-view-hint",style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",lineHeight:1.4},children:"Filters what you VIEW. To set where Honeycomb captures, bind a folder in Projects."}),r.switchFeedback!==null&&(0,Je.jsxs)("span",{"data-testid":"switch-feedback","data-kind":r.switchFeedback.kind,style:{fontFamily:"var(--font-mono)",fontSize:10,color:r.switchFeedback.kind==="error"?"var(--severity-critical)":r.switchFeedback.kind==="persisted"?"var(--verified)":"var(--text-tertiary)"},children:[r.switchFeedback.pending===!0?"\u27F3 ":r.switchFeedback.kind==="persisted"?"\u2713 ":"",r.switchFeedback.message]})]})}var jh=A(ke(),1);var Ft=A(ke(),1);var oe=A(K(),1),b4="honeycomb project bind";function uw(e){let r=e.replace(/[\\/]+$/,"").split(/[\\/]/);return r[r.length-1]??""}function S4({child:e,onDescend:t}){return(0,oe.jsxs)("button",{type:"button","data-testid":"browse-row","data-path":e.path,onClick:()=>t(e.path),style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,oe.jsx)("svg",{width:15,height:15,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none",color:"var(--text-tertiary)"},children:(0,oe.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),(0,oe.jsx)("span",{style:{flex:1,fontFamily:"var(--font-mono)",fontSize:13,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.name}),e.isGitRepo&&(0,oe.jsx)(q,{tone:"honey",mono:!0,children:"git"})]})}function Ou({wire:e,onBound:t,onCancel:r}){let[o,n]=Ft.default.useState(bh),[i,a]=Ft.default.useState(!1),[l,s]=Ft.default.useState(null),[c,d]=Ft.default.useState(""),[p,f]=Ft.default.useState(!1),[g,x]=Ft.default.useState(""),b=Ft.default.useRef(!1),w=Ft.default.useCallback(async E=>{let O=await e.fsBrowse(E);n(O),a(!0)},[e]);Ft.default.useEffect(()=>{w(void 0)},[w]);let v=i&&o.path===""&&o.children.length===0,m=o.error!==void 0&&o.error!=="",y=Ft.default.useCallback(()=>{o.path!==""&&(s({path:o.path,isGitRepo:!1}),d(uw(o.path)),x(""))},[o.path]),S=Ft.default.useCallback(E=>{s({path:E.path,isGitRepo:E.isGitRepo}),d(uw(E.path)),x("")},[]),_=Ft.default.useCallback(async()=>{if(l===null||b.current)return;b.current=!0,f(!0),x("");let E=await e.bindProject({path:l.path,...c.trim()!==""?{name:c.trim()}:{}});if(f(!1),b.current=!1,E.bound){t(E);return}x(E.error!==void 0&&E.error!==""?E.error:"Could not bind that folder.")},[l,c,e,t]);return(0,oe.jsx)("div",{"data-testid":"folder-picker",style:{display:"flex",flexDirection:"column",gap:14},children:v?(0,oe.jsxs)("div",{"data-testid":"picker-unavailable",style:{display:"flex",flexDirection:"column",gap:8,padding:"16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,oe.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)"},children:"The folder browser isn\u2019t available right now."}),(0,oe.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["Bind a folder from your terminal instead: ",(0,oe.jsx)("code",{style:{color:"var(--honey)"},children:b4})]}),r!==void 0&&(0,oe.jsx)("div",{children:(0,oe.jsx)(F,{variant:"ghost",size:"sm",onClick:r,children:"Close"})})]}):(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,oe.jsx)("span",{"data-testid":"picker-path",style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.path!==""?o.path:"loading\u2026"}),(0,oe.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>{w(o.parent??void 0)},disabled:o.parent===null,title:o.parent===null?"at the allowed root":"up one level",children:"\u2191 up"}),(0,oe.jsx)(F,{variant:"secondary",size:"sm",onClick:y,disabled:o.path==="","data-testid":"select-current",children:"Use this folder"})]}),(0,oe.jsx)("div",{"data-testid":"browse-list",style:{display:"flex",flexDirection:"column",gap:6,maxHeight:280,overflowY:"auto"},children:i?o.children.length===0?(0,oe.jsx)("div",{style:{padding:"10px 4px",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:m?"This folder couldn\u2019t be read.":"No sub-folders here \u2014 use this folder, or go up."}):o.children.map(E=>(0,oe.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,oe.jsx)("div",{style:{flex:1,minWidth:0},children:(0,oe.jsx)(S4,{child:E,onDescend:O=>{w(O)}})}),(0,oe.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>S(E),"data-testid":"select-child",title:"select this folder to bind",children:"select"})]},E.path)):(0,oe.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),l!==null&&(0,oe.jsxs)("div",{"data-testid":"picker-confirm",style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,oe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"folder"}),(0,oe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:l.path}),l.isGitRepo&&(0,oe.jsx)(q,{tone:"honey",mono:!0,children:"git"})]}),(0,oe.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,oe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"project name"}),(0,oe.jsx)(sn,{mono:!0,value:c,placeholder:"project name",onChange:E=>d(E.target.value),"data-testid":"picker-name"})]}),(0,oe.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,oe.jsx)(F,{variant:"primary",onClick:()=>{_()},disabled:p||c.trim()==="","data-testid":"picker-bind",children:p?"Binding\u2026":"Bind project"}),r!==void 0&&(0,oe.jsx)(F,{variant:"ghost",onClick:r,disabled:p,children:"Cancel"}),g!==""&&(0,oe.jsx)("span",{"data-testid":"picker-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})]})})}var Wt=A(K(),1);function yi({surface:e}){return(0,Wt.jsxs)("div",{"data-testid":"needs-project-selection",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:320,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Wt.jsx)("div",{style:{fontSize:15,color:"var(--text-secondary)"},children:"No project selected."}),(0,Wt.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:["Pick a project in the scope switcher (top of the sidebar) to view its ",e,"."]})]})}function dw({wire:e,navigate:t,assetBase:r}){let[o,n]=jh.default.useState(!1),i=jh.default.useCallback(a=>{t(Oh)},[t]);return(0,Wt.jsxs)("div",{"data-testid":"first-run-bind",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Wt.jsx)("img",{src:`${r}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""}),(0,Wt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:480},children:[(0,Wt.jsx)("div",{style:{fontSize:17,fontWeight:700,color:"var(--text-primary)",letterSpacing:"-0.02em"},children:"No active projects?"}),(0,Wt.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)",lineHeight:1.5},children:"Pick a folder to start \u2014 point Honeycomb at the repo or folder you want it to remember, and it begins capturing there."})]}),o?(0,Wt.jsx)("div",{style:{width:"100%",maxWidth:620,textAlign:"left"},children:(0,Wt.jsx)(Ou,{wire:e,onBound:i,onCancel:()=>n(!1)})}):(0,Wt.jsx)(F,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"first-run-pick",children:"Pick a folder to start"})]})}var M=A(K(),1),k4=8e3,hi={width:1600,height:1e3},Nh=.25,Lh=4,Du=1.15,Dh={scale:1,tx:0,ty:0};function Uh(e,t,r){return Math.min(r,Math.max(t,e))}function _4(e){let t=hi.width/e.scale,r=hi.height/e.scale;return`${e.tx} ${e.ty} ${t} ${r}`}function $4(e){let t=new Set,r=[];for(let o of e.nodes)t.has(o.kind)||(t.add(o.kind),r.push(o.kind));return r}function w4(e,t){if(t.size===0)return e;let r=e.nodes.filter(i=>!t.has(i.kind)),o=new Set(r.map(i=>i.id)),n=e.edges.filter(i=>o.has(i.from)&&o.has(i.to));return{built:e.built,nodes:r,edges:n}}function z4(e,t){let r=t.trim().toLowerCase();return r===""?null:e.nodes.find(n=>n.id.toLowerCase().includes(r)||n.label.toLowerCase().includes(r))?.id??null}function I4(e,t){let r=hi.width/t,o=hi.height/t;return{scale:t,tx:e.x-r/2,ty:e.y-o/2}}function P4({kind:e,count:t,hidden:r,onToggle:o}){let n=$u[e]??wu;return(0,M.jsxs)("button",{type:"button",role:"switch","aria-checked":!r,"data-testid":`kind-toggle-${e}`,"data-hidden":r,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:7,height:28,padding:"0 11px",background:r?"var(--bg-elevated)":"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-full)",color:r?"var(--text-tertiary)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",opacity:r?.55:1},children:[(0,M.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:n,flex:"none"}}),e||"node",(0,M.jsx)("span",{style:{color:"var(--text-tertiary)"},children:t})]})}function pw({kind:e,labels:t}){return(0,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:3,marginBottom:8},children:[(0,M.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:[e||"\u2014"," \xB7 ",t.length]}),(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-word"},children:t.join(", ")})]})}function E4({node:e,graph:t,onClear:r}){let{outgoing:o,incoming:n}=Rk(e.id,t.edges),i=s=>t.nodes.find(c=>c.id===s)?.label||s,a=s=>s.map(i),l=o.length>0||n.length>0;return(0,M.jsxs)("aside",{"data-testid":"graph-detail-panel",style:{width:320,flex:"none",alignSelf:"stretch",padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,M.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:$u[e.kind]??wu,flex:"none"}}),(0,M.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsx)(q,{tone:"neutral",mono:!0,children:e.kind||"node"})]}),(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),(0,M.jsx)("div",{style:{height:1,background:"var(--border-subtle)",margin:"2px 0"}}),!l&&(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no neighbors"}),o.length>0&&(0,M.jsxs)("div",{"data-testid":"detail-outgoing",children:[(0,M.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Outgoing"}),o.map(s=>(0,M.jsx)(pw,{kind:s.kind,labels:a(s.ids)},`out-${s.kind}`))]}),n.length>0&&(0,M.jsxs)("div",{"data-testid":"detail-incoming",children:[(0,M.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Incoming"}),n.map(s=>(0,M.jsx)(pw,{kind:s.kind,labels:a(s.ids)},`in-${s.kind}`))]}),(0,M.jsx)("div",{"data-testid":"calls-caveat",style:{marginTop:"auto",padding:"8px 10px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:(0,M.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",lineHeight:"16px"},children:["Cross-file ",(0,M.jsx)("code",{style:{color:"var(--text-secondary)"},children:"calls"})," resolve only for relative named/namespace imports \u2014 an empty incoming list is not proof of dead code."]})}),(0,M.jsx)("button",{type:"button",onClick:r,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",alignSelf:"flex-start"},children:"clear selection"})]})}function R4({graph:e,selected:t,transform:r,onSelect:o,onClear:n,onPanZoom:i}){let a=Oe.default.useMemo(()=>Ts(e.nodes,e.edges,hi),[e]),l=Oe.default.useRef(null),s=f=>{l.current={x:f.clientX,y:f.clientY,tx:r.tx,ty:r.ty},f.currentTarget.setPointerCapture?.(f.pointerId)},c=f=>{let g=l.current;if(g===null)return;let x=(f.clientX-g.x)/r.scale,b=(f.clientY-g.y)/r.scale;i({scale:r.scale,tx:g.tx-x,ty:g.ty-b})},d=()=>{l.current=null},p=f=>{let g=f.deltaY<0?Du:1/Du,x=Uh(r.scale*g,Nh,Lh);i({scale:x,tx:r.tx,ty:r.ty})};return(0,M.jsxs)("svg",{"data-testid":"graph-canvas",viewBox:_4(r),onPointerDown:s,onPointerMove:c,onPointerUp:d,onPointerLeave:d,onWheel:p,onClick:n,style:{width:"100%",height:"100%",display:"block",cursor:"grab",touchAction:"none",background:"var(--bg-canvas)"},children:[e.edges.map((f,g)=>{let x=a.get(f.from),b=a.get(f.to);return x===void 0||b===void 0?null:(0,M.jsx)("line",{x1:x.x,y1:x.y,x2:b.x,y2:b.y,stroke:"var(--border-strong)",strokeWidth:1.5},g)}),e.nodes.map(f=>{let g=a.get(f.id);if(g===void 0)return null;let x=f.id===t;return(0,M.jsxs)("g",{role:"button",tabIndex:0,"aria-label":`node ${f.label}`,"aria-pressed":x,"data-node-id":f.id,style:{cursor:"pointer"},onClick:b=>{b.stopPropagation(),o(f.id)},children:[x&&(0,M.jsx)("circle",{cx:g.x,cy:g.y,r:16,fill:"none",stroke:"var(--honey)",strokeWidth:2}),(0,M.jsx)("circle",{cx:g.x,cy:g.y,r:x?12:9,fill:$u[f.kind]??wu}),(0,M.jsx)("text",{x:g.x+15,y:g.y+4,fontFamily:"var(--font-mono)",fontSize:13,fill:"var(--text-secondary)",children:f.label})]},f.id)})]})}function C4({source:e,wire:t,onBuilt:r}){return(0,M.jsx)("div",{"data-testid":"graph-empty-state",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:360,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:e==="codebase"?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No graph built for this workspace."}),(0,M.jsx)(df,{wire:t,onBuilt:r})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No memory graph yet for this workspace."}),(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:"The knowledge graph is populated automatically as memories and entities accrue."})]})})}function fw({label:e,ariaLabel:t,onClick:r}){return(0,M.jsx)("button",{type:"button","aria-label":t,onClick:r,style:{width:30,height:30,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:14,lineHeight:1,cursor:"pointer"},children:e})}function T4({source:e,onPick:t}){let r=(o,n)=>{let i=e===o;return(0,M.jsx)("button",{type:"button",role:"tab","aria-selected":i,"data-testid":`source-${o}`,onClick:()=>t(o),style:{height:30,padding:"0 14px",background:i?"var(--honey-subtle)":"transparent",border:`1px solid ${i?"var(--honey-border)":"var(--border-default)"}`,color:i?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,cursor:"pointer"},children:n})};return(0,M.jsxs)("div",{role:"tablist","aria-label":"graph source",style:{display:"inline-flex",gap:0,borderRadius:"var(--radius-md)",overflow:"hidden"},children:[r("codebase","Codebase"),r("memory","Memory")]})}function mw({wire:e}){let{scope:t}=pn(),r=t.project,[o,n]=Oe.default.useState("codebase"),[i,a]=Oe.default.useState(mi),[l,s]=Oe.default.useState(null),[c,d]=Oe.default.useState(new Set),[p,f]=Oe.default.useState(""),[g,x]=Oe.default.useState(Dh),[b,w]=Oe.default.useState(0);Oe.default.useEffect(()=>{if(r===void 0){a(mi);return}let ie=!0,se=async()=>{let Mt=o==="memory"?await e.memoryGraph(r):await e.graph(r);ie&&a(Mt)};se();let Ie=setInterval(()=>{se()},k4);return()=>{ie=!1,clearInterval(Ie)}},[e,o,b,r]);let v=Oe.default.useCallback(()=>w(ie=>ie+1),[]),m=Oe.default.useCallback(ie=>{n(ie),a(mi),s(null),d(new Set),f(""),x(Dh)},[]),y=Oe.default.useMemo(()=>$4(i),[i]),S=Oe.default.useMemo(()=>w4(i,c),[i,c]),{graph:_,capped:E}=Oe.default.useMemo(()=>_h(S,bu),[S]),O=i.meta?.truncated??!1,W=O||E,G=l!==null?_.nodes.find(ie=>ie.id===l)??null:null,Z=Oe.default.useCallback(ie=>{d(se=>{let Ie=new Set(se);return Ie.has(ie)?Ie.delete(ie):Ie.add(ie),Ie})},[]),Ze=Oe.default.useCallback(ie=>{f(ie);let se=z4(_,ie);if(se===null)return;s(se);let Mt=Ts(_.nodes,_.edges,hi).get(se);Mt!==void 0&&x(I4(Mt,Math.max(g.scale,1.4)))},[_,g.scale]),bt=Oe.default.useCallback(()=>x(Dh),[]),Xn=Oe.default.useCallback(()=>x(ie=>({...ie,scale:Uh(ie.scale*Du,Nh,Lh)})),[]),Xe=Oe.default.useCallback(()=>x(ie=>({...ie,scale:Uh(ie.scale/Du,Nh,Lh)})),[]),Kn=Oe.default.useCallback(ie=>s(se=>se===ie?null:ie),[]),Rn=Oe.default.useCallback(()=>s(null),[]),Cr=`${o} \xB7 ${_.nodes.length} nodes \xB7 ${_.edges.length} edges`;return(0,M.jsx)(Qe,{title:"Graph",eyebrow:r===void 0?"graph":Cr,right:(0,M.jsx)(T4,{source:o,onPick:m}),children:r===void 0?(0,M.jsx)(yi,{surface:"codebase & memory graph"}):i.built?(0,M.jsxs)(M.Fragment,{children:[W&&(0,M.jsxs)("div",{"data-testid":"graph-truncation-notice",style:{display:"flex",alignItems:"center",gap:8,marginBottom:14,padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[(0,M.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--severity-warning)",flex:"none"}}),O?`Showing the ${(i.meta?.shownNodes??i.nodes.length).toLocaleString()} most-connected of ${(i.meta?.totalNodes??i.nodes.length).toLocaleString()} nodes. Use search and kind filters to focus.`:`Rendering is capped at ${bu.toLocaleString()} nodes. Use search and kind filters to focus.`]}),(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14,flexWrap:"wrap"},children:[(0,M.jsx)("input",{"aria-label":"search nodes","data-testid":"graph-search",type:"text",value:p,placeholder:"search id or label\u2026",onChange:ie=>Ze(ie.target.value),style:{height:30,padding:"0 12px",minWidth:220,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}}),(0,M.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:y.map(ie=>{let se=i.nodes.filter(Ie=>Ie.kind===ie).length;return(0,M.jsx)(P4,{kind:ie,count:se,hidden:c.has(ie),onToggle:()=>Z(ie)},ie)})}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,M.jsx)(fw,{label:"\u2212",ariaLabel:"zoom out",onClick:Xe}),(0,M.jsx)(fw,{label:"+",ariaLabel:"zoom in",onClick:Xn}),(0,M.jsx)("button",{type:"button","data-testid":"fit-view",onClick:bt,style:{height:30,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"fit"})]})]}),(0,M.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"stretch"},children:[(0,M.jsx)("div",{style:{flex:1,minWidth:0,height:"70vh",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden"},children:(0,M.jsx)(R4,{graph:_,selected:G?.id??null,transform:g,onSelect:Kn,onClear:Rn,onPanZoom:x})}),G!==null&&(0,M.jsx)(E4,{node:G,graph:i,onClear:Rn})]})]}):(0,M.jsx)(C4,{source:o,wire:e,onBuilt:v})})}var De=A(ke(),1);var N=A(K(),1),gw=30,j4=50,vw=50;function O4(e){return e>=500?"critical":e>=400?"warning":e>=200&&e<300?"verified":"neutral"}function D4(e){return(e||"").slice(11,19)||(e||"").slice(0,8)}function xw({record:e,live:t}){let r=e.status,o=e.org??"",n=e.durationMs;return(0,N.jsxs)("div",{"data-testid":"log-row",style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:t?"var(--text-primary)":"var(--text-tertiary)"},children:D4(e.time)}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:"var(--text-secondary)"},children:e.method}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:e.path,children:e.path}),(0,N.jsx)(q,{tone:O4(r),mono:!0,children:r>0?r:"\u2014"}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:48},children:typeof n=="number"?`${Math.round(n)}ms`:""}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:60},children:o})]})}function N4(){let e=(t,r="left")=>(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:r},children:t});return(0,N.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"4px 6px 8px"},children:[e("time"),e("method"),e("path"),e("status"),e("dur","right"),e("org","right")]})}var xi={since:"",until:"",status:"",path:"",org:""};function yw(e){let t={limit:j4};return e.since!==""&&(t.since=e.since),e.until!==""&&(t.until=e.until),e.status!==""&&(t.status=e.status),e.path!==""&&(t.path=e.path),e.org!==""&&(t.org=e.org),t}function rl({label:e,value:t,placeholder:r,onChange:o,testid:n}){return(0,N.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:130,flex:"1 1 130px"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)"},children:e}),(0,N.jsx)(sn,{mono:!0,size:"sm",value:t,placeholder:r,onChange:i=>o(i.target.value),"data-testid":n})]})}function L4({draft:e,onChangeField:t,onApply:r,onClear:o}){return(0,N.jsx)(le,{title:"Filters",eyebrow:"time \xB7 status \xB7 path \xB7 harness",children:(0,N.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:12,alignItems:"flex-end"},children:[(0,N.jsx)(rl,{label:"since (ISO)",value:e.since,placeholder:"2026-06-22T00:00:00Z",onChange:n=>t("since",n),testid:"filter-since"}),(0,N.jsx)(rl,{label:"until (ISO)",value:e.until,placeholder:"2026-06-22T23:59:59Z",onChange:n=>t("until",n),testid:"filter-until"}),(0,N.jsx)(rl,{label:"status / level",value:e.status,placeholder:"5xx or 404",onChange:n=>t("status",n),testid:"filter-status"}),(0,N.jsx)(rl,{label:"path",value:e.path,placeholder:"/api/memories",onChange:n=>t("path",n),testid:"filter-path"}),(0,N.jsx)(rl,{label:"harness / org",value:e.org,placeholder:"org id",onChange:n=>t("org",n),testid:"filter-org"}),(0,N.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,N.jsx)(F,{variant:"primary",size:"sm","data-testid":"filter-apply",onClick:r,children:"Apply"}),(0,N.jsx)(F,{variant:"ghost",size:"sm","data-testid":"filter-clear",onClick:o,children:"Clear"})]})]})})}function U4(e,t){let r=[t,...e];return r.length>gw?r.slice(0,gw):r}function A4({records:e,open:t,onToggle:r}){return(0,N.jsx)(le,{title:"Live tail",eyebrow:`${e.length} streaming`,right:(0,N.jsx)("button",{type:"button","data-testid":"live-toggle","aria-expanded":t,onClick:r,style:{background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:11,padding:"4px 10px",cursor:"pointer"},children:t?"collapse":"expand"}),children:t?e.length===0?(0,N.jsx)("div",{"data-testid":"live-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"waiting for daemon activity\u2026"}):(0,N.jsx)("div",{"data-testid":"live-list",children:e.map((o,n)=>(0,N.jsx)(xw,{record:o,live:!0},`${o.time}-${o.path}-${n}`))}):(0,N.jsx)("div",{style:{padding:"4px",fontSize:12,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"live tail collapsed"})})}function F4({page:e,loading:t,error:r,onLoadMore:o}){return(0,N.jsx)(le,{title:"History",eyebrow:e.persistent?`${e.count} on this page`:"history unavailable",children:r?(0,N.jsx)("div",{"data-testid":"history-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load log history."}):t&&e.records.length===0?(0,N.jsx)("div",{"data-testid":"history-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.persistent?e.records.length===0?(0,N.jsx)("div",{"data-testid":"history-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No logs match these filters."}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(N4,{}),(0,N.jsx)("div",{"data-testid":"history-list",children:e.records.map((n,i)=>(0,N.jsx)(xw,{record:n},`${n.time}-${n.path}-${n.status}-${i}`))}),e.nextCursor!==null&&(0,N.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,N.jsx)(F,{variant:"secondary",size:"sm",disabled:t,"data-testid":"history-load-more",onClick:o,children:t?"loading\u2026":"Load more"})})]}):(0,N.jsx)("div",{"data-testid":"history-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Durable log history is unavailable on this daemon. Live tail above still streams current activity."})})}function ol({label:e,children:t}){return(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,N.jsx)("span",{style:{flex:1}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function W4({turn:e,onBack:t}){return(0,N.jsx)(le,{title:"Turn detail",eyebrow:e.sessionId,right:(0,N.jsx)(F,{variant:"ghost",size:"sm","data-testid":"turn-back",onClick:t,children:"\u2039 Back"}),children:(0,N.jsxs)("div",{"data-testid":"turn-detail",children:[(0,N.jsx)(ol,{label:"turn id",children:e.sessionId||"\u2014"}),(0,N.jsx)(ol,{label:"project",children:e.project||"\u2014"}),(0,N.jsx)(ol,{label:"timestamp",children:e.startedAt||"\u2014"}),(0,N.jsx)(ol,{label:"event count",children:e.eventCount}),(0,N.jsx)(ol,{label:"status",children:(0,N.jsx)(q,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})})]})})}function M4({turn:e,onOpen:t}){return(0,N.jsxs)("button",{type:"button","data-testid":`turn-row-${e.sessionId}`,onClick:()=>t(e),style:{display:"grid",gridTemplateColumns:"96px 1fr auto auto",alignItems:"center",gap:12,width:"100%",padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",background:"transparent",border:"none",borderTopColor:"var(--border-subtle)",cursor:"pointer",textAlign:"left"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.sessionId}),(0,N.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.project}),(0,N.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[e.startedAt,e.eventCount>0?` \xB7 ${e.eventCount}e`:""]}),(0,N.jsx)(q,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})]})}function Z4({turns:e,loading:t,error:r,hasMore:o,onOpen:n,onLoadMore:i}){return(0,N.jsx)(le,{title:"Turns",eyebrow:`${e.length} captured`,children:r?(0,N.jsx)("div",{"data-testid":"turns-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load turns."}):t&&e.length===0?(0,N.jsx)("div",{"data-testid":"turns-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.length===0?(0,N.jsx)("div",{"data-testid":"turns-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No turns captured yet."}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{"data-testid":"turns-list",children:e.map((a,l)=>(0,N.jsx)(M4,{turn:a,onOpen:n},a.sessionId||l))}),o&&(0,N.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,N.jsx)(F,{variant:"secondary",size:"sm",disabled:t,"data-testid":"turns-load-more",onClick:i,children:t?"loading\u2026":"Load more"})})]})})}function hw({label:e,active:t,onClick:r,testid:o}){return(0,N.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:e})}function bw({wire:e,daemonUp:t}){let[r,o]=De.default.useState("requests"),[n,i]=De.default.useState($h),[a,l]=De.default.useState(xi),[s,c]=De.default.useState(xi),[d,p]=De.default.useState(!1),[f,g]=De.default.useState(!1),[x,b]=De.default.useState([]),[w,v]=De.default.useState(!0),[m,y]=De.default.useState([]),[S,_]=De.default.useState(null),[E,O]=De.default.useState(!1),[W,G]=De.default.useState(!1),[Z,Ze]=De.default.useState(null),bt=De.default.useCallback(async se=>{p(!0),g(!1);try{let Ie=await e.logsHistory(yw(se));i(Ie)}catch{g(!0)}finally{p(!1)}},[e]),Xn=De.default.useCallback(async()=>{if(n.nextCursor!==null){p(!0);try{let se=await e.logsHistory({...yw(a),cursor:n.nextCursor});i(Ie=>({records:[...Ie.records,...se.records],count:Ie.count+se.count,nextCursor:se.nextCursor,persistent:se.persistent}))}catch{g(!0)}finally{p(!1)}}},[e,a,n.nextCursor]),Xe=De.default.useCallback(async()=>{O(!0),G(!1);try{let se=await e.turnsHistory({limit:vw});y(se.sessions),_(se.nextCursor)}catch{G(!0)}finally{O(!1)}},[e]),Kn=De.default.useCallback(async()=>{if(S!==null){O(!0);try{let se=await e.turnsHistory({limit:vw,cursor:S});y(Ie=>[...Ie,...se.sessions]),_(se.nextCursor)}catch{G(!0)}finally{O(!1)}}},[e,S]);De.default.useEffect(()=>{bt(xi),Xe()},[bt,Xe]),De.default.useEffect(()=>{let se=!0,Ie=e.logsStream(Mt=>{se&&b($i=>U4($i,Mt))});return()=>{se=!1,Ie()}},[e]);let Rn=De.default.useCallback(()=>{l(s),bt(s)},[s,bt]),Cr=De.default.useCallback(()=>{c(xi),l(xi),bt(xi)},[bt]),vn=De.default.useCallback((se,Ie)=>{c(Mt=>({...Mt,[se]:Ie}))},[]);return(0,N.jsx)(Qe,{title:"Logs",eyebrow:t?"request log \xB7 turns":"daemon offline",right:(0,N.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,N.jsx)(hw,{label:"Requests",active:r==="requests",onClick:()=>o("requests"),testid:"tab-requests"}),(0,N.jsx)(hw,{label:"Turns",active:r==="turns",onClick:()=>o("turns"),testid:"tab-turns"})]}),children:r==="requests"?(0,N.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,N.jsx)(A4,{records:x,open:w,onToggle:()=>v(se=>!se)}),(0,N.jsx)(L4,{draft:s,onChangeField:vn,onApply:Rn,onClear:Cr}),(0,N.jsx)(F4,{page:n,loading:d,error:f,onLoadMore:()=>{Xn()}})]}):Z!==null?(0,N.jsx)(W4,{turn:Z,onBack:()=>Ze(null)}):(0,N.jsx)(Z4,{turns:m,loading:E,error:W,hasMore:S!==null,onOpen:se=>Ze(se),onLoadMore:()=>{Kn()}})})}var te=A(ke(),1);var fn=A(ke(),1);var J=A(K(),1),B4=6,V4=150;function H4(e){return new Promise(t=>setTimeout(t,e))}async function Nu(e,t,r,...o){let n=e[t];if(typeof n!="function")return r;try{return await n.apply(e,o)??r}catch{return r}}var J4={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Rr({label:e,value:t}){return(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:96},children:[(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:e}),(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:16,fontWeight:600,color:"var(--text-primary)"},children:t})]})}function G4(e){return e>=.66?"verified":e>=.33?"honey":"warning"}function X4(e){let t=(r,o)=>r===void 0||!Number.isFinite(r)?o:Math.min(1,Math.max(0,r));return t(e.freshness,1)*t(e.calibrationConfidence,1)*(1-t(e.staleness,0))*t(e.kappa,1)}function K4(e){return e!==void 0&&Number.isFinite(e)?Math.min(1,Math.max(0,e)).toFixed(2):"\u2014"}function Y4({lower:e,upper:t,accuracy:r}){let o=Math.round(Math.min(1,Math.max(0,r))*100);return(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",minWidth:64},children:[e.toFixed(2),"\u2013",t.toFixed(2)]}),(0,J.jsx)("div",{style:{flex:1,height:8,background:"var(--bg-subtle)",borderRadius:4,overflow:"hidden"},children:(0,J.jsx)("div",{style:{width:`${o}%`,height:"100%",background:"var(--honey)"}})}),(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-secondary)",minWidth:32,textAlign:"right"},children:[o,"%"]})]})}var Q4=["review","supersede","keep-both"];function q4({conflict:e,onResolve:t}){let[r,o]=fn.default.useState("review"),[n,i]=fn.default.useState(e.memoryAId),[a,l]=fn.default.useState(!1),s=async()=>{a||(l(!0),await t(e.id,r,r==="supersede"?n:""),l(!1))};return(0,J.jsxs)("div",{"data-testid":"conflict-row","data-conflict-id":e.id,style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,J.jsx)(q,{tone:"warning",mono:!0,dot:!0,children:e.status||"open"}),(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:[e.memoryAId," \u21C4 ",e.memoryBId]})]}),(0,J.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,J.jsx)("select",{"aria-label":"verdict",value:r,onChange:c=>o(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12},children:Q4.map(c=>(0,J.jsx)("option",{value:c,children:c},c))}),r==="supersede"&&(0,J.jsxs)("select",{"aria-label":"winner",value:n,onChange:c=>i(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12,maxWidth:180},children:[(0,J.jsxs)("option",{value:e.memoryAId,children:["winner: ",e.memoryAId]}),(0,J.jsxs)("option",{value:e.memoryBId,children:["winner: ",e.memoryBId]})]}),(0,J.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>{s()},disabled:a,children:a?"\u2026":"Resolve"})]})]})}function Sw({wire:e}){let[t,r]=fn.default.useState([]),[o,n]=fn.default.useState([]),[i,a]=fn.default.useState(xu),[l,s]=fn.default.useState(!1),c=fn.default.useCallback(async()=>{let w=await Nu(e,"lifecycleConflicts",[],"open");return r(w),w},[e]);fn.default.useEffect(()=>{let w=!0;return(async()=>{let[v,m,y]=await Promise.all([Nu(e,"lifecycleConflicts",[],"open"),Nu(e,"lifecycleStaleRefs",[]),Nu(e,"calibration",xu)]);w&&(r(v),n(m),a(y),s(!0))})(),()=>{w=!1}},[e]);let d=fn.default.useCallback(async(w,v,m)=>{if(!(typeof e.resolveConflict=="function"?await e.resolveConflict(w,{verdict:v,...m!==""?{winnerId:m}:{}}):!1)){await c();return}for(let S=0;S<B4;S+=1){if(!(await c()).some(E=>E.id===w))return;await H4(V4)}},[e,c]),p=void 0,f=o.length>0?Math.min(1,o.length/Math.max(o.length,8)):0,g=i.identity?1:Math.max(0,1-i.ece),x=t.length>0?.5:1,b=X4({freshness:p,calibrationConfidence:g,staleness:f,kappa:x});return(0,J.jsxs)("div",{"data-testid":"lifecycle-panel",style:{...J4,display:"flex",flexDirection:"column",gap:16},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,J.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Memory health"}),(0,J.jsx)(q,{tone:G4(b),mono:!0,dot:!0,children:(0,J.jsxs)("span",{"data-testid":"health-badge",children:["H ",b.toFixed(2)]})})]}),(0,J.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,J.jsx)(Rr,{label:"freshness",value:K4(p)}),(0,J.jsx)(Rr,{label:"calibrated confidence",value:i.identity?"\u2014":g.toFixed(2)}),(0,J.jsx)(Rr,{label:"open conflicts",value:String(t.length)}),(0,J.jsx)(Rr,{label:"stale refs",value:String(o.length)}),(0,J.jsx)(Rr,{label:"ECE",value:i.identity?"dormant":i.ece.toFixed(3)})]}),(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,J.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Conflicts (",t.length,")"]}),l?t.length===0?(0,J.jsx)("span",{"data-testid":"conflicts-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no open conflicts."}):t.map(w=>(0,J.jsx)(q4,{conflict:w,onResolve:d},w.id)):(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,J.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Stale references (",o.length,")"]}),l?o.length===0?(0,J.jsx)("span",{"data-testid":"stale-refs-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no stale references."}):o.map(w=>(0,J.jsxs)("div",{"data-testid":"stale-ref-row",style:{display:"flex",gap:8,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:[(0,J.jsx)("span",{style:{color:"var(--honey)",wordBreak:"break-all"},children:w.memoryId}),(0,J.jsx)("span",{style:{color:"var(--text-tertiary)"},children:w.staleRefs.length>0?w.staleRefs.join(", "):"(refs unrecorded)"})]},w.memoryId)):(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,J.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Calibration"}),i.identity?(0,J.jsx)("span",{"data-testid":"calibration-dormant",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"calibration dormant \u2014 confidence weighting (c) stays 0 until the curve is fit."}):(0,J.jsxs)("div",{"data-testid":"calibration-view",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,J.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,J.jsx)(Rr,{label:"ECE",value:i.ece.toFixed(3)}),(0,J.jsx)(Rr,{label:"Brier",value:i.brier.toFixed(3)}),(0,J.jsx)(Rr,{label:"samples",value:String(i.nSamples)})]}),(0,J.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:i.reliabilityDiagram.map(w=>(0,J.jsx)(Y4,{lower:w.lower,upper:w.upper,accuracy:w.accuracy},`${w.lower}-${w.upper}`))})]})]})]})}var kw=["fact","convention","preference","decision","gotcha","reference"],Lu="fact",Ah=Object.freeze({fact:"A stable, verifiable truth about the system, codebase, or domain.",convention:"How things are done here: idioms, standards, patterns to follow by default.",preference:"The user/team's stated way of working; corrections and do/don't guidance.",decision:"An architectural or design choice and its rationale; don't relitigate it.",gotcha:"A non-obvious trap, failure mode, or constraint to watch out for.",reference:"A pointer to an external resource (URL, dashboard, ticket, doc)."});var $=A(K(),1),_w=50,eT=2500,tT=12,nT=["/api/memories","/api/diagnostics/pollinate","/api/diagnostics/compact"],rT=5,oT=150;function iT(e){return new Promise(t=>setTimeout(t,e))}function aT(e){return nT.some(t=>e.startsWith(t))}function bi({label:e,value:t}){return t===""?null:(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",minWidth:84,textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t})]})}var il={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function lT({record:e,onOpen:t}){return(0,$.jsxs)("button",{type:"button","data-testid":"memory-row","data-memory-id":e.id,onClick:()=>t(e.id),style:{display:"flex",alignItems:"center",gap:12,width:"100%",textAlign:"left",padding:"11px 14px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:160},children:e.id}),(0,$.jsx)("span",{style:{flex:1,fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.content}),(0,$.jsx)(q,{tone:"neutral",mono:!0,children:e.type||"fact"})]})}function sT({record:e,onClose:t,onEdit:r,onForget:o}){let[n,i]=te.default.useState(!1),[a,l]=te.default.useState(e.content),[s,c]=te.default.useState(""),[d,p]=te.default.useState(!1),[f,g]=te.default.useState(""),[x,b]=te.default.useState(!1);te.default.useEffect(()=>{l(e.content),c(""),i(!1),b(!1)},[e.id,e.content,e.version]);let w=s.trim()==="",v=a.trim()==="",m=async()=>{if(d||v||w)return;p(!0),g("");let S=await r(e.id,a,s);p(!1),i(!1),c(""),g(S??"Save failed \u2014 the memory is unchanged.")},y=async()=>{if(d)return;p(!0),g("");let S=await o(e.id,"forgotten via dashboard");p(!1),S===null&&g("Forget failed \u2014 the memory is unchanged.")};return(0,$.jsxs)("div",{"data-testid":"memory-detail",style:{...il,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:e.id}),(0,$.jsx)(q,{tone:"neutral",mono:!0,children:e.type||"fact"}),e.hasEmbedding&&(0,$.jsx)(q,{tone:"pollinate",mono:!0,dot:!0,children:"semantic"}),(0,$.jsx)("span",{style:{flex:1}}),(0,$.jsx)(F,{variant:"ghost",size:"sm",onClick:t,children:"\u2190 back"})]}),n?(0,$.jsx)("textarea",{"aria-label":"edit content",value:a,onChange:S=>l(S.target.value),rows:5,style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}):(0,$.jsx)("div",{"data-testid":"memory-content",style:{fontSize:14,lineHeight:"21px",color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:5,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,$.jsx)(bi,{label:"scope",value:[e.visibility,e.agentId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(bi,{label:"source",value:[e.sourceType,e.sourceId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(bi,{label:"version",value:e.version>0?String(e.version):""}),(0,$.jsx)(bi,{label:"indexed",value:e.hasEmbedding?"yes (semantic)":"no (lexical only)"}),(0,$.jsx)(bi,{label:"created",value:e.createdAt}),(0,$.jsx)(bi,{label:"updated",value:e.updatedAt})]}),(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Edits append a new version; the prior is kept in history."}),n?(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)(sn,{mono:!0,"aria-label":"edit reason",value:s,placeholder:"reason (required) \u2014 why is this changing?",onChange:S=>c(S.target.value)}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(F,{variant:"primary",onClick:()=>{m()},disabled:d||v||w,children:d?"\u2026":"Save new version"}),(0,$.jsx)(F,{variant:"ghost",onClick:()=>i(!1),disabled:d,children:"Cancel"}),w&&(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"a reason is required to save"})]})]}):(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(F,{variant:"secondary",onClick:()=>i(!0),children:"Edit"}),x?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(F,{variant:"danger",onClick:()=>{y()},disabled:d,children:d?"\u2026":"Confirm forget"}),(0,$.jsx)(F,{variant:"ghost",onClick:()=>b(!1),disabled:d,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Forget soft-deletes this memory (a tombstone version)."})]}):(0,$.jsx)(F,{variant:"ghost",onClick:()=>b(!0),children:"Forget"})]}),f!==""&&(0,$.jsx)("div",{"data-testid":"detail-note",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:f})]})}var cT={height:40,padding:"0 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)"};function uT({onAdd:e}){let[t,r]=te.default.useState(""),[o,n]=te.default.useState(Lu),[i,a]=te.default.useState(!1),[l,s]=te.default.useState(""),c=t.trim()==="",d=async()=>{if(i||c)return;a(!0),s("");let p=await e(t,o);if(a(!1),p===null){s("Add failed \u2014 nothing was stored.");return}r(""),n(Lu),s(p)};return(0,$.jsxs)("div",{style:{...il,display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Add a memory"}),(0,$.jsx)("textarea",{"aria-label":"new content",value:t,onChange:p=>r(p.target.value),rows:3,placeholder:"a fact to remember \u2014 e.g. we deploy via `just release`",style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)("select",{"aria-label":"memory type","data-testid":"add-type",value:o,onChange:p=>n(p.target.value),title:Ah[o],style:{...cT,width:180,cursor:"pointer"},children:kw.map(p=>(0,$.jsx)("option",{value:p,title:Ah[p],children:p===Lu?`${p} (default)`:p},p))}),(0,$.jsx)(F,{variant:"primary",onClick:()=>{d()},disabled:i||c,children:i?"\u2026":"Add memory"}),l!==""&&(0,$.jsx)("span",{"data-testid":"add-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:l})]})]})}function dT(e){if(e.errored>0)return`${e.table}: attempted, not completed`;let t=[`${e.keysCompacted} keys`,`${e.rowsReaped} rows reaped`];return e.keysSkipped>0&&t.push(`${e.keysSkipped} keys deferred`),`${e.table}: ${t.join(" \xB7 ")}`}function pT({pollinating:e,onCompact:t,onPollinate:r,watchLines:o,watching:n,onToggleWatch:i}){let[a,l]=te.default.useState(!1),[s,c]=te.default.useState(!1),[d,p]=te.default.useState(null),[f,g]=te.default.useState(!1),[x,b]=te.default.useState(""),w=async()=>{if(s)return;l(!1),c(!0);let m=await t();c(!1),p(m)},v=async()=>{if(f)return;g(!0),b("");let m=await r();g(!1),m.triggered?b(m.status==="running"?"already running":"consolidating\u2026"):b(`skipped \xB7 ${m.reason??"unavailable"}`)};return(0,$.jsxs)("div",{style:{...il,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Lifecycle"}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsx)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(F,{variant:"danger",onClick:()=>{w()},disabled:s,children:s?"\u2026":"Confirm compact"}),(0,$.jsx)(F,{variant:"ghost",onClick:()=>l(!1),disabled:s,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Compaction prunes old memory versions across version-bumped tables. Continue?"})]}):(0,$.jsx)(F,{variant:"secondary",onClick:()=>l(!0),disabled:s,children:"Compact"})}),d!==null&&(0,$.jsxs)("div",{"data-testid":"compact-summary",style:{display:"flex",flexDirection:"column",gap:3},children:[d.summaries.length===0&&d.skippedTables.length===0?(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"nothing reaped this pass"}):d.summaries.map(m=>(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:m.errored>0?"var(--severity-warning)":"var(--text-secondary)"},children:dT(m)},m.table)),d.skippedTables.length>0&&(0,$.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["skipped (absent): ",d.skippedTables.join(", ")]})]})]}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)(F,{variant:"pollinate",onClick:()=>{v()},disabled:f||e,children:f||e?"pollinating\u2026":"Pollinate now"}),x!==""&&(0,$.jsx)("span",{"data-testid":"pollinate-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:x})]}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(F,{variant:n?"secondary":"ghost",onClick:i,children:n?"Stop watch":"Watch"}),n&&(0,$.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,$.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"memory routes"})]})]}),n&&(0,$.jsx)("div",{"data-testid":"watch-feed",style:{display:"flex",flexDirection:"column",gap:5},children:o.length===0?(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for memory activity\u2026"}):o.map((m,y)=>(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:y===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:m},y))})]})]})}function $w({wire:e,pollinating:t=!1}){let{scope:r}=pn(),o=r.project,[n,i]=te.default.useState([]),[a,l]=te.default.useState(_w),[s,c]=te.default.useState(!1),[d,p]=te.default.useState(""),[f,g]=te.default.useState([]),[x,b]=te.default.useState(!1),[w,v]=te.default.useState(!1),[m,y]=te.default.useState(!1),[S,_]=te.default.useState(null),[E,O]=te.default.useState(null),[W,G]=te.default.useState(!1),[Z,Ze]=te.default.useState(!1),[bt,Xn]=te.default.useState([]),Xe=te.default.useCallback(async Q=>{if(o===void 0)return i([]),c(!0),[];let ve=await e.listMemories(Q,o);return i(ve),c(!0),ve},[e,o]);te.default.useEffect(()=>{Xe(a)},[Xe,a]),te.default.useEffect(()=>{if(!Z)return;let Q=!0,ve=async()=>{let wi=await e.logs(40);if(!Q)return;let ll=wi.filter(Tr=>aT(Tr.path)).slice(-tT).reverse().map(Pr);Xn(ll)};ve();let Be=setInterval(()=>{ve()},eT);return()=>{Q=!1,clearInterval(Be)}},[Z,e]);let Kn=te.default.useCallback(async()=>{let Q=d.trim();if(Q===""){v(!1),g([]);return}b(!0);let{memories:ve,degraded:Be}=await e.recall(Q,o);g(ve),y(Be),v(!0),b(!1)},[d,e,o]),Rn=te.default.useCallback(()=>{p(""),v(!1),g([])},[]),Cr=te.default.useCallback(async Q=>{_(Q),O(null),G(!1);let ve=await e.getMemory(Q);if(ve===null){G(!0);return}O(ve)},[e]),vn=te.default.useCallback(()=>{_(null),O(null),G(!1)},[]),ie=te.default.useCallback(async(Q,ve)=>{let Be=null;for(let wi=0;wi<rT;wi+=1){if(Be=await e.getMemory(Q),Be!==null&&ve(Be))return Be;await iT(oT)}return Be},[e]),se=te.default.useCallback(async(Q,ve,Be)=>{if(await e.modifyMemory(Q,{content:ve,reason:Be})===null){let Tr=await e.getMemory(Q);return Tr!==null&&O(Tr),null}let ll=await ie(Q,Tr=>Tr.content===ve||Tr.version>0);return ll!==null&&O(ll),Xe(a),"saved \xB7 new version"},[e,ie,Xe,a]),Ie=te.default.useCallback(async(Q,ve)=>await e.forgetMemory(Q,{reason:ve})===null?null:(vn(),Xe(a),"forgotten"),[e,vn,Xe,a]),Mt=te.default.useCallback(async(Q,ve)=>{let Be=await e.addMemory({content:Q,...ve!==""?{type:ve}:{}});return Be===null?null:(await Xe(a),Be.id!==null?`stored \xB7 ${Be.id}`:`stored \xB7 ${Be.action||"ok"}`)},[e,Xe,a]),$i=te.default.useCallback(()=>e.compact(),[e]),Re=te.default.useCallback(()=>e.pollinate(),[e]),Pe=te.default.useCallback(()=>{Ze(Q=>!Q),Xn([])},[]),Et=S!==null;return(0,$.jsx)(Qe,{eyebrow:"memories",title:"Memories",right:(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:o===void 0?"no project":`${n.length} kept`}),children:o===void 0?(0,$.jsx)(yi,{surface:"memories"}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:16},children:[(0,$.jsx)("div",{style:{flex:1},children:(0,$.jsx)(sn,{mono:!0,size:"lg",value:d,placeholder:"search memories\u2026 e.g. how do we deploy",onChange:Q=>p(Q.target.value),onKeyDown:Q=>{Q.key==="Enter"&&Kn()}})}),(0,$.jsx)(F,{variant:"primary",size:"lg",onClick:()=>{Kn()},disabled:x,children:x?"\u2026":"Search"}),w&&(0,$.jsx)(F,{variant:"ghost",size:"lg",onClick:Rn,children:"Clear"})]}),w&&m&&(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,$.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",children:(0,$.jsx)(q,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})]}),Et?W?(0,$.jsxs)("div",{"data-testid":"memory-forgotten",style:{...il,display:"flex",flexDirection:"column",gap:12},children:[(0,$.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)"},children:"This memory was forgotten (or its id is unknown)."}),(0,$.jsx)("div",{children:(0,$.jsx)(F,{variant:"ghost",size:"sm",onClick:vn,children:"\u2190 back"})})]}):E!==null?(0,$.jsx)(sT,{record:E,onClose:vn,onEdit:se,onForget:Ie}):(0,$.jsx)("div",{style:{...il,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}):(0,$.jsxs)($.Fragment,{children:[w?(0,$.jsx)("div",{"data-testid":"search-results",style:{display:"flex",flexDirection:"column",gap:10,marginBottom:18},children:f.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):f.map((Q,ve)=>(0,$.jsx)(Cs,{...Q,pollinating:t&&ve===1},Q.memoryKey))}):(0,$.jsx)("div",{"data-testid":"memory-list",style:{display:"flex",flexDirection:"column",gap:8,marginBottom:18},children:s?n.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories yet."}):(0,$.jsxs)($.Fragment,{children:[n.map(Q=>(0,$.jsx)(lT,{record:Q,onOpen:Cr},Q.id)),n.length>=a&&(0,$.jsx)("div",{style:{paddingTop:4},children:(0,$.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>l(Q=>Q+_w),children:"Load more"})})]}):(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,$.jsx)(uT,{onAdd:Mt}),(0,$.jsx)(Sw,{wire:e}),(0,$.jsx)(pT,{pollinating:t,onCompact:$i,onPollinate:Re,watchLines:bt,watching:Z,onToggleWatch:Pe})]})]})]})})}var me=A(ke(),1);var j=A(K(),1),Au="__unsorted__",Fh={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Wh(){return(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"\u2014"})}function fT(e){if(e===null||e==="")return(0,j.jsx)("span",{style:{color:"var(--text-tertiary)"},children:"never"});let t=Date.parse(e);return Number.isNaN(t)?(0,j.jsx)(Wh,{}):new Date(t).toLocaleString()}function mT({project:e,wire:t,onOpen:r,onUnbound:o}){let[n,i]=me.default.useState(!1),[a,l]=me.default.useState(null),[s,c]=me.default.useState(!1),[d,p]=me.default.useState(""),f=me.default.useRef(!1),g=async()=>{if(a===null||f.current)return;f.current=!0,c(!0),p("");let x=await t.unbindProject({path:a});if(c(!1),f.current=!1,x.unbound){i(!1),l(null),o();return}p("No binding matched that folder \u2014 capture is unchanged.")};return(0,j.jsxs)("div",{"data-testid":"project-row","data-project-id":e.projectId,style:{...Fh,display:"flex",flexDirection:"column",gap:10},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:e.name!==""?e.name:e.projectId}),(0,j.jsx)(q,{tone:"verified",mono:!0,dot:!0,children:"sourcing"}),(0,j.jsx)("span",{style:{flex:1}}),(0,j.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>r(e.projectId),"data-testid":"project-open",children:"Open"}),(0,j.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>i(x=>!x),"data-testid":"project-unbind",children:n?"Cancel":"Unbind"})]}),(0,j.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:8,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,j.jsx)(Uu,{label:"bound path",value:(0,j.jsx)(gT,{paths:e.boundPaths})}),(0,j.jsx)(Uu,{label:"git remote",value:e.remote!==""?e.remote:(0,j.jsx)(Wh,{})}),(0,j.jsx)(Uu,{label:"last capture",value:fT(e.lastCapture)}),(0,j.jsx)(Uu,{label:"memories / sessions",value:`${e.memoryCount} / ${e.sessionCount}`})]}),n&&(0,j.jsxs)("div",{"data-testid":"project-unbind-panel",style:{display:"flex",flexDirection:"column",gap:10,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Pick the folder to release. Unbind removes this device\u2019s binding (capture stops there); the project and its memories are kept."}),(0,j.jsx)(zw,{wire:t,onSelect:l,selected:a}),(0,j.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,j.jsx)(F,{variant:"danger",size:"sm",onClick:()=>{g()},disabled:s||a===null,"data-testid":"project-unbind-confirm",children:s?"\u2026":"Unbind this folder"}),d!==""&&(0,j.jsx)("span",{"data-testid":"project-unbind-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-warning)"},children:d})]})]})]})}function gT({paths:e}){return e.length===0?(0,j.jsx)(Wh,{}):(0,j.jsx)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map(t=>(0,j.jsx)("span",{title:t,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t},t))})}function Uu({label:e,value:t}){return(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:t})]})}function vT({inbox:e}){return(0,j.jsxs)("div",{"data-testid":"inbox-row",style:{...Fh,display:"flex",alignItems:"center",gap:10,borderStyle:"dashed"},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-secondary)"},children:"(unsorted inbox)"}),(0,j.jsx)(q,{tone:"neutral",mono:!0,children:Au}),(0,j.jsx)("span",{style:{flex:1}}),(0,j.jsxs)("span",{"data-testid":"inbox-size",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["size ",e.sessionCount]})]})}function yT({onNew:e,onImport:t}){let[r,o]=me.default.useState(!1);return(0,j.jsxs)("div",{style:{position:"relative"},children:[(0,j.jsx)(F,{variant:"primary",size:"sm",onClick:()=>o(n=>!n),"data-testid":"add-menu-toggle",children:"+ Add"}),r&&(0,j.jsxs)("div",{"data-testid":"add-menu",style:{position:"absolute",right:0,top:38,zIndex:5,display:"flex",flexDirection:"column",minWidth:180,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md, 0 6px 24px rgba(0,0,0,0.18))",overflow:"hidden"},children:[(0,j.jsx)(ww,{label:"New folder",hint:"pick a folder to bind",onClick:()=>{o(!1),e()},testId:"add-new"}),(0,j.jsx)(ww,{label:"Import existing",hint:"from the cloud registry",onClick:()=>{o(!1),t()},testId:"add-import"})]})]})}function ww({label:e,hint:t,onClick:r,testId:o}){return(0,j.jsxs)("button",{type:"button","data-testid":o,onClick:r,style:{display:"flex",flexDirection:"column",gap:2,width:"100%",textAlign:"left",padding:"9px 12px",background:"transparent",border:"none",borderBottom:"1px solid var(--border-subtle)",cursor:"pointer"},children:[(0,j.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e}),(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:t})]})}function hT({wire:e,onClose:t,onImported:r}){let[o,n]=me.default.useState([]),[i,a]=me.default.useState(!1),[l,s]=me.default.useState(null),[c,d]=me.default.useState(null),[p,f]=me.default.useState(!1),[g,x]=me.default.useState(""),b=me.default.useRef(!1);me.default.useEffect(()=>{let v=!0;return(async()=>{let m=await e.scopeProjects({unbound:!0});v&&(n(m.filter(y=>y.projectId!==Au)),a(!0))})(),()=>{v=!1}},[e]);let w=me.default.useCallback(async()=>{if(l===null||c===null||b.current)return;b.current=!0,f(!0),x("");let v=await e.bindExistingProject({path:c,projectId:l});if(f(!1),b.current=!1,v.bound){r(v);return}x(v.error!==void 0&&v.error!==""?v.error:"Could not import that project.")},[l,c,e,r]);return(0,j.jsx)(xT,{title:"Import project from cloud",onClose:t,testId:"import-modal",children:(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"projects in this workspace not yet on this device"}),i?o.length===0?(0,j.jsx)("span",{"data-testid":"import-empty",style:{fontSize:13,color:"var(--text-tertiary)"},children:"Every registry project is already bound on this device. Nothing to import."}):(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:200,overflowY:"auto"},children:o.map(v=>(0,j.jsx)("button",{type:"button","data-testid":"import-project","data-project-id":v.projectId,onClick:()=>s(v.projectId),"aria-pressed":l===v.projectId,style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:l===v.projectId?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${l===v.projectId?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",cursor:"pointer",color:l===v.projectId?"var(--honey)":"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600},children:v.name!==""?v.name:v.projectId},v.projectId))}):(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),l!==null&&(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,j.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:["pick this device\u2019s folder for ",(0,j.jsx)("span",{style:{color:"var(--honey)"},children:l})]}),(0,j.jsx)(zw,{wire:e,onSelect:d,selected:c})]}),(0,j.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,j.jsx)(F,{variant:"primary",onClick:()=>{w()},disabled:p||l===null||c===null,"data-testid":"import-confirm",children:p?"Importing\u2026":"Import project"}),(0,j.jsx)(F,{variant:"ghost",onClick:t,disabled:p,children:"Cancel"}),g!==""&&(0,j.jsx)("span",{"data-testid":"import-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})})}function zw({wire:e,onSelect:t,selected:r}){let[o,n]=me.default.useState(""),[i,a]=me.default.useState(null),[l,s]=me.default.useState([]),[c,d]=me.default.useState(!1),p=me.default.useCallback(async f=>{let g=await e.fsBrowse(f);n(g.path),a(g.parent),s(g.children),d(!0)},[e]);return me.default.useEffect(()=>{p(void 0)},[p]),c&&o===""&&l.length===0?(0,j.jsxs)("span",{"data-testid":"folderselect-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["The folder browser isn\u2019t available \u2014 bind from your terminal: ",(0,j.jsx)("code",{style:{color:"var(--honey)"},children:"honeycomb project bind"})]}):(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,j.jsx)("span",{style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o!==""?o:"loading\u2026"}),(0,j.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>{p(i??void 0)},disabled:i===null,children:"\u2191 up"}),(0,j.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>t(o),disabled:o==="","data-testid":"folderselect-use",children:"Use this folder"})]}),(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:180,overflowY:"auto"},children:l.map(f=>(0,j.jsxs)("button",{type:"button","data-testid":"folderselect-row",onClick:()=>{p(f.path)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",textAlign:"left",padding:"8px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13},children:[(0,j.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:f.name}),f.isGitRepo&&(0,j.jsx)(q,{tone:"honey",mono:!0,children:"git"})]},f.path))}),r!==null&&(0,j.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)"},children:["selected: ",r]})]})}function xT({title:e,onClose:t,testId:r,children:o}){return(0,j.jsx)("div",{"data-testid":r,role:"dialog","aria-modal":"true","aria-label":e,onClick:t,style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"64px 16px",background:"rgba(0,0,0,0.45)"},children:(0,j.jsxs)("div",{onClick:n=>n.stopPropagation(),style:{width:"100%",maxWidth:560,maxHeight:"80vh",overflowY:"auto",padding:20,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,j.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:700,color:"var(--text-primary)",margin:0},children:e}),(0,j.jsx)("span",{style:{flex:1}}),(0,j.jsx)(F,{variant:"ghost",size:"sm",onClick:t,"aria-label":"close",children:"\u2715"})]}),o]})})}function Iw({wire:e}){let{scope:t,setScope:r}=pn(),[o,n]=me.default.useState([]),[i,a]=me.default.useState(!1),[l,s]=me.default.useState("none"),c=me.default.useCallback(async()=>{let b=await e.scopeProjects();n(b),a(!0)},[e]);me.default.useEffect(()=>{c()},[c]);let d=o.filter(b=>b.boundLocally&&b.projectId!==Au),p=o.find(b=>b.projectId===Au),f=me.default.useCallback(b=>{r({org:t.org,workspace:t.workspace,project:b})},[r,t.org,t.workspace]),g=me.default.useCallback(b=>{s("none"),c()},[c]),x=me.default.useCallback(b=>{s("none"),c()},[c]);return(0,j.jsxs)(Qe,{eyebrow:"projects",title:"Projects",right:(0,j.jsx)(yT,{onNew:()=>s("new"),onImport:()=>s("import")}),children:[l==="new"&&(0,j.jsxs)("div",{style:{...Fh,marginBottom:16},children:[(0,j.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)",marginBottom:10},children:"Add a project"}),(0,j.jsx)(Ou,{wire:e,onBound:g,onCancel:()=>s("none")})]}),l==="import"&&(0,j.jsx)(hT,{wire:e,onClose:()=>s("none"),onImported:x}),(0,j.jsxs)("div",{"data-testid":"projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:[i?d.length===0?(0,j.jsxs)("div",{"data-testid":"projects-empty",style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No active projects on this device yet. Use ",(0,j.jsx)("strong",{children:"+ Add"})," to bind a folder or import an existing project."]}):d.map(b=>(0,j.jsx)(mT,{project:b,wire:e,onOpen:f,onUnbound:()=>{c()}},b.projectId)):(0,j.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}),p!==void 0&&(0,j.jsx)(vT,{inbox:p})]})]})}var Pn=A(ke(),1);var Fu=A(ke(),1),Qt=A(K(),1),Si={width:640,height:200},mn={top:12,right:12,bottom:18,left:12};function Pw(e,t){return e.includes("net")?"var(--honey)":e.includes("infra")||e.includes("cost")?"var(--severity-info)":t?"var(--severity-warning)":"var(--verified)"}function bT(e){let t=0,r=0;for(let o of e)for(let n of o.points)n.cents<t&&(t=n.cents),n.cents>r&&(r=n.cents);return r===t&&(r=t+1),{min:t,max:r}}function ST(e){let t=Si.height-mn.top-mn.bottom,r=(0-e.min)/(e.max-e.min);return mn.top+t-r*t}function kT(e,t){let r=e.points;if(r.length===0)return"";let o=Si.width-mn.left-mn.right,n=Si.height-mn.top-mn.bottom,i=r.length>1?o/(r.length-1):0,a=t.max-t.min;return r.map((l,s)=>{let c=mn.left+s*i,d=Math.max(0,Math.min(1,(l.cents-t.min)/a)),p=mn.top+n-d*n;return`${c.toFixed(1)},${p.toFixed(1)}`}).join(" ")}function _T(){try{return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1}catch{return!1}}function Ew({trend:e}){let t=Fu.default.useMemo(()=>_T(),[]),[r,o]=Fu.default.useState(t);Fu.default.useEffect(()=>{if(t)return;let l=requestAnimationFrame(()=>o(!0));return()=>cancelAnimationFrame(l)},[t]);let n=e.series.some(l=>l.points.length>0);if(e.status==="absent"||!n)return(0,Qt.jsx)("div",{"data-testid":"roi-trend-empty",style:{padding:"28px 8px",textAlign:"center",fontSize:13,color:"var(--text-tertiary)"},children:e.startedAt!==""?`Savings tracked from ${e.startedAt}.`:"No trend history yet."});let i=bT(e.series),a=ST(i);return(0,Qt.jsxs)("div",{"data-testid":"roi-trend-chart",children:[(0,Qt.jsxs)("svg",{viewBox:`0 0 ${Si.width} ${Si.height}`,style:{width:"100%",height:200,display:"block"},role:"img","aria-label":"ROI trend over time",children:[(0,Qt.jsx)("line",{x1:mn.left,y1:a,x2:Si.width-mn.right,y2:a,stroke:"var(--border-subtle)",strokeWidth:"1"}),e.series.map(l=>{let s=kT(l,i);if(s==="")return null;let c=Pw(l.label,l.modeled);return(0,Qt.jsx)("polyline",{"data-testid":`roi-trend-series-${l.label}`,"data-modeled":l.modeled?"true":"false",points:s,fill:"none",stroke:c,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:l.modeled?"5 4":void 0,style:{opacity:r?1:0,transition:t?void 0:"opacity var(--dur-base) var(--ease-out)"}},l.label)})]}),(0,Qt.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:14,marginTop:8},children:e.series.map(l=>(0,Qt.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,Qt.jsx)("svg",{width:22,height:8,"aria-hidden":"true",style:{flex:"none"},children:(0,Qt.jsx)("line",{x1:1,y1:4,x2:21,y2:4,stroke:Pw(l.label,l.modeled),strokeWidth:"2",strokeDasharray:l.modeled?"4 3":void 0})}),(0,Qt.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:[l.label,l.modeled?" (est.)":""]})]},l.label))})]})}var C=A(K(),1),$T="#/settings",wT=6e4,zT=15e3,IT="30d",PT=["7d","30d","90d"],Wu="\u2014";function En(e,t=!1){let r=e<0?"-":"",o=Math.abs(e)/100,n=`${r}$${o.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`;return t?`~${n} est.`:n}function ET(e){return e===null?Wu:`$${(e/100).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}/Mtok`}function Rw(e){return e?"warning":"verified"}function RT(e){return e?"var(--text-secondary)":"var(--text-primary)"}function jw(e){return e<0?"var(--severity-critical)":"var(--verified)"}function Zh(e){return e==="allocated"}function CT(e){return e>0?"var(--severity-critical)":e<0?"var(--verified)":"var(--text-tertiary)"}function ki({children:e,color:t="var(--text-tertiary)"}){return(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:t},children:e})}function TT({assumption:e}){let[t,r]=Pn.default.useState(!1),o=e.assumptionText!==""?e.assumptionText:"Assumption not yet provided.";return(0,C.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,C.jsx)("button",{type:"button","data-testid":"assumption-info","aria-label":"modeled assumption","aria-expanded":t,onClick:()=>r(n=>!n),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onFocus:()=>r(!0),onBlur:()=>r(!1),style:{width:16,height:16,padding:0,borderRadius:"var(--radius-full)",border:"1px solid var(--border-strong)",background:"transparent",color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",fontSize:10,lineHeight:1,cursor:"pointer"},children:"i"}),t&&(0,C.jsxs)("span",{role:"tooltip","data-testid":"assumption-popover",style:{position:"absolute",top:22,left:0,zIndex:5,width:260,padding:"8px 10px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md)",fontSize:12,lineHeight:"16px",color:"var(--text-secondary)"},children:[o,!e.signedOff&&(0,C.jsx)("span",{style:{display:"block",marginTop:4,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:"provisional \u2014 not yet signed off"})]})]})}function Cw({label:e,cents:t,modeled:r,dash:o,indent:n,tone:i,toneLabel:a,trailing:l,testid:s}){return(0,C.jsxs)("div",{"data-testid":s,style:{display:"flex",alignItems:"center",gap:10,padding:"10px 6px",paddingLeft:n?22:6,borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)("span",{style:{fontSize:14,color:n?"var(--text-secondary)":"var(--text-primary)"},children:e}),(0,C.jsx)(q,{tone:i,mono:!0,children:a}),l,(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{"data-testid":`${s}-figure`,"data-modeled":r?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:n?15:17,fontWeight:700,color:o?"var(--text-tertiary)":RT(r)},children:o?Wu:En(t,r)})]})}function Mh(e){return e==="absent"||e==="unreachable"||e==="unauthenticated"}function jT({net:e,onRetry:t,retrying:r}){let o=e.computed&&e.status==="ok",n=Zh(e.costBasis);return(0,C.jsx)(le,{title:"Net ROI",eyebrow:e.modeled?"saved \u2212 (infra + pollination) \xB7 est.":"saved \u2212 (infra + pollination)",children:(0,C.jsxs)("div",{"data-testid":"net-hero",style:{display:"flex",alignItems:"center",gap:16,padding:"14px 6px",flexWrap:"wrap"},children:[(0,C.jsx)("span",{"data-testid":"net-figure","data-computed":o?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:40,fontWeight:800,lineHeight:1,letterSpacing:"-0.02em",color:o?jw(e.netCents):"var(--text-tertiary)"},children:o?En(e.netCents,!0):Wu}),o?(0,C.jsx)(q,{tone:"warning",mono:!0,children:"est."}):e.status==="unreachable"?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ki,{children:"net not computed - billing is unreachable"}),(0,C.jsx)(F,{variant:"ghost",size:"sm","data-testid":"net-retry",disabled:r,onClick:t,children:r?"retrying...":"Retry"})]}):(0,C.jsx)(ki,{children:"net not computed yet"}),o&&n&&(0,C.jsx)(ki,{children:"includes an allocated (estimated) infra share"})]})})}function OT(){return(0,C.jsx)("span",{"data-testid":"claude-code-only",style:{marginLeft:4,display:"inline-flex"},children:(0,C.jsx)(q,{tone:"info",children:"Claude Code only"})})}function DT({savings:e}){let t=Mh(e.status);return(0,C.jsx)(le,{title:"Savings",eyebrow:"measured cache \xB7 modeled memory injection",right:e.status==="partial"?(0,C.jsx)(OT,{}):void 0,children:(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,C.jsx)(Cw,{testid:"savings-measured",label:"Measured cache savings",cents:e.measuredCents,modeled:!1,dash:t,tone:Rw(!1),toneLabel:"measured"}),(0,C.jsx)(Cw,{testid:"savings-modeled",label:"Modeled memory-injection savings",cents:e.modeledCents,modeled:!0,dash:t,indent:!0,tone:Rw(!0),toneLabel:"modeled",trailing:(0,C.jsx)(TT,{assumption:e.assumption})}),(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)(ki,{children:"blended rate"}),(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{"data-testid":"blended-rate",style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:ET(e.blendedCentsPerMtok)})]})]})})}function Tw({label:e,cents:t,deltaCents:r,dash:o,testid:n}){return(0,C.jsxs)("div",{"data-testid":n,style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,C.jsx)("span",{"data-testid":`${n}-figure`,style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:o?"var(--text-tertiary)":"var(--text-primary)",letterSpacing:"-0.01em"},children:o?Wu:En(t)}),!o&&r!==void 0&&r!==0&&(0,C.jsxs)("span",{"data-testid":`${n}-delta`,style:{fontFamily:"var(--font-mono)",fontSize:12,color:CT(r)},children:[r>0?"\u25B2":"\u25BC"," ",En(Math.abs(r))," vs prior period"]})]})}function NT({infraCents:e,infraDash:t,infraBasis:r,pollinationCents:o,pollinationDash:n,pollinationLines:i,infraDeltaCents:a}){return(0,C.jsxs)(le,{title:"Cost",eyebrow:"infra \xB7 pollination",children:[(0,C.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12,marginBottom:6},children:[(0,C.jsx)(Tw,{testid:"infra-kpi",label:Zh(r)?"Infra (allocated, est.)":"Infra cost",cents:e,deltaCents:a,dash:t}),(0,C.jsx)(Tw,{testid:"pollination-kpi",label:"Pollination cost",cents:o,dash:n})]}),(0,C.jsx)("div",{"data-testid":"pollination-lines",children:n||i.length===0?(0,C.jsx)("div",{style:{padding:"10px 6px",fontSize:13,color:"var(--text-tertiary)"},children:n?"Pollination cost unavailable.":"No pollination contributors yet."}):i.map((l,s)=>(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)(ki,{children:l.label}),(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:En(l.cents)})]},l.label||s))})]})}function Ow({label:e,active:t,onClick:r,testid:o}){return(0,C.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{height:30,padding:"0 12px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:12,fontWeight:600,cursor:"pointer"},children:e})}var LT=["org","team","agent","project"];function UT({rollup:e,perUserAvailable:t}){return e.dimension==="agent"&&!t?(0,C.jsx)("div",{"data-testid":`rollup-${e.dimension}`,children:(0,C.jsx)("div",{"data-testid":"per-user-empty",style:{marginTop:10,padding:"10px 12px",background:"var(--severity-info-bg)",border:"1px solid var(--severity-info)",borderRadius:"var(--radius-md)"},children:(0,C.jsx)(ki,{color:"var(--severity-info)",children:"Per-user requires verified login - sign in to attribute ROI per person."})})}):(0,C.jsxs)("div",{"data-testid":`rollup-${e.dimension}`,children:[e.mixedBasis&&(0,C.jsx)("div",{"data-testid":"mixed-basis-caption",style:{padding:"8px 6px",marginBottom:4,fontSize:12,color:"var(--severity-warning)",fontFamily:"var(--font-mono)"},children:"mixed measured + allocated \u2014 rows are not summed into one net"}),e.rows.length===0?(0,C.jsxs)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e.dimension," rows yet."]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,padding:"4px 6px 8px"},children:["","saved","infra","net"].map((r,o)=>(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:o===0?"left":"right"},children:r},o))}),e.rows.map((r,o)=>{let n=Zh(r.costBasis);return(0,C.jsxs)("div",{"data-testid":`rollup-row-${e.dimension}-${r.key}`,style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,alignItems:"center",padding:"9px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,C.jsx)("span",{style:{fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.label||r.key}),n&&(0,C.jsx)("span",{"data-testid":`rollup-allocated-${r.key}`,style:{display:"inline-flex"},children:(0,C.jsx)(q,{tone:"warning",mono:!0,children:"allocated est."})})]}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:En(r.measuredSavingsCents)}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:n?"var(--text-secondary)":"var(--text-primary)",textAlign:"right"},children:n?En(r.infraCostCents,!0):En(r.infraCostCents)}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:jw(r.netCents),textAlign:"right"},children:n?En(r.netCents,!0):En(r.netCents)})]},r.key||o)})]})]})}function AT({rollups:e,perUserAvailable:t}){let r=LT.filter(l=>e.some(s=>s.dimension===l)),[o,n]=Pn.default.useState(r[0]??"org"),i=r.includes(o)?o:r[0]??"org",a=e.find(l=>l.dimension===i);return(0,C.jsx)(le,{title:"Rollups",eyebrow:"org \xB7 team \xB7 agent \xB7 project",right:(0,C.jsx)("div",{style:{display:"flex",gap:6},children:r.map(l=>(0,C.jsx)(Ow,{testid:`rollup-tab-${l}`,label:l,active:l===i,onClick:()=>n(l)},l))}),children:r.length===0||a===void 0?(0,C.jsx)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:"No rollups yet."}):(0,C.jsx)(UT,{rollup:a,perUserAvailable:t})})}function FT(){return(0,C.jsx)(le,{title:"ROI ledger",eyebrow:"locked",children:(0,C.jsxs)("div",{"data-testid":"auth-gate",style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,padding:"20px 8px"},children:[(0,C.jsx)("span",{"data-testid":"auth-redacted-status",style:{display:"inline-flex"},children:(0,C.jsx)(q,{tone:"neutral",mono:!0,dot:!0,children:"not connected"})}),(0,C.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)",maxWidth:460},children:"Connect Honeycomb to read the shared ROI ledger. The dashboard never holds your credentials \u2014 the daemon is the sole egress."}),(0,C.jsx)(F,{variant:"primary",size:"sm","data-testid":"auth-settings-cta",onClick:()=>{window.location.hash=$T},children:"Open Settings"})]})})}function Dw({wire:e}){let{scope:t}=pn(),r=t.project,[o,n]=Pn.default.useState(vu),[i,a]=Pn.default.useState(yu),[l,s]=Pn.default.useState(IT),[c,d]=Pn.default.useState(!1),p=Pn.default.useCallback(async()=>{let b=await e.roi(r);n(b)},[e,r]);gi(p,wT),gi(p,zT),Pn.default.useEffect(()=>{let b=!0;return(async()=>{let w=await e.roiTrend(l,r);b&&a(w)})(),()=>{b=!1}},[e,l,r]);let f=Pn.default.useCallback(async()=>{d(!0);try{await p();let b=await e.roiTrend(l,r);a(b)}finally{d(!1)}},[p,e,l,r]),g=o.savings.status==="unauthenticated"||o.net.status==="unauthenticated",x=o.scopedAcrossDevices?"across devices":"this device";return(0,C.jsx)(Qe,{title:"ROI",eyebrow:`net-roi ledger \xB7 ${x}`,children:g?(0,C.jsx)(FT,{}):(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,C.jsx)(jT,{net:o.net,onRetry:()=>{f()},retrying:c}),(0,C.jsx)(DT,{savings:o.savings}),(0,C.jsx)(NT,{infraCents:o.infra.cents,infraDash:Mh(o.infra.status),infraBasis:o.infra.costBasis,pollinationCents:o.pollination.cents,pollinationDash:Mh(o.pollination.status),pollinationLines:o.pollination.lines}),(0,C.jsx)(le,{title:"Trend",eyebrow:"measured (solid) \xB7 modeled (dashed)",right:(0,C.jsx)("div",{style:{display:"flex",gap:6},children:PT.map(b=>(0,C.jsx)(Ow,{testid:`trend-range-${b}`,label:b,active:b===l,onClick:()=>s(b)},b))}),children:(0,C.jsx)(Ew,{trend:i})}),(0,C.jsx)(AT,{rollups:o.rollups,perUserAvailable:o.perUserAvailable}),(0,C.jsxs)("div",{"data-testid":"assumption-footnote",style:{marginTop:4,padding:"12px 6px",borderTop:"1px solid var(--border-subtle)",fontSize:12,lineHeight:"18px",color:"var(--text-tertiary)"},children:[(0,C.jsx)("span",{style:{fontWeight:600,color:"var(--text-secondary)"},children:"Modeled estimate assumption: "}),o.savings.assumption.assumptionText!==""?o.savings.assumption.assumptionText:"Assumption not yet provided.",o.ratesAsOf!==""&&(0,C.jsxs)("span",{style:{marginLeft:8,fontFamily:"var(--font-mono)"},children:["\xB7 rates as of ",o.ratesAsOf]})]})]})})}var ut=A(ke(),1);var Nw=Object.freeze([{symbol:"a",configPath:"memory.lifecycle.activationExponent",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_EXPONENT",defaultValue:"1",effect:"exponent on the activation/freshness term A^a"},{symbol:"c",configPath:"memory.lifecycle.confidenceExponent",envOverride:"HONEYCOMB_LIFECYCLE_CONFIDENCE_EXPONENT",defaultValue:"0",effect:"exponent on the calibrated-confidence term C^c (dormant until calibrated)"},{symbol:"s",configPath:"memory.lifecycle.stalenessExponent",envOverride:"HONEYCOMB_LIFECYCLE_STALENESS_EXPONENT",defaultValue:"0",effect:"exponent on the staleness term (1 \u2212 \u03C3)^s (0 under observe)"},{symbol:"h(memories)",configPath:"memory.lifecycle.halfLifeDaysByClass.memories",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORIES_DAYS",defaultValue:"180 d",effect:"shapes A for distilled facts (slower decay)"},{symbol:"h(memory)",configPath:"memory.lifecycle.halfLifeDaysByClass.memory",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORY_DAYS",defaultValue:"45 d",effect:"shapes A for session summaries"},{symbol:"h(sessions)",configPath:"memory.lifecycle.halfLifeDaysByClass.sessions",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_SESSIONS_DAYS",defaultValue:"10 d",effect:"shapes A for raw dialogue (fastest decay)"},{symbol:"d",configPath:"memory.lifecycle.actrDecay",envOverride:"HONEYCOMB_LIFECYCLE_ACTR_DECAY",defaultValue:"0.5",effect:"ACT-R decay shaping A (Stage 2)"},{symbol:"A_min",configPath:"memory.lifecycle.activationFloor",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_FLOOR",defaultValue:"0.05",effect:"clamps A so a cold memory keeps a sliver of salience"},{symbol:"h_verify",configPath:"memory.lifecycle.verificationHalfLifeDays",envOverride:"HONEYCOMB_LIFECYCLE_VERIFICATION_HALFLIFE_DAYS",defaultValue:"14 d",effect:"shapes \u03C3 via the verification-freshness factor v(m,t)"},{symbol:"\u03B8_detect",configPath:"memory.lifecycle.contradictionThreshold",envOverride:"HONEYCOMB_LIFECYCLE_CONTRADICTION_THRESHOLD",defaultValue:"0.6",effect:"gates conflict detection (Contra > \u03B8_detect)"},{symbol:"\u03B3",configPath:"memory.lifecycle.corroborationWeight",envOverride:"HONEYCOMB_LIFECYCLE_CORROBORATION_WEIGHT",defaultValue:"0.5",effect:"shapes the conflict vote weight w_i"},{symbol:"\u03C4_supersede",configPath:"memory.lifecycle.supersedeMargin",envOverride:"HONEYCOMB_LIFECYCLE_SUPERSEDE_MARGIN",defaultValue:"0.5",effect:"conflict verdict cut (margin \u2265 \u03C4_supersede \u2192 supersede)"},{symbol:"\u03C4_review",configPath:"memory.lifecycle.reviewMargin",envOverride:"HONEYCOMB_LIFECYCLE_REVIEW_MARGIN",defaultValue:"0.15",effect:"conflict verdict cut (\u03C4_review \u2264 margin < \u03C4_supersede \u2192 review)"},{symbol:"\u03C1",configPath:"memory.lifecycle.openConflictSuppression",envOverride:"HONEYCOMB_LIFECYCLE_OPEN_CONFLICT_SUPPRESSION",defaultValue:"0",effect:"\u03BA for the open-conflict loser (0 fully suppress, reversible)"},{symbol:"auto-resolve",configPath:"memory.lifecycle.conflictAutoResolve",envOverride:"HONEYCOMB_LIFECYCLE_CONFLICT_AUTORESOLVE",defaultValue:"false",effect:"when off, conflicts are detected + queued only (human-in-the-loop)"},{symbol:"posture",configPath:"memory.lifecycle.staleRefPosture",envOverride:"HONEYCOMB_LIFECYCLE_STALEREF_POSTURE",defaultValue:"observe",effect:"observe (s = 0, inert) vs execute (s > 0, demote)"}]);var V=A(K(),1),WT=5e3;function oo({label:e,children:t}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,V.jsx)("span",{style:{flex:1}}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function MT(e){return e==="env"?"via HONEYCOMB_TOKEN":e==="file"?"saved login (~/.deeplake)":"none"}function ZT(e){return typeof e!="number"||!Number.isFinite(e)?"expiry unknown":new Date(e*1e3).toISOString()}function BT(){return(0,V.jsxs)("div",{"data-testid":"auth-connect",style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 6px"},children:[(0,V.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Connect to DeepLake from your terminal, then this page reflects it:"}),(0,V.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:"honeycomb login"}),(0,V.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"or, headless (CI / a server):"}),(0,V.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:"HONEYCOMB_TOKEN=\u2026 honeycomb \u2026"})]})}function VT({wire:e}){let[t,r]=ut.default.useState(hh),[o,n]=ut.default.useState(!0),i=ut.default.useCallback(async()=>{let a=await e.authStatus();r(a),n(!1)},[e]);return ut.default.useEffect(()=>{let a=!0,l=async()=>{a&&await i()};l();let s=setInterval(()=>{l()},WT),c=()=>{l()};return typeof window<"u"&&window.addEventListener("focus",c),()=>{a=!1,clearInterval(s),typeof window<"u"&&window.removeEventListener("focus",c)}},[i]),(0,V.jsx)(le,{title:"DeepLake",eyebrow:"auth \xB7 org \xB7 workspace",right:(0,V.jsx)(q,{tone:t.connected?"verified":"neutral",mono:!0,dot:!0,children:t.connected?"connected":"not connected"}),children:o?(0,V.jsx)("div",{"data-testid":"auth-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):t.connected?(0,V.jsxs)("div",{"data-testid":"auth-connected",children:[(0,V.jsx)(oo,{label:"org",children:t.orgName||t.orgId||"\u2014"}),(0,V.jsx)(oo,{label:"org id",children:t.orgId||"\u2014"}),(0,V.jsx)(oo,{label:"workspace",children:t.workspace||"\u2014"}),(0,V.jsx)(oo,{label:"agent",children:t.agentId||"\u2014"}),(0,V.jsx)(oo,{label:"source",children:MT(t.source)}),(0,V.jsx)(oo,{label:"last login",children:t.savedAt||"unknown"}),(0,V.jsx)(oo,{label:"token expiry",children:ZT(t.expiresAt)})]}):(0,V.jsxs)("div",{"data-testid":"auth-disconnected",children:[(0,V.jsx)("div",{style:{padding:"8px 6px",fontSize:14,color:"var(--text-primary)"},children:"Not connected to DeepLake."}),(0,V.jsx)(BT,{})]})})}var HT=[{id:"anthropic",label:"Anthropic (Claude)"},{id:"openai",label:"OpenAI (ChatGPT)"},{id:"openrouter",label:"OpenRouter"},{id:"cohere",label:"Cohere"}];function JT({id:e,label:t,present:r,onSave:o}){let[n,i]=ut.default.useState(""),[a,l]=ut.default.useState(!1),[s,c]=ut.default.useState(!1),d=ut.default.useCallback(async()=>{let p=n;if(p.length===0){c(!0);return}l(!0),c(!1);let f=await o(e,p);l(!1),f?i(""):c(!0)},[n,e,o]);return(0,V.jsxs)("div",{"data-testid":`provider-row-${e}`,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,V.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:t}),(0,V.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,V.jsx)(sn,{type:"password",mono:!0,size:"sm",value:n,placeholder:r?"replace key\u2026":"paste key\u2026",onChange:p=>{i(p.target.value),s&&c(!1)},onKeyDown:p=>{p.key==="Enter"&&d()},"data-testid":`provider-input-${e}`})}),(0,V.jsx)(F,{variant:"primary",size:"sm",disabled:a,"data-testid":`provider-save-${e}`,onClick:()=>{d()},children:a?"saving\u2026":"Save key"}),(0,V.jsx)(q,{tone:r?"verified":"neutral",mono:!0,dot:!0,children:r?"key set \u2713":"not set"}),s&&(0,V.jsx)("span",{"data-testid":`provider-rejected-${e}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]})}function GT({wire:e,secretNames:t,onSaved:r}){let o=ut.default.useCallback(async(n,i)=>{let a=zu[n];if(a===void 0)return!1;let l=await e.setSecret(a,i);return l&&r(),l},[e,r]);return(0,V.jsx)(le,{title:"Provider keys",eyebrow:"write-only \xB7 names-only presence",children:(0,V.jsx)("div",{"data-testid":"provider-keys",children:HT.map(n=>{let i=zu[n.id]??"",a=i!==""&&t.includes(i);return(0,V.jsx)(JT,{id:n.id,label:n.label,present:a,onSave:o},n.id)})})})}var XT=[{value:"",label:"default (semantic when embeddings on)"},{value:"keyword",label:"keyword \u2014 lexical only"},{value:"semantic",label:"semantic \u2014 vector (fallback when off)"},{value:"hybrid",label:"hybrid \u2014 both arms"}];function KT({value:e,onChange:t}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,V.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,V.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Search mode"}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"recall channels"})]}),(0,V.jsx)("span",{style:{flex:1}}),(0,V.jsx)("select",{"aria-label":"search mode",value:e,onChange:r=>t(r.target.value),"data-testid":"recall-mode-select",style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:220},children:XT.map(r=>(0,V.jsx)("option",{value:r.value,children:r.label},r.value))})]})}function YT({settings:e,catalog:t,secretNames:r,onSave:o}){let n=String(e[dn.recallMode]??"");return(0,V.jsx)(le,{title:"Search & inference",eyebrow:"recall mode \xB7 provider \xB7 model \xB7 pollinating",children:(0,V.jsxs)("div",{"data-testid":"search-inference",children:[(0,V.jsx)(KT,{value:n,onChange:i=>{o(dn.recallMode,i)}}),(0,V.jsx)("div",{style:{marginTop:8},children:(0,V.jsx)(Iu,{catalog:t,settings:e,secretNames:r,onSave:o})})]})})}function QT({symbol:e,configPath:t,envOverride:r,defaultValue:o,effect:n}){return(0,V.jsxs)("div",{"data-testid":"lifecycle-flag","data-config-path":t,style:{display:"flex",flexDirection:"column",gap:2,padding:"8px 0",borderBottom:"1px solid var(--border-subtle)"},children:[(0,V.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline",flexWrap:"wrap"},children:[(0,V.jsx)(q,{tone:"honey",mono:!0,children:e}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t}),(0,V.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["default: ",o]})]}),(0,V.jsx)("div",{style:{fontSize:12,color:"var(--text-tertiary)"},children:n}),(0,V.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:["env: ",r]})]})}function qT(){return(0,V.jsx)(le,{title:"Memory lifecycle",eyebrow:"memory.lifecycle.* \xB7 symbol \xB7 default \xB7 effect",children:(0,V.jsxs)("div",{"data-testid":"lifecycle-config-reference",style:{display:"flex",flexDirection:"column"},children:[(0,V.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",marginBottom:8},children:"Precedence: HONEYCOMB_LIFECYCLE_* env > agent.yaml memory.lifecycle.* > the documented default. Defaults are non-destructive \u2014 a = 1, c = 0, s = 0 (posture observe), auto-resolve off."}),Nw.map(e=>(0,V.jsx)(QT,{...e},e.configPath))]})})}function Lw({wire:e}){let[t,r]=ut.default.useState(Qa),[o,n]=ut.default.useState([]),i=ut.default.useCallback(async()=>{r(await e.vaultSettings())},[e]),a=ut.default.useCallback(async()=>{n(await e.secretNames())},[e]);ut.default.useEffect(()=>{i(),a()},[i,a]);let l=ut.default.useCallback(async(s,c)=>{let d=await e.setSetting(s,c);return await i(),d},[e,i]);return(0,V.jsx)(Qe,{title:"Settings",eyebrow:"deeplake \xB7 provider keys \xB7 search mode",children:(0,V.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,V.jsx)(VT,{wire:e}),(0,V.jsx)(GT,{wire:e,secretNames:o,onSaved:()=>{a()}}),(0,V.jsx)(YT,{settings:t.settings,catalog:t.catalog,secretNames:o,onSave:l}),(0,V.jsx)(qT,{})]})})}var gn=A(ke(),1);var H=A(K(),1),ej=5e3,al=12;function Mu(e,t){return`${e}:${t}`}function _i({label:e,children:t}){return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,H.jsx)("span",{style:{flex:1}}),(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function Aw({state:e}){let t=Ih[e]??"neutral";return(0,H.jsx)(q,{tone:t,mono:!0,dot:!0,children:e})}function tj({row:e,flight:t,onAction:r}){let o=t!==void 0,n=(i,a)=>t===i?`${a}\u2026`:a;return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[e.state==="local"&&(0,H.jsx)(F,{variant:"primary",size:"sm",disabled:o,"data-testid":`promote-${e.assetType}-${e.name}`,onClick:()=>r("promote",e),children:n("promote","Promote")}),e.state==="shared"&&(0,H.jsx)(F,{variant:"secondary",size:"sm",disabled:o,"data-testid":`pull-${e.assetType}-${e.name}`,onClick:()=>r("pull",e),children:n("pull","Pull")}),e.state==="shared"&&(0,H.jsx)(F,{variant:"ghost",size:"sm",disabled:o,"data-testid":`enable-${e.assetType}-${e.name}`,onClick:()=>r("enable",e),children:n("enable","Enable")}),(e.state==="shared"||e.state==="pulled")&&(0,H.jsx)(F,{variant:"danger",size:"sm",disabled:o||!e.authoredByMe,title:e.authoredByMe?"Demote (tombstone) this asset":"Only the author can demote this asset","data-testid":`demote-${e.assetType}-${e.name}`,onClick:()=>r("demote",e),children:n("demote","Demote")}),(e.state==="local"||e.state==="pulled")&&(0,H.jsx)(F,{variant:"ghost",size:"sm",disabled:o,"data-testid":`disable-${e.assetType}-${e.name}`,onClick:()=>r("disable",e),children:n("disable","Disable")}),o&&(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"in-flight\u2026"})]})}function nj({row:e}){return(0,H.jsx)("div",{"data-testid":`detail-${e.assetType}-${e.name}`,style:{marginTop:4},children:(0,H.jsxs)(le,{title:e.name,eyebrow:e.assetType,style:{marginBottom:4},children:[e.description!==""&&(0,H.jsx)("div",{style:{fontSize:13,color:"var(--text-secondary)",padding:"4px 6px 8px",lineHeight:"19px"},children:e.description}),(0,H.jsx)(_i,{label:"state",children:(0,H.jsx)(Aw,{state:e.state})}),(0,H.jsx)(_i,{label:"provenance",children:e.sourceHarness||"\u2014"}),(0,H.jsx)(_i,{label:"scope",children:e.scope||"\u2014"}),(0,H.jsx)(_i,{label:"source harness",children:e.sourceHarness||"\u2014"}),(0,H.jsx)(_i,{label:"tier / style",children:e.tier!==""?`${e.tier} / ${e.style}`:"\u2014"}),(0,H.jsx)(_i,{label:"version",children:e.version>0?`v${e.version}`:"\u2014"})]})})}function rj({row:e,open:t,flight:r,onToggle:o,onAction:n}){return(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,H.jsxs)("button",{type:"button","data-testid":`row-${e.assetType}-${e.name}`,onClick:()=>o(e),style:{display:"flex",alignItems:"center",gap:8,background:"transparent",border:"none",padding:0,cursor:"pointer",minWidth:0,flex:"1 1 200px",textAlign:"left"},children:[(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),(0,H.jsx)(Aw,{state:e.state}),e.version>0&&(0,H.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["v",e.version]})]}),(0,H.jsx)(tj,{row:e,flight:r,onAction:n})]}),t&&(0,H.jsx)(nj,{row:e})]})}function oj({kind:e,rows:t,openKey:r,inFlight:o,onToggle:n,onAction:i}){return(0,H.jsx)(le,{title:e==="skill"?"Skills":"Agents",eyebrow:`${t.length} ${e==="skill"?"skills":"agents"}`,children:t.length===0?(0,H.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e==="skill"?"skills":"agents"," found."]}):(0,H.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(l=>(0,H.jsx)(rj,{row:l,open:r===Mu(e,l.name),flight:o[Mu(e,l.name)],onToggle:n,onAction:i},`${l.assetType}:${l.name}`))})})}function Bh({label:e,value:t,tone:r}){return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px"},children:[(0,H.jsx)(q,{tone:r,mono:!0,children:t}),(0,H.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:e})]})}function ij(e){let t=0,r=0,o=0;for(let n of[...e.skills,...e.agents])n.state==="shared"?t++:n.state==="local"?r++:n.state==="pulled"&&o++;return{shared:t,local:r,pulled:o}}function aj({view:e}){let t=ij(e);return(0,H.jsx)(le,{title:"Sync state",eyebrow:"per scope",children:(0,H.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:18},children:[(0,H.jsx)(Bh,{label:"shared with team",value:t.shared,tone:"verified"}),(0,H.jsx)(Bh,{label:"local only",value:t.local,tone:"neutral"}),(0,H.jsx)(Bh,{label:"pulled",value:t.pulled,tone:"honey"})]})})}function lj(e){return e.filter(ku).slice(-al).reverse().map(t=>{let r=Pr(t),o=F0(t);return o!==""?`${r} \xB7 ${o}`:r})}function sj(e,t){if(!ku(t))return e;let r=[...e,t];return r.length>al?r.slice(-al):r}function Fw({wire:e}){let{scope:t}=pn(),r=t.project,[o,n]=gn.default.useState(hu),[i,a]=gn.default.useState([]),[l,s]=gn.default.useState("skill"),[c,d]=gn.default.useState(null),[p,f]=gn.default.useState({});gn.default.useEffect(()=>{if(r===void 0){n(hu);return}let v=!0,m=async()=>{let S=await e.assetsView();v&&n(S)};m();let y=setInterval(()=>{m()},ej);return()=>{v=!1,clearInterval(y)}},[e,r]),gn.default.useEffect(()=>{let v=!0;(async()=>{let y=await e.logs(al*6);v&&a(y.filter(ku).slice(-al))})();let m=e.logsStream(y=>{v&&a(S=>sj(S,y))});return()=>{v=!1,m()}},[e]);let g=gn.default.useMemo(()=>lj(i),[i]),x=gn.default.useCallback(v=>{let m=Mu(v.assetType,v.name);d(y=>y===m?null:m)},[]),b=gn.default.useCallback((v,m)=>{let y=Mu(m.assetType,m.name);f(S=>({...S,[y]:v})),(async()=>{try{await e.syncAction(v,{assetType:m.assetType,name:m.name,honeycombId:m.honeycombId!==""?m.honeycombId:void 0}),n(await e.assetsView())}finally{f(S=>{let _={...S};return delete _[y],_})}})()},[e]),w=l==="skill"?o.skills:o.agents;return(0,H.jsx)(Qe,{title:"Sync",eyebrow:r===void 0?"sync":`${o.skills.length+o.agents.length} assets`,children:r===void 0?(0,H.jsx)(yi,{surface:"sync state"}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(aj,{view:o}),(0,H.jsx)("div",{style:{height:16}}),(0,H.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,H.jsx)(Uw,{label:"Skills",active:l==="skill",count:o.skills.length,onClick:()=>s("skill")}),(0,H.jsx)(Uw,{label:"Agents",active:l==="agent",count:o.agents.length,onClick:()=>s("agent")})]}),(0,H.jsx)(oj,{kind:l,rows:w,openKey:c,inFlight:p,onToggle:x,onAction:b}),(0,H.jsx)("div",{style:{height:16}}),(0,H.jsx)(Er,{lines:g})]})})}function Uw({label:e,active:t,count:r,onClick:o}){return(0,H.jsxs)("button",{type:"button","data-testid":`tab-${e.toLowerCase()}`,"aria-pressed":t,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:[e,(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:r})]})}var ue=A(K(),1);function Gn({children:e}){return(0,ue.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:e})}var cj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("rect",{x:3,y:3,width:7,height:7}),(0,ue.jsx)("rect",{x:14,y:3,width:7,height:7}),(0,ue.jsx)("rect",{x:3,y:14,width:7,height:7}),(0,ue.jsx)("rect",{x:14,y:14,width:7,height:7})]}),uj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("rect",{x:3,y:4,width:18,height:16,rx:2}),(0,ue.jsx)("path",{d:"M7 9l3 3-3 3"}),(0,ue.jsx)("path",{d:"M13 15h4"})]}),dj=(0,ue.jsx)(Gn,{children:(0,ue.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),pj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("path",{d:"M12 3l7 4v8l-7 4-7-4V7z"}),(0,ue.jsx)("path",{d:"M12 8v8"})]}),fj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("circle",{cx:6,cy:6,r:2.5}),(0,ue.jsx)("circle",{cx:18,cy:9,r:2.5}),(0,ue.jsx)("circle",{cx:9,cy:18,r:2.5}),(0,ue.jsx)("path",{d:"M8 7.5l8 1.5M8 16l1-7.5"})]}),mj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7"}),(0,ue.jsx)("path",{d:"M21 4v4h-4"})]}),gj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("rect",{x:4,y:3,width:16,height:18,rx:2}),(0,ue.jsx)("path",{d:"M8 8h8M8 12h8M8 16h5"})]}),vj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("path",{d:"M4 19V5"}),(0,ue.jsx)("path",{d:"M4 19h16"}),(0,ue.jsx)("path",{d:"M7 15l4-5 3 3 5-7"})]}),yj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("circle",{cx:12,cy:12,r:3}),(0,ue.jsx)("path",{d:"M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"})]}),Oh="/projects",Zu=[{route:"/",label:"Dashboard",icon:cj,component:ow},{route:Oh,label:"Projects",icon:dj,component:Iw},{route:"/harnesses",label:"Harnesses",icon:uj,component:q0,dynamic:{resolve:ew}},{route:"/memories",label:"Memories",icon:pj,component:$w},{route:"/graph",label:"Graph",icon:fj,component:mw},{route:"/sync",label:"Sync",icon:mj,component:Fw},{route:"/logs",label:"Logs",icon:gj,component:bw},{route:"/roi",label:"ROI",icon:vj,component:Dw},{route:"/settings",label:"Settings",icon:yj,component:Lw}],j2=Zu[0];function Ww(e,t=Zu){let r=t.find(n=>n.route===e);if(r!==void 0)return r;let o=t.find(n=>n.route!=="/"&&e.startsWith(`${n.route}/`));return o!==void 0?o:t.find(n=>n.route==="/")??t[0]}var Me=A(K(),1),hj=220,xj=56;function bj(e,t){let r=e.find(i=>i.route===t);if(r!==void 0)return r.route;let o=e.find(i=>i.route!=="/"&&t.startsWith(`${i.route}/`));return o!==void 0?o.route:e.find(i=>i.route==="/")?.route??e[0]?.route??"/"}function Sj({entry:e,active:t,collapsed:r,onNavigate:o}){return(0,Me.jsxs)("button",{type:"button",onClick:()=>o(e.route),"aria-current":t?"page":void 0,title:r?e.label:void 0,"data-route":e.route,"data-active":t?"true":"false",style:{display:"flex",alignItems:"center",gap:10,width:"100%",height:38,padding:r?"0":"0 12px",justifyContent:r?"center":"flex-start",background:t?"var(--honey-subtle)":"transparent",color:t?"var(--honey)":"var(--text-secondary)",border:`1px solid ${t?"var(--honey-border)":"transparent"}`,borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,letterSpacing:"0.01em",cursor:"pointer",whiteSpace:"nowrap",transition:"background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out)"},children:[(0,Me.jsx)("span",{style:{display:"inline-flex",flex:"none"},children:e.icon}),!r&&(0,Me.jsx)("span",{children:e.label})]})}function kj({daemonUp:e,collapsed:t}){return(0,Me.jsxs)("div",{title:"daemon health","data-testid":"daemon-health-pill",style:{display:"flex",alignItems:"center",gap:8,height:36,padding:t?"0":"0 12px",justifyContent:t?"center":"flex-start",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,Me.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:e?"var(--verified)":"var(--severity-critical)"}}),!t&&(0,Me.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:e?"daemon :3850":"offline"})]})}function Mw({entries:e,activeRoute:t,onNavigate:r,daemonUp:o,identity:n,assetBase:i,collapsed:a,onToggleCollapsed:l}){let s=bj(e,t);return(0,Me.jsxs)("nav",{"aria-label":"Dashboard navigation","data-collapsed":a?"true":"false",style:{display:"flex",flexDirection:"column",gap:18,width:a?xj:hj,flex:"none",minHeight:"100vh",boxSizing:"border-box",padding:a?"20px 8px":"22px 14px",background:"var(--bg-surface)",borderRight:"1px solid var(--border-default)"},children:[(0,Me.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,paddingLeft:a?0:2,justifyContent:a?"center":"flex-start"},children:[(0,Me.jsx)("img",{src:`${i}/honeycomb-memory-cluster.svg`,width:a?28:34,height:a?28:34,alt:"",style:{flex:"none"}}),!a&&(0,Me.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[(0,Me.jsx)("span",{style:{fontWeight:700,fontSize:19,letterSpacing:"-0.03em",color:"var(--text-primary)",lineHeight:1.1},children:"honeycomb"}),(0,Me.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n})]})]}),(0,Me.jsx)(cw,{collapsed:a}),(0,Me.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,flex:1},children:e.map(c=>(0,Me.jsx)(Sj,{entry:c,active:c.route===s,collapsed:a,onNavigate:r},c.route))}),(0,Me.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,Me.jsx)(kj,{daemonUp:o,collapsed:a}),(0,Me.jsx)(F,{variant:"ghost",size:"sm",onClick:l,"aria-label":a?"expand sidebar":"collapse sidebar",title:a?"expand":"collapse",children:a?"\xBB":"\xAB collapse"})]})]})}var rt=A(K(),1),_j=5e3,$j=900;function wj({route:e,pageProps:t,navigate:r}){let o=Ww(e),n=o.component,{projects:i,projectsHydrated:a}=Th();dt.default.useEffect(()=>{typeof document<"u"&&(document.title=`honeycomb \xB7 ${o.label}`)},[o.label]);let l=i.some(c=>c.boundLocally&&c.projectId!=="__unsorted__"),s=o.route==="/"&&a&&!l;return(0,rt.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,rt.jsx)("div",{style:{maxWidth:Eu,margin:"0 auto"},children:s?(0,rt.jsx)(dw,{wire:t.wire,navigate:r,assetBase:t.assetBase}):(0,rt.jsx)(n,{...t})})})}function Zw({client:e,assetBase:t="assets"}={}){let r=dt.default.useMemo(()=>e??Su(),[e]),{route:o,navigate:n}=Cu(),[i,a]=dt.default.useState(!0),[l,s]=dt.default.useState(kh),[c,d]=dt.default.useState(!1),[p,f]=dt.default.useState(!1),g=l.settings.port?`http://127.0.0.1:${l.settings.port}`:"http://127.0.0.1:3850",x=dt.default.useCallback(async()=>{s(await r.settings())},[r]);dt.default.useEffect(()=>{x()},[x]);let b=dt.default.useRef(null);dt.default.useEffect(()=>{let _=!0,E=async()=>{let{up:W}=await r.health();_&&(a(W),W&&b.current===!1&&x(),b.current=W)};E();let O=setInterval(()=>{E()},_j);return()=>{_=!1,clearInterval(O)}},[r,x]),dt.default.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let _=window.matchMedia(`(max-width: ${$j}px)`),E=W=>{W&&f(!0)};E(_.matches);let O=W=>E(W.matches);return _.addEventListener("change",O),()=>_.removeEventListener("change",O)},[]);let w=dt.default.useRef(!1),v=dt.default.useRef(null);dt.default.useEffect(()=>()=>{v.current!==null&&clearTimeout(v.current)},[]);let m=dt.default.useCallback(async()=>{if(w.current)return;w.current=!0,d(!0),(await r.pollinate()).triggered?v.current=setTimeout(()=>{d(!1),w.current=!1},4200):(d(!1),w.current=!1)},[r]),y=`${l.orgName||l.orgId||"local"} \xB7 ${l.workspace||"default"}`;return(0,rt.jsx)(sw,{wire:r,children:(0,rt.jsxs)("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-canvas)"},children:[(0,rt.jsx)(Mw,{entries:Zu,activeRoute:o,onNavigate:n,daemonUp:i,identity:y,assetBase:t,collapsed:p,onToggleCollapsed:()=>f(_=>!_)}),(0,rt.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:[(0,rt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 28px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,rt.jsx)("span",{style:{flex:1}}),(0,rt.jsx)(F,{variant:"pollinate",onClick:()=>{m()},disabled:c,children:c?"pollinating\u2026":"Pollinate now"})]}),i?(0,rt.jsx)(wj,{route:o,pageProps:{wire:r,daemonUp:i,assetBase:t,pollinating:c},navigate:n}):(0,rt.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,rt.jsx)("div",{style:{maxWidth:Eu,margin:"0 auto"},children:(0,rt.jsx)(H0,{url:g,onRetry:()=>{r.health().then(({up:_})=>{a(_),_&&x()})}})})})]})]})})}var X=A(K(),1),zj=2500,Ij=new Set(["backup","uninstall","link"]);function Pj(e){return e.migration!==void 0&&Ij.has(e.migration.phase)}function Ej(e){return e.priorTool.hivemind==="migrated"?!1:e.priorTool.hivemind==="present"||e.credentials.hivemind}function Rj({wire:e,assetBase:t,state:r}){let[o,n]=Ge.default.useState(null),[i,a]=Ge.default.useState(!1),[l,s]=Ge.default.useState(!1),c=Ge.default.useRef(!1),d=Ge.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0),s(!1);let f=await e.setupLogin();if(f===null){s(!0),a(!1),c.current=!1;return}n(f)},[e]),p=r.priorTool.hivemind==="present"||r.credentials.hivemind;return(0,X.jsxs)("div",{"data-testid":"guided-setup",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,X.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,X.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:460},children:[(0,X.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Let\u2019s connect your account"}),(0,X.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:p?"We found a previous Hivemind setup. Link your account to bring your memory online.":"Honeycomb keeps one shared memory for all your coding agents. Link your account to get started."})]}),o===null?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(F,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Starting setup\u2026":"First time setup"}),l&&(0,X.jsxs)("p",{"data-testid":"setup-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:["Could not start setup. Retry, or run ",(0,X.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,X.jsxs)("div",{"data-testid":"setup-grant",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,X.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Enter this code to finish linking:"}),(0,X.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-lg)",color:"var(--honey)",letterSpacing:"0.08em"},children:o.user_code}),(0,X.jsx)("a",{href:o.verification_uri_complete??o.verification_uri,target:"_blank",rel:"noreferrer",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)"},children:"Open the verification page"}),(0,X.jsx)("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]})]})}function Cj({wire:e,assetBase:t,onNeedsLogin:r}){let[o,n]=Ge.default.useState(!1),[i,a]=Ge.default.useState(!1),[l,s]=Ge.default.useState(null),c=Ge.default.useRef(!1),d=Ge.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0);let p=await e.migrateFromHivemind();if(s(p),p.ok&&p.needsLogin===!0){r();return}p.ok||(a(!1),c.current=!1)},[e,r]);return(0,X.jsxs)("div",{"data-testid":"coexistence-warning",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,X.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,X.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,X.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"We found an existing Hivemind setup"}),(0,X.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["Running Hivemind and Honeycomb on the same machine isn\u2019t supported \u2014 they share one memory and would collide. ",(0,X.jsx)("strong",{children:"Proceed with Honeycomb"})," will back up your Hivemind config, uninstall Hivemind, and reuse your existing DeepLake login (so you likely won\u2019t even need to sign in again)."]})]}),l!==null&&l.ok===!1?(0,X.jsxs)("div",{"data-testid":"migration-error",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",maxWidth:500},children:[(0,X.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:l.message}),l.backupPath!==void 0&&(0,X.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup saved at ",(0,X.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:l.backupPath})]}),(0,X.jsx)(F,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Retrying\u2026":"Retry"})]}):o?(0,X.jsxs)("div",{"data-testid":"migration-confirm",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,X.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"This backs up and removes your Hivemind setup. Continue?"}),(0,X.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,X.jsx)(F,{variant:"secondary",size:"md",onClick:()=>n(!1),disabled:i,children:"Cancel"}),(0,X.jsx)(F,{variant:"danger",size:"md",onClick:()=>{d()},disabled:i,"data-testid":"confirm-migrate-button",children:i?"Migrating\u2026":"Yes, proceed"})]})]}):(0,X.jsx)(F,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"proceed-button",children:"Proceed with Honeycomb"})]})}function Tj({wire:e,assetBase:t,state:r,onNeedsLogin:o}){let[n,i]=Ge.default.useState(""),[a,l]=Ge.default.useState(null),s=r.migration?.phase??"backup",c=r.migration?.backupPath,d=Ge.default.useCallback(async()=>{i("resume");let f=await e.migrateFromHivemind();if(l(f.message),f.ok&&f.needsLogin===!0){o();return}f.ok||i("")},[e,o]),p=Ge.default.useCallback(async()=>{i("rollback");let f=await e.rollbackMigration();l(f.message),i("")},[e]);return(0,X.jsxs)("div",{"data-testid":"migration-interrupted",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,X.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,X.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,X.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your migration was interrupted"}),(0,X.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["A previous switch to Honeycomb didn\u2019t finish (it stopped at the ",(0,X.jsx)("code",{children:s})," step). You can resume it, or roll back to restore your previous Hivemind setup."]}),c!==void 0&&(0,X.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup at ",(0,X.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:c})]})]}),(0,X.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,X.jsx)(F,{variant:"primary",size:"md",onClick:()=>{d()},disabled:n!=="","data-testid":"resume-button",children:n==="resume"?"Resuming\u2026":"Resume"}),(0,X.jsx)(F,{variant:"secondary",size:"md",onClick:()=>{p()},disabled:n!=="","data-testid":"rollback-button",children:n==="rollback"?"Rolling back\u2026":"Roll back"})]}),a!==null&&(0,X.jsx)("p",{"data-testid":"migration-interrupted-message",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:a})]})}function Bw({client:e,assetBase:t="assets"}={}){let r=Ge.default.useMemo(()=>e??Su(),[e]),[o,n]=Ge.default.useState(xh),[i,a]=Ge.default.useState(!1);return Ge.default.useEffect(()=>{if(o.authenticated)return;let l=!0,s=async()=>{let d=await r.setupState();l&&n(d)};s();let c=setInterval(()=>{s()},zj);return()=>{l=!1,clearInterval(c)}},[r,o.authenticated]),o.authenticated?(0,X.jsx)(Zw,{...{client:r,assetBase:t}}):Pj(o)&&!i?(0,X.jsx)(Tj,{wire:r,assetBase:t,state:o,onNeedsLogin:()=>a(!0)}):Ej(o)&&!i?(0,X.jsx)(Cj,{wire:r,assetBase:t,onNeedsLogin:()=>a(!0)}):(0,X.jsx)(Rj,{wire:r,assetBase:t,state:o})}var Vh=A(K(),1);function jj(){let e=document.getElementById("root");if(e===null)return;let t=e.getAttribute("data-asset-base")??"assets",r=/^[A-Za-z0-9._/-]*$/.test(t)?t:"assets";(0,Hw.createRoot)(e).render((0,Vh.jsx)(Vw.default.StrictMode,{children:(0,Vh.jsx)(Bw,{assetBase:r})}))}jj();
|
|
72
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let l=a[1];if(t===a[0]){i(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(l.cycle){i(a);continue}if(l.count>1&&e.reused==="ref"){i(a);continue}}}function Ir(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=l=>{let s=e.seen.get(l);if(s.ref===null)return;let c=s.def??s.schema,d={...c},p=s.ref;if(s.ref=null,p){o(p);let g=e.seen.get(p),b=g.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(b)):Object.assign(c,b),Object.assign(c,d),l._zod.parent===p)for(let w in c)w==="$ref"||w==="allOf"||w in d||delete c[w];if(b.$ref&&g.def)for(let w in c)w==="$ref"||w==="allOf"||w in g.def&&JSON.stringify(c[w])===JSON.stringify(g.def[w])&&delete c[w]}let f=l._zod.parent;if(f&&f!==p){o(f);let g=e.seen.get(f);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let b in c)b==="$ref"||b==="allOf"||b in g.def&&JSON.stringify(c[b])===JSON.stringify(g.def[b])&&delete c[b]}e.override({zodSchema:l,jsonSchema:c,path:s.path??[]})};for(let l of[...e.seen.entries()].reverse())o(l[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(l)}Object.assign(n,r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&n.id===i&&delete n.id;let a=e.external?.defs??{};for(let l of e.seen.entries()){let s=l[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,a[s.defId]=s.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let l=JSON.parse(JSON.stringify(n));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:ii(t,"input",e.processors),output:ii(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function xt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return xt(o.element,r);if(o.type==="set")return xt(o.valueType,r);if(o.type==="lazy")return xt(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return xt(o.innerType,r);if(o.type==="intersection")return xt(o.left,r)||xt(o.right,r);if(o.type==="record"||o.type==="map")return xt(o.keyType,r)||xt(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:xt(o.in,r)||xt(o.out,r);if(o.type==="object"){for(let n in o.shape)if(xt(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(xt(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(xt(n,r))return!0;return!!(o.rest&&xt(o.rest,r))}return!1}var xv=(e,t={})=>r=>{let o=wr({...r,processors:t});return me(e,o),zr(o,e),Ir(o,e)},ii=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=wr({...n??{},target:i,io:t,processors:r});return me(e,a),zr(a,e),Ir(a,e)};var eE={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},bv=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),l&&(n.format=eE[l]??l,n.format===""&&delete n.format,l==="time"&&delete n.format),c&&(n.contentEncoding=c),s&&s.size>0){let d=[...s];d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Sv=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?n.type="integer":n.type="number";let p=typeof d=="number"&&d>=(i??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";p?g?(n.minimum=d,n.exclusiveMinimum=!0):n.exclusiveMinimum=d:typeof i=="number"&&(n.minimum=i),f?g?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof s=="number"&&(n.multipleOf=s)},kv=(e,t,r,o)=>{r.type="boolean"},_v=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},$v=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},wv=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},zv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Iv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Pv=(e,t,r,o)=>{r.not={}},Rv=(e,t,r,o)=>{},Ev=(e,t,r,o)=>{},Cv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Tv=(e,t,r,o)=>{let n=e._zod.def,i=xa(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},jv=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},Ov=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Dv=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},Nv=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:s}=e._zod.bag;a!==void 0&&(i.minLength=a),l!==void 0&&(i.maxLength=l),s?s.length===1?(i.contentMediaType=s[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(n,i)},Lv=(e,t,r,o)=>{r.type="boolean"},Uv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Av=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Fv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Wv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Mv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Zv=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof l=="number"&&(n.maxItems=l),n.type="array",n.items=me(i.element,t,{...o,path:[...o.path,"items"]})},Bv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let c in a)n.properties[c]=me(a[c],t,{...o,path:[...o.path,"properties",c]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(c=>{let d=i.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(n.required=Array.from(s)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=me(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Oc=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((l,s)=>me(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?r.oneOf=a:r.anyOf=a},Vv=(e,t,r,o)=>{let n=e._zod.def,i=me(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=me(n.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];r.allOf=s},Hv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((f,g)=>me(f,t,{...o,path:[...o.path,a,g]})),c=i.rest?me(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=s,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:s},c&&n.items.anyOf.push(c),n.minItems=s.length,c||(n.maxItems=s.length)):(n.items=s,c&&(n.additionalItems=c));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(n.minItems=d),typeof p=="number"&&(n.maxItems=p)},Jv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,s=a._zod.bag?.patterns;if(i.mode==="loose"&&s&&s.size>0){let d=me(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let p of s)n.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=me(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=me(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=a._zod.values;if(c){let d=[...c].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(n.required=d)}},Gv=(e,t,r,o)=>{let n=e._zod.def,i=me(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Xv=(e,t,r,o)=>{let n=e._zod.def;me(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Kv=(e,t,r,o)=>{let n=e._zod.def;me(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Yv=(e,t,r,o)=>{let n=e._zod.def;me(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},qv=(e,t,r,o)=>{let n=e._zod.def;me(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Qv=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?n.out:n.in:n.out;me(a,t,o);let l=t.seen.get(e);l.ref=a},ey=(e,t,r,o)=>{let n=e._zod.def;me(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},ty=(e,t,r,o)=>{let n=e._zod.def;me(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Dc=(e,t,r,o)=>{let n=e._zod.def;me(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},ny=(e,t,r,o)=>{let n=e._zod.innerType;me(n,t,o);let i=t.seen.get(e);i.ref=n},jc={string:bv,number:Sv,boolean:kv,bigint:_v,symbol:$v,null:wv,undefined:zv,void:Iv,never:Pv,any:Rv,unknown:Ev,date:Cv,enum:Tv,literal:jv,nan:Ov,template_literal:Dv,file:Nv,success:Lv,custom:Uv,function:Av,transform:Fv,map:Wv,set:Mv,array:Zv,object:Bv,union:Oc,intersection:Vv,tuple:Hv,record:Jv,nullable:Gv,nonoptional:Xv,default:Kv,prefault:Yv,catch:qv,pipe:Qv,readonly:ey,promise:ty,optional:Dc,lazy:ny};function Nc(e,t){if("_idmap"in e){let o=e,n=wr({...t,processors:jc}),i={};for(let s of o._idmap.entries()){let[c,d]=s;me(d,n)}let a={},l={registry:o,uri:t?.uri,defs:i};n.external=l;for(let s of o._idmap.entries()){let[c,d]=s;zr(n,d),a[c]=Ir(n,d)}if(Object.keys(i).length>0){let s=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:i}}return{schemas:a}}let r=wr({...t,processors:jc});return me(e,r),zr(r,e),Ir(r,e)}var Lc=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=wr({processors:jc,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return me(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),zr(this.ctx,t);let o=Ir(this.ctx,t),{"~standard":n,...i}=o;return i}};var s$={};var La={};On(La,{ZodAny:()=>zy,ZodArray:()=>Ey,ZodBase64:()=>ou,ZodBase64URL:()=>iu,ZodBigInt:()=>fi,ZodBigIntFormat:()=>su,ZodBoolean:()=>pi,ZodCIDRv4:()=>nu,ZodCIDRv6:()=>ru,ZodCUID:()=>Xc,ZodCUID2:()=>Kc,ZodCatch:()=>qy,ZodCodec:()=>Xa,ZodCustom:()=>Ka,ZodCustomStringFormat:()=>ui,ZodDate:()=>Ba,ZodDefault:()=>Hy,ZodDiscriminatedUnion:()=>Ty,ZodE164:()=>au,ZodEmail:()=>Hc,ZodEmoji:()=>Jc,ZodEnum:()=>si,ZodExactOptional:()=>Zy,ZodFile:()=>Wy,ZodFunction:()=>sh,ZodGUID:()=>Aa,ZodIPv4:()=>eu,ZodIPv6:()=>tu,ZodIntersection:()=>jy,ZodJWT:()=>lu,ZodKSUID:()=>Qc,ZodLazy:()=>ih,ZodLiteral:()=>Fy,ZodMAC:()=>xy,ZodMap:()=>Uy,ZodNaN:()=>eh,ZodNanoID:()=>Gc,ZodNever:()=>Py,ZodNonOptional:()=>mu,ZodNull:()=>$y,ZodNullable:()=>Vy,ZodNumber:()=>di,ZodNumberFormat:()=>to,ZodObject:()=>Ha,ZodOptional:()=>fu,ZodPipe:()=>Ga,ZodPrefault:()=>Gy,ZodPreprocess:()=>th,ZodPromise:()=>lh,ZodReadonly:()=>nh,ZodRecord:()=>li,ZodSet:()=>Ay,ZodString:()=>ci,ZodStringFormat:()=>he,ZodSuccess:()=>Yy,ZodSymbol:()=>ky,ZodTemplateLiteral:()=>oh,ZodTransform:()=>My,ZodTuple:()=>Dy,ZodType:()=>oe,ZodULID:()=>Yc,ZodURL:()=>Za,ZodUUID:()=>wn,ZodUndefined:()=>_y,ZodUnion:()=>Ja,ZodUnknown:()=>Iy,ZodVoid:()=>Ry,ZodXID:()=>qc,ZodXor:()=>Cy,_ZodString:()=>Vc,_default:()=>Jy,_function:()=>y0,any:()=>G$,array:()=>Va,base64:()=>C$,base64url:()=>T$,bigint:()=>Z$,boolean:()=>Sy,catch:()=>Qy,check:()=>h0,cidrv4:()=>R$,cidrv6:()=>E$,codec:()=>f0,cuid:()=>S$,cuid2:()=>k$,custom:()=>x0,date:()=>K$,describe:()=>b0,discriminatedUnion:()=>n0,e164:()=>j$,email:()=>d$,emoji:()=>x$,enum:()=>du,exactOptional:()=>By,file:()=>c0,float32:()=>A$,float64:()=>F$,function:()=>y0,guid:()=>p$,hash:()=>U$,hex:()=>L$,hostname:()=>N$,httpUrl:()=>h$,instanceof:()=>k0,int:()=>Zc,int32:()=>W$,int64:()=>B$,intersection:()=>Oy,invertCodec:()=>m0,ipv4:()=>z$,ipv6:()=>P$,json:()=>$0,jwt:()=>O$,keyof:()=>Y$,ksuid:()=>w$,lazy:()=>ah,literal:()=>s0,looseObject:()=>e0,looseRecord:()=>o0,mac:()=>I$,map:()=>i0,meta:()=>S0,nan:()=>p0,nanoid:()=>b$,nativeEnum:()=>l0,never:()=>cu,nonoptional:()=>Ky,null:()=>wy,nullable:()=>Wa,nullish:()=>u0,number:()=>by,object:()=>q$,optional:()=>Fa,partialRecord:()=>r0,pipe:()=>Bc,prefault:()=>Xy,preprocess:()=>w0,promise:()=>v0,readonly:()=>rh,record:()=>Ly,refine:()=>ch,set:()=>a0,strictObject:()=>Q$,string:()=>Ua,stringFormat:()=>D$,stringbool:()=>_0,success:()=>d0,superRefine:()=>uh,symbol:()=>H$,templateLiteral:()=>g0,transform:()=>pu,tuple:()=>Ny,uint32:()=>M$,uint64:()=>V$,ulid:()=>_$,undefined:()=>J$,union:()=>uu,unknown:()=>eo,url:()=>y$,uuid:()=>f$,uuidv4:()=>m$,uuidv6:()=>g$,uuidv7:()=>v$,void:()=>X$,xid:()=>$$,xor:()=>t0});var Uc={};On(Uc,{endsWith:()=>Yo,gt:()=>_n,gte:()=>ht,includes:()=>Xo,length:()=>Qr,lowercase:()=>Jo,lt:()=>kn,lte:()=>Nt,maxLength:()=>qr,maxSize:()=>$r,mime:()=>qo,minLength:()=>Hn,minSize:()=>$n,multipleOf:()=>_r,negative:()=>Rc,nonnegative:()=>Cc,nonpositive:()=>Ec,normalize:()=>Qo,overwrite:()=>un,positive:()=>Pc,property:()=>Tc,regex:()=>Ho,size:()=>Yr,slugify:()=>ri,startsWith:()=>Ko,toLowerCase:()=>ti,toUpperCase:()=>ni,trim:()=>ei,uppercase:()=>Go});var ai={};On(ai,{ZodISODate:()=>Fc,ZodISODateTime:()=>Ac,ZodISODuration:()=>Mc,ZodISOTime:()=>Wc,date:()=>oy,datetime:()=>ry,duration:()=>ay,time:()=>iy});var Ac=x("ZodISODateTime",(e,t)=>{Om.init(e,t),he.init(e,t)});function ry(e){return Ug(Ac,e)}var Fc=x("ZodISODate",(e,t)=>{Dm.init(e,t),he.init(e,t)});function oy(e){return Ag(Fc,e)}var Wc=x("ZodISOTime",(e,t)=>{Nm.init(e,t),he.init(e,t)});function iy(e){return Fg(Wc,e)}var Mc=x("ZodISODuration",(e,t)=>{Lm.init(e,t),he.init(e,t)});function ay(e){return Wg(Mc,e)}var c$=(e,t)=>{$a.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>za(e,r)},flatten:{value:r=>wa(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Lo,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Lo,2)}},isEmpty:{get(){return e.issues.length===0}}})},nE=x("ZodError",c$),Pt=x("ZodError",c$,{Parent:Error});var ly=Fo(Pt),sy=Wo(Pt),cy=Mo(Pt),uy=Zo(Pt),dy=Ns(Pt),py=Ls(Pt),fy=Us(Pt),my=As(Pt),gy=Fs(Pt),vy=Ws(Pt),yy=Ms(Pt),hy=Zs(Pt);var u$=new WeakMap;function Ma(e,t,r){let o=Object.getPrototypeOf(e),n=u$.get(o);if(n||(n=new Set,u$.set(o,n)),!n.has(t)){n.add(t);for(let i in r){let a=r[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var oe=x("ZodType",(e,t)=>(ee.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ii(e,"input"),output:ii(e,"output")}}),e.toJSONSchema=xv(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>ly(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>cy(e,r,o),e.parseAsync=async(r,o)=>sy(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>uy(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>dy(e,r,o),e.decode=(r,o)=>py(e,r,o),e.encodeAsync=async(r,o)=>fy(e,r,o),e.decodeAsync=async(r,o)=>my(e,r,o),e.safeEncode=(r,o)=>gy(e,r,o),e.safeDecode=(r,o)=>vy(e,r,o),e.safeEncodeAsync=async(r,o)=>yy(e,r,o),e.safeDecodeAsync=async(r,o)=>hy(e,r,o),Ma(e,"ZodType",{check(...r){let o=this.def;return this.clone(R.mergeDefs(o,{checks:[...o.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return vt(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(ch(r,o))},superRefine(r,o){return this.check(uh(r,o))},overwrite(r){return this.check(un(r))},optional(){return Fa(this)},exactOptional(){return By(this)},nullable(){return Wa(this)},nullish(){return Fa(Wa(this))},nonoptional(r){return Ky(this,r)},array(){return Va(this)},or(r){return uu([this,r])},and(r){return Oy(this,r)},transform(r){return Bc(this,pu(r))},default(r){return Jy(this,r)},prefault(r){return Xy(this,r)},catch(r){return Qy(this,r)},pipe(r){return Bc(this,r)},readonly(){return rh(this)},describe(r){let o=this.clone();return nt.add(o,{description:r}),o},meta(...r){if(r.length===0)return nt.get(this);let o=this.clone();return nt.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return nt.get(e)?.description},configurable:!0}),e)),Vc=x("_ZodString",(e,t)=>{Kr.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>bv(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Ma(e,"_ZodString",{regex(...o){return this.check(Ho(...o))},includes(...o){return this.check(Xo(...o))},startsWith(...o){return this.check(Ko(...o))},endsWith(...o){return this.check(Yo(...o))},min(...o){return this.check(Hn(...o))},max(...o){return this.check(qr(...o))},length(...o){return this.check(Qr(...o))},nonempty(...o){return this.check(Hn(1,...o))},lowercase(o){return this.check(Jo(o))},uppercase(o){return this.check(Go(o))},trim(){return this.check(ei())},normalize(...o){return this.check(Qo(...o))},toLowerCase(){return this.check(ti())},toUpperCase(){return this.check(ni())},slugify(){return this.check(ri())}})}),ci=x("ZodString",(e,t)=>{Kr.init(e,t),Vc.init(e,t),e.email=r=>e.check(sc(Hc,r)),e.url=r=>e.check(Na(Za,r)),e.jwt=r=>e.check(Ic(lu,r)),e.emoji=r=>e.check(fc(Jc,r)),e.guid=r=>e.check(Da(Aa,r)),e.uuid=r=>e.check(cc(wn,r)),e.uuidv4=r=>e.check(uc(wn,r)),e.uuidv6=r=>e.check(dc(wn,r)),e.uuidv7=r=>e.check(pc(wn,r)),e.nanoid=r=>e.check(mc(Gc,r)),e.guid=r=>e.check(Da(Aa,r)),e.cuid=r=>e.check(gc(Xc,r)),e.cuid2=r=>e.check(vc(Kc,r)),e.ulid=r=>e.check(yc(Yc,r)),e.base64=r=>e.check($c(ou,r)),e.base64url=r=>e.check(wc(iu,r)),e.xid=r=>e.check(hc(qc,r)),e.ksuid=r=>e.check(xc(Qc,r)),e.ipv4=r=>e.check(bc(eu,r)),e.ipv6=r=>e.check(Sc(tu,r)),e.cidrv4=r=>e.check(kc(nu,r)),e.cidrv6=r=>e.check(_c(ru,r)),e.e164=r=>e.check(zc(au,r)),e.datetime=r=>e.check(ry(r)),e.date=r=>e.check(oy(r)),e.time=r=>e.check(iy(r)),e.duration=r=>e.check(ay(r))});function Ua(e){return Og(ci,e)}var he=x("ZodStringFormat",(e,t)=>{ye.init(e,t),Vc.init(e,t)}),Hc=x("ZodEmail",(e,t)=>{wm.init(e,t),he.init(e,t)});function d$(e){return sc(Hc,e)}var Aa=x("ZodGUID",(e,t)=>{_m.init(e,t),he.init(e,t)});function p$(e){return Da(Aa,e)}var wn=x("ZodUUID",(e,t)=>{$m.init(e,t),he.init(e,t)});function f$(e){return cc(wn,e)}function m$(e){return uc(wn,e)}function g$(e){return dc(wn,e)}function v$(e){return pc(wn,e)}var Za=x("ZodURL",(e,t)=>{zm.init(e,t),he.init(e,t)});function y$(e){return Na(Za,e)}function h$(e){return Na(Za,{protocol:Dt.httpProtocol,hostname:Dt.domain,...R.normalizeParams(e)})}var Jc=x("ZodEmoji",(e,t)=>{Im.init(e,t),he.init(e,t)});function x$(e){return fc(Jc,e)}var Gc=x("ZodNanoID",(e,t)=>{Pm.init(e,t),he.init(e,t)});function b$(e){return mc(Gc,e)}var Xc=x("ZodCUID",(e,t)=>{Rm.init(e,t),he.init(e,t)});function S$(e){return gc(Xc,e)}var Kc=x("ZodCUID2",(e,t)=>{Em.init(e,t),he.init(e,t)});function k$(e){return vc(Kc,e)}var Yc=x("ZodULID",(e,t)=>{Cm.init(e,t),he.init(e,t)});function _$(e){return yc(Yc,e)}var qc=x("ZodXID",(e,t)=>{Tm.init(e,t),he.init(e,t)});function $$(e){return hc(qc,e)}var Qc=x("ZodKSUID",(e,t)=>{jm.init(e,t),he.init(e,t)});function w$(e){return xc(Qc,e)}var eu=x("ZodIPv4",(e,t)=>{Um.init(e,t),he.init(e,t)});function z$(e){return bc(eu,e)}var xy=x("ZodMAC",(e,t)=>{Fm.init(e,t),he.init(e,t)});function I$(e){return Ng(xy,e)}var tu=x("ZodIPv6",(e,t)=>{Am.init(e,t),he.init(e,t)});function P$(e){return Sc(tu,e)}var nu=x("ZodCIDRv4",(e,t)=>{Wm.init(e,t),he.init(e,t)});function R$(e){return kc(nu,e)}var ru=x("ZodCIDRv6",(e,t)=>{Mm.init(e,t),he.init(e,t)});function E$(e){return _c(ru,e)}var ou=x("ZodBase64",(e,t)=>{Bm.init(e,t),he.init(e,t)});function C$(e){return $c(ou,e)}var iu=x("ZodBase64URL",(e,t)=>{Vm.init(e,t),he.init(e,t)});function T$(e){return wc(iu,e)}var au=x("ZodE164",(e,t)=>{Hm.init(e,t),he.init(e,t)});function j$(e){return zc(au,e)}var lu=x("ZodJWT",(e,t)=>{Jm.init(e,t),he.init(e,t)});function O$(e){return Ic(lu,e)}var ui=x("ZodCustomStringFormat",(e,t)=>{Gm.init(e,t),he.init(e,t)});function D$(e,t,r={}){return oi(ui,e,t,r)}function N$(e){return oi(ui,"hostname",Dt.hostname,e)}function L$(e){return oi(ui,"hex",Dt.hex,e)}function U$(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Dt[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return oi(ui,o,n,t)}var di=x("ZodNumber",(e,t)=>{qs.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Sv(e,o,n,i),Ma(e,"ZodNumber",{gt(o,n){return this.check(_n(o,n))},gte(o,n){return this.check(ht(o,n))},min(o,n){return this.check(ht(o,n))},lt(o,n){return this.check(kn(o,n))},lte(o,n){return this.check(Nt(o,n))},max(o,n){return this.check(Nt(o,n))},int(o){return this.check(Zc(o))},safe(o){return this.check(Zc(o))},positive(o){return this.check(_n(0,o))},nonnegative(o){return this.check(ht(0,o))},negative(o){return this.check(kn(0,o))},nonpositive(o){return this.check(Nt(0,o))},multipleOf(o,n){return this.check(_r(o,n))},step(o,n){return this.check(_r(o,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function by(e){return Mg(di,e)}var to=x("ZodNumberFormat",(e,t)=>{Xm.init(e,t),di.init(e,t)});function Zc(e){return Bg(to,e)}function A$(e){return Vg(to,e)}function F$(e){return Hg(to,e)}function W$(e){return Jg(to,e)}function M$(e){return Gg(to,e)}var pi=x("ZodBoolean",(e,t)=>{Ea.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>kv(e,r,o,n)});function Sy(e){return Xg(pi,e)}var fi=x("ZodBigInt",(e,t)=>{Qs.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>_v(e,o,n,i),e.gte=(o,n)=>e.check(ht(o,n)),e.min=(o,n)=>e.check(ht(o,n)),e.gt=(o,n)=>e.check(_n(o,n)),e.gte=(o,n)=>e.check(ht(o,n)),e.min=(o,n)=>e.check(ht(o,n)),e.lt=(o,n)=>e.check(kn(o,n)),e.lte=(o,n)=>e.check(Nt(o,n)),e.max=(o,n)=>e.check(Nt(o,n)),e.positive=o=>e.check(_n(BigInt(0),o)),e.negative=o=>e.check(kn(BigInt(0),o)),e.nonpositive=o=>e.check(Nt(BigInt(0),o)),e.nonnegative=o=>e.check(ht(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(_r(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Z$(e){return Yg(fi,e)}var su=x("ZodBigIntFormat",(e,t)=>{Km.init(e,t),fi.init(e,t)});function B$(e){return Qg(su,e)}function V$(e){return ev(su,e)}var ky=x("ZodSymbol",(e,t)=>{Ym.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$v(e,r,o,n)});function H$(e){return tv(ky,e)}var _y=x("ZodUndefined",(e,t)=>{qm.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zv(e,r,o,n)});function J$(e){return nv(_y,e)}var $y=x("ZodNull",(e,t)=>{Qm.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wv(e,r,o,n)});function wy(e){return rv($y,e)}var zy=x("ZodAny",(e,t)=>{eg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Rv(e,r,o,n)});function G$(){return ov(zy)}var Iy=x("ZodUnknown",(e,t)=>{tg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ev(e,r,o,n)});function eo(){return iv(Iy)}var Py=x("ZodNever",(e,t)=>{ng.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pv(e,r,o,n)});function cu(e){return av(Py,e)}var Ry=x("ZodVoid",(e,t)=>{rg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Iv(e,r,o,n)});function X$(e){return lv(Ry,e)}var Ba=x("ZodDate",(e,t)=>{og.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Cv(e,o,n,i),e.min=(o,n)=>e.check(ht(o,n)),e.max=(o,n)=>e.check(Nt(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function K$(e){return sv(Ba,e)}var Ey=x("ZodArray",(e,t)=>{ig.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zv(e,r,o,n),e.element=t.element,Ma(e,"ZodArray",{min(r,o){return this.check(Hn(r,o))},nonempty(r){return this.check(Hn(1,r))},max(r,o){return this.check(qr(r,o))},length(r,o){return this.check(Qr(r,o))},unwrap(){return this.element}})});function Va(e,t){return dv(Ey,e,t)}function Y$(e){let t=e._zod.def.shape;return du(Object.keys(t))}var Ha=x("ZodObject",(e,t)=>{ag.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Bv(e,r,o,n),R.defineLazy(e,"shape",()=>t.shape),Ma(e,"ZodObject",{keyof(){return du(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:eo()})},loose(){return this.clone({...this._zod.def,catchall:eo()})},strict(){return this.clone({...this._zod.def,catchall:cu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return R.extend(this,r)},safeExtend(r){return R.safeExtend(this,r)},merge(r){return R.merge(this,r)},pick(r){return R.pick(this,r)},omit(r){return R.omit(this,r)},partial(...r){return R.partial(fu,this,r[0])},required(...r){return R.required(mu,this,r[0])}})});function q$(e,t){let r={type:"object",shape:e??{},...R.normalizeParams(t)};return new Ha(r)}function Q$(e,t){return new Ha({type:"object",shape:e,catchall:cu(),...R.normalizeParams(t)})}function e0(e,t){return new Ha({type:"object",shape:e,catchall:eo(),...R.normalizeParams(t)})}var Ja=x("ZodUnion",(e,t)=>{Ca.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Oc(e,r,o,n),e.options=t.options});function uu(e,t){return new Ja({type:"union",options:e,...R.normalizeParams(t)})}var Cy=x("ZodXor",(e,t)=>{Ja.init(e,t),lg.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Oc(e,r,o,n),e.options=t.options});function t0(e,t){return new Cy({type:"union",options:e,inclusive:!1,...R.normalizeParams(t)})}var Ty=x("ZodDiscriminatedUnion",(e,t)=>{Ja.init(e,t),sg.init(e,t)});function n0(e,t,r){return new Ty({type:"union",options:t,discriminator:e,...R.normalizeParams(r)})}var jy=x("ZodIntersection",(e,t)=>{cg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Vv(e,r,o,n)});function Oy(e,t){return new jy({type:"intersection",left:e,right:t})}var Dy=x("ZodTuple",(e,t)=>{ec.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hv(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Ny(e,t,r){let o=t instanceof ee,n=o?r:t,i=o?t:null;return new Dy({type:"tuple",items:e,rest:i,...R.normalizeParams(n)})}var li=x("ZodRecord",(e,t)=>{ug.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jv(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function Ly(e,t,r){return!t||!t._zod?new li({type:"record",keyType:Ua(),valueType:e,...R.normalizeParams(t)}):new li({type:"record",keyType:e,valueType:t,...R.normalizeParams(r)})}function r0(e,t,r){let o=vt(e);return o._zod.values=void 0,new li({type:"record",keyType:o,valueType:t,...R.normalizeParams(r)})}function o0(e,t,r){return new li({type:"record",keyType:e,valueType:t,mode:"loose",...R.normalizeParams(r)})}var Uy=x("ZodMap",(e,t)=>{dg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Wv(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check($n(...r)),e.nonempty=r=>e.check($n(1,r)),e.max=(...r)=>e.check($r(...r)),e.size=(...r)=>e.check(Yr(...r))});function i0(e,t,r){return new Uy({type:"map",keyType:e,valueType:t,...R.normalizeParams(r)})}var Ay=x("ZodSet",(e,t)=>{pg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Mv(e,r,o,n),e.min=(...r)=>e.check($n(...r)),e.nonempty=r=>e.check($n(1,r)),e.max=(...r)=>e.check($r(...r)),e.size=(...r)=>e.check(Yr(...r))});function a0(e,t){return new Ay({type:"set",valueType:e,...R.normalizeParams(t)})}var si=x("ZodEnum",(e,t)=>{fg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Tv(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new si({...t,checks:[],...R.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new si({...t,checks:[],...R.normalizeParams(n),entries:i})}});function du(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new si({type:"enum",entries:r,...R.normalizeParams(t)})}function l0(e,t){return new si({type:"enum",entries:e,...R.normalizeParams(t)})}var Fy=x("ZodLiteral",(e,t)=>{mg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>jv(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function s0(e,t){return new Fy({type:"literal",values:Array.isArray(e)?e:[e],...R.normalizeParams(t)})}var Wy=x("ZodFile",(e,t)=>{gg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nv(e,r,o,n),e.min=(r,o)=>e.check($n(r,o)),e.max=(r,o)=>e.check($r(r,o)),e.mime=(r,o)=>e.check(qo(Array.isArray(r)?r:[r],o))});function c0(e){return pv(Wy,e)}var My=x("ZodTransform",(e,t)=>{vg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Fv(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new hr(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(R.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(R.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function pu(e){return new My({type:"transform",transform:e})}var fu=x("ZodOptional",(e,t)=>{tc.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Fa(e){return new fu({type:"optional",innerType:e})}var Zy=x("ZodExactOptional",(e,t)=>{yg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function By(e){return new Zy({type:"optional",innerType:e})}var Vy=x("ZodNullable",(e,t)=>{hg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Wa(e){return new Vy({type:"nullable",innerType:e})}function u0(e){return Fa(Wa(e))}var Hy=x("ZodDefault",(e,t)=>{xg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Kv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Jy(e,t){return new Hy({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():R.shallowClone(t)}})}var Gy=x("ZodPrefault",(e,t)=>{bg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Xy(e,t){return new Gy({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():R.shallowClone(t)}})}var mu=x("ZodNonOptional",(e,t)=>{Sg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ky(e,t){return new mu({type:"nonoptional",innerType:e,...R.normalizeParams(t)})}var Yy=x("ZodSuccess",(e,t)=>{kg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Lv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function d0(e){return new Yy({type:"success",innerType:e})}var qy=x("ZodCatch",(e,t)=>{_g.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Qy(e,t){return new qy({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var eh=x("ZodNaN",(e,t)=>{$g.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ov(e,r,o,n)});function p0(e){return uv(eh,e)}var Ga=x("ZodPipe",(e,t)=>{nc.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qv(e,r,o,n),e.in=t.in,e.out=t.out});function Bc(e,t){return new Ga({type:"pipe",in:e,out:t})}var Xa=x("ZodCodec",(e,t)=>{Ga.init(e,t),Ta.init(e,t)});function f0(e,t,r){return new Xa({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function m0(e){let t=e._zod.def;return new Xa({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var th=x("ZodPreprocess",(e,t)=>{Ga.init(e,t),wg.init(e,t)}),nh=x("ZodReadonly",(e,t)=>{zg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ey(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function rh(e){return new nh({type:"readonly",innerType:e})}var oh=x("ZodTemplateLiteral",(e,t)=>{Ig.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dv(e,r,o,n)});function g0(e,t){return new oh({type:"template_literal",parts:e,...R.normalizeParams(t)})}var ih=x("ZodLazy",(e,t)=>{Eg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ny(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function ah(e){return new ih({type:"lazy",getter:e})}var lh=x("ZodPromise",(e,t)=>{Rg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ty(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function v0(e){return new lh({type:"promise",innerType:e})}var sh=x("ZodFunction",(e,t)=>{Pg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Av(e,r,o,n)});function y0(e){return new sh({type:"function",input:Array.isArray(e?.input)?Ny(e?.input):e?.input??Va(eo()),output:e?.output??eo()})}var Ka=x("ZodCustom",(e,t)=>{Cg.init(e,t),oe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Uv(e,r,o,n)});function h0(e){let t=new be({check:"custom"});return t._zod.check=e,t}function x0(e,t){return fv(Ka,e??(()=>!0),t)}function ch(e,t={}){return mv(Ka,e,t)}function uh(e,t){return gv(e,t)}var b0=vv,S0=yv;function k0(e,t={}){let r=new Ka({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...R.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var _0=(...e)=>hv({Codec:Xa,Boolean:pi,String:ci},...e);function $0(e){let t=ah(()=>uu([Ua(e),by(),Sy(),wy(),Va(t),Ly(Ua(),t)]));return t}function w0(e,t){return new th({type:"pipe",in:pu(e),out:t})}var oE={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function iE(e){Ne({customError:e})}function aE(){return Ne().customError}var dh;dh||(dh={});var F={...La,...Uc,iso:ai},lE=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function sE(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function cE(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function z0(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return F.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return F.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=cE(n,t),a=ut(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return F.null();if(n.length===0)return F.never();if(n.length===1)return F.literal(n[0]);if(n.every(a=>typeof a=="string"))return F.enum(n);let i=n.map(a=>F.literal(a));return i.length<2?i[0]:F.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return F.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return z0(a,t)});return n.length===0?F.never():n.length===1?n[0]:F.union(n)}if(!r)return F.any();let o;switch(r){case"string":{let n=F.string();if(e.format){let i=e.format;i==="email"?n=n.check(F.email()):i==="uri"||i==="uri-reference"?n=n.check(F.url()):i==="uuid"||i==="guid"?n=n.check(F.uuid()):i==="date-time"?n=n.check(F.iso.datetime()):i==="date"?n=n.check(F.iso.date()):i==="time"?n=n.check(F.iso.time()):i==="duration"?n=n.check(F.iso.duration()):i==="ipv4"?n=n.check(F.ipv4()):i==="ipv6"?n=n.check(F.ipv6()):i==="mac"?n=n.check(F.mac()):i==="cidr"?n=n.check(F.cidrv4()):i==="cidr-v6"?n=n.check(F.cidrv6()):i==="base64"?n=n.check(F.base64()):i==="base64url"?n=n.check(F.base64url()):i==="e164"?n=n.check(F.e164()):i==="jwt"?n=n.check(F.jwt()):i==="emoji"?n=n.check(F.emoji()):i==="nanoid"?n=n.check(F.nanoid()):i==="cuid"?n=n.check(F.cuid()):i==="cuid2"?n=n.check(F.cuid2()):i==="ulid"?n=n.check(F.ulid()):i==="xid"?n=n.check(F.xid()):i==="ksuid"&&(n=n.check(F.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?F.number().int():F.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=F.boolean();break}case"null":{o=F.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[s,c]of Object.entries(i)){let d=ut(c,t);n[s]=a.has(s)?d:d.optional()}if(e.propertyNames){let s=ut(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?ut(e.additionalProperties,t):F.any();if(Object.keys(n).length===0){o=F.record(s,c);break}let d=F.object(n).passthrough(),p=F.looseRecord(s,c);o=F.intersection(d,p);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),d=[];for(let f of c){let g=ut(s[f],t),b=F.string().regex(new RegExp(f));d.push(F.looseRecord(b,g))}let p=[];if(Object.keys(n).length>0&&p.push(F.object(n).passthrough()),p.push(...d),p.length===0)o=F.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=F.intersection(p[0],p[1]);for(let g=2;g<p.length;g++)f=F.intersection(f,p[g]);o=f}break}let l=F.object(n);e.additionalProperties===!1?o=l.strict():typeof e.additionalProperties=="object"?o=l.catchall(ut(e.additionalProperties,t)):o=l.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(s=>ut(s,t)),l=i&&typeof i=="object"&&!Array.isArray(i)?ut(i,t):void 0;l?o=F.tuple(a).rest(l):o=F.tuple(a),typeof e.minItems=="number"&&(o=o.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(F.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(s=>ut(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?ut(e.additionalItems,t):void 0;l?o=F.tuple(a).rest(l):o=F.tuple(a),typeof e.minItems=="number"&&(o=o.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(F.maxLength(e.maxItems)))}else if(i!==void 0){let a=ut(i,t),l=F.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),o=l}else o=F.array(F.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function ut(e,t){if(typeof e=="boolean")return e?F.any():F.never();let r=z0(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(c=>ut(c,t)),s=F.union(l);r=o?F.intersection(r,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(c=>ut(c,t)),s=F.xor(l);r=o?F.intersection(r,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:F.any();else{let l=o?r:ut(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)l=F.intersection(l,ut(e.allOf[c],t));r=l}e.nullable===!0&&t.version==="openapi-3.0"&&(r=F.nullable(r)),e.readOnly===!0&&(r=F.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of i)l in e&&(n[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(n[l]=e[l]);for(let l of Object.keys(e))lE.has(l)||(n[l]=e[l]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function I0(e,t){if(typeof e=="boolean")return e?F.any():F.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=sE(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??nt};return ut(r,i)}var ph={};On(ph,{bigint:()=>fE,boolean:()=>pE,date:()=>mE,number:()=>dE,string:()=>uE});function uE(e){return Dg(ci,e)}function dE(e){return Zg(di,e)}function pE(e){return Kg(pi,e)}function fE(e){return qg(fi,e)}function mE(e){return cv(Ba,e)}Ne(rc());var KD=Object.freeze({kpis:{memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},sessions:{sessions:[]},settings:{orgId:"",orgName:"",workspace:"",settings:{}},graph:{built:!1,nodes:[],edges:[]},rules:{rules:[]},skillSync:{skills:[]}});var gu=Object.freeze({savings:{status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null},infra:{status:"absent",cents:0,costBasis:"none"},pollination:{status:"absent",cents:0,lines:[]},net:{status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"},rollups:[],perUserAvailable:!1,scopedAcrossDevices:!1,ratesAsOf:""}),vu=Object.freeze({status:"absent",series:[],startedAt:""});var G=Object.freeze({kpis:"/api/diagnostics/kpis",sessions:"/api/diagnostics/sessions",settings:"/api/diagnostics/settings",rules:"/api/diagnostics/rules",skills:"/api/diagnostics/skills",graph:"/api/graph",graphBuild:"/api/graph/build",memoryGraph:"/api/diagnostics/memory-graph",recall:"/api/memories/recall",memories:"/api/memories",compact:"/api/diagnostics/compact",lifecycleConflicts:"/api/memories/conflicts",lifecycleStaleRefs:"/api/memories/stale-refs",lifecycleHistory:"/api/memories/history",calibration:"/api/memories/calibration",logs:"/api/logs",logsStream:"/api/logs/stream",harnesses:"/api/diagnostics/harnesses",assets:"/api/diagnostics/assets",syncAction:"/api/diagnostics/sync",health:"/health",pollinate:"/api/diagnostics/pollinate",vaultSettings:"/api/settings",secrets:"/api/secrets",authStatus:"/api/auth/status",setupState:"/setup/state",setupLogin:"/setup/login",setupMigrate:"/setup/migrate-from-hivemind",setupMigrateRollback:"/setup/migrate-from-hivemind/rollback",scopeOrgs:"/api/diagnostics/scope/orgs",scopeWorkspaces:"/api/diagnostics/scope/workspaces",scopeProjects:"/api/diagnostics/scope/projects",fsBrowse:"/api/diagnostics/fs/browse",projectsBind:"/api/diagnostics/projects/bind",projectsBindExisting:"/api/diagnostics/projects/bind-existing",projectsUnbind:"/api/diagnostics/projects/unbind",scopeOrgSwitch:"/api/diagnostics/scope/org-switch",scopeWorkspaceSwitch:"/api/diagnostics/scope/workspace-switch",roi:"/api/diagnostics/roi",roiTrend:"/api/diagnostics/roi/trend",actionsLogout:"/api/actions/logout",actionsEmbeddings:"/api/actions/embeddings",actionsRestart:"/api/actions/restart",actionsUninstall:"/api/actions/uninstall"}),gE="x-honeycomb-project";function no(e){return e!==void 0&&e!==""?{[gE]:e}:{}}var vE=50,yE=u.object({memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),turnCount:u.number().catch(0),estimatedSavings:u.number().catch(0),teamSkillCount:u.number().catch(0)}),D0=u.object({sessionId:u.string().catch(""),project:u.string().catch(""),startedAt:u.string().catch(""),eventCount:u.number().catch(0),status:u.string().catch("captured")}),hE=u.object({sessions:u.array(D0).catch([])}),xE=u.object({orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),settings:u.record(u.string(),u.string()).catch({})}),bE=u.object({id:u.string().catch(""),label:u.string().catch(""),kind:u.string().catch("")}),SE=u.object({from:u.string().catch(""),to:u.string().catch(""),kind:u.string().catch("")}),kE=u.object({totalNodes:u.number().catch(0),totalEdges:u.number().catch(0),shownNodes:u.number().catch(0),shownEdges:u.number().catch(0),truncated:u.boolean().catch(!1)}),P0=u.object({built:u.boolean().catch(!1),nodes:u.array(bE).catch([]),edges:u.array(SE).catch([]),meta:kE.optional().catch(void 0)}),_E=u.object({id:u.string().catch(""),title:u.string().catch(""),active:u.boolean().catch(!1)}),$E=u.object({rules:u.array(_E).catch([])}),wE=u.object({name:u.string().catch(""),scope:u.string().catch(""),syncState:u.string().catch("pending")}),zE=u.object({skills:u.array(wE).catch([])}),zn=u.number().int().catch(0),mh=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("absent"),N0=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("unreachable"),gh=u.enum(["measured","allocated","none"]).catch("none"),IE=u.object({kind:u.string().catch(""),assumptionText:u.string().catch(""),signedOff:u.boolean().catch(!1)}),PE=u.object({status:mh,measuredCents:zn,modeledCents:zn,assumption:IE.catch({kind:"",assumptionText:"",signedOff:!1}),blendedCentsPerMtok:u.number().int().nullable().catch(null)}),RE=u.object({status:N0,cents:zn,costBasis:gh}),EE=u.object({label:u.string().catch(""),cents:zn}),CE=u.object({status:N0,cents:zn,lines:u.array(EE).catch([])}),TE=u.object({status:mh,computed:u.boolean().catch(!1),netCents:zn,modeled:u.boolean().catch(!0),costBasis:gh}),jE=u.object({key:u.string().catch(""),label:u.string().catch(""),measuredSavingsCents:zn,netCents:zn,infraCostCents:zn,costBasis:gh,sessions:u.number().int().catch(0)}),OE=u.object({dimension:u.enum(["org","team","agent","project"]).catch("org"),rows:u.array(jE).catch([]),mixedBasis:u.boolean().catch(!1)}),DE=u.object({savings:PE.catch({status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null}),infra:RE.catch({status:"unreachable",cents:0,costBasis:"none"}),pollination:CE.catch({status:"unreachable",cents:0,lines:[]}),net:TE.catch({status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"}),rollups:u.array(OE).catch([]),perUserAvailable:u.boolean().catch(!1),scopedAcrossDevices:u.boolean().catch(!1),ratesAsOf:u.string().catch("")}),NE=u.object({period:u.string().catch(""),cents:zn}),LE=u.object({label:u.string().catch(""),modeled:u.boolean().catch(!1),points:u.array(NE).catch([])}),UE=u.object({status:mh,series:u.array(LE).catch([]),startedAt:u.string().catch("")}),R0=u.object({assetType:u.enum(["skill","agent"]).catch("skill"),name:u.string().catch(""),description:u.string().catch(""),state:u.enum(["local","pulled","shared"]).catch("local"),scope:u.string().catch(""),sourceHarness:u.string().catch(""),tier:u.string().catch(""),style:u.string().catch(""),version:u.number().catch(0),honeycombId:u.string().catch(""),authoredByMe:u.boolean().catch(!1)}),AE=u.object({skills:u.array(R0).catch([]),agents:u.array(R0).catch([])}),FE=u.object({ok:u.boolean().catch(!1),action:u.enum(["promote","pull","demote","enable","disable"]).catch("promote"),assetType:u.enum(["skill","agent"]).catch("skill"),honeycombId:u.string().catch(""),state:u.enum(["local","pulled","shared",""]).catch(""),version:u.number().catch(0)}),yu=Object.freeze({skills:[],agents:[]}),WE=u.object({source:u.string().catch(""),id:u.string().catch(""),text:u.string().catch(""),score:u.number().catch(0),kind:u.enum(["memory","session"]).catch("memory"),secondary:u.boolean().catch(!1)}),ME=u.object({hits:u.array(WE).catch([]),sources:u.array(u.string()).catch([]),degraded:u.boolean().catch(!0)}),L0=u.object({id:u.string().catch(""),type:u.string().catch(""),content:u.string().catch(""),confidence:u.number().catch(0),agentId:u.string().catch(""),createdAt:u.string().catch(""),updatedAt:u.string().catch(""),visibility:u.string().catch(""),sourceType:u.string().catch(""),sourceId:u.string().catch(""),version:u.number().catch(0),hasEmbedding:u.boolean().catch(!1)}),ZE=u.object({memories:u.array(L0).catch([])}),BE=u.object({memory:L0}),VE=u.object({id:u.string().nullable().catch(null),action:u.string().catch("")}),E0=u.object({id:u.string().nullable().catch(null),action:u.string().catch(""),audited:u.boolean().catch(!1)}),HE=u.object({table:u.string().catch(""),keysScanned:u.number().catch(0),keysCompacted:u.number().catch(0),rowsReaped:u.number().catch(0),keysSkipped:u.number().catch(0),errored:u.number().catch(0)}),JE=u.object({ok:u.boolean().catch(!1),summaries:u.array(HE).catch([]),skippedTables:u.array(u.string()).catch([])}),GE=u.object({id:u.string().catch(""),memoryAId:u.string().catch(""),memoryBId:u.string().catch(""),verdict:u.string().catch("review"),winnerId:u.string().nullable().catch(null),status:u.string().catch("open"),contraScore:u.number().catch(0)}),XE=u.object({conflicts:u.array(GE).catch([]),status:u.string().catch("open")}),KE=u.object({memoryId:u.string().catch(""),refStatus:u.string().catch("stale"),staleRefs:u.array(u.string()).catch([]),verifiedAt:u.string().nullable().catch(null)}),YE=u.object({staleRefs:u.array(KE).catch([])}),qE=u.object({id:u.string().catch(""),memoryId:u.string().catch(""),actor:u.string().catch("pipeline"),operation:u.string().catch(""),reason:u.string().catch(""),confidence:u.number().catch(0),timestamp:u.string().catch("")}),QE=u.object({history:u.array(qE).catch([]),type:u.string().catch("lifecycle")}),eC=u.object({lower:u.number().catch(0),upper:u.number().catch(0),meanConfidence:u.number().catch(0),accuracy:u.number().catch(0),count:u.number().catch(0)}),tC=u.object({ece:u.number().catch(0),brier:u.number().catch(0),nSamples:u.number().catch(0),fitAt:u.string().nullable().catch(null),identity:u.boolean().catch(!0),reliabilityDiagram:u.array(eC).catch([])}),hu=Object.freeze({ece:0,brier:0,nSamples:0,fitAt:null,identity:!0,reliabilityDiagram:[]}),vh=u.object({time:u.string().catch(""),method:u.string().catch(""),path:u.string().catch(""),status:u.number().catch(0),durationMs:u.number().optional(),mode:u.string().optional(),org:u.string().optional(),workspace:u.string().optional()}),nC=u.object({records:u.array(vh).catch([]),count:u.number().catch(0)}),rC=u.object({records:u.array(vh).catch([]),count:u.number().catch(0),nextCursor:u.string().nullable().catch(null),persistent:u.boolean().catch(!1)}),oC=u.object({sessions:u.array(D0).catch([]),nextCursor:u.string().nullable().catch(null)}),iC=u.object({kind:u.string().catch(""),binary:u.string().catch(""),fallbackBin:u.string().optional()}),aC=u.object({bin:u.string().catch(""),args:u.array(u.string()).catch([]),fallbackBin:u.string().optional()}),lC=u.object({name:u.string().catch(""),runtimePath:u.string().catch(""),contextChannel:u.string().catch(""),hostCli:aC.catch({bin:"",args:[]}),lifecycleEvents:u.array(u.string()).catch([]),agents:iC.optional(),workspaceRoots:u.boolean().optional(),mcpRegistration:u.boolean().optional(),contractedTools:u.boolean().optional(),agentsMdContext:u.boolean().optional(),userVisibleLogin:u.boolean().optional()}),sC=u.object({name:u.string().catch(""),installed:u.boolean().catch(!1),active:u.boolean().catch(!1),lastSeen:u.string().nullable().catch(null),turnsCaptured:u.number().catch(0),runtimePath:u.string().catch(""),capabilities:lC.catch({name:"",runtimePath:"",contextChannel:"",hostCli:{bin:"",args:[]},lifecycleEvents:[]})}),cC=u.object({harnesses:u.array(sC).catch([])}),uC=u.object({triggered:u.boolean().catch(!1),status:u.string().catch("skipped"),reason:u.string().optional()}),dC=u.object({built:u.boolean().catch(!1),nodeCount:u.number().catch(0),edgeCount:u.number().catch(0),fileCount:u.number().catch(0)}),fh=Object.freeze({built:!1,nodeCount:0,edgeCount:0,fileCount:0}),pC=12e4,fC=u.object({ok:u.boolean().catch(!1)}),mC=u.object({ok:u.boolean(),enabled:u.boolean()}),gC=u.object({ok:u.boolean().catch(!1),restarting:u.boolean().catch(!1)}),vC=u.object({ok:u.boolean().catch(!1),harnesses:u.array(u.string()).catch([]),removed:u.boolean().catch(!1),command:u.string().catch("honeycomb uninstall"),note:u.string().catch("")}),yC=u.object({storage:u.enum(["reachable","unreachable"]).catch("reachable"),embeddings:u.enum(["on","off"]).catch("on"),schema:u.enum(["ok","missing_table"]).catch("ok"),portkey:u.enum(["off","ok","unconfigured","unreachable"]).catch("off")}),hC=u.object({status:u.string().catch("ok"),reasons:yC.optional()}),xC=u.object({id:u.string().catch(""),label:u.string().catch(""),models:u.array(u.string()).catch([]),openEnded:u.boolean().catch(!1)}),bC=u.union([u.string(),u.number(),u.boolean()]).catch(""),SC=u.object({settings:u.record(u.string(),bC).catch({}),catalog:u.array(xC).catch([])}),kC=u.object({names:u.array(u.string()).catch([])}),qa=Object.freeze({settings:{},catalog:[]}),_C=u.object({connected:u.boolean().catch(!1),orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),agentId:u.string().catch(""),source:u.enum(["env","file","none"]).catch("none"),savedAt:u.string().catch(""),expiresAt:u.number().optional()}),yh=Object.freeze({connected:!1,orgId:"",orgName:"",workspace:"",agentId:"",source:"none",savedAt:""}),$C=u.object({deeplake:u.boolean().catch(!1),honeycomb:u.boolean().catch(!1),hivemind:u.boolean().catch(!1)}),wC=u.object({enabled:u.boolean().catch(!1),live:u.boolean().catch(!1),warm:u.boolean().catch(!1)}),zC=u.object({credentials:$C.catch({deeplake:!1,honeycomb:!1,hivemind:!1}),phase:u.enum(["fresh","installed","linking","linked","migrating","migrated"]).catch("fresh"),priorTool:u.object({hivemind:u.enum(["absent","present","migrated"]).catch("absent")}).catch({hivemind:"absent"}),firstTimeSetupComplete:u.boolean().catch(!1),authenticated:u.boolean().catch(!1),warmup:wC.catch({enabled:!1,live:!1,warm:!1}),migration:u.object({phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),startedAt:u.string().catch(""),backupPath:u.string().optional()}).optional()}),hh=Object.freeze({credentials:{deeplake:!1,honeycomb:!1,hivemind:!1},phase:"fresh",priorTool:{hivemind:"absent"},firstTimeSetupComplete:!1,authenticated:!1,warmup:{enabled:!1,live:!1,warm:!1}}),IC=u.object({user_code:u.string().catch(""),verification_uri:u.string().catch(""),verification_uri_complete:u.string().optional()}),PC=u.object({ok:u.boolean().catch(!1),phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),message:u.string().catch(""),backupPath:u.string().optional(),needsLogin:u.boolean().optional(),migrated:u.boolean().optional()}),RC=Object.freeze({ok:!1,phase:"backup",message:"Migration is unavailable right now. Retry, or run the uninstall + `honeycomb login` in your terminal."}),EC=u.object({ok:u.boolean().catch(!1),phase:u.literal("rolled_back").catch("rolled_back"),message:u.string().catch("")}),CC=Object.freeze({ok:!1,phase:"rolled_back",message:"Rollback is unavailable right now. Retry."}),TC=u.object({id:u.string().catch(""),name:u.string().catch("")}),jC=u.object({orgs:u.array(TC).catch([])}),OC=u.object({id:u.string().catch(""),name:u.string().catch("")}),DC=u.object({workspaces:u.array(OC).catch([]),org:u.string().catch(""),reminted:u.boolean().catch(!1)}),NC=u.object({projectId:u.string().catch(""),name:u.string().catch(""),boundLocally:u.boolean().catch(!1),boundPaths:u.array(u.string()).catch([]),remote:u.string().catch(""),memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),lastCapture:u.string().nullable().catch(null)}),LC=u.object({projects:u.array(NC).catch([]),org:u.string().catch(""),workspace:u.string().catch("")}),UC=u.object({name:u.string().catch(""),path:u.string().catch(""),isGitRepo:u.boolean().catch(!1)}),AC=u.object({path:u.string().catch(""),root:u.string().catch(""),parent:u.string().nullable().catch(null),children:u.array(UC).catch([]),error:u.string().optional()}),xh=Object.freeze({path:"",root:"",parent:null,children:[]}),C0=u.object({bound:u.boolean().catch(!1),path:u.string().catch(""),projectId:u.string().catch(""),error:u.string().optional()}),T0=Object.freeze({bound:!1,path:"",projectId:"",error:"unavailable"}),FC=u.object({unbound:u.boolean().catch(!1),path:u.string().catch("")}),WC=Object.freeze({unbound:!1,path:""}),MC=u.object({switched:u.boolean().catch(!1),org:u.string().catch(""),orgName:u.string().optional(),reminted:u.boolean().catch(!1),error:u.string().optional()}),ZC=Object.freeze({switched:!1,org:"",reminted:!1,error:"unavailable"}),BC=u.object({switched:u.boolean().catch(!1),workspace:u.string().catch(""),error:u.string().optional()}),VC=Object.freeze({switched:!1,workspace:"",error:"unavailable"}),Gn=Object.freeze({"x-honeycomb-runtime-path":"plugin","x-honeycomb-session":"dashboard-web"});async function xe(e,t,r,o={}){try{let n=await e(t,{headers:{accept:"application/json",...Gn,...o}});if(!n.ok)return null;let i=await n.json(),a=r.safeParse(i);return a.success?a.data:null}catch{return null}}async function rt(e,t,r,o){try{let n=await e(t,{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Gn},body:JSON.stringify(r)});if(!n.ok)return null;let i=o.safeParse(await n.json());return i.success?i.data:null}catch{return null}}function HC(e){return e==="memories"?"team":e==="memory"?"org":"session"}var j0=280;function JC(e){if(typeof e!="object"||e===null)return"";let t=e;for(let r of["file_path","path","command","pattern","query","url","prompt","description"]){let o=t[r];if(typeof o=="string"&&o.trim()!=="")return o.trim()}return""}function GC(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let r=t,o=l=>typeof l=="string"?l.trim():"",n=o(r.kind)||o(r.type),i=o(r.tool)||o(r.tool_name),a=o(r.text)||o(r.prompt)||o(r.message);if(n.startsWith("assistant")&&a!=="")return`assistant: ${a}`;if(n.startsWith("user")&&a!=="")return`user: ${a}`;if(i!==""||n==="tool_call"){let l=JC(r.input??r.tool_input),s=i!==""?i:"tool";return l!==""?`${s} \xB7 ${l}`:s}return a!==""?a:null}function XC(e,t){let r=e.trim(),o=r;if(t==="session"||r.startsWith("{")||r.startsWith("[")){let n=GC(r);n!==null&&(o=n)}return o=o.replace(/\s+/g," ").trim(),o.length<=j0?o:`${o.slice(0,j0-1).trimEnd()}\u2026`}var bh={memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},Sh={orgId:"",orgName:"",workspace:"",settings:{}},Ya={built:!1,nodes:[],edges:[]},xu=1500,O0=5e3;function kh(e,t){let r=e.nodes.length>t,o=e.edges.length>O0;if(!r&&!o)return{graph:e,capped:!1};let n=r?e.nodes.slice(0,t):e.nodes,i=new Set(n.map(l=>l.id)),a=[];for(let l of e.edges)if(!(!i.has(l.from)||!i.has(l.to))&&(a.push(l),a.length>=O0))break;return{graph:{...e,nodes:n,edges:a},capped:!0}}var _h=Object.freeze({records:[],count:0,nextCursor:null,persistent:!1}),KC=Object.freeze({sessions:[],nextCursor:null});function YC(e){let t=[],r=(o,n)=>{n===void 0||n===""||t.push(`${o}=${encodeURIComponent(String(n))}`)};return r("since",e.since),r("until",e.until),r("status",e.status),r("path",e.path),r("org",e.org),r("limit",e.limit),r("cursor",e.cursor),t.length>0?`?${t.join("&")}`:""}function bu(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async kpis(n){return await xe(r,o(G.kpis),yE,no(n))??bh},async sessions(){return(await xe(r,o(G.sessions),hE))?.sessions??[]},async settings(){return await xe(r,o(G.settings),xE)??Sh},async rules(){return(await xe(r,o(G.rules),$E))?.rules??[]},async skills(){return(await xe(r,o(G.skills),zE))?.skills??[]},async graph(n){return await xe(r,o(G.graph),P0,no(n))??Ya},async memoryGraph(n){return await xe(r,o(G.memoryGraph),P0,no(n))??Ya},async roi(n){return await xe(r,o(G.roi),DE,no(n))??gu},async roiTrend(n,i){let a=n!==""?`?range=${encodeURIComponent(n)}`:"";return await xe(r,o(`${G.roiTrend}${a}`),UE,no(i))??vu},async recall(n,i){try{let a=await r(o(G.recall),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Gn,...no(i)},body:JSON.stringify({query:n})});if(!a.ok)return{memories:[],degraded:!0};let l=ME.safeParse(await a.json());return l.success?{memories:l.data.hits.map((c,d)=>({memoryKey:c.id!==""?c.id:`hit-${d+1}`,snippet:XC(c.text,c.kind),source:c.source,score:c.score,scope:HC(c.source),verified:c.source==="memories",kind:c.kind,secondary:c.secondary})),degraded:l.data.degraded}:{memories:[],degraded:!0}}catch{return{memories:[],degraded:!0}}},async listMemories(n=vE,i){return(await xe(r,o(`${G.memories}?limit=${n}`),ZE,no(i)))?.memories??[]},async getMemory(n){return(await xe(r,o(`${G.memories}/${encodeURIComponent(n)}`),BE))?.memory??null},async addMemory(n){let i={content:n.content};return n.type!==void 0&&(i.type=n.type),n.agentId!==void 0&&(i.agentId=n.agentId),rt(r,o(G.memories),i,VE)},async modifyMemory(n,i){let a={content:i.content,reason:i.reason};return i.agentId!==void 0&&(a.agentId=i.agentId),rt(r,o(`${G.memories}/${encodeURIComponent(n)}/modify`),a,E0)},async forgetMemory(n,i){return rt(r,o(`${G.memories}/${encodeURIComponent(n)}/forget`),{reason:i.reason},E0)},async compact(n){let i=n!==void 0&&n!==""?{table:n}:{};return rt(r,o(G.compact),i,JE)},async lifecycleConflicts(n="open"){return(await xe(r,o(`${G.lifecycleConflicts}?status=${encodeURIComponent(n)}`),XE))?.conflicts??[]},async resolveConflict(n,i){try{let a={verdict:i.verdict};return i.winnerId!==void 0&&i.winnerId!==""&&(a.winnerId=i.winnerId),i.reason!==void 0&&i.reason!==""&&(a.reason=i.reason),(await r(o(`${G.lifecycleConflicts}/${encodeURIComponent(n)}/resolve`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Gn},body:JSON.stringify(a)})).ok}catch{return!1}},async lifecycleStaleRefs(){return(await xe(r,o(G.lifecycleStaleRefs),YE))?.staleRefs??[]},async lifecycleHistory(){return(await xe(r,o(`${G.lifecycleHistory}?type=lifecycle`),QE))?.history??[]},async calibration(){return await xe(r,o(G.calibration),tC)??hu},async logs(n=40){return(await xe(r,o(`${G.logs}?limit=${n}`),nC))?.records??[]},logsStream(n){let i=globalThis.EventSource;if(i===void 0)return()=>{};let a;try{a=new i(o(G.logsStream))}catch{return()=>{}}let l=s=>{let c=qC(s.data);c!==null&&n(c)};return a.addEventListener("log",l),()=>{try{a.removeEventListener("log",l),a.close()}catch{}}},async logsHistory(n={}){let i=YC(n);return await xe(r,o(`${G.logs}/history${i}`),rC)??_h},async turnsHistory(n={}){let i=[];n.limit!==void 0&&i.push(`limit=${encodeURIComponent(String(n.limit))}`),n.cursor!==void 0&&n.cursor!==""&&i.push(`cursor=${encodeURIComponent(n.cursor)}`);let a=i.length>0?`?${i.join("&")}`:"";return await xe(r,o(`${G.sessions}${a}`),oC)??KC},async harnesses(){return(await xe(r,o(G.harnesses),cC))?.harnesses??[]},async assetsView(){return await xe(r,o(G.assets),AE)??yu},async syncAction(n,i){let a={assetType:i.assetType,name:i.name};return i.native!==void 0&&(a.native=i.native),i.honeycombId!==void 0&&i.honeycombId!==""&&(a.honeycombId=i.honeycombId),i.harness!==void 0&&i.harness!==""&&(a.harness=i.harness),rt(r,o(`${G.syncAction}/${n}`),a,FE)},async health(){try{let n=await r(o(G.health),{headers:{accept:"application/json",...Gn}}),i=n.ok,a=null;try{let l=await n.json(),s=hC.safeParse(l);a=s.success?s.data.reasons??null:null}catch{a=null}return{up:i,reasons:a}}catch{return{up:!1,reasons:null}}},async pollinate(){try{let n=await r(o(G.pollinate),{method:"POST",headers:{...Gn}}),i=uC.safeParse(await n.json());return i.success?i.data:{triggered:!1,status:"skipped",reason:"unavailable"}}catch{return{triggered:!1,status:"skipped",reason:"unavailable"}}},async buildGraph(){let n=new AbortController,i=setTimeout(()=>n.abort(),pC);try{let a=await r(o(G.graphBuild),{method:"POST",headers:{accept:"application/json",...Gn},signal:n.signal});if(!a.ok)return fh;let l=dC.safeParse(await a.json());return l.success?l.data:fh}catch{return fh}finally{clearTimeout(i)}},async vaultSettings(){return await xe(r,o(G.vaultSettings),SC)??qa},async setSetting(n,i){try{return(await r(o(`${G.vaultSettings}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Gn},body:JSON.stringify({value:i})})).ok}catch{return!1}},async secretNames(){return(await xe(r,o(G.secrets),kC))?.names??[]},async setSecret(n,i){try{return(await r(o(`${G.secrets}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Gn},body:JSON.stringify({value:i})})).ok}catch{return!1}},async logout(){return(await rt(r,o(G.actionsLogout),{},fC))?.ok===!0},async setEmbeddings(n){let i=await rt(r,o(G.actionsEmbeddings),{enabled:n},mC);return i?.ok===!0&&i.enabled===n},async restartDaemon(){return(await rt(r,o(G.actionsRestart),{},gC))?.restarting===!0},async uninstall(){return rt(r,o(G.actionsUninstall),{},vC)},async authStatus(){return await xe(r,o(G.authStatus),_C)??yh},async setupState(){return await xe(r,o(G.setupState),zC)??hh},async setupLogin(){return rt(r,o(G.setupLogin),{},IC)},async migrateFromHivemind(){return await rt(r,o(G.setupMigrate),{},PC)??RC},async rollbackMigration(){return await rt(r,o(G.setupMigrateRollback),{},EC)??CC},async scopeOrgs(){return(await xe(r,o(G.scopeOrgs),jC))?.orgs??[]},async scopeWorkspaces(n){let i=n!==void 0&&n!==""?`?org=${encodeURIComponent(n)}`:"";return await xe(r,o(`${G.scopeWorkspaces}${i}`),DC)??{workspaces:[],org:n??"",reminted:!1}},async scopeProjects(n={}){let i=n.unbound===!0?"?unbound=1":"";return(await xe(r,o(`${G.scopeProjects}${i}`),LC))?.projects??[]},async fsBrowse(n){let i=n!==void 0&&n!==""?`?path=${encodeURIComponent(n)}`:"";return await xe(r,o(`${G.fsBrowse}${i}`),AC)??xh},async bindProject(n){let i={path:n.path};return n.name!==void 0&&n.name!==""&&(i.name=n.name),await rt(r,o(G.projectsBind),i,C0)??T0},async bindExistingProject(n){let i={path:n.path,projectId:n.projectId};return await rt(r,o(G.projectsBindExisting),i,C0)??T0},async unbindProject(n){return await rt(r,o(G.projectsUnbind),{path:n.path},FC)??WC},async switchOrg(n){return await rt(r,o(G.scopeOrgSwitch),{org:n},MC)??ZC},async switchWorkspace(n){return await rt(r,o(G.scopeWorkspaceSwitch),{workspace:n},BC)??VC}}}function qC(e){if(typeof e!="string")return null;try{let t=vh.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}function Pr(e){let t=(e.time||"").slice(11,19)||(e.time||"").slice(0,8),r=e.status>0?` ${e.status}`:"";return`${t} ${e.method} ${e.path}${r}`.trimEnd()}var U0="/api/diagnostics/sync/";function Su(e){return(e.path??"").startsWith(U0)}function A0(e){let t=(e.path??"").slice(U0.length).split("/")[0]??"";switch(t){case"promote":return"published";case"pull":return"pulled";case"demote":return"tombstoned";case"enable":return"enabled";case"disable":return"disabled";default:return t}}var N=W(q(),1);function ie({title:e,eyebrow:t,right:r,children:o,style:n}){return(0,N.jsxs)("section",{style:{background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden",display:"flex",flexDirection:"column",...n},children:[(0,N.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:10,padding:"13px 16px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,N.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:600,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em"},children:e}),t&&(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t}),(0,N.jsx)("span",{style:{flex:1}}),r]}),(0,N.jsx)("div",{style:{padding:16,flex:1},children:o})]})}function wh({children:e}){return(0,N.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:e})}var el={cursor:"var(--severity-info)","claude-code":"var(--honey)",codex:"var(--pollinate)",openclaw:"var(--verified)",hermes:"var(--severity-warning)",pi:"var(--severity-critical)"},tl="var(--text-tertiary)",Qa=5;function F0({label:e,onClick:t,disabled:r}){return(0,N.jsx)("button",{type:"button",onClick:t,disabled:r,style:{width:22,height:22,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1,cursor:r?"default":"pointer",opacity:r?.4:1},children:e})}function M0({sessions:e}){let t=e.length,r=Math.max(1,Math.ceil(t/Qa)),[o,n]=In.default.useState(0),i=Math.min(o,r-1),a=i*Qa,l=e.slice(a,a+Qa),s=t===0?0:a+1,c=Math.min(a+Qa,t),d=t>Qa?(0,N.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,N.jsx)(F0,{label:"\u2039",onClick:()=>n(p=>Math.max(0,p-1)),disabled:i===0}),(0,N.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap"},children:[s,"\u2013",c," of ",t]}),(0,N.jsx)(F0,{label:"\u203A",onClick:()=>n(p=>Math.min(r-1,p+1)),disabled:i>=r-1})]}):void 0;return(0,N.jsx)(ie,{title:"Turns",eyebrow:`${t} captured`,right:d,children:t===0?(0,N.jsx)(wh,{children:"No turns captured yet."}):(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:l.map((p,f)=>(0,N.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"84px 1fr auto auto",alignItems:"center",gap:12,padding:"10px 6px",borderTop:f===0?"none":"1px solid var(--border-subtle)"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:p.sessionId}),(0,N.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,N.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--text-tertiary)",flex:"none"}}),(0,N.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.project})]}),(0,N.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[p.startedAt,p.eventCount>0?` \xB7 ${p.eventCount}e`:""]}),(0,N.jsx)(Q,{tone:p.status==="summarized"?"verified":"neutral",mono:!0,children:p.status})]},p.sessionId||f))})})}function Z0({rules:e}){return(0,N.jsx)(ie,{title:"Rules",eyebrow:"org-wide",children:e.length===0?(0,N.jsx)(wh,{children:"No rules defined."}):(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map((t,r)=>(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 6px"},children:[(0,N.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:t.active?"var(--verified)":"var(--text-disabled)",flex:"none"}}),(0,N.jsx)("span",{style:{fontSize:14,color:t.active?"var(--text-primary)":"var(--text-tertiary)"},children:t.title}),(0,N.jsx)("span",{style:{flex:1}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.id})]},t.id||r))})})}var zh={shared:"verified",synced:"verified",pulled:"honey",pending:"warning",local:"neutral"};function B0({skills:e}){return(0,N.jsx)(ie,{title:"Skill-sync",eyebrow:`${e.length} skills`,children:e.length===0?(0,N.jsx)(wh,{children:"No skills synced."}):(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:e.map((t,r)=>(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),(0,N.jsx)("span",{style:{flex:1}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.scope}),(0,N.jsx)(Q,{tone:zh[t.syncState]??"neutral",mono:!0,dot:!0,children:t.syncState})]},t.name||r))})})}var ku={file:"var(--honey)",function:"var(--severity-info)",class:"var(--pollinate)"},_u="var(--text-tertiary)";function Rr({lines:e}){return(0,N.jsx)(ie,{title:"Live log",right:(0,N.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,N.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"streaming"})]}),children:(0,N.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:e.length===0?(0,N.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for daemon activity\u2026"}):e.map((t,r)=>(0,N.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:r===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:t},r))})})}var Fe=Object.freeze({activeProvider:"activeProvider",activeModel:"activeModel",pollinatingEnabled:"pollinating.enabled",recallMode:"recallMode",portkeyEnabled:"portkey.enabled",portkeyConfig:"portkey.config",portkeyFallbackToProvider:"portkey.fallbackToProvider"}),gi=Object.freeze({anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",openrouter:"OPENROUTER_API_KEY",cohere:"COHERE_API_KEY",portkey:"PORTKEY_API_KEY"});function W0({value:e,onChange:t,options:r,ariaLabel:o}){return(0,N.jsx)("select",{"aria-label":o,value:e,onChange:n=>t(n.target.value),style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:180},children:r.map(n=>(0,N.jsx)("option",{value:n.value,children:n.label},n.value))})}function $h({on:e,onToggle:t,ariaLabel:r}){return(0,N.jsxs)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r,onClick:t,style:{display:"inline-flex",alignItems:"center",gap:8,height:36,padding:"0 14px",background:e?"var(--pollinate-subtle)":"var(--bg-elevated)",border:`1px solid ${e?"var(--pollinate-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:e?"var(--pollinate)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,cursor:"pointer"},children:[(0,N.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:e?"var(--pollinate)":"var(--text-disabled)"}}),e?"on":"off"]})}function mi({label:e,hint:t,children:r}){return(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,N.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,N.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:e}),t&&(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t})]}),(0,N.jsx)("span",{style:{flex:1}}),r]})}function $u({catalog:e,settings:t,secretNames:r,onSave:o}){let n=String(t[Fe.activeProvider]??""),i=String(t[Fe.activeModel]??""),a=t[Fe.pollinatingEnabled]===!0||t[Fe.pollinatingEnabled]==="true",l=e.find(h=>h.id===n),[s,c]=In.default.useState(i);In.default.useEffect(()=>c(i),[i]);let d=[{value:"",label:"\u2014 select \u2014"},...e.map(h=>({value:h.id,label:h.label||h.id}))],p=[{value:"",label:"\u2014 select \u2014"},...(l?.models??[]).map(h=>({value:h,label:h}))],f=h=>{o(Fe.activeProvider,h)},g=h=>{h.length!==0&&o(Fe.activeModel,h)},b=()=>{let h=s.trim();h.length>0&&h!==i&&o(Fe.activeModel,h)};return(0,N.jsx)(ie,{title:"Settings",eyebrow:"provider \xB7 model \xB7 pollinating",children:(0,N.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,N.jsxs)(mi,{label:"Provider",hint:"inference provider",children:[(0,N.jsx)(W0,{ariaLabel:"provider",value:n,onChange:f,options:d}),n.length>0&&(0,N.jsx)(e4,{provider:n,secretNames:r})]}),(0,N.jsx)(mi,{label:"Model",hint:l?.openEnded?"free-form id":"from catalog",children:l===void 0?(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"pick a provider first"}):l.openEnded?(0,N.jsx)("input",{"aria-label":"model",type:"text",value:s,placeholder:"vendor/model",onChange:h=>c(h.target.value),onBlur:b,onKeyDown:h=>{h.key==="Enter"&&b()},style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:200}}):(0,N.jsx)(W0,{ariaLabel:"model",value:i,onChange:g,options:p})}),(0,N.jsx)(mi,{label:"Pollinating",hint:"background consolidation",children:(0,N.jsx)($h,{ariaLabel:"pollinating",on:a,onToggle:()=>{o(Fe.pollinatingEnabled,!a)}})})]})})}function e4({provider:e,secretNames:t}){let r=gi[e],o=r!==void 0&&t.includes(r);return(0,N.jsx)(Q,{tone:o?"verified":"neutral",mono:!0,dot:!0,children:o?"key set \u2713":"not set"})}function V0({settings:e,secretNames:t,onSaveSetting:r,onSaveKey:o}){let n=e[Fe.portkeyEnabled]===!0||e[Fe.portkeyEnabled]==="true",i=String(e[Fe.portkeyConfig]??""),a=e[Fe.portkeyFallbackToProvider]===!0||e[Fe.portkeyFallbackToProvider]==="true",[l,s]=In.default.useState(i);In.default.useEffect(()=>s(i),[i]);let[c,d]=In.default.useState(""),[p,f]=In.default.useState(!1),[g,b]=In.default.useState(!1),h=()=>{let y=l.trim();y!==i&&r(Fe.portkeyConfig,y)},w=In.default.useCallback(async()=>{let y=c;if(y.length===0){b(!0);return}f(!0),b(!1);let S=await o(y);f(!1),S?d(""):b(!0)},[c,o]),v=gi.portkey??"PORTKEY_API_KEY",m=t.includes(v);return(0,N.jsx)(ie,{title:"Portkey gateway",eyebrow:"portkey.enabled \xB7 config \xB7 API key \xB7 fallback",children:(0,N.jsxs)("div",{"data-testid":"portkey-gateway-section",style:{display:"flex",flexDirection:"column",gap:2},children:[(0,N.jsx)(mi,{label:"Use Portkey gateway",hint:"routes all inference through Portkey",children:(0,N.jsx)($h,{ariaLabel:"portkey enabled",on:n,onToggle:()=>{r(Fe.portkeyEnabled,!n)}})}),(0,N.jsx)(mi,{label:"Portkey config",hint:"config id or virtual key from your Portkey dashboard",children:(0,N.jsx)("input",{"aria-label":"portkey config","data-testid":"portkey-config-input",type:"text",value:l,placeholder:"pk-\u2026",onChange:y=>s(y.target.value),onBlur:h,onKeyDown:y=>{y.key==="Enter"&&h()},style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:240}})}),(0,N.jsxs)("div",{"data-testid":"portkey-key-row",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,N.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:"Portkey API key"}),(0,N.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,N.jsx)("input",{"aria-label":"portkey api key","data-testid":"portkey-key-input",type:"password",value:c,placeholder:m?"replace key\u2026":"paste key\u2026",onChange:y=>{d(y.target.value),g&&b(!1)},onKeyDown:y=>{y.key==="Enter"&&w()},style:{height:36,padding:"0 10px",width:"100%",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}})}),(0,N.jsx)("button",{type:"button",disabled:p,"data-testid":"portkey-key-save",onClick:()=>{w()},style:{height:36,padding:"0 14px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,cursor:p?"default":"pointer",opacity:p?.6:1},children:p?"saving\u2026":"Save key"}),(0,N.jsx)(Q,{tone:m?"verified":"neutral",mono:!0,dot:!0,children:m?"key set \u2713":"not set"}),g&&(0,N.jsx)("span",{"data-testid":"portkey-key-rejected",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]}),(0,N.jsx)(mi,{label:"Fallback to provider",hint:"use per-provider key if Portkey is unreachable",children:(0,N.jsx)($h,{ariaLabel:"portkey fallback to provider",on:a,onToggle:()=>{r(Fe.portkeyFallbackToProvider,!a)}})})]})})}function H0({url:e,onRetry:t}){return(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,padding:"14px 18px",background:"var(--severity-critical-bg)",border:"1px solid var(--severity-critical)",borderRadius:"var(--radius-lg)"},children:[(0,N.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:"var(--severity-critical)",flex:"none"}}),(0,N.jsxs)("div",{style:{flex:1},children:[(0,N.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Daemon not reachable"}),(0,N.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:e})]}),(0,N.jsx)("button",{onClick:t,style:{height:34,padding:"0 16px",background:"transparent",border:"1px solid var(--severity-critical)",color:"var(--severity-critical)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:"Retry"})]})}var ze=W(_e(),1);var nw=W(_e(),1);var nl=W(_e(),1);var wu=W(_e(),1),Xn=W(q(),1),zu=1180;function qe({title:e,eyebrow:t,right:r,children:o}){return(0,Xn.jsxs)("div",{style:{maxWidth:zu,margin:"0 auto",width:"100%"},children:[(0,Xn.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:18},children:[(0,Xn.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0},children:[t!==void 0&&t!==""&&(0,Xn.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:t}),(0,Xn.jsx)("h1",{style:{fontSize:"var(--text-lg)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em",lineHeight:1.1},children:e})]}),(0,Xn.jsx)("span",{style:{flex:1}}),r]}),(0,Xn.jsx)("div",{children:o})]})}function Pn(){return typeof document<"u"&&document.visibilityState==="hidden"}function dn(e,t){let r=wu.default.useRef(e);wu.default.useEffect(()=>{r.current=e},[e]),wu.default.useEffect(()=>{let o=!0,n=async()=>{!o||Pn()||await r.current()};n();let i=setInterval(()=>{n()},t),a=()=>{Pn()||n()};return typeof document<"u"&&document.addEventListener("visibilitychange",a),()=>{o=!1,clearInterval(i),typeof document<"u"&&document.removeEventListener("visibilitychange",a)}},[t])}var Iu=W(_e(),1);function J0(e){let r=(e.startsWith("#")?e.slice(1):e).trim();return r===""?"/":r}function Pu(){let[e,t]=Iu.default.useState(()=>typeof window>"u"?"/":J0(window.location.hash));Iu.default.useEffect(()=>{if(typeof window>"u")return;let o=()=>t(J0(window.location.hash));return o(),window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]);let r=Iu.default.useCallback(o=>{if(typeof window>"u")return;let n=o.startsWith("#")?o:`#${o}`;window.location.hash=n},[]);return{route:e,navigate:r}}var L=W(q(),1),t4=5e3,n4=2500,G0=12,X0="/harnesses/";function r4(e){if(!e.startsWith(X0))return null;let t=e.slice(X0.length).split("/")[0]??"";return t===""?null:t}function Ih({name:e}){return(0,L.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",flex:"none",background:el[e]??tl}})}function Ru(e){return e.installed?e.active?"active":"idle":"not installed"}var Y0={active:"verified",idle:"neutral","not installed":"neutral"};function vi(e,t=Date.now()){if(e===null||e==="")return"never";let r=Date.parse(e);if(!Number.isFinite(r))return e;let o=Math.max(0,t-r),n=Math.floor(o/1e3);if(n<60)return`${n}s ago`;let i=Math.floor(n/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}var q0={active:"active",idle:"idle","not installed":"not installed"};function o4({h:e,onOpen:t}){let r=Ru(e),o=r==="not installed";return(0,L.jsxs)("button",{type:"button","data-testid":`harness-card-${e.name}`,"data-harness":e.name,onClick:()=>t(e.name),style:{display:"flex",flexDirection:"column",gap:12,padding:16,textAlign:"left",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",cursor:"pointer",opacity:o?.6:1},children:[(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9},children:[(0,L.jsx)(Ih,{name:e.name}),(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:e.name}),(0,L.jsx)("span",{style:{flex:1}}),(0,L.jsx)(Q,{tone:Y0[r],mono:!0,dot:!0,children:q0[r]})]}),(0,L.jsx)(Gt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,L.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",vi(e.lastSeen)]})]})}function K0({on:e}){return(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:e?"var(--verified)":"var(--text-tertiary)"},children:e?"\u2713":"\u2014"})}function i4({harnesses:e,onOpen:t}){return(0,L.jsx)(ie,{title:"Fleet",eyebrow:`${e.length} harnesses`,children:(0,L.jsxs)("div",{role:"table","aria-label":"installed/active matrix",style:{display:"flex",flexDirection:"column"},children:[(0,L.jsx)("div",{role:"row",style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,padding:"6px 6px",borderBottom:"1px solid var(--border-subtle)"},children:["harness","installed","active","last seen","turns"].map(r=>(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:r},r))}),e.map(r=>(0,L.jsxs)("div",{role:"row","data-testid":`harness-row-${r.name}`,"data-harness":r.name,onClick:()=>t(r.name),style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,alignItems:"center",padding:"9px 6px",cursor:"pointer",borderTop:"1px solid var(--border-subtle)",opacity:r.installed?1:.6},children:[(0,L.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,L.jsx)(Ih,{name:r.name}),(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)"},children:r.name})]}),(0,L.jsx)(K0,{on:r.installed}),(0,L.jsx)(K0,{on:r.active}),(0,L.jsx)("span",{title:r.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:vi(r.lastSeen)}),(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:r.turnsCaptured.toLocaleString()})]},r.name))]})})}function a4({harnesses:e,onOpen:t}){return(0,L.jsx)(qe,{title:"Harnesses",eyebrow:`${e.length} \xB7 fleet`,children:e.length===0?(0,L.jsx)(ie,{title:"Harnesses",children:(0,L.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harness telemetry yet."})}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:12,marginBottom:16},children:e.map(r=>(0,L.jsx)(o4,{h:r,onOpen:t},r.name))}),(0,L.jsx)(i4,{harnesses:e,onOpen:t})]})})}function Lt({label:e,children:t}){return(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,L.jsx)("span",{style:{flex:1}}),(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right"},children:t})]})}function l4({cap:e}){let t=`${e.hostCli.bin}${e.hostCli.args.length>0?" "+e.hostCli.args.join(" "):""}`.trim();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(ie,{title:"Runtime",eyebrow:e.runtimePath||"\u2014",style:{marginBottom:16},children:[(0,L.jsx)(Lt,{label:"runtime path",children:e.runtimePath||"\u2014"}),(0,L.jsx)(Lt,{label:"context channel",children:e.contextChannel||"\u2014"}),(0,L.jsx)(Lt,{label:"host CLI",children:t||"\u2014"}),e.hostCli.fallbackBin!==void 0&&e.hostCli.fallbackBin!==""&&(0,L.jsx)(Lt,{label:"fallback CLI",children:e.hostCli.fallbackBin}),(0,L.jsx)(Lt,{label:"lifecycle events",children:e.lifecycleEvents.length>0?e.lifecycleEvents.join(", "):"\u2014"})]}),e.agents!==void 0&&(0,L.jsx)("div",{"data-testid":"cap-agents",style:{marginBottom:16},children:(0,L.jsxs)(ie,{title:"Agents",eyebrow:"cursor-agent",children:[(0,L.jsx)(Lt,{label:"agent kind",children:e.agents.kind}),(0,L.jsx)(Lt,{label:"binary",children:e.agents.binary}),e.agents.fallbackBin!==void 0&&e.agents.fallbackBin!==""&&(0,L.jsx)(Lt,{label:"fallback",children:e.agents.fallbackBin}),e.workspaceRoots===!0&&(0,L.jsx)(Lt,{label:"workspace roots",children:"yes"})]})}),e.mcpRegistration===!0&&(0,L.jsx)("div",{"data-testid":"cap-mcp",style:{marginBottom:16},children:(0,L.jsx)(ie,{title:"MCP",eyebrow:"registered",children:(0,L.jsx)(Lt,{label:"honeycomb tools",children:"honeycomb_search \xB7 honeycomb_read \xB7 honeycomb_index"})})}),e.contractedTools===!0&&(0,L.jsx)("div",{"data-testid":"cap-contracted",style:{marginBottom:16},children:(0,L.jsx)(ie,{title:"Contracted tools",eyebrow:"registered",children:(0,L.jsx)(Lt,{label:"tool registration",children:"contracted (no pre-tool hook)"})})}),e.agentsMdContext===!0&&(0,L.jsx)("div",{"data-testid":"cap-agentsmd",style:{marginBottom:16},children:(0,L.jsx)(ie,{title:"Context surface",eyebrow:"AGENTS.md",children:(0,L.jsx)(Lt,{label:"injection",children:"static AGENTS.md block"})})}),e.userVisibleLogin===!0&&(0,L.jsx)("div",{"data-testid":"cap-login",style:{marginBottom:16},children:(0,L.jsx)(ie,{title:"Context surface",eyebrow:"login line",children:(0,L.jsx)(Lt,{label:"injection",children:"user-visible login line"})})})]})}function s4(e,t){if(t==="")return[];let r=t.toLowerCase();return e.filter(o=>(o.path??"").toLowerCase().includes(r))}function c4({name:e,status:t,lines:r,onBack:o}){let n=(0,L.jsx)("button",{type:"button",onClick:o,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"\u2039 Harnesses"});if(t===null)return(0,L.jsx)(qe,{title:e,eyebrow:"harness",right:n,children:(0,L.jsx)(ie,{title:"Unknown harness",children:(0,L.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No telemetry for ",(0,L.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--text-secondary)"},children:e})," \u2014 it is not one of the six canonical harnesses."]})})});let i=Ru(t);return(0,L.jsxs)(qe,{title:e,eyebrow:"harness",right:n,children:[(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,L.jsx)(Ih,{name:e}),(0,L.jsx)(Q,{tone:Y0[i],mono:!0,dot:!0,children:q0[i]}),(0,L.jsx)("span",{style:{flex:1}}),(0,L.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},title:t.lastSeen??"never",children:["last seen ",vi(t.lastSeen)]})]}),(0,L.jsxs)("div",{className:"kpirow",style:{marginBottom:18},children:[(0,L.jsx)(Gt,{label:"Turns",value:t.turnsCaptured.toLocaleString(),accent:t.active?"verified":"neutral"}),(0,L.jsx)(Gt,{label:"Installed",value:t.installed?"yes":"no",accent:t.installed?"honey":"neutral"}),(0,L.jsx)(Gt,{label:"Runtime",value:t.runtimePath||"\u2014",accent:"pollinate"})]}),(0,L.jsx)(l4,{cap:t.capabilities}),(0,L.jsx)(Rr,{lines:r})]})}function Q0({wire:e}){let{route:t,navigate:r}=Pu(),o=r4(t),[n,i]=nl.default.useState([]),[a,l]=nl.default.useState([]);dn(async()=>i(await e.harnesses()),t4),dn(async()=>{if(o===null){l([]);return}let d=await e.logs(G0*4),p=s4(d,o);l(p.slice(-G0).reverse().map(Pr))},n4);let s=nl.default.useCallback(d=>r(`/harnesses/${d}`),[r]),c=nl.default.useCallback(()=>r("/harnesses"),[r]);if(o!==null){let d=n.find(p=>p.name===o)??null;return(0,L.jsx)(c4,{name:o,status:d,lines:a,onBack:c})}return(0,L.jsx)(a4,{harnesses:n,onOpen:s})}function ew(e){return Array.isArray(e)?e.map(t=>t!==null&&typeof t=="object"&&"name"in t?String(t.name):"").filter(t=>t!=="").map(t=>({route:`/harnesses/${t}`,label:t})):[]}var We=W(q(),1),tw={active:"verified",idle:"neutral"};function u4({h:e}){let r=Ru(e)==="active"?tw.active:tw.idle;return(0,We.jsx)("span",{"data-testid":`harness-chip-${e.name}`,"data-harness":e.name,title:`${e.name} \xB7 last seen ${vi(e.lastSeen)}`,style:{display:"inline-flex"},children:(0,We.jsxs)(Q,{tone:r,mono:!0,dot:!0,style:{background:"transparent"},children:[(0,We.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",flex:"none",background:el[e.name]??tl}}),e.name]})})}function d4({h:e}){return(0,We.jsxs)("div",{"data-testid":`harness-tile-${e.name}`,"data-harness":e.name,style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,We.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,We.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:el[e.name]??tl}}),(0,We.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e.name})]}),(0,We.jsx)(Gt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,We.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",vi(e.lastSeen)]})]})}function rw({harnesses:e,streamLines:t}){let r=nw.default.useMemo(()=>e.filter(o=>o.installed),[e]);return(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,We.jsx)(ie,{title:"Harnesses",eyebrow:`${r.length} wired in`,children:r.length===0?(0,We.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harnesses wired in yet."}):(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,We.jsx)("div",{"data-testid":"harness-chips",style:{display:"flex",flexWrap:"wrap",gap:8},children:r.map(o=>(0,We.jsx)(u4,{h:o},o.name))}),(0,We.jsx)("div",{"data-testid":"harness-tiles",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12},children:r.map(o=>(0,We.jsx)(d4,{h:o},o.name))})]})}),(0,We.jsx)(Rr,{lines:t})]})}var Le=W(_e(),1),Je=W(q(),1),Eh=Object.freeze({org:"local",workspace:"default"}),ow="honeycomb.dashboard.scope",iw=Le.default.createContext({scope:Eh,setScope:()=>{}});function Ut(){return Le.default.useContext(iw)}var p4=Object.freeze({orgs:[],workspaces:[],projects:[],projectsHydrated:!1,loadingWorkspaces:!1,switchFeedback:null,selectOrg:()=>{},selectWorkspace:()=>{},selectProject:()=>{}}),aw=Le.default.createContext(p4);function Ch(){return Le.default.useContext(aw)}function f4(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(ow);if(e===null||e==="")return null;let t=JSON.parse(e);if(typeof t!="object"||t===null)return null;let r=t,o=typeof r.org=="string"?r.org:"",n=typeof r.workspace=="string"?r.workspace:"";if(o===""||n==="")return null;let i=typeof r.project=="string"&&r.project!==""?r.project:void 0;return i!==void 0?{org:o,workspace:n,project:i}:{org:o,workspace:n}}catch{return null}}function m4(e){try{if(typeof localStorage>"u")return;localStorage.setItem(ow,JSON.stringify(e))}catch{}}function lw({wire:e,children:t}){let r=Le.default.useMemo(()=>f4(),[]),[o,n]=Le.default.useState(r??Eh),[i,a]=Le.default.useState([]),[l,s]=Le.default.useState([]),[c,d]=Le.default.useState([]),[p,f]=Le.default.useState(!1),[g,b]=Le.default.useState(!1),[h,w]=Le.default.useState(null),v=Le.default.useCallback(X=>{n(X),m4(X)},[]),m=Le.default.useCallback(X=>v(X),[v]),y=Le.default.useCallback(async()=>{let X=await e.scopeProjects();d(X),f(!0)},[e]);Le.default.useEffect(()=>{let X=!0;return(async()=>{let M=await e.scopeOrgs();X&&a(M)})(),(async()=>{let M=await e.scopeWorkspaces();X&&s(M.workspaces)})(),y(),()=>{X=!1}},[e,y]);let S=Le.default.useCallback(X=>{b(!0),w({kind:"persisted",message:"switching org\u2026",pending:!0}),(async()=>{try{let M=await e.switchOrg(X);if(!M.switched){w({kind:"error",message:M.error!==void 0&&M.error!==""?`could not switch: ${M.error}`:"could not switch org"});return}v({org:M.org,workspace:Eh.workspace,project:void 0});let Ze=await e.scopeWorkspaces(M.org);s(Ze.workspaces),d([]),f(!0),w({kind:"persisted",message:M.reminted?`switched to ${M.orgName??M.org} \xB7 re-minted`:`switched to ${M.orgName??M.org}`})}finally{b(!1)}})()},[e,v]),P=Le.default.useCallback(X=>{w({kind:"persisted",message:"switching workspace\u2026",pending:!0}),(async()=>{let M=await e.switchWorkspace(X);if(!M.switched){w({kind:"error",message:M.error!==void 0&&M.error!==""?`could not switch: ${M.error}`:"could not switch workspace"});return}v({org:o.org,workspace:M.workspace,project:void 0}),await y(),w({kind:"persisted",message:`switched to ${M.workspace}`})})()},[e,v,o.org,y]),O=Le.default.useCallback(X=>{v({org:o.org,workspace:o.workspace,...X!==void 0?{project:X}:{}}),w({kind:"view",message:X!==void 0?"view filter \u2014 capture is set by folder binding":"view cleared"})},[v,o.org,o.workspace]),T=Le.default.useMemo(()=>({scope:o,setScope:m}),[o,m]),B=Le.default.useMemo(()=>({orgs:i,workspaces:l,projects:c,projectsHydrated:p,loadingWorkspaces:g,switchFeedback:h,selectOrg:S,selectWorkspace:P,selectProject:O}),[i,l,c,p,g,h,S,P,O]);return(0,Je.jsx)(iw.Provider,{value:T,children:(0,Je.jsx)(aw.Provider,{value:B,children:t})})}var g4={width:"100%",height:30,padding:"0 8px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"};function Ph({label:e,testId:t,value:r,disabled:o,onChange:n,children:i}){return(0,Je.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:3},children:[(0,Je.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:e}),(0,Je.jsx)("select",{"data-testid":t,value:r,disabled:o,onChange:a=>n(a.target.value),style:{...g4,opacity:o?.6:1},children:i})]})}var v4="__unsorted__",Rh="";function sw({collapsed:e}){let{scope:t}=Ut(),r=Ch();return e?null:(0,Je.jsxs)("div",{"data-testid":"scope-switcher",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,Je.jsxs)(Ph,{label:"org",testId:"scope-org",value:t.org,onChange:r.selectOrg,children:[r.orgs.length===0&&(0,Je.jsx)("option",{value:t.org,children:t.org}),r.orgs.map(o=>(0,Je.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,Je.jsxs)(Ph,{label:"workspace",testId:"scope-workspace",value:t.workspace,disabled:r.loadingWorkspaces,onChange:r.selectWorkspace,children:[r.workspaces.length===0&&(0,Je.jsx)("option",{value:t.workspace,children:r.loadingWorkspaces?"loading\u2026":t.workspace}),r.workspaces.map(o=>(0,Je.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,Je.jsxs)(Ph,{label:"project \xB7 view filter",testId:"scope-project",value:t.project??Rh,onChange:o=>r.selectProject(o===Rh?void 0:o),children:[(0,Je.jsx)("option",{value:Rh,children:"\u2014 select a project \u2014"}),r.projects.map(o=>(0,Je.jsx)("option",{value:o.projectId,children:o.projectId===v4?"(unsorted inbox)":o.name!==""?o.name:o.projectId},o.projectId))]}),(0,Je.jsx)("span",{"data-testid":"project-view-hint",style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",lineHeight:1.4},children:"Filters what you VIEW. To set where Honeycomb captures, bind a folder in Projects."}),r.switchFeedback!==null&&(0,Je.jsxs)("span",{"data-testid":"switch-feedback","data-kind":r.switchFeedback.kind,style:{fontFamily:"var(--font-mono)",fontSize:10,color:r.switchFeedback.kind==="error"?"var(--severity-critical)":r.switchFeedback.kind==="persisted"?"var(--verified)":"var(--text-tertiary)"},children:[r.switchFeedback.pending===!0?"\u27F3 ":r.switchFeedback.kind==="persisted"?"\u2713 ":"",r.switchFeedback.message]})]})}var ne=W(q(),1),y4=2500,h4=5e3,Eu=8,x4=5;function b4(){return new Date().toTimeString().slice(0,8)}function S4({query:e,setQuery:t,onRecall:r,busy:o}){return(0,ne.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:18},children:[(0,ne.jsx)("div",{style:{flex:1},children:(0,ne.jsx)(sn,{mono:!0,size:"lg",value:e,placeholder:"recall\u2026 e.g. how do we deploy",onChange:n=>t(n.target.value),onKeyDown:n=>{n.key==="Enter"&&r()}})}),(0,ne.jsx)(A,{variant:"primary",size:"lg",onClick:r,disabled:o,children:o?"\u2026":"Recall"})]})}function k4(){return(0,ne.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",style:{display:"inline-flex"},children:(0,ne.jsx)(Q,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})}var _4=[{key:"storage",label:"storage",degraded:e=>e.storage==="unreachable"},{key:"embeddings",label:"semantic",degraded:e=>e.embeddings==="off"},{key:"schema",label:"schema",degraded:e=>e.schema==="missing_table"},{key:"portkey",label:"portkey",degraded:e=>e.portkey==="unconfigured"||e.portkey==="unreachable"}];function $4({reasons:e}){return e===null?null:(0,ne.jsxs)("div",{"data-testid":"health-strip",style:{display:"flex",alignItems:"center",gap:8,marginBottom:18,flexWrap:"wrap"},children:[(0,ne.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"subsystems"}),_4.map(t=>{let r=t.degraded(e),o=String(e[t.key]);return(0,ne.jsxs)(Q,{tone:r?"critical":"verified",mono:!0,dot:!0,children:[t.label,": ",o]},t.key)})]})}function cw({wire:e,pollinating:t=!1,healthReasons:r=null}){let{scope:o}=Ut(),[n,i]=ze.default.useState(bh),[a,l]=ze.default.useState([]),[s,c]=ze.default.useState([]),[d,p]=ze.default.useState([]),[f,g]=ze.default.useState(qa),[b,h]=ze.default.useState([]),[w,v]=ze.default.useState([]),[m,y]=ze.default.useState("how do we deploy"),[S,P]=ze.default.useState([]),[O,T]=ze.default.useState(!1),[B,X]=ze.default.useState(!1),[M,Ze]=ze.default.useState(0),[re,Be]=ze.default.useState(!1),[Se,Yt]=ze.default.useState([]),[oo,$i]=ze.default.useState([]),Cn=ze.default.useCallback(Y=>{$i(ue=>[`${b4()} ${Y}`,...ue].slice(0,Eu))},[]),io=ze.default.useRef(0),ke=ze.default.useCallback(async()=>{let Y=++io.current,[ue,Ee,qt,gn,Tn,Gw]=await Promise.all([e.kpis(o.project),e.sessions(),e.rules(),e.skills(),e.vaultSettings(),e.secretNames()]);Y===io.current&&(i(ue),l(Ee),c(qt),p(gn),g(Tn),h(Gw))},[e,o.project]),bt=ze.default.useCallback(async(Y,ue)=>{let Ee=await e.setSetting(Y,ue),[qt,gn]=await Promise.all([e.vaultSettings(),e.secretNames()]);return g(qt),h(gn),Ee},[e]);ze.default.useEffect(()=>{ke()},[ke]);let[Cr,wi]=ze.default.useState(!1);ze.default.useEffect(()=>{wi(!0)},[]),dn(async()=>{let Y=await e.logs(Eu);Yt(Y.slice(-Eu).reverse().map(Pr))},y4),dn(async()=>v(await e.harnesses()),h4);let Wu=ze.default.useCallback(async()=>{let Y=m.trim();if(Y===""||O)return;T(!0);let{memories:ue,degraded:Ee}=await e.recall(Y);P(ue),X(!0),Be(Ee),Ze(gn=>gn+1);let qt=ue.length>0?` \xB7 ${ue[0]?.score.toFixed(2)} top`:"";Cn(`recall "${Y}" \u2192 ${ue.length} hits${qt}`),T(!1)},[m,O,e,Cn]),Mu=ze.default.useMemo(()=>[...oo,...Se].slice(0,Eu),[oo,Se]),Zu=ze.default.useMemo(()=>Se.slice(0,x4),[Se]);return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)("section",{"data-area":"kpi-band","aria-label":"Key metrics",style:{marginBottom:22},children:[(0,ne.jsx)($4,{reasons:r}),(0,ne.jsxs)("div",{className:"kpirow",children:[(0,ne.jsx)(Gt,{label:"Memories",value:n.memoryCount.toLocaleString(),accent:"honey"}),(0,ne.jsx)(Gt,{label:"Turns",value:n.turnCount||n.sessionCount,accent:"neutral"}),(0,ne.jsx)(Gt,{label:"Est. savings",value:n.estimatedSavings.toLocaleString(),unit:"tok",accent:"verified"}),(0,ne.jsx)(Gt,{label:"Team skills",value:n.teamSkillCount,accent:"pollinate"})]})]}),(0,ne.jsxs)("section",{"data-area":"recall-area","aria-label":"Memory search",style:{marginBottom:22},children:[(0,ne.jsx)(S4,{query:m,setQuery:y,onRecall:Wu,busy:O}),B&&re&&(0,ne.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,ne.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,ne.jsx)(k4,{})]}),(0,ne.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:S.length===0?B&&(0,ne.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):S.map((Y,ue)=>(0,ne.jsx)("div",{className:"mem-enter",style:{animationDelay:`${ue*55}ms`},children:(0,ne.jsx)(Es,{...Y,pollinating:t&&ue===1})},Y.memoryKey))},M)]}),(0,ne.jsx)("section",{"data-area":"harness-area","aria-label":"Harnesses and activity",children:Cr&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("div",{style:{marginBottom:16},children:(0,ne.jsx)(rw,{harnesses:w,streamLines:Zu})}),(0,ne.jsxs)("div",{className:"grid2",style:{marginBottom:16},children:[(0,ne.jsxs)("div",{className:"col",children:[(0,ne.jsx)(M0,{sessions:a}),(0,ne.jsx)(Z0,{rules:s})]}),(0,ne.jsxs)("div",{className:"col",children:[(0,ne.jsx)($u,{catalog:f.catalog,settings:f.settings,secretNames:b,onSave:bt}),(0,ne.jsx)(B0,{skills:d})]})]}),(0,ne.jsx)(Rr,{lines:Mu})]})})]})}var Ge=W(_e(),1);var Th=W(_e(),1);var At=W(_e(),1);var ae=W(q(),1),w4="honeycomb project bind";function uw(e){let r=e.replace(/[\\/]+$/,"").split(/[\\/]/);return r[r.length-1]??""}function z4({child:e,onDescend:t}){return(0,ae.jsxs)("button",{type:"button","data-testid":"browse-row","data-path":e.path,onClick:()=>t(e.path),style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,ae.jsx)("svg",{width:15,height:15,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none",color:"var(--text-tertiary)"},children:(0,ae.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),(0,ae.jsx)("span",{style:{flex:1,fontFamily:"var(--font-mono)",fontSize:13,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.name}),e.isGitRepo&&(0,ae.jsx)(Q,{tone:"honey",mono:!0,children:"git"})]})}function Cu({wire:e,onBound:t,onCancel:r}){let[o,n]=At.default.useState(xh),[i,a]=At.default.useState(!1),[l,s]=At.default.useState(null),[c,d]=At.default.useState(""),[p,f]=At.default.useState(!1),[g,b]=At.default.useState(""),h=At.default.useRef(!1),w=At.default.useCallback(async O=>{let T=await e.fsBrowse(O);n(T),a(!0)},[e]);At.default.useEffect(()=>{w(void 0)},[w]);let v=i&&o.path===""&&o.children.length===0,m=o.error!==void 0&&o.error!=="",y=At.default.useCallback(()=>{o.path!==""&&(s({path:o.path,isGitRepo:!1}),d(uw(o.path)),b(""))},[o.path]),S=At.default.useCallback(O=>{s({path:O.path,isGitRepo:O.isGitRepo}),d(uw(O.path)),b("")},[]),P=At.default.useCallback(async()=>{if(l===null||h.current)return;h.current=!0,f(!0),b("");let O=await e.bindProject({path:l.path,...c.trim()!==""?{name:c.trim()}:{}});if(f(!1),h.current=!1,O.bound){t(O);return}b(O.error!==void 0&&O.error!==""?O.error:"Could not bind that folder.")},[l,c,e,t]);return(0,ae.jsx)("div",{"data-testid":"folder-picker",style:{display:"flex",flexDirection:"column",gap:14},children:v?(0,ae.jsxs)("div",{"data-testid":"picker-unavailable",style:{display:"flex",flexDirection:"column",gap:8,padding:"16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,ae.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)"},children:"The folder browser isn\u2019t available right now."}),(0,ae.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["Bind a folder from your terminal instead: ",(0,ae.jsx)("code",{style:{color:"var(--honey)"},children:w4})]}),r!==void 0&&(0,ae.jsx)("div",{children:(0,ae.jsx)(A,{variant:"ghost",size:"sm",onClick:r,children:"Close"})})]}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,ae.jsx)("span",{"data-testid":"picker-path",style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.path!==""?o.path:"loading\u2026"}),(0,ae.jsx)(A,{variant:"ghost",size:"sm",onClick:()=>{w(o.parent??void 0)},disabled:o.parent===null,title:o.parent===null?"at the allowed root":"up one level",children:"\u2191 up"}),(0,ae.jsx)(A,{variant:"secondary",size:"sm",onClick:y,disabled:o.path==="","data-testid":"select-current",children:"Use this folder"})]}),(0,ae.jsx)("div",{"data-testid":"browse-list",style:{display:"flex",flexDirection:"column",gap:6,maxHeight:280,overflowY:"auto"},children:i?o.children.length===0?(0,ae.jsx)("div",{style:{padding:"10px 4px",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:m?"This folder couldn\u2019t be read.":"No sub-folders here \u2014 use this folder, or go up."}):o.children.map(O=>(0,ae.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,ae.jsx)("div",{style:{flex:1,minWidth:0},children:(0,ae.jsx)(z4,{child:O,onDescend:T=>{w(T)}})}),(0,ae.jsx)(A,{variant:"ghost",size:"sm",onClick:()=>S(O),"data-testid":"select-child",title:"select this folder to bind",children:"select"})]},O.path)):(0,ae.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),l!==null&&(0,ae.jsxs)("div",{"data-testid":"picker-confirm",style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,ae.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,ae.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"folder"}),(0,ae.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:l.path}),l.isGitRepo&&(0,ae.jsx)(Q,{tone:"honey",mono:!0,children:"git"})]}),(0,ae.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,ae.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"project name"}),(0,ae.jsx)(sn,{mono:!0,value:c,placeholder:"project name",onChange:O=>d(O.target.value),"data-testid":"picker-name"})]}),(0,ae.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,ae.jsx)(A,{variant:"primary",onClick:()=>{P()},disabled:p||c.trim()==="","data-testid":"picker-bind",children:p?"Binding\u2026":"Bind project"}),r!==void 0&&(0,ae.jsx)(A,{variant:"ghost",onClick:r,disabled:p,children:"Cancel"}),g!==""&&(0,ae.jsx)("span",{"data-testid":"picker-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})]})})}var Ft=W(q(),1);function yi({surface:e}){return(0,Ft.jsxs)("div",{"data-testid":"needs-project-selection",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:320,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Ft.jsx)("div",{style:{fontSize:15,color:"var(--text-secondary)"},children:"No project selected."}),(0,Ft.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:["Pick a project in the scope switcher (top of the sidebar) to view its ",e,"."]})]})}function dw({wire:e,navigate:t,assetBase:r}){let[o,n]=Th.default.useState(!1),i=Th.default.useCallback(a=>{t(jh)},[t]);return(0,Ft.jsxs)("div",{"data-testid":"first-run-bind",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Ft.jsx)("img",{src:`${r}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""}),(0,Ft.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:480},children:[(0,Ft.jsx)("div",{style:{fontSize:17,fontWeight:700,color:"var(--text-primary)",letterSpacing:"-0.02em"},children:"No active projects?"}),(0,Ft.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)",lineHeight:1.5},children:"Pick a folder to start \u2014 point Honeycomb at the repo or folder you want it to remember, and it begins capturing there."})]}),o?(0,Ft.jsx)("div",{style:{width:"100%",maxWidth:620,textAlign:"left"},children:(0,Ft.jsx)(Cu,{wire:e,onBound:i,onCancel:()=>n(!1)})}):(0,Ft.jsx)(A,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"first-run-pick",children:"Pick a folder to start"})]})}var H=W(q(),1),I4=8e3,hi={width:1600,height:1e3},Oh=.25,Dh=4,Tu=1.15,pw={scale:1,tx:0,ty:0};function Nh(e,t,r){return Math.min(r,Math.max(t,e))}function P4(e){let t=hi.width/e.scale,r=hi.height/e.scale;return`${e.tx} ${e.ty} ${t} ${r}`}function R4(e){let t=new Set,r=[];for(let o of e.nodes)t.has(o.kind)||(t.add(o.kind),r.push(o.kind));return r}function E4(e,t){if(t.size===0)return e;let r=e.nodes.filter(i=>!t.has(i.kind)),o=new Set(r.map(i=>i.id)),n=e.edges.filter(i=>o.has(i.from)&&o.has(i.to));return{built:e.built,nodes:r,edges:n}}function C4(e,t){let r=t.trim().toLowerCase();return r===""?null:e.nodes.find(n=>n.id.toLowerCase().includes(r)||n.label.toLowerCase().includes(r))?.id??null}function T4(e,t){let r=hi.width/t,o=hi.height/t;return{scale:t,tx:e.x-r/2,ty:e.y-o/2}}function j4({kind:e,count:t,hidden:r,onToggle:o}){let n=ku[e]??_u;return(0,H.jsxs)("button",{type:"button",role:"switch","aria-checked":!r,"data-testid":`kind-toggle-${e}`,"data-hidden":r,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:7,height:28,padding:"0 11px",background:r?"var(--bg-elevated)":"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-full)",color:r?"var(--text-tertiary)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",opacity:r?.55:1},children:[(0,H.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:n,flex:"none"}}),e||"node",(0,H.jsx)("span",{style:{color:"var(--text-tertiary)"},children:t})]})}function fw({kind:e,labels:t}){return(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:3,marginBottom:8},children:[(0,H.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:[e||"\u2014"," \xB7 ",t.length]}),(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-word"},children:t.join(", ")})]})}function O4({node:e,graph:t,onClear:r}){let{outgoing:o,incoming:n}=Rk(e.id,t.edges),i=s=>t.nodes.find(c=>c.id===s)?.label||s,a=s=>s.map(i),l=o.length>0||n.length>0;return(0,H.jsxs)("aside",{"data-testid":"graph-detail-panel",style:{width:320,flex:"none",alignSelf:"stretch",padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,H.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:ku[e.kind]??_u,flex:"none"}}),(0,H.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,H.jsx)("span",{style:{flex:1}}),(0,H.jsx)(Q,{tone:"neutral",mono:!0,children:e.kind||"node"})]}),(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),(0,H.jsx)("div",{style:{height:1,background:"var(--border-subtle)",margin:"2px 0"}}),!l&&(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no neighbors"}),o.length>0&&(0,H.jsxs)("div",{"data-testid":"detail-outgoing",children:[(0,H.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Outgoing"}),o.map(s=>(0,H.jsx)(fw,{kind:s.kind,labels:a(s.ids)},`out-${s.kind}`))]}),n.length>0&&(0,H.jsxs)("div",{"data-testid":"detail-incoming",children:[(0,H.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Incoming"}),n.map(s=>(0,H.jsx)(fw,{kind:s.kind,labels:a(s.ids)},`in-${s.kind}`))]}),(0,H.jsx)("button",{type:"button",onClick:r,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",alignSelf:"flex-start",marginTop:"auto"},children:"clear selection"})]})}function D4({graph:e,selected:t,transform:r,onSelect:o,onClear:n,onPanZoom:i}){let a=Ge.default.useMemo(()=>Cs(e.nodes,e.edges,hi),[e]),l=Ge.default.useRef(null),s=f=>{l.current={x:f.clientX,y:f.clientY,tx:r.tx,ty:r.ty},f.currentTarget.setPointerCapture?.(f.pointerId)},c=f=>{let g=l.current;if(g===null)return;let b=(f.clientX-g.x)/r.scale,h=(f.clientY-g.y)/r.scale;i({scale:r.scale,tx:g.tx-b,ty:g.ty-h})},d=()=>{l.current=null},p=f=>{let g=f.deltaY<0?Tu:1/Tu,b=Nh(r.scale*g,Oh,Dh);i({scale:b,tx:r.tx,ty:r.ty})};return(0,H.jsxs)("svg",{"data-testid":"graph-canvas",viewBox:P4(r),onPointerDown:s,onPointerMove:c,onPointerUp:d,onPointerLeave:d,onWheel:p,onClick:n,style:{width:"100%",height:"100%",display:"block",cursor:"grab",touchAction:"none",background:"var(--bg-canvas)"},children:[e.edges.map((f,g)=>{let b=a.get(f.from),h=a.get(f.to);return b===void 0||h===void 0?null:(0,H.jsx)("line",{x1:b.x,y1:b.y,x2:h.x,y2:h.y,stroke:"var(--border-strong)",strokeWidth:1.5},g)}),e.nodes.map(f=>{let g=a.get(f.id);if(g===void 0)return null;let b=f.id===t;return(0,H.jsxs)("g",{role:"button",tabIndex:0,"aria-label":`node ${f.label}`,"aria-pressed":b,"data-node-id":f.id,style:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),o(f.id)},children:[b&&(0,H.jsx)("circle",{cx:g.x,cy:g.y,r:16,fill:"none",stroke:"var(--honey)",strokeWidth:2}),(0,H.jsx)("circle",{cx:g.x,cy:g.y,r:b?12:9,fill:ku[f.kind]??_u}),(0,H.jsx)("text",{x:g.x+15,y:g.y+4,fontFamily:"var(--font-mono)",fontSize:13,fill:"var(--text-secondary)",children:f.label})]},f.id)})]})}function N4(){return(0,H.jsxs)("div",{"data-testid":"graph-empty-state",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:360,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,H.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No memory graph yet for this workspace."}),(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:"The knowledge graph is populated automatically as memories and entities accrue."})]})}function mw({label:e,ariaLabel:t,onClick:r}){return(0,H.jsx)("button",{type:"button","aria-label":t,onClick:r,style:{width:30,height:30,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:14,lineHeight:1,cursor:"pointer"},children:e})}function gw({wire:e}){let{scope:t}=Ut(),r=t.project,[o,n]=Ge.default.useState(Ya),[i,a]=Ge.default.useState(null),[l,s]=Ge.default.useState(new Set),[c,d]=Ge.default.useState(""),[p,f]=Ge.default.useState(pw);Ge.default.useEffect(()=>{if(r===void 0){n(Ya);return}let re=!0,Be=async()=>{if(!re||Pn())return;let Yt=await e.memoryGraph(r);re&&n(Yt)};Be();let Se=setInterval(()=>{Be()},I4);return()=>{re=!1,clearInterval(Se)}},[e,r]);let g=Ge.default.useMemo(()=>R4(o),[o]),b=Ge.default.useMemo(()=>E4(o,l),[o,l]),{graph:h,capped:w}=Ge.default.useMemo(()=>kh(b,xu),[b]),v=o.meta?.truncated??!1,m=v||w,y=i!==null?h.nodes.find(re=>re.id===i)??null:null,S=Ge.default.useCallback(re=>{s(Be=>{let Se=new Set(Be);return Se.has(re)?Se.delete(re):Se.add(re),Se})},[]),P=Ge.default.useCallback(re=>{d(re);let Be=C4(h,re);if(Be===null)return;a(Be);let Yt=Cs(h.nodes,h.edges,hi).get(Be);Yt!==void 0&&f(T4(Yt,Math.max(p.scale,1.4)))},[h,p.scale]),O=Ge.default.useCallback(()=>f(pw),[]),T=Ge.default.useCallback(()=>f(re=>({...re,scale:Nh(re.scale*Tu,Oh,Dh)})),[]),B=Ge.default.useCallback(()=>f(re=>({...re,scale:Nh(re.scale/Tu,Oh,Dh)})),[]),X=Ge.default.useCallback(re=>a(Be=>Be===re?null:re),[]),M=Ge.default.useCallback(()=>a(null),[]),Ze=`${h.nodes.length} nodes \xB7 ${h.edges.length} edges`;return(0,H.jsx)(qe,{title:"Memory Graph",eyebrow:r===void 0?"memory graph":Ze,children:r===void 0?(0,H.jsx)(yi,{surface:"memory graph"}):o.built?(0,H.jsxs)(H.Fragment,{children:[m&&(0,H.jsxs)("div",{"data-testid":"graph-truncation-notice",style:{display:"flex",alignItems:"center",gap:8,marginBottom:14,padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[(0,H.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--severity-warning)",flex:"none"}}),v?`Showing the ${(o.meta?.shownNodes??o.nodes.length).toLocaleString()} most-connected of ${(o.meta?.totalNodes??o.nodes.length).toLocaleString()} nodes. Use search and kind filters to focus.`:`Rendering is capped at ${xu.toLocaleString()} nodes. Use search and kind filters to focus.`]}),(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14,flexWrap:"wrap"},children:[(0,H.jsx)("input",{"aria-label":"search nodes","data-testid":"graph-search",type:"text",value:c,placeholder:"search id or label\u2026",onChange:re=>P(re.target.value),style:{height:30,padding:"0 12px",minWidth:220,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}}),(0,H.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:g.map(re=>{let Be=o.nodes.filter(Se=>Se.kind===re).length;return(0,H.jsx)(j4,{kind:re,count:Be,hidden:l.has(re),onToggle:()=>S(re)},re)})}),(0,H.jsx)("span",{style:{flex:1}}),(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,H.jsx)(mw,{label:"\u2212",ariaLabel:"zoom out",onClick:B}),(0,H.jsx)(mw,{label:"+",ariaLabel:"zoom in",onClick:T}),(0,H.jsx)("button",{type:"button","data-testid":"fit-view",onClick:O,style:{height:30,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"fit"})]})]}),(0,H.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"stretch"},children:[(0,H.jsx)("div",{style:{flex:1,minWidth:0,height:"70vh",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden"},children:(0,H.jsx)(D4,{graph:h,selected:y?.id??null,transform:p,onSelect:X,onClear:M,onPanZoom:f})}),y!==null&&(0,H.jsx)(O4,{node:y,graph:o,onClear:M})]})]}):(0,H.jsx)(N4,{})})}var Oe=W(_e(),1);var U=W(q(),1),vw=30,L4=50,yw=50;function U4(e){return e>=500?"critical":e>=400?"warning":e>=200&&e<300?"verified":"neutral"}function A4(e){return(e||"").slice(11,19)||(e||"").slice(0,8)}function bw({record:e,live:t}){let r=e.status,o=e.org??"",n=e.durationMs;return(0,U.jsxs)("div",{"data-testid":"log-row",style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:t?"var(--text-primary)":"var(--text-tertiary)"},children:A4(e.time)}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:"var(--text-secondary)"},children:e.method}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:e.path,children:e.path}),(0,U.jsx)(Q,{tone:U4(r),mono:!0,children:r>0?r:"\u2014"}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:48},children:typeof n=="number"?`${Math.round(n)}ms`:""}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:60},children:o})]})}function F4(){let e=(t,r="left")=>(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:r},children:t});return(0,U.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"4px 6px 8px"},children:[e("time"),e("method"),e("path"),e("status"),e("dur","right"),e("org","right")]})}var xi={since:"",until:"",status:"",path:"",org:""};function hw(e){let t={limit:L4};return e.since!==""&&(t.since=e.since),e.until!==""&&(t.until=e.until),e.status!==""&&(t.status=e.status),e.path!==""&&(t.path=e.path),e.org!==""&&(t.org=e.org),t}function rl({label:e,value:t,placeholder:r,onChange:o,testid:n}){return(0,U.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:130,flex:"1 1 130px"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)"},children:e}),(0,U.jsx)(sn,{mono:!0,size:"sm",value:t,placeholder:r,onChange:i=>o(i.target.value),"data-testid":n})]})}function W4({draft:e,onChangeField:t,onApply:r,onClear:o}){return(0,U.jsx)(ie,{title:"Filters",eyebrow:"time \xB7 status \xB7 path \xB7 harness",children:(0,U.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:12,alignItems:"flex-end"},children:[(0,U.jsx)(rl,{label:"since (ISO)",value:e.since,placeholder:"2026-06-22T00:00:00Z",onChange:n=>t("since",n),testid:"filter-since"}),(0,U.jsx)(rl,{label:"until (ISO)",value:e.until,placeholder:"2026-06-22T23:59:59Z",onChange:n=>t("until",n),testid:"filter-until"}),(0,U.jsx)(rl,{label:"status / level",value:e.status,placeholder:"5xx or 404",onChange:n=>t("status",n),testid:"filter-status"}),(0,U.jsx)(rl,{label:"path",value:e.path,placeholder:"/api/memories",onChange:n=>t("path",n),testid:"filter-path"}),(0,U.jsx)(rl,{label:"harness / org",value:e.org,placeholder:"org id",onChange:n=>t("org",n),testid:"filter-org"}),(0,U.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,U.jsx)(A,{variant:"primary",size:"sm","data-testid":"filter-apply",onClick:r,children:"Apply"}),(0,U.jsx)(A,{variant:"ghost",size:"sm","data-testid":"filter-clear",onClick:o,children:"Clear"})]})]})})}function M4(e,t){let r=[t,...e];return r.length>vw?r.slice(0,vw):r}function Z4({records:e,open:t,onToggle:r}){return(0,U.jsx)(ie,{title:"Live tail",eyebrow:`${e.length} streaming`,right:(0,U.jsx)("button",{type:"button","data-testid":"live-toggle","aria-expanded":t,onClick:r,style:{background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:11,padding:"4px 10px",cursor:"pointer"},children:t?"collapse":"expand"}),children:t?e.length===0?(0,U.jsx)("div",{"data-testid":"live-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"waiting for daemon activity\u2026"}):(0,U.jsx)("div",{"data-testid":"live-list",children:e.map((o,n)=>(0,U.jsx)(bw,{record:o,live:!0},`${o.time}-${o.path}-${n}`))}):(0,U.jsx)("div",{style:{padding:"4px",fontSize:12,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"live tail collapsed"})})}function B4({page:e,loading:t,error:r,onLoadMore:o}){return(0,U.jsx)(ie,{title:"History",eyebrow:e.persistent?`${e.count} on this page`:"history unavailable",children:r?(0,U.jsx)("div",{"data-testid":"history-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load log history."}):t&&e.records.length===0?(0,U.jsx)("div",{"data-testid":"history-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.persistent?e.records.length===0?(0,U.jsx)("div",{"data-testid":"history-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No logs match these filters."}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(F4,{}),(0,U.jsx)("div",{"data-testid":"history-list",children:e.records.map((n,i)=>(0,U.jsx)(bw,{record:n},`${n.time}-${n.path}-${n.status}-${i}`))}),e.nextCursor!==null&&(0,U.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,U.jsx)(A,{variant:"secondary",size:"sm",disabled:t,"data-testid":"history-load-more",onClick:o,children:t?"loading\u2026":"Load more"})})]}):(0,U.jsx)("div",{"data-testid":"history-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Durable log history is unavailable on this daemon. Live tail above still streams current activity."})})}function ol({label:e,children:t}){return(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function V4({turn:e,onBack:t}){return(0,U.jsx)(ie,{title:"Turn detail",eyebrow:e.sessionId,right:(0,U.jsx)(A,{variant:"ghost",size:"sm","data-testid":"turn-back",onClick:t,children:"\u2039 Back"}),children:(0,U.jsxs)("div",{"data-testid":"turn-detail",children:[(0,U.jsx)(ol,{label:"turn id",children:e.sessionId||"\u2014"}),(0,U.jsx)(ol,{label:"project",children:e.project||"\u2014"}),(0,U.jsx)(ol,{label:"timestamp",children:e.startedAt||"\u2014"}),(0,U.jsx)(ol,{label:"event count",children:e.eventCount}),(0,U.jsx)(ol,{label:"status",children:(0,U.jsx)(Q,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})})]})})}function H4({turn:e,onOpen:t}){return(0,U.jsxs)("button",{type:"button","data-testid":`turn-row-${e.sessionId}`,onClick:()=>t(e),style:{display:"grid",gridTemplateColumns:"96px 1fr auto auto",alignItems:"center",gap:12,width:"100%",padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",background:"transparent",border:"none",borderTopColor:"var(--border-subtle)",cursor:"pointer",textAlign:"left"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.sessionId}),(0,U.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.project}),(0,U.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[e.startedAt,e.eventCount>0?` \xB7 ${e.eventCount}e`:""]}),(0,U.jsx)(Q,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})]})}function J4({turns:e,loading:t,error:r,hasMore:o,onOpen:n,onLoadMore:i}){return(0,U.jsx)(ie,{title:"Turns",eyebrow:`${e.length} captured`,children:r?(0,U.jsx)("div",{"data-testid":"turns-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load turns."}):t&&e.length===0?(0,U.jsx)("div",{"data-testid":"turns-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.length===0?(0,U.jsx)("div",{"data-testid":"turns-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No turns captured yet."}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{"data-testid":"turns-list",children:e.map((a,l)=>(0,U.jsx)(H4,{turn:a,onOpen:n},a.sessionId||l))}),o&&(0,U.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,U.jsx)(A,{variant:"secondary",size:"sm",disabled:t,"data-testid":"turns-load-more",onClick:i,children:t?"loading\u2026":"Load more"})})]})})}function xw({label:e,active:t,onClick:r,testid:o}){return(0,U.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:e})}function Sw({wire:e,daemonUp:t}){let[r,o]=Oe.default.useState("requests"),[n,i]=Oe.default.useState(_h),[a,l]=Oe.default.useState(xi),[s,c]=Oe.default.useState(xi),[d,p]=Oe.default.useState(!1),[f,g]=Oe.default.useState(!1),[b,h]=Oe.default.useState([]),[w,v]=Oe.default.useState(!0),[m,y]=Oe.default.useState([]),[S,P]=Oe.default.useState(null),[O,T]=Oe.default.useState(!1),[B,X]=Oe.default.useState(!1),[M,Ze]=Oe.default.useState(null),re=Oe.default.useCallback(async ke=>{p(!0),g(!1);try{let bt=await e.logsHistory(hw(ke));i(bt)}catch{g(!0)}finally{p(!1)}},[e]),Be=Oe.default.useCallback(async()=>{if(n.nextCursor!==null){p(!0);try{let ke=await e.logsHistory({...hw(a),cursor:n.nextCursor});i(bt=>({records:[...bt.records,...ke.records],count:bt.count+ke.count,nextCursor:ke.nextCursor,persistent:ke.persistent}))}catch{g(!0)}finally{p(!1)}}},[e,a,n.nextCursor]),Se=Oe.default.useCallback(async()=>{T(!0),X(!1);try{let ke=await e.turnsHistory({limit:yw});y(ke.sessions),P(ke.nextCursor)}catch{X(!0)}finally{T(!1)}},[e]),Yt=Oe.default.useCallback(async()=>{if(S!==null){T(!0);try{let ke=await e.turnsHistory({limit:yw,cursor:S});y(bt=>[...bt,...ke.sessions]),P(ke.nextCursor)}catch{X(!0)}finally{T(!1)}}},[e,S]);Oe.default.useEffect(()=>{re(xi),Se()},[re,Se]),Oe.default.useEffect(()=>{let ke=!0,bt=e.logsStream(Cr=>{ke&&h(wi=>M4(wi,Cr))});return()=>{ke=!1,bt()}},[e]);let oo=Oe.default.useCallback(()=>{l(s),re(s)},[s,re]),$i=Oe.default.useCallback(()=>{c(xi),l(xi),re(xi)},[re]),Cn=Oe.default.useCallback((ke,bt)=>{c(Cr=>({...Cr,[ke]:bt}))},[]);return(0,U.jsx)(qe,{title:"Logs",eyebrow:t?"request log \xB7 turns":"daemon offline",right:(0,U.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,U.jsx)(xw,{label:"Requests",active:r==="requests",onClick:()=>o("requests"),testid:"tab-requests"}),(0,U.jsx)(xw,{label:"Turns",active:r==="turns",onClick:()=>o("turns"),testid:"tab-turns"})]}),children:r==="requests"?(0,U.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,U.jsx)(Z4,{records:b,open:w,onToggle:()=>v(ke=>!ke)}),(0,U.jsx)(W4,{draft:s,onChangeField:Cn,onApply:oo,onClear:$i}),(0,U.jsx)(B4,{page:n,loading:d,error:f,onLoadMore:()=>{Be()}})]}):M!==null?(0,U.jsx)(V4,{turn:M,onBack:()=>Ze(null)}):(0,U.jsx)(J4,{turns:m,loading:O,error:B,hasMore:S!==null,onOpen:ke=>Ze(ke),onLoadMore:()=>{Yt()}})})}var te=W(_e(),1);var pn=W(_e(),1);var J=W(q(),1),G4=6,X4=150;function K4(e){return new Promise(t=>setTimeout(t,e))}async function ju(e,t,r,...o){let n=e[t];if(typeof n!="function")return r;try{return await n.apply(e,o)??r}catch{return r}}var Y4={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Er({label:e,value:t}){return(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:96},children:[(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:e}),(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:16,fontWeight:600,color:"var(--text-primary)"},children:t})]})}function q4(e){return e>=.66?"verified":e>=.33?"honey":"warning"}function Q4(e){let t=(r,o)=>r===void 0||!Number.isFinite(r)?o:Math.min(1,Math.max(0,r));return t(e.freshness,1)*t(e.calibrationConfidence,1)*(1-t(e.staleness,0))*t(e.kappa,1)}function eT(e){return e!==void 0&&Number.isFinite(e)?Math.min(1,Math.max(0,e)).toFixed(2):"\u2014"}function tT({lower:e,upper:t,accuracy:r}){let o=Math.round(Math.min(1,Math.max(0,r))*100);return(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",minWidth:64},children:[e.toFixed(2),"\u2013",t.toFixed(2)]}),(0,J.jsx)("div",{style:{flex:1,height:8,background:"var(--bg-subtle)",borderRadius:4,overflow:"hidden"},children:(0,J.jsx)("div",{style:{width:`${o}%`,height:"100%",background:"var(--honey)"}})}),(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-secondary)",minWidth:32,textAlign:"right"},children:[o,"%"]})]})}var nT=["review","supersede","keep-both"];function rT({conflict:e,onResolve:t}){let[r,o]=pn.default.useState("review"),[n,i]=pn.default.useState(e.memoryAId),[a,l]=pn.default.useState(!1),s=async()=>{a||(l(!0),await t(e.id,r,r==="supersede"?n:""),l(!1))};return(0,J.jsxs)("div",{"data-testid":"conflict-row","data-conflict-id":e.id,style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,J.jsx)(Q,{tone:"warning",mono:!0,dot:!0,children:e.status||"open"}),(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:[e.memoryAId," \u21C4 ",e.memoryBId]})]}),(0,J.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,J.jsx)("select",{"aria-label":"verdict",value:r,onChange:c=>o(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12},children:nT.map(c=>(0,J.jsx)("option",{value:c,children:c},c))}),r==="supersede"&&(0,J.jsxs)("select",{"aria-label":"winner",value:n,onChange:c=>i(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12,maxWidth:180},children:[(0,J.jsxs)("option",{value:e.memoryAId,children:["winner: ",e.memoryAId]}),(0,J.jsxs)("option",{value:e.memoryBId,children:["winner: ",e.memoryBId]})]}),(0,J.jsx)(A,{variant:"secondary",size:"sm",onClick:()=>{s()},disabled:a,children:a?"\u2026":"Resolve"})]})]})}function kw({wire:e}){let[t,r]=pn.default.useState([]),[o,n]=pn.default.useState([]),[i,a]=pn.default.useState(hu),[l,s]=pn.default.useState(!1),c=pn.default.useCallback(async()=>{let w=await ju(e,"lifecycleConflicts",[],"open");return r(w),w},[e]);pn.default.useEffect(()=>{let w=!0;return(async()=>{let[v,m,y]=await Promise.all([ju(e,"lifecycleConflicts",[],"open"),ju(e,"lifecycleStaleRefs",[]),ju(e,"calibration",hu)]);w&&(r(v),n(m),a(y),s(!0))})(),()=>{w=!1}},[e]);let d=pn.default.useCallback(async(w,v,m)=>{if(!(typeof e.resolveConflict=="function"?await e.resolveConflict(w,{verdict:v,...m!==""?{winnerId:m}:{}}):!1)){await c();return}for(let S=0;S<G4;S+=1){if(!(await c()).some(O=>O.id===w))return;await K4(X4)}},[e,c]),p=void 0,f=o.length>0?Math.min(1,o.length/Math.max(o.length,8)):0,g=i.identity?1:Math.max(0,1-i.ece),b=t.length>0?.5:1,h=Q4({freshness:p,calibrationConfidence:g,staleness:f,kappa:b});return(0,J.jsxs)("div",{"data-testid":"lifecycle-panel",style:{...Y4,display:"flex",flexDirection:"column",gap:16},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,J.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Memory health"}),(0,J.jsx)(Q,{tone:q4(h),mono:!0,dot:!0,children:(0,J.jsxs)("span",{"data-testid":"health-badge",children:["H ",h.toFixed(2)]})})]}),(0,J.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,J.jsx)(Er,{label:"freshness",value:eT(p)}),(0,J.jsx)(Er,{label:"calibrated confidence",value:i.identity?"\u2014":g.toFixed(2)}),(0,J.jsx)(Er,{label:"open conflicts",value:String(t.length)}),(0,J.jsx)(Er,{label:"stale refs",value:String(o.length)}),(0,J.jsx)(Er,{label:"ECE",value:i.identity?"dormant":i.ece.toFixed(3)})]}),(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,J.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Conflicts (",t.length,")"]}),l?t.length===0?(0,J.jsx)("span",{"data-testid":"conflicts-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no open conflicts."}):t.map(w=>(0,J.jsx)(rT,{conflict:w,onResolve:d},w.id)):(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,J.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Stale references (",o.length,")"]}),l?o.length===0?(0,J.jsx)("span",{"data-testid":"stale-refs-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no stale references."}):o.map(w=>(0,J.jsxs)("div",{"data-testid":"stale-ref-row",style:{display:"flex",gap:8,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:[(0,J.jsx)("span",{style:{color:"var(--honey)",wordBreak:"break-all"},children:w.memoryId}),(0,J.jsx)("span",{style:{color:"var(--text-tertiary)"},children:w.staleRefs.length>0?w.staleRefs.join(", "):"(refs unrecorded)"})]},w.memoryId)):(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,J.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Calibration"}),i.identity?(0,J.jsx)("span",{"data-testid":"calibration-dormant",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"calibration dormant \u2014 confidence weighting (c) stays 0 until the curve is fit."}):(0,J.jsxs)("div",{"data-testid":"calibration-view",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,J.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,J.jsx)(Er,{label:"ECE",value:i.ece.toFixed(3)}),(0,J.jsx)(Er,{label:"Brier",value:i.brier.toFixed(3)}),(0,J.jsx)(Er,{label:"samples",value:String(i.nSamples)})]}),(0,J.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:i.reliabilityDiagram.map(w=>(0,J.jsx)(tT,{lower:w.lower,upper:w.upper,accuracy:w.accuracy},`${w.lower}-${w.upper}`))})]})]})]})}var _w=["fact","convention","preference","decision","gotcha","reference"],Ou="fact",Lh=Object.freeze({fact:"A stable, verifiable truth about the system, codebase, or domain.",convention:"How things are done here: idioms, standards, patterns to follow by default.",preference:"The user/team's stated way of working; corrections and do/don't guidance.",decision:"An architectural or design choice and its rationale; don't relitigate it.",gotcha:"A non-obvious trap, failure mode, or constraint to watch out for.",reference:"A pointer to an external resource (URL, dashboard, ticket, doc)."});var _=W(q(),1),$w=50,oT=2500,iT=12,aT=["/api/memories","/api/diagnostics/pollinate","/api/diagnostics/compact"],lT=5,sT=150;function cT(e){return new Promise(t=>setTimeout(t,e))}function uT(e){return aT.some(t=>e.startsWith(t))}function bi({label:e,value:t}){return t===""?null:(0,_.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline"},children:[(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",minWidth:84,textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t})]})}var il={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function dT({record:e,onOpen:t}){return(0,_.jsxs)("button",{type:"button","data-testid":"memory-row","data-memory-id":e.id,onClick:()=>t(e.id),style:{display:"flex",alignItems:"center",gap:12,width:"100%",textAlign:"left",padding:"11px 14px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:160},children:e.id}),(0,_.jsx)("span",{style:{flex:1,fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.content}),(0,_.jsx)(Q,{tone:"neutral",mono:!0,children:e.type||"fact"})]})}function pT({record:e,onClose:t,onEdit:r,onForget:o}){let[n,i]=te.default.useState(!1),[a,l]=te.default.useState(e.content),[s,c]=te.default.useState(""),[d,p]=te.default.useState(!1),[f,g]=te.default.useState(""),[b,h]=te.default.useState(!1);te.default.useEffect(()=>{l(e.content),c(""),i(!1),h(!1)},[e.id,e.content,e.version]);let w=s.trim()==="",v=a.trim()==="",m=async()=>{if(d||v||w)return;p(!0),g("");let S=await r(e.id,a,s);p(!1),i(!1),c(""),g(S??"Save failed \u2014 the memory is unchanged.")},y=async()=>{if(d)return;p(!0),g("");let S=await o(e.id,"forgotten via dashboard");p(!1),S===null&&g("Forget failed \u2014 the memory is unchanged.")};return(0,_.jsxs)("div",{"data-testid":"memory-detail",style:{...il,display:"flex",flexDirection:"column",gap:14},children:[(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:e.id}),(0,_.jsx)(Q,{tone:"neutral",mono:!0,children:e.type||"fact"}),e.hasEmbedding&&(0,_.jsx)(Q,{tone:"pollinate",mono:!0,dot:!0,children:"semantic"}),(0,_.jsx)("span",{style:{flex:1}}),(0,_.jsx)(A,{variant:"ghost",size:"sm",onClick:t,children:"\u2190 back"})]}),n?(0,_.jsx)("textarea",{"aria-label":"edit content",value:a,onChange:S=>l(S.target.value),rows:5,style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}):(0,_.jsx)("div",{"data-testid":"memory-content",style:{fontSize:14,lineHeight:"21px",color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content}),(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:5,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,_.jsx)(bi,{label:"scope",value:[e.visibility,e.agentId].filter(S=>S!=="").join(" \xB7 ")}),(0,_.jsx)(bi,{label:"source",value:[e.sourceType,e.sourceId].filter(S=>S!=="").join(" \xB7 ")}),(0,_.jsx)(bi,{label:"version",value:e.version>0?String(e.version):""}),(0,_.jsx)(bi,{label:"indexed",value:e.hasEmbedding?"yes (semantic)":"no (lexical only)"}),(0,_.jsx)(bi,{label:"created",value:e.createdAt}),(0,_.jsx)(bi,{label:"updated",value:e.updatedAt})]}),(0,_.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Edits append a new version; the prior is kept in history."}),n?(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,_.jsx)(sn,{mono:!0,"aria-label":"edit reason",value:s,placeholder:"reason (required) \u2014 why is this changing?",onChange:S=>c(S.target.value)}),(0,_.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,_.jsx)(A,{variant:"primary",onClick:()=>{m()},disabled:d||v||w,children:d?"\u2026":"Save new version"}),(0,_.jsx)(A,{variant:"ghost",onClick:()=>i(!1),disabled:d,children:"Cancel"}),w&&(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"a reason is required to save"})]})]}):(0,_.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,_.jsx)(A,{variant:"secondary",onClick:()=>i(!0),children:"Edit"}),b?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(A,{variant:"danger",onClick:()=>{y()},disabled:d,children:d?"\u2026":"Confirm forget"}),(0,_.jsx)(A,{variant:"ghost",onClick:()=>h(!1),disabled:d,children:"Cancel"}),(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Forget soft-deletes this memory (a tombstone version)."})]}):(0,_.jsx)(A,{variant:"ghost",onClick:()=>h(!0),children:"Forget"})]}),f!==""&&(0,_.jsx)("div",{"data-testid":"detail-note",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:f})]})}var fT={height:40,padding:"0 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)"};function mT({onAdd:e}){let[t,r]=te.default.useState(""),[o,n]=te.default.useState(Ou),[i,a]=te.default.useState(!1),[l,s]=te.default.useState(""),c=t.trim()==="",d=async()=>{if(i||c)return;a(!0),s("");let p=await e(t,o);if(a(!1),p===null){s("Add failed \u2014 nothing was stored.");return}r(""),n(Ou),s(p)};return(0,_.jsxs)("div",{style:{...il,display:"flex",flexDirection:"column",gap:10},children:[(0,_.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Add a memory"}),(0,_.jsx)("textarea",{"aria-label":"new content",value:t,onChange:p=>r(p.target.value),rows:3,placeholder:"a fact to remember \u2014 e.g. we deploy via `just release`",style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}),(0,_.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,_.jsx)("select",{"aria-label":"memory type","data-testid":"add-type",value:o,onChange:p=>n(p.target.value),title:Lh[o],style:{...fT,width:180,cursor:"pointer"},children:_w.map(p=>(0,_.jsx)("option",{value:p,title:Lh[p],children:p===Ou?`${p} (default)`:p},p))}),(0,_.jsx)(A,{variant:"primary",onClick:()=>{d()},disabled:i||c,children:i?"\u2026":"Add memory"}),l!==""&&(0,_.jsx)("span",{"data-testid":"add-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:l})]})]})}function gT(e){if(e.errored>0)return`${e.table}: attempted, not completed`;let t=[`${e.keysCompacted} keys`,`${e.rowsReaped} rows reaped`];return e.keysSkipped>0&&t.push(`${e.keysSkipped} keys deferred`),`${e.table}: ${t.join(" \xB7 ")}`}function vT({pollinating:e,onCompact:t,onPollinate:r,watchLines:o,watching:n,onToggleWatch:i}){let[a,l]=te.default.useState(!1),[s,c]=te.default.useState(!1),[d,p]=te.default.useState(null),[f,g]=te.default.useState(!1),[b,h]=te.default.useState(""),w=async()=>{if(s)return;l(!1),c(!0);let m=await t();c(!1),p(m)},v=async()=>{if(f)return;g(!0),h("");let m=await r();g(!1),m.triggered?h(m.status==="running"?"already running":"consolidating\u2026"):h(`skipped \xB7 ${m.reason??"unavailable"}`)};return(0,_.jsxs)("div",{style:{...il,display:"flex",flexDirection:"column",gap:14},children:[(0,_.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Lifecycle"}),(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,_.jsx)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:a?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(A,{variant:"danger",onClick:()=>{w()},disabled:s,children:s?"\u2026":"Confirm compact"}),(0,_.jsx)(A,{variant:"ghost",onClick:()=>l(!1),disabled:s,children:"Cancel"}),(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Compaction prunes old memory versions across version-bumped tables. Continue?"})]}):(0,_.jsx)(A,{variant:"secondary",onClick:()=>l(!0),disabled:s,children:"Compact"})}),d!==null&&(0,_.jsxs)("div",{"data-testid":"compact-summary",style:{display:"flex",flexDirection:"column",gap:3},children:[d.summaries.length===0&&d.skippedTables.length===0?(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"nothing reaped this pass"}):d.summaries.map(m=>(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:m.errored>0?"var(--severity-warning)":"var(--text-secondary)"},children:gT(m)},m.table)),d.skippedTables.length>0&&(0,_.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["skipped (absent): ",d.skippedTables.join(", ")]})]})]}),(0,_.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,_.jsx)(A,{variant:"pollinate",onClick:()=>{v()},disabled:f||e,children:f||e?"pollinating\u2026":"Pollinate now"}),b!==""&&(0,_.jsx)("span",{"data-testid":"pollinate-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:b})]}),(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,_.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,_.jsx)(A,{variant:n?"secondary":"ghost",onClick:i,children:n?"Stop watch":"Watch"}),n&&(0,_.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,_.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"memory routes"})]})]}),n&&(0,_.jsx)("div",{"data-testid":"watch-feed",style:{display:"flex",flexDirection:"column",gap:5},children:o.length===0?(0,_.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for memory activity\u2026"}):o.map((m,y)=>(0,_.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:y===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:m},y))})]})]})}function ww({wire:e,pollinating:t=!1}){let{scope:r}=Ut(),o=r.project,[n,i]=te.default.useState([]),[a,l]=te.default.useState($w),[s,c]=te.default.useState(!1),[d,p]=te.default.useState(""),[f,g]=te.default.useState([]),[b,h]=te.default.useState(!1),[w,v]=te.default.useState(!1),[m,y]=te.default.useState(!1),[S,P]=te.default.useState(null),[O,T]=te.default.useState(null),[B,X]=te.default.useState(!1),[M,Ze]=te.default.useState(!1),[re,Be]=te.default.useState([]),Se=te.default.useCallback(async Y=>{if(o===void 0)return i([]),c(!0),[];let ue=await e.listMemories(Y,o);return i(ue),c(!0),ue},[e,o]);te.default.useEffect(()=>{Se(a)},[Se,a]),te.default.useEffect(()=>{if(!M)return;let Y=!0,ue=async()=>{if(!Y||Pn())return;let qt=await e.logs(40);if(!Y)return;let gn=qt.filter(Tn=>uT(Tn.path)).slice(-iT).reverse().map(Pr);Be(gn)};ue();let Ee=setInterval(()=>{ue()},oT);return()=>{Y=!1,clearInterval(Ee)}},[M,e]);let Yt=te.default.useCallback(async()=>{let Y=d.trim();if(Y===""){v(!1),g([]);return}h(!0);let{memories:ue,degraded:Ee}=await e.recall(Y,o);g(ue),y(Ee),v(!0),h(!1)},[d,e,o]),oo=te.default.useCallback(()=>{p(""),v(!1),g([])},[]),$i=te.default.useCallback(async Y=>{P(Y),T(null),X(!1);let ue=await e.getMemory(Y);if(ue===null){X(!0);return}T(ue)},[e]),Cn=te.default.useCallback(()=>{P(null),T(null),X(!1)},[]),io=te.default.useCallback(async(Y,ue)=>{let Ee=null;for(let qt=0;qt<lT;qt+=1){if(Ee=await e.getMemory(Y),Ee!==null&&ue(Ee))return Ee;await cT(sT)}return Ee},[e]),ke=te.default.useCallback(async(Y,ue,Ee)=>{if(await e.modifyMemory(Y,{content:ue,reason:Ee})===null){let Tn=await e.getMemory(Y);return Tn!==null&&T(Tn),null}let gn=await io(Y,Tn=>Tn.content===ue||Tn.version>0);return gn!==null&&T(gn),Se(a),"saved \xB7 new version"},[e,io,Se,a]),bt=te.default.useCallback(async(Y,ue)=>await e.forgetMemory(Y,{reason:ue})===null?null:(Cn(),Se(a),"forgotten"),[e,Cn,Se,a]),Cr=te.default.useCallback(async(Y,ue)=>{let Ee=await e.addMemory({content:Y,...ue!==""?{type:ue}:{}});return Ee===null?null:(await Se(a),Ee.id!==null?`stored \xB7 ${Ee.id}`:`stored \xB7 ${Ee.action||"ok"}`)},[e,Se,a]),wi=te.default.useCallback(()=>e.compact(),[e]),Wu=te.default.useCallback(()=>e.pollinate(),[e]),Mu=te.default.useCallback(()=>{Ze(Y=>!Y),Be([])},[]),Zu=S!==null;return(0,_.jsx)(qe,{eyebrow:"memories",title:"Memories",right:(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:o===void 0?"no project":`${n.length} kept`}),children:o===void 0?(0,_.jsx)(yi,{surface:"memories"}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:16},children:[(0,_.jsx)("div",{style:{flex:1},children:(0,_.jsx)(sn,{mono:!0,size:"lg",value:d,placeholder:"search memories\u2026 e.g. how do we deploy",onChange:Y=>p(Y.target.value),onKeyDown:Y=>{Y.key==="Enter"&&Yt()}})}),(0,_.jsx)(A,{variant:"primary",size:"lg",onClick:()=>{Yt()},disabled:b,children:b?"\u2026":"Search"}),w&&(0,_.jsx)(A,{variant:"ghost",size:"lg",onClick:oo,children:"Clear"})]}),w&&m&&(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,_.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,_.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",children:(0,_.jsx)(Q,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})]}),Zu?B?(0,_.jsxs)("div",{"data-testid":"memory-forgotten",style:{...il,display:"flex",flexDirection:"column",gap:12},children:[(0,_.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)"},children:"This memory was forgotten (or its id is unknown)."}),(0,_.jsx)("div",{children:(0,_.jsx)(A,{variant:"ghost",size:"sm",onClick:Cn,children:"\u2190 back"})})]}):O!==null?(0,_.jsx)(pT,{record:O,onClose:Cn,onEdit:ke,onForget:bt}):(0,_.jsx)("div",{style:{...il,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}):(0,_.jsxs)(_.Fragment,{children:[w?(0,_.jsx)("div",{"data-testid":"search-results",style:{display:"flex",flexDirection:"column",gap:10,marginBottom:18},children:f.length===0?(0,_.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):f.map((Y,ue)=>(0,_.jsx)(Es,{...Y,pollinating:t&&ue===1},Y.memoryKey))}):(0,_.jsx)("div",{"data-testid":"memory-list",style:{display:"flex",flexDirection:"column",gap:8,marginBottom:18},children:s?n.length===0?(0,_.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories yet."}):(0,_.jsxs)(_.Fragment,{children:[n.map(Y=>(0,_.jsx)(dT,{record:Y,onOpen:$i},Y.id)),n.length>=a&&(0,_.jsx)("div",{style:{paddingTop:4},children:(0,_.jsx)(A,{variant:"ghost",size:"sm",onClick:()=>l(Y=>Y+$w),children:"Load more"})})]}):(0,_.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,_.jsx)(mT,{onAdd:Cr}),(0,_.jsx)(kw,{wire:e}),(0,_.jsx)(vT,{pollinating:t,onCompact:wi,onPollinate:Wu,watchLines:re,watching:M,onToggleWatch:Mu})]})]})]})})}var ge=W(_e(),1);var D=W(q(),1),Nu="__unsorted__",Uh={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Ah(){return(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"\u2014"})}function yT(e){if(e===null||e==="")return(0,D.jsx)("span",{style:{color:"var(--text-tertiary)"},children:"never"});let t=Date.parse(e);return Number.isNaN(t)?(0,D.jsx)(Ah,{}):new Date(t).toLocaleString()}function hT({project:e,wire:t,onOpen:r,onUnbound:o}){let[n,i]=ge.default.useState(!1),[a,l]=ge.default.useState(null),[s,c]=ge.default.useState(!1),[d,p]=ge.default.useState(""),f=ge.default.useRef(!1),g=async()=>{if(a===null||f.current)return;f.current=!0,c(!0),p("");let b=await t.unbindProject({path:a});if(c(!1),f.current=!1,b.unbound){i(!1),l(null),o();return}p("No binding matched that folder \u2014 capture is unchanged.")};return(0,D.jsxs)("div",{"data-testid":"project-row","data-project-id":e.projectId,style:{...Uh,display:"flex",flexDirection:"column",gap:10},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:e.name!==""?e.name:e.projectId}),(0,D.jsx)(Q,{tone:"verified",mono:!0,dot:!0,children:"sourcing"}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)(A,{variant:"secondary",size:"sm",onClick:()=>r(e.projectId),"data-testid":"project-open",children:"Open"}),(0,D.jsx)(A,{variant:"ghost",size:"sm",onClick:()=>i(b=>!b),"data-testid":"project-unbind",children:n?"Cancel":"Unbind"})]}),(0,D.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:8,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)(Du,{label:"bound path",value:(0,D.jsx)(xT,{paths:e.boundPaths})}),(0,D.jsx)(Du,{label:"git remote",value:e.remote!==""?e.remote:(0,D.jsx)(Ah,{})}),(0,D.jsx)(Du,{label:"last capture",value:yT(e.lastCapture)}),(0,D.jsx)(Du,{label:"memories / sessions",value:`${e.memoryCount} / ${e.sessionCount}`})]}),n&&(0,D.jsxs)("div",{"data-testid":"project-unbind-panel",style:{display:"flex",flexDirection:"column",gap:10,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Pick the folder to release. Unbind removes this device\u2019s binding (capture stops there); the project and its memories are kept."}),(0,D.jsx)(Iw,{wire:t,onSelect:l,selected:a}),(0,D.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,D.jsx)(A,{variant:"danger",size:"sm",onClick:()=>{g()},disabled:s||a===null,"data-testid":"project-unbind-confirm",children:s?"\u2026":"Unbind this folder"}),d!==""&&(0,D.jsx)("span",{"data-testid":"project-unbind-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-warning)"},children:d})]})]})]})}function xT({paths:e}){return e.length===0?(0,D.jsx)(Ah,{}):(0,D.jsx)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map(t=>(0,D.jsx)("span",{title:t,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t},t))})}function Du({label:e,value:t}){return(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:t})]})}function bT({inbox:e}){return(0,D.jsxs)("div",{"data-testid":"inbox-row",style:{...Uh,display:"flex",alignItems:"center",gap:10,borderStyle:"dashed"},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-secondary)"},children:"(unsorted inbox)"}),(0,D.jsx)(Q,{tone:"neutral",mono:!0,children:Nu}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsxs)("span",{"data-testid":"inbox-size",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["size ",e.sessionCount]})]})}function ST({onNew:e,onImport:t}){let[r,o]=ge.default.useState(!1);return(0,D.jsxs)("div",{style:{position:"relative"},children:[(0,D.jsx)(A,{variant:"primary",size:"sm",onClick:()=>o(n=>!n),"data-testid":"add-menu-toggle",children:"+ Add"}),r&&(0,D.jsxs)("div",{"data-testid":"add-menu",style:{position:"absolute",right:0,top:38,zIndex:5,display:"flex",flexDirection:"column",minWidth:180,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md, 0 6px 24px rgba(0,0,0,0.18))",overflow:"hidden"},children:[(0,D.jsx)(zw,{label:"New folder",hint:"pick a folder to bind",onClick:()=>{o(!1),e()},testId:"add-new"}),(0,D.jsx)(zw,{label:"Import existing",hint:"from the cloud registry",onClick:()=>{o(!1),t()},testId:"add-import"})]})]})}function zw({label:e,hint:t,onClick:r,testId:o}){return(0,D.jsxs)("button",{type:"button","data-testid":o,onClick:r,style:{display:"flex",flexDirection:"column",gap:2,width:"100%",textAlign:"left",padding:"9px 12px",background:"transparent",border:"none",borderBottom:"1px solid var(--border-subtle)",cursor:"pointer"},children:[(0,D.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:t})]})}function kT({wire:e,onClose:t,onImported:r}){let[o,n]=ge.default.useState([]),[i,a]=ge.default.useState(!1),[l,s]=ge.default.useState(null),[c,d]=ge.default.useState(null),[p,f]=ge.default.useState(!1),[g,b]=ge.default.useState(""),h=ge.default.useRef(!1);ge.default.useEffect(()=>{let v=!0;return(async()=>{let m=await e.scopeProjects({unbound:!0});v&&(n(m.filter(y=>y.projectId!==Nu)),a(!0))})(),()=>{v=!1}},[e]);let w=ge.default.useCallback(async()=>{if(l===null||c===null||h.current)return;h.current=!0,f(!0),b("");let v=await e.bindExistingProject({path:c,projectId:l});if(f(!1),h.current=!1,v.bound){r(v);return}b(v.error!==void 0&&v.error!==""?v.error:"Could not import that project.")},[l,c,e,r]);return(0,D.jsx)(_T,{title:"Import project from cloud",onClose:t,testId:"import-modal",children:(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"projects in this workspace not yet on this device"}),i?o.length===0?(0,D.jsx)("span",{"data-testid":"import-empty",style:{fontSize:13,color:"var(--text-tertiary)"},children:"Every registry project is already bound on this device. Nothing to import."}):(0,D.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:200,overflowY:"auto"},children:o.map(v=>(0,D.jsx)("button",{type:"button","data-testid":"import-project","data-project-id":v.projectId,onClick:()=>s(v.projectId),"aria-pressed":l===v.projectId,style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:l===v.projectId?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${l===v.projectId?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",cursor:"pointer",color:l===v.projectId?"var(--honey)":"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600},children:v.name!==""?v.name:v.projectId},v.projectId))}):(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),l!==null&&(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,D.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:["pick this device\u2019s folder for ",(0,D.jsx)("span",{style:{color:"var(--honey)"},children:l})]}),(0,D.jsx)(Iw,{wire:e,onSelect:d,selected:c})]}),(0,D.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,D.jsx)(A,{variant:"primary",onClick:()=>{w()},disabled:p||l===null||c===null,"data-testid":"import-confirm",children:p?"Importing\u2026":"Import project"}),(0,D.jsx)(A,{variant:"ghost",onClick:t,disabled:p,children:"Cancel"}),g!==""&&(0,D.jsx)("span",{"data-testid":"import-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})})}function Iw({wire:e,onSelect:t,selected:r}){let[o,n]=ge.default.useState(""),[i,a]=ge.default.useState(null),[l,s]=ge.default.useState([]),[c,d]=ge.default.useState(!1),p=ge.default.useCallback(async f=>{let g=await e.fsBrowse(f);n(g.path),a(g.parent),s(g.children),d(!0)},[e]);return ge.default.useEffect(()=>{p(void 0)},[p]),c&&o===""&&l.length===0?(0,D.jsxs)("span",{"data-testid":"folderselect-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["The folder browser isn\u2019t available \u2014 bind from your terminal: ",(0,D.jsx)("code",{style:{color:"var(--honey)"},children:"honeycomb project bind"})]}):(0,D.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,D.jsx)("span",{style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o!==""?o:"loading\u2026"}),(0,D.jsx)(A,{variant:"ghost",size:"sm",onClick:()=>{p(i??void 0)},disabled:i===null,children:"\u2191 up"}),(0,D.jsx)(A,{variant:"secondary",size:"sm",onClick:()=>t(o),disabled:o==="","data-testid":"folderselect-use",children:"Use this folder"})]}),(0,D.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:180,overflowY:"auto"},children:l.map(f=>(0,D.jsxs)("button",{type:"button","data-testid":"folderselect-row",onClick:()=>{p(f.path)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",textAlign:"left",padding:"8px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13},children:[(0,D.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:f.name}),f.isGitRepo&&(0,D.jsx)(Q,{tone:"honey",mono:!0,children:"git"})]},f.path))}),r!==null&&(0,D.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)"},children:["selected: ",r]})]})}function _T({title:e,onClose:t,testId:r,children:o}){return(0,D.jsx)("div",{"data-testid":r,role:"dialog","aria-modal":"true","aria-label":e,onClick:t,style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"64px 16px",background:"rgba(0,0,0,0.45)"},children:(0,D.jsxs)("div",{onClick:n=>n.stopPropagation(),style:{width:"100%",maxWidth:560,maxHeight:"80vh",overflowY:"auto",padding:20,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,D.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:700,color:"var(--text-primary)",margin:0},children:e}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)(A,{variant:"ghost",size:"sm",onClick:t,"aria-label":"close",children:"\u2715"})]}),o]})})}function Pw({wire:e}){let{scope:t,setScope:r}=Ut(),[o,n]=ge.default.useState([]),[i,a]=ge.default.useState(!1),[l,s]=ge.default.useState("none"),c=ge.default.useCallback(async()=>{let h=await e.scopeProjects();n(h),a(!0)},[e]);ge.default.useEffect(()=>{c()},[c]);let d=o.filter(h=>h.boundLocally&&h.projectId!==Nu),p=o.find(h=>h.projectId===Nu),f=ge.default.useCallback(h=>{r({org:t.org,workspace:t.workspace,project:h})},[r,t.org,t.workspace]),g=ge.default.useCallback(h=>{s("none"),c()},[c]),b=ge.default.useCallback(h=>{s("none"),c()},[c]);return(0,D.jsxs)(qe,{eyebrow:"projects",title:"Projects",right:(0,D.jsx)(ST,{onNew:()=>s("new"),onImport:()=>s("import")}),children:[l==="new"&&(0,D.jsxs)("div",{style:{...Uh,marginBottom:16},children:[(0,D.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)",marginBottom:10},children:"Add a project"}),(0,D.jsx)(Cu,{wire:e,onBound:g,onCancel:()=>s("none")})]}),l==="import"&&(0,D.jsx)(kT,{wire:e,onClose:()=>s("none"),onImported:b}),(0,D.jsxs)("div",{"data-testid":"projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:[i?d.length===0?(0,D.jsxs)("div",{"data-testid":"projects-empty",style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No active projects on this device yet. Use ",(0,D.jsx)("strong",{children:"+ Add"})," to bind a folder or import an existing project."]}):d.map(h=>(0,D.jsx)(hT,{project:h,wire:e,onOpen:f,onUnbound:()=>{c()}},h.projectId)):(0,D.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}),p!==void 0&&(0,D.jsx)(bT,{inbox:p})]})]})}var Rn=W(_e(),1);var Lu=W(_e(),1),Kt=W(q(),1),Si={width:640,height:200},fn={top:12,right:12,bottom:18,left:12};function Rw(e,t){return e.includes("net")?"var(--honey)":e.includes("infra")||e.includes("cost")?"var(--severity-info)":t?"var(--severity-warning)":"var(--verified)"}function $T(e){let t=0,r=0;for(let o of e)for(let n of o.points)n.cents<t&&(t=n.cents),n.cents>r&&(r=n.cents);return r===t&&(r=t+1),{min:t,max:r}}function wT(e){let t=Si.height-fn.top-fn.bottom,r=(0-e.min)/(e.max-e.min);return fn.top+t-r*t}function zT(e,t){let r=e.points;if(r.length===0)return"";let o=Si.width-fn.left-fn.right,n=Si.height-fn.top-fn.bottom,i=r.length>1?o/(r.length-1):0,a=t.max-t.min;return r.map((l,s)=>{let c=fn.left+s*i,d=Math.max(0,Math.min(1,(l.cents-t.min)/a)),p=fn.top+n-d*n;return`${c.toFixed(1)},${p.toFixed(1)}`}).join(" ")}function IT(){try{return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1}catch{return!1}}function Ew({trend:e}){let t=Lu.default.useMemo(()=>IT(),[]),[r,o]=Lu.default.useState(t);Lu.default.useEffect(()=>{if(t)return;let l=requestAnimationFrame(()=>o(!0));return()=>cancelAnimationFrame(l)},[t]);let n=e.series.some(l=>l.points.length>0);if(e.status==="absent"||!n)return(0,Kt.jsx)("div",{"data-testid":"roi-trend-empty",style:{padding:"28px 8px",textAlign:"center",fontSize:13,color:"var(--text-tertiary)"},children:e.startedAt!==""?`Savings tracked from ${e.startedAt}.`:"No trend history yet."});let i=$T(e.series),a=wT(i);return(0,Kt.jsxs)("div",{"data-testid":"roi-trend-chart",children:[(0,Kt.jsxs)("svg",{viewBox:`0 0 ${Si.width} ${Si.height}`,style:{width:"100%",height:200,display:"block"},role:"img","aria-label":"ROI trend over time",children:[(0,Kt.jsx)("line",{x1:fn.left,y1:a,x2:Si.width-fn.right,y2:a,stroke:"var(--border-subtle)",strokeWidth:"1"}),e.series.map(l=>{let s=zT(l,i);if(s==="")return null;let c=Rw(l.label,l.modeled);return(0,Kt.jsx)("polyline",{"data-testid":`roi-trend-series-${l.label}`,"data-modeled":l.modeled?"true":"false",points:s,fill:"none",stroke:c,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:l.modeled?"5 4":void 0,style:{opacity:r?1:0,transition:t?void 0:"opacity var(--dur-base) var(--ease-out)"}},l.label)})]}),(0,Kt.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:14,marginTop:8},children:e.series.map(l=>(0,Kt.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,Kt.jsx)("svg",{width:22,height:8,"aria-hidden":"true",style:{flex:"none"},children:(0,Kt.jsx)("line",{x1:1,y1:4,x2:21,y2:4,stroke:Rw(l.label,l.modeled),strokeWidth:"2",strokeDasharray:l.modeled?"4 3":void 0})}),(0,Kt.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:[l.label,l.modeled?" (est.)":""]})]},l.label))})]})}var C=W(q(),1),PT="#/settings",RT=6e4,ET=15e3,CT="30d",TT=["7d","30d","90d"],Uu="\u2014";function En(e,t=!1){let r=e<0?"-":"",o=Math.abs(e)/100,n=`${r}$${o.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`;return t?`~${n} est.`:n}function jT(e){return e===null?Uu:`$${(e/100).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}/Mtok`}function Cw(e){return e?"warning":"verified"}function OT(e){return e?"var(--text-secondary)":"var(--text-primary)"}function Ow(e){return e<0?"var(--severity-critical)":"var(--verified)"}function Wh(e){return e==="allocated"}function DT(e){return e>0?"var(--severity-critical)":e<0?"var(--verified)":"var(--text-tertiary)"}function ki({children:e,color:t="var(--text-tertiary)"}){return(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:t},children:e})}function NT({assumption:e}){let[t,r]=Rn.default.useState(!1),o=e.assumptionText!==""?e.assumptionText:"Assumption not yet provided.";return(0,C.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,C.jsx)("button",{type:"button","data-testid":"assumption-info","aria-label":"modeled assumption","aria-expanded":t,onClick:()=>r(n=>!n),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onFocus:()=>r(!0),onBlur:()=>r(!1),style:{width:16,height:16,padding:0,borderRadius:"var(--radius-full)",border:"1px solid var(--border-strong)",background:"transparent",color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",fontSize:10,lineHeight:1,cursor:"pointer"},children:"i"}),t&&(0,C.jsxs)("span",{role:"tooltip","data-testid":"assumption-popover",style:{position:"absolute",top:22,left:0,zIndex:5,width:260,padding:"8px 10px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md)",fontSize:12,lineHeight:"16px",color:"var(--text-secondary)"},children:[o,!e.signedOff&&(0,C.jsx)("span",{style:{display:"block",marginTop:4,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:"provisional \u2014 not yet signed off"})]})]})}function Tw({label:e,cents:t,modeled:r,dash:o,indent:n,tone:i,toneLabel:a,trailing:l,testid:s}){return(0,C.jsxs)("div",{"data-testid":s,style:{display:"flex",alignItems:"center",gap:10,padding:"10px 6px",paddingLeft:n?22:6,borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)("span",{style:{fontSize:14,color:n?"var(--text-secondary)":"var(--text-primary)"},children:e}),(0,C.jsx)(Q,{tone:i,mono:!0,children:a}),l,(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{"data-testid":`${s}-figure`,"data-modeled":r?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:n?15:17,fontWeight:700,color:o?"var(--text-tertiary)":OT(r)},children:o?Uu:En(t,r)})]})}function Fh(e){return e==="absent"||e==="unreachable"||e==="unauthenticated"}function LT({net:e,onRetry:t,retrying:r}){let o=e.computed&&e.status==="ok",n=Wh(e.costBasis);return(0,C.jsx)(ie,{title:"Net ROI",eyebrow:e.modeled?"saved \u2212 (infra + pollination) \xB7 est.":"saved \u2212 (infra + pollination)",children:(0,C.jsxs)("div",{"data-testid":"net-hero",style:{display:"flex",alignItems:"center",gap:16,padding:"14px 6px",flexWrap:"wrap"},children:[(0,C.jsx)("span",{"data-testid":"net-figure","data-computed":o?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:40,fontWeight:800,lineHeight:1,letterSpacing:"-0.02em",color:o?Ow(e.netCents):"var(--text-tertiary)"},children:o?En(e.netCents,!0):Uu}),o?(0,C.jsx)(Q,{tone:"warning",mono:!0,children:"est."}):e.status==="unreachable"?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ki,{children:"net not computed - billing is unreachable"}),(0,C.jsx)(A,{variant:"ghost",size:"sm","data-testid":"net-retry",disabled:r,onClick:t,children:r?"retrying...":"Retry"})]}):(0,C.jsx)(ki,{children:"net not computed yet"}),o&&n&&(0,C.jsx)(ki,{children:"includes an allocated (estimated) infra share"})]})})}function UT(){return(0,C.jsx)("span",{"data-testid":"claude-code-only",style:{marginLeft:4,display:"inline-flex"},children:(0,C.jsx)(Q,{tone:"info",children:"Claude Code only"})})}function AT({savings:e}){let t=Fh(e.status);return(0,C.jsx)(ie,{title:"Savings",eyebrow:"measured cache \xB7 modeled memory injection",right:e.status==="partial"?(0,C.jsx)(UT,{}):void 0,children:(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,C.jsx)(Tw,{testid:"savings-measured",label:"Measured cache savings",cents:e.measuredCents,modeled:!1,dash:t,tone:Cw(!1),toneLabel:"measured"}),(0,C.jsx)(Tw,{testid:"savings-modeled",label:"Modeled memory-injection savings",cents:e.modeledCents,modeled:!0,dash:t,indent:!0,tone:Cw(!0),toneLabel:"modeled",trailing:(0,C.jsx)(NT,{assumption:e.assumption})}),(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)(ki,{children:"blended rate"}),(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{"data-testid":"blended-rate",style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:jT(e.blendedCentsPerMtok)})]})]})})}function jw({label:e,cents:t,deltaCents:r,dash:o,testid:n}){return(0,C.jsxs)("div",{"data-testid":n,style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,C.jsx)("span",{"data-testid":`${n}-figure`,style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:o?"var(--text-tertiary)":"var(--text-primary)",letterSpacing:"-0.01em"},children:o?Uu:En(t)}),!o&&r!==void 0&&r!==0&&(0,C.jsxs)("span",{"data-testid":`${n}-delta`,style:{fontFamily:"var(--font-mono)",fontSize:12,color:DT(r)},children:[r>0?"\u25B2":"\u25BC"," ",En(Math.abs(r))," vs prior period"]})]})}function FT({infraCents:e,infraDash:t,infraBasis:r,pollinationCents:o,pollinationDash:n,pollinationLines:i,infraDeltaCents:a}){return(0,C.jsxs)(ie,{title:"Cost",eyebrow:"infra \xB7 pollination",children:[(0,C.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12,marginBottom:6},children:[(0,C.jsx)(jw,{testid:"infra-kpi",label:Wh(r)?"Infra (allocated, est.)":"Infra cost",cents:e,deltaCents:a,dash:t}),(0,C.jsx)(jw,{testid:"pollination-kpi",label:"Pollination cost",cents:o,dash:n})]}),(0,C.jsx)("div",{"data-testid":"pollination-lines",children:n||i.length===0?(0,C.jsx)("div",{style:{padding:"10px 6px",fontSize:13,color:"var(--text-tertiary)"},children:n?"Pollination cost unavailable.":"No pollination contributors yet."}):i.map((l,s)=>(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)(ki,{children:l.label}),(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:En(l.cents)})]},l.label||s))})]})}function Dw({label:e,active:t,onClick:r,testid:o}){return(0,C.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{height:30,padding:"0 12px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:12,fontWeight:600,cursor:"pointer"},children:e})}var WT=["org","team","agent","project"];function MT({rollup:e,perUserAvailable:t}){return e.dimension==="agent"&&!t?(0,C.jsx)("div",{"data-testid":`rollup-${e.dimension}`,children:(0,C.jsx)("div",{"data-testid":"per-user-empty",style:{marginTop:10,padding:"10px 12px",background:"var(--severity-info-bg)",border:"1px solid var(--severity-info)",borderRadius:"var(--radius-md)"},children:(0,C.jsx)(ki,{color:"var(--severity-info)",children:"Per-user requires verified login - sign in to attribute ROI per person."})})}):(0,C.jsxs)("div",{"data-testid":`rollup-${e.dimension}`,children:[e.mixedBasis&&(0,C.jsx)("div",{"data-testid":"mixed-basis-caption",style:{padding:"8px 6px",marginBottom:4,fontSize:12,color:"var(--severity-warning)",fontFamily:"var(--font-mono)"},children:"mixed measured + allocated \u2014 rows are not summed into one net"}),e.rows.length===0?(0,C.jsxs)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e.dimension," rows yet."]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,padding:"4px 6px 8px"},children:["","saved","infra","net"].map((r,o)=>(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:o===0?"left":"right"},children:r},o))}),e.rows.map((r,o)=>{let n=Wh(r.costBasis);return(0,C.jsxs)("div",{"data-testid":`rollup-row-${e.dimension}-${r.key}`,style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,alignItems:"center",padding:"9px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,C.jsx)("span",{style:{fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.label||r.key}),n&&(0,C.jsx)("span",{"data-testid":`rollup-allocated-${r.key}`,style:{display:"inline-flex"},children:(0,C.jsx)(Q,{tone:"warning",mono:!0,children:"allocated est."})})]}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:En(r.measuredSavingsCents)}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:n?"var(--text-secondary)":"var(--text-primary)",textAlign:"right"},children:n?En(r.infraCostCents,!0):En(r.infraCostCents)}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:Ow(r.netCents),textAlign:"right"},children:n?En(r.netCents,!0):En(r.netCents)})]},r.key||o)})]})]})}function ZT({rollups:e,perUserAvailable:t}){let r=WT.filter(l=>e.some(s=>s.dimension===l)),[o,n]=Rn.default.useState(r[0]??"org"),i=r.includes(o)?o:r[0]??"org",a=e.find(l=>l.dimension===i);return(0,C.jsx)(ie,{title:"Rollups",eyebrow:"org \xB7 team \xB7 agent \xB7 project",right:(0,C.jsx)("div",{style:{display:"flex",gap:6},children:r.map(l=>(0,C.jsx)(Dw,{testid:`rollup-tab-${l}`,label:l,active:l===i,onClick:()=>n(l)},l))}),children:r.length===0||a===void 0?(0,C.jsx)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:"No rollups yet."}):(0,C.jsx)(MT,{rollup:a,perUserAvailable:t})})}function BT(){return(0,C.jsx)(ie,{title:"ROI ledger",eyebrow:"locked",children:(0,C.jsxs)("div",{"data-testid":"auth-gate",style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,padding:"20px 8px"},children:[(0,C.jsx)("span",{"data-testid":"auth-redacted-status",style:{display:"inline-flex"},children:(0,C.jsx)(Q,{tone:"neutral",mono:!0,dot:!0,children:"not connected"})}),(0,C.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)",maxWidth:460},children:"Connect Honeycomb to read the shared ROI ledger. The dashboard never holds your credentials \u2014 the daemon is the sole egress."}),(0,C.jsx)(A,{variant:"primary",size:"sm","data-testid":"auth-settings-cta",onClick:()=>{window.location.hash=PT},children:"Open Settings"})]})})}function Nw({wire:e}){let{scope:t}=Ut(),r=t.project,[o,n]=Rn.default.useState(gu),[i,a]=Rn.default.useState(vu),[l,s]=Rn.default.useState(CT),[c,d]=Rn.default.useState(!1),p=Rn.default.useCallback(async()=>{let h=await e.roi(r);n(h)},[e,r]);dn(p,RT),dn(p,ET),Rn.default.useEffect(()=>{let h=!0;return(async()=>{let w=await e.roiTrend(l,r);h&&a(w)})(),()=>{h=!1}},[e,l,r]);let f=Rn.default.useCallback(async()=>{d(!0);try{await p();let h=await e.roiTrend(l,r);a(h)}finally{d(!1)}},[p,e,l,r]),g=o.savings.status==="unauthenticated"||o.net.status==="unauthenticated",b=o.scopedAcrossDevices?"across devices":"this device";return(0,C.jsx)(qe,{title:"ROI",eyebrow:`net-roi ledger \xB7 ${b}`,children:g?(0,C.jsx)(BT,{}):(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,C.jsx)(LT,{net:o.net,onRetry:()=>{f()},retrying:c}),(0,C.jsx)(AT,{savings:o.savings}),(0,C.jsx)(FT,{infraCents:o.infra.cents,infraDash:Fh(o.infra.status),infraBasis:o.infra.costBasis,pollinationCents:o.pollination.cents,pollinationDash:Fh(o.pollination.status),pollinationLines:o.pollination.lines}),(0,C.jsx)(ie,{title:"Trend",eyebrow:"measured (solid) \xB7 modeled (dashed)",right:(0,C.jsx)("div",{style:{display:"flex",gap:6},children:TT.map(h=>(0,C.jsx)(Dw,{testid:`trend-range-${h}`,label:h,active:h===l,onClick:()=>s(h)},h))}),children:(0,C.jsx)(Ew,{trend:i})}),(0,C.jsx)(ZT,{rollups:o.rollups,perUserAvailable:o.perUserAvailable}),(0,C.jsxs)("div",{"data-testid":"assumption-footnote",style:{marginTop:4,padding:"12px 6px",borderTop:"1px solid var(--border-subtle)",fontSize:12,lineHeight:"18px",color:"var(--text-tertiary)"},children:[(0,C.jsx)("span",{style:{fontWeight:600,color:"var(--text-secondary)"},children:"Modeled estimate assumption: "}),o.savings.assumption.assumptionText!==""?o.savings.assumption.assumptionText:"Assumption not yet provided.",o.ratesAsOf!==""&&(0,C.jsxs)("span",{style:{marginLeft:8,fontFamily:"var(--font-mono)"},children:["\xB7 rates as of ",o.ratesAsOf]})]})]})})}var ce=W(_e(),1);var Lw=Object.freeze([{symbol:"a",configPath:"memory.lifecycle.activationExponent",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_EXPONENT",defaultValue:"1",effect:"exponent on the activation/freshness term A^a"},{symbol:"c",configPath:"memory.lifecycle.confidenceExponent",envOverride:"HONEYCOMB_LIFECYCLE_CONFIDENCE_EXPONENT",defaultValue:"0",effect:"exponent on the calibrated-confidence term C^c (dormant until calibrated)"},{symbol:"s",configPath:"memory.lifecycle.stalenessExponent",envOverride:"HONEYCOMB_LIFECYCLE_STALENESS_EXPONENT",defaultValue:"0",effect:"exponent on the staleness term (1 \u2212 \u03C3)^s (0 under observe)"},{symbol:"h(memories)",configPath:"memory.lifecycle.halfLifeDaysByClass.memories",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORIES_DAYS",defaultValue:"180 d",effect:"shapes A for distilled facts (slower decay)"},{symbol:"h(memory)",configPath:"memory.lifecycle.halfLifeDaysByClass.memory",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORY_DAYS",defaultValue:"45 d",effect:"shapes A for session summaries"},{symbol:"h(sessions)",configPath:"memory.lifecycle.halfLifeDaysByClass.sessions",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_SESSIONS_DAYS",defaultValue:"10 d",effect:"shapes A for raw dialogue (fastest decay)"},{symbol:"d",configPath:"memory.lifecycle.actrDecay",envOverride:"HONEYCOMB_LIFECYCLE_ACTR_DECAY",defaultValue:"0.5",effect:"ACT-R decay shaping A (Stage 2)"},{symbol:"A_min",configPath:"memory.lifecycle.activationFloor",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_FLOOR",defaultValue:"0.05",effect:"clamps A so a cold memory keeps a sliver of salience"},{symbol:"h_verify",configPath:"memory.lifecycle.verificationHalfLifeDays",envOverride:"HONEYCOMB_LIFECYCLE_VERIFICATION_HALFLIFE_DAYS",defaultValue:"14 d",effect:"shapes \u03C3 via the verification-freshness factor v(m,t)"},{symbol:"\u03B8_detect",configPath:"memory.lifecycle.contradictionThreshold",envOverride:"HONEYCOMB_LIFECYCLE_CONTRADICTION_THRESHOLD",defaultValue:"0.6",effect:"gates conflict detection (Contra > \u03B8_detect)"},{symbol:"\u03B3",configPath:"memory.lifecycle.corroborationWeight",envOverride:"HONEYCOMB_LIFECYCLE_CORROBORATION_WEIGHT",defaultValue:"0.5",effect:"shapes the conflict vote weight w_i"},{symbol:"\u03C4_supersede",configPath:"memory.lifecycle.supersedeMargin",envOverride:"HONEYCOMB_LIFECYCLE_SUPERSEDE_MARGIN",defaultValue:"0.5",effect:"conflict verdict cut (margin \u2265 \u03C4_supersede \u2192 supersede)"},{symbol:"\u03C4_review",configPath:"memory.lifecycle.reviewMargin",envOverride:"HONEYCOMB_LIFECYCLE_REVIEW_MARGIN",defaultValue:"0.15",effect:"conflict verdict cut (\u03C4_review \u2264 margin < \u03C4_supersede \u2192 review)"},{symbol:"\u03C1",configPath:"memory.lifecycle.openConflictSuppression",envOverride:"HONEYCOMB_LIFECYCLE_OPEN_CONFLICT_SUPPRESSION",defaultValue:"0",effect:"\u03BA for the open-conflict loser (0 fully suppress, reversible)"},{symbol:"auto-resolve",configPath:"memory.lifecycle.conflictAutoResolve",envOverride:"HONEYCOMB_LIFECYCLE_CONFLICT_AUTORESOLVE",defaultValue:"false",effect:"when off, conflicts are detected + queued only (human-in-the-loop)"},{symbol:"posture",configPath:"memory.lifecycle.staleRefPosture",envOverride:"HONEYCOMB_LIFECYCLE_STALEREF_POSTURE",defaultValue:"observe",effect:"observe (s = 0, inert) vs execute (s > 0, demote)"}]);var $=W(q(),1),VT=5e3;function ro({label:e,children:t}){return(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,$.jsx)("span",{style:{flex:1}}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function HT(e){return e==="env"?"via HONEYCOMB_TOKEN":e==="file"?"saved login (~/.deeplake)":"none"}function JT(e){return typeof e!="number"||!Number.isFinite(e)?"expiry unknown":new Date(e*1e3).toISOString()}function GT({wire:e}){let[t,r]=ce.default.useState(null),[o,n]=ce.default.useState(!1),[i,a]=ce.default.useState(!1),l=ce.default.useRef(!1),s=ce.default.useCallback(async()=>{if(l.current)return;l.current=!0,n(!0),a(!1);let c=await e.setupLogin();if(c===null){a(!0),n(!1),l.current=!1;return}r(c)},[e]);return(0,$.jsxs)("div",{"data-testid":"auth-connect",style:{display:"flex",flexDirection:"column",gap:10,padding:"10px 6px"},children:[(0,$.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Not connected to DeepLake."}),t===null?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(A,{variant:"primary",size:"sm",disabled:o,onClick:()=>{s()},"data-testid":"auth-connect-button",children:o?"Starting\u2026":"Connect to DeepLake"}),i&&(0,$.jsxs)("span",{"data-testid":"auth-connect-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:["Could not start sign-in. Retry, or run ",(0,$.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,$.jsxs)("div",{"data-testid":"auth-connect-grant",style:{display:"flex",flexDirection:"column",gap:6},children:[(0,$.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Enter this code to finish signing in:"}),(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:16,color:"var(--honey)",letterSpacing:"0.08em"},children:t.user_code}),(0,$.jsx)("a",{href:t.verification_uri_complete??t.verification_uri,target:"_blank",rel:"noreferrer",style:{fontSize:13,color:"var(--text-secondary)"},children:"Open the verification page"}),(0,$.jsx)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]}),(0,$.jsxs)("span",{style:{fontSize:11,color:"var(--text-tertiary)"},children:["or, from your terminal: ",(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--honey)"},children:"honeycomb login"})]})]})}function XT({wire:e}){let[t,r]=ce.default.useState(yh),[o,n]=ce.default.useState(!0),[i,a]=ce.default.useState(!1),l=ce.default.useCallback(async()=>{let c=await e.authStatus();r(c),n(!1)},[e]),s=ce.default.useCallback(async()=>{a(!0),await e.logout(),await l(),a(!1)},[e,l]);return ce.default.useEffect(()=>{let c=!0,d=async()=>{!c||Pn()||await l()};d();let p=setInterval(()=>{d()},VT),f=()=>{d()};return typeof window<"u"&&window.addEventListener("focus",f),()=>{c=!1,clearInterval(p),typeof window<"u"&&window.removeEventListener("focus",f)}},[l]),(0,$.jsx)(ie,{title:"DeepLake",eyebrow:"auth \xB7 org \xB7 workspace",right:(0,$.jsx)(Q,{tone:t.connected?"verified":"neutral",mono:!0,dot:!0,children:t.connected?"connected":"not connected"}),children:o?(0,$.jsx)("div",{"data-testid":"auth-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):t.connected?(0,$.jsxs)("div",{"data-testid":"auth-connected",children:[(0,$.jsx)(ro,{label:"org",children:t.orgName||t.orgId||"\u2014"}),(0,$.jsx)(ro,{label:"org id",children:t.orgId||"\u2014"}),(0,$.jsx)(ro,{label:"workspace",children:t.workspace||"\u2014"}),(0,$.jsx)(ro,{label:"agent",children:t.agentId||"\u2014"}),(0,$.jsx)(ro,{label:"source",children:HT(t.source)}),(0,$.jsx)(ro,{label:"last login",children:t.savedAt||"unknown"}),(0,$.jsx)(ro,{label:"token expiry",children:JT(t.expiresAt)}),(0,$.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:10},children:(0,$.jsx)(A,{variant:"secondary",size:"sm",disabled:i,onClick:()=>{s()},"data-testid":"auth-logout-button",children:i?"Logging out\u2026":"Log out"})})]}):(0,$.jsx)("div",{"data-testid":"auth-disconnected",children:(0,$.jsx)(GT,{wire:e})})})}var KT=[{id:"anthropic",label:"Anthropic (Claude)"},{id:"openai",label:"OpenAI (ChatGPT)"},{id:"openrouter",label:"OpenRouter"},{id:"cohere",label:"Cohere"}];function YT({id:e,label:t,present:r,onSave:o}){let[n,i]=ce.default.useState(""),[a,l]=ce.default.useState(!1),[s,c]=ce.default.useState(!1),d=ce.default.useCallback(async()=>{let p=n;if(p.length===0){c(!0);return}l(!0),c(!1);let f=await o(e,p);l(!1),f?i(""):c(!0)},[n,e,o]);return(0,$.jsxs)("div",{"data-testid":`provider-row-${e}`,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,$.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:t}),(0,$.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,$.jsx)(sn,{type:"password",mono:!0,size:"sm",value:n,placeholder:r?"replace key\u2026":"paste key\u2026",onChange:p=>{i(p.target.value),s&&c(!1)},onKeyDown:p=>{p.key==="Enter"&&d()},"data-testid":`provider-input-${e}`})}),(0,$.jsx)(A,{variant:"primary",size:"sm",disabled:a,"data-testid":`provider-save-${e}`,onClick:()=>{d()},children:a?"saving\u2026":"Save key"}),(0,$.jsx)(Q,{tone:r?"verified":"neutral",mono:!0,dot:!0,children:r?"key set \u2713":"not set"}),s&&(0,$.jsx)("span",{"data-testid":`provider-rejected-${e}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]})}function qT({wire:e,secretNames:t,onSaved:r}){let o=ce.default.useCallback(async(n,i)=>{let a=gi[n];if(a===void 0)return!1;let l=await e.setSecret(a,i);return l&&r(),l},[e,r]);return(0,$.jsx)(ie,{title:"Provider keys",eyebrow:"write-only \xB7 names-only presence",children:(0,$.jsx)("div",{"data-testid":"provider-keys",children:KT.map(n=>{let i=gi[n.id]??"",a=i!==""&&t.includes(i);return(0,$.jsx)(YT,{id:n.id,label:n.label,present:a,onSave:o},n.id)})})})}var QT=[{value:"",label:"default (semantic when embeddings on)"},{value:"keyword",label:"keyword \u2014 lexical only"},{value:"semantic",label:"semantic \u2014 vector (fallback when off)"},{value:"hybrid",label:"hybrid \u2014 both arms"}];function ej({value:e,onChange:t}){return(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,$.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Search mode"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"recall channels"})]}),(0,$.jsx)("span",{style:{flex:1}}),(0,$.jsx)("select",{"aria-label":"search mode",value:e,onChange:r=>t(r.target.value),"data-testid":"recall-mode-select",style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:220},children:QT.map(r=>(0,$.jsx)("option",{value:r.value,children:r.label},r.value))})]})}function tj({settings:e,catalog:t,secretNames:r,onSave:o,portkeyEnabled:n}){let i=String(e[Fe.recallMode]??"");return(0,$.jsx)(ie,{title:"Search & inference",eyebrow:"recall mode \xB7 provider \xB7 model \xB7 pollinating",children:(0,$.jsxs)("div",{"data-testid":"search-inference",children:[(0,$.jsx)(ej,{value:i,onChange:a=>{o(Fe.recallMode,a)}}),n===!0&&(0,$.jsx)("div",{"data-testid":"portkey-supersedes-hint",style:{padding:"6px 6px 2px",fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"superseded by Portkey \u2014 provider keys still stored, not the active inference path"}),(0,$.jsx)("div",{style:{marginTop:8,opacity:n===!0?.45:1,transition:"opacity 0.15s"},children:(0,$.jsx)($u,{catalog:t,settings:e,secretNames:r,onSave:o})})]})})}function nj({symbol:e,configPath:t,envOverride:r,defaultValue:o,effect:n}){return(0,$.jsxs)("div",{"data-testid":"lifecycle-flag","data-config-path":t,style:{display:"flex",flexDirection:"column",gap:2,padding:"8px 0",borderBottom:"1px solid var(--border-subtle)"},children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline",flexWrap:"wrap"},children:[(0,$.jsx)(Q,{tone:"honey",mono:!0,children:e}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t}),(0,$.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["default: ",o]})]}),(0,$.jsx)("div",{style:{fontSize:12,color:"var(--text-tertiary)"},children:n}),(0,$.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:["env: ",r]})]})}function rj(){return(0,$.jsx)(ie,{title:"Memory lifecycle",eyebrow:"memory.lifecycle.* \xB7 symbol \xB7 default \xB7 effect",children:(0,$.jsxs)("div",{"data-testid":"lifecycle-config-reference",style:{display:"flex",flexDirection:"column"},children:[(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",marginBottom:8},children:"Precedence: HONEYCOMB_LIFECYCLE_* env > agent.yaml memory.lifecycle.* > the documented default. Defaults are non-destructive \u2014 a = 1, c = 0, s = 0 (posture observe), auto-resolve off."}),Lw.map(e=>(0,$.jsx)(nj,{...e},e.configPath))]})})}function oj({wire:e}){let[t,r]=ce.default.useState(null),[o,n]=ce.default.useState(!1),i=ce.default.useCallback(async()=>{try{let s=await e.health();r(s?.reasons?.embeddings==="on")}catch{r(!1)}},[e]);ce.default.useEffect(()=>{i()},[i]);let a=ce.default.useCallback(async()=>{if(t===null)return;n(!0);let s=!t;await e.setEmbeddings(s)&&r(s),n(!1),i()},[t,e,i]);return(0,$.jsx)(ie,{title:"Embeddings",eyebrow:"semantic recall \xB7 local model",right:(0,$.jsx)(Q,{tone:t?"verified":"neutral",mono:!0,dot:!0,children:t===null?"\u2026":t?"on":"off"}),children:(0,$.jsxs)("div",{"data-testid":"embeddings-section",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,$.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Semantic vector recall"}),(0,$.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"On runs the local embedding model for semantic search. Off falls back to lexical (BM25) recall only."})]}),(0,$.jsx)(A,{variant:t?"secondary":"primary",size:"sm",disabled:o||t===null,onClick:()=>{a()},"data-testid":"embeddings-toggle",children:o?"saving\u2026":t?"Turn off":"Turn on"})]})})}function ij({wire:e}){let[t,r]=ce.default.useState(!1),[o,n]=ce.default.useState(!1),[i,a]=ce.default.useState(!1),[l,s]=ce.default.useState(!1),[c,d]=ce.default.useState(null),[p,f]=ce.default.useState(!1),g=ce.default.useCallback(async()=>{r(!1),n(!0),await e.restartDaemon()||n(!1)},[e]),b=ce.default.useCallback(async()=>{a(!1),s(!0),f(!1);let h=await e.uninstall();d(h),f(h===null),s(!1)},[e]);return(0,$.jsxs)(ie,{title:"System",eyebrow:"restart \xB7 uninstall",children:[(0,$.jsxs)("div",{"data-testid":"system-restart",style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderBottom:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,$.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Restart the daemon"}),(0,$.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"Stops and relaunches the background daemon. The dashboard reconnects automatically."})]}),o?(0,$.jsx)("span",{"data-testid":"system-restarting",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:"restarting\u2026"}):t?(0,$.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,$.jsx)(A,{variant:"secondary",size:"sm",onClick:()=>r(!1),children:"Cancel"}),(0,$.jsx)(A,{variant:"danger",size:"sm",onClick:()=>{g()},"data-testid":"system-restart-confirm",children:"Confirm restart"})]}):(0,$.jsx)(A,{variant:"secondary",size:"sm",onClick:()=>r(!0),"data-testid":"system-restart-button",children:"Restart"})]}),(0,$.jsxs)("div",{"data-testid":"system-uninstall",style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 6px"},children:[(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:200,flex:1},children:[(0,$.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Uninstall Honeycomb"}),(0,$.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"Reverses Honeycomb's changes to your coding assistants. Your DeepLake login is left intact."})]}),i?(0,$.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,$.jsx)(A,{variant:"secondary",size:"sm",onClick:()=>a(!1),children:"Cancel"}),(0,$.jsx)(A,{variant:"danger",size:"sm",disabled:l,onClick:()=>{b()},"data-testid":"system-uninstall-confirm",children:l?"Working\u2026":"Confirm uninstall"})]}):(0,$.jsx)(A,{variant:"danger",size:"sm",onClick:()=>a(!0),"data-testid":"system-uninstall-button",children:"Uninstall"})]}),c!==null&&(0,$.jsxs)("div",{"data-testid":"system-uninstall-result",style:{display:"flex",flexDirection:"column",gap:6,padding:"8px 0"},children:[(0,$.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:c.note}),c.harnesses.length>0&&(0,$.jsxs)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:["Detected: ",c.harnesses.join(", ")]}),(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:c.command})]}),p&&(0,$.jsxs)("span",{"data-testid":"system-uninstall-error",style:{fontSize:12,color:"var(--severity-critical)"},children:["Could not load uninstall guidance. Retry, or run ",(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:"honeycomb uninstall"})," in your terminal."]})]})]})}function Uw({wire:e}){let[t,r]=ce.default.useState(qa),[o,n]=ce.default.useState([]),i=ce.default.useCallback(async()=>{r(await e.vaultSettings())},[e]),a=ce.default.useCallback(async()=>{n(await e.secretNames())},[e]);ce.default.useEffect(()=>{i(),a()},[i,a]);let l=ce.default.useCallback(async(d,p)=>{let f=await e.setSetting(d,p);return await i(),f},[e,i]),s=t.settings[Fe.portkeyEnabled]===!0,c=ce.default.useCallback(async d=>{let p=await e.setSecret(gi.portkey,d);return await a(),p},[e,a]);return(0,$.jsx)(qe,{title:"Settings",eyebrow:"deeplake \xB7 provider keys \xB7 search mode",children:(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,$.jsx)(XT,{wire:e}),(0,$.jsx)(qT,{wire:e,secretNames:o,onSaved:()=>{a()}}),(0,$.jsx)(oj,{wire:e}),(0,$.jsx)(V0,{settings:t.settings,secretNames:o,onSaveSetting:l,onSaveKey:c}),(0,$.jsx)(tj,{settings:t.settings,catalog:t.catalog,secretNames:o,onSave:l,portkeyEnabled:s}),(0,$.jsx)(rj,{}),(0,$.jsx)(ij,{wire:e})]})})}var mn=W(_e(),1);var V=W(q(),1),aj=5e3,al=12;function Au(e,t){return`${e}:${t}`}function _i({label:e,children:t}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,V.jsx)("span",{style:{flex:1}}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function Fw({state:e}){let t=zh[e]??"neutral";return(0,V.jsx)(Q,{tone:t,mono:!0,dot:!0,children:e})}function lj({row:e,flight:t,onAction:r}){let o=t!==void 0,n=(i,a)=>t===i?`${a}\u2026`:a;return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[e.state==="local"&&(0,V.jsx)(A,{variant:"primary",size:"sm",disabled:o,"data-testid":`promote-${e.assetType}-${e.name}`,onClick:()=>r("promote",e),children:n("promote","Promote")}),e.state==="shared"&&(0,V.jsx)(A,{variant:"secondary",size:"sm",disabled:o,"data-testid":`pull-${e.assetType}-${e.name}`,onClick:()=>r("pull",e),children:n("pull","Pull")}),e.state==="shared"&&(0,V.jsx)(A,{variant:"ghost",size:"sm",disabled:o,"data-testid":`enable-${e.assetType}-${e.name}`,onClick:()=>r("enable",e),children:n("enable","Enable")}),(e.state==="shared"||e.state==="pulled")&&(0,V.jsx)(A,{variant:"danger",size:"sm",disabled:o||!e.authoredByMe,title:e.authoredByMe?"Demote (tombstone) this asset":"Only the author can demote this asset","data-testid":`demote-${e.assetType}-${e.name}`,onClick:()=>r("demote",e),children:n("demote","Demote")}),(e.state==="local"||e.state==="pulled")&&(0,V.jsx)(A,{variant:"ghost",size:"sm",disabled:o,"data-testid":`disable-${e.assetType}-${e.name}`,onClick:()=>r("disable",e),children:n("disable","Disable")}),o&&(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"in-flight\u2026"})]})}function sj({row:e}){return(0,V.jsx)("div",{"data-testid":`detail-${e.assetType}-${e.name}`,style:{marginTop:4},children:(0,V.jsxs)(ie,{title:e.name,eyebrow:e.assetType,style:{marginBottom:4},children:[e.description!==""&&(0,V.jsx)("div",{style:{fontSize:13,color:"var(--text-secondary)",padding:"4px 6px 8px",lineHeight:"19px"},children:e.description}),(0,V.jsx)(_i,{label:"state",children:(0,V.jsx)(Fw,{state:e.state})}),(0,V.jsx)(_i,{label:"provenance",children:e.sourceHarness||"\u2014"}),(0,V.jsx)(_i,{label:"scope",children:e.scope||"\u2014"}),(0,V.jsx)(_i,{label:"source harness",children:e.sourceHarness||"\u2014"}),(0,V.jsx)(_i,{label:"tier / style",children:e.tier!==""?`${e.tier} / ${e.style}`:"\u2014"}),(0,V.jsx)(_i,{label:"version",children:e.version>0?`v${e.version}`:"\u2014"})]})})}function cj({row:e,open:t,flight:r,onToggle:o,onAction:n}){return(0,V.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,V.jsxs)("button",{type:"button","data-testid":`row-${e.assetType}-${e.name}`,onClick:()=>o(e),style:{display:"flex",alignItems:"center",gap:8,background:"transparent",border:"none",padding:0,cursor:"pointer",minWidth:0,flex:"1 1 200px",textAlign:"left"},children:[(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),(0,V.jsx)(Fw,{state:e.state}),e.version>0&&(0,V.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["v",e.version]})]}),(0,V.jsx)(lj,{row:e,flight:r,onAction:n})]}),t&&(0,V.jsx)(sj,{row:e})]})}function uj({kind:e,rows:t,openKey:r,inFlight:o,onToggle:n,onAction:i}){return(0,V.jsx)(ie,{title:e==="skill"?"Skills":"Agents",eyebrow:`${t.length} ${e==="skill"?"skills":"agents"}`,children:t.length===0?(0,V.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e==="skill"?"skills":"agents"," found."]}):(0,V.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(l=>(0,V.jsx)(cj,{row:l,open:r===Au(e,l.name),flight:o[Au(e,l.name)],onToggle:n,onAction:i},`${l.assetType}:${l.name}`))})})}function Mh({label:e,value:t,tone:r}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px"},children:[(0,V.jsx)(Q,{tone:r,mono:!0,children:t}),(0,V.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:e})]})}function dj(e){let t=0,r=0,o=0;for(let n of[...e.skills,...e.agents])n.state==="shared"?t++:n.state==="local"?r++:n.state==="pulled"&&o++;return{shared:t,local:r,pulled:o}}function pj({view:e}){let t=dj(e);return(0,V.jsx)(ie,{title:"Sync state",eyebrow:"per scope",children:(0,V.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:18},children:[(0,V.jsx)(Mh,{label:"shared with team",value:t.shared,tone:"verified"}),(0,V.jsx)(Mh,{label:"local only",value:t.local,tone:"neutral"}),(0,V.jsx)(Mh,{label:"pulled",value:t.pulled,tone:"honey"})]})})}function fj(e){return e.filter(Su).slice(-al).reverse().map(t=>{let r=Pr(t),o=A0(t);return o!==""?`${r} \xB7 ${o}`:r})}function mj(e,t){if(!Su(t))return e;let r=[...e,t];return r.length>al?r.slice(-al):r}function Ww({wire:e}){let{scope:t}=Ut(),r=t.project,[o,n]=mn.default.useState(yu),[i,a]=mn.default.useState([]),[l,s]=mn.default.useState("skill"),[c,d]=mn.default.useState(null),[p,f]=mn.default.useState({});mn.default.useEffect(()=>{if(r===void 0){n(yu);return}let v=!0,m=async()=>{if(!v||Pn())return;let S=await e.assetsView();v&&n(S)};m();let y=setInterval(()=>{m()},aj);return()=>{v=!1,clearInterval(y)}},[e,r]),mn.default.useEffect(()=>{let v=!0;(async()=>{let y=await e.logs(al*6);v&&a(y.filter(Su).slice(-al))})();let m=e.logsStream(y=>{v&&a(S=>mj(S,y))});return()=>{v=!1,m()}},[e]);let g=mn.default.useMemo(()=>fj(i),[i]),b=mn.default.useCallback(v=>{let m=Au(v.assetType,v.name);d(y=>y===m?null:m)},[]),h=mn.default.useCallback((v,m)=>{let y=Au(m.assetType,m.name);f(S=>({...S,[y]:v})),(async()=>{try{await e.syncAction(v,{assetType:m.assetType,name:m.name,honeycombId:m.honeycombId!==""?m.honeycombId:void 0}),n(await e.assetsView())}finally{f(S=>{let P={...S};return delete P[y],P})}})()},[e]),w=l==="skill"?o.skills:o.agents;return(0,V.jsx)(qe,{title:"Sync",eyebrow:r===void 0?"sync":`${o.skills.length+o.agents.length} assets`,children:r===void 0?(0,V.jsx)(yi,{surface:"sync state"}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(pj,{view:o}),(0,V.jsx)("div",{style:{height:16}}),(0,V.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,V.jsx)(Aw,{label:"Skills",active:l==="skill",count:o.skills.length,onClick:()=>s("skill")}),(0,V.jsx)(Aw,{label:"Agents",active:l==="agent",count:o.agents.length,onClick:()=>s("agent")})]}),(0,V.jsx)(uj,{kind:l,rows:w,openKey:c,inFlight:p,onToggle:b,onAction:h}),(0,V.jsx)("div",{style:{height:16}}),(0,V.jsx)(Rr,{lines:g})]})})}function Aw({label:e,active:t,count:r,onClick:o}){return(0,V.jsxs)("button",{type:"button","data-testid":`tab-${e.toLowerCase()}`,"aria-pressed":t,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:[e,(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:r})]})}var de=W(q(),1);function Kn({children:e}){return(0,de.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:e})}var gj=(0,de.jsxs)(Kn,{children:[(0,de.jsx)("rect",{x:3,y:3,width:7,height:7}),(0,de.jsx)("rect",{x:14,y:3,width:7,height:7}),(0,de.jsx)("rect",{x:3,y:14,width:7,height:7}),(0,de.jsx)("rect",{x:14,y:14,width:7,height:7})]}),vj=(0,de.jsxs)(Kn,{children:[(0,de.jsx)("rect",{x:3,y:4,width:18,height:16,rx:2}),(0,de.jsx)("path",{d:"M7 9l3 3-3 3"}),(0,de.jsx)("path",{d:"M13 15h4"})]}),yj=(0,de.jsx)(Kn,{children:(0,de.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),hj=(0,de.jsxs)(Kn,{children:[(0,de.jsx)("path",{d:"M12 3l7 4v8l-7 4-7-4V7z"}),(0,de.jsx)("path",{d:"M12 8v8"})]}),xj=(0,de.jsxs)(Kn,{children:[(0,de.jsx)("circle",{cx:6,cy:6,r:2.5}),(0,de.jsx)("circle",{cx:18,cy:9,r:2.5}),(0,de.jsx)("circle",{cx:9,cy:18,r:2.5}),(0,de.jsx)("path",{d:"M8 7.5l8 1.5M8 16l1-7.5"})]}),bj=(0,de.jsxs)(Kn,{children:[(0,de.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7"}),(0,de.jsx)("path",{d:"M21 4v4h-4"})]}),Sj=(0,de.jsxs)(Kn,{children:[(0,de.jsx)("rect",{x:4,y:3,width:16,height:18,rx:2}),(0,de.jsx)("path",{d:"M8 8h8M8 12h8M8 16h5"})]}),kj=(0,de.jsxs)(Kn,{children:[(0,de.jsx)("path",{d:"M4 19V5"}),(0,de.jsx)("path",{d:"M4 19h16"}),(0,de.jsx)("path",{d:"M7 15l4-5 3 3 5-7"})]}),_j=(0,de.jsxs)(Kn,{children:[(0,de.jsx)("circle",{cx:12,cy:12,r:3}),(0,de.jsx)("path",{d:"M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"})]}),jh="/projects",Fu=[{route:"/",label:"Dashboard",icon:gj,component:cw},{route:jh,label:"Projects",icon:yj,component:Pw},{route:"/harnesses",label:"Harnesses",icon:vj,component:Q0,dynamic:{resolve:ew}},{route:"/memories",label:"Memories",icon:hj,component:ww},{route:"/graph",label:"Memory Graph",icon:xj,component:gw},{route:"/sync",label:"Sync",icon:bj,component:Ww},{route:"/logs",label:"Logs",icon:Sj,component:Sw},{route:"/roi",label:"ROI",icon:kj,component:Nw},{route:"/settings",label:"Settings",icon:_j,component:Uw}],W2=Fu[0];function Mw(e,t=Fu){let r=t.find(n=>n.route===e);if(r!==void 0)return r;let o=t.find(n=>n.route!=="/"&&e.startsWith(`${n.route}/`));return o!==void 0?o:t.find(n=>n.route==="/")??t[0]}var Me=W(q(),1),$j=220,wj=56;function zj(e,t){let r=e.find(i=>i.route===t);if(r!==void 0)return r.route;let o=e.find(i=>i.route!=="/"&&t.startsWith(`${i.route}/`));return o!==void 0?o.route:e.find(i=>i.route==="/")?.route??e[0]?.route??"/"}function Ij({entry:e,active:t,collapsed:r,onNavigate:o}){return(0,Me.jsxs)("button",{type:"button",onClick:()=>o(e.route),"aria-current":t?"page":void 0,title:r?e.label:void 0,"data-route":e.route,"data-active":t?"true":"false",style:{display:"flex",alignItems:"center",gap:10,width:"100%",height:38,padding:r?"0":"0 12px",justifyContent:r?"center":"flex-start",background:t?"var(--honey-subtle)":"transparent",color:t?"var(--honey)":"var(--text-secondary)",border:`1px solid ${t?"var(--honey-border)":"transparent"}`,borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,letterSpacing:"0.01em",cursor:"pointer",whiteSpace:"nowrap",transition:"background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out)"},children:[(0,Me.jsx)("span",{style:{display:"inline-flex",flex:"none"},children:e.icon}),!r&&(0,Me.jsx)("span",{children:e.label})]})}function Pj({daemonUp:e,collapsed:t}){return(0,Me.jsxs)("div",{title:"daemon health","data-testid":"daemon-health-pill",style:{display:"flex",alignItems:"center",gap:8,height:36,padding:t?"0":"0 12px",justifyContent:t?"center":"flex-start",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,Me.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:e?"var(--verified)":"var(--severity-critical)"}}),!t&&(0,Me.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:e?"daemon :3850":"offline"})]})}function Zw({entries:e,activeRoute:t,onNavigate:r,daemonUp:o,identity:n,assetBase:i,collapsed:a,onToggleCollapsed:l}){let s=zj(e,t);return(0,Me.jsxs)("nav",{"aria-label":"Dashboard navigation","data-collapsed":a?"true":"false",style:{display:"flex",flexDirection:"column",gap:18,width:a?wj:$j,flex:"none",minHeight:"100vh",boxSizing:"border-box",padding:a?"20px 8px":"22px 14px",background:"var(--bg-surface)",borderRight:"1px solid var(--border-default)"},children:[(0,Me.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,paddingLeft:a?0:2,justifyContent:a?"center":"flex-start"},children:[(0,Me.jsx)("img",{src:`${i}/honeycomb-memory-cluster.svg`,width:a?28:34,height:a?28:34,alt:"",style:{flex:"none"}}),!a&&(0,Me.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[(0,Me.jsx)("span",{style:{fontWeight:700,fontSize:19,letterSpacing:"-0.03em",color:"var(--text-primary)",lineHeight:1.1},children:"honeycomb"}),(0,Me.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n})]})]}),(0,Me.jsx)(sw,{collapsed:a}),(0,Me.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,flex:1},children:e.map(c=>(0,Me.jsx)(Ij,{entry:c,active:c.route===s,collapsed:a,onNavigate:r},c.route))}),(0,Me.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,Me.jsx)(Pj,{daemonUp:o,collapsed:a}),(0,Me.jsx)(A,{variant:"ghost",size:"sm",onClick:l,"aria-label":a?"expand sidebar":"collapse sidebar",title:a?"expand":"collapse",children:a?"\xBB":"\xAB collapse"})]})]})}var ot=W(q(),1),Rj=5e3,Ej=900;function Cj({route:e,pageProps:t,navigate:r}){let o=Mw(e),n=o.component,{projects:i,projectsHydrated:a}=Ch();dt.default.useEffect(()=>{typeof document<"u"&&(document.title=`honeycomb \xB7 ${o.label}`)},[o.label]);let l=i.some(c=>c.boundLocally&&c.projectId!=="__unsorted__"),s=o.route==="/"&&a&&!l;return(0,ot.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,ot.jsx)("div",{style:{maxWidth:zu,margin:"0 auto"},children:s?(0,ot.jsx)(dw,{wire:t.wire,navigate:r,assetBase:t.assetBase}):(0,ot.jsx)(n,{...t})})})}function Bw({client:e,assetBase:t="assets"}={}){let r=dt.default.useMemo(()=>e??bu(),[e]),{route:o,navigate:n}=Pu(),[i,a]=dt.default.useState(!0),[l,s]=dt.default.useState(null),[c,d]=dt.default.useState(Sh),[p,f]=dt.default.useState(!1),[g,b]=dt.default.useState(!1),h=c.settings.port?`http://127.0.0.1:${c.settings.port}`:"http://127.0.0.1:3850",w=dt.default.useCallback(async()=>{d(await r.settings())},[r]);dt.default.useEffect(()=>{w()},[w]);let v=dt.default.useRef(null);dn(async()=>{let{up:T,reasons:B}=await r.health();a(T),s(B),T&&v.current===!1&&w(),v.current=T},Rj),dt.default.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let T=window.matchMedia(`(max-width: ${Ej}px)`),B=M=>{M&&b(!0)};B(T.matches);let X=M=>B(M.matches);return T.addEventListener("change",X),()=>T.removeEventListener("change",X)},[]);let m=dt.default.useRef(!1),y=dt.default.useRef(null);dt.default.useEffect(()=>()=>{y.current!==null&&clearTimeout(y.current)},[]);let S=dt.default.useCallback(async()=>{if(m.current)return;m.current=!0,f(!0),(await r.pollinate()).triggered?y.current=setTimeout(()=>{f(!1),m.current=!1},4200):(f(!1),m.current=!1)},[r]),P=`${c.orgName||c.orgId||"local"} \xB7 ${c.workspace||"default"}`;return(0,ot.jsx)(lw,{wire:r,children:(0,ot.jsxs)("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-canvas)"},children:[(0,ot.jsx)(Zw,{entries:Fu,activeRoute:o,onNavigate:n,daemonUp:i,identity:P,assetBase:t,collapsed:g,onToggleCollapsed:()=>b(T=>!T)}),(0,ot.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:[(0,ot.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 28px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,ot.jsx)("span",{style:{flex:1}}),(0,ot.jsx)(A,{variant:"pollinate",onClick:()=>{S()},disabled:p,children:p?"pollinating\u2026":"Pollinate now"})]}),i?(0,ot.jsx)(Cj,{route:o,pageProps:{wire:r,daemonUp:i,assetBase:t,pollinating:p,healthReasons:l},navigate:n}):(0,ot.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,ot.jsx)("div",{style:{maxWidth:zu,margin:"0 auto"},children:(0,ot.jsx)(H0,{url:h,onRetry:()=>{r.health().then(({up:T})=>{a(T),T&&w()})}})})})]})]})})}var K=W(q(),1),Tj=2500,jj=new Set(["backup","uninstall","link"]);function Oj(e){return e.migration!==void 0&&jj.has(e.migration.phase)}function Dj(e){return e.priorTool.hivemind==="migrated"?!1:e.priorTool.hivemind==="present"||e.credentials.hivemind}function Nj({wire:e,assetBase:t,state:r}){let[o,n]=Xe.default.useState(null),[i,a]=Xe.default.useState(!1),[l,s]=Xe.default.useState(!1),c=Xe.default.useRef(!1),d=Xe.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0),s(!1);let f=await e.setupLogin();if(f===null){s(!0),a(!1),c.current=!1;return}n(f)},[e]),p=r.priorTool.hivemind==="present"||r.credentials.hivemind;return(0,K.jsxs)("div",{"data-testid":"guided-setup",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,K.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,K.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:460},children:[(0,K.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Let\u2019s connect your account"}),(0,K.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:p?"We found a previous Hivemind setup. Link your account to bring your memory online.":"Honeycomb keeps one shared memory for all your coding agents. Link your account to get started."})]}),o===null?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(A,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Starting setup\u2026":"First time setup"}),l&&(0,K.jsxs)("p",{"data-testid":"setup-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:["Could not start setup. Retry, or run ",(0,K.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,K.jsxs)("div",{"data-testid":"setup-grant",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,K.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Enter this code to finish linking:"}),(0,K.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-lg)",color:"var(--honey)",letterSpacing:"0.08em"},children:o.user_code}),(0,K.jsx)("a",{href:o.verification_uri_complete??o.verification_uri,target:"_blank",rel:"noreferrer",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)"},children:"Open the verification page"}),(0,K.jsx)("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]})]})}function Lj({wire:e,assetBase:t,onNeedsLogin:r}){let[o,n]=Xe.default.useState(!1),[i,a]=Xe.default.useState(!1),[l,s]=Xe.default.useState(null),c=Xe.default.useRef(!1),d=Xe.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0);let p=await e.migrateFromHivemind();if(s(p),p.ok&&p.needsLogin===!0){r();return}p.ok||(a(!1),c.current=!1)},[e,r]);return(0,K.jsxs)("div",{"data-testid":"coexistence-warning",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,K.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,K.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,K.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"We found an existing Hivemind setup"}),(0,K.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["Running Hivemind and Honeycomb on the same machine isn\u2019t supported \u2014 they share one memory and would collide. ",(0,K.jsx)("strong",{children:"Proceed with Honeycomb"})," will back up your Hivemind config, uninstall Hivemind, and reuse your existing DeepLake login (so you likely won\u2019t even need to sign in again)."]})]}),l!==null&&l.ok===!1?(0,K.jsxs)("div",{"data-testid":"migration-error",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",maxWidth:500},children:[(0,K.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:l.message}),l.backupPath!==void 0&&(0,K.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup saved at ",(0,K.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:l.backupPath})]}),(0,K.jsx)(A,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Retrying\u2026":"Retry"})]}):o?(0,K.jsxs)("div",{"data-testid":"migration-confirm",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,K.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"This backs up and removes your Hivemind setup. Continue?"}),(0,K.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,K.jsx)(A,{variant:"secondary",size:"md",onClick:()=>n(!1),disabled:i,children:"Cancel"}),(0,K.jsx)(A,{variant:"danger",size:"md",onClick:()=>{d()},disabled:i,"data-testid":"confirm-migrate-button",children:i?"Migrating\u2026":"Yes, proceed"})]})]}):(0,K.jsx)(A,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"proceed-button",children:"Proceed with Honeycomb"})]})}function Uj({wire:e,assetBase:t,state:r,onNeedsLogin:o}){let[n,i]=Xe.default.useState(""),[a,l]=Xe.default.useState(null),s=r.migration?.phase??"backup",c=r.migration?.backupPath,d=Xe.default.useCallback(async()=>{i("resume");let f=await e.migrateFromHivemind();if(l(f.message),f.ok&&f.needsLogin===!0){o();return}f.ok||i("")},[e,o]),p=Xe.default.useCallback(async()=>{i("rollback");let f=await e.rollbackMigration();l(f.message),i("")},[e]);return(0,K.jsxs)("div",{"data-testid":"migration-interrupted",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,K.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,K.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,K.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your migration was interrupted"}),(0,K.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["A previous switch to Honeycomb didn\u2019t finish (it stopped at the ",(0,K.jsx)("code",{children:s})," step). You can resume it, or roll back to restore your previous Hivemind setup."]}),c!==void 0&&(0,K.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup at ",(0,K.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:c})]})]}),(0,K.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,K.jsx)(A,{variant:"primary",size:"md",onClick:()=>{d()},disabled:n!=="","data-testid":"resume-button",children:n==="resume"?"Resuming\u2026":"Resume"}),(0,K.jsx)(A,{variant:"secondary",size:"md",onClick:()=>{p()},disabled:n!=="","data-testid":"rollback-button",children:n==="rollback"?"Rolling back\u2026":"Roll back"})]}),a!==null&&(0,K.jsx)("p",{"data-testid":"migration-interrupted-message",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:a})]})}function Vw({client:e,assetBase:t="assets"}={}){let r=Xe.default.useMemo(()=>e??bu(),[e]),[o,n]=Xe.default.useState(hh),[i,a]=Xe.default.useState(!1);return Xe.default.useEffect(()=>{if(o.authenticated)return;let l=!0,s=async()=>{let d=await r.setupState();l&&n(d)};s();let c=setInterval(()=>{s()},Tj);return()=>{l=!1,clearInterval(c)}},[r,o.authenticated]),o.authenticated?(0,K.jsx)(Bw,{...{client:r,assetBase:t}}):Oj(o)&&!i?(0,K.jsx)(Uj,{wire:r,assetBase:t,state:o,onNeedsLogin:()=>a(!0)}):Dj(o)&&!i?(0,K.jsx)(Lj,{wire:r,assetBase:t,onNeedsLogin:()=>a(!0)}):(0,K.jsx)(Nj,{wire:r,assetBase:t,state:o})}var Zh=W(q(),1);function Aj(){let e=document.getElementById("root");if(e===null)return;let t=e.getAttribute("data-asset-base")??"assets",r=/^[A-Za-z0-9._/-]*$/.test(t)?t:"assets";(0,Jw.createRoot)(e).render((0,Zh.jsx)(Hw.default.StrictMode,{children:(0,Zh.jsx)(Vw,{assetBase:r})}))}Aj();
|
|
73
73
|
/*! Bundled license information:
|
|
74
74
|
|
|
75
75
|
react/cjs/react.production.min.js:
|